Update ChangeLog for previous commit.
[official-gcc.git] / gcc / ChangeLog
blob9e35d69b486ff9dfca7da1bbbb8a6be8dd10be7a
1 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
3         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
4         longer impact parallelization.
6 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
8         PR bootstrap/63496
9         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
11 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
13         * asan.c (instrument_derefs): BIT_FIELD_REF added.
15 2014-10-13  Richard Biener  <rguenther@suse.de>
17         PR tree-optimization/63419
18         * gimple-fold.h (gimple_convert): New function.
19         * gimple-fold.c (gimple_convert): Likewise.
20         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
21         to split out required conversions early.
23 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
25         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
26         Add the parts of an insn in reverse order, with the pattern at
27         the top of the queue.  Detect when we're iterating over a SEQUENCE
28         pattern and in that case just consider patterns of subinstructions.
30 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
32         PR target/59401
33         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
34         of rtx.
35         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
36         insn walking.
37         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
38         address.  Use def chains to handle GBR clobbering call insns.
40 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
42         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
43         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
44         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
45         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
46         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
47         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
48         * doc/gty.texi (for_user): Document new option.
49         * gengtype.c (create_user_defined_type): Don't try to get a struct for
50         char.
51         (walk_type): Don't error out on for_user option.
52         (write_func_for_structure): Emit user marking routines if requested by
53         for_user option.
54         (write_local_func_for_structure): Likewise.
55         (main): Mark types with for_user option as used.
56         * ggc.h (gt_pch_nx): Add overload for unsigned int.
57         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
58         * hash-table.h (ggc_hasher): New struct.
59         (hash_table::create_ggc): New function.
60         (gt_pch_nx): New overload for hash_table.
62 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
64         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
65         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
66         * config/sh/sh.c: Likewise.
67         * config/sh/sh-mem.cc: Likewise.
68         * config/sh/sh.md: Likewise.
69         * config/sh/predicates.md: Likewise.
70         * config/sh/sync.md: Likewise.
72 2014-10-11  Martin Liska  <mliska@suse.cz>
74         PR middle-end/63376
75         * cgraphunit.c (symbol_table::process_new_functions): Missing call
76         for call_cgraph_insertion_hooks added.
78 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
80         PR c/63495
81         * stor-layout.c (min_align_of_type): Don't decrease alignment
82         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
83         TYPE_USER_ALIGN is set.
85 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
87         PR rtl-optimization/63483
88         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
89         references when alignment ANDs are involved.
90         (write_dependence_p): Ditto.
91         (may_alias_p): Ditto.
93 2014-10-10  Marek Polacek  <polacek@redhat.com>
95         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
96         * doc/invoke.texi: Document -fsanitize=object-size.
97         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
98         or it into SANITIZE_UNDEFINED.
99         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
100         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
101         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
102         * opts.c (common_handle_option): Handle -fsanitize=object-size.
103         * ubsan.c: Include tree-object-size.h.
104         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi. 
105         (ubsan_expand_bounds_ifn): Use false instead of 0.
106         (ubsan_expand_objsize_ifn): New function.
107         (instrument_object_size): New function.
108         (pass_ubsan::execute): Add object size instrumentation.
109         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
111 2014-10-10  Richard Henderson  <rth@redhat.com>
113         PR target/63404
114         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
115         Restrict the set of expressions we're willing to move.
117 2014-10-10  Jeff Law  <law@redhat.com>
119         * ira.c (struct equivalence): Promote INIT_INSNs field to
120         an rtx_insn_list.  Add comments.
121         (no_equiv): Promote LIST to an rtx_insn_list.  Update
122         testing for and creating the special marker.  Use methods
123         to extract the insn and next pointers.  Promote INSN to an
124         rtx_insn.
125         (update_equiv_regs): Update test for special marker in the
126         INIT_INSNs list.
128 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
130         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
131         * configure: Regenerate.
132         * config/aarch64/aarch64.c (aarch64_override_options): Handle
133         TARGET_FIX_ERR_A53_835769_DEFAULT.
134         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
135         value to 2.
136         * doc/install.texi (aarch64*-*-*): Document 
137         new --enable-fix-cortex-a53-835769 option.
139 2014-10-10  Kyrylo Tkachov<kyrylo.tkachov@arm.com>
140             Ramana Radhakrishnan<ramana.radhakrishnan@arm.com>
142         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
143         (ADJUST_INSN_LENGTH): Define.
144         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
145         * config/aarch64/aarch64.c (is_mem_p): New function.
146         (is_memory_op): Likewise.
147         (aarch64_prev_real_insn): Likewise.
148         (is_madd_op): Likewise.
149         (dep_between_memop_and_curr): Likewise.
150         (aarch64_madd_needs_nop): Likewise.
151         (aarch64_final_prescan_insn): Likewise.
152         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
153         and -mno-fix-cortex-a53-835769 options.
155 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
157         PR tree-optimization/63464
158         * tree-switch-conversion.c (struct case_bit_test): Remove
159         hi and lo fields, add wide_int mask field.
160         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
161         hi/lo fields into wide_int mask operations, optimize by pretending
162         minval to be 0 if maxval is small enough.
163         (process_switch): Adjust caller.
165 2014-10-10  Richard Biener  <rguenther@suse.de>
167         PR tree-optimization/63379
168         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
169         a neutral operand for min/max when it is not a reduction chain.
171 2014-10-10  Richard Biener  <rguenther@suse.de>
173         PR tree-optimization/63476
174         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
175         (BB_LIVE_VOP_ON_EXIT): New define.
176         (create_expression_by_pieces): Assign VUSEs to stmts.
177         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
178         (pass_pre::execute): Assert virtual SSA form is up-to-date
179         after insertion.
181 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
183         * lra-assigns.c (assign_by_spills): Error out on spill failure.
185 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
187         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
188         assertion.
190 2014-10-09  Richard Biener  <rguenther@suse.de>
192         PR tree-optimization/63380
193         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
194         may trap.
196 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
198         * config/avr/avr.opt (mmcu=): Change to have a string value.
199         (mn-flash=, mskip-bug, march=, mrmw): New options.
200         (HeaderInclude): New.
201         (mmcu=): Remove Var / Init clauses.
202         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
203         -specs option.
204         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
205         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
206         (SYMBOL_FLAG_IO_LOW): Define.
207         (avr_device_to_as, avr_device_to_ld): Don't declare.
208         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
209         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
210         (EXTRA_SPEC_FUNCTIONS): Don't define.
211         (ASM_SPEC): Translate -arch= option to -mmcu= option.
212         (LINK_SPEC): Translate -arch= option to -m= option.
213         Don't use device_to_ld / device_to_data_start.
214         (STARTFILE_SPEC): Now empty.
215         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
216         * config/avr/gen-avr-mmcu-specs.c: New file.
217         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
218         (s-device-specs): Likewise.
219         (GCC_PASSES): Add s-device-specs.
220         (install-driver): Depend on install-device-specs.
221         (install-device-specs): New rule.
222         * config/avr/avr.c (avr_option_override): Look up mcu arch by
223         avr_arch_index and provide fallback initialization for avr_n_flash.
224         (varasm.h): #include.
225         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
226         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
227         (avr_attribute_table): Add "io", "address" and "io_low".
228         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
229         Add special handling for symbols with "io" and/or "address" attributes.
230         (avr_asm_asm_output_aligned_bss): New function.
231         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
232         as appropriate.  Handle io_low attribute.
233         (avr_out_sbxx_branch): Handle symbolic io addresses.
234         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
235         avr_n_flash instead of avr_current_device->n_flash.
236         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
237         (avr_emit_movmemhi): Likewise.
238         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
239         Use TARGET_RMW instead of avr_current_device->dev_attributes.
240         Don't define avr_current_device->macro (that's the specfile's job).
241         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
242         * config/avr/avr.c (avr_2word_insn_p): Likewise.
243         * config/avr/avr.md (*cpse.ne): Likewise.
244         (mov<mode>): Use avr_eval_addr_attrib.
245         (cbi): Change constraint for low_io_address_operand operand to "i".
246         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
247         * config/avr/predicates.md (io_address_operand):
248         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
249         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
250         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
251         Update prototype.
252         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
253         * config/avr/genmultilib.awk: Use -march=.
254         Remove Multilib matches processing.
255         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
256         * config/avr/avr-arch.h: Add double include guard.
257         (avr_mcu_t) <library_name>: Update comment.
258         * config/avr/driver-avr.c (avr_device_to_as): Delete.
259         (avr_device_to_ld, avr_device_to_data_start): Likewise.
260         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
261         (avr_device_to_sp8): Likewise.
262         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
264         * doc/extend.texi (io, address): Document new AVR variable attributes.
265         (io_low): Likewise.
267 2014-10-09  Marek Polacek  <polacek@redhat.com>
269         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
271 2014-10-08  Richard Biener  <rguenther@suse.de>
273         PR tree-optimization/61969
274         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
275         variables.
277 2014-10-09  Richard Biener  <rguenther@suse.de>
279         PR tree-optimization/63445
280         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
281         overflow for non-equality compares.
283 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
285         PR rtl-optimization/57003
286         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
287         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
288         killing regs_invalidated_by_call.
290 2014-10-08  Teresa Johnson  <tejohnson@google.com>
292         PR bootstrap/63432.
293         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
294         (ssa_fix_duplicate_block_edges): Invoke it.
295         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
297 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
299         PR target/52941
300         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
301         atomic_fetch_<fetchop_name>si_hard,
302         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
303         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
304         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
305         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
307 2014-10-08  Rong Xu  <xur@google.com>
309         * gcov-tool.c (profile_overlap): New driver function
310         to compute profile overlap. 
311         (print_overlap_usage_message): New.
312         (overlap_usage): New.
313         (do_overlap): New.
314         (print_usage): Add calls to overlap function.
315         (main): Ditto.
316         * doc/gcov-tool.texi: Add documentation.
318 2014-10-08  Steve Ellcey  <sellcey@mips.com>
320         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
321         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
323 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
325         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
326         pattern matching of MEM_REF.
327         (check_stmt_for_type_change): Update.
329 2014-10-08  Steve Ellcey  <sellcey@mips.com>
331         * config/mips/linux64.h: Remove.
332         * config/mips/gnu-user64.h: Remove.
333         * gcc.config (mips*-*-*): Remove references to linux64.h and
334         gnu-user64.h
335         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
336         with modified version from gnu-user64.h.
337         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
338         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
339         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
340         linux64.h.
341         (GNU_USER_LINK_EMULATION64): Ditto.
342         (GNU_USER_LINK_EMULATIONN32): Ditto.
343         (GLIBC_DYNAMIC_LINKER32): Ditto.
344         (GLIBC_DYNAMIC_LINKER64): Ditto.
345         (GLIBC_DYNAMIC_LINKERN32): Ditto.
346         (UCLIBC_DYNAMIC_LINKER32): Ditto.
347         (UCLIBC_DYNAMIC_LINKER64): Ditto.
348         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
349         (BIONIC_DYNAMIC_LINKERN32): Ditto.
350         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
351         (GLIBC_DYNAMIC_LINKER): Delete.
352         (UCLIBC_DYNAMIC_LINKER): Delete.
354 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
355             Richard Biener  <rguenther@suse.de>
357         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
358         Get address space from operand 0 (BASE).
360 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
362         PR target/61387
363         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
365 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
367         * dwarf2out.c: Remove current_function_has_inlines.
368         (gen_subprogram_die): Same.
369         (gen_inlined_subroutine_die): Same.
371 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
373         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
374         type.
375         (_addcarry_u64): Ditto.
376         (_addcarryx_u64): Ditto.
378 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
380         * cgraph.h (cgraph_node::get_fun): Declare.
381         * cgraph.c (cgraph_node::get_fun): New method.
382         * ipa-inline.c (can_inline_edge_p): Use it.
384 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
386         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
387         and -ftrapping-math.
388         * lto-wrapper.c (merge_and_complain): Likewise.
389         (run_gcc): Likewise.
391 2014-10-06  Rong Xu  <xur@google.com>
393         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
394         * tree-profile.c: (params.h): New include.
395         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
396         and __gcov_indirect_call_topn_counters for
397         indirect_call_topn_profile.
398         (gimple_init_edge_profiler): New decls for
399         __gcov_indirect_call_topn_profiler.
400         (gimple_gen_ic_profiler): Generate the correct profiler call.
401         (gimple_gen_ic_func_profiler): Fix format.
402         * value-prof.c (params.h): New include.
403         (dump_histogram_value): Hanlde indirect_call_topn counters.
404         (stream_in_histogram_value): Ditto.
405         (gimple_indirect_call_to_profile): Use indirect_call_topn
406         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
407         (gimple_find_values_to_profile): Hanlde indirect_call_topn
408         counters.
409         * value-prof.h (enum hist_type): Histrogram type for
410         indirect_call_topn counters.
411         * profile.c (instrument_values): Instrument
412         indirect_call_topn counters.
414 2014-10-06  Rong Xu  <xur@google.com>
416         * Makefile.in: Fix dependence.
417         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
418         indirect call topn profiler.
419         * gcov-io.h: Ditto.
421 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
423         * calls.c (expand_call): Do not use the target as the return slot if
424         it is not sufficiently aligned.
426 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
428         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
429         discussion of permutes and why we don't handle them.
431 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
433         * config/sparc/predicates.md (int_register_operand): Delete.
435 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
437         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
439 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
441         * ubsan.h (ubsan_get_source_location): New prototype.
442         * ubsan.c (ubsan_source_location_type): New variable.
443         Function renamed to ...
444         (ubsan_get_source_location_type): ... this.  Cache
445         return value in ubsan_source_location_type variable.
446         (ubsan_source_location, ubsan_create_data): Use
447         ubsan_get_source_location_type instead of
448         ubsan_source_location_type.
449         * asan.c (asan_protect_global): Don't protect globals
450         with ubsan_get_source_location_type () type.
451         (asan_add_global): Provide global decl location info
452         if possible.
454 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
456         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
457         sanity check.
459 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
461         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
462         on size.
463         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
464         into vptr pointer.
465         (ipa_polymorphic_call_context::dump): Fix formating.
466         (walk_ssa_copies): Add logic avoiding loops; update uses.
467         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
469 2014-10-02  Mark Wielaard  <mjw@redhat.com>
471         PR debug/63239
472         * dwarf2out.c (gen_subprogram_die): When a member function is
473         explicitly deleted then add a DW_AT_GNU_deleted attribute.
474         * langhooks.h (struct lang_hooks_for_decls): Add
475         function_decl_deleted_p langhook.
476         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
477         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
479 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
481         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
482         NULL pointer checks.
483         (ipa_polymorphic_call_context::get_dynamic_type): Return true
484         if type doesn't change.
485         * cgraph.h (cgraph_indirect_call_info): New flag.
486         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
487         (cgraph_node::dump): Dump it.
488         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
489         of context.get_dynamic_type.
490         (ipa_make_edge_direct_to_target): Do not speculate
491         edge that is already speuclative.
492         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
493         speculate to __builtin_unreachable
494         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
495         vptr_changed.
496         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
498 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
500         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
501         get_dynamic_type; drop TODO.
502         * ipa-polymorphic-call.c
503         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
504         for otr_type to be unknown.
506 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
508         * common/config/score/score-common.c: Remove.
509         * config.gcc: Remove support for score-*.
510         * config/score/constraints.md: Remove.
511         * config/score/elf.h: Remove.
512         * config/score/predicates.md: Remove.
513         * config/score/score-conv.h: Remove.
514         * config/score/score-generic.md: Remove.
515         * config/score/score-modes.def: Remove.
516         * config/score/score-protos.h: Remove.
517         * config/score/score.c: Remove.
518         * config/score/score.h: Remove.
519         * config/score/score.md: Remove.
520         * config/score/score.opt: Remove.
521         * doc/md.texi: Don't document score-*.
523 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
525         PR pch/63429
526         * genconditions.c: Directly include ggc.h before rtl.h.
528 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
530         * ipa-polymorphic-call.c
531         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
532         code determining speculative type.
533         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
535 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
537         * altivec.md (altivec_lvsl): New define_expand.
538         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
539         (altivec_lvsr): New define_expand.
540         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
541         * rs6000.c (rs6000_expand_builtin): Change to use
542         altivec_lvs[lr]_direct; remove commented-out code.
544 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
546         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
547         Issue a warning message when vec_lvsl or vec_lvsr is used with a
548         little endian target.
550 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
552         * tree-pretty-print.c (dump_location): Make it extern. Dump also
553         the column.
554         * tree-pretty-print.h (dump_location): Declare.
555         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
556         (pp_gimple_stmt_1): Likewise.
557         (dump_implicit_edges): Likewise.
558         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
559         LOCATION_LINE.
562 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
564         * gcc.c (driver::global_initializations): Remove "const" so
565         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
566         and decoded_options_count.
568 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
570         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
571         macro.
572         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
573         TARGET_E500_DOUBLE case here.
575 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
577         PR c++/54427
578         PR c++/57198
579         PR c++/58845
580         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
582 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
584         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
585         * lto-cgraph.c (lto_output_edge, input_edge): Stream
586         in_polymorphic_cdtor
587         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
588         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
589         * cgraphclones.c (cgraph_edge::clone): Likewise.
590         * ipa-prop.c (update_jump_functions_after_inlining,
591         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
592         to possible_dynamic_type_change.
593         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
594         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
595         IN_POLY_CDOTR argument.
597         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
598         for BASE and OUTER_TYPE being NULL.
599         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
600         in_poly_cdtor parameter.
602 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
604         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
605         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
606         TARGET_AVX512F.
607         (expand_vec_perm_1): Likewise.
609 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
610             Uros Bizjak  <ubizjak@gmail.com>
612         PR tree-optimization/61403
613         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
614         error in comment.  Also optimize 256-bit vectors for AVX2
615         or AVX (floating vectors only), provided the first permutation
616         can be performed in one insn.
618 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
620         * gcc.c (class driver): New class.
621         (main): Reimplement in terms of driver::main, moving most of the
622         locals to be locals within individual methods of class driver.
623         The remaining locals "explicit_link_files", "decoded_options" and
624         "decoded_options_count" are used by multiple driver:: methods, and
625         so become member data.  Doing so isolates the argc/argv reads and
626         writes.  Replace "goto out" with a special exit code from
627         new method driver::prepare_infiles.  Split out the old
628         implementation of main into the following...
629         (driver::main): New function, corresponding to the old "main"
630         implementation.
631         (driver::set_progname): New function, taken from the old
632         "main" implementation.
633         (driver::expand_at_files): Likewise.
634         (driver::decode_argv): Likewise.
635         (driver::global_initializations): Likewise.
636         (driver::build_multilib_strings): Likewise.
637         (driver::set_up_specs): Likewise.
638         (driver::putenv_COLLECT_GCC): Likewise.
639         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
640         (driver::handle_unrecognized_options): Likewise.
641         (driver::maybe_print_and_exit): Likewise.
642         (driver::prepare_infiles): Likewise.
643         (driver::do_spec_on_infiles): Likewise.
644         (driver::maybe_run_linker): Likewise.
645         (driver::final_actions): Likewise.
646         (driver::get_exit_code): Likewise.
648 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
650         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
651         don't emit empty ctors.
653 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
655         * convert.c (convert_to_integer): Do not introduce useless conversions
656         between integral types.
658 2014-10-03  David Sherwood  <david.sherwood@arm.com>
660         * ira-int.h (ira_allocno): Mark hard_regno as signed.
662 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
664         * lra-constraints.c (inherit_in_ebb): Handle calls with
665         multiple return values.
666         * caller-save.c (save_call_clobbered_regs): Likewise.
668 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
670         * tree-vect-data-refs.c (vect_permute_load_chain,
671         vect_shift_permute_load_chain): Fix a typo in temporary var names,
672         suffle3 to shuffle3.
674         PR libgomp/61200
675         * omp-low.c (taskreg_contexts): New variable.
676         (scan_omp_parallel): Push newly created context into taskreg_contexts
677         vector and move record layout code to finish_taskreg_scan.
678         (scan_omp_task): Likewise.
679         (finish_taskreg_scan): New function.
680         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
681         vector elements and release it.
683         PR target/62128
684         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
685         of palignr arguments can't be used due to min 0 or max - min
686         too high, try also op0, op1 order of palignr arguments.
688 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
690         * cgraph.h (ipa_polymorphic_call_context):
691         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
692         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
693         * ipa-polymorphic-call.c
694         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
695         past end of dynamic types.
696         (ipa_polymorphic_call_context::stream_out,
697         speculative_outer_type): Stream dynamic flag.
698         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
699         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
700         Clear DYNAMIC.
701         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
702         set it.
703         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
704         * ipa-prop.c (update_jump_functions_after_inlining,
705         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
707 2014-10-02  Teresa Johnson  <tejohnson@google.com>
709         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
710         up when synthesizing counts to avoid rounding errors.
712 2014-10-02  Teresa Johnson  <tejohnson@google.com>
714         PR middle-end/63422
715         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
716         asserts to handle incoming insanities.
718 2014-10-02  Martin Jambor  <mjambor@suse.cz>
720         PR tree-optimization/63375
721         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
722         references.
724 2014-10-02  Olivier Hainque  <hainque@adacore.com>
726         * Makefile.in (CROSS): Define, to @CROSS.
728 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
730         PR target/62128
731         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
732         if it expands to a single insn only.
733         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
734         fail unless in_order is true.  Add forward declaration.
735         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
736         is useful for one_operand_p.
737         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
739 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
741         * cgraphclones.c (build_function_type_skip_args): Do not make new
742         type variant of old.
744 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
746         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
747         when speculation is added.
748         (ipa_edge_args): Add polymorphic_call_contexts.
749         (ipa_get_ith_polymorhic_call_context): New accesor.
750         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
751         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
752         (ipa_compute_jump_functions_for_edge): Compute contexts.
753         (update_jump_functions_after_inlining): Update contexts.
754         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
755         update dumping; add speculative edge creation.
756         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
757         context updating.
758         (update_indirect_edges_after_inlining): Pass down context.
759         (ipa_edge_duplication_hook): Duplicate contexts.
760         (ipa_write_node_info): Stream out contexts.
761         (ipa_read_node_info): Stream in contexts.
762         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
763         types.
764         (try_speculative_devirtualization): New function.
765         * ipa-utils.h (try_speculative_devirtualization): Declare.
767 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
769         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
770         dumping during WPA.
772 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
774         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
775         type variants.
777 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
779         * ipa-polymorphic-call.c
780         (ipa_polymorphic_call_context::restrict_to_inner_class):
781         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
782         use speculation_consistent_p to do so; Add CONSDER_BASES
783         and CONSIDER_PLACEMENT_NEW parameters.
784         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
785         short circuit obvious cases.
786         (ipa_polymorphic_call_context::dump): Improve formatting.
787         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
788         combine_speculation_with to record speculations; Do not ICE when
789         object is located in pointer type decl; do not ICE for methods
790         of UNION_TYPE; do not record nonpolymorphic types.
791         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
792         (ipa_polymorphic_call_context::combine_speculation_with): New method.
793         (ipa_polymorphic_call_context::combine_with): New method.
794         (ipa_polymorphic_call_context::make_speculative): Move here; use
795         combine speculation.
796         * cgraph.h (ipa_polymorphic_call_context): Update
797         restrict_to_inner_class prototype; add offset_by, make_speculative,
798         combine_with, useless_p, combine_speculation_with and
799         speculation_consistent_p methods.
800         (ipa_polymorphic_call_context::offset_by): New method.
801         (ipa_polymorphic_call_context::useless_p): New method.
803 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
805         PR rtl-optimization/62151
806         * combine.c (can_combine_p): Allow the destination register of INSN
807         to be clobbered in I3.
808         (subst): Do not substitute into clobbers of registers.
810 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
812         PR debug/63342
813         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
814         offset, TARGET_MEM_REF and SSA_NAME.
816         * config/i386/i386.c (expand_vec_perm_palignr): Handle
817         256-bit vectors for TARGET_AVX2.
819         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
820         dfirst permutation.
822         PR target/63428
823         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
824         argument to avx2_permv2ti.
826 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
828         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
830 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
832         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
833         (fmod<mode>3): Ditto.
834         (fpremxf4_i387): Ditto.
835         (reminderxf3): Ditto.
836         (reminder<mode>3): Ditto.
837         (fprem1xf4_i387): Ditto.
839 2014-09-30  Teresa Johnson  <tejohnson@google.com>
841         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
842         duplicate_blocks bitmap.
843         (remove_ctrl_stmt_and_useless_edges): Ditto.
844         (create_block_for_threading): Ditto.
845         (compute_path_counts): New function.
846         (update_profile): Ditto.
847         (recompute_probabilities): Ditto.
848         (update_joiner_offpath_counts): Ditto.
849         (freqs_to_counts_path): Ditto.
850         (clear_counts_path): Ditto.
851         (ssa_fix_duplicate_block_edges): Update profile info.
852         (ssa_create_duplicates): Pass new parameter.
853         (ssa_redirect_edges): Remove old profile update.
854         (thread_block_1): New duplicate_blocks bitmap,
855         remove old profile update.
856         (thread_single_edge): Pass new parameter.
858 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
860         PR middle-end/62120
861         * varasm.c (decode_reg_name_and_count): Check availability for
862         registers from ADDITIONAL_REGISTER_NAMES.
864 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
866         PR plugins/63410
867         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
868         (PLUGIN_HEADERS): Add pass-instances.def.
870 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
872         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
873         iterator.
874         * config/aarch64/aarch64-simd.md
875         (aarch64_sqdmull_laneq<mode>): Expand iterator.
876         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
877         (vqdmulls_lane_s32): Fix return type.
878         (vqdmulls_laneq_s32): New.
880 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
882         PR inline-asm/63282
883         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
884         or invert_jump_1 if jump isn't any_condjump_p.
886 2014-09-30  Terry Guo  <terry.guo@arm.com>
888         * config/arm/arm-cores.def (cortex-m7): New core name.
889         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
890         (fpv5-d16): Ditto.
891         * config/arm/arm-tables.opt: Regenerated.
892         * config/arm/arm-tune.md: Regenerated.
893         * config/arm/arm.h (TARGET_VFP5): New macro.
894         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
895         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
896         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
897         * doc/invoke.texi: Document new cpu and fpu names.
899 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
901         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
902         before sinking insn.
904 2014-09-30  David Sherwood  <david.sherwood@arm.com>
906         * ira-int.h (ira_allocno): Add "wmode" field.
907         * ira-build.c (create_insn_allocnos): Add new "parent" function
908         parameter.
909         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
910         that cannot be accessed in wmode.
912 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
914         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
915         integer overflow.
917 2014-09-29  Andi Kleen  <ak@linux.intel.com>
919         * opts.c (print_filtered_help): Print --param min/max/default
920         with -Q.
922 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
924         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
926 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
928         * tree-vrp.c (get_single_symbol): New function.
929         (build_symbolic_expr): Likewise.
930         (symbolic_range_based_on_p): New predicate.
931         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
932         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
933         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
934         operand is symbolic and based on the other operand.
936 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
938         * config/microblaze/microblaze.md (call_internal1): Use VOID
939         instead of SI to fix "((void (*)(void)) 0)()" issue
941 2014-09-29  Nick Clifton  <nickc@redhat.com>
943         * config/msp430/msp430.c (msp430_expand_prologue): Return a
944         CLOBBER rtx for naked functions.
945         (msp430_expand_epilogue): Likewise.
946         (msp430_use_f5_series_hwmult): Cache result.
947         (use_32bit_hwmult): Cache result.
948         (msp430_no_hwmult): New function.
949         (msp430_output_labelref): Use it.
951 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
953         PR middle-end/63247
954         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
955         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
956         use the alignment of avar rather than ovar.
958 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
960         * config/pa/pa.c (pa_output_function_epilogue): Only update
961         last_address when a nonnote insn is found.
963 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
965         PR ipa/60665
966         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
968 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
970         PR ipa/62121
971         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
972         fix pasto in checking array size.
974 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
976         PR middle-end/35545
977         * passes.def (pass_tracer): Move before last dominator pass.
979 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
981         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
982         users.
983         (run_attempt): Handle errors of "pex_run" invocation.
985 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
987         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
988         (CC1_SPEC): Define.
989         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
990         (TARGET_ASAN_SHADOW_OFFSET): Define.
992 2014-09-26  Martin Liska  <mliska@suse.cz>
994         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
995         introduced.
996         * cgraph.h: Likewise.
997         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
998         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
999         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
1000         * tree-ssa-alias.h: Likewise.
1002 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
1003             Max Ostapenko  <m.ostapenko@partner.samsung.com>
1005         * common.opt: New option.
1006         * doc/invoke.texi: Describe new option.
1007         * gcc.c (execute): Don't free first string early, but at the end
1008         of the function.  Call retry_ice if compiler exited with
1009         ICE_EXIT_CODE.
1010         (main): Factor out common code.
1011         (print_configuration): New function.
1012         (files_equal_p): Likewise.
1013         (check_repro): Likewise.
1014         (run_attempt): Likewise.
1015         (do_report_bug): Likewise.
1016         (append_text): Likewise.
1017         (try_generate_repro): Likewise
1019 2014-09-25  Andi Kleen  <ak@linux.intel.com>
1021         * config/i386/i386.c (x86_print_call_or_nop): New function.
1022         (x86_function_profiler): Support -mnop-mcount and
1023         -mrecord-mcount.
1024         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
1025         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
1027 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1029         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
1030         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
1031         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
1032         Remove.
1034 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1036         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
1037         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
1038         types_odr_comparable): Declare.
1039         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
1040         * ipa-polymorphic-call.c: New file.
1041         (contains_polymorphic_type_p, possible_placement_new,
1042         ipa_polymorphic_call_context::restrict_to_inner_class,
1043         contains_type_p, decl_maybe_in_construction_p,
1044         ipa_polymorphic_call_context::stream_out,
1045         ipa_polymorphic_call_context::debug,
1046         ipa_polymorphic_call_context::stream_in,
1047         ipa_polymorphic_call_context::set_by_decl,
1048         ipa_polymorphic_call_context::set_by_invariant,
1049         walk_ssa_copies,
1050         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1051         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1052         extr_type_from_vtbl_ptr_store, record_known_type
1053         check_stmt_for_type_change,
1054         ipa_polymorphic_call_context::get_dynamic_type): Move here from
1055         ipa-devirt.c
1056         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
1057         and streamer-hooks.h
1058         (contains_polymorphic_type_p, possible_placement_new,
1059         ipa_polymorphic_call_context::restrict_to_inner_class,
1060         contains_type_p, decl_maybe_in_construction_p,
1061         ipa_polymorphic_call_context::stream_out,
1062         ipa_polymorphic_call_context::debug,
1063         ipa_polymorphic_call_context::stream_in,
1064         ipa_polymorphic_call_context::set_by_decl,
1065         ipa_polymorphic_call_context::set_by_invariant,
1066         walk_ssa_copies,
1067         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1068         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1069         extr_type_from_vtbl_ptr_store, record_known_type
1070         check_stmt_for_type_change,
1071         ipa_polymorphic_call_context::get_dynamic_type): Move to
1072         ipa-polymorphic-call.c
1073         (type_all_derivations_known_p, types_odr_comparable,
1074         types_must_be_same_for_odr): Export.
1075         (type_known_to_have_no_deriavations_p): New function.
1076         * Makefile.in: Add ipa-polymorphic-call.c
1078 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1080         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
1081         for better storage.
1082         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
1083         (possible_polymorphic_call_targets): Instead of computing both
1084         speculative and non-speculative answers, do just one at a time.
1085         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
1086         (dump_targets): Break out from ...
1087         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
1088         and non-speculative lists.
1089         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
1090         * ipa-utils.h (possible_polymorphic_call_targets): Update.
1092 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
1094         PR rtl-optimization/63348
1095         * emit-rtl.c (try_split): Do not emit extra barrier.
1097 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
1099         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
1100         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
1101         new predicates.
1102         (aarch64_<sur>shll2_n<mode>): Likewise.
1103         (aarch64_<sur>shr_n<mode>): Likewise.
1104         (aarch64_<sur>sra_n<mode>: Likewise.
1105         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
1106         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
1107         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
1108         * config/aarch64/iterators.md (ve_mode): New.
1109         (offsetlr): Remap to infix text for use in new predicates.
1110         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
1111         (aarch64_simd_shift_imm_hi): Likewise.
1112         (aarch64_simd_shift_imm_si): Likewise.
1113         (aarch64_simd_shift_imm_di): Likewise.
1114         (aarch64_simd_shift_imm_offset_qi): Likewise.
1115         (aarch64_simd_shift_imm_offset_hi): Likewise.
1116         (aarch64_simd_shift_imm_offset_si): Likewise.
1117         (aarch64_simd_shift_imm_offset_di): Likewise.
1118         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
1119         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
1120         (aarch64_simd_shift_imm_bitsize_si): Likewise.
1121         (aarch64_simd_shift_imm_bitsize_di): Likewise.
1123 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
1125         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
1126         new created BB as the intersection of live-in from "old_dest" and
1127         live-out from "bb".
1129 2014-09-25  Felix Yang  <felix.yang@huawei.com>
1131         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
1132         * genautomata.c (merge_states): Ditto.
1134 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
1136         PR target/62218
1137         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
1138         in instruction sequence.
1140 2014-09-25  Nick Clifton  <nickc@redhat.com>
1142         PR target/62218
1143         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
1144         in instruction sequence.
1146 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1148         PR target/63335
1149         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
1150         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
1152 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1153             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1154             Anna Tikhonova  <anna.tikhonova@intel.com>
1155             Ilya Tocar  <ilya.tocar@intel.com>
1156             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1157             Ilya Verbin  <ilya.verbin@intel.com>
1158             Kirill Yukhin  <kirill.yukhin@intel.com>
1159             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1161         * config/i386/sse.md
1162         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
1163         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
1164         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
1165         (define_expand "<avx512>_perm<mode>_mask"): ... this.
1166         Use VI8F_256_512 mode iterator.
1167         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
1168         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
1170 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1171             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1172             Anna Tikhonova  <anna.tikhonova@intel.com>
1173             Ilya Tocar  <ilya.tocar@intel.com>
1174             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1175             Ilya Verbin  <ilya.verbin@intel.com>
1176             Kirill Yukhin  <kirill.yukhin@intel.com>
1177             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1179         * config/i386/sse.md
1180         (define_insn "avx_movshdup256<mask_name>"): Add masking.
1181         (define_insn "sse3_movshdup<mask_name>"): Ditto.
1182         (define_insn "avx_movsldup256<mask_name>"): Ditto.
1183         (define_insn "sse3_movsldup<mask_name>"): Ditto.
1184         (define_insn "vec_dupv2df<mask_name>"): Ditto.
1185         (define_insn "*vec_concatv2df"): Add EVEX version.
1187 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1188             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1189             Anna Tikhonova  <anna.tikhonova@intel.com>
1190             Ilya Tocar  <ilya.tocar@intel.com>
1191             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1192             Ilya Verbin  <ilya.verbin@intel.com>
1193             Kirill Yukhin  <kirill.yukhin@intel.com>
1194             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1196         * config/i386/sse.md
1197         (define_insn "vec_set<mode>_0"): Add EVEX version.
1199 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1200             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1201             Anna Tikhonova  <anna.tikhonova@intel.com>
1202             Ilya Tocar  <ilya.tocar@intel.com>
1203             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1204             Ilya Verbin  <ilya.verbin@intel.com>
1205             Kirill Yukhin  <kirill.yukhin@intel.com>
1206             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1208         * config/i386/sse.md
1209         (define_insn
1210         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
1211         New.
1212         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
1213         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
1214         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
1215         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
1216         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
1217         (define_expand "sse2_cvtpd2ps_mask): New.
1218         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
1219         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
1221 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1222             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1223             Anna Tikhonova  <anna.tikhonova@intel.com>
1224             Ilya Tocar  <ilya.tocar@intel.com>
1225             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1226             Ilya Verbin  <ilya.verbin@intel.com>
1227             Kirill Yukhin  <kirill.yukhin@intel.com>
1228             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1230         * config/i386/i386.c
1231         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
1232         (ufix_notruncv8dfv8si2_mask_round): ... this.
1233         * config/i386/sse.md
1234         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
1235         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
1236         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
1237         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
1238         (define_expand "sse2_cvtpd2dq"): Delete.
1239         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
1240         make 2nd operand const0 vector.
1241         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
1242         Delete.
1243         (define_mode_attr pd2udqsuff): New.
1244         (define_insn
1245         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
1246         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
1247         (define_insn "*avx_cvttpd2dq256_2"): Delete.
1248         (define_expand "sse2_cvttpd2dq"): Ditto.
1249         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
1250         make 2nd operand const0 vector.
1252 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
1254         PR tree-optimization/63341
1255         * tree-vectorizer.h (vect_create_data_ref_ptr,
1256         vect_create_addr_base_for_vector_ref): Add another tree argument
1257         defaulting to NULL_TREE.
1258         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
1259         argument, pass it down to vect_create_addr_base_for_vector_ref.
1260         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
1261         add that to base_offset too if non-NULL.
1262         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
1263         for dr_explicit_realign_optimized set it to vector byte size
1264         - 1 instead of setting offset, pass byte_offset down to
1265         vect_create_data_ref_ptr.
1267 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1269         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
1270         forgotten debug output; canonicalize querries more wtih LTO.
1272 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1274         * cgraph.h (class ipa_polymorphic_call_context): Move here from
1275         ipa-utils.h; add stream_int and stream_out methods.
1276         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
1277         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
1278         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
1279         add CONTEXT.
1280         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1281         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1282         ipa_polymorphic_call_context::clear_speculation,
1283         ipa_polymorphic_call_context::clear_outer_type): Move here from
1284         ipa-utils.h
1285         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
1286         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1287         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1288         ipa_polymorphic_call_context::clear_speculation,
1289         ipa_polymorphic_call_context::clear_outer_type): Likewise.
1290         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
1291         streamer-hooks.h
1292         (ipa_polymorphic_call_context::stream_out): New method.
1293         (ipa_polymorphic_call_context::stream_in): New method.
1294         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
1295         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
1296         OUTER_TYPE.
1297         (ipa_analyze_call_uses): Simplify.
1298         (update_indirect_edges_after_inlining): Do not care about outer_type.
1299         (ipa_write_indirect_edge_info): Update.
1300         (ipa_write_indirect_edge_info): Likewise.
1301         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
1302         (dump_edge_flags): Break out from ...
1303         (cgraph_node::dump): ... here; dump indirect edges.
1305 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1307         * ipa-utils.h (polymorphic_call_context): Add
1308         metdhos dump, debug and clear_outer_type.
1309         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1310         (ipa_polymorphic_call_context::clear_outer_type): New method.
1311         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
1312         * ipa-devirt.c (types_odr_comparable): New function.
1313         (types_must_be_same_for_odr): New function.
1314         (odr_subtypes_equivalent_p): Simplify.
1315         (possible_placement_new): Break out from ...
1316         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
1317         be more cuatious about returning false in cases the context may be
1318         valid in derived type or via placement new.
1319         (contains_type_p): Clear maybe_derived_type
1320         (ipa_polymorphic_call_context::dump): New method.
1321         (ipa_polymorphic_call_context::debug): New method.
1322         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
1323         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
1324         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1325         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
1326         to suceed on all valid cases; remove confused sanity check.
1327         (dump_possible_polymorphic_call_targets): Simplify.
1329 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
1331         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
1332         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
1333         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
1334         varpool.c: Rename all instances of DECL_ABSTRACT to
1335         DECL_ABSTRACT_P.
1337 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1339         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
1340         special handling for stores whose SET_SRC is an UNSPEC (such as
1341         UNSPEC_STVE).
1343 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
1345         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
1346         !REG_P (src) to release more instruction sink opportunities.
1348 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1350         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
1351         move costs for 128-bit types.
1353 2014-09-24  Martin Jambor  <mjambor@suse.cz>
1355         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
1356         when duplicating a PASS_THROUGH jump function when creating a
1357         speculative edge.
1359 2014-09-24  Marek Polacek  <polacek@redhat.com>
1361         PR c/61405
1362         PR c/53874
1363         * asan.c (maybe_instrument_call): Add default case.
1364         * ipa-pure-const.c (special_builtin_state): Likewise.
1365         * predict.c (expr_expected_value_1): Likewise.
1366         * lto-streamer-out.c (write_symbol): Initialize variable.
1368 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1370         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
1371         the lane.
1372         (vmuld_laneq_f64): Likewise.
1373         (vmuls_lane_f32): Likewise.
1374         (vmuls_laneq_f32): Likewise.
1376 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
1378         PR bootstrap/63235
1379         * varpool.c (varpool_node::add): Pass decl attributes
1380         to lookup_attribute.
1382 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
1384         PR sanitizer/63316
1385         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
1387 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1389         PR tree-optimization/63266
1390         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
1391         marker for unknown byte value.
1392         (MARKER_MASK): New macro.
1393         (MARKER_BYTE_UNKNOWN): New macro.
1394         (HEAD_MARKER): New macro.
1395         (do_shift_rotate): Mark bytes with unknown values due to sign
1396         extension when doing an arithmetic right shift. Replace hardcoded
1397         mask for marker by new MARKER_MASK macro.
1398         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
1399         numbers accordingly.
1401 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1402             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1403             Anna Tikhonova  <anna.tikhonova@intel.com>
1404             Ilya Tocar  <ilya.tocar@intel.com>
1405             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1406             Ilya Verbin  <ilya.verbin@intel.com>
1407             Kirill Yukhin  <kirill.yukhin@intel.com>
1408             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1410         * config/i386/sse.md
1411         (define_insn
1412         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
1413         Add masking.
1414         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
1415         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
1417 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1418             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1419             Anna Tikhonova  <anna.tikhonova@intel.com>
1420             Ilya Tocar  <ilya.tocar@intel.com>
1421             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1422             Ilya Verbin  <ilya.verbin@intel.com>
1423             Kirill Yukhin  <kirill.yukhin@intel.com>
1424             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1426         * config/i386/sse.md
1427         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
1428         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
1429         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
1430         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
1431         (define_expand "avx512vl_pshuflw_mask"): New.
1432         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
1433         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
1434         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
1435         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
1436         (define_expand "avx512vl_pshufhw_mask"): New.
1437         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
1439 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1440             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1441             Anna Tikhonova  <anna.tikhonova@intel.com>
1442             Ilya Tocar  <ilya.tocar@intel.com>
1443             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1444             Ilya Verbin  <ilya.verbin@intel.com>
1445             Kirill Yukhin  <kirill.yukhin@intel.com>
1446             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1448         * config/i386/i386.c
1449         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
1450         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
1451         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
1452         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
1453         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
1454         * config/i386/sse.md
1455         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
1456         (define_insn
1457         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
1458         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
1459         (define_insn
1460         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
1461         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
1462         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
1463         (define_expand "avx512vl_pshufd_mask"): New.
1464         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
1466 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1467             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1468             Anna Tikhonova  <anna.tikhonova@intel.com>
1469             Ilya Tocar  <ilya.tocar@intel.com>
1470             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1471             Ilya Verbin  <ilya.verbin@intel.com>
1472             Kirill Yukhin  <kirill.yukhin@intel.com>
1473             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1475         * config/i386/i386.c
1476         (CODE_FOR_avx2_extracti128): Rename to ...
1477         (CODE_FOR_avx_vextractf128v4di): this.
1478         (CODE_FOR_avx2_inserti128): Rename to ...
1479         (CODE_FOR_avx_vinsertf128v4di): this.
1480         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
1481         CODE_FOR_avx_vextractf128v4di.
1482         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
1483         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
1484         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
1485         CODE_FOR_avx512vl_vinsertv8si.
1486         * config/i386/sse.md
1487         (define_expand
1488         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
1489         AVX512_VEC mode iterator.
1490         (define_insn
1491         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
1492         Ditto.
1493         (define_expand
1494         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
1495         AVX512_VEC_2 mode iterator.
1496         (define_insn "vec_set_lo_<mode><mask_name>"): New.
1497         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1498         (define_expand "avx512vl_vinsert<mode>"): Ditto.
1499         (define_insn "avx2_vec_set_lo_v4di"): Delete.
1500         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
1501         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
1502         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1503         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
1504         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1505         (define_expand "avx2_extracti128"): Delete.
1506         (define_expand "avx2_inserti128"): Ditto.
1508 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1509             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1510             Anna Tikhonova  <anna.tikhonova@intel.com>
1511             Ilya Tocar  <ilya.tocar@intel.com>
1512             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1513             Ilya Verbin  <ilya.verbin@intel.com>
1514             Kirill Yukhin  <kirill.yukhin@intel.com>
1515             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1517         * config/i386/sse.md
1518         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
1519         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
1520         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
1521         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
1522         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
1523         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
1524         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
1525         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
1526         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
1527         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
1528         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
1529         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
1530         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
1532 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1534         PR rtl-optimization/63210
1535         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
1536         HARD_REGNO is not available for CONFLICT_A.
1538 2014-09-23  Andi Kleen  <ak@linux.intel.com>
1540         * cgraph.h (symtab_node): Add no_reorder attribute.
1541         (symbol_table::output_asm_statements): Remove.
1542         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
1543         (cgraph_node::create_version_clone): Dito.
1544         (symbol_table::output_asm_statements): Remove.
1545         * trans-mem.c (ipa_tm_create_version_alias): Dito.
1546         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
1547         (output_in_order): Add no_reorder flag. Only handle no_reorder
1548         nodes when set.
1549         (symbol_table::compile): Add separate pass for no_reorder nodes.
1550         (process_common_attributes): Set no_reorder flag in symtab node.
1551         Add node argument.
1552         (process_function_and_variable_attributes): Pass symtab nodes to
1553         process_common_attributes.
1554         * doc/extend.texi (no_reorder): Document no_reorder attribute.
1555         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
1556         (lto_output_varpool_node): Dito.
1557         (input_overwrite_node): Dito.
1558         (input_varpool_node): Dito.
1559         * varpool.c (varpool_node::add): Set no_reorder attribute.
1560         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
1561         (symbol_table::output_variables): Dito.
1562         * symtab.c (symtab_node::dump_base): Print no_reorder.
1564 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
1566         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
1567         be INVALID_REGNUM.
1569 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
1571         * configure: Regenerate.
1573 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
1575         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
1576         when result_mode == shift_mode.
1578 2014-09-23  Kostya Serebryany  <kcc@google.com>
1580         Update to match the changed asan API.
1581         * asan.c (asan_global_struct): Update the __asan_global definition
1582         to match the new API.
1583         (asan_add_global): Ditto.
1584         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
1585         to __asan_init_v4.
1587 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1589         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
1590         refine the constraints used on 32/64-bit floating point moves.
1591         (f32_av): Likewise.
1592         (f64_vsx): Likewise.
1593         (f64_dm): Likewise.
1594         (f64_av): Likewise.
1595         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
1596         (BOOL_REGS_OP1): Likewise.
1597         (BOOL_REGS_OP2): Likewise.
1598         (BOOL_REGS_UNARY): Likewise.
1599         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
1600         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
1601         for moves involving VSX registers.  Do not use constraints that
1602         target VSX registers for decimal types.
1603         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
1604         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
1606 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
1608         * tree.h (int_bit_position): Turn into inline function;
1609         implement using wide int.
1610         * tree.c (int_bit_position): Remove.
1612 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
1614         PR bootstrap/63280
1615         * target-globals.c (target_globals::~target_globals): Fix location
1616         of ira_int destruction.
1618 2014-09-23  Renlin Li  <renlin.li@arm.com>
1620         * config/aarch64/aarch64.md (return): New.
1621         (simple_return): Likewise.
1622         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
1623         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
1625 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
1627         * common/config/aarch64/aarch64-common.c:
1628         (default_options aarch_option_optimization_table):
1629         Default to -fsched-pressure.
1631 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
1633         * cfgcleanup.c (try_optimize_cfg): Do not remove label
1634         with LABEL_PRESERVE_P flag set.
1636 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1637             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1638             Anna Tikhonova  <anna.tikhonova@intel.com>
1639             Ilya Tocar  <ilya.tocar@intel.com>
1640             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1641             Ilya Verbin  <ilya.verbin@intel.com>
1642             Kirill Yukhin  <kirill.yukhin@intel.com>
1643             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1645         * config/i386/sse.md
1646         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
1647         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
1648         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
1649         (define_insn "sse2_shufpd_v2df_mask"): New.
1651 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1652             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1653             Anna Tikhonova  <anna.tikhonova@intel.com>
1654             Ilya Tocar  <ilya.tocar@intel.com>
1655             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1656             Ilya Verbin  <ilya.verbin@intel.com>
1657             Kirill Yukhin  <kirill.yukhin@intel.com>
1658             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1660         * config/i386/sse.md
1661         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
1662         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
1663         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
1664         (define_insn "sse_shufps_v4sf_mask"): New.
1666 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1667             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1668             Anna Tikhonova  <anna.tikhonova@intel.com>
1669             Ilya Tocar  <ilya.tocar@intel.com>
1670             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1671             Ilya Verbin  <ilya.verbin@intel.com>
1672             Kirill Yukhin  <kirill.yukhin@intel.com>
1673             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1675         * config/i386/sse.md
1676         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
1677         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
1678         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
1679         (define_insn "unpcklps128_mask"): New.
1681 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1682             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1683             Anna Tikhonova  <anna.tikhonova@intel.com>
1684             Ilya Tocar  <ilya.tocar@intel.com>
1685             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1686             Ilya Verbin  <ilya.verbin@intel.com>
1687             Kirill Yukhin  <kirill.yukhin@intel.com>
1688             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1690         * config/i386/sse.md
1691         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
1692         (define_insn "avx512vl_unpckhpd128_mask"): New.
1693         (define_expand "avx_movddup256<mask_name>"): Add masking.
1694         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
1695         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
1696         (define_insn "avx512vl_unpcklpd128_mask"): New.
1698 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
1700         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1701         * doc/tm.texi: Regenerate.
1702         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
1703         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1704         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1705         Remove.
1706         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1707         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1708         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1709         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1710         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1711         Remove.
1712         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1713         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1714         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1715         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1716         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1717         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1718         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1719         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1720         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1721         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1722         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1723         Remove.
1725 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
1727         * tree-ssa-ccp.c (prop_value_d): Rename to ...
1728         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
1729         * ipa-prop.c (struct type_change_info): Rename to ...
1730         (prop_type_change_info): ... this; update uses.
1731         * ggc-page.c (globals): Rename to ...
1732         (static struct ggc_globals): ... this; update uses.
1733         * tree-ssa-loop-im.c (mem_ref): Rename to ...
1734         (im_mem_ref): ... this; update uses.
1735         * ggc-common.c (loc_descriptor): Rename to ...
1736         (ggc_loc_descriptor): ... this; update uses.
1737         * lra-eliminations.c (elim_table): Rename to ...
1738         (lra_elim_table): ... this; update uses.
1739         * bitmap.c (output_info): Rename to ...
1740         (bitmap_output_info): ... this; update uses.
1741         * gcse.c (expr): Rename to ...
1742         (gcse_expr) ... this; update uses.
1743         (occr): Rename to ...
1744         (gcse_occr): .. this; update uses.
1745         * tree-ssa-copy.c (prop_value_d): Rename to ...
1746         (prop_value_t): ... this.
1747         * predict.c (block_info_def): Rename to ...
1748         (block_info): ... this; update uses.
1749         (edge_info_def): Rename to ...
1750         (edge_info): ... this; update uses.
1751         * profile.c (bb_info): Rename to ...
1752         (bb_profile_info): ... this; update uses.
1753         * alloc-pool.c (output_info): Rename to ...
1754         (pool_output_info): ... this; update uses.
1755         * ipa-cp.c (topo_info): Rename to ..
1756         (ipa_topo_info): ... this; update uses.
1757         * tree-nrv.c (nrv_data): Rename to ...
1758         (nrv_data_t): ... this; update uses.
1759         * ipa-split.c (bb_info): Rename to ...
1760         (split_bb_info): ... this one.
1761         * profile.h (edge_info): Rename to ...
1762         (edge_profile_info): ... this one; update uses.
1763         * dse.c (bb_info): Rename to ...
1764         (dse_bb_info): ... this one; update uses.
1765         * cprop.c (occr): Rename to ...
1766         (cprop_occr): ... this one; update uses.
1767         (expr): Rename to ...
1768         (cprop_expr): ... this one; update uses.
1770 2014-09-22  Jason Merrill  <jason@redhat.com>
1772         * Makefile.in (check-parallel-%): Add @.
1774 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1776         * config/aarch64/geniterators.sh: New.
1777         * config/aarch64/iterators.md (VDQF_DF): New.
1778         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
1779         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
1781 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
1783         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
1784         -lnosys when -msim absent.
1786 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
1788         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1790 2014-09-22  Richard Biener  <rguenther@suse.de>
1792         * gimplify.c (gimplify_init_constructor): Do not leave
1793         non-GIMPLE vector constructors around.
1794         * tree-cfg.c (verify_gimple_assign_single): Verify that
1795         CONSTRUCTORs have gimple elements.
1797 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
1799         PR debug/63328
1800         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
1801         insert a debug source bind stmt setting DEBUG_EXPR_DECL
1802         instead of a normal gimple assignment stmt.
1804 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1806         * config/bfin/bfin.md: Fix use of constraints in define_split.
1808 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1810         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
1811         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
1813 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1815         * hard-reg-set.h: Include hash-table.h.
1816         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
1817         field.
1818         * target-globals.c (target_globals::~target_globals): Call
1819         hard_regs->finalize.
1820         * rtl.h (subreg_shape): New structure.
1821         (shape_of_subreg): New function.
1822         (simplifiable_subregs): Declare.
1823         * reginfo.c (simplifiable_subreg): New structure.
1824         (simplifiable_subregs_hasher): Likewise.
1825         (simplifiable_subregs): New function.
1826         (invalid_mode_changes): Delete.
1827         (alid_mode_changes, valid_mode_changes_obstack): New variables.
1828         (record_subregs_of_mode): Remove subregs_of_mode parameter.
1829         Record valid mode changes in valid_mode_changes.
1830         (find_subregs_of_mode): Remove subregs_of_mode parameter.
1831         Update calls to record_subregs_of_mode.
1832         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
1833         handling.  Initialize new variables.  Update call to
1834         find_subregs_of_mode.
1835         (invalid_mode_change_p): Check new variables instead of
1836         invalid_mode_changes.
1837         (finish_subregs_of_mode): Finalize new variables instead of
1838         invalid_mode_changes.
1839         (target_hard_regs::finalize): New function.
1840         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
1841         even when CLASS_CANNOT_CHANGE_MODE is undefined.
1843 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1845         * combine.c (subst): Use simplify_subreg_regno rather than
1846         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
1848 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1850         * rtl.h (subreg_info): Expand commentary
1851         * rtlanal.c (subreg_get_info): Likewise.
1853 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1855         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1856         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1857         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
1859 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1861         * config/arm/arm.c: #include "tm-constrs.h"
1862         (thumb1_size_rtx_costs): Adjust rtx costs.
1864 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
1866         * configure.ac (target_header_dir): Move block defining
1867         this to before the block setting inhibit_libc.
1868         (inhibit_libc): When considering $with_headers, just
1869         check it it's explicitly "no".  If not, also check if
1870         $target_header_dir/stdio.h is present.  If not, set
1871         inhibit_libc=true.
1872         * configure: Regenerate.
1874 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
1876         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
1878 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1880         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
1881         insn for divides by integer powers of two.
1882         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
1883         (mod<mode>3): Fix formatting.
1884         (three anonymous define_insn and two define_split): Delete.
1886 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1888         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
1889         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
1890         (floatdisf2_internal2): Ditto.
1891         (ashrdi3_no_power): Ditto.  Fix formatting.
1893 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1895         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1896         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
1897         Tidy.
1899 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1901         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
1902         constant, use addsi3 directly.
1903         (three anonymous define_insn, two define_split): Delete.
1904         (sub<mode>3): Move.  Do not allow constant second operand.
1905         Generate different insn for constant first operand.
1906         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
1907         (subf<mode>3_imm): New.
1908         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
1909         (*plus_ltu<mode>): Only handle registers.
1910         (*plus_ltu<mode>_1): New.  Handle integer third operand.
1911         (*plus_gtu<mode>): Only handle registers.
1912         (*plus_gtu<mode>_1): New.  Handle integer third operand.
1914 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1916         * config/rs6000/rs6000.md (iorxor): New code_iterator.
1917         (iorxor): New code_attr.
1918         (IORXOR): New code_attr.
1919         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
1920         (ior<mode>3, xor<mode>3): Delete.
1921         (<iorxor><mode>3): New.
1922         (splitter for "big" integer ior, xor): New.
1923         (*bool<mode>3): Move.  Also handle AND.
1924         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
1925         (splitter for "big" integer ior, xor): Delete.
1927 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1929         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
1930         (two anonymous define_insn and two define_split): Delete.
1931         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
1933 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1935         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
1936         (two anonymous define_insn and two define_split): Delete.
1937         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
1939 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1941         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
1943 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1945         * config/rs6000/predicates.md (ca_operand): Allow subregs.
1946         (input_operand): Do not allow ca_operand.
1947         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
1948         carry bit, allow SImode and Pmode.
1949         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
1951 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
1953         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
1954         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
1955         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
1956         (*call_rex64_ms_sysv): Remove.
1957         (*call_value_rex64_ms_sysv): Ditto.
1958         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1960 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
1962         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1963         operand 3 to "CnL".
1965 2014-09-20  Andreas Schwab  <schwab@suse.de>
1967         * config/ia64/ia64.md: Remove constraints from define_split
1968         patterns.
1970 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1972         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1973         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1974         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1975         (get_dynamic_type): Remove.
1976         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1977         (clear_speculation): Bring to ipa-deivrt.h
1978         (get_class_context): Rename to ...
1979         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1980         (contains_type_p): Update.
1981         (get_dynamic_type): Rename to ...
1982         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1983         (possible_polymorphic_call_targets): UPdate.
1984         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1985         * ipa-prop.c (ipa_analyze_call_uses): Update.
1987 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1989         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1990         privatize dynamic TLS variables.
1992 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1994         * diagnostic.c (warning_n): New function.
1995         * diagnostic-core.h (warning_n): Declare.
1996         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1997         output dynamic counts when available.
1999 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2001         PR tree-optimization/63255
2002         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
2003         issue in setting body_removed flag.
2005 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2007         PR c++/61825
2008         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
2009         that visibility change is possible
2010         (handle_weakref_attribute): Likewise.
2011         * cgraph.h (symtab_node): Add method get_create and
2012         field refuse_visibility_changes.
2013         (symtab_node::get_create): New method.
2014         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
2015         * varasm.c (mark_weak): Verify that visibility change is
2016         possible.
2018 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2020         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
2021         for base_reg_operand to be common between LO_SUM and PLUS.
2022         (fusion_gpr_mem_combo): New predicate to match a fused address
2023         that combines the addis and memory offset address.
2025         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
2026         calling signature.
2027         (emit_fusion_gpr_load): Likewise.
2029         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
2030         signature to pass each argument separately, rather than
2031         using an operands array.  Rewrite the insns found by peephole2 to
2032         be a single insn, rather than hoping the insns will still be
2033         together when the peephole pass is done.  Drop being called via a
2034         normal peephole.
2035         (emit_fusion_gpr_load): Change calling signature to be called from
2036         the fusion_gpr_load_<mode> insns with a combined memory address
2037         instead of the peephole pass passing the addis and offset
2038         separately.
2040         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
2041         fusion.
2042         (power8 fusion peephole): Drop support for doing power8 via a
2043         normal peephole that was created by the peephole2 pass.
2044         (power8 fusion peephole2): Create a new insn with the fused
2045         address, so that the fused operation is kept together after
2046         register allocation is done.
2047         (fusion_gpr_load_<mode>): Likewise.
2049 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2051         PR lto/63286
2052         * tree.c (need_assembler_name_p): Do not mangle variadic types.
2054 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
2056         * recog.c (scratch_operand): Do not simply allow all hard registers:
2057         only allow those that are allocatable.
2059 2014-09-19  Felix Yang  <felix.yang@huawei.com>
2061         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
2062         comments and fix spacing to conform to coding style.
2064 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2066         * genrecog.c (validate_pattern): Allow empty constraints in
2067         a match_scratch.
2069 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
2071         * dwarf2out.c (decl_ultimate_origin): Update comment.
2072         * tree.c (block_ultimate_origin): Same.
2074 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2076         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2077         Update GCC version name to GCC 5.
2078         (rs6000_function_arg_boundary): Likewise.
2079         (rs6000_function_arg): Likewise.
2081 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2083         * config/sh/sh.md: Fix use of constraints in define_split.
2085 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
2087         PR ipa/61998
2088         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
2090 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2092         * doc/md.texi (Modifiers): Consistently use "read/write"
2093         nomenclature rather than "input/output".
2094         * genrecog.c (constraints_supported_in_insn_p): New.
2095         (validate_pattern): If needed, also check constraints on
2096         MATCH_SCRATCH operands.
2097         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
2098         operands with no '=' or '+' modifier.
2100 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2102         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
2103         scratch register as written.
2105 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2107         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
2108         assignment.
2110 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2112         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
2113         expanders.
2115 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2117         PR target/62662
2118         * config/s390/s390.c (s390_emit_epilogue): When doing the return
2119         address load optimization force s390_optimize_prologue to leave it
2120         that way.  Only do the optimization if we already decided to push
2121         r14 into a stack slot.
2123 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
2125         * asan.c (build_check_stmt): Alignment arg was added.
2126         (asan_expand_check_ifn): Optimization for alignment >= 8.
2128 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2130         * config/i386/vxworksae.h: Remove obsolete definitions.
2131         (STACK_CHECK_PROTECT): Define.
2132         * config/i386/vx-common.h: Remove.  Merge contents within
2133         config/i386/vxworks.h.
2134         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
2135         i386/vx-common.h.
2137 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2139         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
2140         * config/rs6000/t-vxworksmils: New file.
2141         * config/rs6000/vxworksmils.h: New file.
2143 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2145         * varasm.c (default_section_type_flags): Flag .persistent.bss
2146         sections as SECTION_BSS.
2148 2014-09-19  Nick Clifton  <nickc@redhat.com>
2150         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
2151         pop'ed registers so that DCE does not eliminate them.
2153 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
2155         PR lto/63298
2156         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
2158 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
2160         * system.h (LIBGCC2_TF_CEXT): Poison.
2161         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
2162         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
2163         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
2164         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
2165         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
2166         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
2167         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
2168         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
2169         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
2171 2014-09-19  Kito Cheng  <kito@0xlab.org>
2173         * except.h: Fix header guard.
2174         * addresses.h: Add missing header guard.
2175         * cfghooks.h: Likewise.
2176         * collect-utils.h: Likewise.
2177         * collect2-aix.h: Likewise.
2178         * conditions.h: Likewise.
2179         * cselib.h: Likewise.
2180         * dwarf2asm.h: Likewise.
2181         * graphds.h: Likewise.
2182         * graphite-scop-detection.h: Likewise.
2183         * gsyms.h: Likewise.
2184         * hw-doloop.h: Likewise.
2185         * incpath.h: Likewise.
2186         * ipa-inline.h: Likewise.
2187         * ipa-ref.h: Likewise.
2188         * ira-int.h: Likewise.
2189         * ira.h: Likewise.
2190         * lra-int.h: Likewise.
2191         * lra.h: Likewise.
2192         * lto-section-names.h: Likewise.
2193         * read-md.h: Likewise.
2194         * reload.h: Likewise.
2195         * rtl-error.h: Likewise.
2196         * sdbout.h: Likewise.
2197         * targhooks.h: Likewise.
2198         * tree-affine.h: Likewise.
2199         * xcoff.h: Likewise.
2200         * xcoffout.h: Likewise.
2202 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
2204         PR debug/63285
2205         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
2206         if advance != 0.
2208 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
2210         PR target/61360
2211         * lra.c (lra): Call recog_init.
2213 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
2215         PR c++/62017
2216         * asan.c (transform_statements): Don't instrument clobber statements.
2218 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2220         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
2221         to neon_load1_1reg<q>.
2223 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
2225         PR debug/63284
2226         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
2227         if there are only debug stmts after the noreturn call, instead
2228         remove the debug stmts.
2230 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
2232         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
2233         (odr_types_equivalent_p): Use pair hash.
2234         (odr_subtypes_equivalent_p): Likewise, do structural compare
2235         on ODR types that may be mismatched.
2236         (warn_odr): Support warning when only one field is given.
2237         (odr_types_equivalent_p): Strenghten comparsions made;
2238         support VOIDtype.
2239         (add_type_duplicate): Update VISITED hash set.
2241 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2243         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
2244         Enable selection of 'posix' or no thread model.
2246 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
2248         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
2249         when architecture is older than ARMv7.
2251 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
2253         PR target/61853
2254         * config/pa/pa.c (pa_function_value): Directly handle aggregates
2255         that fit exactly in a word or double word.
2257 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
2259         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
2260         zmm/k regs support.
2262 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2263             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2264             Anna Tikhonova  <anna.tikhonova@intel.com>
2265             Ilya Tocar  <ilya.tocar@intel.com>
2266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2267             Ilya Verbin  <ilya.verbin@intel.com>
2268             Kirill Yukhin  <kirill.yukhin@intel.com>
2269             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2271         * config/i386/i386.c
2272         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
2273         * config/i386/sse.md
2274         (define_mode_iterator VI48F_256): New.
2275         (define_mode_attr extract_type): Ditto.
2276         (define_mode_attr extract_suf): Ditto.
2277         (define_mode_iterator AVX512_VEC): Ditto.
2278         (define_expand
2279         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
2280         AVX512_VEC.
2281         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
2282         (define_insn
2283         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
2284         Ditto.
2285         (define_mode_attr extract_type_2): Ditto.
2286         (define_mode_attr extract_suf_2): Ditto.
2287         (define_mode_iterator AVX512_VEC_2): Ditto.
2288         (define_expand
2289         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
2290         AVX512_VEC_2 mode iterator.
2291         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
2292         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
2293         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2294         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2295         (define_split for V16FI mode): Ditto.
2296         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2297         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2298         (define_split for VI8F_256 mode): Ditto.
2299         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
2300         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2301         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2302         (define_split for VI4F_256 mode): Ditto.
2303         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
2304         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
2305         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
2306         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
2307         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
2308         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
2309         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
2310         Update `type' attribute, remove explicit `memory' attribute calculation.
2312 2014-09-16  Kito Cheng  <kito@0xlab.org>
2314         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
2315         ira_spilled_reg_stack_slots_num if using lra.
2316         (do_reload): Remove release ira_spilled_reg_stack_slots part.
2317         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
2318         make sure not using lra.
2319         (ira_reuse_stack_slot): Likewise.
2320         (ira_mark_new_stack_slot): Likewise.
2322 2014-09-15  Andi Kleen  <ak@linux.intel.com>
2324         * function.c (allocate_struct_function): Force
2325         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
2326         profiling is disabled.
2328 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
2330         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
2331         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
2332         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
2333         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
2334         macro with statically checked member functions.
2335         * rtl.h (rtx_insn::deleted): New method.
2336         (rtx_insn::set_deleted): Likewise.
2337         (rtx_insn::set_undeleted): Likewise.
2338         (INSN_DELETED_P): Remove.
2340 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
2342         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
2343         result of emit_jump_insn_before to a new variable.
2344         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
2345         (mark_jump_label_1): Likewise.
2346         (mark_jump_label_asm): Likewise.
2347         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
2348         * rtl.h (mark_jump_label): Adjust.
2350 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
2352         * Makefile.in (dg_target_exps): Remove.
2353         (check_gcc_parallelize): Change to just an upper bound number.
2354         (check-%-subtargets): Always print the non-parallelized goals.
2355         (check_p_vars, check_p_comma, check_p_subwork): Remove.
2356         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
2357         check_p_numbers3, check_p_numbers4, check_p_numbers5,
2358         check_p_numbers6): New variables.
2359         (check_p_numbers): Set to sequence from 1 to 9999.
2360         (check_p_subdirs): Set to sequence from 1 to minimum of
2361         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
2362         or 128.
2363         (check-%, check-parallel-%): Rewritten so that for parallelized
2364         testing each job runs all the *.exp files, with
2365         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
2367 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2369         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
2370         rtx to rtx_insn *.
2371         (arc_sets_cc_p): Likewise.
2372         * config/arc/arc.c (arc_print_operand): Use methods of
2373         "final_sequence" for clarity, and to enable strengthening of
2374         locals "jump" and "delay" from rtx to rtx_insn *.
2375         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
2376         rtx_insn *; use method of rtx_sequence for typesafety.
2377         (arc_get_insn_variants): Use insn method of rtx_sequence for
2378         typesafety.
2379         (arc_pad_return): Likewise.
2380         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
2381         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
2382         dyn_cast to rtx_sequence *, using insn method for typesafety.
2383         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
2384         rtx_sequence * and use insn method when invoking get_attr_length.
2385         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
2386         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
2387         rtx_sequence *, introducing a local "seq", using its insn method
2388         from typesafety and clarity.
2389         (add_sched_insns_for_speculation): Strengthen local "next" from
2390         rtx to rtx_insn *.
2391         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
2392         (predicate_insn): Likewise.
2393         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
2394         second param.
2395         * config/cris/cris.c (cris_notice_update_cc): Likewise.
2396         * config/epiphany/epiphany-protos.h
2397         (extern void epiphany_insert_mode_switch_use): Likewise for param
2398         "insn".
2399         (get_attr_sched_use_fpu): Likewise for param.
2400         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
2401         Likewise for param "insn".
2402         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
2403         param "insn" of "target_insert_mode_switch_use" callback.
2404         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
2405         (frv_issues_to_branch_unit_p): Likewise.
2406         (frv_pack_insn_p): Likewise.
2407         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
2408         const rtx * (i.e. mutable rtx_def * const *) to
2409         rtx_insn * const *.
2410         * config/i386/i386-protos.h (standard_sse_constant_opcode):
2411         Strengthen first param from rtx to rtx_insn *.
2412         (output_fix_trunc): Likewise.
2413         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
2414         (output_fix_trunc): Likewise.
2415         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
2416         local "insn".
2417         (min_insn_size): Likewise for param "insn".
2418         (get_mem_group): Likewise.
2419         (is_cmp): Likewise.
2420         (get_insn_path): Likewise.
2421         (get_insn_group): Likewise.
2422         (count_num_restricted): Likewise.
2423         (fits_dispatch_window): Likewise.
2424         (add_insn_window): Likewise.
2425         (add_to_dispatch_window): Likewise.
2426         (debug_insn_dispatch_info_file): Likewise.
2427         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
2428         first param.
2429         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
2430         "cmp" and local "prev".
2431         (m32c_output_compare): Likewise for param "insn".
2432         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
2433         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
2434         (define_predicate "large_insn_p"): Likewise.
2435         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
2436         param from rtx to rtx_insn *.
2437         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
2438         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
2439         (m68k_sched_attr_size): Likewise.
2440         (sched_get_opxy_mem_type): Likewise for param "insn".
2441         (m68k_sched_attr_op_mem): Likewise.
2442         (sched_mem_operand_p): Likewise.
2443         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
2444         * config/mep/mep.c (mep_multi_slot): Likewise.
2445         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
2446         first param.
2447         (mips_sync_loop_insns): Likewise.
2448         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
2449         method of "final_sequence" for typesafety.
2450         (mips_process_sync_loop): Strengthen param "insn" from rtx to
2451         rtx_insn *.
2452         (mips_output_sync_loop): Likewise.
2453         (mips_sync_loop_insns): Likewise.
2454         (mips_74k_agen_init): Likewise.
2455         (mips_sched_init): Use NULL rather than NULL_RTX when working with
2456         insns.
2457         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
2458         Strengthen param "insn" from rtx to rtx_insn *.
2459         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
2460         local "insn".
2461         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
2462         param.
2463         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
2464         "insn".  Use method of rtx_sequence for typesafety.
2465         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
2466         rtx_insn *.
2467         (branch_needs_nop_p): Likewise.
2468         (use_skip_p): Likewise.
2469         (pa_insn_refs_are_delayed): Likewise.
2470         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
2471         for locals "insn", "ninsn".
2472         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
2473         "insn".
2474         (is_cracked_insn): Likewise.
2475         (is_branch_slot_insn): Likewise.
2476         (is_nonpipeline_insn): Likewise.
2477         (insn_terminates_group_p): Likewise.
2478         (insn_must_be_first_in_group): Likewise.
2479         (insn_must_be_last_in_group): Likewise.
2480         (force_new_group): Likewise for param "next_insn".
2481         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
2482         "insn".
2483         (s390_sched_score): Likewise.
2484         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
2485         (rtx sfunc_uses_reg): Likewise for sole param.
2486         * config/sh/sh.c (sh_print_operand): Use insn method of
2487         final_sequence for typesafety.
2488         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
2489         Use insn method of final_sequence for typesafety.
2490         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
2491         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
2492         for param.
2493         (eligible_for_return_delay): Likewise.
2494         (eligible_for_sibcall_delay): Likewise.
2495         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
2496         (eligible_for_return_delay): Likewise.
2497         (eligible_for_sibcall_delay): Likewise.
2498         * config/stormy16/stormy16-protos.h
2499         (xstormy16_output_cbranch_hi): Likewise for final param.
2500         (xstormy16_output_cbranch_si): Likewise.
2501         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
2502         (xstormy16_output_cbranch_si): Likewise.
2503         * config/v850/v850-protos.h (notice_update_cc): Likewise.
2504         * config/v850/v850.c (notice_update_cc): Likewise.
2506         * final.c (get_attr_length_1): Strengthen param "insn" and param
2507         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
2508         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
2509         (get_attr_min_length): Likewise.
2510         (shorten_branches): Likewise for signature of locals "length_fun"
2511         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
2512         from a checked cast and use its methods for clarity and to enable
2513         strengthening local "inner_insn" from rtx to rtx_insn *.
2514         * genattr.c (gen_attr): When writing out the prototypes of the
2515         various generated "get_attr_" functions, strengthen the params of
2516         the non-const functions from rtx to rtx_insn *.
2517         Similarly, strengthen the params of insn_default_length,
2518         insn_min_length, insn_variable_length_p, insn_current_length.
2519         (main): Similarly, strengthen the param of num_delay_slots,
2520         internal_dfa_insn_code, insn_default_latency, bypass_p,
2521         insn_latency, min_issue_delay, print_reservation,
2522         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
2523         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
2524         to hook_int_rtx_insn_unreachable.
2525         * genattrtab.c (write_attr_get): When writing out the generated
2526         "get_attr_" functions, strengthen the param "insn" from rtx to
2527         rtx_insn *, eliminating a checked cast.
2528         (make_automaton_attrs): When writing out prototypes of
2529         "internal_dfa_insn_code_", "insn_default_latency_" functions
2530         and the "internal_dfa_insn_code" and "insn_default_latency"
2531         callbacks, strengthen their params from rtx to rtx_insn *
2532         * genautomata.c (output_internal_insn_code_evaluation): When
2533         writing out code, add a checked cast from rtx to rtx_insn * when
2534         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
2535         (output_dfa_insn_code_func): Strengthen param of generated
2536         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
2537         (output_trans_func): Likewise for generated function
2538         "state_transition".
2539         (output_internal_insn_latency_func): When writing out generated
2540         function "internal_insn_latency", rename params from "insn" and
2541         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
2542         locals "insn" and "insn2" as rtx_insn * with checked casts once
2543         we've proven that we're not dealing with const0_rtx.
2544         (output_insn_latency_func):  Strengthen param of generated
2545         function "insn_latency" from rtx to rtx_insn *.
2546         (output_print_reservation_func): Likewise for generated function
2547         "print_reservation".
2548         (output_insn_has_dfa_reservation_p): Likewise for generated
2549         function "insn_has_dfa_reservation_p".
2550         * hooks.c (hook_int_rtx_unreachable): Rename to...
2551         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
2552         from rtx to rtx_insn *.
2553         * hooks.h (hook_int_rtx_unreachable): Likewise.
2554         (extern int hook_int_rtx_insn_unreachable): Likewise.
2555         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
2556         (get_attr_min_length): Likewise.
2557         * recog.c (get_enabled_alternatives): Likewise.
2558         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
2559         * reorg.c (find_end_label): Introduce local rtx "pat" and
2560         strengthen local "insn" from rtx to rtx_insn *.
2561         (redundant_insn): Use insn method of "seq" rather than element for
2562         typesafety; strengthen local "control" from rtx to rtx_insn *.
2563         * resource.c (mark_referenced_resources): Add checked cast to
2564         rtx_insn * within INSN/JUMP_INSN case.
2565         (mark_set_resources): Likewise.
2566         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
2567         rtx to rtx_insn *.
2569 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2571         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
2572         param "label" from rtx to rtx_insn *.
2573         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
2574         and local "op".
2575         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
2576         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
2577         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2578         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2579         * final.c (default_label_align_after_barrier_max_skip): Strengthen
2580         param from rtx to rtx_insn *.
2581         (default_loop_align_max_skip): Likewise.
2582         (default_label_align_max_skip): Likewise.
2583         (default_jump_align_max_skip): Likewise.
2584         * target.def (label_align_after_barrier_max_skip): Likewise.
2585         (loop_align_max_skip): Likewise.
2586         (label_align_max_skip): Likewise.
2587         (jump_align_max_skip): Likewise.
2588         * targhooks.h (default_label_align_after_barrier_max_skip):
2589         Likewise.
2590         (default_loop_align_max_skip): Likewise.
2591         (default_label_align_max_skip): Likewise.
2592         (default_jump_align_max_skip): Likewise.
2594 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2596         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
2597         from const_rtx to const rtx_insn *.  Update union members from rtx
2598         to rtx_insn *.
2599         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
2600         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
2601         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
2602         strengthen both params from const_rtx to const rtx_insn *.
2603         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
2604         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
2605         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
2606         rtx_insn *.
2607         * target.def (can_follow_jump): Strengthen both params from
2608         const_rtx to const rtx_insn *, and update default implementation
2609         from hook_bool_const_rtx_const_rtx_true to
2610         hook_bool_const_rtx_insn_const_rtx_insn_true.
2612 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2614         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
2615         "insn" from rtx to rtx_insn *.
2616         * sched-int.h (deps_start_bb): Likewise for 2nd param.
2618 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2619             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2620             Anna Tikhonova  <anna.tikhonova@intel.com>
2621             Ilya Tocar  <ilya.tocar@intel.com>
2622             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2623             Ilya Verbin  <ilya.verbin@intel.com>
2624             Kirill Yukhin  <kirill.yukhin@intel.com>
2625             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2627         * config/i386/sse.md
2628         (define_insn "vcvtph2ps<mask_name>"): Add masking.
2629         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
2630         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
2631         (define_expand "vcvtps2ph_mask"): New.
2632         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
2633         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
2634         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
2636 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2637             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2638             Anna Tikhonova  <anna.tikhonova@intel.com>
2639             Ilya Tocar  <ilya.tocar@intel.com>
2640             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2641             Ilya Verbin  <ilya.verbin@intel.com>
2642             Kirill Yukhin  <kirill.yukhin@intel.com>
2643             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2645         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
2646         New.
2647         (define_mode_iterator VI24_AVX512BW_1): Ditto.
2648         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
2649         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
2650         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
2651         also for TARGET_AVX512VL.
2652         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
2654 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
2656         * doc/install.texi (Options specification): add
2657         --disable-libsanitizer item.
2659 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
2660             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2662         PR target/61407
2663         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
2664         and above.
2665         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
2666         kernel version check to avoid incrementing it after every major OS X
2667         release.
2668         (darwin_default_min_version): Avoid static memory buffer.
2670 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
2672         * tree.c (need_assembler_name_p): Store C++ type mangling only
2673         for aggregates.
2675 2014-09-13  Marek Polacek  <polacek@redhat.com>
2677         * tree.c (protected_set_expr_location): Don't check whether T is
2678         non-null here.
2680 2014-09-12  DJ Delorie  <dj@redhat.com>
2682         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
2683         (extend_and_shift1_hipsi2): Likewise.
2684         (extend_and_shift2_hipsi2): Likewise.
2686 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
2688         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
2689         with NULL when dealing with an insn.
2690         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
2691         from rtx to rtx_insn *.
2692         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
2693         const_rtx to const rtx_insn *.
2694         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
2696 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
2698         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
2699         assert.
2701 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
2703         * target.def (libgcc_floating_mode_supported_p): New hook.
2704         * targhooks.c (default_libgcc_floating_mode_supported_p): New
2705         function.
2706         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
2707         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
2708         (LIBGCC2_HAS_TF_MODE): Remove.
2709         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
2710         * doc/tm.texi: Regenerate.
2711         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
2712         machine mode.
2713         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
2714         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
2715         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
2716         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
2717         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2718         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
2719         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
2720         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
2721         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
2722         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
2723         function.
2724         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2725         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2726         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2727         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2728         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2729         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2730         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2731         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
2732         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
2733         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
2734         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2735         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
2736         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
2737         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
2738         Remove.
2739         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
2740         New macro.
2741         (ia64_libgcc_floating_mode_supported_p): New function.
2742         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
2743         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2744         (IA64_NO_LIBGCC_TFMODE): Define.
2745         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
2746         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
2747         macro.
2748         (pdp11_scalar_mode_supported_p): New function.
2749         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
2750         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
2752 2014-09-12  Richard Biener  <rguenther@suse.de>
2754         PR middle-end/63237
2755         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
2757 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
2759         * tree.c (integer_each_onep): New function.
2760         * tree.h (integer_each_onep): Declare it.
2761         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
2762         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
2763         (X & 1) == 0 for vector and complex.
2765 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2767         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
2768         for A57.
2769         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
2770         cost to spilling from integer to FP registers.
2772 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2774         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
2775         move handling.
2776         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
2777         are now handled correctly.
2779 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2781         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
2782         handling of CALLER_SAVE_REGS and POINTER_REGS.
2784 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2786         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
2787         the number of hard registers.
2789 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2790             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2791             Anna Tikhonova  <anna.tikhonova@intel.com>
2792             Ilya Tocar  <ilya.tocar@intel.com>
2793             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2794             Ilya Verbin  <ilya.verbin@intel.com>
2795             Kirill Yukhin  <kirill.yukhin@intel.com>
2796             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2798         * config/i386/sse.md
2799         (define_mode_iterator VI48_AVX512VL): New.
2800         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
2801         "avx512f_vternlog<mode>_maskz" and update mode iterator.
2802         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
2803         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
2804         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
2805         "avx512f_vternlog<mode>_mask" and update mode iterator.
2806         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
2807         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
2808         iterator.
2809         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
2810         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
2811         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
2812         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
2813         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
2814         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
2816 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2817             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2818             Anna Tikhonova  <anna.tikhonova@intel.com>
2819             Ilya Tocar  <ilya.tocar@intel.com>
2820             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2821             Ilya Verbin  <ilya.verbin@intel.com>
2822             Kirill Yukhin  <kirill.yukhin@intel.com>
2823             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2825         * config/i386/sse.md (VI128_256): Delete.
2826         (define_mode_iterator VI124_256): New.
2827         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
2828         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
2829         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
2830         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
2831         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
2832         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
2833         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2834         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
2835         iterator.
2836         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
2837         in presence of AVX-512.
2839 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2840             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2841             Anna Tikhonova  <anna.tikhonova@intel.com>
2842             Ilya Tocar  <ilya.tocar@intel.com>
2843             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2844             Ilya Verbin  <ilya.verbin@intel.com>
2845             Kirill Yukhin  <kirill.yukhin@intel.com>
2846             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2848         * config/i386/sse.md
2849         (define_expand "<avx512>_gathersi<mode>"): Rename from
2850         "avx512f_gathersi<mode>".
2851         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
2852         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
2853         (define_expand "<avx512>_gatherdi<mode>"): Rename from
2854         "avx512f_gatherdi<mode>".
2855         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
2856         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
2857         wide versions.
2858         (define_expand "<avx512>_scattersi<mode>"): Rename from
2859         "avx512f_scattersi<mode>".
2860         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
2861         (define_expand "<avx512>_scatterdi<mode>"): Rename from
2862         "avx512f_scatterdi<mode>".
2863         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
2865 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
2867         * ira.h (ira_finish_once): Delete.
2868         * ira-int.h (target_ira_int::~target_ira_int): Declare.
2869         (target_ira_int::free_ira_costs): Likewise.
2870         (target_ira_int::free_register_move_costs): Likewise.
2871         (ira_finish_costs_once): Delete.
2872         * ira.c (free_register_move_costs): Replace with...
2873         (target_ira_int::free_register_move_costs): ...this new function.
2874         (target_ira_int::~target_ira_int): Define.
2875         (ira_init): Call free_register_move_costs as a member function rather
2876         than a global function.
2877         (ira_finish_once): Delete.
2878         * ira-costs.c (free_ira_costs): Replace with...
2879         (target_ira_int::free_ira_costs): ...this new function.
2880         (ira_init_costs): Call free_ira_costs as a member function rather
2881         than a global function.
2882         (ira_finish_costs_once): Delete.
2883         * target-globals.c (target_globals::~target_globals): Call the
2884         target_ira_int destructor.
2885         * toplev.c: Include lra.h.
2886         (finalize): Call lra_finish_once rather than ira_finish_once.
2888 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
2890         * common.opt (flto-odr-type-merging): New flag.
2891         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
2892         (types_same_for_odr): Likewise.
2893         (odr_subtypes_equivalent_p): Likewise.
2894         (add_type_duplicate): Do not walk type variants.
2895         (register_odr_type): New function.
2896         * ipa-utils.h (register_odr_type): Declare.
2897         (odr_type_p): New function.
2898         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
2899         TYPE_DECLs
2900         * doc/invoke.texi (-flto-odr-type-merging): Document.
2901         * tree.c (need_assembler_name_p): Compute ODR names when asked
2902         for it.
2903         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
2905 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2907         PR target/63228
2908         * config/i386/i386.c (ix86_option_override_internal): Also turn
2909         off OPTION_MASK_ABI_X32 for -m16.
2911 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2913         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
2914         GPR instead of P.
2916 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
2918         PR target/58757
2919         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2920         Directly forward to __*_DENORM_MIN__.
2922 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
2924         * rtl.h (LABEL_REF_LABEL): New macro.
2926         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
2927         of XEXP (, 0), where we know that we have a LABEL_REF.
2928         * cfgbuild.c (make_edges): Likewise.
2929         (purge_dead_tablejump_edges): Likewise.
2930         * cfgexpand.c (convert_debug_memory_address): Likewise.
2931         * cfgrtl.c (patch_jump_insn): Likewise.
2932         * combine.c (distribute_notes): Likewise.
2933         * cse.c (hash_rtx_cb): Likewise.
2934         (exp_equiv_p): Likewise.
2935         (fold_rtx): Likewise.
2936         (check_for_label_ref): Likewise.
2937         * cselib.c (rtx_equal_for_cselib_1): Likewise.
2938         (cselib_hash_rtx): Likewise.
2939         * emit-rtl.c (mark_label_nuses): Likewise.
2940         * explow.c (convert_memory_address_addr_space): Likewise.
2941         * final.c (output_asm_label): Likewise.
2942         (output_addr_const): Likewise.
2943         * gcse.c (add_label_notes): Likewise.
2944         * genconfig.c (walk_insn_part): Likewise.
2945         * genrecog.c (validate_pattern): Likewise.
2946         * ifcvt.c (cond_exec_get_condition): Likewise.
2947         (noce_emit_store_flag): Likewise.
2948         (noce_get_alt_condition): Likewise.
2949         (noce_get_condition): Likewise.
2950         * jump.c (maybe_propagate_label_ref): Likewise.
2951         (mark_jump_label_1): Likewise.
2952         (redirect_exp_1): Likewise.
2953         (rtx_renumbered_equal_p): Likewise.
2954         * lra-constraints.c (operands_match_p): Likewise.
2955         * reload.c (operands_match_p): Likewise.
2956         (find_reloads): Likewise.
2957         * reload1.c (set_label_offsets): Likewise.
2958         * reorg.c (get_branch_condition): Likewise.
2959         * rtl.c (rtx_equal_p_cb): Likewise.
2960         (rtx_equal_p): Likewise.
2961         * rtlanal.c (reg_mentioned_p): Likewise.
2962         (rtx_referenced_p): Likewise.
2963         (get_condition): Likewise.
2964         * sched-vis.c (print_value): Likewise.
2965         * varasm.c (const_hash_1): Likewise.
2966         (compare_constant): Likewise.
2967         (const_rtx_hash_1): Likewise.
2968         (output_constant_pool_1): Likewise.
2970 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2972         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2973         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2974         instead of minus.
2975         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2976         cr6_test_for_lt_reverse): Ditto.
2978 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
2980         PR c++/61489
2981         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2983 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2985         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2986         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2987         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2988         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2989         Delete.
2991         (aarch64_fold_builtin): Remove all reinterpret cases.
2993         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2995         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2997         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2998         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2999         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
3000         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
3001         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
3002         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
3003         aarch64_reinterpretv2df<mode>): Delete.
3005         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
3007         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
3008         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
3009         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
3010         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
3011         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
3012         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
3013         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
3014         vreinterpret_u32_f64): Use cast.
3016         * config/aarch64/iterators.md (VD_RE): Delete.
3018 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
3020         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
3021         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
3022         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
3023         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
3024         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
3025         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
3026         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
3027         Replace inline assembler with __aarch64_vset_lane_any.
3029 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
3031         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
3032         types.
3033         (vmull_high_lane_s32): Likewise.
3034         (vmull_high_lane_u16): Likewise.
3035         (vmull_high_lane_u32): Likewise.
3037 2014-09-11  Jason Merrill  <jason@redhat.com>
3039         PR c++/58678
3040         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
3042 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
3044         PR target/63223
3045         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
3046         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
3047         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
3049 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3050             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3051             Anna Tikhonova  <anna.tikhonova@intel.com>
3052             Ilya Tocar  <ilya.tocar@intel.com>
3053             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3054             Ilya Verbin  <ilya.verbin@intel.com>
3055             Kirill Yukhin  <kirill.yukhin@intel.com>
3056             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3058         * config/i386/sse.md
3059         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
3060         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
3061         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
3062         New.
3063         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
3064         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
3065         iterator.
3066         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3067         New.
3068         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
3069         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
3070         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
3071         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
3072         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
3073         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
3074         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
3075         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
3076         iterator.
3077         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3078         New.
3079         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
3080         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
3081         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
3083 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3085         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
3086         to access removed nodes.
3088 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3090         PR tree-optimization/63186
3091         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
3092         (mark_nonssa_use): Likewise.
3093         (verify_non_ssa_vars): Verify all header blocks for label
3094         definitions.
3096 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3097             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3098             Anna Tikhonova  <anna.tikhonova@intel.com>
3099             Ilya Tocar  <ilya.tocar@intel.com>
3100             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3101             Ilya Verbin  <ilya.verbin@intel.com>
3102             Kirill Yukhin  <kirill.yukhin@intel.com>
3103             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3105         * config/i386/sse.md
3106         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
3107         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
3108         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
3109         "<avx2_avx512f>_permvar<mode><mask_name>".
3110         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
3111         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
3112         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
3113         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
3114         Ditto.
3115         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
3116         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3117         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
3118         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3120 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3122         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
3123         V2DF, V4SF, DF, and DI modes.
3124         (vsx_fmav2df2): Likewise.
3125         (vsx_float_fix_<mode>2): Likewise.
3126         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
3128 2014-09-10  Xinliang David Li  <davidxl@google.com>
3130         PR target/63209
3131         * config/arm/arm.md (movcond_addsi): Handle case where source
3132         and target operands are the same.
3134 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
3136         * final.c (this_is_asm_operands): Strengthen this variable from
3137         rtx to const rtx_insn *.
3138         * output.h (this_is_asm_operands): Likewise.
3139         * rtl-error.c (location_for_asm): Strengthen param "insn" from
3140         const_rtx to const rtx_insn *.
3141         (diagnostic_for_asm): Likewise.
3142         * rtl-error.h (error_for_asm): Likewise.
3143         (warning_for_asm): Likewise.
3145 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
3147         * genextract.c (print_header): When writing out insn_extract to
3148         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
3149         * recog.h (insn_extract): Strengthen the param from rtx to
3150         rtx_insn *.
3152 2014-09-10  Mike Stump  <mikestump@comcast.net>
3154         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
3155         8.6.1.
3157 2014-09-10  Martin Jambor  <mjambor@suse.cz>
3159         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
3160         (analyze): Do not set analyze flag if expand_thunk returns false;.
3161         (create_wrapper): Likewise.
3162         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
3164 2014-09-10  Martin Jambor  <mjambor@suse.cz>
3166         PR ipa/61654
3167         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
3168         new decl properly.  Analyze the new thunk if it is expanded.
3170 2014-09-10  Andreas Schwab  <schwab@suse.de>
3172         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
3173         [USED_FOR_TARGET]: Define.
3175 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
3177         * config/mips/mips.c (mips_secondary_reload_class): Handle
3178         regno < 0 case.
3180 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
3182         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
3183         assignment.
3185 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
3187         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
3188         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
3189         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
3190         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
3191         flag_delete_null_pointer_checks for them.
3192         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3193         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
3194         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
3195         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
3196         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
3197         stmt's iterator.
3198         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
3199         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
3200         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
3201         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
3202         * doc/invoke.texi (-fsanitize=nonnull-attribute,
3203         -fsanitize=returns-nonnull-attribute): Document.
3205         * ubsan.h (struct ubsan_mismatch_data): Removed.
3206         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3207         * ubsan.c (ubsan_source_location): For unknown locations,
3208         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
3209         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3210         Allow more than one location and arbitrary extra arguments passed
3211         in ... instead of through MISMATCH pointer.
3212         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
3213         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
3214         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
3215         callers.
3217 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3218             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3219             Anna Tikhonova  <anna.tikhonova@intel.com>
3220             Ilya Tocar  <ilya.tocar@intel.com>
3221             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3222             Ilya Verbin  <ilya.verbin@intel.com>
3223             Kirill Yukhin  <kirill.yukhin@intel.com>
3224             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3226         * config/i386/sse.md
3227         (define_mode_iterator VI48F): New.
3228         (define_insn "<avx512>_compress<mode>_mask"): Rename from
3229         "avx512f_compress<mode>_mask" and update mode iterator.
3230         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
3231         "avx512f_compressstore<mode>_mask" and update mode iterator.
3232         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
3233         "avx512f_expand<mode>_maskz" and update mode iterator.
3234         (define_insn "<avx512>_expand<mode>_mask"): Rename from
3235         "avx512f_expand<mode>_mask" and update mode iterator.
3237 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3238             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3239             Anna Tikhonova  <anna.tikhonova@intel.com>
3240             Ilya Tocar  <ilya.tocar@intel.com>
3241             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3242             Ilya Verbin  <ilya.verbin@intel.com>
3243             Kirill Yukhin  <kirill.yukhin@intel.com>
3244             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3246         * config/i386/i386.c
3247         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
3248         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
3249         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
3250         avx512dq_rangepv4sf_mask.
3251         * config/i386/sse.md
3252         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
3253         UNSPEC_RANGE.
3254         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
3255         (define_insn "reduces<mode>"): Ditto.
3256         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
3257         Ditto.
3258         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
3259         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
3260         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
3262 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3263             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3264             Anna Tikhonova  <anna.tikhonova@intel.com>
3265             Ilya Tocar  <ilya.tocar@intel.com>
3266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3267             Ilya Verbin  <ilya.verbin@intel.com>
3268             Kirill Yukhin  <kirill.yukhin@intel.com>
3269             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3271         * config/i386/i386.c
3272         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
3273         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
3274         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
3275         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
3276         avx512vl_getmantv2df_mask.
3277         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
3278         avx512f_vgetmantv4sf_round.
3279         * config/i386/sse.md
3280         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
3281         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
3282         mode iterator.
3283         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
3284         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
3285         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
3286         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
3287         iterator..
3288         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
3289         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
3290         update mode iterator.
3291         (define_expand
3292         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
3293         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
3294         mode iterator.
3295         (define_insn
3296         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
3297         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
3298         update mode iterator.
3299         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
3300         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
3301         iterator..
3302         (define_insn
3303         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
3304         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
3305         mode iterator..
3306         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
3307         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
3308         update mode iterator.
3309         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
3310         "avx512f_getmant<mode><round_saeonly_name>".
3312 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3314         PR ipa/63166
3315         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
3317 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3318             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3319             Anna Tikhonova  <anna.tikhonova@intel.com>
3320             Ilya Tocar  <ilya.tocar@intel.com>
3321             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3322             Ilya Verbin  <ilya.verbin@intel.com>
3323             Kirill Yukhin  <kirill.yukhin@intel.com>
3324             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3326         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
3327         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
3328         (define_mode_iterator FMAMODE_AVX512): New.
3329         (define_mode_iterator FMAMODE): Remove conditions.
3330         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
3331         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
3332         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
3333         mode iterator.
3334         (define_mode_iterator FMAMODE_NOVF512): Remove.
3335         (define_insn "*fma_fmadd_<mode>"): Rename from
3336         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
3337         FMAMODE mode iterator.
3338         (define_mode_iterator VF_SF_AVX512VL): New.
3339         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
3340         Use VF_SF_AVX512VL mode iterator.
3341         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
3342         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3343         iterator.
3344         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
3345         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3346         iterator.
3347         (define_insn "*fma_fmsub_<mode>"): Rename from
3348         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
3349         FMAMODE mode iterator.
3350         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
3351         Use VF_SF_AVX512VL mode iterator.
3352         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
3353         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3354         iterator.
3355         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
3356         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3357         iterator.
3358         (define_insn "*fma_fnmadd_<mode>"): Rename from
3359         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
3360         use FMAMODE mode iterator.
3361         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
3362         Use VF_SF_AVX512VL mode iterator.
3363         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
3364         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3365         iterator.
3366         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
3367         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3368         iterator.
3369         (define_insn "*fma_fnmsub_<mode>"): Rename from
3370         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
3371         FMAMODE mode iterator.
3372         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
3373         Use VF_SF_AVX512VL mode iterator.
3374         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
3375         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3376         iterator.
3377         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
3378         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3379         iterator.
3380         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
3381         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
3382         use VF_AVX512VL mode iterator.
3383         (define_insn "*fma_fmaddsub_<mode>"): Rename from
3384         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
3385         remove subst usage.
3386         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
3387         Use VF_SF_AVX512VL mode iterator.
3388         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
3389         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3390         iterator.
3391         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
3392         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3393         iterator.
3394         (define_insn "*fma_fmsubadd_<mode>"): Rename from
3395         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
3396         remove usage of subst.
3397         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
3398         Use VF_SF_AVX512VL mode iterator.
3399         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
3400         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3401         iterator.
3402         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
3403         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3404         iterator.
3406 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
3408         Revert r213751:
3409         * calls.c (precompute_arguments): Check
3410          promoted_for_signed_and_unsigned_p and set the promoted mode.
3411         (promoted_for_signed_and_unsigned_p): New function.
3412         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3413         and set the promoted mode.
3414         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3415         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3416         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3418 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3420         * opth-gen.awk: Generate mapping from cpp message reasons to the
3421         options that enable them.
3422         * doc/options.texi (CppReason): Document.
3424 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3426         * doc/invoke.texi (Wnormalized=): Update.
3428 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
3430         PR target/63195
3431         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
3432         operands.  Split off the constant operand alternative to ...
3433         (*bool<mode>3_imm): New.
3435 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3437         * rtl.h (single_set_2): Strengthen first param from const_rtx to
3438         const rtx_insn *, and move prototype to above...
3439         (single_set): ...this.  Convert this from a macro to an inline
3440         function, enforcing the requirement that the param is a const
3441         rtx_insn *.
3442         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
3444         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
3445         Strengthen both params from rtx to rtx_insn *.
3446         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
3447         Likewise; introduce locals "producer_set", "consumer_set", using
3448         them in place of "producer" and "consumer" when dealing with SET
3449         rather than insn.
3450         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
3451         when invoking single_set in region guarded by INSN_P.
3452         (avr_out_bitop): Likewise.
3453         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
3454         region guarded by GET_CODE check, using methods to strengthen
3455         local "this_insn" from rtx to rtx_insn *, and for clarity.
3456         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
3457         Strengthen local "insn" from rtx to rtx_insn *.
3458         (define_insn_and_split "xload<mode>_A"): Likewise.
3459         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
3460         "insn".
3461         (find_load): Likewise for return type.
3462         (workaround_speculation): Likewise for both locals named
3463         "load_insn".
3464         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
3465         local "cc0_user".
3466         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
3467         for local "prev".
3468         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
3469         param 2.
3470         * config/h8300/h8300.c (notice_update_cc): Likewise.
3471         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
3472         "insn" and "dep_insn".
3473         (exact_store_load_dependency): Likewise for both params.
3474         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
3475         since this now clashes with inline function.  Instead, delay
3476         calling single_set until the point where its needed, and then
3477         assign the result to "compare_set" and rework the conditional that
3478         follows.
3479         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
3480         local "last" from rtx to rtx_insn *.
3481         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
3482         second param.
3483         (mips_store_data_bypass_p): Likewise for both params.
3484         * config/mips/mips.c (mips_load_store_insns): Likewise for second
3485         param.
3486         (mips_store_data_bypass_p): Likewise for both params.
3487         (mips_orphaned_high_part_p): Likewise for param "insn".
3488         * config/mn10300/mn10300.c (extract_bundle): Likewise.
3489         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
3490         Introduce local rtx "insn2_pat".
3491         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
3492         "ninsn".
3493         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
3494         Introduce local rtx "set", using it in place of "insn" for the
3495         result of single_set.  This appears to fix a bug, since the call
3496         to find_regno_note on a SET does nothing.
3497         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
3498         params from rtx to rtx_insn *.
3499         (set_to_load_agen): Likewise.
3500         * config/s390/s390.c (s390_label_align): Likewise for local
3501         "prev_insn".  Introduce new rtx locals "set" and "src", using
3502         them in place of "prev_insn" for the results of single_set
3503         and SET_SRC respectively.
3504         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
3505         Introduce new rtx local "set" using in place of "jump" for the
3506         result of single_set.  Use SET_SRC (set) rather than plain
3507         XEXP (set, 1).
3508         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
3509         rtx to rtx_insn *.
3510         (noncall_uses_reg): Likewise.
3511         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
3512         guarded by GET_CODE check, using its methods for clarity, and to
3513         enable strengthening local "this_insn" from rtx to rtx_insn *.
3514         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
3515         "insn" from rtx to rtx_insn *.
3516         (define_expand "umulhisi3"): Likewise.
3517         (define_expand "smulsi3_highpart"): Likewise.
3518         (define_expand "umulsi3_highpart"): Likewise.
3519         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3520         local "after".  Replace GET_CODE check with a dyn_cast,
3521         introducing new local rtx_sequence * "seq", using insn method for
3522         typesafety.
3524         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
3525         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
3526         place of "insn" once we're dealing with patterns rather than the
3527         input insn.
3528         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
3529         (scan_trace): Likewise for local "elt", updating lookups within
3530         sequence to use insn method rather than element method.
3531         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
3532         to rtx_insn *.
3533         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
3534         * ifcvt.c (noce_try_abs): Likewise for local "insn".
3535         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
3536         invoking single_set.
3537         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
3538         "insn" from rtx to rtx_insn *.
3539         (skip_usage_debug_insns): Likewise for return type, adding a
3540         checked cast.
3541         (check_secondary_memory_needed_p): Likewise for local "insn".
3542         (inherit_reload_reg): Likewise.
3543         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
3544         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
3545         checked casts.
3546         (store_data_bypass_p): Likewise for both params.
3547         (if_test_bypass_p): Likewise.
3548         * recog.h (store_data_bypass_p): Likewise for both params.
3549         (if_test_bypass_p): Likewise.
3550         * reload.c (find_equiv_reg): Likewise for local "where".
3551         * reorg.c (delete_jump): Likewise for param "insn".
3552         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
3553         to const rtx_insn *.
3554         * store-motion.c (replace_store_insn): Likewise for param "del".
3555         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
3556         and use its methods for clarity, and to strengthen local "del"
3557         from rtx to rtx_insn *.
3558         (build_store_vectors): Use insn method of "st" when calling
3559         replace_store_insn for typesafety and clarity.
3561 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3563         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
3564         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
3565         on how to make it legal in future.
3567 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3569         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
3570         to rtx_insn *.
3571         (restinsn): Likewise.
3572         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
3573         Likewise for param.
3574         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
3575         Likewise.
3576         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
3577         first param.
3578         (arc_hazard): Likewise for both params.
3579         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
3580         checked casts to rtx_sequence * and uses of the insn method for
3581         type-safety.
3582         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
3583         (arc_adjust_insn_length): Likewise for param "insn".
3584         (struct insn_length_parameters_s): Likewise for first param of
3585         "get_variants" callback field.
3586         (arc_get_insn_variants): Likewise for first param and local
3587         "inner".  Replace a check of GET_CODE with a dyn_cast to
3588         rtx_sequence *, using methods for type-safety and clarity.
3589         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
3590         rtx_sequence * and uses of the insn method for type-safety when
3591         invoking arc_adjust_insn_length.
3592         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
3593         for param.
3594         (arm_address_offset_is_imm): Likewise.
3595         (struct tune_params): Likewise for params 1 and 3 of the
3596         "sched_adjust_cost" callback field.
3597         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
3598         params 1 and 3 ("insn" and "dep").
3599         (xscale_sched_adjust_cost): Likewise.
3600         (fa726te_sched_adjust_cost): Likewise.
3601         (cortexa7_older_only): Likewise for param "insn".
3602         (cortexa7_younger): Likewise.
3603         (arm_attr_length_move_neon): Likewise.
3604         (arm_address_offset_is_imm): Likewise.
3605         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
3606         * config/avr/avr.c (avr_notice_update_cc): Likewise.
3607         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
3608         (workaround_speculation): Likewise for local "last_condjump".
3609         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
3610         (shadow_or_blockage_p): Likewise.
3611         (get_unit_reqs): Likewise.
3612         (get_unit_operand_masks): Likewise.
3613         (c6x_registers_update): Likewise.
3614         (returning_call_p): Likewise.
3615         (can_use_callp): Likewise.
3616         (convert_to_callp): Likewise.
3617         (find_last_same_clock): Likwise for local "t".
3618         (reorg_split_calls): Likewise for local "shadow".
3619         (hwloop_pattern_reg): Likewise for param "insn".
3620         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
3621         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
3622         (frv_extract_membar): Likewise.
3623         (frv_optimize_membar_local): Strengthen param "last_membar" from
3624         rtx * to rtx_insn **.
3625         (frv_optimize_membar_global): Strengthen param "membar" from rtx
3626         to rtx_insn *.
3627         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
3628         to rtx_insn **.
3629         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
3630         both params from rtx to rtx_insn *.
3631         (ia64_ld_address_bypass_p): Likewise.
3632         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
3633         "insn".
3634         (ia64_safe_type): Likewise.
3635         (group_barrier_needed): Likewise.
3636         (safe_group_barrier_needed): Likewise.
3637         (ia64_single_set): Likewise.
3638         (is_load_p): Likewise.
3639         (record_memory_reference): Likewise.
3640         (get_mode_no_for_insn): Likewise.
3641         (important_for_bundling_p): Likewise.
3642         (unknown_for_bundling_p): Likewise.
3643         (ia64_st_address_bypass_p): Likewise for both params.
3644         (ia64_ld_address_bypass_p): Likewise.
3645         (expand_vselect): Introduce new local rtx_insn * "insn", using it
3646         in place of rtx "x" after the emit_insn call.
3647         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
3648         Strengthen param from rtx to rtx_insn *.
3649         (ix86_agi_dependent): Likewise for both params.
3650         (ix86_attr_length_immediate_default): Likewise for param 1.
3651         (ix86_attr_length_address_default): Likewise for param.
3652         (ix86_attr_length_vex_default): Likewise for param 1.
3653         * config/i386/i386.c (ix86_attr_length_immediate_default):
3654         Likewise for param "insn".
3655         (ix86_attr_length_address_default): Likewise.
3656         (ix86_attr_length_vex_default): Likewise.
3657         (ix86_agi_dependent): Likewise for both params.
3658         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
3659         (vselect_insn): Likewise for this variable.
3660         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
3661         for param 1.
3662         (m68k_sched_attr_opy_type): Likewise.
3663         * config/m68k/m68k.c (sched_get_operand): Likewise.
3664         (sched_attr_op_type): Likewise.
3665         (m68k_sched_attr_opx_type): Likewise.
3666         (m68k_sched_attr_opy_type): Likewise.
3667         (sched_get_reg_operand): Likewise.
3668         (sched_get_mem_operand): Likewise.
3669         (m68k_sched_address_bypass_p): Likewise for both params.
3670         (sched_get_indexed_address_scale): Likewise.
3671         (m68k_sched_indexed_address_bypass_p): Likewise.
3672         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
3673         (m68k_sched_indexed_address_bypass_p): Likewise.
3674         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
3675         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
3676         removing another.
3677         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
3678         params from rtx to rtx_insn *.
3679         (mips_fmadd_bypass): Likewise.
3680         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
3681         (mips_linked_madd_p): Likewise.
3682         (mips_macc_chains_last_hilo): Likewise for this variable.
3683         (mips_macc_chains_record): Likewise for param.
3684         (vr4130_last_insn): Likewise for this variable.
3685         (vr4130_swap_insns_p): Likewise for both params.
3686         (mips_ls2_variable_issue): Likewise for param.
3687         (mips_need_noat_wrapper_p): Likewise for param "insn".
3688         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
3689         in place of "x" after the emit_insn.
3690         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
3691         params from rtx to rtx_insn *.
3692         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
3693         (pa_combine_instructions): Introduce local "par" for result of
3694         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
3695         to make_insn_raw.
3696         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
3697         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
3698         (rl78_alloc_physical_registers_op1): Likewise.
3699         (rl78_alloc_physical_registers_op2): Likewise.
3700         (rl78_alloc_physical_registers_ro1): Likewise.
3701         (rl78_alloc_physical_registers_cmp): Likewise.
3702         (rl78_alloc_physical_registers_umul): Likewise.
3703         (rl78_alloc_address_registers_macax): Likewise.
3704         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
3705         * config/s390/predicates.md (execute_operation): Likewise for
3706         local "insn".
3707         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
3708         params.
3709         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
3710         (addr_generation_dependency_p): Likewise for param "insn".
3711         (s390_agen_dep_p): Likewise for both params.
3712         (s390_fpload_toreg): Likewise for param "insn".
3713         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
3714         * config/sh/sh.c (sh_loop_align): Likewise for param and local
3715         "next".
3716         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
3717         * config/sh/sh_treg_combine.cc
3718         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
3719         and local "i".
3720         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
3721         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
3722         "and_insn", "load", "shift".
3723         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
3724         "insn".
3725         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
3726         for XEXP (note, 0) of the REG_CC_SETTER note.
3727         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
3728         rtx_insn *, eliminating a checked cast made redundant by this.
3729         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
3730         to rtx_insn *.
3731         * genattr.c (main): When writing out the prototype to
3732         const_num_delay_slots, strengthen the param from rtx to
3733         rtx_insn *.
3734         * genattrtab.c (write_const_num_delay_slots): Likewise when
3735         writing out the implementation of const_num_delay_slots.
3736         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
3737         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
3738         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
3739         favor of new rtx locals "src" and "set" and new local rtx_insn *
3740         "insn" and "seq".
3741         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
3742         to rtx_insn *.
3743         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
3744         locals "cond", "if_then_else", "set" and new rtx_insn * locals
3745         "insn" and "seq".
3746         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
3747         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
3748         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
3749         the top-level scope, replacing with new more tightly-scoped rtx
3750         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
3751         "new_insn", "copy_of_insn_b", and make local rtx "set" more
3752         tightly-scoped.
3753         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
3754         rtx_insn *.
3755         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
3756         "move_insn".
3757         (ira_setup_alts): Likewise for param "insn".
3758         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
3759         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
3760         and an rtx_insn *.
3761         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
3762         new more-tightly scoped rtx locals "add3_insn", "insn",
3763         "add2_insn" and rtx_insn * "move_insn".
3764         * postreload-gcse.c (eliminate_partially_redundant_load): Add
3765         checked cast on result of gen_move_insn when invoking
3766         extract_insn.
3767         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
3768         rtx_insn *.
3769         (verify_changes): Add a checked cast on "object" when invoking
3770         insn_invalid_p.
3771         (extract_insn_cached): Strengthen param "insn" from rtx to
3772         rtx_insn *.
3773         (extract_constrain_insn_cached): Likewise.
3774         (extract_insn): Likewise.
3775         * recog.h (insn_invalid_p): Likewise for param 1.
3776         (recog_memoized): Likewise for param.
3777         (extract_insn): Likewise.
3778         (extract_constrain_insn_cached): Likewise.
3779         (extract_insn_cached): Likewise.
3780         * reload.c (can_reload_into): Likewise for local "test_insn".
3781         * reload.h (cleanup_subreg_operands): Likewise for param.
3782         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
3783         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
3784         result of emit_insn.  Remove a checked cast made redundant by this
3785         change.
3786         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
3787         rtx to rtx_insn *.
3788         * sel-sched.c (get_reg_class): Likewise.
3790 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3791         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3793          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
3794          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
3795         Define.
3796         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
3798 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3800         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
3801         const rtx_insn *, and from rtx to rtx_insn * for the other
3802         overloaded variant.
3803         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
3804         INSN_LOCATION, since we know INSN_P holds.
3805         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
3806         (insn_file): Likewise.
3807         (insn_scope): Likewise.
3808         (insn_location): Likewise.
3810         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
3811         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
3812         for the result of gen_load_const_gp.
3813         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
3814         param from rtx to rtx_insn *.
3815         * config/rs6000/rs6000.c (output_call): Likewise.
3816         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
3817         introducing a checked cast to rtx_sequence * and use of the insn
3818         method.
3819         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
3820         from rtx to rtx_insn *.
3821         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
3822         (insn_line): Likewise.
3823         (insn_file): Likewise.
3824         (insn_location): Likewise.
3825         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
3826         from rtx to rtx_insn *.
3827         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
3828         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
3829         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
3830         via a checked cast.
3831         * reorg.c (relax_delay_slots): Strengthen locals named "after"
3832         from rtx to rtx_insn *; use methods of "pat" for type-safety.
3834 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3836         * combine.c (try_combine): Eliminate checked cast on result of
3837         gen_rtx_INSN.
3838         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
3839         autogenerated one by strengthening the return type and params 2 and 3
3840         from rtx to rtx_insn *, and by naming the params.
3841         * gengenrtl.c (special_rtx): Add INSN to those that are
3842         special-cased.
3843         * rtl.h (gen_rtx_INSN): New prototype.
3845 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3847         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
3848         than NULL_RTX.
3849         (no_equiv): Likewise.
3850         (update_equiv_regs): Likewise.
3851         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
3852         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
3853         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
3854         clarity.
3855         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
3856         from rtx to rtx_insn_list *.
3857         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
3858         rtx_insn_list * and use methods for clarity and typesafety.
3859         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
3860         "list".
3861         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
3862         redundant check on INSN_P (insns): this cannot hold, as "insns" is
3863         an INSN_LIST, not an insn.
3864         (reverse_equiv_p): Strengthen local "insns" from rtx to
3865         rtx_insn_list * and use methods for clarity and typesafety.
3866         (contains_reloaded_insn_p): Likewise for local "list".
3868 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
3870         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
3871         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
3872         (arm_builtin_vectorized_function): Likewise.
3873         * config/arm/arm_neon_builtins.def: New macro for copysignf.
3874         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
3876 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3878         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
3879         * builtins.h (default_target_builtins): Likewise.
3880         * gcse.h (default_target_gcse): Likewise.
3881         * target-globals.h (target_globals): Add a destructor.  Convert
3882         void-pointer fields back to their real type and change from
3883         GTY((atomic)) to GTY((skip)).
3884         (restore_target_globals): Remove casts accordingly.
3885         * target-globals.c (save_target_globals): Use XCNEW rather than
3886         ggc_internal_cleared_alloc to allocate non-GC structures.
3887         Use ggc_cleared_alloc to allocate the target_globals structure
3888         itself.
3889         (target_globals::~target_globals): Define.
3891 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3893         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
3894         mnemonic instead of fldmfdd.
3895         * config/arm/arm.c (vfp_output_fstmd): Rename to...
3896         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
3897         Output vpush when address register is SP.
3898         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
3899         (vfp_output_vstmd): ... This.
3900         * config/arm/vfp.md (push_multi_vfp): Update call to
3901         vfp_output_vstmd.
3903 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3905         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
3907 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3909         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
3910         (*sqrtdf2_vfp): Likewise.
3911         (*cmpsf_vfp): Likewise.
3912         (*cmpsf_trap_vfp): Likewise.
3913         (*cmpdf_vfp): Likewise.
3914         (*cmpdf_trap_vfp): Likewise.
3916 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3918         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
3919         (*truncdfsf2_vfp): Likewise.
3920         (*truncsisf2_vfp): Likewise.
3921         (*truncsidf2_vfp): Likewise.
3922         (fixuns_truncsfsi2): Likewise.
3923         (fixuns_truncdfsi2): Likewise.
3924         (*floatsisf2_vfp): Likewise.
3925         (*floatsidf2_vfp): Likewise.
3926         (floatunssisf2): Likewise.
3927         (floatunssidf2): Likewise.
3929 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3931         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
3932         (*muldf3_vfp): Likewise.
3933         (*mulsf3negsf_vfp): Likewise.
3934         (*muldf3negdf_vfp): Likewise.
3935         (*mulsf3addsf_vfp): Likewise.
3936         (*muldf3adddf_vfp): Likewise.
3937         (*mulsf3subsf_vfp): Likewise.
3938         (*muldf3subdf_vfp): Likewise.
3939         (*mulsf3negsfaddsf_vfp): Likewise.
3940         (*fmuldf3negdfadddf_vfp): Likewise.
3941         (*mulsf3negsfsubsf_vfp): Likewise.
3942         (*muldf3negdfsubdf_vfp): Likewise.
3944 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3946         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
3947         (*absdf2_vfp): Likewise.
3948         (*negsf2_vfp): Likewise.
3949         (*negdf2_vfp): Likewise.
3950         (*addsf3_vfp): Likewise.
3951         (*adddf3_vfp): Likewise.
3952         (*subsf3_vfp): Likewise.
3953         (*subdf3_vfp): Likewise.
3954         (*divsf3_vfp): Likewise.
3955         (*divdf3_vfp): Likewise.
3957 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3959         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3960         multiple.
3961         (arm_print_operand): Don't convert real values to decimal
3962         representation in default case.
3963         (fp_immediate_constant): Delete.
3964         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3965         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3966         syntax.
3967         (*thumb2_movsi_vfp): Likewise.
3968         (*movdi_vfp): Likewise.
3969         (*movdi_vfp_cortexa8): Likewise.
3970         (*movhf_vfp_neon): Likewise.
3971         (*movhf_vfp): Likewise.
3972         (*movsf_vfp): Likewise.
3973         (*thumb2_movsf_vfp): Likewise.
3974         (*movdf_vfp): Likewise.
3975         (*thumb2_movdf_vfp): Likewise.
3976         (*movsfcc_vfp): Likewise.
3977         (*thumb2_movsfcc_vfp): Likewise.
3978         (*movdfcc_vfp): Likewise.
3979         (*thumb2_movdfcc_vfp): Likewise.
3981 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
3983         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3984         (-mtune): Likewise.
3985         (-mcpu): Likewise.
3987 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3989         PR target/61749
3990         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3991         Use qualifier_immediate for last operand.  Rename to...
3992         (aarch64_types_ternop_lane_qualifiers): ... This.
3993         (TYPES_QUADOP): Rename to...
3994         (TYPES_TERNOP_LANE): ... This.
3995         (aarch64_simd_expand_args): Return const0_rtx when encountering user
3996         error.  Change return of 0 to return of NULL_RTX.
3997         (aarch64_crc32_expand_builtin): Likewise.
3998         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3999         ICE when expanding unknown builtin.
4000         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
4001         TERNOP_LANE qualifiers.
4002         (sqdmlsl_lane): Likewise.
4003         (sqdmlal_laneq): Likewise.
4004         (sqdmlsl_laneq): Likewise.
4005         (sqdmlal2_lane): Likewise.
4006         (sqdmlsl2_lane): Likewise.
4007         (sqdmlal2_laneq): Likewise.
4008         (sqdmlsl2_laneq): Likewise.
4010 2014-09-09  Nick Clifton  <nickc@redhat.com>
4012         * doc/invoke.texi (Optimization Options): Add missing @gol to the
4013         end of a line.
4014         (S/390 and zSeries Options): Remove superfluous word from the
4015         description of the -mhotpatch option.
4017 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4019         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
4020         * ira.c: #include "shrink-wrap.h"
4021         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
4022         * ifcvt.c: #include "shrink-wrap.h"
4023         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
4025 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
4027         * common/config/picochip/picochip-common.c: Remove.
4028         * config.gcc: Remove support for picochip.
4029         * config/picochip/constraints.md: Remove.
4030         * config/picochip/dfa_space.md: Remove.
4031         * config/picochip/dfa_speed.md: Remove.
4032         * config/picochip/picochip-protos.h: Remove.
4033         * config/picochip/picochip.c: Remove.
4034         * config/picochip/picochip.h: Remove.
4035         * config/picochip/picochip.md: Remove.
4036         * config/picochip/picochip.opt: Remove.
4037         * config/picochip/predicates.md: Remove.
4038         * config/picochip/t-picochip: Remove.
4039         * doc/md.texi: Don't document picochi.
4041 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
4043         * basic-block.h (control_flow_insn_p): Strengthen param from
4044         const_rtx to const rtx_insn *.
4045         * cfgbuild.c (control_flow_insn_p): Likewise.
4047 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
4049         * gcse.c (modify_mem_list): Strengthen this variable from
4050         vec<rtx> * to vec<rtx_insn *> *.
4051         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
4052         vec<rtx_insn *>.
4053         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
4054         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
4055         (record_last_mem_set_info): Strengthen param "insn" from rtx to
4056         rtx_insn *.
4057         (record_last_set_info): Likewise for local "last_set_insn".
4059 2014-09-08  DJ Delorie  <dj@redhat.com>
4061         * doc/invoke.texi (MSP430 Options): Add -minrt.
4063 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4065         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
4066         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
4067         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
4068         handling SH_SPLAT.
4069         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
4070         of extracted lane.
4071         (adjust_splat): New function.
4072         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
4073         (dump_swap_insn_table): Add case for SH_SPLAT.
4075 2014-09-08  Richard Biener  <rguenther@suse.de>
4077         PR ipa/63196
4078         * tree-inline.c (copy_loops): The source loop header should
4079         always be non-NULL.
4080         (tree_function_versioning): If loops need fixup after removing
4081         unreachable blocks fix them.
4082         * omp-low.c (simd_clone_adjust): Do not add incr block to
4083         loop under construction.
4085 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4087         * config/aarch64/aarch64-builtins.c
4088         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
4090 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4092         * config/i386/cygming.h (TF_SIZE): Remove.
4093         * config/i386/darwin.h (TF_SIZE): Remove.
4094         * config/i386/dragonfly.h (TF_SIZE): Remove.
4095         * config/i386/freebsd.h (TF_SIZE): Remove.
4096         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
4097         * config/i386/openbsdelf.h (TF_SIZE): Remove.
4098         * config/i386/sol2.h (TF_SIZE): Remove.
4099         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
4100         * config/ia64/linux.h (TF_SIZE): Remove.
4101         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
4102         * doc/tm.texi: Regenerate.
4103         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
4105 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4107         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4108         Remove.
4109         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
4110         Remove.
4111         * doc/tm.texi: Regenerate.
4112         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4113         Poison.
4114         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
4115         * config/cris/cris.h (__make_dp): Remove.
4117 2014-09-08  Richard Biener  <rguenther@suse.de>
4119         PR bootstrap/63204
4120         * cfgloop.c (mark_loop_for_removal): Track former header
4121         unconditionally.
4122         * cfgloop.h (struct loop): Add former_header member unconditionally.
4123         * loop-init.c (fix_loop_structure): Enable bogus loop removal
4124         diagnostic unconditionally.
4126 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
4128         PR target/63190
4129         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
4130         constraint for operand0 and remove write only modifier from operand3.
4132 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
4134         PR rtl-optimization/62208
4135         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
4136         rather than const0_rtx in eq/ne-xor simplifications.
4138 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
4140         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
4141         (arc_output_mi_thunk): Likewise.
4143         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
4144         arguments to silence bogus warning.
4146 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
4148         PR middle-end/63171
4149         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
4151 2014-09-06  Tom de Vries  <tom@codesourcery.com>
4153         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
4154         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
4155         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4157 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
4159         PR target/63188
4160         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
4161         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
4163 2014-09-05  Easwaran Raman  <eraman@google.com>
4165         PR rtl-optimization/62146
4166         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
4167         hoisted instruction unconditional.
4169 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
4171         PR target/63187
4172         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
4173         Do not allow any_mask_operand for operands[2].
4174         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
4176 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4178         * config/arc/arc.c (arc_print_operand): Use insn method of
4179         final_sequence for type-safety.
4180         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
4181         "insn" from rtx to rtx_insn *.
4182         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
4183         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4184         Likewise for locals "branch", "label".
4185         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
4186         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
4187         (same_cmp_following_p): Likewise for locals "i2", "i3".
4188         * config/sh/sh_optimize_sett_clrt.cc
4189         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
4190         param "cbranch_insn".
4191         * function.c (convert_jumps_to_returns): Likewis for local "jump".
4192         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
4193         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
4194         const rtx_insn *.
4195         (condjump_p): Likewise.
4196         (condjump_in_parallel_p): Likewise.
4197         (pc_set): Likewise.
4198         (any_uncondjump_p): Likewise.
4199         (any_condjump_p): Likewise.
4200         (condjump_label): Likewise.
4201         (returnjump_p): Strengthen param "insn" from rtx to
4202         const rtx_insn *.
4203         (onlyjump_p): Strengthen param "insn" from const_rtx to
4204         const rtx_insn *.
4205         (jump_to_label_p): Likewise.
4206         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
4207         (invert_jump): Likewise.
4208         * reorg.c (simplejump_or_return_p): Add checked cast when calling
4209         simplejump_p.
4210         (get_jump_flags): Strengthen param "insn" from rtx to
4211         const rtx_insn *.
4212         (get_branch_condition): Likewise.
4213         (condition_dominates_p): Likewise.
4214         (make_return_insns): Move declaration of local "pat" earlier, to
4215         after we've handled NONJUMP_INSN_P and non-sequences, using its
4216         methods to simplify the code and for type-safety.
4217         * rtl.h (find_constant_src): Strengthen param from const_rtx to
4218         const rtx_insn *.
4219         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
4220         (condjump_p): Strengthen param from const_rtx to
4221         const rtx_insn *.
4222         (any_condjump_p): Likewise.
4223         (any_uncondjump_p): Likewise.
4224         (pc_set): Likewise.
4225         (condjump_label): Likewise.
4226         (simplejump_p): Likewise.
4227         (returnjump_p): Likewise.
4228         (onlyjump_p): Likewise.
4229         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
4230         (invert_jump): Likewise.
4231         (condjump_in_parallel_p): Strengthen param from const_rtx to
4232         const rtx_insn *.
4233         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
4234         to const rtx_insn *.
4235         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
4236         to const rtx_insn *.
4237         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
4239 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4241         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
4242         above the conditional, and convert the check on GET_CODE to a
4243         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
4244         the conditional.  Simplify the conditional by using methods of
4245         "trial_seq".
4247 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4249         * haifa-sched.c (check_clobbered_conditions): Strengthen local
4250         "link" from rtx to rtx_insn_list *, and use its methods for
4251         clarity and type-safety.
4252         (toggle_cancelled_flags): Likewise.
4253         (restore_last_backtrack_point): Likewise.
4254         (queue_to_ready): Use insn method of "link" in one place.
4255         (schedule_block): Strengthen local "link" from rtx to
4256         rtx_insn_list *, and use its methods for clarity and type-safety.
4258 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4260         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
4261         param "insn" from const_rtx to const rtx_insn *.
4262         (sched_get_reverse_condition_uncached): Likewise.
4263         (sched_get_condition_with_rev): Likewise.
4264         (sched_has_condition_p): Likewise.
4265         (sched_insns_conditions_mutex_p): Likewise for both params.
4266         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
4267         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
4268         (setup_insn_reg_uses): Move local "list" to be more tightly
4269         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
4270         its methods for clarity and type-safety.
4271         (sched_analyze_1): Strengthen local "pending" from rtx to
4272         rtx_insn_list *, and local "pending_mem" from rtx to
4273         rtx_expr_list *.  Use methods of each for clarity and type-safety.
4274         (sched_analyze_2): Likewise.
4275         (sched_analyze_insn): Likewise.
4277         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
4278         param from const_rtx to const rtx_insn *.
4279         (sched_insns_conditions_mutex_p): Likewise for both params.
4280         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
4281         param.
4283         * system.h (CONST_CAST_RTX_INSN): New macro.
4285 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4287         * recog.c (peep2_attempt): Strengthen return type from rtx to
4288         rtx_insn *.
4289         (peep2_update_life): Likewise for params "last", "prev", removing
4290         a checked cast made redundant by this.
4291         (peephole2_optimize): Likewise for local "last".
4293 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4295         * basic-block.h (set_block_for_insn): Eliminate this macro in
4296         favor of...
4297         * rtl.h (set_block_for_insn): New inline function, imposing the
4298         requirement that the "insn" param is an rtx_insn *.
4300 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4302         * caller-save.c (setup_save_areas): Strengthen local "insn" from
4303         rtx to rtx_insn *.
4304         * final.c (get_call_reg_set_usage): Likewise for first param,
4305         eliminating a checked cast.
4306         * regs.h (get_call_reg_set_usage): Likewise for first param.
4307         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
4308         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
4309         cast, replacing references to "x" with "call_insn" where
4310         appropriate.
4311         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
4312         rtx_insn *, adding a checked cast.
4314 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4316         * output.h (final_scan_insn): Strengthen first param from rtx to
4317         rtx_insn *.
4319         * final.c (final_scan_insn): Likewise, renaming it back from
4320         "uncast_insn" to "insn", eliminating the checked cast.
4322         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
4323         "vec" with an rtx_sequence * "seq", taking a copy of
4324         "final_sequence", and using methods of "seq" for clarity, and for
4325         type-safety in the calls to final_scan_insn.
4326         * config/mips/mips.c (mips_output_conditional_branch): Use methods
4327         of "final_sequence" for clarity, and for type-safety in the call to
4328         final_scan_insn.
4329         * config/sh/sh.c (print_slot): Strengthen param from rtx to
4330         rtx_sequence * and rename from "insn" to "seq".
4332 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4334         * jump.c (delete_related_insns): Introduce a new local "table" by
4335         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
4336         get_labels method of "table" to simplify access to the labels in
4337         the jump table.
4339 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4341         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
4342         f_minmaxs, f_minmaxd types.
4344 2014-09-05  Richard Biener  <rguenther@suse.de>
4346         * cfgloop.c (mark_loop_for_removal): Record former header
4347         when ENABLE_CHECKING.
4348         * cfgloop.h (strut loop): Add former_header member when
4349         ENABLE_CHECKING.
4350         * loop-init.c (fix_loop_structure): Sanity check loops
4351         marked for removal if they re-appeared.
4353 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4355         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
4356         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
4358         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
4359         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
4360         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
4361         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
4362         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
4363         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
4364         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
4365         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
4366         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
4367         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
4368         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
4369         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
4370         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
4371         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
4372         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
4373         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
4374         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
4375         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
4376         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
4377         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
4378         with int{32,16,8}_t.
4380 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4382         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
4383         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
4384         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
4385         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
4386         Remove temporary __asm__ and reimplement.
4388 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4390         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
4391         handling cmge, cmgt, cmeq, cmtst.
4393         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
4394         cmlt, cmgeu, cmgtu, cmtst): Remove.
4396         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
4397         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
4398         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
4399         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
4401 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4403         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
4404         TYPES_TST): Define.
4405         (aarch64_fold_builtin): Update pattern for cmtst.
4407         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
4408         Declare.
4410         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
4412         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
4413         Switch operands, separate out more cases, refactor.
4415         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
4417         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
4418         argument; rename old version to...
4419         (aarch64_const_vec_all_same_in_range_p): ...this.
4420         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
4422         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
4424 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4426         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4427         Remove qualifier_const_pointer, update comment.
4429 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4431         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
4433 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4435         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
4436         varargs with pointer parameter.
4437         (aarch64_simd_expand_builtin): pass pointer into previous.
4439 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4441         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
4442         alus_ext.
4444 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4446         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
4447         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
4448         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
4449         Replace temporary asm with call to builtin.
4450         (vrbit_p8, vrbitq_p8): New functions.
4452 2014-09-05  Richard Biener  <rguenther@suse.de>
4454         * cfgloop.c (mark_loop_for_removal): New function.
4455         * cfgloop.h (mark_loop_for_removal): Declare.
4456         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
4457         (merge_blocks): Likewise.
4458         (duplicate_block): Likewise.
4459         * except.c (sjlj_emit_dispatch_table): Likewise.
4460         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
4461         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
4462         (thread_through_loop_header): Likewise.
4464 2014-09-05  Richard Biener  <rguenther@suse.de>
4466         PR middle-end/63148
4467         * fold-const.c (try_move_mult_to_index): Remove.
4468         (fold_binary_loc): Do not call it.
4469         * tree-data-ref.c (dr_analyze_indices): Strip conversions
4470         from the base object again.
4472 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
4474         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
4475         DImode.
4477 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4479         PR target/55701
4480         * config/arm/arm.md (setmem): New pattern.
4481         * config/arm/arm-protos.h (struct tune_params): New fields.
4482         (arm_gen_setmem): New prototype.
4483         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4484         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4485         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4486         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4487         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4488         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4489         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4490         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4491         (arm_const_inline_cost): New function.
4492         (arm_block_set_max_insns): New function.
4493         (arm_block_set_non_vect_profit_p): New function.
4494         (arm_block_set_vect_profit_p): New function.
4495         (arm_block_set_unaligned_vect): New function.
4496         (arm_block_set_aligned_vect): New function.
4497         (arm_block_set_unaligned_non_vect): New function.
4498         (arm_block_set_aligned_non_vect): New function.
4499         (arm_block_set_vect, arm_gen_setmem): New functions.
4501 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4503         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
4505 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4507         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4509 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4511         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
4512         an rtx.
4513         * valtrack.h: Adjust.
4515 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4517         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
4518         an rtx.
4519         (emit_jump_insn_before_noloc): Likewise.
4520         (emit_call_insn_before_noloc): Likewise.
4521         (emit_label_before): Likewise.
4522         (emit_label_after): Likewise.
4523         (emit_insn_before_setloc): Likewise.
4524         (emit_jump_insn_before_setloc): Likewise.
4525         (emit_call_insn_before_setloc): Likewise.
4526         (emit_call_insn_before): Likewise.
4527         * rtl.h: Adjust.
4529 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4531         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
4532         rtx_insn *, eliminating a checked cast.
4534 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4536         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
4537         const_rtx to const rtx_insn *.
4538         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
4539         cast.
4541 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4543         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
4544         fixup_args_size_notes.
4545         * expr.c (fixup_args_size_notes): Strengthen first two params from
4546         rtx to rtx_insn *, eliminating a checked cast.
4547         * rtl.h (fixup_args_size_notes): Strengthen first two params from
4548         rtx to rtx_insn *.
4550 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4552         * haifa-sched.c (get_ready_element): Strengthen return type from
4553         rtx to rtx_insn *.
4554         * sched-int.h (get_ready_element): Likewise.
4556 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
4558         PR target/63165
4559         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
4560         indexed_or_indirect_operand instead of memory_operand.
4561         (floatsi<mode>2_lfiwzx_mem): Ditto.
4563 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4565         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
4566         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
4567         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
4569 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4571         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
4572         rtx.
4573         (get_last_nonnote_insn): Likewise.
4574         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
4575         * resource.c (find_basic_block): Likewise.
4576         * rtl.h: Adjust.
4577         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
4578         const_rtx.
4580 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
4582         * genattr.c (main): Within the prototype of insn_latency written
4583         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
4584         * genautomata.c (output_internal_maximal_insn_latency_func):
4585         Within the implementation of insn_latency written out to
4586         insn-automata.c, strengthen both params from rtx to rtx_insn *,
4587         eliminating a pair of checked casts.
4589 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
4591         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
4592         rtx_insn *.
4594         * rtl.h (eh_returnjump_p): Likewise.
4596 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
4598         * Makefile.in (TAGS): Handle constructs in timevar.def.
4600 2014-09-04  Guozhi Wei  <carrot@google.com>
4602         PR target/62040
4603         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
4604         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
4605         it into two patterns.
4606         (move_lo_quad_internal_be_<mode>): Likewise.
4608 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4610         * doc/options.texi: Document that Var and Init are required if CPP
4611         is given.
4612         * optc-gen.awk: Require Var and Init if CPP is given.
4613         * common.opt (Wpedantic): Use Init.
4615 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4617         * config/rs6000/rs6000.c (special_handling_values): Add
4618         SH_EXTRACT.
4619         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
4620         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
4621         as swappable with special handling SH_EXTRACT.  Remove
4622         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
4623         optimization.
4624         (adjust_extract): New function.
4625         (handle_special_swappables): Add default to case statement; add
4626         case for SH_EXTRACT that calls adjust_extract.
4627         (dump_swap_insn_table): Handle SH_EXTRACT.
4629 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4631         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
4632         selection of 0th memory doubleword, regardless of endianness.
4634 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4636         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
4638 2014-09-04  Alan Modra  <amodra@gmail.com>
4640         PR debug/60655
4641         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
4642         can't be output.
4644 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
4646         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
4647         * targhooks.c (default_dwarf_frame_reg_mode): New function.
4648         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
4649         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
4650         * doc/tm.texi: Regenerate.
4651         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
4652         selection logic to default_dwarf_frame_reg_mode.
4654 2014-09-03  Marek Polacek  <polacek@redhat.com>
4656         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
4657         by -Wall.
4659 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
4661         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
4662         the automodified register.
4664 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
4666         * output.h (get_some_local_dynamic_name): Declare.
4667         * final.c (some_local_dynamic_name): New variable.
4668         (get_some_local_dynamic_name): New function.
4669         (final_end_function): Clear some_local_dynamic_name.
4670         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
4671         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4672         (print_operand): Report an error if '%&' is used inappropriately.
4673         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
4674         (get_some_local_dynamic_name_1): Delete.
4675         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
4676         (rs6000_get_some_local_dynamic_name): Delete.
4677         (rs6000_get_some_local_dynamic_name_1): Delete.
4678         (print_operand): Report an error if '%&' is used inappropriately.
4679         * config/s390/s390.c (machine_function): Remove some_ld_name.
4680         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4681         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
4682         * config/sparc/sparc.c: Include rtl-iter.h.
4683         (machine_function): Remove some_ld_name.
4684         (sparc_print_operand): Report an error if '%&' is used inappropriately.
4685         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4687 2014-09-03  Richard Henderson  <rth@redhat.com>
4689         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
4690         (aarch64_popwb_pair_reg): Remove.
4691         (aarch64_set_frame_expr): Remove.
4692         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
4693         the restore ops performed by the insns generated.
4694         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
4695         insn.  Perform the calls_eh_return addition later; do not attempt to
4696         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
4697         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
4698         special markup at all.  Load cfun->machine->frame.hard_fp_offset
4699         into a local variable.
4700         (aarch64_frame_pointer_required): Don't check calls_alloca.
4702 2014-09-03  Richard Biener  <rguenther@suse.de>
4704         * opts.c (default_options_optimization): Adjust
4705         max-combine-insns to 2 for -Og.
4707 2014-09-03  Martin Jambor  <mjambor@suse.cz>
4709         PR ipa/62015
4710         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
4711         pass-trough jump functions correctly.
4713 2014-09-03  Martin Jambor  <mjambor@suse.cz>
4715         PR ipa/61986
4716         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
4717         created replacements in ascending order of offsets.
4718         (known_aggs_to_agg_replacement_list): Likewise.
4720 2014-09-03  Martin Liska  <mliska@suse.cz>
4722         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
4723         is set to set uninitialized value for vnresult.
4725 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4727         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
4728         for TARGET_MUST_PASS_IN_STACK.
4730 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4732         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
4733         for TARGET_ARG_PARTIAL_BYTES.
4735 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4737         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
4738         instructions for varargs implementation.
4739         (nds32_expand_epilogue): Emit stack adjustment instructions for
4740         varargs implementation.
4742 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4744         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
4745         optimization detection.
4747 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4749         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
4750         arguments.
4751         (nds32_function_arg_advance): Deal with nameless arguments.
4752         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
4753         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
4754         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
4756 2014-09-03  Richard Biener  <rguenther@suse.de>
4758         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
4759         (struct bb_bitmap_sets): Remove deferred member.
4760         (BB_DEFERRED): Remove.
4761         (defer_or_phi_translate_block): Remove.
4762         (compute_antic_aux): Remove deferring of blocks, assert
4763         proper iteration order.
4764         (compute_antic): Do not set BB_DEFERRED.
4765         (eliminate): Allocate el_avail of proper size initially.
4767 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4769         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
4770         according to the value of crtl->args.pretend_args_size.
4772 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4774         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
4775         varargs information.
4777 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4779         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
4780         implementation for TARGET_SETUP_INCOMING_VARARGS.
4781         (nds32_strict_argument_naming): Refine comment.
4782         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
4783         Define for future implementation.
4785 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
4787         * config/i386/adxintrin.h (_subborrow_u32): New.
4788         (_addcarry_u32): Ditto.
4789         (_subborrow_u64): Ditto.
4790         (_addcarry_u64): Ditto.
4791         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
4792         IX86_BUILTIN_SBB64.
4793         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
4794         __builtin_ia32_sbb_u64
4796 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4798         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
4799         GPR-specific stuff.
4800         (nds32_function_arg_advance): Likewise.
4801         (nds32_init_cumulative_args): Likewise.
4802         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
4803         (NDS32_FIRST_GPR_REGNUM): Define.
4804         (NDS32_LAST_GPR_REGNUM): Define.
4805         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
4806         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4807         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4808         (machine_function): Use GRP-specific stuff.
4810 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4812         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
4813         (nds32_expand_epilogue): Likewise.
4814         (nds32_expand_prologue_v3push): Likewise.
4815         (nds32_expand_epilogue_v3pop): Likewise.
4817 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4819         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
4820         v3push/v3pop for variadic function.
4821         * config/nds32/nds32.md (prologue, epilogue): Likewise.
4823 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4825         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4826         Check rtx for varargs implementation.
4827         (nds32_output_stack_pop): Likewise.
4828         * config/nds32/nds32-protos.h: Have a rtx argument for
4829         nds32_output_stack_push and nds32_output_stack_pop.
4830         * config/nds32/nds32.md: Likewise.
4832 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4834         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
4835         to check if FUNC is an interrupt service routine.
4836         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
4838 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4840         * config/nds32/nds32.h (machine_function): Add some fields for variadic
4841         arguments implementation.
4843 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4845         * config/nds32/nds32-predicates.c
4846         (nds32_valid_stack_push_pop): Rename to ...
4847         (nds32_valid_stack_push_pop_p): ... this.
4848         * config/nds32/nds32-protos.h: Likewise.
4849         * config/nds32/predicates.md: Likewise.
4851 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4853         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
4854         (nds32_emit_stack_v3push): ... this.
4855         (nds32_gen_stack_v3pop): Rename to ...
4856         (nds32_emit_stack_v3pop): ... this and consider CFA restore
4857         information.
4859 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4861         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
4862         (nds32_emit_stack_push_multiple): ... this.
4863         (nds32_gen_stack_pop_multiple): Rename to ...
4864         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
4865         information.
4867 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4869         PR target/61078
4870         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
4871         and add a second splitter to handle the remaining cases.
4873 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4875         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
4877 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4879         * cfgexpand.c (label_rtx_for_bb): Change type to
4880         hash_map<basic_block, rtx_code_label *> *.
4881         (expand_gimple_basic_block): Adjust.
4882         (pass_expand::execute): Likewise.
4884 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4886         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
4887         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
4888         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
4889         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
4890         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
4891         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
4892         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
4893         of rtx.
4895 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4897         * alloc-pool.c: Include coretypes.h.
4898         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
4899         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
4900         hash_set instead of htab.
4901         * ggc-page.c (in_gc): New variable.
4902         (ggc_free): Do nothing if a collection is taking place.
4903         (ggc_collect): Set in_gc appropriately.
4904         * ggc.h (gt_ggc_mx(const char *)): New function.
4905         (gt_pch_nx(const char *)): Likewise.
4906         (gt_ggc_mx(int)): Likewise.
4907         (gt_pch_nx(int)): Likewise.
4908         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
4909         (hash_map::hash_entry::pch_nx): Likewise.
4910         (hash_map::hash_entry::pch_nx_helper): Likewise.
4911 (hash_map::hash_map): Adjust.
4912 (hash_map::create_ggc): New function.
4913 (gt_ggc_mx): Likewise.
4914 (gt_pch_nx): Likewise.
4915         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
4916 (default_hashset_traits::pch_nx): Likewise.
4917 (hash_set::hash_entry::ggc_mx): Likewise.
4918 (hash_set::hash_entry::pch_nx): Likewise.
4919 (hash_set::hash_entry::pch_nx_helper): Likewise.
4920 (hash_set::hash_set): Adjust.
4921 (hash_set::create_ggc): New function.
4922 (hash_set::elements): Likewise.
4923 (gt_ggc_mx): Likewise.
4924 (gt_pch_nx): Likewise.
4925         * hash-table.h (hash_table::hash_table): Adjust.
4926 (hash_table::m_ggc): New member.
4927         (hash_table::~hash_table): Adjust.
4928         (hash_table::expand): Likewise.
4929         (hash_table::empty): Likewise.
4930 (gt_ggc_mx): New function.
4931         (hashtab_entry_note_pointers): Likewise.
4932 (gt_pch_nx): Likewise.
4934 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4936         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
4937         built-in definition.
4938         (XVCVUXDDP_SCALE): Likewise.
4939         (XVCVDPSXDS_SCALE): Likewise.
4940         (XVCVDPUXDS_SCALE): Likewise.
4941         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
4942         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
4943         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
4944         VSX_BUILTIN_XVCVDPUXDS_SCALE.
4945         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
4946         prototype.
4947         * config/rs6000/rs6000.c (real.h): New include.
4948         (rs6000_scale_v2df): New function.
4949         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
4950         (UNSPEC_VSX_XVCVUXDDP): Likewise.
4951         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
4952         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
4953         (vsx_xvcvsxddp_scale): New define_expand.
4954         (vsx_xvcvsxddp): New define_insn.
4955         (vsx_xvcvuxddp_scale): New define_expand.
4956         (vsx_xvcvuxddp): New define_insn.
4957         (vsx_xvcvdpsxds_scale): New define_expand.
4958         (vsx_xvcvdpsxds): New define_insn.
4959         (vsx_xvcvdpuxds_scale): New define_expand.
4960         (vsx_xvcvdpuxds): New define_insn.
4961         * doc/extend.texi (vec_ctf): Add new prototypes.
4962         (vec_cts): Likewise.
4963         (vec_ctu): Likewise.
4964         (vec_splat): Likewise.
4965         (vec_div): Likewise.
4966         (vec_mul): Likewise.
4968 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4970         PR target/62275
4971         * config/arm/neon.md
4972         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4973         <v_cmp_result>): New pattern.
4974         * config/arm/iterators.md (NEON_VCVT): New int iterator.
4975         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4976         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4977         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4978         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4979         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4981 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4983         PR target/62275
4984         * config/arm/iterators.md (FIXUORS): New code iterator.
4985         (VCVT): New int iterator.
4986         (su_optab): New code attribute.
4987         (su): Likewise.
4988         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4990 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4992         * config/aarch64/predicates.md (aarch64_comparison_operation):
4993         New special predicate.
4994         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4995         aarch64_comparison_operation instead of matching an operator.
4996         Update operand numbers.
4997         (csinc3<mode>_insn): Likewise.
4998         (*csinv3<mode>_insn): Likewise.
4999         (*csneg3<mode>_insn): Likewise.
5000         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
5001         * config/aarch64/aarch64.c (aarch64_get_condition_code):
5002         Return -1 instead of aborting on invalid condition codes.
5003         (aarch64_print_operand): Update aarch64_get_condition_code callsites
5004         to assert that the returned condition code is valid.
5005         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
5007 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
5009         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
5010         tree.def, and gimple.def
5012 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
5013             Balaji V. Iyer  <balaji.v.iyer@intel.com>
5014             Igor Zamyatin  <igor.zamyatin@intel.com>
5016         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
5017         (__cilkrts_cilk_for_64): Likewise.
5018         * cilk-common.c (declare_cilk_for_builtin): New function.
5019         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
5020         __cilkrts_cilk_for_64 bultins.
5021         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
5022         CILK_TI_F_LOOP_64.
5023         (cilk_for_32_fndecl): New define.
5024         (cilk_for_64_fndecl): Likewise.
5025         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
5026         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
5027         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
5028         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
5029         GF_OMP_FOR_COMBINED_INTO.
5030         * gimplify.c (gimplify_scan_omp_clauses): Added
5031         OMP_CLAUSE__CILK_FOR_COUNT_ case.
5032         (gimplify_adjust_omp_clauses): Ditto.
5033         (gimplify_omp_for): Added CILK_FOR case.
5034         (gimplify_expr): Ditto.
5035         * omp-low.c: Include cilk.h.
5036         (extract_omp_for_data): Set appropriate kind for
5037         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
5038         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
5039         (create_omp_child_function_name): Added second argument to handle
5040         cilk_for case.
5041         (cilk_for_check_loop_diff_type): New function.
5042         (expand_cilk_for_call): Likewise.
5043         (expand_cilk_for): Likewise.
5044         (create_omp_child_function): Set cilk_for_count; handle the cases when
5045         it is true; call create_omp_child_function_name with second argument.
5046         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
5047         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
5048         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
5049         * tree-nested.c (convert_nonlocal_omp_clauses): Added
5050         OMP_CLAUSE__CILK_FOR_COUNT_ case.
5051         (convert_local_omp_clauses): Ditto.
5052         * tree-pretty-print.c (dump_omp_clause): Added
5053         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
5054         (dump_generic_node): Added CILK_FOR case.
5055         * tree.c (omp_clause_num_ops): New element
5056         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
5057         (omp_clause_code_name): New element _Cilk_for_count_.
5058         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
5059         * tree.def: Add tree code for CILK_FOR.
5061 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5063         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
5064         (ppc403-compare): Add "exts with dot" case.
5065         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
5066         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
5067         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
5068         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
5069         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
5070         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
5071         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
5072         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5073         cell-cmp-microcoded): Similarly.
5074         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
5075         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
5076         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
5077         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
5078         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
5079         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
5080         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
5081         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
5082         (power6-compare): Add "exts with dot" case.
5083         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
5084         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
5085         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
5087         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
5088         if avoiding Cell microcode.
5089         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
5090         (is_cracked_insn): Ditto.
5091         (insn_must_be_first_in_group): Ditto.
5092         * config/rs6000/rs6000.md (dot): Adjust comment.
5093         (cell_micro): Handle exts+dot.
5094         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
5095         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
5096         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
5097         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
5098         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
5099         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
5100         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
5102 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5104         * config/rs6000/rs6000.md (QHSI): Delete.
5105         (EXTQI, EXTHI, EXTSI): New mode iterators.
5106         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
5107         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
5108         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
5109         9 anonymous instructions, and 8 splitters): Delete.
5110         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
5111         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
5112         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
5113         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
5114         *zero_extendsi<mode>2_dot2): New.
5116 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5118         * config/rs6000/rs6000.md (any_extend): New code iterator.
5119         (u, su): New code attributes.
5120         (dmode, DMODE): New mode attributes.
5121         (<su>mul<mode>3_highpart): New.
5122         (*<su>mul<mode>3_highpart): New.
5123         (<su>mulsi3_highpart_le): New.
5124         (<su>muldi3_highpart_le): New.
5125         (<su>mulsi3_highpart_64): New.
5126         (<u>mul<mode><dmode>3): New.
5127         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
5128         splitters): Delete.
5129         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
5130         splitters): Delete.
5132 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5134         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
5135         *mulsi3_internal2, and two splitters): Delete.
5136         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
5137         Delete.
5138         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
5140 2014-09-02  Richard Biener  <rguenther@suse.de>
5142         PR tree-optimization/62695
5143         * tree-ssa-structalias.c (find_func_clobbers): Add missing
5144         vector truncate.
5146 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
5148         PR target/62312
5149         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
5151 2014-09-01  Andi Kleen  <ak@linux.intel.com>
5153         * file-find.c (add_prefix_begin): Add.
5154         (do_add_prefix): Rename from add_prefix with first argument.
5155         (add_prefix): Add new wrapper.
5156         * file-find.h (add_prefix_begin): Add.
5157         * gcc-ar.c (main): Support -B option.
5159 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
5161         * genemit.c: Include dumpfile.h.
5162         (gen_split): Print name of splitter function to dump file.
5164 2014-09-01  Richard Biener  <rguenther@suse.de>
5166         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
5167         Use stack auto_vecs for constraint expressions.
5168         (find_func_aliases_for_call): Likewise.
5169         (find_func_aliases): Likewise.
5170         (find_func_clobbers): Likewise.
5172 2014-09-01  Richard Biener  <rguenther@suse.de>
5174         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
5175         operands vector in most cases.  Remove redundant code.
5177 2014-09-01  Olivier Hainque  <hainque@adacore.com>
5179         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
5180         $WIND_BASE instead of designating a harcoded arbitrary home dir.
5181         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
5183 2014-09-01  Richard Biener  <rguenther@suse.de>
5185         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
5186         copy_reference_ops_from_call, vn_nary_op_compute_hash,
5187         vn_reference_compute_hash, vn_reference_insert): Remove.
5188         (vn_reference_lookup_call): New function.
5189         * tree-ssa-sccvn.c (vn_reference_compute_hash,
5190         copy_reference_ops_from_ref, copy_reference_ops_from_call,
5191         vn_reference_insert, vn_nary_op_compute_hash): Make static.
5192         (create_reference_ops_from_call): Remove.
5193         (vn_reference_lookup_3): Properly update shared_lookup_references.
5194         (vn_reference_lookup_pieces): Assert that we updated
5195         shared_lookup_references properly.
5196         (vn_reference_lookup): Likewise.
5197         (vn_reference_lookup_call): New function.
5198         (visit_reference_op_call): Use it.  Avoid re-building the
5199         reference ops.
5200         (visit_reference_op_load): Remove redundant lookup.
5201         (visit_reference_op_store): Perform special tail-merging work
5202         only when possibly doing tail-merging.
5203         (visit_use): Likewise.
5204         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
5206 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
5208         PR target/62025
5209         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
5210         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
5211         (find_inc): Revert 2014-08-13 change.
5213 2014-09-01  Marek Polacek  <polacek@redhat.com>
5215         PR middle-end/61903
5216         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
5217         Change the type of V to unsigned HOST_WIDE_INT.
5219 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5221         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
5222         the size of byte markers.
5223         (do_shift_rotate): Fix confusion between host, target and marker byte
5224         size.
5225         (verify_symbolic_number_p): Likewise.
5226         (find_bswap_or_nop_1): Likewise.
5227         (find_bswap_or_nop): Likewise.
5229 2014-09-01  Olivier Hainque  <hainque@adacore.com>
5231         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
5232         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
5234 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
5236         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
5237         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
5238         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
5240 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
5242         PR sanitizer/61897
5243         PR sanitizer/62140
5244         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
5245         (build_check_stmt): Likewise.
5246         (instrument_strlen_call): Likewise.
5247         (asan_expand_check_ifn): Likewise and fix types.
5248         (maybe_cast_to_ptrmode): New function.
5250 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5252         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
5254 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5256         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
5258 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
5260         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
5261         prefix to function labels when generating fast indirect calls.
5263 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
5265         PR bootstrap/62304
5267         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
5268         param back from rtx_insn * to rtx.  Rename param from "label" to
5269         "label_or_return", reintroducing "label" as an rtx_insn * after
5270         we've ensured it's not a RETURN.
5271         (first_active_target_insn): Likewise for return type and param;
5272         add a checked cast to rtx_insn * once we've ensured "insn" is not
5273         a RETURN.
5274         (steal_delay_list_from_target): Convert param "pnew_thread" back
5275         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
5276         with JUMP_LABEL.
5277         (own_thread_p): Convert param "thread" back from an rtx_insn * to
5278         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
5279         cast once we've established we're not dealing with a RETURN,
5280         renaming subsequent uses of "thread" to "thread_insn".
5281         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
5282         to JUMP_LABEL.
5283         (follow_jumps): Convert return type and param "label" from
5284         rtx_insn * back to rtx.  Move initialization of "value" to after
5285         the handling for ANY_RETURN_P, adding a checked cast there to
5286         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
5287         rename to "this_label_or_return", reintroducing "this_label" as
5288         an rtx_insn * once we've handled the case where it could be an
5289         ANY_RETURN_P.
5290         (fill_slots_from_thread): Rename param "thread" to
5291         "thread_or_return", converting from an rtx_insn * back to an rtx.
5292         Reintroduce name "thread" as an rtx_insn * local with a checked
5293         cast once we've handled the case of it being an ANY_RETURN_P.
5294         Convert local "new_thread" from an rtx_insn * back to an rtx.
5295         Add a checked cast when assigning to "trial" from "new_thread".
5296         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
5297         checked cast to rtx_insn * from "new_thread" when invoking
5298         get_label_before.
5299         (fill_eager_delay_slots): Convert locals "target_label",
5300         "insn_at_target" from rtx_insn * back to rtx.
5301         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
5302         (relax_delay_slots): Convert locals "trial", "target_label" from
5303         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
5304         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
5305         invoking update_block.
5306         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
5307         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
5309         * resource.h (mark_target_live_regs): Undo erroneous conversion
5310         of second param of r214693, converting it back from rtx_insn * to
5311         rtx, since it could be a RETURN.
5313         * resource.c (find_dead_or_set_registers): Similarly, convert
5314         param "jump_target" back from an rtx_insn ** to an rtx *, as we
5315         could be writing back a RETURN.  Rename local rtx_insn * "next" to
5316         "next_insn", and introduce "lab_or_return" as a local rtx,
5317         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
5318         (mark_target_live_regs): Undo erroneous conversion
5319         of second param of r214693, converting it back from rtx_insn * to
5320         rtx, since it could be a RETURN.  Rename it from "target" to
5321         "target_maybe_return", reintroducing the name "target" as a local
5322         rtx_insn * with a checked cast, after we've handled the case of
5323         ANY_RETURN_P.
5325 2014-08-29  DJ Delorie  <dj@redhat.com>
5327         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
5328         pointer size up to a power of two.
5329         * defaults.h (DWARF2_ADDR_SIZE): Round up.
5330         (POINTER_SIZE_UNITS): New, rounded up value.
5331         * dwarf2asm.c (size_of_encoded_value): Use it.
5332         (dw2_output_indirect_constant_1): Likewise.
5333         * expmed.c (init_expmed_one_conv): We now know the sizes of
5334         partial int modes.
5335         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
5336         * optabs.c (expand_float): Use precision, not size.
5337         (expand_fix): Likewise.
5338         * simplify-rtx (simplify_unary_operation_1): Likewise.
5339         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5340         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
5341         (default_assemble_integer) Likewise.
5342         (dump_tm_clone_pairs): Likewise.
5343         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
5344         * var-tracking.c (adjust_mems): Allow partial-int modes also.
5345         (prepare_call_arguments): Likewise.
5346         * stor-layout.c (finalize_type_size): Preserve precision.
5347         (layout_type): Use precision, not size.
5349         * expr.c (convert_move): If the target has an explicit converter,
5350         use it.
5352 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
5354         * gdbinit.in: Skip various inline functions in rtl.h when
5355         stepping.
5357 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
5359         PR bootstrap/62301
5360         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
5362 2014-08-29  Richard Biener  <rguenther@suse.de>
5364         PR tree-optimization/62291
5365         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
5366         exactly the vector size needed and use quick_push.
5367         (phi_translate_1): Adjust comment.
5368         (valid_in_sets): Remove block argument and remove pointless
5369         checking of NAMEs.
5370         (dependent_clean): Adjust for removal of block argument.
5371         (clean): Likewise.
5372         (compute_antic_aux): Likewise.
5373         (compute_partial_antic_aux): Likewise.
5375 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5376             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5377             Anna Tikhonova  <anna.tikhonova@intel.com>
5378             Ilya Tocar  <ilya.tocar@intel.com>
5379             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5380             Ilya Verbin  <ilya.verbin@intel.com>
5381             Kirill Yukhin  <kirill.yukhin@intel.com>
5382             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5384         * config/i386/sse.md
5385         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
5386         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
5387         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
5388         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
5390 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5391             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5392             Anna Tikhonova  <anna.tikhonova@intel.com>
5393             Ilya Tocar  <ilya.tocar@intel.com>
5394             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5395             Ilya Verbin  <ilya.verbin@intel.com>
5396             Kirill Yukhin  <kirill.yukhin@intel.com>
5397             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5399         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
5400         * config/i386/sse.md
5401         (define_mode_iterator VI4_128_8_256): New.
5402         (define_mode_iterator VI2_128_4_256): Ditto.
5403         (define_mode_iterator PMOV_DST_MODE): Rename into
5404         (define_mode_iterator PMOV_DST_MODE_1): this.
5405         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
5406         Use PMOV_DST_MODE_1 mode iterator.
5407         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
5408         Ditto.
5409         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
5410         Ditto.
5411         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
5412         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
5413         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
5414         (define_mode_iterator PMOV_DST_MODE_2): New.
5415         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
5416         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
5417         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
5418         Ditto.
5419         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
5420         (define_mode_attr pmov_dst_3): Ditto.
5421         (define_mode_attr pmov_dst_zeroed_3): Ditto.
5422         (define_mode_attr pmov_suff_3): Ditto.
5423         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
5424         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
5425         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
5426         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
5427         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
5428         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
5429         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
5430         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
5431         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
5432         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
5433         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
5434         (define_mode_attr pmov_dst_4): Ditto.
5435         (define_mode_attr pmov_dst_zeroed_4): Ditto.
5436         (define_mode_attr pmov_suff_4): Ditto.
5437         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
5438         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
5439         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
5440         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
5441         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
5442         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
5443         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
5444         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
5445         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
5446         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
5447         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
5449 2014-08-29  Richard Biener  <rguenther@suse.de>
5451         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
5452         NON_LVALUE_EXPR in gimple.
5454 2014-08-29  Richard Biener  <rguenther@suse.de>
5456         PR middle-end/62292
5457         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
5458         from previous refactoring.
5459         (gimple_fold_builtin_strncpy): Likewise.
5461 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
5463         PR bootstrap/62300
5464         * function.c (assign_parm_setup_reg): Remove erroneous checked
5465         cast to rtx_insn * on result of gen_extend_insn in favor of
5466         introducing a new local rtx "pat".
5468 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5470         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
5471         to silence warning.
5472         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
5474 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5476         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
5477         (next_insn): Likewise.
5478         * emit-rtl.c (next_insn): Likewise.
5479         (previous_insn): Likewise.
5480         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
5481         "insn" and "next" from rtx to rtx_insn *.
5482         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
5483         "insn", "insn1", "vliw_start",  "prologue_end_note",
5484         "last_insn_in_packet".
5486 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5488         * shrink-wrap.h (active_insn_between): Strengthen both params from
5489         rtx to rtx_insn *.
5490         * function.c (active_insn_between): Likewise.
5492 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5494         * genattr.c (main): When writing out insn-attr.h, strengthen param
5495         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
5496         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
5497         writing out the definition of dfa_clear_single_insn_cache to the
5498         generated insn-automata.c
5500 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5502         * resource.h (clear_hashed_info_for_insn): Strengthen param from
5503         rtx to rtx_insn *.
5504         (incr_ticks_for_insn): Likewise.
5505         (init_resource_info): Likewise.
5507         * resource.c (init_resource_info): Likewise.
5508         (clear_hashed_info_for_insn): Likewise.
5509         (incr_ticks_for_insn): Likewise.
5511         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
5512         rtx to rtx_insn *.
5513         (steal_delay_list_from_target): Use methods of "seq".
5514         (try_merge_delay_insns): Use methods of "merged_insns".
5515         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
5516         (reorg_redirect_jump): Likewise for param "jump".
5518 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5520         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
5521         rtx to rtx_insn *.
5522         * config/s390/s390.c (s390_split_branches): Eliminate top-level
5523         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
5524         "set_insn".
5525         (s390_mainpool_finish): In three places, split out a local rtx
5526         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
5527         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
5528          and split another local rtx "insn" out into rtx "pat" and
5529         rtx_insn * "insn".
5530         * config/sh/sh.c (output_branchy_insn): Rather than working
5531         directly on operands[9], introduce local rtx_code_label *
5532         variables named "lab" in two places, working on them, and then
5533         assigning them to operands[9], so that the intervening operations
5534         are known by the type system to be on insns.
5536 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5538         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
5539         const rtx_insn *.
5541         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
5542         in invocation of INSN_HAS_LOCATION.
5544 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5546         * config/rs6000/altivec.h (vec_xl): New #define.
5547         (vec_xst): Likewise.
5548         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
5549         (XXSPLTD_V2DI): Likewise.
5550         (DIV_V2DI): Likewise.
5551         (UDIV_V2DI): Likewise.
5552         (MUL_V2DI): Likewise.
5553         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5554         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
5555         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
5556         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
5557         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
5558         (UNSPEC_VSX_DIVSD): Likewise.
5559         (UNSPEC_VSX_DIVUD): Likewise.
5560         (UNSPEC_VSX_MULSD): Likewise.
5561         (vsx_mul_v2di): New insn-and-split.
5562         (vsx_div_v2di): Likewise.
5563         (vsx_udiv_v2di): Likewise.
5564         (vsx_xxspltd_<mode>): New insn.
5566 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5568         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
5569         NEXT_INSN.
5570         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
5571         (NEXT_INSN): Likewise.
5572         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
5573         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
5574         const rtx_insn *.
5575         (no_labels_between_p): Likewise for both params.
5577         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
5578         cast when using NEXT_INSN on operands[2].
5579         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
5580         "insn" from rtx to rtx_insn *, adding a checked cast.
5581         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
5582         rtx_insn *.
5583         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
5584         for third param.
5585         (arc_text_label): Likewise for param "insn".
5586         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
5587         "insn".
5588         (arc_ccfsm_record_condition): Likewise for param "jump".
5589         (arc_text_label): Likewise for local "label".
5590         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
5591         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
5592         a method for typesafety.  Add a checked cast.
5593         * config/arc/constraints.md (Clb): Add a checked cast when getting
5594         the CODE_LABEL from a LABEL_REF.
5595         * config/arm/arm.c (require_pic_register): Strengthen locals
5596         "seq", "insn" from rtx to rtx_insn *.
5597         (create_fix_barrier): Likewise for locals "selected", "next".
5598         (thumb1_reorg): Likewise for locals "prev", "insn".
5599         (arm_expand_prologue): Likewise for local "last".
5600         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
5601         operands[0].
5602         (thumb2_output_casesi): Likewise for operands[2].
5603         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
5604         strengthen local "insn" from rtx to rtx_insn *.
5605         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
5606         type and param "insn".
5607         (find_prev_insn_start): Likewise.
5608         (hwloop_optimize): Likewise for locals "insn", "last_insn",
5609         "prev".
5610         (gen_one_bundle): Likewise for loal "t".
5611         (find_load): Likewise for param "insn".
5612         (workaround_speculation): Likewise for locals "insn", "next",
5613         "target", "next_tgt".
5614         * config/c6x/c6x.c (assign_reservations): Likewise for both params
5615         and for locals "insn", "within", "last".
5616         (count_unit_reqs): Likewise for params "head", "tail" and local
5617         "insn".
5618         (try_rename_operands): Likewise for params "head", "tail".
5619         (reshuffle_units): Likewise for locals "head", "tail", "insn".
5620         (struct c6x_sched_context): Likewise for fields
5621         "last_scheduled_insn", "last_scheduled_iter0".
5622         (init_sched_state): Replace NULL_RTX with NULL.
5623         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
5624         to rtx_insn *.
5625         (undo_split_delayed_nonbranch): Likewise for param and for local
5626         "prev".
5627         (conditionalize_after_sched): Likewise for local "insn".
5628         (bb_earliest_end_cycle): Likewise.
5629         (filter_insns_above): Likewise for locals "insn", "next".
5630         (hwloop_optimize): Remove redundant checked cast.
5631         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
5632         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
5633         NULL_RTX with NULL.
5634         (cris_simple_epilogue): Likewise.
5635         (cris_expand_prologue): Likewise.
5636         (cris_expand_epilogue): Likewise.
5637         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
5638         local "insn" from rtx to rtx_insn *.
5639         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
5640         (struct frv_packet_group): Likewise for the elements within array
5641         fields "insns", "sorted", and for field "nop".
5642         (frv_packet): Likewise for the elements within array field
5643         "insns".
5644         (frv_add_insn_to_packet): Likewise for param "insn".
5645         (frv_insert_nop_in_packet): Likewise for param "insn" and local
5646         "last".
5647         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
5648         (frv_sort_insn_group_1): Likewise for local "insn".
5649         (frv_optimize_membar_local): Likewise.
5650         (frv_align_label): Likewise for locals "x", "last", "barrier",
5651         "label".
5652         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
5653         local.
5654         (ia64_sched_init): Likewise for local "insn".
5655         (scheduled_good_insn): Likewise for param "last".
5656         (struct _ia64_sched_context): Likewise for field
5657         "last_scheduled_insn".
5658         (ia64_init_sched_context): Replace NULL_RTX with NULL.
5659         (struct bundle_state): Likewise for field "insn".
5660         (issue_nops_and_insn): Likewise for param "insn".
5661         (get_next_important_insn): Likewise for return type and both
5662         params.
5663         (ia64_add_bundle_selector_before): Likewise for param "insn".
5664         (bundling): Likewise for params "prev_head_insn", "tail" and
5665         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
5666         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
5667         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
5668         Strengthen final param from rtx to rtx_insn *.
5669         (iq2000_move_1word): Likewise for second param.
5670         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
5671         param "cur_insn" and local "next_insn".
5672         (iq2000_move_1word): Likewise for param "insn".
5673         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
5674         casts when using NEXT_INSN on operands[1].
5675         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
5676         "insn" from rtx to rtx_insn *.
5677         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
5678         "x", introducing local rtx_insn * "insn" for when working with the
5679         CODE_LABEL of the LABEL_REF.
5680         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
5681         rtx_insn *.
5682         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
5683         param.
5684         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
5685         type.
5686         (conditionalize_block): Likewise for return type and param.
5687         (mcore_is_dead): Likewise for param "first" and local "insn".
5688         (emit_new_cond_insn): Likewise for return type.
5689         (conditionalize_block): Likewise for return type, param, and
5690         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
5691         "newinsn".
5692         (conditionalize_optimization): Likewise for local "insn".
5693         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
5694         using NEXT_INSN.
5695         * config/microblaze/microblaze.md: Add checked casts when using
5696         NEXT_INSN.
5697         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
5698         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
5699         and rtx_insn * "insn".
5700         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
5701         checked cast when using NEXT_INSN on operands[2].
5702         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
5703         local "insn" from rtx to rtx_insn *.
5704         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
5705         Likewise.
5706         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
5707         Add a checked cast when using NEXT_INSN on operands[1].
5708         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
5709         rtx to rtx_insn *.
5710         (pa_output_cbranch): Likewise for final param.
5711         (pa_output_lbranch): Likewise for second param.
5712         (pa_output_bb): Likewise for third param.
5713         (pa_output_bvb): Likewise.
5714         (pa_output_dbra): Likewise for second param.
5715         (pa_output_movb): Likewise.
5716         (pa_output_parallel_movb): Likewise.
5717         (pa_output_parallel_addb): Likewise.
5718         (pa_output_millicode_call): Likewise for first param.
5719         (pa_output_mul_insn): Likewise for second param.
5720         (pa_output_div_insn): Likewise for third param.
5721         (pa_output_mod_insn): Likewise for second param.
5722         (pa_jump_in_call_delay): Likewise for param.
5723         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
5724         (pa_output_div_insn): Likewise.
5725         (pa_output_mod_insn): Likewise.
5726         (pa_output_cbranch): Likewise.
5727         (pa_output_lbranch): Likewise.
5728         (pa_output_bb): Likewise.
5729         (pa_output_bvb): Likewise.
5730         (pa_output_dbra): Likewise.
5731         (pa_output_movb): Likewise.
5732         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
5733         to simplify and for typesafety.
5734         (pa_output_call): Use method of rtx_sequence *.
5735         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
5736         (pa_jump_in_call_delay): Likewise.
5737         (pa_output_parallel_movb): Likewise.
5738         (pa_output_parallel_addb): Likewise.
5739         (pa_following_call): Likewise.
5740         (pa_combine_instructions): Likewise for locals "anchor",
5741         "floater".
5742         (pa_can_combine_p): Likewise for params "anchor", "floater" and
5743         locals "start", "end".
5744         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
5745         param "insn" and local "local_insn".
5746         (picochip_final_prescan_insn): Likewise for local "local_insn".
5747         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
5748         local "insn".
5749         (uses_TOC): Likewise.
5750         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
5751         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
5752         splitting out to more tightly-scoped locals, 3 as rtx and one as
5753         rtx_insn *.
5754         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
5755         to rtx_insn *.
5756         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
5757         where needed.
5758         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
5759         to rtx_insn *.
5760         (fixup_addr_diff_vecs): Likewise.
5761         (reg_unused_after): Likewise for param 2.
5762         (sh_can_redirect_branch): Likewise for both params.
5763         (check_use_sfunc_addr): Likewise for param 1.
5764         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
5765         (find_barrier): Likewise for local "last_got".
5766         (gen_block_redirect): Likewise for return type, param "jump" and
5767         locals "prev", "scan", "next", "insn".
5768         (struct far_branch): Likewise for fields "near_label",
5769         "insert_place", "far_label".
5770         (gen_far_branch): Likewise for local "jump".
5771         (fixup_addr_diff_vecs): Likewise for param "first" and locals
5772         "insn", "prev".
5773         (barrier_align): Likewise for param and for locals "prev", "x".
5774         Introduce local rtx_sequence * "prev_seq" and use insn method for
5775         typesafety and clarity.
5776         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
5777         (get_dest_uid): Likewise for local "dest".
5778         (split_branches): Likewise for locals "next", "beyond", "label",
5779         "block", "far_label".  Add checked casts when assigning to
5780         bp->far_label and "far_label".
5781         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
5782         (sequence_insn_p): Likewise.
5783         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
5784         more loop-scoped rtx "insn" when walking LABEL_REFS.
5785         (sh_can_redirect_branch): Strengthen both params from rtx to
5786         rtx_insn *.
5787         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
5788         new local rtx_sequence * "seq" via a dyn_cast, and use a method
5789         for clarity and typesafety.
5790         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
5791         "insn" from rtx to rtx_insn *.
5792         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
5793         when using NEXT_INSN on the CODE_LABEL in operands[2].
5794         (define_insn "casesi_worker_2"): Likewise.
5795         (define_insn "casesi_shift_media"): Likewise.
5796         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
5797         operands[3].
5798         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
5799         Strengthen field "insn" from rtx to rtx_insn *.
5800         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
5801         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
5802         param "start_insn" and local "start_insn".
5803         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
5804         field "insn".
5805         (find_set_of_reg_bb): Likewise for param "insn".
5806         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
5807         (trace_reg_uses): Likewise for param "start_insn".
5808         (sh_treg_combine::cbranch_trace): Likewise for field
5809         "cbranch_insn".
5810         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
5811         param "insn".
5812         (sh_treg_combine::record_set_of_reg): Likewise for param
5813         "start_insn" and local "i".
5814         (sh_treg_combine::can_remove_cstore): Likewise for local
5815         "prev_insn".
5816         (sh_treg_combine::try_optimize_cbranch): Likewise for param
5817         "insn".
5818         (sh_treg_combine::execute): Likewise for local "i".
5819         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
5820         param.
5821         (sparc_check_64): Likewise for second param.
5822         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5823         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
5824         dyn_cast, using its insn method for typesafety and clarity.
5825         (empty_delay_slot): Strengthen param "insn" from rtx to
5826         rtx_insn *.
5827         (set_extends): Likewise.
5828         (sparc_check_64): Likewise.
5829         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
5830         for locals "seq", "last_insn".
5831         (combine_bnp): Likewise for param "insn".
5832         (xstormy16_reorg): Likewise for local "insn".
5833         * config/v850/v850.c (substitute_ep_register): Likewise for params
5834         "first_insn", "last_insn" and local "insn".
5835         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
5836         elements of "regs" array, and local "insn".
5837         * except.c (emit_note_eh_region_end): Likewise for param "insn".
5838         * final.c (final_sequence): Strengthen this global from rtx to
5839         rtx_sequence *.
5840         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
5841         rtx_insn *.
5842         (final_scan_insn): Update assignment to "final_sequence" to be
5843         from "seq", the cast version of "body", for type-safety.
5844         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
5845         "insns" from rtx to rtx_insn *.
5846         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
5847         * genattr.c (main): When writing out generated insn-attr.h,
5848         strengthen params 1 and 3 of eligible_for_delay,
5849         eligible_for_annul_true, eligible_for_annul_false from rtx to
5850         rtx_insn *.
5851         * genattrtab.c (write_eligible_delay): Likewise when writing out
5852         generated insn-attrtab.c; also local "insn" the generated
5853         functions.
5854         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
5855         to rtx_insn *.
5856         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
5857         "start_label" from rtx to rtx_insn *.
5858         * ira.c (decrease_live_ranges_number): Likewise for local "p".
5859         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
5860         "insns" and local "insn".
5861         (validate_equiv_mem): Likewise for param "start" and local "insn".
5862         (memref_used_between_p): Likewise for params "start", "end" and
5863         local "insn".
5864         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
5865         final param.
5866         * loop-doloop.c (doloop_optimize): Within region guarded by
5867         INSN_P (doloop_pat), introduce a new local rtx_insn *
5868         "doloop_insn" via a checked cast, and use it for typesafety,
5869         eventually writing the value back into doloop_pat.
5870         * output.h (final_sequence): Strengthen this global from rtx to
5871         rtx_sequence *.
5872         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
5873         reintroducing "insn" as an rtx_insn * via a checked cast.
5874         Strengthen param "attempt" and local "new_insn"from rtx to
5875         rtx_insn *.
5876         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
5877         to rtx_insn *.
5878         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
5879         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
5880         "p" in favor of more tightly-scoped replacements, sometimes rtx
5881         and sometimes rtx_insn *, as appropriate.
5882         (delete_output_reload): Eliminate top-level rtx "i1", splitting
5883         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
5884         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
5885         local "trial" from rtx to rtx_insn *.
5886         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
5887         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
5888         rtx_sequence * and use methods for clarity and typesafety.
5889         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
5890         rtx to rtx_insn *.  Strenghten local "li" from rtx to
5891         rtx_insn_list * and use its methods for clarity and typesafety.
5892         (steal_delay_list_from_target): Strengthen param "insn" from rtx
5893         to rtx_insn *.
5894         (steal_delay_list_from_fallthrough): Likewise.
5895         (try_merge_delay_insns): Likewise for param "thread" and locals
5896         "trial", "next_trial", "delay_insn".
5897         (redundant_insn): Likewise for param "target" and local "trial".
5898         (own_thread_p): Likewise for param "thread" and locals
5899         "active_insn", "insn".
5900         (get_label_before): Likewise for param "insn".
5901         (fill_simple_delay_slots): Likewise for local "new_label"; use
5902         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
5903         (label_before_next_insn): Strengthen return type and local "insn"
5904         from rtx to rtx_insn *.
5905         (relax_delay_slots): Likewise for locals "other", "tmp".
5906         (make_return_insns): Likewise for param "first" and locals "insn",
5907         "jump_insn", "prev".  Move declaration of "pat" to its assignment
5908         and strengthen from rtx to rtx_sequence *.  Use its methods for
5909         clarity and typesafety.
5910         * rtlanal.c (no_labels_between_p): Strengthen params from
5911         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
5912         rtx_insn *.
5913         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
5914         from const_rtx to const rtx_insn *.
5915         (reg_set_between_p): Rename param "from_insn" to
5916         "uncast_from_insn", and reintroduce "from_insn" as a
5917         const rtx_insn * via a checked cast.
5918         (modified_between_p): Likewise for param "start" as "uncast_start".
5919         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
5920         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
5921         "tmp", head" from rtx to rtx_insn *.
5922         (recompute_rev_top_order): Likewise for local "insn".
5923         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
5924         * store-motion.c (build_store_vectors): Likewise for local "insn".
5925         Strengthen local "st" from rtx to rtx_insn_list * and use methods
5926         for clarity and typesafety.
5927         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
5928         rtx to rtx_insn *.
5929         (computation_cost): Likewise for local "seq".
5930         (get_address_cost): Likewise.
5932 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5934         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
5935         const rtx_insn *.
5936         (label_is_jump_target_p): Likewise for second param.
5938         * rtlanal.c (tablejump_p): Likewise for param "insn".
5939         (label_is_jump_target_p): Likewise for param "jump_insn".
5941 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5943         * rtl.h (find_first_parameter_load): Strengthen return type and
5944         both params from rtx to rtx_insn *.
5945         * rtlanal.c (find_first_parameter_load): Strengthen return type,
5946         both params and locals "before", "first_set" from rtx to
5947         rtx_insn *.  Remove now-redundant cast.
5948         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
5950 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5952         * rtl.h (find_last_value): Delete.
5953         * rtlanal.c (find_last_value): Delete.
5955 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5957         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5958         from rtx to rtx_insn *.
5959         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5960         rtx "note" with new local rtx_insn * "new_head" when calculating
5961         head insn of new basic block.
5962         * combine.c (combine_split_insns): Strengthen return type and local
5963         "ret" from rtx to rtx_insn *.
5964         (likely_spilled_retval_p): Likewise for locals "use" and "p".
5965         (try_combine): Eliminate local "m_split", splitting into new
5966         locals "m_split_insn" and "m_split_pat".
5967         (find_split_point): Strengthen local "seq" from rtx into
5968         rtx_insn *.
5969         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5970         locals "label", "branch".
5971         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5972         for local "insn".
5973         (define_expand "umulsi3_highpart"): Likewise for local "insn".
5974         * dse.c (note_add_store_info): Likewise for fields "first",
5975         "current".
5976         (note_add_store): Likewise for local "insn".
5977         (emit_inc_dec_insn_before): Likewise for locals "insn",
5978         "new_insn", "cur".
5979         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5980         (replace_read): Likewise for locals "insns", "this_insn".
5981         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5982         (notice_eh_throw): Likewise for param "insn".
5983         (before_next_cfi_note): Likewise for return type, param, and local
5984         "prev".
5985         (connect_traces): Likewise for local "note".
5986         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5987         (verify_rtl_sharing): Likewise.
5988         (unshare_all_rtl_in_chain): Likewise for param "insn".
5989         (get_first_nonnote_insn): Likewise for local "insn".
5990         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
5991         "seq" and use its methods to clarify things.
5992         (next_insn): Strengthen return type from rtx to rtx_insn *.
5993         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5994         local rtx_insn * using a checked cast, dropping a checked cast
5995         made redundant by this change.  Use a cast to and method of
5996         rtx_sequence to clarify the code.
5997         (previous_insn): Rename param "insn" to "uncast_insn" and
5998         reintroduce "insn" as a local rtx_insn * using a checked cast,
5999         dropping a checked cast made redundant by this change.  Use a cast
6000         to and method of rtx_sequence to clarify the code.
6001         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
6002         reintroduce "insn" as a local rtx_insn * using a checked cast,
6003         dropping a checked cast made redundant by this change.
6004         (next_nonnote_insn_bb): Likewise.
6005         (prev_nonnote_insn): Likewise.
6006         (prev_nonnote_insn_bb): Likewise.
6007         (next_nondebug_insn): Likewise.
6008         (prev_nondebug_insn): Likewise.
6009         (next_nonnote_nondebug_insn): Likewise.
6010         (prev_nonnote_nondebug_insn): Likewise.
6011         (next_real_insn): Likewise.
6012         (prev_real_insn): Likewise.
6013         (next_active_insn): Likewise.
6014         (prev_active_insn): Likewise.
6015         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
6016         clarity.
6017         (prev_cc0_setter): Likewise.
6018         (try_split): Rename param "trial" to "uncast_trial" and
6019         reintroduce "insn" as a local rtx_insn * using a checked cast,
6020         dropping checked casts made redundant by this change.
6021         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
6022         rtx to rtx_insn *.
6023         (remove_insn): Rename param "insn" to "uncast_insn" and
6024         reintroduce "insn" as a local rtx_insn * using a checked cast.
6025         (emit_pattern_after_setloc): Likewise for param "after", as
6026         "uncast_after".
6027         (emit_pattern_after): Likewise.  Strengthen local "prev" from
6028         rtx to rtx_insn *.
6029         (emit_pattern_before_setloc): Rename param "before" to
6030         "uncast_before" and reintroduce "before" as a local rtx_insn *
6031         using a checked cast.  Strengthen locals "first", "last" from
6032         rtx to rtx_insn *.
6033         (emit_pattern_before): Likewise rename/cast param "before" to
6034         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
6035         * except.c (copy_reg_eh_region_note_forward): Strengthen param
6036         "first" and local "insn" from rtx to rtx_insn *.
6037         (copy_reg_eh_region_note_backward): Likewise for param "last"
6038         and local "insn".
6039         * expr.c (fixup_args_size_notes): Rename param "last" to
6040         "uncast_last" and reintroduce "last" as a local rtx_insn *
6041         using a checked cast.  Strengthen local "insn" from rtx to
6042         rtx_insn *.
6043         * function.c (set_insn_locations): Strengthen param "insn" from
6044         rtx to rtx_insn *.
6045         (record_insns): Likewise for param "insns" and local "tmp".
6046         (active_insn_between): Rename param "tail" to
6047         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
6048         using a checked cast.
6049         (thread_prologue_and_epilogue_insns): Split out top-level local
6050         rtx "seq" into three different rtx_insn * locals.  Strengthen
6051         local "prologue_seq" from rtx to rtx_insn *.
6052         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
6053         from rtx to rtx_insn *.
6054         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
6055         (priority): Likewise for locals "prev_first", "twin".
6056         (setup_insn_max_reg_pressure): Likewise for param "after".
6057         (sched_setup_bb_reg_pressure_info): Likewise.
6058         (no_real_insns_p): Strengthen params from const_rtx to
6059         const rtx_insn *.
6060         (schedule_block): Strengthen local "next_tail" from rtx to
6061         rtx_insn *.
6062         * ifcvt.c (find_active_insn_before): Strengthen return type and
6063         param "insn" from rtx to rtx_insn *.
6064         (find_active_insn_after): Likewise.
6065         (cond_exec_process_insns): Likewise for param "start" and local "insn".
6066         (cond_exec_process_if_block): Likewise for locals "then_start",
6067         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
6068         (noce_process_if_block): Likewise for local "jump".
6069         (merge_if_block): Likewise for two locals named "end".
6070         (cond_exec_find_if_block): Likewise for local "last_insn".
6071         * jump.c (delete_related_insns): Rename param "insn" to
6072         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
6073         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
6074         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
6075         NULL.
6076         (split_reg): Likewise.
6077         * lra.c (lra_process_new_insns): Likewise.
6078         * modulo-sched.c (permute_partial_schedule): Strengthen param
6079         "last" from rtx to rtx_insn *.
6080         * optabs.c (add_equal_note): Likewise for param "insns" and local
6081         "last_insn".
6082         (expand_binop_directly): Add checked casts to rtx_insn * within
6083         NEXT_INSN (pat) uses.
6084         (expand_unop_direct): Likewise.
6085         (maybe_emit_unop_insn): Likewise.
6086         * recog.c (peep2_attempt): Strengthen locals "last",
6087         "before_try", "x" from rtx to rtx_insn *.
6088         * reorg.c (optimize_skip): Strengthen return type and local
6089         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
6090         and locals "trial", "next_trial" from rtx to rtx_insn *.
6091         * resource.c (next_insn_no_annul): Strengthen return type and
6092         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
6093         rtx_sequence to clarify the code.
6094         (mark_referenced_resources): Add a checked cast to rtx_insn *
6095         within PREV_INSN (x).
6096         (find_dead_or_set_registers): Strengthen return type, param
6097         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
6098         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
6099         to rtx_insn **.
6100         (mark_target_live_regs): Strengthen params "insns" and "target",
6101         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
6102         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
6103         the code.
6104         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
6105         from rtx to rtx_insn *.
6106         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
6107         from rtx to rtx_insn *.
6108         (copy_reg_eh_region_note_backward): Likewise.
6109         (unshare_all_rtl_in_chain): Likewise for sole param.
6110         (dump_rtl_slim): Strengthen second and third params from const_rtx
6111         to const rtx_insn *.
6112         * sched-deps.c (sched_free_deps): Strengthen params "head" and
6113         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
6114         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
6115         "next_tail" from rtx to rtx_insn *.
6116         (begin_move_insn): Likewise for local "next".
6117         * sched-int.h (sched_free_deps): Likewise for first and second
6118         params.
6119         (no_real_insns_p): Strengthen both params from const_rtx to
6120         const rtx_insn *.
6121         (sched_setup_bb_reg_pressure_info): Strengthen second params from
6122         rtx to rtx_insn *.
6123         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
6124         "next_tail".
6125         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
6126         and locals "insn", "tail" from const_rtx to const rtx_insn *.
6127         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
6128         rtx_insn *.
6129         (debug_rtl_slim): Strengthen params "first" and "last" from
6130         const_rtx to const rtx_insn *.
6131         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
6132         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
6133         (convert_to_simple_return): Likewise for param "returnjump".
6134         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
6135         "prologue_seq".
6136         (convert_to_simple_return): Likewise for param "returnjump".
6137         * valtrack.c (propagate_for_debug): Likewise for params
6138         "insn", "last".
6139         * valtrack.h (propagate_for_debug): Likewise for second param.
6141 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6143         * output.h (insn_current_reference_address): Strengthen param
6144         from rtx to rtx_insn *.
6145         * final.c (insn_current_reference_address): Likewise.
6147 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6149         * basic-block.h (inside_basic_block_p): Strengthen param from
6150         const_rtx to const rtx_insn *.
6151         * cfgbuild.c (inside_basic_block_p): Likewise.
6153 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6155         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
6156         rtx_insn *.
6157         (get_trace_info): Likewise for param "insn".
6158         (save_point_p): Likewise.
6159         (maybe_record_trace_start): Likewise for both params.
6160         (maybe_record_trace_start_abnormal): Likewise.
6161         (create_trace_edges): Likewise for sole param and for three of the
6162         locals named "lab".
6163         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
6164         to rtx_insn *, and update a call to pat->element to pat->insn.
6166 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6168         * function.h (struct expr_status): Convert field "x_forced_labels"
6169         from rtx_expr_list * to rtx_insn_list *.
6171         * cfgbuild.c (make_edges): Convert local "x" from an
6172         rtx_expr_list * to an rtx_insn_list *, replacing use of
6173         "element" method with "insn" method.
6174         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6175         * except.c (sjlj_emit_dispatch_table): Replace use of
6176         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
6177         forced_labels.
6178         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
6179         rtx_expr_list * to an rtx_insn_list *, replacing use of
6180         "element" method with "insn" method.
6181         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6182         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
6183         rtx_insn *, adding a checked cast.  Replace use of
6184         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
6185         forced_labels.
6186         (expand_label): Likewise for local "label_r".
6188 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6190         * function.h (struct rtl_data): Convert field
6191         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
6192         rtx_insn_list *.
6193         * rtl.h (remove_node_from_insn_list): New prototype.
6195         * builtins.c (expand_builtin): When prepending to
6196         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6197         gen_rtx_EXPR_LIST.
6198         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
6199         to rtx_insn_list *, and use its "insn" method rather than
6200         "element" method.
6201         * cfgrtl.c (delete_insn): Use new function
6202         remove_node_from_insn_list rather than
6203         remove_node_from_expr_list.
6204         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
6205         to rtx_insn_list *, and use its "insn" method rather than
6206         "element" method.
6207         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6208         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6209         * rtlanal.c (remove_node_from_insn_list): New function, adapted
6210         from remove_node_from_expr_list.
6211         * stmt.c (expand_label): When prepending to
6212         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6213         gen_rtx_EXPR_LIST.
6215 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6217         * function.h (struct rtl_data): Strengthen fields "x_return_label"
6218         and "x_naked_return_label" from rtx to rtx_code_label *.
6220 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6222         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
6223         (SET_NEXT_INSN): Likewise.
6224         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
6226         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
6227         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
6228         to split out the SEQUENCE from local "bundle", strengthening the
6229         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
6230         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
6231         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
6232         and the type of the elements of the "slot" array from rtx to
6233         rtx_insn *.
6234         (reorg_split_calls): Likewise for locals "insn" and "next", and
6235         the type of the elements of the "slot" array.
6237         * config/frv/frv.c (frv_nops): Likewise for the elements of this
6238         array.
6239         (frv_function_prologue): Likewise for locals "insn", "next",
6240         "last_call".
6241         (frv_register_nop): Introduce a local "nop_insn" to be the
6242         rtx_insn * containing rtx "nop".
6244         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
6245         used as an insn and sometimes as a pattern, so rename it to
6246         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
6247         using it where dealing with the core insn.
6249         * config/picochip/picochip.c (reorder_var_tracking_notes):
6250         Strengthen locals "insn", "next", "last_insn", "queue",
6251         "next_queue", "prev" from rtx to rtx_insn *.
6253         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
6254         the second param is an rtx_insn ** rather than an rtx **.
6255         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
6256         from rtx to rtx_sequence *, and introduce local named "sequence",
6257         using methods of rtx_sequence to clarify the code.
6258         (remove_insn): Introduce local rtx_sequence * named "sequence" and
6259         use its methods.
6260         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
6261         Rename param "after" to "uncast_after", reintroducing "after" as a
6262         local rtx_insn * with a checked cast.
6263         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
6264         reintroducing "after" as a local rtx_insn * with a checked cast.
6265         Strengthen local "last" from rtx to rtx_insn * and remove the
6266         now-redundant checked casts.
6267         (copy_delay_slot_insn): Strengthen return type and param from rtx
6268         to rtx_insn *.
6270         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
6271         "last" from rtx to rtx_insn *.
6273 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6275         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
6276         param from rtx to rtx_insn *.
6278         * emit-rtl.c (copy_delay_slot_insn): Likewise.
6280         * reorg.c (skip_consecutive_labels): Strengthen return type, param
6281         and local "insn" from rtx to rtx_insn *.
6282         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
6283         (unfilled_slots_next): Likewise.
6284         (function_return_label): Strengthen from rtx to rtx_code_label *.
6285         (function_simple_return_label): Likewise.
6286         (first_active_target_insn): Strengthen return type and param from
6287         rtx to rtx_insn *.
6288         (find_end_label): Strengthen return type from rtx to
6289         rtx_code_label *; strengthen locals as appropriate.
6290         (emit_delay_sequence): Strengthen return type, param "insn" and
6291         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
6292         and local "li" from rtx to rtx_insn_list *, using methods of
6293         rtx_insn_list for clarity and typesafety.
6294         (add_to_delay_list): Strengthen return type and param "insn" from
6295         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
6296         rtx_insn_list * and use methods of rtx_insn_list.
6297         (delete_from_delay_slot): Strengthen return type, param "insn",
6298         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
6299         Strengthen local "seq" from rtx to rtx_sequence *, and local
6300         "delay_list" from rtx to rtx_insn_list *, using methods of
6301         rtx_sequence for clarity and type-safety.
6302         (delete_scheduled_jump): Add checked cast when invoking
6303         delete_from_delay_slot.  Strengthen local "trial" from rtx to
6304         rtx_insn *.
6305         (optimize_skip): Strengthen return type and local "delay_list"
6306         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
6307         rtx_insn *.
6308         (steal_delay_list_from_target): Strengthen return type, param
6309         "delay_list" and local "new_delay_list" from rtx to
6310         rtx_insn_list *.  Strengthen param "seq" from rtx to
6311         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
6312         rtx_insn **.
6313         Split out local "temp" into multiple more-tightly scoped locals:
6314         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
6315         of rtx_insn_list and rtx_sequence for clarity and typesafety.
6316         Strengthen locals named "trial" from rtx to rtx_insn *.
6317         (steal_delay_list_from_fallthrough): Strengthen return type and
6318         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
6319         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
6320         Strengthen local "trial" from rtx to rtx_insn *.
6321         (try_merge_delay_insns): Strength local "merged_insns" from rtx
6322         to rtx_insn_list * and use its methods.  Strengthen local "pat"
6323         from rtx to rtx_sequence * and use its methods.  Strengthen locals
6324         "dtrial" and "new_rtx" from rtx to rtx_insn *.
6325         (get_label_before): Strengthen return type and local "label" from
6326         rtx to rtx_insn *.
6327         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
6328         "next_trial", "next", prev".  Strengthen local "delay_list" from
6329         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
6330         rtx_insn **.
6331         (follow_jumps): Strengthen return type, param "label" and locals
6332         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
6333         (fill_slots_from_thread): Strengthen return type, param
6334         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
6335         "insn", "thread", "opposite_thread" and locals "new_thread",
6336         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
6337         "sequence" from a checked cast to rtx_sequence so that we can call
6338         steal_delay_list_from_target and steal_delay_list_from_fallthrough
6339         with an rtx_sequence *.
6340         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
6341         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
6342         Strengthen local "delay_list" from rtx to rtx_insn_list *.
6343         (relax_delay_slots): Strengthen param "first" and locals "insn",
6344         "next", "trial", "delay_insn", "target_label" from rtx to
6345         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
6346         Introduce a local "trial_seq" for PATTERN (trial) of type
6347         rtx_sequence *, in both cases using methods of rtx_sequence.
6348         (dbr_schedule): Strengthen param "first" and locals "insn",
6349         "next", "epilogue_insn" from rtx to rtx_insn *.
6351 2014-08-28  Richard Biener  <rguenther@suse.de>
6353         PR tree-optimization/62283
6354         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6355         Do not peel loops for alignment where the vector loop likely
6356         doesn't run at least VF times.
6358 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
6360         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
6361         important_candidates.  Consider all important candidates if
6362         IVS doesn't give any result.  Remove check on ivs->upto.
6363         (try_add_cand_for): Call iv_ca_add_use only once.
6365 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6366             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6367             Anna Tikhonova  <anna.tikhonova@intel.com>
6368             Ilya Tocar  <ilya.tocar@intel.com>
6369             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6370             Ilya Verbin  <ilya.verbin@intel.com>
6371             Kirill Yukhin  <kirill.yukhin@intel.com>
6372             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6374         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
6375         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
6376         masking.
6377         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
6378         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6379         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6380         (define_insn "*mul<mode>3"): Add EVEX version.
6382 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6383             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6384             Anna Tikhonova  <anna.tikhonova@intel.com>
6385             Ilya Tocar  <ilya.tocar@intel.com>
6386             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6387             Ilya Verbin  <ilya.verbin@intel.com>
6388             Kirill Yukhin  <kirill.yukhin@intel.com>
6389             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6391         * config/i386/sse.md
6392         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
6393         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
6394         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
6395         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
6396         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
6397         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
6398         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
6399         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
6400         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
6401         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
6402         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
6403         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
6404         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
6405         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
6406         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
6407         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
6409 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6410             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6411             Anna Tikhonova  <anna.tikhonova@intel.com>
6412             Ilya Tocar  <ilya.tocar@intel.com>
6413             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6414             Ilya Verbin  <ilya.verbin@intel.com>
6415             Kirill Yukhin  <kirill.yukhin@intel.com>
6416             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6418         * config/i386/sse.md
6419         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
6420         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
6421         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
6423 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6424             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6425             Anna Tikhonova  <anna.tikhonova@intel.com>
6426             Ilya Tocar  <ilya.tocar@intel.com>
6427             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6428             Ilya Verbin  <ilya.verbin@intel.com>
6429             Kirill Yukhin  <kirill.yukhin@intel.com>
6430             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6432         * config/i386/sse.md
6433         (define_mode_iterator VI128_256): New.
6434         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
6436 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6437             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6438             Anna Tikhonova  <anna.tikhonova@intel.com>
6439             Ilya Tocar  <ilya.tocar@intel.com>
6440             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6441             Ilya Verbin  <ilya.verbin@intel.com>
6442             Kirill Yukhin  <kirill.yukhin@intel.com>
6443             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6445         * config/i386/sse.md
6446         (define_mode_iterator VI8_256_512): New.
6447         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
6448         Ditto.
6449         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
6450         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
6451         Ditto.
6452         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
6454 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6456         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
6457         pointer to the cumulative reloc value and return the value for
6458         this reloc instead.
6459         (compute_reloc_for_rtx): Take a const_rtx.  Call
6460         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
6461         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
6462         for_each_rtx for the CONST case.
6464 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6466         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
6467         (mark_constants_in_pattern): ...this new function to iterate over
6468         all the subrtxes.
6469         (mark_constants): Update accordingly.
6471 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6473         * varasm.c: Include rtl-iter.h.
6474         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
6475         Remove the pointer to the cumulative hashval_t and just return
6476         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
6477         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6478         Accumulate the hashval_ts here instead of const_rtx_hash_1.
6480 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6482         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
6483         Give real type of data parameter.  Remove return value.
6484         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
6485         to iterate over subrtxes.
6487 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6489         * var-tracking.c (use_narrower_mode_test): Turn from being a
6490         for_each_rtx callback to being a function that examines each
6491         subrtx itself.
6492         (adjust_mems): Update accordingly.
6494 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6496         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
6497         callback to being a function that examines each subrtx itself.
6498         Remove handling of null rtxes.
6499         (add_uses): Update accordingly.
6501 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6503         * var-tracking.c: Include rtl-iter.h.
6504         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
6505         to being a function that examines each subrtx itself.
6506         (use_type): Update accordingly.
6508 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6510         * store-motion.c: Include rtl-iter.h.
6511         (extract_mentioned_regs_1): Delete.
6512         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
6513         for_each_rtx to iterate over subrtxes.
6515 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6517         * sel-sched.c: Include rtl-iter.h
6518         (count_occurrences_1): Delete.
6519         (count_occurrences_equiv): Turn rtxes into const_rtxes.
6520         Use FOR_EACH_SUBRTX rather than for_each_rtx.
6522 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6524         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
6525         * rtlanal.c (tls_referenced_p_1): Delete.
6526         (tls_referenced_p): Take a const_rtx rather than an rtx.
6527         Use FOR_EACH_SUBRTX rather than for_each_rtx.
6529 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6531         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
6532         (for_each_inc_dec): Take an rtx rather than an rtx *.
6533         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
6534         (cselib_record_sets): Likewise.
6535         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
6536         (check_for_inc_dec): Likewise.
6537         * rtlanal.c (for_each_inc_dec_ops): Delete.
6538         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
6539         rather than a pointer to the memory address.  Replace
6540         for_each_inc_dec_ops argument with separate function and data
6541         arguments.  Abort on non-autoinc addresses.
6542         (for_each_inc_dec_find_mem): Delete.
6543         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
6544         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
6546 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6548         * rtl.h (find_all_hard_regs): Declare.
6549         * rtlanal.c (find_all_hard_regs): New function.
6550         (record_hard_reg_uses_1): Delete.
6551         (record_hard_reg_uses): Use find_all_hard_regs.
6553 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6555         * rtl.h (replace_label_data): Delete.
6556         (replace_label): Take the old label, new label and update-nuses flag
6557         as direct arguments.  Return void.
6558         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
6559         * rtlanal.c (replace_label): Update interface as above.  Handle
6560         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
6561         iterator.  Use FOR_EACH_SUBRTX_PTR.
6563 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6565         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
6566         with const_rtx parameters.
6567         * varasm.c (get_pool_constant): Likewise.
6568         * rtlanal.c (rtx_referenced_p_1): Delete.
6569         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6570         Assert that the rtx we're looking for is nonnull.  Allow searches
6571         for constant pool SYMBOL_REFs.
6573 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6575         * reload1.c: Include rtl-iter.h.
6576         (note_reg_elim_costly): Turn from being a for_each_rtx callback
6577         to being a function that examines each subrtx itself.
6578         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
6580 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6582         * regcprop.c (cprop_find_used_regs_1): Delete.
6583         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6585 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6587         * regcprop.c: Include rtl-iter.h.
6588         (kill_value): Take a const_rtx.
6589         (kill_autoinc_value): Turn from being a for_each_rtx callback
6590         to being a function that examines each subrtx itself.
6591         (copyprop_hardreg_forward_1): Update accordingly.
6593 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6595         * reg-stack.c: Include rtl-iter.h.
6596         (subst_stack_regs_in_debug_insn): Delete.
6597         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
6598         instead of for_each_rtx.
6600 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6602         * lower-subreg.c (find_decomposable_subregs): Turn from being
6603         a for_each_rtx callback to being a function that examines each
6604         subrtx itself.  Remove handling of null rtxes.
6605         (decompose_multiword_subregs): Update accordingly.
6607 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6609         * lower-subreg.c (adjust_decomposed_uses): Delete.
6610         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
6611         Remove handling of null rtxes.
6613 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6615         * lower-subreg.c: Include rtl-iter.h.
6616         (resolve_subreg_use): Turn from being a for_each_rtx callback
6617         to being a function that examines each subrtx itself.  Remove
6618         handling of null rtxes.
6619         (resolve_reg_notes, resolve_simple_move): Update accordingly.
6620         (decompose_multiword_subregs): Likewise.
6622 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6624         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
6625         to being a function that examines each subrtx itself.
6626         (simplify_using_condition, simplify_using_initial_values): Update
6627         accordingly.
6629 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6631         * loop-iv.c: Include rtl-iter.h.
6632         (find_single_def_src): New function.
6633         (replace_single_def_regs): Turn from being a for_each_rtx callback
6634         to being a function that examines each subrtx itself.
6635         (replace_in_expr, simplify_using_initial_values): Update accordingly.
6637 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6639         * jump.c (eh_returnjump_p_1): Delete.
6640         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6641         Remove handling of null rtxes.
6643 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6645         * jump.c: Include rtl-iter.h.
6646         (returnjump_p_1): Delete.
6647         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6648         Remove handling of null rtxes.
6650 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6652         * ira.c: Include rtl-iter.h.
6653         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
6654         to being a function that examines each subrtx itself.  Remove
6655         handling of null rtxes.
6656         (update_equiv_regs): Update call accordingly.
6658 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6660         * fwprop.c: Include rtl-iter.h.
6661         (varying_mem_p): Turn from being a for_each_rtx callback to being
6662         a function that examines each subrtx itself.
6663         (propagate_rtx): Update accordingly.
6665 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6667         * function.c: Include rtl-iter.h
6668         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
6669         callback to being a function that examines each subrtx itself.
6670         Return the changed flag.
6671         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
6672         (instantiate_virtual_regs): Update calls accordingly.
6674 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6676         * final.c: Include rtl-iter.h.
6677         (mark_symbol_ref_as_used): Delete.
6678         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
6679         for_each_rtx.
6681 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6683         * emit-rtl.c: Include rtl-iter.h.
6684         (find_auto_inc): Turn from being a for_each_rtx callback to being
6685         a function that examines each subrtx itself.  Assume the first operand
6686         to an RTX_AUTOINC is the automodified register.
6687         (try_split): Update call accordingly.
6689 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6691         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
6692         Return a bool, inverting the result so that 0/false means "not ok".
6693         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
6694         subrtxes of a CONST.
6695         (mem_loc_descriptor, add_const_value_attribute)
6696         (resolve_addr_in_expr): Update calls accordingly.
6698 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6700         * dwarf2out.c: Include rtl-iter.h.
6701         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
6702         Remove unused data parameter.  Return a bool, inverting the result
6703         so that 0/false means "not ok".
6704         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
6705         instead of for_each_rtx.
6707 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6709         * dse.c: Include rtl-iter.h.
6710         (check_mem_read_rtx): Change void * parameter to real type.
6711         Remove return value.
6712         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
6713         for_each_rtx.  Don't handle null rtxes.
6715 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6717         * df-problems.c: Include rtl-iter.h.
6718         (find_memory): Turn from being a for_each_rtx callback to being
6719         a function that examines each subrtx itself.  Continue to look for
6720         volatile references even after a nonvolatile one has been found.
6721         (can_move_insns_across): Update calls accordingly.
6723 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6725         * ddg.c (walk_mems_2, walk_mems_1): Delete.
6726         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
6727         to iterate over subrtxes.  Return a bool rather than an int.
6729 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6731         * ddg.c: Include rtl-iter.h.
6732         (mark_mem_use_1): Rename to...
6733         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
6734         instead of for_each_rtx.
6735         (mem_read_insn_p): Update accordingly.
6737 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6739         * cse.c (change_cc_mode_args): Delete.
6740         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
6741         a function that examines each subrtx itself.  Take the fields of
6742         change_cc_mode_args as argument and return void.
6743         (cse_change_cc_mode_insn): Update calls accordingly.
6745 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6747         * cse.c (is_dead_reg): Change argument to const_rtx.
6748         (dead_debug_insn_data): Delete.
6749         (is_dead_debug_insn): Expand commentary.  Turn from being a
6750         for_each_rtx callback to being a function that examines
6751         each subrtx itself.  Take the fields of dead_debug_insn_data
6752         as argument.
6753         (delete_trivially_dead_insns): Update call accordingly.
6755 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6757         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
6758         being a for_each_rtx callback to being a function that examines
6759         each subrtx itself.
6760         (cse_extended_basic_block): Update call accordingly.
6762 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6764         * cse.c (check_dependence_data): Delete.
6765         (check_dependence): Change from being a for_each_rtx callback to being
6766         a function that examines all subrtxes itself.  Don't handle null rtxes.
6767         (invalidate): Update call accordingly.
6769 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6771         * cse.c: Include rtl-iter.h.
6772         (approx_reg_cost_1): Delete.
6773         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6774         Don't handle null rtxes.
6776 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6778         * cfgcleanup.c: Include rtl-iter.h.
6779         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
6780         to being a function that examines each subrtx itself.
6781         (thread_jump): Update accordingly.
6783 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6785         * combine-stack-adj.c: Include rtl-iter.h.
6786         (record_stack_refs_data): Delete.
6787         (record_stack_refs): Turn from being a for_each_rtx callback
6788         to being a function that examines each subrtx itself.
6789         Take a pointer to the reflist.  Invert sense of return value
6790         so that true means success and false means failure.  Don't
6791         handle null rtxes.
6792         (combine_stack_adjustments_for_block): Update accordingly.
6794 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6796         * combine.c (record_truncated_value): Turn from being a for_each_rtx
6797         callback to a function that takes an rtx and returns a bool
6798         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
6799         for_each_rtx.
6801 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6803         * combine.c: Include rtl-iter.h.
6804         (unmentioned_reg_p_1): Delete.
6805         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6806         Don't handle null rtxes.
6808 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6810         * calls.c: Include rtl-iter.h.
6811         (internal_arg_pointer_based_exp_1): Delete.
6812         (internal_arg_pointer_based_exp): Take a const_rtx.
6813         Use FOR_EACH_SUBRTX to iterate over subrtxes.
6815 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6817         * caller-save.c: Include rtl-iter.h.
6818         (add_used_regs_1): Delete.
6819         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
6820         to iterate over subrtxes.  Assert that any remaining pseudos
6821         have been spilled.
6823 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6825         * bt-load.c: Include rtl-iter.h.
6826         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
6827         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
6828         to iterate over subrtxes.
6829         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
6830         find_btr_use rather than btr_referenced_p.
6832 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6834         * alias.c: Include rtl-iter.h.
6835         (refs_newer_value_cb): Delete.
6836         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6838 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6840         * rtl-iter.h: New file.
6841         * rtlanal.c: Include it.
6842         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
6843         (generic_subrtx_iterator <T>::add_single_to_queue)
6844         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
6845         (generic_subrtx_iterator <T>::free_array): New functions.
6846         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
6847         (generic_subrtx_iterator <const_rtx_accessor>)
6848         (generic_subrtx_iterator <rtx_var_accessor>
6849         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
6850         (setup_reg_subrtx_bounds): New function.
6851         (init_rtlanal): Call it.
6853 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6855         PR target/62261
6856         * config/sh/sh.md (ashlsi3): Handle negative shift count for
6857         TARGET_SHMEDIA.
6858         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
6860 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
6862         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
6864 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6866         * rtl.h (JUMP_LABEL_AS_INSN): New.
6868 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6870         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
6871         rtx_expr_list **.
6872         (alloc_EXPR_LIST): Strengthen return type from rtx to
6873         rtx_expr_list *.
6874         (remove_free_EXPR_LIST_node): Likewise for param.
6875         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
6876         from rtx to rtx_expr_list *.
6877         * sched-int.h (struct deps_desc): Strengthen fields
6878         "pending_read_mems" and "pending_write_mems" from rtx to
6879         rtx_expr_list *.
6881         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
6882         rtx to rtx_expr_list *.
6883         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
6884         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
6885         rtx_expr_list **.
6886         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
6887         from rtx to rtx_expr_list *.
6888         * loop-iv.c (simplify_using_initial_values): Strengthen local
6889         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
6890         "pnote_next" from rtx * to rtx_expr_list **.
6891         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
6892         param "exprp" from rtx * to rtx_expr_list **.
6893         (add_insn_mem_dependence): Strengthen local "mem_list" from
6894         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
6895         to rtx_expr_list *.
6896         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
6897         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
6898         param "old_mems_p" from rtx * to rtx_expr_list **.
6899         * var-tracking.c (struct adjust_mem_data): Strengthen field
6900         "side_effects" from rtx to rtx_expr_list *.
6901         (adjust_insn): Replace NULL_RTX with NULL when assigning to
6902         rtx_expr_list *.
6903         (prepare_call_arguments): Likewise.
6905 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6907         * function.h (struct rtl_data): Strengthen field
6908         "x_stack_slot_list" from rtx to rtx_expr_list *.
6910         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
6911         when assigning to stack_slot_list.
6913 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6915         * function.h (struct rtl_data): Strengthen field
6916         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
6917         * rtl.h (remove_node_from_expr_list): Strengthen second param from
6918         rtx * to rtx_expr_list **.
6920         * cfgbuild.c (make_edges): In loop over
6921         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
6922         rtx_expr_list *, and use methods of the latter class to clarify
6923         the code.
6924         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
6925         rtx_expr_list *, and use methods of the latter class to clarify
6926         the code.
6927         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6928         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6929         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
6930         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
6931         to rtx_expr_list *.  Use methods of the latter class to clarify
6932         the code.
6934 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6936         * function.h (struct expr_status): Strengthen field
6937         "x_forced_labels" from rtx to rtx_expr_list *.
6939         * cfgbuild.c (make_edges): Split local "x" into two locals,
6940         strengthening one from rtx to rtx_expr_list *, and using methods
6941         of said class.
6942         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
6943         loop over forced_labels, introduce strengthen it from rtx to
6944         rtx_expr_list *, using methods to clarify the code.
6945         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
6946         to rtx_expr_list *, using methods of said class to clarify the
6947         code.
6948         * reload1.c (set_initial_label_offsets): Split local "x" into two
6949         per-loop variables, strengthening the first from rtx to
6950         rtx_expr_list * and using methods.
6952 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6954         * coretypes.h (class rtx_expr_list): Add forward declaration.
6955         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
6956         * gengenrtl.c (special_rtx): Add EXPR_LIST.
6957         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6958         invariant: GET_CODE (X) == EXPR_LIST.
6959         (is_a_helper <rtx_expr_list *>::test): New.
6960         (rtx_expr_list::next): New.
6961         (rtx_expr_list::element): New.
6962         (gen_rtx_EXPR_LIST): New.
6964 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6966         * varasm.c (mark_constants): Convert a GET_CODE check into a
6967         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6968         Use methods of rtx_sequence to clarify the code.
6970 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6972         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6973         local "seq" via a checked cast, and use methods of rtx_sequence
6974         to simplify the code.
6976 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6978         * resource.c (mark_referenced_resources): Strengthen local
6979         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6980         using methods of rtx_sequence to clarify the code.
6981         (find_dead_or_set_registers): Within the switch statement, convert
6982         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
6983         the JUMP_P handling, introduce another local "seq", adding a
6984         checked cast to rtx_sequence *.  In both cases, use methods of
6985         rtx_sequence to clarify the code.
6986         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6987         via a checked cast, and use methods of rtx_sequence to simplify
6988         the code.
6990 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6992         * reorg.c (redundant_insn): In two places in the function, replace
6993         a check of GET_CODE with a dyn_cast, introducing local "seq", and
6994         usings methods of rtx_sequence to clarify the code.
6996 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6998         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6999         local "seq" with a checked cast, and use methods of rtx_sequence
7000         to clarify the code.
7002 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7004         * function.c (contains): Introduce local "seq" for PATTERN (insn),
7005         with a checked cast, in the region for where we know it's a
7006         SEQUENCE.  Use methods of rtx_sequence.
7008 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7010         * final.c (get_attr_length_1): Replace GET_CODE check with a
7011         dyn_cast, introducing local "seq" and the use of methods of
7012         rtx_sequence.
7013         (shorten_branches): Likewise, introducing local "body_seq".
7014         Strengthen local "inner_insn" from rtx to rtx_insn *.
7015         (reemit_insn_block_notes): Replace GET_CODE check with a
7016         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
7017         Use methods of rtx_sequence.
7018         (final_scan_insn): Likewise, introducing local "seq" for when
7019         "body" is known to be a SEQUENCE, using its methods.
7021 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7023         * except.c (can_throw_external): Strengthen local "seq" from rtx
7024         to rtx_sequence *.  Use methods of rtx_sequence.
7025         (insn_nothrow_p): Likewise.
7027 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7029         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
7030         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
7031         Use methods of rtx_sequence.
7032         (scan_trace): Likewise for local "pat".
7034 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7036         * coretypes.h (class rtx_sequence): Add forward declaration.
7037         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
7038         invariant: GET_CODE (X) == SEQUENCE.
7039         (is_a_helper <rtx_sequence *>::test): New.
7040         (is_a_helper <const rtx_sequence *>::test): New.
7041         (rtx_sequence::len): New.
7042         (rtx_sequence::element): New.
7043         (rtx_sequence::insn): New.
7045 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7047         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
7048         rtx_insn_list **.
7049         (alloc_INSN_LIST): Strengthen return type from rtx to
7050         rtx_insn_list *.
7051         (copy_INSN_LIST): Likewise for return type and param.
7052         (concat_INSN_LIST): Likewise for both params and return type.
7053         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
7054         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
7055         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
7056         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
7058         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
7059         "implicit_sets", "control_uses", "clobbers" from rtx to
7060         rtx_insn_list *.
7061         (struct deps_desc): Likewise for fields "pending_read_insns",
7062         "pending_write_insns", "pending_jump_insns",
7063         "last_pending_memory_flush", "last_function_call",
7064         "last_function_call_may_noreturn", "sched_before_next_call",
7065         "sched_before_next_jump".
7066         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
7067         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
7069         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
7070         from rtx to rtx_insn_list *.
7071         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
7072         rtx_insn_list *.
7074         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
7075         to rtx_insn_list **.
7076         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
7077         rtx_insn_list *.
7078         (queue_insn): Likewise for local "link".
7079         (struct haifa_saved_data): Strengthen field "insn_queue" from
7080         rtx * to rtx_insn_list **.
7081         (save_backtrack_point): Update allocation of save->insn_queue to
7082         reflect the strengthening of elements from rtx to rtx_insn_list *.
7083         (queue_to_ready): Strengthen local "link" from rtx to
7084         rtx_insn_list *; use methods "next" and "insn" when traversing the
7085         list.
7086         (early_queue_to_ready): Likewise for locals "link", "next_link",
7087         "prev_link".
7088         (schedule_block): Update allocation of insn_queue to reflect the
7089         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
7090         local "link" from rtx to rtx_insn_list *, and use methods when
7091         working it.
7092         (add_to_speculative_block): Strengthen locals "twins" and
7093         "next_node" from rtx to rtx_insn_list *, and use methods when
7094         working with them.  Strengthen local "twin" from rtx to
7095         rtx_insn *, eliminating a checked cast.
7096         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
7097         from rtx to rtx_insn_list *, and use methods when working with
7098         them.
7100         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
7101         from rtx to rtx_insn_list *, adding a checked cast.
7102         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
7103         rtx_insn_list **.
7104         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
7105         "newlink" from rtx to rtx_insn_list *.  Strengthen local
7106         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
7107         from rtx to rtx_insn *.
7108         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
7109         from rtx to rtx_insn_list *.  Use methods of the latter class.
7110         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
7111         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
7112         (remove_free_INSN_LIST_node): Strengthen return type and local
7113         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
7114         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
7115         rtx_insn_list *, using "insn" method.
7117         * sched-deps.c (add_dependence_list):  Strengthen param "list"
7118         from rtx to rtx_insn_list *, and use methods when working with it.
7119         (add_dependence_list_and_free):  Strengthen param "listp" from
7120         rtx * to rtx_insn_list **.
7121         (remove_from_dependence_list): Strenghten param "listp" from rtx *
7122         to rtx_insn_list **, and use methods when working with *listp.
7123         (remove_from_both_dependence_lists): Strengthen param "listp" from
7124         rtx * to rtx_insn_list **
7125         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
7126         to rtx_insn_list **.  Eliminate local "link", in favor of two new
7127         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
7128         respectively.
7129         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
7130         by introducing local "cond_deps".
7131         (remove_from_deps): Strengthen param "insn" from rtx to
7132         rtx_insn *.
7134         * sched-rgn.c (concat_insn_mem_list): Strengthen param
7135         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
7136         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
7137         Use methods of rtx_insn_list.
7139         * store-motion.c (struct st_expr): Strengthen fields
7140         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
7141         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
7142         rtx_insn_list *.
7143         (find_moveable_store): Split out "tmp" into multiple more-tightly
7144         scoped locals.  Use methods of rtx_insn_list *.
7145         (compute_store_table): Strengthen local "tmp" from rtx to
7146         rtx_insn *.  Use methods of rtx_insn_list *.
7148 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7150         * coretypes.h (class rtx_insn_list): Add forward declaration.
7151         * rtl.h (class rtx_insn_list): New subclass of rtx_def
7152         (is_a_helper <rtx_insn_list *>::test): New.
7153         (rtx_insn_list::next): New.
7154         (rtx_insn_list::insn): New.
7155         (gen_rtx_INSN_LIST): Add prototype.
7156         * emit-rtl.c (gen_rtx_INSN_LIST): New.
7157         * gengenrtl.c (special_rtx): Add INSN_LIST.
7159 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7161         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
7162         "prev" from rtx to rtx_insn *.
7164 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7166         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
7167         functions.  Require merely an rtx for now, not an rtx_insn *.
7168         (BLOCK_FOR_INSN): Likewise.
7169         (INSN_LOCATION): Likewise.
7170         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
7172 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7174         * rtl.h (PATTERN): Convert this macro into a pair of inline
7175         functions, for now, requiring const_rtx and rtx.
7177 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7179         * target.def (unwind_emit): Strengthen param "insn" from rtx to
7180         rtx_insn *.
7181         (final_postscan_insn): Likewise.
7182         (adjust_cost): Likewise.
7183         (adjust_priority): Likewise.
7184         (variable_issue): Likewise.
7185         (macro_fusion_pair_p): Likewise.
7186         (dfa_post_cycle_insn): Likewise.
7187         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
7188         (first_cycle_multipass_issue): Likewise.
7189         (dfa_new_cycle): Likewise.
7190         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
7191         (speculate_insn): Likewise for param "insn".
7192         (gen_spec_check): Likewise for params "insn" and "label".
7193         (get_insn_spec_ds): Likewise for param "insn".
7194         (get_insn_checked_ds): Likewise.
7195         (dispatch_do): Likewise.
7196         (dispatch): Likewise.
7197         (cannot_copy_insn_p): Likewise.
7198         (invalid_within_doloop): Likewise.
7199         (legitimate_combined_insn): Likewise.
7200         (needed): Likewise.
7201         (after): Likewise.
7203         * doc/tm.texi: Automatically updated to reflect changes to
7204         target.def.
7206         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
7207         working with insn.
7208         (schedule_block): Likewise.
7209         (sched_init): Likewise.
7210         (sched_speculate_insn): Strengthen param "insn" from rtx to
7211         rtx_insn *.
7212         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
7213         working with insn.
7214         * hooks.c (hook_bool_rtx_true): Rename to...
7215         hook_bool_rtx_insn_true): ...this, and strengthen first param from
7216         rtx to rtx_insn *.
7217         (hook_constcharptr_const_rtx_null): Rename to...
7218         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7219         first param from const_rtx to const rtx_insn *.
7220         (hook_bool_rtx_int_false): Rename to...
7221         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7222         param from rtx to rtx_insn *.
7223         (hook_void_rtx_int): Rename to...
7224         (hook_void_rtx_insn_int): ...this, and strengthen first param from
7225         rtx to rtx_insn *.
7227         * hooks.h (hook_bool_rtx_true): Rename to...
7228         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
7229         rtx to rtx_insn *.
7230         (hook_bool_rtx_int_false): Rename to...
7231         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7232         param from rtx to rtx_insn *.
7233         (hook_void_rtx_int): Rename to...
7234         (hook_void_rtx_insn_int): ...this, and strengthen first param from
7235         rtx to rtx_insn *.
7236         (hook_constcharptr_const_rtx_null): Rename to...
7237         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7238         first param from const_rtx to const rtx_insn *.
7240         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
7241         and local "prev" from rtx to rtx_insn *.
7243         * sched-int.h (sched_speculate_insn): Strengthen first param from
7244         rtx to rtx_insn *.
7246         * sel-sched.c (create_speculation_check): Likewise for local "label".
7247         * targhooks.c (default_invalid_within_doloop): Strengthen param
7248         "insn" from const_rtx to const rtx_insn *.
7249         * targhooks.h (default_invalid_within_doloop): Strengthen param
7250         from const_rtx to const rtx_insn *.
7252         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
7253         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
7255         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
7256         "insn".
7257         (arc_invalid_within_doloop): Likewise, with const.
7259         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
7260         (arm_cannot_copy_insn_p): Likewise for param "insn".
7261         (arm_unwind_emit): Likewise.
7263         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
7264         "dep_insn".
7266         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
7267         (c6x_variable_issue): Likewise.  Removed now-redundant checked
7268         cast.
7269         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
7271         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
7272         Likewise for param "insn".
7273         (epiphany_mode_after): Likewise.
7274         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
7275         params "insn", "dep_insn".
7276         (epiphany_mode_needed): Likewise for param "insn".
7277         (epiphany_mode_after): Likewise.
7279         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
7280         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
7281         (ix86_avx_u128_mode_needed): Likewise.
7282         (ix86_i387_mode_needed): Likewise.
7283         (ix86_mode_needed): Likewise.
7284         (ix86_avx_u128_mode_after): Likewise.
7285         (ix86_mode_after): Likewise.
7286         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
7287         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
7288         (ix86_adjust_priority): Likewise for param "insn".
7289         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
7290         (do_dispatch): Likewise.
7291         (has_dispatch): Likewise.
7292         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
7294         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
7295         reflect renaming of default hook implementation from
7296         hook_constcharptr_const_rtx_null to
7297         hook_constcharptr_const_rtx_insn_null.
7298         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
7299         rtx to rtx_insn *.
7300         (ia64_variable_issue): Likewise for param "insn".
7301         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
7302         (ia64_dfa_new_cycle): Likewise.
7303         (ia64_get_insn_spec_ds): Likewise.
7304         (ia64_get_insn_checked_ds): Likewise.
7305         (ia64_speculate_insn): Likewise.
7306         (ia64_gen_spec_check): Likewise for params "insn", "label".
7307         (ia64_asm_unwind_emit): Likewise for param "insn".
7309         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
7311         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
7312         "insn", "def_insn".
7313         (m68k_sched_variable_issue): Likewise for param "insn".
7315         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
7316         "def_insn".
7318         * config/microblaze/microblaze.c (microblaze_adjust_cost):
7319         Likewise for params "insn", "dep".
7321         * config/mips/mips.c (mips_adjust_cost): Likewise.
7322         (mips_variable_issue): Likewise for param "insn".
7323         (mips_final_postscan_insn): Likewise.
7325         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
7326         for params "insn", "dep".
7328         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
7329         "dep_insn".
7330         (pa_adjust_priority): Likewise for param "insn".
7332         * config/picochip/picochip.c (picochip_sched_adjust_cost):
7333         Likewise for params "insn", "dep_insn".
7335         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
7336         param "insn".
7337         (rs6000_variable_issue): Likewise.
7338         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
7339         (rs6000_debug_adjust_cost): Likewise.
7340         (rs6000_adjust_priority): Likewise for param "insn".
7341         (rs6000_use_sched_lookahead_guard): Likewise.
7342         (get_next_active_insn): Likewise for return type and both params.
7343         (redefine_groups): Likewise for params "prev_head_insn", "tail"
7344         and locals "insn", "next_insn".
7345         (pad_groups): Likewise.
7347         * config/s390/s390.c (s390_adjust_priority): Likewise for param
7348         "insn".
7349         (s390_cannot_copy_insn_p): Likewise.
7350         (s390_sched_variable_issue): Likewise for third param, eliminating
7351         checked cast.
7352         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
7353         default hook implementation from hook_constcharptr_const_rtx_null
7354         to hook_constcharptr_const_rtx_insn_null.
7356         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
7357         from rtx to rtx_insn *.
7358         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
7359         (sh_variable_issue): Likewise for param "insn".
7360         (sh_dfa_new_cycle): Likewise.
7361         (sh_mode_needed): Likewise.
7362         (sh_mode_after): Likewise.
7364         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
7365         params "insn", "dep_insn".
7366         (hypersparc_adjust_cost): Likewise.
7367         (sparc_adjust_cost): Likewise.
7369         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
7370         param, eliminated checked cast.
7371         (spu_sched_adjust_cost): Likewise for first and third params.
7373         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
7374         params "insn" and "dep_insn" from rtx to rtx_insn *.
7376         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
7378 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7380         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
7381         (set_is_load_p): ...this, updating to work on a SET pattern rather
7382         than an insn.
7383         (is_store_insn): Rename to...
7384         (set_is_store_p): ...this, updating to work on a SET pattern
7385         rather than an insn.
7386         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
7387         top of function to where it is needed.  Rewrite the bogus
7388         condition that checks for "insn" and "dep" being PARALLEL to
7389         instead use single_set, introducing locals "insn_set" and
7390         "dep_set".  Given that we only ever returned "cost" for a non-pair
7391         of SETs, bail out early if we don't have a pair of SET.
7392         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
7393         use the new locals "insn_set" and "dep_set", and update calls to
7394         is_load_insn and is_store_insn to be calls to set_is_load_p and
7395         set_is_store_p.
7397 2014-08-27  Guozhi Wei  <carrot@google.com>
7399         PR target/62262
7400         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
7401         amount before using it.
7403 2014-08-27  Richard Biener  <rguenther@suse.de>
7405         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
7406         get_maxval_strlen inside a more useful API.
7407         (gimple_fold_builtin_with_strlen): Remove and fold into ...
7408         (gimple_fold_builtin): ... caller.
7409         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
7410         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
7411         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
7412         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
7413         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
7414         gimple_fold_builtin_sprintf): Adjust to compute maxval
7415         themselves.
7417 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
7419         PR other/62248
7420         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
7422 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7423             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7424             Anna Tikhonova  <anna.tikhonova@intel.com>
7425             Ilya Tocar  <ilya.tocar@intel.com>
7426             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7427             Ilya Verbin  <ilya.verbin@intel.com>
7428             Kirill Yukhin  <kirill.yukhin@intel.com>
7429             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7431         * config/i386/sse.md
7432         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
7433         Use `concat_tg_mode' attribute to determine asm register size.
7435 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7436             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7437             Anna Tikhonova  <anna.tikhonova@intel.com>
7438             Ilya Tocar  <ilya.tocar@intel.com>
7439             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7440             Ilya Verbin  <ilya.verbin@intel.com>
7441             Kirill Yukhin  <kirill.yukhin@intel.com>
7442             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7444         * config/i386/sse.md
7445         (define_mode_iterator VI48_AVX512VL): New.
7446         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
7447         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
7448         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
7449         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7450         with VI1): Change mode iterator.
7451         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7452         with VI_ULOADSTORE_BW_AVX512VL): New.
7453         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7454         with VI_ULOADSTORE_F_AVX512VL): Ditto.
7455         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7456         with VI1): Change mode iterator.
7457         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7458         with VI_ULOADSTORE_BW_AVX512VL): New.
7459         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7460         with VI_ULOADSTORE_F_AVX512VL): Ditto.
7461         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7462         with VI1): Change mode iterator.
7463         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7464         with VI_ULOADSTORE_BW_AVX512VL): New.
7465         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7466         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
7467         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
7468         (define_insn "<avx512>_storedqu<mode>_mask" with
7469         VI48_AVX512VL): New.
7470         (define_insn "<avx512>_storedqu<mode>_mask" with
7471         VI12_AVX512VL): Ditto.
7473 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7474             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7475             Anna Tikhonova  <anna.tikhonova@intel.com>
7476             Ilya Tocar  <ilya.tocar@intel.com>
7477             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7478             Ilya Verbin  <ilya.verbin@intel.com>
7479             Kirill Yukhin  <kirill.yukhin@intel.com>
7480             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7482         * config/i386/sse.md
7483         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
7484         (define_mode_iterator VI48_AVX512BW): New.
7485         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
7486         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7487         with VI48_AVX2_48_AVX512F): New.
7488         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7489         with VI2_AVX512VL): Ditto.
7491 2014-08-27  Richard Biener  <rguenther@suse.de>
7493         PR middle-end/62239
7494         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
7495         (fold_builtin_3): Do not fold strcat_chk here.
7496         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
7497         from builtins.c.
7498         (gimple_fold_builtin): Fold strcat_chk here.
7500 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
7502         * dwarf2out.h (dwarf2out_decl): Remove prototype.
7503         * dwarf2out.c (dwarf2out_decl): Make static.
7505 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
7507         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
7509 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7511         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
7512         from rtx to rtx_insn *.
7513         (cselib_lookup_from_insn): Likewise for final param.
7514         (cselib_subst_to_values_from_insn): Likewise.
7515         (cselib_add_permanent_equiv): Likewise.
7517         * cselib.c (cselib_current_insn): Likewise for this variable.
7518         (cselib_subst_to_values_from_insn): Likewise for param "insn".
7519         (cselib_lookup_from_insn): Likewise.
7520         (cselib_add_permanent_equiv): Likewise for param "insn" and local
7521         "save_cselib_current_insn".
7522         (cselib_process_insn): Replace use of NULL_RTX with NULL.
7524         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
7525         from rtx to rtx_insn *.
7527 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7529         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
7530         rtx_insn *.
7532 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7534         * df.h (df_dump_insn_problem_function): Strengthen first param of
7535         this callback from const_rtx to const rtx_insn *.
7536         (struct df_insn_info): Strengthen field "insn" from rtx to
7537         rtx_insn *.
7538         (DF_REF_INSN): Eliminate this function, reinstating the older
7539         macro definition.
7540         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
7541         (df_reg_defined): Likewise.
7542         (df_find_use): Likewise.
7543         (df_reg_used): Likewise.
7544         (df_dump_insn_top): Strengthen param 1 from const_rtx to
7545         const rtx_insn *.
7546         (df_dump_insn_bottom): Likewise.
7547         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
7548         (df_insn_debug_regno): Likewise.
7549         (debug_df_insn): Likewise.
7550         (df_rd_simulate_one_insn): Likewise for param 2.
7551         (df_word_lr_simulate_defs): Likewise for param 1.
7552         (df_word_lr_simulate_uses): Likewise.
7553         (df_md_simulate_one_insn): Likewise for param 2.
7554         (df_simulate_find_noclobber_defs): Likewise for param 1.
7555         (df_simulate_find_defs): Likewise.
7556         (df_simulate_defs): Likewise.
7557         (df_simulate_uses): Likewise.
7558         (df_simulate_one_insn_backwards): Likewise for param 2.
7559         (df_simulate_one_insn_forwards): Likewise.
7560         (df_uses_create): Likewise for param 2.
7561         (df_insn_create_insn_record): Likewise for param 1.
7562         (df_insn_delete): Likewise.
7563         (df_insn_rescan): Likewise.
7564         (df_insn_rescan_debug_internal): Likewise.
7565         (df_insn_change_bb): Likewise.
7566         (df_notes_rescan): Likewise.
7567         * rtl.h (remove_death): Likewise for param 2.
7568         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
7569         const rtx_insn *.
7570         * sched-int.h (reemit_notes): Strengthen param from rtx to
7571         rtx_insn *.
7572         * valtrack.h (propagate_for_debug): Likewise for param 1.
7574         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
7575         local "tmp_rtx" from const_rtx to const rtx_insn *.
7576         * combine.c (remove_death): Strengthen param "insn" from rtx to
7577         rtx_insn *.
7578         (move_deaths): Likewise for local "where_dead".
7579         * cse.c (delete_trivially_dead_insns): Introduce local
7580         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
7581         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
7582         rtx_insn *.
7583         (df_reg_defined): Likewise.
7584         (df_find_use): Likewise.
7585         (df_reg_used): Likewise.
7586         (df_dump_insn_problem_data): Strengthen param "insn" from
7587         const_rtx to const rtx_insn *.
7588         (df_dump_insn_top): Likewise.
7589         (df_dump_insn_bottom): Likewise.
7590         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
7591         (df_insn_debug_regno): Likewise.
7592         (debug_df_insn): Likewise.
7593         (DF_REF_INSN): Delete.
7594         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
7595         from rtx to rtx_insn *.
7596         (df_chain_insn_top_dump): Strengthen param "insn" from
7597         const_rtx to const rtx_insn *.
7598         (df_chain_insn_bottom_dump): Likewise.
7599         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
7600         rtx_insn *.
7601         (df_word_lr_simulate_uses): Likewise.
7602         (df_print_note): Likewise.
7603         (df_remove_dead_and_unused_notes): Likewise.
7604         (df_set_unused_notes_for_mw): Likewise.
7605         (df_set_dead_notes_for_mw): Likewise.
7606         (df_create_unused_note): Likewise.
7607         (df_simulate_find_defs): Likewise.
7608         (df_simulate_find_uses): Likewise.
7609         (df_simulate_find_noclobber_defs): Likewise.
7610         (df_simulate_defs): Likewise.
7611         (df_simulate_uses): Likewise.
7612         (df_simulate_one_insn_backwards): Likewise.
7613         (df_simulate_one_insn_forwards): Likewise.
7614         (df_md_simulate_one_insn): Likewise.
7615         * df-scan.c (df_uses_create): Likewise.
7616         (df_insn_create_insn_record): Likewise.
7617         (df_insn_delete): Likewise.
7618         (df_insn_rescan): Likewise.
7619         (df_insn_rescan_debug_internal): Likewise.
7620         (df_insn_change_bb): Likewise.
7621         (df_notes_rescan): Likewise.
7622         (df_refs_add_to_chains): Likewise.
7623         (df_insn_refs_verify): Likewise.
7624         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
7625         when invoking df_insn_delete.
7626         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
7627         (set_unique_reg_note): Add checked cast.
7628         * final.c (cleanup_subreg_operands): Likewise.
7629         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
7630         "insn" from rtx to rtx_insn *.
7631         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
7632         "last" from rtx to rtx_insn *.
7633         * ira-emit.c (change_regs_in_insn): New function.
7634         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
7635         Invoke change_regs_in_insn rather than change_regs.
7636         * ira.c (update_equiv_regs): Strengthen locals "insn",
7637         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
7638         for_each_rtx_in_insn rather than for_each_rtx.
7639         * recog.c (confirm_change_group): Add checked casts.
7640         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
7641         Add checked cast.
7642         (peep2_fill_buffer): Add checked cast.
7643         * rtlanal.c (remove_note): Likewise.
7644         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
7645         locals "next" "end" from rtx to rtx_insn *.
7647 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7649         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
7650         to rtx_insn *.
7651         (struct reg_use_data): Likewise for field "insn".
7652         (insn_cost): Likewise for param.
7653         (real_insn_for_shadow): Likewise for return type and param.
7654         (increase_insn_priority): Likewise for param 1.
7655         (debug_dependencies): Likewise for both params.
7657         * haifa-sched.c (insn_delay): Likewise for param "insn".
7658         (real_insn_for_shadow): Likewise for return type and param "insn".
7659         (update_insn_after_change): Likewise for param "insn".
7660         (recompute_todo_spec): Likewise for param "next" and locals "pro",
7661         "other".
7662         (insn_cost): Likewise for param "insn".
7663         (increase_insn_priority): Likewise.
7664         (calculate_reg_deaths): Likewise.
7665         (setup_insn_reg_pressure_info): Likewise.
7666         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
7667         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
7668         (model_recompute): Likewise.
7669         (must_restore_pattern_p): Likewise for param "next".
7670         (model_excess_cost): Likewise for param "insn".
7671         (queue_remove): Likewise.
7672         (adjust_priority): Likewise for param "prev".
7673         (update_register_pressure): Likewise for param "insn".
7674         (setup_insn_max_reg_pressure): Likewise for local "insn".
7675         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
7676         (model_add_to_schedule): Likewise.
7677         (model_reset_queue_indices): Likewise for local "insn".
7678         (unschedule_insns_until): Strengthen local "recompute_vec" from
7679         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
7680         "con" from rtx to rtx_insn *.
7681         (restore_last_backtrack_point): Likewise for both locals "x". Add
7682         checked casts.
7683         (estimate_insn_tick): Likewise for param "insn".
7684         (commit_schedule): Likewise for params "prev_head", "tail" and
7685         local "x".
7686         (verify_shadows): Likewise for locals "i1", "i2".
7687         (dump_insn_stream): Likewise for params "head", "tail" and locals
7688         "next_tail", "insn".
7689         (schedule_block): Likewise for locals "insn", "x".  Add a checked
7690         cast.
7691         (fix_inter_tick): Likewise for params "head", "tail".
7692         (create_check_block_twin): Likewise for local "jump".
7693         (haifa_change_pattern): Likewise for param "insn".
7694         (haifa_speculate_insn): Likewise.
7695         (dump_new_block_header): Likewise for params "head", "tail".
7696         (fix_jump_move): Likewise for param "jump".
7697         (move_block_after_check): Likewise.
7698         (sched_init_insn_luid): Likewise for param "insn".
7699         (sched_init_luids): Likewise for local "insn".
7700         (insn_luid): Likewise for param "insn".
7701         (init_h_i_d): Likewise.
7702         (haifa_init_h_i_d): Likewise for local "insn".
7703         (haifa_init_insn): Likewise for param "insn".
7704         * sched-deps.c (add_dependence): Likewise for local "real_pro",
7705         "other".
7706         (create_insn_reg_use): Likewise for param "insn".
7707         (setup_insn_reg_uses): Likewise.  Add a checked cast.
7708         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
7709         "tail" from rtx to rtx_insn *.
7710         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
7711         "insn", "next_tail".
7713 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7715         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
7716         from rtx to rtx_insn *.
7717         (model_add_to_schedule): Likewise for locals "start", "end",
7718         "iter".
7720 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7722         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
7723         rtx_insn *.
7724         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
7725         "to" and locals "insn", "next", "copy".  Remove now-redundant
7726         checked cast.
7728 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7730         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
7731         rtx_insn * and param 4 from rtx * to rtx_insn **.
7732         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
7733         param 2 from rtx * to rtx_insn **.
7735         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
7736         rtx_insn * and final param from rtx * to rtx_insn **.
7738         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
7739         from rtx to rtx_insn *.
7740         (try_head_merge_bb): Likewise for both locals named "move_upto".
7741         * df-problems.c (can_move_insns_across): Likewise for params
7742         "from", "to", "across_from", "across_to" and locals "insn",
7743         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
7744         rtx_insn **.
7745         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
7746         from rtx to rtx_insn *.
7747         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
7748         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
7749         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
7750         rtx_insn *.
7751         (noce_try_abs): Likewise.
7752         (noce_get_condition): Likewise for param "jump".  Strengthen param
7753         "earliest" from rtx * to rtx_insn **.
7754         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
7755         rtx_insn *.
7756         (find_cond_trap): Likewise.
7757         (dead_or_predicable): Likewise for local "earliest".
7758         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
7759         checked cast.
7760         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
7761         and local "prev".  Strengthen param "earliest" from rtx * to
7762         rtx_insn **.
7763         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
7764         Strengthen param "earliest" from rtx * to rtx_insn **.
7766 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7768         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
7769         "to" and local "insn" from rtx to rtx_insn *.
7771 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7773         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
7774         from rtx to rtx_insn *.
7775         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
7776         (code_motion_path_driver): Likewise for local "last_insn".
7777         (simplify_changed_insns): Likewise for local "insn".
7779 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7781         * rtl.h (push_to_sequence): Strengthen param from rtx to
7782         rtx_insn *.
7783         (push_to_sequence2): Likewise for both params.
7784         (delete_insns_since): Likewise for param.
7785         (reorder_insns_nobb): Likewise for all three params.
7786         (set_new_first_and_last_insn): Likewise for both params.
7788         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
7789         rtx_insn *.  Remove now-redundant cast.
7790         (set_last_insn): Likewise.
7792         * builtins.c (expand_builtin_return): Strengthen local
7793         "call_fusage" from rtx to rtx_insn *.
7794         * cfgrtl.c (create_basic_block_structure): Likewise for local
7795         "after".
7796         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
7797         "first", "last" and local "insn".
7798         (delete_insns_since): Likewise for param "from".
7799         (reorder_insns_nobb): Likewise for params "from", "to", "after"
7800         and local "x".
7801         (push_to_sequence): Likewise for param "first" and local "last".
7802         (push_to_sequence2): Likewise for params "first" and "last".
7803         * lra.c (emit_add3_insn): Likewise for local "last".
7804         (lra_emit_add): Likewise.
7805         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
7806         "last_insn".
7807         (process_address_1): Likewise for locals "insn", last".
7808         * modulo-sched.c (ps_first_note): Likewise for return type.
7809         * optabs.c (expand_binop_directly): Likewise for param "last".
7811 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7813         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
7814         to rtx_insn*.
7815         * emit-rtl.c (get_last_insn_anywhere): Likewise.
7817 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7819         * function.h (struct sequence_stack): Strengthen fields "first"
7820         and "last" from rtx to rtx_insn *.
7821         (struct emit_status): Likewise for fields "x_first_insn" and
7822         "x_last_insn".
7824         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
7825         (set_first_insn): Add checked cast.
7826         (get_last_insn): Remove now-redundant checked cast.
7827         (set_last_insn): Add checked cast.
7829         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
7830         "saved_first" and "saved_last" from rtx to rtx_insn *.
7832 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7834         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
7835         (unlink_insn_chain): Strengthen both params from rtx to
7836         rtx_insn *.
7838         * cfgrtl.c (cfg_layout_function_header): Likewise for this
7839         variable.
7840         (unlink_insn_chain): Likewise for params "first" and "last".
7841         Remove now-redundant checked cast.
7842         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
7843         (fixup_reorder_chain): Strengthen local "insn" from rtx to
7844         rtx_insn *.
7845         * emit-rtl.c (link_insn_into_chain): Likewise for all three
7846         params.
7847         (add_insn): Likewise for param "insn" and local "prev".
7848         (add_insn_after_nobb): Likewise for both params and local "next".
7849         (add_insn_before_nobb): Likewise for both params and local "prev".
7850         (add_insn_after): Rename param "after" to "uncast_after",
7851         introducing local "after" with another checked cast.
7852         (add_insn_before): Rename params "insn" and "before", giving them
7853         "uncast_" prefixes, adding the old names back using checked casts.
7854         (emit_note_after): Likewise for param "after".
7855         (emit_note_before): Likewise for param "before".
7856         (emit_label): Add a checked cast.
7858 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7860         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
7861         "insn" from rtx to rtx_insn *.
7863         * cselib.c (cselib_record_sets_hook): Likewise.
7865         * var-tracking.c (add_with_sets): Likewise, renaming back from
7866         "uncast_insn" to "insn" and eliminating the checked cast from rtx
7867         to rtx_insn *.
7869 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7871         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
7872         and "header_" from rtx to rtx_insn *.
7873         (struct basic_block_d): Likewise for field "head_" within "x"
7874         field of union basic_block_il_dependent.
7875         (BB_HEAD): Drop function...
7876         (SET_BB_HEAD): ...and this function in favor of...
7877         (BB_HEAD): ...reinstate macro.
7878         (BB_END): Drop function...
7879         (SET_BB_END): ...and this function in favor of...
7880         (BB_END): ...reinstate macro.
7881         (BB_HEADER): Drop function...
7882         (SET_BB_HEADER): ...and this function in favor of...
7883         (BB_HEADER): ...reinstate macro.
7885         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
7886         (fix_crossing_unconditional_branches): Likewise.
7887         * caller-save.c (save_call_clobbered_regs): Likewise.
7888         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
7889         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
7890         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7891         (merge_blocks_move_successor_nojumps): Likewise.
7892         (outgoing_edges_match): Update use of for_each_rtx to
7893         for_each_rtx_in_insn.
7894         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
7895         (expand_gimple_cond): Likewise.
7896         (expand_gimple_tailcall): Likewise.
7897         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
7898         SET_BB_END.
7899         (construct_exit_block): Drop use of SET_BB_END.
7900         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
7901         rtx_insn *.
7902         (delete_insn): Rename param "insn" to "uncast_insn", introducing
7903         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
7904         SET_BB_HEAD and SET_BB_END.
7905         (create_basic_block_structure): Drop use of SET_BB_HEAD and
7906         SET_BB_END.
7907         (rtl_delete_block): Drop use of SET_BB_HEAD.
7908         (rtl_split_block): Drop use of SET_BB_END.
7909         (emit_nop_for_unique_locus_between): Likewise.
7910         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
7911         (block_label): Drop use of SET_BB_HEAD.
7912         (fixup_abnormal_edges): Drop use of SET_BB_END.
7913         (record_effective_endpoints): Drop use of SET_BB_HEADER.
7914         (relink_block_chain): Likewise.
7915         (fixup_reorder_chain): Drop use of SET_BB_END.
7916         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
7917         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
7918         rtx_insn **.  Drop use of SET_BB_HEADER.
7919         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
7920         SET_BB_HEAD.
7921         (BB_HEAD): Delete this function.
7922         (SET_BB_HEAD): Likewise.
7923         (BB_END): Likewise.
7924         (SET_BB_END): Likewise.
7925         (BB_HEADER): Likewise.
7926         (SET_BB_HEADER): Likewise.
7927         * emit-rtl.c (add_insn_after):  Rename param "insn" to
7928         "uncast_insn", adding a new local "insn" and a checked cast to
7929         rtx_insn *.  Drop use of SET_BB_END.
7930         (remove_insn): Strengthen locals "next" and "prev" from rtx to
7931         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
7932         (reorder_insns): Drop use of SET_BB_END.
7933         (emit_insn_after_1): Strengthen param "first" and locals "last",
7934         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
7935         (emit_pattern_after_noloc): Add checked cast.
7936         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
7937         (restore_other_notes): Likewise.
7938         (move_insn): Likewise.
7939         (sched_extend_bb): Likewise.
7940         (fix_jump_move): Likewise.
7941         * ifcvt.c (noce_process_if_block): Likewise.
7942         (dead_or_predicable): Likewise.
7943         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
7944         * reg-stack.c (change_stack): Drop use of SET_BB_END.
7945         * sel-sched-ir.c (sel_move_insn): Likewise.
7946         * sel-sched.c (move_nop_to_previous_block): Likewise.
7948         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
7949         SET_BB_END.
7950         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7952 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7954         * basic-block.h (create_basic_block_structure): Strengthen params
7955         1 "head" and 2 "end" from rtx to rtx_insn *.
7956         * cfgrtl.c (create_basic_block_structure): Likewise.
7957         (rtl_create_basic_block): Update casts from void * to rtx to
7958         rtx_insn *, so that we can pass them as rtx_insn * to
7959         create_basic_block_structure.
7960         * sel-sched-ir.c (sel_create_basic_block): Likewise.
7962 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7964         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7965         rtx_insn **.
7966         (check_for_inc_dec): Strengthen param "insn" from rtx to
7967         rtx_insn *.
7969         * cselib.h (cselib_process_insn): Likewise.
7971         * cselib.c (cselib_record_sets): Likewise.
7972         (cselib_process_insn): Likewise.
7974         * dse.c (struct insn_info): Likewise for field "insn".
7975         (check_for_inc_dec_1): Likewise for local "insn".
7976         (check_for_inc_dec): Likewise for param "insn".
7977         (scan_insn): Likewise.
7978         (dse_step1): Likewise for local "insn".
7980         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7981         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
7983 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7985         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7986         from rtx to rtx_insn *.
7987         (DEP_PRO): Delete this function and...
7988         (SET_DEP_PRO): ...this function in favor of...
7989         (DEP_PRO): ...reinstate this macro.
7990         (DEP_CON): Delete this function and...
7991         (SET_DEP_CON): ...this function in favor of...
7992         (DEP_CON): ...reinstate this old macro.
7993         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7994         (init_dep): Likewise.
7995         (set_priorities): Likewise for both params.
7996         (sd_copy_back_deps): Likewise for params 1 and 2.
7998         * haifa-sched.c (priority): Likewise for param "insn" and local
7999         "next".
8000         (set_priorities): Likewise for params "head" and "tail" and local
8001         "insn".
8002         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
8003         local "consumer".
8004         (add_to_speculative_block): Add a checked cast.
8005         (create_check_block_twin): Drop use of SET_DEP_CON.
8006         (add_jump_dependencies): Strengthen params "insn" and "jump" from
8007         rtx to rtx_insn *.
8009         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
8010         Drop use of SET_DEP_PRO
8011         (init_dep): Strengthen params "pro" and "con" from rtx to
8012         rtx_insn *.
8013         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
8014         use of SET_DEP_CON.
8015         (DEP_PRO): Delete.
8016         (DEP_CON): Delete.
8017         (SET_DEP_PRO): Delete.
8018         (SET_DEP_CON): Delete.
8020 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8022         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
8023         from rtx to rtx_insn *.
8024         (VINSN_INSN_RTX): Eliminate rvalue function and...
8025         (SET_VINSN_INSN): ...lvalue function in favor of...
8026         (VINSN_INSN_RTX): reinstate this old macro.
8028         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
8029         in favor of VINSN_INSN_RTX.
8030         (VINSN_INSN_RTX): Delete this function.
8031         (SET_VINSN_INSN_RTX): Likewise.
8033 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8035         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
8036         (BND_TO): Delete this function and...
8037         (SET_BND_TO): ...this functions in favor of...
8038         (BND_TO): ...reinstating this macro.
8039         (struct _fence): Strengthen field "executing_insns" from
8040         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
8041         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
8042         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
8043         and param "insn" from rtx to insn_t.
8044         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
8045         rtx_insn *.
8047         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
8048         vec<rtx_insn *> .
8049         (rtx_vec_t): Likewise.
8050         (struct sched_deps_info_def): Strengthen param of "start_insn"
8051         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
8052         "note_mem_dep" callback and first param of "note_dep" callback.
8054         * haifa-sched.c (add_to_speculative_block): Strengthen param
8055         "insn" from rtx to rtx_insn *.
8056         (clear_priorities): Likewise.
8057         (calc_priorities): Likewise for local "insn".
8059         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
8060         Remove redundant checked cast.
8061         (haifa_note_mem_dep): Likewise for param "pending_insn".
8062         (haifa_note_dep): Likewise for param "elem".
8063         (note_mem_dep): Likewise for param "e".
8064         (sched_analyze_1): Add checked casts.
8065         (sched_analyze_2): Likewise.
8067         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
8068         from rtx to rtx_insn *.
8069         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
8070         from vec<rtx> * to vec<rtx_insn *> *.
8072         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
8073         scaffolding.
8074         (flist_add): Strengthen param "executing_insns" from
8075         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8076         (advance_deps_context): Remove now-redundant checked cast.
8077         (init_fences): Replace uses of NULL_RTX with NULL.
8078         (merge_fences): Strengthen params "last_scheduled_insn" and
8079         "sched_next" from rtx to rtx_insn * and "executing_insns" from
8080         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8081         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
8082         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
8083         an instruction, rather than doing double-duty as a pattern.
8084         (return_nop_to_pool): Update for change of insn_t.
8085         (deps_init_id): Remove now-redundant checked cast.
8086         (struct sched_scan_info_def): Strengthen param of "init_insn"
8087         callback from rtx to insn_t.
8088         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
8089         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
8090         NULL.
8091         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
8092         "end" from rtx to rtx_insn *.
8093         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
8094         (rtx insn_rtx, bool force_unique_p)
8095         (BND_TO): Delete function.
8096         (SET_BND_TO): Delete function.
8098         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
8099         rtx to rtx_insn *.
8100         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
8101         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
8102         rtx to rtx_insn *.
8103         (undo_transformations): Likewise for param "insn".
8104         (update_liveness_on_insn): Likewise.
8105         (compute_live_below_insn): Likewise for param "insn" and local
8106         "succ".
8107         (update_data_sets): Likewise for param "insn".
8108         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
8109         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
8110         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
8111         rtx_insn *.
8112         (move_cond_jump): Likewise for param "insn".
8113         (move_cond_jump): Drop use of SET_BND_TO.
8114         (compute_av_set_on_boundaries): Likewise.
8115         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
8116         (update_and_record_unavailable_insns): Strengthen local "bb_end"
8117         from rtx to rtx_insn *.
8118         (maybe_emit_renaming_copy): Likewise for param "insn".
8119         (maybe_emit_speculative_check): Likewise.
8120         (handle_emitting_transformations): Likewise.
8121         (remove_insn_from_stream): Likewise.
8122         (code_motion_process_successors): Strengthen local "succ" from rtx
8123         to insn_t.
8125 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8127         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
8128         ilist_t, not _xlist_t;
8129         (ILIST_INSN): Define in terms of new union field "insn".
8130         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
8131         _XLIST_NEXT.
8132         (struct _list_node): Add new field "insn" to the union, of type
8133         insn_t.
8134         (ilist_add): Replace macro with an inline function, requiring an
8135         insn_t.
8136         (ilist_remove): Define this macro directly in terms of
8137         _list_remove, rather than indirectly via _xlist_remove.
8138         (ilist_clear): Likewise, in terms of _list_clear rather than
8139         _xlist_clear.
8140         (ilist_is_in_p): Replace macro with an inline function, requiring
8141         an insn_t.
8142         (_list_iter_cond_insn): New function.
8143         (ilist_iter_remove): Define this macro directly in terms of
8144         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
8145         (ilist_iterator): Define directly in terms of _list_iterator
8146         rather than indirectly through _xlist_iterator.
8147         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
8148         than in terms of _FOR_EACH_X.
8149         (FOR_EACH_INSN_1): Likewise.
8151 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
8153         PR target/60606
8154         PR target/61330
8155         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
8156         DECL_HARD_REGISTER and return for invalid register specifications.
8157         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
8158         DECL_HARD_REGISTER, call expand_one_error_var.
8159         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
8160         CC_REGNUM with non-MODE_CC modes.
8161         (arm_regno_class): Return NO_REGS for PC_REGNUM.
8163 2014-08-26  Marek Polacek  <polacek@redhat.com>
8165         PR c/61271
8166         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
8168 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
8170         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
8171         qi cost; add di cost.
8172         (cortexa57_addrcost_table): Likewise.
8174 2014-08-26  Marek Polacek  <polacek@redhat.com>
8176         PR c/61271
8177         * expr.c (is_aligning_offset): Remove logical not.
8179 2014-08-26  Marek Polacek  <polacek@redhat.com>
8181         PR c/61271
8182         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
8183         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
8185 2014-08-26  Richard Biener  <rguenther@suse.de>
8187         PR tree-optimization/62175
8188         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8189         expand possibly trapping operations.
8191 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8193         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
8194         "insn" from rtx to rtx_insn *.
8195         (permute_load): Likewise for param "insn".
8196         (permute_store): Likewise.
8197         (handle_special_swappables): Likewise for local "insn".
8198         (replace_swap_with_copy): Likewise for locals "insn" and
8199         "new_insn".
8200         (rs6000_analyze_swaps): Likewise for local "insn".
8202 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8204         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
8205         to rtx_insn *.
8207 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8209         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
8210         "note_list" from rtx to rtx_insn *.
8211         (BB_NOTE_LIST): Replace this function and...
8212         (SET_BB_NOTE_LIST): ...this function with...
8213         (BB_NOTE_LIST): ...the former macro implementation.
8215         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
8216         local "from_start" from rtx to rtx_insn *.  Strengthen param
8217         "to_endp" from rtx * to rtx_insn **.
8219         * haifa-sched.c (concat_note_lists): Likewise.
8220         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
8221         BB_NOTE_LIST.
8222         (sel_restore_notes): Likewise.
8223         (move_bb_info): Likewise.
8224         (BB_NOTE_LIST): Delete this function.
8225         (SET_BB_NOTE_LIST): Delete this function.
8226         * sel-sched.c (create_block_for_bookkeeping): Eliminate
8227         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
8229 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8231         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
8232         from rtx * to rtx_insn **.
8233         (reorder2): Likewise.
8234         (dependencies_evaluation_hook): Strengthen params "head", "tail"
8235         from rtx to rtx_insn *.
8237         * doc/tm.texi: Update mechanically for above change to target.def.
8239         * sched-int.h (note_list): Strengthen this variable from rtx to
8240         rtx_insn *.
8241         (remove_notes): Likewise for both params.
8242         (restore_other_notes): Likewise for return type and first param.
8243         (struct ready_list): Strengthen field "vec" from rtx * to
8244         rtx_insn **.
8245         (struct dep_replacement): Strenghten field "insn" from rtx to
8246         rtx_insn *.
8247         (struct deps_desc): Likewise for fields "last_debug_insn",
8248         "last_args_size".
8249         (struct haifa_sched_info): Likewise for callback field
8250         "can_schedule_ready_p"'s param, for first param of "new_ready"
8251         callback field, for both params of "rank" callback field, for
8252         first field of "print_insn" callback field (with a const), for
8253         both params of "contributes_to_priority" callback, for param
8254         of "insn_finishes_block_p" callback, for fields "prev_head",
8255         "next_tail", "head", "tail", for first param of "add_remove_insn"
8256         callback, for first param of "begin_schedule_ready" callback, for
8257         both params of "begin_move_insn" callback, and for second param
8258         of "advance_target_bb" callback.
8259         (add_dependence): Likewise for params 1 and 2.
8260         (sched_analyze): Likewise for params 2 and 3.
8261         (deps_analyze_insn): Likewise for param 2.
8262         (ready_element): Likewise for return type.
8263         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
8264         (try_ready): Strenghten param from rtx to rtx_insn *.
8265         (sched_emit_insn): Likewise for return type.
8266         (record_delay_slot_pair): Likewise for params 1 and 2.
8267         (add_delay_dependencies): Likewise for param.
8268         (contributes_to_priority): Likewise for both params.
8269         (find_modifiable_mems): Likewise.
8271         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
8272         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
8273         "first_older_only_insn" from rtx to rtx_insn *.
8274         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
8275         rtx_insn **.
8277         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
8278         "last_scheduled_iter0" from rtx to rtx_insn *.
8279         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
8280         (c6x_sched_reorder_1): Strengthen param "ready" and locals
8281         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
8282         "insn" from rtx to rtx_insn *.
8283         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
8284         rtx_insn **.
8285         (c6x_sched_reorder2): Strengthen param "ready" and locals
8286         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
8287         "insn" from rtx to rtx_insn *.
8288         (c6x_variable_issue):  Add a checked cast when assigning from insn
8289         to ss.last_scheduled_iter0.
8290         (split_delayed_branch): Strengthen param "insn" and local "i1"
8291         from rtx to rtx_insn *.
8292         (split_delayed_nonbranch): Likewise.
8293         (undo_split_delayed_nonbranch): Likewise for local "insn".
8294         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
8295         "entry_after", "end_packet", "head_insn", "tail_insn",
8296         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
8297         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
8298         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
8299         but add a checked cast on loop->start_label.  Consolidate calls to
8300         avoid assigning result of gen_spkernel to "insn", now an
8301         rtx_insn *.
8303         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
8304         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
8305         rtx to rtx_insn *.
8306         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
8307         rtx_insn **.  Strengthen locals "top", "next" from rtx to
8308         rtx_insn *.
8309         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
8310         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
8311         (add_parameter_dependencies): Strengthen params "call", "head" and
8312         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
8313         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
8314         (add_dependee_for_func_arg): Likewise for param "arg" and local
8315         "insn".
8316         (ix86_dependencies_evaluation_hook): Likewise for params "head",
8317         "tail" and locals "insn", "first_arg".
8319         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
8320         for params "head", "tail" and locals "insn", "next", "next_tail".
8321         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
8322         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
8323         "insn", "lowest", "highest" from rtx to rtx_insn *.
8324         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
8325         rtx_insn **.
8326         (ia64_sched_reorder2): Likewise.
8328         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
8329         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
8330         from rtx * to rtx_insn **.
8331         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
8332         rtx_insn **.
8333         (mep_print_sched_insn): Strengthen param "insn" from rtx to
8334         rtx_insn *.
8335         (mep_sched_reorder): Strengthen param "ready" from rtx * to
8336         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
8337         to rtx_insn *.
8339         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
8340         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
8341         to rtx_insn *.
8342         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
8343         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
8344         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
8345         rtx_insn **.
8346         (vr4130_reorder): Likewise.
8347         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
8348         rtx to rtx_insn *.
8349         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
8350         rtx_insn **.
8351         (mips_sched_reorder): Likewise.
8352         (mips_sched_reorder2): Likewise.
8354         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
8356         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
8357         Strengthen local "tmp" from rtx to rtx_insn *.
8358         (rs6000_sched_reorder2): Likewise.
8360         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
8361         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
8362         (s390_sched_reorder): Strengthen param "ready" from rtx * to
8363         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
8365         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
8366         "tmp2" from rtx to rtx_insn *.
8367         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
8368         Strengthen local "insn" from rtx to rtx_insn *.
8369         (ready_reorder): Strengthen param "ready" from rtx * to
8370         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
8371         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
8372         (sh_reorder2): Likewise.
8374         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
8375         local "insn" from rtx to rtx_insn *.
8377         * haifa-sched.c (note_list): Strengthen this variable from rtx to
8378         rtx_insn *.
8379         (scheduled_insns): Strengthen this variable from vec<rtx> to
8380         vec<rtx_insn *>.
8381         (set_modulo_params): Likewise for locals "i1", "i2".
8382         (record_delay_slot_pair): Likewise for params "i1", "i2".
8383         (add_delay_dependencies): Likewise for param "insn".
8384         (cond_clobbered_p): Likewise.
8385         (recompute_todo_spec): Likewise for local "prev".
8386         (last_scheduled_insn): Likewise for this variable.
8387         (nonscheduled_insns_begin): Likewise.
8388         (model_set_excess_costs): Strengthen param "insns" from rtx * to
8389         rtx_insn **.
8390         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
8391         rtx_insn *.
8392         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
8393         Strengthen local "insn" from rtx to rtx_insn *.
8394         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
8395         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
8396         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
8397         (ready_remove_first): Likewise for return type and local "t".
8398         (ready_element): Likewise for return type.
8399         (ready_remove): Likewise for return type and local "t".
8400         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
8401         (check_clobbered_conditions): Strengthen local "x" from rtx to
8402         rtx_insn *, adding a checked cast.
8403         (schedule_insn): Likewise for param "insn".
8404         (remove_notes): Likewise for params "head", "tail" and locals
8405         "next_tail", "insn", "next".
8406         (struct haifa_saved_data): Likewise for fields
8407         "last_scheduled_insn", "nonscheduled_insns_begin".
8408         (save_backtrack_point): Update for change to field "vec" of
8409         struct ready_list.
8410         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
8411         rtx_insn **.
8412         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
8413         from rtx to rtx_insn *
8414         (resolve_dependencies): Strengthen param "insn" from rtx to
8415         rtx_insn *
8416         (restore_other_notes): Likewise for return type, for param "head"
8417         and local "note_head".
8418         (undo_all_replacements): Likewise for local "insn".
8419         (first_nonscheduled_insn): Likewise for return type and local "insn".
8420         (queue_to_ready): Likewise for local "insn", adding checked casts.
8421         (early_queue_to_ready): Likewise for local "insn".
8422         (debug_ready_list_1): Strengthen local "p" from rtx * to
8423         rtx_insn **.
8424         (move_insn): Strengthen param "insn" and local "note" from rtx to
8425         rtx_insn *
8426         (insn_finishes_cycle_p): Likewise for param "insn".
8427         (max_issue): Likewise for local "insn".
8428         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
8429         to rtx_insn **.
8430         (commit_schedule): Strengthen param "prev_head" and local "insn"
8431         from rtx to rtx_insn *
8432         (prune_ready_list): Likewise for local "insn".
8433         (schedule_block): Likewise for locals "prev_head", "head", "tail",
8434         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
8435         (set_priorities): Likewise for local "prev_head".
8436         (try_ready): Likewise for param "next".
8437         (fix_tick_ready): Likewise.
8438         (change_queue_index): Likewise.
8439         (sched_extend_ready_list): Update for change to field "vec" of
8440         struct ready_list.
8441         (generate_recovery_code): Strengthen param "insn" from rtx to
8442         rtx_insn *.
8443         (begin_speculative_block): Likewise.
8444         (create_check_block_twin): Likewise for param "insn" and locals
8445         "label", "check", "twin".  Introduce local "check_pat" to avoid
8446         "check" being used as a plain rtx before being used as an insn.
8447         (fix_recovery_deps): Add a checked cast to rtx_insn * when
8448         extracting elements from ready_list.
8449         (sched_remove_insn): Strengthen param "insn" from rtx to
8450         rtx_insn *.
8451         (sched_emit_insn): Likewise for return type.
8452         (ready_remove_first_dispatch): Likewise for return type and local
8453         "insn".
8455         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
8457         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
8458         const rtx_insn *.
8460         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
8461         from rtx to rtx_insn *.
8462         (add_dependence_list): Likewise for param "insn".  Add a checked
8463         cast.
8464         (add_dependence_list_and_free): Strengthen param "insn" from rtx
8465         to rtx_insn *.  Strengthen param "list_p" from rtx * to
8466         rtx_insn **.
8467         (chain_to_prev_insn): Strengthen param "insn" and locals
8468         "prec_nonnote", "i" from rtx to rtx_insn *.
8469         (flush_pending_lists): Likewise for param "insn".
8470         (cur_insn): Likewise for this variable.
8471         (haifa_start_insn): Add a checked cast.
8472         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
8473         (sched_analyze_reg): Likewise for param "insn".
8474         (sched_analyze_1): Likewise.
8475         (sched_analyze_2): Likewise.  Add checked casts.
8476         (sched_analyze_insn): Likewise.  Also for local "prev".
8477         (deps_analyze_insn): Likewise for param "insn".
8478         (sched_analyze): Likewise for params "head", "tail" and local "insn".
8479         (add_dependence_1): Likewise for params "insn", "elem".
8480         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
8481         (parse_add_or_inc): Likewise for param "insn".
8482         (find_inc): Likewise for local "inc_cand".
8483         (find_modifiable_mems): Likewise for params "head", "tail" and
8484         locals "insn", "next_tail".
8486         * sched-ebb.c (init_ready_list): Likewise for local "insn".
8487         (begin_schedule_ready): Likewise for param "insn".
8488         (begin_move_insn): Likewise for params "insn" and "last".
8489         (ebb_print_insn): Strengthen param "insn" from const_rtx to
8490         const rtx_insn *.
8491         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
8492         (ebb_contributes_to_priority): Likewise for params "next", "insn".
8493         (ebb_add_remove_insn): Likewise for param "insn".
8494         (advance_target_bb): Likewise.
8496         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
8497         "insn".
8498         (check_live): Likewise for param "insn".
8499         (init_ready_list): Likewise for local "insn".
8500         (can_schedule_ready_p): Likewise for param "insn".
8501         (begin_schedule_ready): Likewise.
8502         (new_ready): Likewise for param "next".
8503         (rgn_print_insn): Likewise for param "insn".
8504         (rgn_rank): Likewise for params "insn1", "insn2".
8505         (contributes_to_priority): Likewise for params "next", "insn".
8506         (rgn_insn_finishes_block_p): Likewise for param "insn".
8507         (add_branch_dependences): Likewise for params "head", "tail" and
8508         locals "insn", "last".
8509         (rgn_add_remove_insn): Likewise for param "insn".
8510         (advance_target_bb): Likewise.
8512         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
8513         const_rtx to const rtx_insn *.
8515         * sel-sched-dump.h (sel_print_insn): Likewise.
8517         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
8518         (deps_init_id): Likewise.
8520         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
8521         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
8522         rtx_insn **.
8524 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8526         * output.h (final_start_function): Strengthen param 1 from rtx to
8527         rtx_insn *.
8529         * final.c (final_start_function): Likewise, renaming back from
8530         "uncast_first" to "first", and dropping the checked cast from rtx
8531         to rtx_insn *.
8533 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8535         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
8536         * final.c (final): Likewise.  Rename param back from
8537         "uncast_first" to "first" and eliminate the checked cast from rtx
8538         to rtx_insn *.
8540 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8542         * output.h (shorten_branches): Strengthen param from rtx to
8543         rtx_insn *.
8545         * final.c (shorten_branches): Likewise, renaming param back from
8546         "uncast_first" to "first", and dropping the checked cast from rtx
8547         to rtx_insn *.
8549         * genattr.c (gen_attr): Likewise when writing out the prototype of
8550         shorten_branches.
8552 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8554         * sched-int.h (struct haifa_sched_info): Strengthen fields
8555         "prev_head" and "next_tail" from rtx to rtx_insn *.
8557 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8559         * rtl.h (rtx_jump_table_data::get_labels): New method.
8560         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
8561         with use of the new rtx_jump_table_data::get_labels method.
8562         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
8563         to rtx_jump_table_data *.  Simplify by using get_labels method.
8564         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
8565         a dyn_cast, introducing local "table", using it to replace
8566         label-lookup logic with a get_labels method call.
8567         (patch_jump_insn): Simplify using get_labels method.
8568         * dwarf2cfi.c (create_trace_edges): Likewise.
8569         * rtlanal.c (label_is_jump_target_p): Likewise.
8571 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8573         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
8574         to rtx_insn *.
8576         * emit-rtl.c (unshare_all_rtl_1): Likewise.
8577         (unshare_all_rtl_again): Likewise, also for local "p".
8579 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8581         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
8582         to rtx_insn *.
8583         * cfgrtl.c (delete_insn_and_edges): Likewise.
8585 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8587         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
8588         from rtx to rtx_insn *.
8590         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
8592 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8594         * function.c (thread_prologue_and_epilogue_insns): Likewise for
8595         locals "returnjump", "epilogue_end", "insn", "next".
8597         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
8598         "returnjump" from rtx * to rtx_insn **.
8599         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
8601 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8603         * basic-block.h (struct edge_def). Strengthen "r" within
8604         union edge_def_insns from rtx to rtx_insn *.
8606         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
8607         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
8608         rtx_insn *.
8609         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
8610         from rtx to rtx_insn *.
8611         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
8612         rtx_insn *.
8613         * postreload-gcse.c (reg_killed_on_edge): Likewise.
8614         (reg_used_on_edge): Likewise.
8615         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
8616         (gt_pch_nx): New overload for rtx_insn *&.
8617         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
8618         from rtx to rtx_insn *.
8620 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8622         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
8623         from rtx to rtx_insn *.
8624         (BB_FOOTER): Replace function with access macro.
8625         (SET_BB_FOOTER): Delete.
8627         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
8628         with BB_FOOTER.
8629         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8630         (emit_barrier_after_bb): Likewise.
8631         (record_effective_endpoints): Likewise.
8632         (relink_block_chain): Likewise.
8633         (fixup_fallthru_exit_predecessor): Likewise.
8634         (cfg_layout_duplicate_bb): Likewise.
8635         (cfg_layout_split_block): Likewise.
8636         (cfg_layout_delete_block): Likewise.
8637         (cfg_layout_merge_blocks): Likewise.
8638         (BB_FOOTER): Delete function.
8639         (SET_BB_FOOTER): Delete function.
8640         * combine.c (update_cfg_for_uncondjump): Replace uses of
8641         SET_BB_FOOTER with BB_FOOTER.
8643 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8645         * except.h (struct eh_landing_pad_d): Strengthen field
8646         "landing_pad" from rtx to rtx_code_label *.
8648         * except.c (sjlj_emit_dispatch_table): Likewise for param
8649         "dispatch_label"
8650         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
8652 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8654         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
8655         first param from rtx to rtx_insn *.
8656         * config/xtensa/xtensa.c (struct machine_function): Likewise for
8657         field "set_frame_ptr_insn".
8658         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
8659         "csend" from rtx to rtx_code_label *.
8660         (xtensa_expand_atomic): Likewise for local "csloop".
8661         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
8662         rtx_insn *.
8663         (xtensa_call_tls_desc): Likewise for return type and locals
8664         "call_insn", "insns".
8665         (xtensa_legitimize_tls_address): Likewise for local "insns".
8666         (xtensa_expand_prologue): Likewise for locals "insn", "first".
8668 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8670         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
8671         first param from rtx to rtx_insn *.
8672         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
8673         "insn".
8675 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8677         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
8678         Strengthen param 1 from rtx to rtx_insn *.
8679         (tilepro_output_cbranch): Likewise.
8680         (tilepro_adjust_insn_length): Likewise.
8681         (tilepro_final_prescan_insn): Likewise for sole param.
8683         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
8684         Likewise for local "last".
8685         (cbranch_predicted_p): Likewise for param "insn".
8686         (tilepro_output_simple_cbranch_with_opcode): Likewise.
8687         (tilepro_output_cbranch_with_opcode): Likewise.
8688         (tilepro_output_cbranch): Likewise.
8689         (frame_emit_load): Likewise for return type and locals "seq",
8690         "insn".
8691         (emit_sp_adjust): Likewise for return type and local "insn".
8692         (tilepro_expand_epilogue): Likewise for locals "last_insn",
8693         "insn".
8694         (tilepro_adjust_insn_length): Likewise for param "insn".
8695         (next_insn_to_bundle): Likewise for return type and params
8696         "r", "end".
8697         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
8698         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
8699         local "new_insns".
8700         (match_addli_pcrel): Likewise for param "insn".
8701         (replace_addli_pcrel): Likewise.
8702         (match_auli_pcrel): Likewise.
8703         (replace_auli_pcrel): Likewise.
8704         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
8705         "next_insn".
8706         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8707         "queue", "next_queue", "prev".
8708         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
8709         (tilepro_final_prescan_insn): Likewise for param "insn".
8711 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8713         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
8714         Strengthen param 1 from rtx to rtx_insn *.
8715         (tilegx_output_cbranch): Likewise.
8716         (tilegx_adjust_insn_length): Likewise.
8717         (tilegx_final_prescan_insn): Likewise for sole param.
8719         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
8720         or local "last".
8721         (cbranch_predicted_p): Likewise for param "insn".
8722         (tilegx_output_simple_cbranch_with_opcode): Likewise.
8723         (tilegx_output_cbranch_with_opcode): Likewise.
8724         (tilegx_output_cbranch): Likewise.
8725         (frame_emit_load): Likewise for return type.
8726         (set_frame_related_p): Likewise for locals "seq", "insn".
8727         (emit_sp_adjust): Likewise for return type, and for local "insn".
8728         Introduce local "pat" for use in place of "insn" where the latter
8729         isn't an instruction.
8730         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
8731         from rtx to rtx_insn *.
8732         (tilegx_adjust_insn_length): Likewise for param "insn".
8733         (next_insn_to_bundle): Likewise for return type and params "r" and
8734         "end".
8735         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
8736         "end".
8737         (replace_insns): Likewise for params "old_insn", "new_insns".
8738         (replace_mov_pcrel_step1): Likewise for param "insn" and local
8739         "new_insns".
8740         (replace_mov_pcrel_step2): Likewise.
8741         (replace_mov_pcrel_step3): Likewise.
8742         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
8743         "next_insn".
8744         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8745         "queue", "next_queue", "prev".
8746         (tilegx_output_mi_thunk): Likewise for local "insn".
8747         (tilegx_final_prescan_insn): Likewise for param "insn".
8749 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8751         * config/spu/spu.c (frame_emit_store): Strengthen return type from
8752         rtx to rtx_insn *.
8753         (frame_emit_load): Likewise.
8754         (frame_emit_add_imm): Likewise, also for local "insn".
8755         (spu_expand_prologue): Likewise for local "insn".
8756         (struct spu_bb_info): Likewise for field "prop_jump".
8757         (emit_nop_for_insn): Likewise for param "insn" and local
8758         "new_insn".
8759         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
8760         "hbr_insn".
8761         (spu_emit_branch_hint): Likewise for params "before", "branch" and
8762         locals "hint", "insn".
8763         (get_branch_target): Likewise for param "branch".
8764         (insn_clobbers_hbr): Likewise for param "insn".
8765         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
8766         locals "insn", "before_4", "before_16".
8767         (insert_hbrp): Likewise for local "insn".
8768         (spu_machine_dependent_reorg): Likewise for locals "branch",
8769         "insn", "next", "bbend".
8770         (uses_ls_unit): Likewise for param "insn".
8771         (get_pipe): Likewise.
8772         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
8773         introducing a checked cast.
8774         (spu_sched_adjust_cost): Likewise for params "insn" and
8775         "dep_insn".
8776         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
8777         (spu_sms_res_mii): Likewise.
8779 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8781         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
8782         from rtx to rtx_insn *.
8783         (output_cbranch): Likewise for param 6.
8784         (output_return): Likewise for param 1.
8785         (output_sibcall): Likewise.
8786         (output_v8plus_shift): Likewise.
8787         (output_v8plus_mult): Likewise.
8788         (output_v9branch): Likewise for param 7.
8789         (output_cbcond):  Likewise for param 3.
8791         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
8792         for local "insn".
8793         (sparc_legitimize_pic_address): Likewise.
8794         (sparc_emit_call_insn): Likewise.
8795         (emit_save_or_restore_regs): Likewise.
8796         (emit_window_save): Likewise for return type and local "insn".
8797         (sparc_expand_prologue): Likewise for local "insn".
8798         (sparc_flat_expand_prologue): Likewise.
8799         (output_return): Likewise for param "insn".
8800         (output_sibcall): Likewise for param "insn" and local "delay".
8801         (output_ubranch): Likewise for param "insn".
8802         (output_cbranch): Likewise.
8803         (output_cbcond): Likewise.
8804         (output_v9branch): Likewise.
8805         (output_v8plus_shift): Likewise.
8806         (sparc_output_mi_thunk): Likewise for local "insn".
8807         (get_some_local_dynamic_name): Likewise.
8808         (output_v8plus_mult): Likewise for param "insn".
8810 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8812         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
8813         from rtx to rtx_insn *.
8814         (output_branchy_insn): Likewise for param 3.
8815         (output_far_jump): Likewise for param 1.
8816         (final_prescan_insn): Likewise.
8817         (sh_insn_length_adjustment): Likewise for sole param.
8819         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
8820         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
8821         rtx_code_label *.
8822         (sh_emit_compare_and_set): Likewise for local "lab".
8823         (output_far_jump): Strengthen param "insn" and local "prev" from
8824         rtx to rtx_insn *.
8825         (output_branchy_insn): Likewise for param "insn" and local
8826         "next_insn".
8827         (output_ieee_ccmpeq): Likewise for param "insn".
8828         (struct label_ref_list_d): Strengthen field "label" from rtx to
8829         rtx_code_label *.
8830         (pool_node): Likewise.
8831         (pool_window_label): Likewise for this global.
8832         (add_constant): Likewise for return type and locals "lab", "new_rtx".
8833         (dump_table): Strengthen params "start", "barrier" and local
8834         "scan" from rtx to rtx_insn *.
8835         (broken_move): Likewise for param "insn".
8836         (untangle_mova): Likewise for params "first_mova" and "new_mova".
8837         Strengthen param "first_mova" from rtx * to rtx_insn **.
8838         (mova_p): Likewise for param "insn".
8839         (fixup_mova): Likewise for param "mova".
8840         (find_barrier): Likewise for return type, params "mova" and
8841         "from", and locals "barrier_before_mova", "found_barrier",
8842         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
8843         "label" from rtx to rtx_code_label *.
8844         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
8845         rtx to rtx_insn *.
8846         (sh_reorg): Likewise for locals "link", "scan", "barrier".
8847         (split_branches): Likewise for param "first" and local "insn".
8848         (final_prescan_insn): Likewise for param "insn".
8849         (sequence_insn_p): Likewise for locals "prev", "next".
8850         (sh_insn_length_adjustment): Likewise for param "insn".
8851         (sh_can_redirect_branch): Likewise for local "insn".
8852         (find_r0_life_regions): Likewise for locals "end", "insn".
8853         (sh_output_mi_thunk): Likewise for local "insns".
8855 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8857         * config/score/score.c (score_output_mi_thunk): Strengthen local
8858         "insn" from rtx to rtx_insn *.
8859         (score_prologue): Likewise.
8861 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8863         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
8864         1 from rtx to rtx_insn *.
8865         (s390_emit_jump): Likewise for return type.
8866         (s390_emit_call): Likewise.
8867         (s390_load_got): Likewise.
8869         * config/s390/s390.c (last_scheduled_insn): Likewise for this
8870         variable.
8871         (s390_match_ccmode): Likewise for param "insn".
8872         (s390_emit_jump): Likewise for return type.
8873         (s390_split_branches): Likewise for local "label".
8874         (struct constant): Strengthen field "label" from rtx to
8875         rtx_code_label *.
8876         (struct constant_pool): Likewise for field "label".  Strengthen
8877         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
8878         rtx_insn *.
8879         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
8880         insns.
8881         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
8882         (s390_end_pool): Likewise.
8883         (s390_dump_pool): Likewise for local "insn".
8884         (s390_mainpool_start): Likewise.
8885         (s390_chunkify_start): Likewise.
8886         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
8887         with insns.  Strengthen locals "label", "jump", "barrier", "next",
8888         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
8889         (s390_chunkify_finish): Strengthen local "insn" from rtx to
8890         rtx_insn *.
8891         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
8892         "jump", "label", "next_insn".
8893         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
8894         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
8895         "tbegin_insn".
8896         (s390_load_got): Likewise for return type and local "insns".
8897         (s390_save_gprs_to_fprs): Likewise for local "insn".
8898         (s390_restore_gprs_from_fprs): Likewise.
8899         (pass_s390_early_mach::execute): Likewise.
8900         (s390_emit_prologue): Likewise for local "insns".
8901         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
8902         rtx_code_label *.
8903         (s390_emit_call): Strengthen return type and local "insn" from
8904         rtx to rtx_insn *.
8905         (s390_emit_tpf_eh_return): Likewise for local "insn".
8906         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
8907         "next_insn", introducing locals "s_pat", "rpat" to allow this.
8908         (s390_fix_long_loop_prediction): Likewise for param "insn" and
8909         local "cur_insn".
8910         (s390_non_addr_reg_read_p): Likewise for param "insn".
8911         (find_cond_jump): Likewise for return type and param "insn".
8912         (s390_swap_cmp): Likewise for param "insn".
8913         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
8914         "prev_insn", "next_insn".
8915         (s390_reorg): Likewise for locals "insn", "target".
8916         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
8917         (s390_sched_variable_issue): For now, rename param "insn" to
8918         "uncast_insn", introducing a checked cast.
8919         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
8920         insn.
8921         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
8922         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
8924 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8926         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
8927         param from rtx to rtx_insn *.
8928         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
8930 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8932         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
8933         4 from rtx to rtx_insn *.
8934         (rs6000_final_prescan_insn): Likewise for first param.
8935         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
8936         local "insn".
8937         (rs6000_get_some_local_dynamic_name): Likewise.
8938         (output_cbranch): Likewise for param "insn".
8939         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
8940         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
8941         (rs6000_emit_allocate_stack): Likewise for local "insn".
8942         (load_cr_save): Likewise.
8943         (restore_saved_cr): Likewise.
8944         (restore_saved_lr): Likewise.
8945         (emit_cfa_restores): Likewise.
8946         (rs6000_output_function_epilogue): Likewise for locals "insn" and
8947         "deleted_debug_label".
8948         (rs6000_output_mi_thunk): Likewise for local "insn".
8949         (rs6000_final_prescan_insn): Likewise for param "insn".
8951 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8953         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
8954         Strengthen param "insn" from rtx to rtx_insn *.
8955         * config/picochip/picochip.c (picochip_current_prescan_insn):
8956         Likewise for this variable.
8957         (picochip_final_prescan_insn): Likewise for param "insn".
8959 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8961         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8962         from rtx to rtx_insn *.
8963         (pa_output_indirect_call): Likewise.
8964         (pa_adjust_insn_length): Likewise.
8965         (pa_attr_length_millicode_call): Likewise.
8966         (pa_attr_length_call): Likewise.
8967         (pa_attr_length_indirect_call): Likewise.
8969         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8970         "insn".
8971         (pa_attr_length_millicode_call): Likewise.
8972         (pa_attr_length_call): Likewise.
8973         (pa_output_call): Likewise.
8974         (pa_attr_length_indirect_call): Likewise.
8975         (pa_output_indirect_call): Likewise.
8977 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8979         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8980         Strengthen first param from rtx to rtx_insn *.
8981         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8982         param "insn".
8984 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8986         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8987         type from rtx to rtx_insn *.
8988         (mips_expand_call): Likewise.
8989         (mips_adjust_insn_length): Likewise for first param.
8990         (mips_output_conditional_branch): Likewise.
8991         (mips_output_order_conditional_branch): Likewise.
8992         (mips_final_prescan_insn): Likewise.
8994         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8995         rtx_insn * for the SEQUENCE case.
8996         (SEQ_END): Likewise.
8997         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8998         (mips_emit_call_insn): Likewise, also for local "insn".
8999         (mips16_gp_pseudo_reg): Likewise for local "scan".
9000         (mips16_build_call_stub): Likewise for return type and for local
9001         "insn".  Introduce a new local "pattern" so that "insn" can indeed
9002         be an insn.
9003         (mips_expand_call): Strengthen return type and local "insn" from
9004         rtx to rtx_insn *.
9005         (mips_block_move_loop): Strengthen local "label" from rtx to
9006         rtx_code_label *.
9007         (mips_expand_synci_loop): Likewise for locals "label",
9008         "end_label".
9009         (mips_set_frame_expr): Strengthen local "insn" from rtx to
9010         rtx_insn *.
9011         (mips16e_collect_argument_saves): Likewise for locals "insn",
9012         "next".
9013         (mips_find_gp_ref): Likewise for param of callback for "pred"
9014         param, and for local "insn".
9015         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
9016         (mips_insn_has_flexible_gp_ref_p): Likewise.
9017         (mips_epilogue_emit_cfa_restores): Likewise for return type and
9018         local "insn".
9019         (mips_epilogue_set_cfa): Likewise for local "insn".
9020         (mips_expand_epilogue): Likewise.
9021         (mips_adjust_insn_length): Likewise for param "insn".
9022         (mips_output_conditional_branch): Likewise.
9023         (mips_output_order_conditional_branch): Likewise.
9024         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
9025         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
9026         "falu2_turn_enabled_insn".
9027         (mips_builtin_branch_and_move): Strengthen locals "true_label",
9028         "done_label" from rtx to rtx_code_label *.
9029         (struct mips16_constant): Likewise for field "label".
9030         (mips16_add_constant): Likewise for return type.
9031         (mips16_emit_constants_1): Strengthen return type and param "insn"
9032         from rtx to rtx_insn *.
9033         (mips16_emit_constants): Likewise for param "insn".
9034         (mips16_insn_length): Likewise.
9035         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
9036         to rtx_code_label *.
9037         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
9038         from rtx to rtx_insn *.
9039         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
9040         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
9041         (r10k_simplify_address): Strengthen param "insn" and local
9042         "def_insn" from rtx to rtx_insn *.
9043         (r10k_safe_address_p): Strengthen param "insn" from rtx to
9044         rtx_insn *.
9045         (r10k_needs_protection_p_1): Update target type of cast of data
9046         from to rtx to rtx_insn *.
9047         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
9048         rtx * to rtx_insn **.
9049         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
9050         rtx_insn *.
9051         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
9052         (mips_call_expr_from_insn): Likewise for param "insn".
9053         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
9054         (mips_find_pic_call_symbol): Likewise for param "insn".
9055         (mips_annotate_pic_calls): Likewise for local "insn".
9056         (mips_sim_insn): Likewise for this variable.
9057         (struct mips_sim): Likewise for field "insn" within elements of
9058         last_set array.
9059         (mips_sim_wait_reg): Likewise for param "insn".
9060         (mips_sim_wait_regs): Likewise.
9061         (mips_sim_wait_units): Likewise.
9062         (mips_sim_wait_insn): Likewise.
9063         (mips_sim_issue_insn): Likewise.
9064         (mips_sim_finish_insn): Likewise.
9065         (mips_seq_time): Likewise for param "seq" and local "insn".
9066         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
9067         locals "first", "second".
9068         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
9069         "last", "last2", "next".
9070         (mips_avoid_hazard): Likewise for params "after", "insn".
9071         (mips_reorg_process_insns): Likewise for locals "insn",
9072         "last_insn", "subinsn", "next_insn".
9073         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
9074         (mips16_split_long_branches): Likewise for locals "insn" "jump",
9075         "jump_sequence".
9076         (mips_output_mi_thunk): Likewise for local "insn".
9077         (mips_final_prescan_insn): Likewise for param "insn".
9079 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9081         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
9082         Strengthen return type and local "insns" from rtx to rtx_insn *.
9083         (microblaze_legitimize_tls_address): Likewise for local "insns".
9084         (microblaze_block_move_loop): Strengthen local "label" from rtx
9085         to rtx_code_label *.
9086         (microblaze_expand_prologue): Strengthen two locals named "insn"
9087         from rtx to rtx_insn *.
9088         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
9089         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
9090         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
9091         to rtx_code_label *.
9093 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9095         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
9096         param from rtx to rtx_insn *.
9097         (mep_reuse_lo): Likewise for third param.
9098         (mep_use_post_modify_p): Likewise for first param.
9099         (mep_core_address_length): Likewise.
9100         (mep_cop_address_length): Likewise.
9101         (mep_final_prescan_insn): Likewise.
9102         (mep_store_data_bypass_p): Likewise for both params.
9103         (mep_mul_hilo_bypass_p): Likewise.
9104         (mep_ipipe_ldc_p): Likewise for param.
9106         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
9107         (mep_rewrite_mult): Likewise.
9108         (mep_rewrite_mulsi3): Likewise.
9109         (mep_rewrite_maddsi3): Likewise.
9110         (mep_reuse_lo_p_1): Likewise.
9111         (mep_reuse_lo_p): Likewise.
9112         (mep_frame_expr): Likewise.
9113         (mep_make_parallel): Likewise for both params.
9114         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
9115         local "insn".
9116         (mep_use_post_modify_p): Likewise for param "insn".
9117         (mep_core_address_length): Likewise.
9118         (mep_cop_address_length): Likewise.
9119         (mep_reg_set_in_function): Likewise for local "insn".
9120         (mep_asm_without_operands_p): Likewise.
9121         (F): Likewise for return type and param "x".
9122         (add_constant): Likewise for local "insn".
9123         (maybe_dead_move): Likewise for return type and local "insn".
9124         (mep_expand_prologue): Likewise for local "insn".
9125         (mep_final_prescan_insn): Likewise for param "insn".
9126         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
9127         "next", "follow", "x".
9128         (mep_insert_repeat_label_last): Likewise for return type, param
9129         "last_insn", and locals "next", "prev".  Strengthen param "label"
9130         from rtx to rtx_code_label *.
9131         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
9132         rtx_insn *.
9133         (struct mep_doloop_end): Likewise for fields "insn" and
9134         "fallthrough".
9135         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
9136         Strengthen local "repeat_label" from rtx to rtx_code_label *.
9137         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
9138         rtx_insn *.
9139         (mep_invert_branch): Likewise for params "insn" and "after".
9140         (mep_reorg_erepeat): Likewise for param "insns" and locals
9141         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
9142         "l" from rtx to rtx_code_label *.
9143         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
9144         from rtx to rtx_insn *.
9145         (mep_reorg_addcombine): Likewise for param "insns" and locals
9146         "i", "n".
9147         (add_sp_insn_p): Likewise for param "insn".
9148         (mep_reorg_noframe): Likewise for param "insns" and locals
9149         "start_frame_insn", "end_frame_insn", "next".
9150         (mep_reorg): Likewise for local "insns".
9151         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
9152         cast.
9153         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
9154         (mep_mul_hilo_bypass_p): Likewise.
9155         (mep_ipipe_ldc_p): Likewise for param "insn".
9156         (mep_make_bundle): Likewise for return type, param "cop" and local
9157         "insn", splitting out the latter into a new local "seq" for when it
9158         is a SEQUENCE rather than an insn.
9159         (core_insn_p): Likewise for param "insn".
9160         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
9161         "last", "first", "note", "prev", "core_insn".
9163 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9165         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
9166         rtx to rtx_insn *.
9167         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
9168         (m68k_final_prescan_insn): Likewise for first param.
9170         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
9171         (m68k_set_frame_related): Likewise for param "insn".
9172         (output_btst): Likewise for param "insn".
9173         (m68k_final_prescan_insn): Likewise.
9174         (m68k_move_to_reg): Likewise for local "insn".
9175         (m68k_call_tls_get_addr): Likewise for local "insns".
9176         (m68k_call_m68k_read_tp): Likewise.
9177         (strict_low_part_peephole_ok): Likewise for param "first_insn".
9178         (m68k_output_mi_thunk): Likewise for local "insn".
9180 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9182         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
9183         first param from rtx to rtx_insn *.
9184         (iq2000_adjust_insn_length): Likewise.
9185         (iq2000_output_conditional_branch): Likewise.
9186         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
9187         "insn" and local "nop_insn".
9188         (iq2000_annotate_frame_insn): Likewise for param "insn".
9189         (iq2000_expand_prologue): Likewise for both locals "insn".
9190         (iq2000_adjust_insn_length): Likewise for param "insn".
9191         (iq2000_output_conditional_branch): Likewise.
9193 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9195         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
9196         "insns" from rtx to rtx_insn *.
9197         (ia64_emit_cond_move): Likewise for locals "insn", "first".
9198         (struct spill_fill_data): Likewise for field "init_after" and for
9199         elements of array field "prev_insn".
9200         (spill_restore_mem): Likewise for locals "insn", "first".
9201         (do_spill): Likewise for local "insn".
9202         (do_restore): Likewise.
9203         (ia64_expand_prologue): Likewise.
9204         (ia64_expand_epilogue): Likewise.
9205         (emit_insn_group_barriers): Likewise for locals "insn",
9206         "last_label".
9207         (emit_all_insn_group_barriers): Likewise for locals "insn",
9208         "last".
9209         (dfa_stop_insn): Likewise for this global.
9210         (dfa_pre_cycle_insn): Likewise.
9211         (ia64_nop): Likewise.
9212         (final_emit_insn_group_barriers): Likewise for locals "insn",
9213         "last".
9214         (emit_predicate_relation_info): Likewise for locals "head", "n",
9215         "insn", "b", "a".
9216         (ia64_reorg): Likewise for local "insn".
9217         (ia64_output_mi_thunk): Likewise.
9218         (expand_vec_perm_interleave_2): Likewise for local "seq".
9220 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9222         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
9223         param 1 "insn" from rtx to rtx_insn *.
9224         (ix86_use_lea_for_mov): Likewise.
9225         (ix86_avoid_lea_for_addr): Likewise.
9226         (ix86_split_lea_for_addr): Likewise.
9227         (ix86_lea_for_add_ok): Likewise.
9228         (ix86_output_call_insn): Likewise.
9230         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
9231         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
9232         (ix86_output_function_epilogue): Likewise for locals "insn",
9233         "deleted_debug_label".
9234         (legitimize_tls_address): Likewise for local "insn".
9235         (get_some_local_dynamic_name): Likewise.
9236         (increase_distance): Likewise for params "prev", "next".
9237         (distance_non_agu_define_in_bb): Likewise for params "insn",
9238         "start" and locals "prev", "next".
9239         (distance_non_agu_define): Likewise for param "insn".
9240         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
9241         locals "next", "prev".
9242         (distance_agu_use): Likewise for param "insn".
9243         (ix86_lea_outperforms): Likewise.
9244         (ix86_ok_to_clobber_flags): Likewise.
9245         (ix86_avoid_lea_for_add): Likewise.
9246         (ix86_use_lea_for_mov): Likewise.
9247         (ix86_avoid_lea_for_addr): Likewise.
9248         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
9249         (ix86_split_lea_for_addr): Likewise for param "insn".
9250         (ix86_lea_for_add_ok): Likewise for param "insn".
9251         (ix86_expand_carry_flag_compare): Likewise for local
9252         "compare_seq".
9253         (ix86_expand_int_movcc): Likewise.
9254         (ix86_output_call_insn): Likewise for param "insn".
9255         (ix86_output_call_insn): Likewise for local "i".
9256         (x86_output_mi_thunk): Introduce local "insn", using it in place
9257         of "tmp" when dealing with insns.
9258         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
9259         "start".
9260         (ix86_pad_returns): Likewise for locals "ret", "prev".
9261         (ix86_count_insn_bb): Likewise for local "insn".
9262         (ix86_pad_short_function): Likewise for locals "ret", "insn".
9263         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
9264         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
9265         (expand_vec_perm_interleave2): Likewise for local "seq".
9266         (expand_vec_perm_vperm2f128_vblend): Likewise.
9267         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
9268         call to for_each_rtx with for_each_rtx_in_insn.
9270 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9272         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
9273         "label" from rtx to rtx_code_label *.
9274         (ix86_expand_prologue): Likewise.
9275         (ix86_expand_split_stack_prologue): Likewise for locals "label",
9276         "varargs_label".
9277         (ix86_split_idivmod): Likewise for locals "end_label" and
9278         "qimode_label".
9279         (ix86_expand_branch): Likewise for local "label2".
9280         (ix86_expand_aligntest): Likewise for return type and local "label".
9281         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
9282         "top_label".
9283         (expand_movmem_epilogue): Likewise for the various locals named
9284         "label".
9285         (expand_setmem_epilogue): Likewise.
9286         (expand_small_movmem_or_setmem): Likewise for local "label".
9287         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
9288         Strengthen param "done_label" from rtx * to rtx_code_label **.
9289         Strengthen locals "loop_label" and "label" from rtx to
9290         rtx_code_label *.
9291         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
9292         Likewise for locals "loop_label", "label".
9293         (ix86_expand_set_or_movmem): Likewise for locals "label",
9294         "jump_around_label", "hot_label".
9295         (ix86_expand_strlensi_unroll_1): Likewise for locals
9296         "align_2_label", align_3_label", "align_4_label", "end_0_label",
9297         "end_2_label".
9298         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
9299         (void ix86_emit_i387_log1p): Likewise for locals "label1",
9300         "label2", "jump_label".
9301         (ix86_expand_sse_compare_and_jump): Likewise for return type and
9302         local "label".
9303         (ix86_expand_lfloorceil): Likewise for local "label".
9304         (ix86_expand_rint): Likewise.
9305         (ix86_expand_floorceildf_32): Likewise.
9306         (ix86_expand_floorceil): Likewise.
9307         (ix86_expand_rounddf_32): Likewise.
9308         (ix86_expand_trunc): Likewise.
9309         (ix86_expand_truncdf_32): Likewise.
9310         (ix86_expand_round): Likewise.
9312 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9314         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
9315         first param from rtx to rtx_insn *.
9316         (h8300_insn_length_from_table): Likewise.
9317         * config/h8300/h8300.c (F): Likewise for return type and param
9318         "x".
9319         (Fpa): Add a checked cast to rtx_insn *.
9320         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
9321         rtx_insn *.
9322         (final_prescan_insn): Likewise for param "insn".
9323         (h8300_binary_length): Likewise.
9324         (h8300_insn_length_from_table): Likewise.
9326 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9328         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
9329         Strengthen first param "insn" from rtx to rtx_insn *.
9331         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
9332         Likewise.
9333         (frame_insn): Likewise for return type.  Introduce local "insn"
9334         for use in place of local "x" for use as an rtx_insn *.
9335         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
9336         (epiphany_expand_prologue): Likewise for local "insn".
9337         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
9338         * config/epiphany/resolve-sw-modes.c
9339         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
9340         "seq".
9342 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9344         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
9345         param from rtx to rtx_insn *.
9346         (c6x_final_prescan_insn): Likewise for first param.
9348         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
9349         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
9350         (c6x_expand_compare): Strengthen local "insns" from rtx to
9351         rtx_insn *.
9352         (c6x_get_unit_specifier): Likewise for param "insn".
9353         (c6x_print_unit_specifier_field): Likewise.
9354         (c6x_final_prescan_insn): Likewise.
9355         (emit_add_sp_const): Likewise for local "insn".
9356         (c6x_expand_prologue): Likewise.
9358 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9360         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
9361         param 1 from rtx to rtx_insn *.
9362         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
9363         the various locals named "insn".
9364         (expand_epilogue_reg_restore): Likewise.
9365         (frame_related_constant_load): Likewise.
9366         (add_to_reg): Likewise.
9367         (emit_link_insn): Likewise.
9368         (do_link): Likewise.
9369         (expand_interrupt_handler_prologue): Likewise.
9370         (branch_dest): Likewise for param "branch".
9371         (asm_conditional_branch): Likewise for param "insn".
9372         (gen_one_bundle): Likewise for elements of param "slot" and local
9373         "t".
9374         (bfin_gen_bundles): Likewise for locals "insn", "next" and
9375         elements of local "slot".
9376         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9377         "queue", "next_queue", "prev".
9378         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
9379         (add_sched_insns_for_speculation): Likewise for local "insn".
9381 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9383         * config/avr/avr-protos.h (output_movqi): Strengthen first param
9384         from rtx to rtx_insn *.
9385         (output_movhi): Likewise.
9386         (output_movsisf): Likewise.
9387         (avr_out_tstsi): Likewise.
9388         (avr_out_tsthi): Likewise.
9389         (avr_out_tstpsi): Likewise.
9390         (avr_out_compare): Likewise.
9391         (avr_out_compare64): Likewise.
9392         (avr_out_movpsi): Likewise.
9393         (ashlqi3_out): Likewise.
9394         (ashlhi3_out): Likewise.
9395         (ashlsi3_out): Likewise.
9396         (ashrqi3_out): Likewise.
9397         (ashrhi3_out): Likewise.
9398         (ashrsi3_out): Likewise.
9399         (lshrqi3_out): Likewise.
9400         (lshrhi3_out): Likewise.
9401         (lshrsi3_out): Likewise.
9402         (avr_out_ashlpsi3): Likewise.
9403         (avr_out_ashrpsi3): Likewise.
9404         (avr_out_lshrpsi3): Likewise.
9405         (avr_out_fract): Likewise.
9406         (avr_out_sbxx_branch): Likewise.
9407         (avr_out_round): Likewise.
9408         (avr_out_xload): Likewise.
9409         (avr_out_movmem): Likewise.
9410         (adjust_insn_length): Likewise.
9411         (avr_out_lpm): Likewise.
9412         (reg_unused_after): Likewise.
9413         (_reg_unused_after): Likewise.
9414         (avr_jump_mode): Likewise for second param.
9415         (jump_over_one_insn): Likewise for first param.
9416         (avr_final_prescan_insn): Likewise.
9417         (out_shift_with_cnt): Likewise for second param.
9419         * config/avr/avr.c (get_sequence_length): Likewise for param
9420         "insns" and local "insn".
9421         (emit_push_byte): Likewise for local "insn".
9422         (emit_push_sfr): Likewise.
9423         (avr_prologue_setup_frame): Likewise for locals "insn",
9424         "fp_plus_insns", "sp_plus_insns".
9425         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
9426         "sp_plus_insns".
9427         (avr_jump_mode): Likewise for param "insn".
9428         (avr_final_prescan_insn): Likewise.
9429         (avr_find_unused_d_reg): Likewise.
9430         (avr_out_lpm_no_lpmx): Likewise.
9431         (avr_out_lpm): Likewise.
9432         (avr_out_xload): Likewise.
9433         (output_movqi): Likewise.
9434         (output_movhi): Likewise.
9435         (out_movqi_r_mr): Likewise.
9436         (out_movhi_r_mr): Likewise.
9437         (out_movsi_r_mr): Likewise.
9438         (out_movsi_mr_r): Likewise.
9439         (output_movsisf): Likewise.
9440         (avr_out_load_psi): Likewise.
9441         (avr_out_store_psi): Likewise.
9442         (avr_out_movpsi): Likewise.
9443         (out_movqi_mr_r): Likewise.
9444         (avr_out_movhi_mr_r_xmega): Likewise.
9445         (out_movhi_mr_r): Likewise.
9446         (compare_condition): Likewise for param "insn" and local "next".
9447         (compare_sign_p): Likewise for param "insn".
9448         (compare_diff_p): Likewise.
9449         (compare_eq_p): Likewise.
9450         (avr_out_compare): Likewise.
9451         (avr_out_compare64): Likewise.
9452         (avr_out_tsthi): Likewise.
9453         (avr_out_tstpsi): Likewise.
9454         (avr_out_tstsi): Likewise.
9455         (out_shift_with_cnt): Likewise.
9456         (ashlqi3_out): Likewise.
9457         (ashlhi3_out): Likewise.
9458         (avr_out_ashlpsi3): Likewise.
9459         (ashlsi3_out): Likewise.
9460         (ashrqi3_out): Likewise.
9461         (ashrhi3_out): Likewise.
9462         (avr_out_ashrpsi3): Likewise.
9463         (ashrsi3_out): Likewise.
9464         (lshrqi3_out): Likewise.
9465         (lshrhi3_out): Likewise.
9466         (avr_out_lshrpsi3): Likewise.
9467         (lshrsi3_out): Likewise.
9468         (avr_out_fract): Likewise.
9469         (avr_out_round): Likewise.
9470         (avr_adjust_insn_length): Likewise.
9471         (reg_unused_after): Likewise.
9472         (_reg_unused_after): Likewise.
9473         (avr_compare_pattern): Likewise.
9474         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
9475         and locals "branch1", "branch2", "insn2", "jump".
9476         (avr_reorg): Likewise for local "insn".
9477         (avr_2word_insn_p): Likewise for param "insn".
9478         (jump_over_one_insn_p): Likewise.
9479         (avr_out_sbxx_branch): Likewise.
9480         (avr_out_movmem): Likewise.
9482 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9484         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
9485         param from rtx to rtx_insn *.
9486         (thumb1_final_prescan_insn): Likewise.
9487         (thumb2_final_prescan_insn): Likewise.
9489         * config/arm/arm.c (emit_set_insn): Strengthen return type from
9490         rtx to rtx_insn *.
9491         (struct minipool_node): Likewise for field "insn".
9492         (dump_minipool): Likewise for param "scan".
9493         (create_fix_barrier): Likewise for local "from".  Strengthen local
9494         "label" from rtx to rtx_code_label *.
9495         (push_minipool_barrier): Strengthen param "insn" from rtx to
9496         rtx_insn *.
9497         (push_minipool_fix): Likewise.
9498         (note_invalid_constants): Likewise.
9499         (thumb2_reorg): Likewise for local "insn".
9500         (arm_reorg): Likewise.
9501         (thumb2_final_prescan_insn): Likewise for param
9502         "insn" and local "first_insn".
9503         (arm_final_prescan_insn): Likewise for param "insn" and locals
9504         "start_insn", "this_insn".
9505         (arm_debugger_arg_offset): Likewise for param "insn".
9506         (thumb1_emit_multi_reg_push): Likewise for return type and local
9507         "insn".
9508         (thumb1_final_prescan_insn): Likewise for param "insn".
9509         (thumb_far_jump_used_p): Likewise for local "insn".
9510         (thumb1_expand_prologue): Likewise.
9511         (arm_expand_epilogue_apcs_frame): Likewise.
9512         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
9513         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
9514         from rtx to rtx_code_label *.
9515         (arm_split_atomic_op): Likewise for local "label".
9516         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
9518 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9520         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
9521         first param from rtx to rtx_insn *.
9522         (arc_verify_short): Likewise.
9523         (arc_short_long): Likewise.
9524         (arc_need_delay): Likewise.
9526         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
9527         "target_insn".
9528         (arc_ccfsm_advance): Likewise for param "insn" and locals
9529         "start_insn", "this_insn".
9530         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
9531         (arc_ccfsm_post_advance): Likewise for param "insn".
9532         (arc_next_active_insn): Likewise for return type and param "insn".
9533         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
9534         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
9535         (output_short_suffix): Likewise for local "insn".
9536         (arc_final_prescan_insn): Likewise for param "insn".  Remove
9537         now-redundant checked cast.
9538         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
9539         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
9540         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
9541         for use where lc_set became an insn.
9542         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
9543         rtx to rtx_insn *.
9544         (arc_get_insn_variants): Likewise for local "prev".
9545         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
9546         "next".
9547         (arc_predicate_delay_insns): Likewise for local "insn".
9548         (arc_pad_return): Likewise for local "prev".  For now, add a
9549         checked cast when extracting the insn from "final_sequence".
9550         (arc_short_long): Likewise for param "insn".
9551         (arc_need_delay): Likewise for param "insn" and local "next".
9552         (arc_label_align): Likewise for locals "prev", "next".
9554 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9556         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
9557         "insn" from rtx to rtx_insn *.
9558         (alpha_gp_save_rtx): Likewise for local "seq".
9559         (alpha_instantiate_decls): Likewise for local "top".
9560         (get_some_local_dynamic_name): Likewise for local "insn".
9561         (alpha_does_function_need_gp): Likewise.
9562         (set_frame_related_p): Likewise for return type and for locals
9563         "seq" and "insn".
9564         (emit_frame_store_1): Likewise for local "insn".
9565         (alpha_expand_prologue): Likewise for locals "insn", "seq".
9566         (alpha_end_function): Likewise for local "insn".
9567         (alpha_output_mi_thunk_osf): Likewise.
9568         (alphaev4_insn_pipe): Likewise for param "insn".
9569         (alphaev5_insn_pipe): Likewise.
9570         (alphaev4_next_group): Likewise for return type and param 1
9571         "insn".
9572         (alphaev5_next_group): Likewise.
9573         (alpha_align_insns_1): Likewise for return type and param 1 of
9574         callback param "next_group", and for locals "i", "next", "prev",
9575         "where", "where2", "insn".
9577 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
9579         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
9580         rather than modifying the stmt.
9582 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9584         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
9585         cgraph_state conversion.
9587 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9589         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9590         Strengthen local "insns" from rtx to rtx_insn *.
9591         (aarch64_set_frame_expr): Likewise for local "insn".
9592         (aarch64_save_or_restore_fprs): Likewise.
9593         (aarch64_save_or_restore_callee_save_registers): Likewise.
9594         (aarch64_expand_prologue): Likewise.
9595         (aarch64_expand_epilogue): Likewise.
9596         (aarch64_output_mi_thunk): Likewise.
9597         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
9598         "label2" from rtx to rtx_code_label *.
9599         (aarch64_split_atomic_op): Likewise for local "label".
9601 2014-08-25  Martin Liska  <mliska@suse.cz>
9603         * cgraph.h (symtab_node):
9604         (bool needed_p (void)): created from decide_is_symbol_needed
9605         (bool referred_to_p (void)): created from referred_to_p
9606         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
9607         * cgraph.h (cgraph_node):
9608         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
9609         (void expand (void)): created from expand_function
9610         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
9611         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
9612         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
9613         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
9614         * cgraph.h (varpool_node):
9615         (static void add (tree decl): created from varpool_add_new_variable
9616         * cgraph.h (cgraph_edge):
9617         void remove (void);
9618         (void remove_caller (void)): created from cgraph_edge_remove_caller
9619         (void remove_callee (void)): created from cgraph_edge_remove_callee
9620         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
9621           created from cgraph_set_call_stmt
9622         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
9623         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
9624         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
9625           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
9626         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
9627           created from cgraph_speculative_call_info
9628         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
9629           int freq_scale, bool update_original)): created from cgraph_clone_edge
9630         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
9631         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
9632         (bool recursive_p (void)): created from cgraph_edge_recursive_p
9633         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
9634         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
9635         (static void rebuild_references (void)): created from cgraph_rebuild_references
9636         * cgraph.h (symbol_table):
9637         (create_reference): renamed from add_reference
9638         (maybe_create_reference): renamed from maybe_add_reference
9639         (void register_symbol (symtab_node *node)): new function
9640         (void clear_asm_symbols (void)): new function
9641         (void unregister (symtab_node *node)): new function
9642         (void release_symbol (cgraph_node *node, int uid)): new function
9643         (cgraph_node * allocate_cgraph_symbol (void)): new function
9644         (void initialize (void)): created from cgraph_init
9645         (symtab_node *first_symbol (void)):new function
9646         (asm_node *first_asm_symbol (void)):new function
9647         (symtab_node *first_defined_symbol (void)):new function
9648         (varpool_node *first_variable (void)):new function
9649         (varpool_node *next_variable (varpool_node *node)):new function
9650         (varpool_node *first_static_initializer (void)):new function
9651         (varpool_node *next_static_initializer (varpool_node *node)):new function
9652         (varpool_node *first_defined_variable (void)):new function
9653         (varpool_node *next_defined_variable (varpool_node *node)):new function
9654         (cgraph_node *first_defined_function (void)):new function
9655         (cgraph_node *next_defined_function (cgraph_node *node)):new function
9656         (cgraph_node *first_function (void)):new function
9657         (cgraph_node *next_function (cgraph_node *node)):new function
9658         (cgraph_node *first_function_with_gimple_body (void)):new function
9659         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
9660         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
9661           created from symtab_remove_unreachable_nodes
9662         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
9663         (void process_new_functions (void)): created from cgraph_process_new_functions
9664         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
9665         (bool output_variables (void)): created from varpool_node::output_variables
9666         (void output_asm_statements (void)): created from output_asm_statements
9667         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
9668         (void compile (void)): created from compile
9669         (void output_weakrefs (void)): created from output_weakrefs
9670         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
9671         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
9672           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
9673         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
9674         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
9675           created from cgraph_next_function_with_gimple_body
9676         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
9677           created from cgraph_remove_edge_removal_hook
9678         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
9679           created from cgraph_add_node_removal_hook
9680         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
9681           created from cgraph_remove_node_removal_hook
9682         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
9683           created from varpool_add_node_removal_hook
9684         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
9685           created from varpool_remove_node_removal_hook
9686         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
9687           created from cgraph_add_function_insertion_hook
9688         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
9689           created from cgraph_remove_function_insertion_hook
9690         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
9691           created from varpool_add_variable_insertion_hook
9692         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
9693           created from varpool_remove_variable_insertion_hook
9694         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
9695           created from cgraph_add_edge_duplication_hook
9696         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
9697           created from cgraph_remove_edge_duplication_hook
9698         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
9699           created from cgraph_add_node_duplication_hook
9700         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
9701           created from cgraph_remove_node_duplication_hook
9702         (void call_edge_removal_hooks (cgraph_edge *e)):
9703           created from cgraph_call_edge_removal_hooks
9704         (void call_cgraph_insertion_hooks (cgraph_node *node)):
9705           created from call_function_insertion_hooks
9706         (void call_cgraph_removal_hooks (cgraph_node *node)):
9707           created from cgraph_call_node_removal_hooks
9708         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
9709           created from cgraph_node::call_duplication_hooks
9710         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
9711           created from cgraph_call_edge_duplication_hooks
9712         (void call_varpool_removal_hooks (varpool_node *node)):
9713           created from varpool_call_node_removal_hooks
9714         (void call_varpool_insertion_hooks (varpool_node *node)):
9715           created from varpool_call_variable_insertion_hooks
9716         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
9717           created from insert_to_assembler_name_hash
9718         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
9719           created from unlink_from_assembler_name_hash
9720         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
9721           created from symtab_prevail_in_asm_name_hash
9722         (void symtab_initialize_asm_name_hash (void)):
9723           created from symtab_initialize_asm_name_hash
9724         (void change_decl_assembler_name (tree decl, tree name)):
9725           created from change_decl_assembler_name
9726         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
9727         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
9728           created from decl_assembler_name_hash
9729         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
9730           created from decl_assembler_name_equal
9731         (static hashval_t hash_node_by_assembler_name (const void *p)):
9732           created from hash_node_by_assembler_name
9733         (static int eq_assembler_name (const void *p1, const void *p2)):
9734           created from eq_assembler_name
9736 2014-08-25  Marek Polacek  <polacek@redhat.com>
9738         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
9740 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
9742         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
9743         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
9744         SWI1248_AVX512BW mode iterator.
9746 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
9748         PR target/62111
9749         * config/sh/predicates.md (general_extend_operand): Disable
9750         TRUNCATE before reload completes.
9752 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
9754         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
9756 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
9758         PR target/61996
9759         * config/sh/sh.opt (musermode): Allow negative form.
9760         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
9761         targets that don't support it.
9762         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
9763         Document -mno-usermode option.
9765 2014-08-24  Kito Cheng  <kito@0xlab.org>
9767         * system.h (CALLER_SAVE_PROFITABLE): Poison.
9768         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
9769         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
9770         * doc/tm.texi: Regenerate.
9772 2014-08-24  Kito Cheng  <kito@0xlab.org>
9774         * ira.c: Fix typo in comment.
9776 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
9778         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
9779         Deprecate c++1y. Change language to reflect greater confidence in C++14.
9781 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
9783         PR target/62038
9784         * config/pa/pa.c (pa_output_function_epilogue): Don't set
9785         last_address when the current function is a thunk.
9786         (pa_asm_output_mi_thunk): When we don't have named sections or they
9787         are not being used, check that thunk can reach the stub table with a
9788         short branch.
9790 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9792         * web.c (union_match_dups): Strengthen param "insn" from rtx to
9793         rtx_insn *.
9794         (pass_web::execute): Likewise for local "insn".
9796 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9798         * var-tracking.c (struct micro_operation_def): Strengthen field
9799         "insn" from rtx to rtx_insn *.
9800         (struct emit_note_data_def): Likewise.
9801         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
9802         (vt_stack_adjustments): Likewise for local "insn".
9803         (adjust_insn): Likewise for param "insn".
9804         (val_store): Likewise.
9805         (val_resolve): Likewise.
9806         (struct count_use_info): Likewise for field "insn".
9807         (log_op_type): Likewise for param "insn".
9808         (reverse_op): Likewise.
9809         (prepare_call_arguments): Likewise.
9810         (add_with_sets):  The initial param takes an insn, but we can't
9811         yet strengthen it from rtx to rtx_insn * since it's used as a
9812         cselib_record_sets_hook callback.  For now rename initial param
9813         from "insn" to "uncast_insn", and introduce a local "insn" of
9814         the stronger rtx_insn * type, with a checked cast.
9815         (compute_bb_dataflow): Strengthen local "insn" from rtx to
9816         rtx_insn *.
9817         (emit_note_insn_var_location): Likewise.
9818         (emit_notes_for_changes): Likewise.
9819         (emit_notes_for_differences): Likewise.
9820         (next_non_note_insn_var_location): Likewise for return type and
9821         for param "insn".
9822         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
9823         (vt_initialize): Likewise for local "insn".
9824         (delete_debug_insns): Likewise for locals "insn" and "next".
9826 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9828         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
9829         rtx_insn *.
9830         (mark_constant_pool): Likewise for local "insn".
9832 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9834         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
9835         rtx to rtx_insn *.
9836         (dead_debug_promote_uses): Likewise.
9837         (dead_debug_insert_temp): Likewise.
9839 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9841         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
9842         from const_rtx to const rtx_insn *.
9843         (store_killed_after): Likewise.  Strengthen locals "last", "act"
9844         from rtx to rtx_insn *.
9845         (store_killed_before): Strengthen param "insn" from const_rtx to
9846         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
9847         (find_moveable_store): Strengthen param "insn" from rtx to
9848         rtx_insn *.
9849         (compute_store_table): Likewise for local "insn".
9850         (insert_insn_start_basic_block): Likewise for param "insn" and
9851         locals "prev", "before", "insn".
9852         (insert_store): For now, add a checked cast to rtx_insn * on the
9853         result of gen_move_insn.
9854         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
9855         to rtx_insn *.
9856         (replace_store_insn): Likewise.  For now, add a checked cast to
9857         rtx_insn * on the result of gen_move_insn.
9859 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9861         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
9862         rtx_insn *.
9863         (expand_sjlj_dispatch_table): Likewise.
9865 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9867         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
9868         "insn" from rtx to rtx_insn *.
9870 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9872         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
9873         "insn" from rtx to rtx_insn *.
9874         (dup_block_and_redirect): Likewise for param 3 "before".
9876         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
9877         from rtx to rtx_insn *.
9878         (move_insn_for_shrink_wrap): Likewise.
9879         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
9880         (dup_block_and_redirect): Likewise for param "before" and local
9881         "insn".
9882         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
9883         "end".
9884         (convert_to_simple_return): Likewise for local "start".
9886         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
9887         Strengthen local "insn" from rtx to rtx_insn *, for use when
9888         invoking requires_stack_frame_p.
9890 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9892         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
9893         rtx_insn *.
9894         (speculate_expr): Likewise for locals "orig_insn_rtx",
9895         "spec_insn_rtx".
9896         (eq_transformed_insns): Likewise for locals "i1", "i2".
9897         (check_for_new_jump): Likewise for return type and local "end".
9898         (find_new_jump): Likewise for return type and local "jump".
9899         (sel_split_edge): Likewise for local "jump".
9900         (sel_create_recovery_block): Likewise.
9901         (sel_redirect_edge_and_branch_force): Likewise.
9902         (sel_redirect_edge_and_branch): Likewise.
9904 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9906         * sel-sched.c (substitute_reg_in_expr): Strengthen local
9907         "new_insn" from rtx to rtx_insn *.
9908         (create_insn_rtx_with_rhs): Likewise for return type and for local
9909         "insn_rtx".
9910         (create_insn_rtx_with_lhs): Likewise.
9911         (create_speculation_check): Likewise for local "insn_rtx".
9912         (implicit_clobber_conflict_p): Likewise for local "insn".
9913         (get_expr_cost): Likewise.
9914         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
9915         (move_cond_jump): Likewise for locals "next", "prev", "link",
9916         "head", "from", "to".
9918 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9920         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
9921         "next" from rtx to rtx_insn *.
9922         (find_conditional_protection): Likewise for local "next".
9923         (is_conditionally_protected): Likewise for local "insn1".
9924         (is_pfree): Likewise for locals "insn1", "insn2".
9926 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9928         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
9929         from rtx to rtx_insn *.
9931         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
9932         locals "insn1", "insn2" from rtx to rtx_insn *.
9933         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
9934         locals "insn", "prev", "last_jump", "next_tail".
9935         (schedule_ebb): Likewise for params "head", "tail".
9936         (schedule_ebbs): Likewise for locals "tail", "head".
9938         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
9939         to rtx_insn on "last_insn" in one of the invocations of
9940         schedule_ebb.
9942 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9944         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
9945         "elem", "insn" from rtx to rtx_insn *.
9946         (change_spec_dep_to_hard): Likewise.
9947         (get_back_and_forw_lists): Likewise for local "con".
9948         (sd_add_dep): Likewise for locals "elem", "insn".
9949         (sd_resolve_dep): Likewise for locals "pro", "con".
9950         (sd_unresolve_dep): Likewise.
9951         (sd_delete_dep): Likewise.
9952         (chain_to_prev_insn): Likewise for local "pro".
9953         (find_inc): Likewise for locals "pro", "con".
9955 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9957         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9958         to rtx_insn *.
9959         (reg_set_between_p): Strengthen local "insn" from const_rtx to
9960         const rtx_insn *.
9961         (modified_between_p): Strengthen local "insn" from rtx to
9962         rtx_insn *.
9963         (remove_reg_equal_equiv_notes_for_regno): Likewise.
9964         (keep_with_call_p): Strengthen local "i2" from const_rtx to
9965         const rtx_insn *.
9967 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9969         * resource.c (next_insn_no_annul): Strengthen local "next" from
9970         rtx to rtx_insn *.
9971         (mark_referenced_resources): Likewise for local "insn".
9973 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9975         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9976         to rtx_insn *.
9977         (find_reloads): Likewise for param 1.
9978         (subst_reloads): Likewise for sole param.
9979         (find_equiv_reg): Likwise for param 2.
9980         (regno_clobbered_p): Likwise for param 2.
9981         (reload): Likewise for param 1.
9983         * caller-save.c (save_call_clobbered_regs): Strengthen local
9984         "insn" from rtx to rtx_insn *.
9985         (insert_one_insn): Likewise for local "insn".
9987         * reload.c (this_insn): Likewise for this global.
9988         (find_reloads): Likewise for param "insn".
9989         (find_reloads_toplev): Likewise.
9990         (find_reloads_address): Likewise.
9991         (subst_reg_equivs): Likewise.
9992         (update_auto_inc_notes): Likewise.
9993         (find_reloads_address_1): Likewise.
9994         (find_reloads_subreg_address): Likewise.
9995         (subst_reloads): Likewise.
9996         (find_equiv_reg): Likewise, also for local "p".
9997         (regno_clobbered_p): Likewise for param "insn".
9999         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
10000         array.
10001         (spill_reg_store): Likewise for the elements of this array.
10002         (remove_init_insns): Likewise for local "equiv_insn".
10003         (will_delete_init_insn_p): Likewise for param "insn".
10004         (reload): Likewise for param ""first" and local "insn".
10005         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
10006         rtx_insn *.
10007         (calculate_elim_costs_all_insns): Likewise.
10008         (delete_caller_save_insns): Likewise.
10009         (spill_failure): Likewise for param "insn".
10010         (delete_dead_insn): Likewise.
10011         (set_label_offsets): Likewise.
10012         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
10013         "prev_insn".
10014         (elimination_costs_in_insn): Likewise for param "insn".
10015         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
10016         when referring to an insn.
10017         (set_initial_label_offsets): Likewise.
10018         (set_offsets_for_label): Strengthen param "insn" from rtx to
10019         rtx_insn *.
10020         (init_eliminable_invariants): Likewise for param "first" and local
10021         "insn".
10022         (fixup_eh_region_note): Likewise for param "insn".
10023         (reload_as_needed): Likewise for locals "prev", "insn",
10024         "old_next", "old_prev", "next".
10025         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
10026         "last".
10027         (reload_inheritance_insn): Strengthen elements of this array from
10028         rtx to rtx_insn *.
10029         (failed_reload): Likewise for param "insn".
10030         (choose_reload_regs): Likewise for local "insn".  Replace use of
10031         NULL_RTX with NULL when referring to an insn.
10032         (input_reload_insns): Strengthen elements of this array from rtx
10033         to rtx_insn *.
10034         (other_input_address_reload_insns): Likewise for this global.
10035         (other_input_reload_insns): Likewise for this global.
10036         (input_address_reload_insns): Likwise for the elements of this
10037         array.
10038         (inpaddr_address_reload_insns): Likwise for the elements of this
10039         array.
10040         (output_reload_insns): Likewise for the elements of this array.
10041         (output_address_reload_insns): Likewise for the elements of this
10042         array.
10043         (outaddr_address_reload_insns): Likewise for the elements of this
10044         array.
10045         (operand_reload_insns): Likewise for this global.
10046         (other_operand_reload_insns): Likewise for this global.
10047         (other_output_reload_insns): Likewise for the elements of this
10048         array.
10049         (new_spill_reg_store): Likewise for the elements of this
10050         array.
10051         (emit_input_reload_insns): Likewise for locals "insn", "temp".
10052         Strengthen local "where" from rtx * to rtx_insn **.
10053         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
10054         from rtx to rtx_insn *.
10055         (do_input_reload): Likewise for local "insn".
10056         (do_output_reload): Likewise for local "insn".
10057         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
10058         (emit_insn_if_valid_for_reload): Likewise for return type and local
10059         "last".  Add checked cast to rtx_insn when returning "insn" since
10060         this has been through emit_insn.
10061         (gen_reload): Strengthen return type and locals "last", "insn", "set"
10062         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
10063         returning "insn" since it's been through
10064         emit_insn_if_valid_for_reload at this point.
10065         (delete_output_reload): Strengthen param "insn" and locals
10066         "output_reload_insn", "i2" from rtx to rtx_insn *.
10067         (delete_address_reloads): Likewise for params "dead_insn",
10068         "current_insn" and locals "prev", "next".
10069         (delete_address_reloads_1): Likewise for params "dead_insn",
10070         "current_insn" and locals "prev", "i2".
10071         (inc_for_reload): Likewise for locals "last", "add_insn".
10072         (add_auto_inc_notes): Strengthen param "insn" from rtx to
10073         rtx_insn *.
10075         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
10076         param of this duplicate of the prototype from reload.h
10078 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10080         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
10081         rtx to rtx_insn *.
10082         (regstat_bb_compute_calls_crossed): Likewise.
10084 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10086         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
10087         to rtx_insn *.
10088         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
10089         with an insn.
10090         (regrename_analyze): Strengthen local "insn" from rtx to
10091         rtx_insn *.
10092         (scan_rtx_reg): Likewise for param "insn".
10093         (scan_rtx_address): Likewise.
10094         (scan_rtx): Likewise.
10095         (restore_operands): Likewise.
10096         (record_out_operands): Likewise.
10097         (build_def_use): Likewise for local "insn".  Replace use of
10098         NULL_RTX with NULL when dealing with an insn.
10100 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10102         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
10103         * reginfo.c (reg_scan): Likewise, also for local "insn".
10104         (reg_scan_mark_refs): Likewise for param "insn".
10105         (init_subregs_of_mode): Likewise for local "insn".
10107 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10109         * regcprop.c (struct queued_debug_insn_change): Strengthen field
10110         "insn" from rtx to rtx_insn *.
10111         (replace_oldest_value_reg): Likewise for param "insn".
10112         (replace_oldest_value_addr): Likewise.
10113         (replace_oldest_value_mem): Likewise.
10114         (apply_debug_insn_changes): Likewise for local "last_insn".
10115         (copyprop_hardreg_forward_1): Likewise for local "insn".
10117 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10119         * reg-stack.c (next_flags_user): Strengthen return type and param
10120         "insn" from rtx to rtx_insn *.
10121         (straighten_stack): Likewise for param "insn".
10122         (check_asm_stack_operands): Likewise.
10123         (remove_regno_note): Likewise.
10124         (emit_pop_insn): Likewise for return type, param "insn", local
10125         "pop_insn".
10126         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
10127         "limit" from rtx to rtx_insn *.
10128         (swap_to_top): Likewise for param "insn".
10129         (move_for_stack_reg): Likewise.
10130         (move_nan_for_stack_reg): Likewise.
10131         (swap_rtx_condition): Likewise.
10132         (compare_for_stack_reg): Likewise.
10133         (subst_all_stack_regs_in_debug_insn): Likewise.
10134         (subst_stack_regs_pat): Likewise, and local "insn2".
10135         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
10136         rtx_insn *.
10137         (subst_stack_regs): Likewise.
10138         (change_stack): Likewise.
10139         (convert_regs_1): Likewise for locals "insn", "next".
10141 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10143         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
10144         rtx_insn *.
10145         (combine_set_extension): Likewise for param "curr_insn".
10146         (transform_ifelse): Likewise for param "def_insn".
10147         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
10148         from vec<rtx> * to vec<rtx_insn *> *.
10149         (is_cond_copy_insn): Likewise for param "insn".
10150         (struct ext_state): Strengthen the four vec fields from vec<rtx>
10151         to vec<rtx_insn *>.
10152         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
10153         local "def_insn" from rtx to rtx_insn *.
10154         (get_sub_rtx): Likewise for param "def_insn".
10155         (merge_def_and_ext): Likewise.
10156         (combine_reaching_defs): Likewise.
10157         (add_removable_extension): Likewise for param "insn".
10158         (find_removable_extensions): Likewise for local "insn".
10159         (find_and_remove_re): Likewise for locals "curr_insn" and
10160         "def_insn".  Strengthen locals "reinsn_del_list" and
10161         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
10163 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10165         * recog.c (split_insn): Strengthen param "insn" and locals
10166         "first", "last" from rtx to rtx_insn *.
10167         (split_all_insns): Likewise for locals "insn", "next".
10168         (split_all_insns_noflow): Likewise.
10170 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10172         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
10173         const rtx_insn *.
10174         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10175         (debug_rtx_find): Likewise for param 1 "x".
10177         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
10178         const_rtx to const rtx_insn *.  Likewise for local "insn".
10179         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10180         (debug_rtx_find): Likewise for param 1 "x".
10181         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
10182         from const_rtx to const rtx_insn * within the appropriate cases of
10183         the switch statement.
10185         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
10186         Strengthen local "insns" from rtx to rtx_insn * since this is
10187         passed to a call to debug_rtx_list.
10189 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10191         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
10192         to rtx_insn *.
10194         * function.c (stack_protect_epilogue): Add checked cast to
10195         rtx_insn for now when invoking predict_insn_def.
10197         * predict.c (predict_insn): Strengthen param "insn" from rtx to
10198         rtx_insn *.
10199         (predict_insn_def): Likewise.
10200         (rtl_predict_edge): Likewise for local "last_insn".
10201         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
10202         const rtx_insn *.
10203         (combine_predictions_for_insn): Strengthen param "insn" from rtx
10204         to rtx_insn *.
10205         (bb_estimate_probability_locally): Likewise for local "last_insn".
10206         (expensive_function_p): Likewise for local "insn".
10208         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
10209         local "jmp", since this is used when invoking predict_insn_def.
10211 2014-08-22  Marek Polacek  <polacek@redhat.com>
10213         PR c++/62199
10214         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
10216 2014-08-22  Marek Polacek  <polacek@redhat.com>
10218         PR c/61271
10219         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
10220         a comparison in parens.
10221         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
10222         in parens.
10224 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10226         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
10227         rtx_insn *.
10229         * cprop.c (fis_get_condition): Likewise.
10231         * postreload.c (reload_cse_regs): Likewise for param "first".
10232         (reload_cse_simplify): Likewise for param "insn".
10233         (reload_cse_regs_1): Likewise for local "insn".
10234         (reload_cse_simplify_set): Likewise for param "insn".
10235         (reload_cse_simplify_operands): Likewise.
10236         (struct reg_use): Likewise for field "insn".
10237         (reload_combine_purge_insn_uses): Likewise for param "insn".
10238         (fixup_debug_insns): Likewise for params "from", "to" and local
10239         "insn".
10240         (try_replace_in_use): Likewise for local "use_insn".
10241         (reload_combine_recognize_const_pattern): Likewise for param
10242         "insn" and locals "add_moved_after_insn", "use_insn".
10243         (reload_combine_recognize_pattern): Likewise for param "insn" and
10244         local "prev".
10245         (reload_combine): Likewise for locals "insn", "prev".
10246         (reload_combine_note_use): Likewise for param "insn".
10247         (move2add_use_add2_insn): Likewise.
10248         (move2add_use_add3_insn): Likewise.
10249         (reload_cse_move2add): Likewise, also for local "next".
10250         (move2add_note_store): Likewise for local "insn".
10252 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10254         * postreload-gcse.c (struct occr): Strengthen field "insn" from
10255         rtx to rtx_insn *.
10256         (struct unoccr): Likewise.
10257         (struct modifies_mem): Likewise.
10258         (alloc_mem): Likewise for local "insn".
10259         (insert_expr_in_table): Likewise for param "insn".
10260         (dump_expr_hash_table_entry): Likewise for local "insn".
10261         (oprs_unchanged_p): Likewise for param "insn".
10262         (load_killed_in_block_p): Likewise for local "setter".
10263         (record_last_reg_set_info): Likewise for param "insn".
10264         (record_last_reg_set_info_regno): Likewise.
10265         (record_last_mem_set_info): Likewise.
10266         (record_last_set_info): Likewise for local "last_set_insn".
10267         (record_opr_changes): Likewise for param "insn".
10268         (hash_scan_set): Likewise.
10269         (compute_hash_table): Likewise for local "insn".
10270         (get_avail_load_store_reg): Likewise for param "insn".
10271         (eliminate_partially_redundant_load): Likewise, also for locals
10272         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
10273         RTX for insns.
10274         (eliminate_partially_redundant_loads): Likewise for local "insn".
10276 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10278         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
10279         rtx to rtx_insn *.
10280         (expand_binop): Likewise for locals "entry_last", "last", "insns"
10281         (expand_twoval_unop): Likewise for locals entry_last", "last".
10282         (expand_twoval_binop): Likewise.
10283         (expand_twoval_binop_libfunc): Likewise for local "insns".
10284         (widen_leading): Likewise for local "last".
10285         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
10286         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
10287         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
10288         (expand_parity): Likewise for locals "last" and "seq".
10289         (expand_ffs): Likewise for local "seq".  Strengthen local
10290         "nonzero_label" from rtx to rtx_code_label *.
10291         (expand_absneg_bit): Strengthen local "insns" from rtx to
10292         rtx_insn *.
10293         (expand_unop_direct): Likewise for local "last".
10294         (expand_unop): Likewise for locals "last", "insns".
10295         (expand_abs_nojump): Likewise for local "last".
10296         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
10297         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
10298         rtx_insn *.
10299         (expand_copysign_absneg): Strengthen local "label" from rtx to
10300         rtx_code_label *.
10301         (expand_copysign_bit): Strengthen local "insns" from rtx to
10302         rtx_insn *.
10303         (struct no_conflict_data): Likewise for fields "first", "insn".
10304         (emit_libcall_block_1): Likewise for param "insns" and locals
10305         "next", "last", "insn".
10306         (emit_libcall_block): For now, add a checked cast to rtx_insn *
10307         on "insns" when invoking emit_libcall_block_1.  Ultimately we
10308         want to strengthen insns itself.
10309         (prepare_cmp_insn): Strengthen local "last" from rtx to
10310         rtx_insn *.
10311         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
10312         (prepare_float_lib_cmp): Likewise for local "insns".
10313         (emit_conditional_move): Likewise for local "last".
10314         (emit_conditional_add): Likewise.
10315         (have_sub2_insn): Likewise for local "seq".
10316         (expand_float): Likewise for local "insns".  Strengthen locals
10317         "label", "neglabel" from rtx to rtx_code_label *.
10318         (expand_fix): Likewise for locals "last", "insn", "insns" (to
10319         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
10320         (expand_fixed_convert): Likewise for local "insns" (to
10321         rtx_insn *).
10322         (expand_sfix_optab): Likewise for local "last".
10323         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
10324         to rtx_code_label *.
10325         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
10326         from rtx to rtx_insn *.
10327         (expand_atomic_fetch_op): Likewise for local "insn".
10328         (maybe_legitimize_operand_same_code): Likewise for local "last".
10329         (maybe_legitimize_operands): Likewise.
10331 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10333         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
10334         "insn" from rtx to rtx_insn *.
10335         (ps_rtl_insn): Likewise for return type.
10336         (doloop_register_get): Likewise for params "head", "tail" and
10337         locals "insn", "first_insn_not_to_check".
10338         (schedule_reg_move): Likewise for local "this_insn".
10339         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
10340         of gen_move_insn for now.
10341         (reset_sched_times): Strengthen local "insn" from rtx to
10342         rtx_insn *.
10343         (permute_partial_schedule): Likewise.
10344         (duplicate_insns_of_cycles): Likewise for local "u_insn".
10345         (dump_insn_location): Likewise for param "insn".
10346         (loop_canon_p): Likewise for local "insn".
10347         (sms_schedule): Likewise.
10348         (print_partial_schedule): Likewise.
10349         (ps_has_conflicts): Likewise.
10351 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10353         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
10354         "tailp" from rtx * to rtx_insn **.
10356         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
10357         from rtx to rtx_insn *.
10358         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
10359         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
10360         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
10361         rtx to rtx_insn *.
10362         * modulo-sched.c (const_iteration_count): Strengthen return type
10363         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
10364         use of NULL_RTX with NULL when working with insns.
10365         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
10366         to rtx_insn *.
10367         (sms_schedule): Likewise.
10368         * sched-rgn.c (init_ready_list): Likewise, also for locals
10369         "src_head" and "src_next_tail".
10370         (compute_block_dependences): Likewise.
10371         (free_block_dependencies): Likewise.
10372         (debug_rgn_dependencies): Likewise.
10373         (free_rgn_deps): Likewise.
10374         (compute_priorities): Likewise.
10375         (schedule_region): Likewise.
10376         * sel-sched.c (find_ebb_boundaries): Likewise.
10378         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
10379         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
10381 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10383         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
10384         from rtx to rtx_insn *.
10385         (new_seginfo): Likewise for param "insn".
10386         (create_pre_exit): Likewise for locals "last_insn",
10387         "before_return_copy", "return_copy".
10388         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
10389         "mode_set".
10391 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10393         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
10394         from rtx to rtx_insn *.
10395         (lra_push_insn): Likewise for 1st param.
10396         (lra_push_insn_and_update_insn_regno_info): Likewise.
10397         (lra_pop_insn): Likewise for return type.
10398         (lra_invalidate_insn_data): Likewise for 1st param.
10399         (lra_set_insn_deleted): Likewise.
10400         (lra_delete_dead_insn): Likewise.
10401         (lra_process_new_insns): Likewise for first 3 params.
10402         (lra_set_insn_recog_data): Likewise for 1st param.
10403         (lra_update_insn_recog_data): Likewise.
10404         (lra_set_used_insn_alternative): Likewise.
10405         (lra_invalidate_insn_regno_info): Likewise.
10406         (lra_update_insn_regno_info): Likewise.
10407         (lra_former_scratch_operand_p): Likewise.
10408         (lra_eliminate_regs_1): Likewise.
10409         (lra_get_insn_recog_data): Likewise.
10411         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
10412         rtx to rtx_insn *.
10414         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
10415         "mv1" and "mv2".
10416         (substitute_within_insn): New.
10417         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
10418         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
10419         Replace call to "substitute" with call to substitute_within_insn.
10421         * lra-constraints.c (curr_insn): Strengthen from rtx to
10422         rtx_insn *.
10423         (get_equiv_with_elimination): Likewise for param "insn".
10424         (match_reload): Strengthen params "before" and "after" from rtx *
10425         to rtx_insn **.
10426         (emit_spill_move): Likewise for return type.  Add a checked cast
10427         to rtx_insn * on result of gen_move_insn for now.
10428         (check_and_process_move): Likewise for local "before".  Replace
10429         NULL_RTX with NULL when referring to insns.
10430         (process_addr_reg): Strengthen params "before" and "after" from
10431         rtx * to rtx_insn **.
10432         (insert_move_for_subreg): Likewise.
10433         (simplify_operand_subreg): Strengthen locals "before" and "after"
10434         from rtx to rtx_insn *.
10435         (process_address_1): Strengthen params "before" and "after" from
10436         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
10437         rtx to rtx_insn *.
10438         (process_address): Strengthen params "before" and "after" from
10439         rtx * to rtx_insn **.
10440         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
10441         (curr_insn_transform): Strengthen locals "before" and "after"
10442         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
10443         to insns.
10444         (loc_equivalence_callback): Update cast of "data", changing
10445         resulting type from rtx to rtx_insn *.
10446         (substitute_pseudo_within_insn): New.
10447         (inherit_reload_reg): Strengthen param "insn" from rtx to
10448         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
10449         NULL when referring to insns.  Add a checked cast to rtx_insn *
10450         when using usage_insn to invoke lra_update_insn_regno_info.
10451         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
10452         likewise for locals "restore", "save".  Add checked casts to
10453         rtx_insn * when using usage_insn to invoke
10454         lra_update_insn_regno_info and lra_process_new_insns.  Replace
10455         NULL_RTX with NULL when referring to insns.
10456         (split_if_necessary): Strengthen param "insn" from rtx to
10457         rtx_insn *.
10458         (update_ebb_live_info): Likewise for params "head", "tail" and local
10459         "prev_insn".
10460         (get_last_insertion_point): Likewise for return type and local "insn".
10461         (get_live_on_other_edges): Likewise for local "last".
10462         (inherit_in_ebb): Likewise for params "head", "tail" and locals
10463         "prev_insn", "next_insn", "restore".
10464         (remove_inheritance_pseudos): Likewise for local "prev_insn".
10465         (undo_optional_reloads): Likewise for local "insn".
10467         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
10468         "insn".
10469         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
10470         insns.
10471         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
10472         rtx_insn *.
10473         (spill_pseudos): Likewise for local "insn".
10474         (init_elimination): Likewise.
10475         (process_insn_for_elimination): Likewise for param "insn".
10477         * lra-lives.c (curr_insn): Likewise.;
10479         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
10480         (remove_pseudos): Likewise for param "insn".
10481         (spill_pseudos): Likewise for local "insn".
10482         (lra_final_code_change): Likewise for locals "insn", "curr".
10484         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
10485         (lra_set_insn_deleted): Likewise.
10486         (lra_delete_dead_insn): Likewise, and for local "prev".
10487         (new_insn_reg): Likewise for param "insn".
10488         (lra_set_insn_recog_data): Likewise.
10489         (lra_update_insn_recog_data): Likewise.
10490         (lra_set_used_insn_alternative): Likewise.
10491         (get_insn_freq): Likewise.
10492         (invalidate_insn_data_regno_info): Likewise.
10493         (lra_invalidate_insn_regno_info): Likewise.
10494         (lra_update_insn_regno_info): Likewise.
10495         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
10496         vec<rtx_insn *>.
10497         (lra_push_insn_1): Strengthen param "insn" from rtx to
10498         rtx_insn *.
10499         (lra_push_insn): Likewise.
10500         (lra_push_insn_and_update_insn_regno_info): Likewise.
10501         (lra_pop_insn): Likewise for return type and local "insn".
10502         (push_insns): Likewise for params "from", "to", and local "insn".
10503         (setup_sp_offset): Likewise for params "from", "last" and locals
10504         "before", "insn".
10505         (lra_process_new_insns): Likewise for params "insn", "before",
10506         "after" and local "last".
10507         (struct sloc): Likewise for field "insn".
10508         (lra_former_scratch_operand_p): Likewise for param "insn".
10509         (remove_scratches): Likewise for locals "insn", "last".
10510         (check_rtl): Likewise for local "insn".
10511         (add_auto_inc_notes): Likewise for param "insn".
10512         (update_inc_notes): Likewise for local "insn".
10513         (lra): Replace NULL_RTX with NULL when referring to insn.
10515 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10517         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
10518         to rtx_insn *.
10519         (resolve_reg_notes): Likewise.
10520         (resolve_simple_move): Likewise for return type, param "insn", and
10521         locals "insns", "minsn".
10522         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
10523         (resolve_use): Likewise.
10524         (resolve_debug): Likewise.
10525         (find_decomposable_shift_zext): Likewise.
10526         (resolve_shift_zext): Likewise for return type, param "insn", and
10527         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
10528         (decompose_multiword_subregs): Likewise for local "insn",
10529         "orig_insn", "decomposed_shift", "end".
10531 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10533         * basic-block.h (basic_block split_edge_and_insert): Strengthen
10534         param "insns" from rtx to rtx_insn *.
10536         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
10537         rtx to rtx_insn *.
10538         (struct iv_to_split): Likewise.
10539         (loop_exit_at_end_p): Likewise for local "insn".
10540         (split_edge_and_insert): Likewise for param "insns".
10541         (compare_and_jump_seq): Likewise for return type, param "cinsn",
10542         and locals "seq", "jump".
10543         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
10544         "branch_code"; update invocations of compare_and_jump_seq to
10545         eliminate NULL_RTX in favor of NULL.
10546         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
10547         rtx to rtx_insn *.
10548         (reset_debug_uses_in_loop): Likewise.
10549         (analyze_insn_to_expand_var): Likewise for param "insn".
10550         (analyze_iv_to_split_insn): Likewise.
10551         (analyze_insns_in_loop): Likewise for local "insn".
10552         (insert_base_initialization): Likewise for param
10553         "insn" and local "seq".
10554         (split_iv): Likewise for param "insn" and local "seq".
10555         (expand_var_during_unrolling): Likewise for param "insn".
10556         (insert_var_expansion_initialization): Likewise for local "seq".
10557         (combine_var_copies_in_loop_exit): Likewise.
10558         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
10559         "insn".
10560         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
10561         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
10562         "next".
10564 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10566         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
10567         rtx_insn *.
10568         (iv_analyze_result): Likewise.
10569         (iv_analyze_expr): Likewise.
10570         (biv_p): Likewise.
10572         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
10573         local "def_insn" from rtx to rtx_insn *.
10574         (get_biv_step_1): Likewise for local "insn".
10575         (iv_analyze_expr): Likewise for param "insn".
10576         (iv_analyze_def): Likewise for local "insn".
10577         (iv_analyze_op): Likewise for param "insn".
10578         (iv_analyze): Likewise.
10579         (iv_analyze_result): Likewise.
10580         (biv_p): Likewise.
10581         (suitable_set_for_replacement): Likewise.
10582         (simplify_using_initial_values): Likewise for local "insn".
10583         (iv_number_of_iterations): Likewise for param "insn".
10584         (check_simple_exit): Add checked cast to rtx_insn when invoking
10585         iv_number_of_iterations for now (until get_condition is
10586         strengthened).
10588         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
10589         "insn" from rtx to rtx_insn *.
10590         (analyze_insns_in_loop): Likewise for local "insn".
10592 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10594         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
10595         to rtx_insn *.
10596         (struct invariant): Likewise.
10597         (hash_invariant_expr_1): Likewise for param "insn".
10598         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
10599         (find_exits): Likewise for local "insn".
10600         (create_new_invariant): Likewise for param "insn".
10601         (check_dependencies): Likewise.
10602         (find_invariant_insn): Likewise.
10603         (record_uses): Likewise.
10604         (find_invariants_insn): Likewise.
10605         (find_invariants_bb): Likewise for local "insn".
10606         (get_pressure_class_and_nregs): Likewise for param "insn".
10607         (calculate_loop_reg_pressure): Likewise for local "insn".
10609 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10611         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
10612         to rtx_insn *.
10613         (add_test): Likewise for locals "seq", "jump".
10614         (doloop_modify): Likewise for locals "sequence", "jump_insn".
10616 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10618         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
10619         rtx_insn *.
10620         (rebuild_jump_labels_chain): Likewise for param "chain".
10622         * cfgexpand.c (pass_expand::execute): Add checked cast to
10623         rtx_insn * when calling rebuild_jump_labels_chain in region where
10624         we know e->insns.r is non-NULL.
10626         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
10627         rtx_insn *.
10628         (rebuild_jump_labels): Likewise.
10629         (rebuild_jump_labels_chain): Likewise for param "chain".
10630         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
10631         (init_label_info): Likewise for param "f".
10632         (maybe_propagate_label_ref): Likewise for params "jump_insn",
10633         "prev_nonjump_insn".
10634         (mark_all_labels): Likewise for param "f" and locals "insn",
10635         "prev_nonjump_insn".
10637 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10639         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
10640         from rtx to rtx_insn *insn.
10641         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
10642         (ira_add_allocno_copy): Likewise.
10643         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
10644         rtx to rtx_insn *.
10645         (ira_create_copy): Likewise.
10646         (ira_add_allocno_copy): Likewise.
10647         (create_bb_allocnos): Likewise for local "insn".
10648         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
10649         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
10650         process_regs_for_copy for rtx_insn * param.
10651         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
10652         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
10653         process_regs_for_copy for rtx_insn * param.
10654         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
10655         * ira-costs.c (record_reg_classes): Likewise for param "insn".
10656         (record_operand_costs): Likewise.
10657         (scan_one_insn): Likewise for return type, and for param "insn".
10658         (process_bb_for_costs): Likewise for local "insn".
10659         (process_bb_node_for_hard_reg_moves): Likewise.
10660         * ira-emit.c (struct move): Likewise for field "insn".
10661         (create_move): Eliminate use of NULL_RTX when dealing with an
10662         rtx_insn *.
10663         (emit_move_list): Strengthen return type and locals "result",
10664         "insn" from rtx to rtx_insn *insn.
10665         (emit_moves): Likewise for locals "insns", "tmp".
10666         (ira_emit): Likewise for local "insn".
10667         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
10668         "insn".
10669         (find_call_crossed_cheap_reg): Likewise.
10670         (process_bb_node_lives): Likewise for local "insn".
10671         * ira.c (decrease_live_ranges_number): Likewise.
10672         (compute_regs_asm_clobbered): Likewise.
10673         (build_insn_chain): Likewise.
10674         (find_moveable_pseudos): Likewise, also locals "def_insn",
10675         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
10676         to rtx_insn **.  Add a checked cast when assigning from
10677         "closest_use" into closest_uses array in a region where we know
10678         it's a non-NULL insn.
10679         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
10680         to rtx_insn *.
10681         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
10682         "last_interesting_insn", "uin".
10683         (move_unallocated_pseudos): Likewise for locals "def_insn",
10684         "move_insn", "newinsn".
10686 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10688         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
10689         Strengthen locals "done_label", "do_error" from rtx to
10690         rtx_code_label *.
10691         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
10692         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
10693         rtx_code_label *.
10694         (ubsan_expand_si_overflow_neg_check): Likewise for locals
10695         "done_label", "do_error" to rtx_code_label * and local  "last" to
10696         rtx_insn *.
10697         (ubsan_expand_si_overflow_mul_check): Likewise for locals
10698         "done_label", "do_error", "large_op0", "small_op0_large_op1",
10699         "one_small_one_large", "both_ops_large", "after_hipart_neg",
10700         "after_lopart_neg", "do_overflow", "hipart_different"  to
10701         rtx_code_label * and local  "last" to rtx_insn *.
10703 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10705         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
10706         "insn" and "move_insn" from rtx to rtx_insn *.
10708 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10710         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
10711         rtx_insn *.
10712         (cheap_bb_rtx_cost_p): Likewise.
10713         (first_active_insn): Likewise for return type and local "insn".
10714         (last_active_insn):  Likewise for return type and locals "insn",
10715         "head".
10716         (struct noce_if_info): Likewise for fields "jump", "insn_a",
10717         "insn_b".
10718         (end_ifcvt_sequence): Likewise for return type and locals "insn",
10719         "seq".
10720         (noce_try_move): Likewise for local "seq".
10721         (noce_try_store_flag): Likewise.
10722         (noce_try_store_flag_constants): Likewise.
10723         (noce_try_addcc): Likewise.
10724         (noce_try_store_flag_mask): Likewise.
10725         (noce_try_cmove): Likewise.
10726         (noce_try_minmax): Likewise.
10727         (noce_try_abs): Likewise.
10728         (noce_try_sign_mask): Likewise.
10729         (noce_try_bitop): Likewise.
10730         (noce_can_store_speculate_p): Likewise for local "insn".
10731         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
10732         seq".
10733         (check_cond_move_block): Likewise for local "insn".
10734         (cond_move_convert_if_block): Likewise.
10735         (cond_move_process_if_block): Likewise for locals "seq",
10736         "loc_insn".
10737         (noce_find_if_block): Likewise for local "jump".
10738         (merge_if_block): Likewise for local "last".
10739         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
10740         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
10741         (block_has_only_trap): Likewise for return type and local "trap".
10742         (find_if_case_1): Likewise for local "jump".
10743         (dead_or_predicable): Likewise for locals "head", "end", "jump",
10744         "insn".
10746 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10748         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
10749         "last_insn", "loop_end" from rtx to rtx_insn *.
10751         * hw-doloop.c (scan_loop): Likewise for local "insn".
10752         (discover_loop): Likewise for param "tail_insn".
10753         (discover_loops): Likewise for local "tail".
10755         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
10756         cast to rtx_insn * when assigning from an rtx local to a
10757         hwloop_info's "last_insn" field.
10759 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10761         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
10762         (add_delay_dependencies): Strengthen local "pro" from rtx to
10763         rtx_insn *.
10764         (recompute_todo_spec): Likewise.
10765         (dep_cost_1): Likewise for locals "insn", "used".
10766         (schedule_insn): Likewise for local "dbg".
10767         (schedule_insn): Likewise for locals "pro", "next".
10768         (unschedule_insns_until): Likewise for local "con".
10769         (restore_pattern): Likewise for local "next".
10770         (estimate_insn_tick): Likewise for local "pro".
10771         (resolve_dependencies): Likewise for local "next".
10772         (fix_inter_tick): Likewise.
10773         (fix_tick_ready): Likewise for local "pro".
10774         (add_to_speculative_block): Likewise for locals "check", "twin",
10775         "pro".
10776         (sched_extend_bb): Likewise for locals "end", "insn".
10777         (init_before_recovery): Likewise for local "x".
10778         (sched_create_recovery_block): Likewise for local "barrier".
10779         (create_check_block_twin): Likewise for local "pro".
10780         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
10781         "consumer".
10782         (unlink_bb_notes): Update for change to type of bb_header.
10783         Strengthen locals "prev", "label", "note", "next" from rtx to
10784         rtx_insn *.
10785         (clear_priorities): Likewise for local "pro".
10787 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10789         * gcse.c (struct occr): Strengthen field "insn" from rtx to
10790         rtx_insn *.
10791         (test_insn): Likewise for this global.
10792         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
10793         const rtx_insn *.
10794         (oprs_anticipatable_p): Likewise.
10795         (oprs_available_p): Likewise.
10796         (insert_expr_in_table): Strengthen param "insn" from  rtx to
10797         rtx_insn *.
10798         (hash_scan_set): Likewise.
10799         (hash_scan_clobber): Likewise.
10800         (hash_scan_call): Likewise.
10801         (hash_scan_insn): Likewise.
10802         (compute_hash_table_work): Likewise for local "insn".
10803         (process_insert_insn): Likewise for return type and local "pat".
10804         (insert_insn_end_basic_block): Likewise for locals "new_insn",
10805         "pat", "pat_end", "maybe_cc0_setter".
10806         (pre_edge_insert): Likewise for local "insn".
10807         (pre_insert_copy_insn): Likewise for param "insn".
10808         (pre_insert_copies): Likewise for local "insn".
10809         (struct set_data): Likewise for field "insn".
10810         (single_set_gcse): Likewise for param "insn".
10811         (gcse_emit_move_after): Likewise.
10812         (pre_delete): Likewise for local "insn".
10813         (update_bb_reg_pressure): Likewise for param "from" and local
10814         "insn".
10815         (should_hoist_expr_to_dom): Likewise for param "from".
10816         (hoist_code): Likewise for local "insn".
10817         (get_pressure_class_and_nregs): Likewise for param "insn".
10818         (calculate_bb_reg_pressure): Likewise for local "insn".
10819         (compute_ld_motion_mems): Likewise.
10821 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10823         * genpeep.c (main): Rename param back from "uncast_ins1" to
10824         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
10825         checked cast.
10827         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
10829 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10831         PR target/62195
10832         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
10833         documentation to state it is only for VSX operations.
10835         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
10836         constraint only active if VSX.
10838         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
10839         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
10840         (lfiwzx): Likewise.
10842 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10844         * fwprop.c (single_def_use_dom_walker::before_dom_children):
10845         Strengthen local "insn" from rtx to rtx_insn *.
10846         (use_killed_between): Likewise for param "target_insn".
10847         (all_uses_available_at): Likewise for param "target_insn" and
10848         local "next".
10849         (update_df_init): Likewise for params "def_insn", "insn".
10850         (update_df): Likewise for param "insn".
10851         (try_fwprop_subst): Likewise for param "def_insn" and local
10852         "insn".
10853         (free_load_extend): Likewise for param "insn".
10854         (forward_propagate_subreg): Likewise for param "def_insn" and
10855         local "use_insn".
10856         (forward_propagate_asm): Likewise for param "def_insn" and local
10857         "use_insn".
10858         (forward_propagate_and_simplify): Likewise for param "def_insn"
10859         and local "use_insn".
10860         (forward_propagate_into): Likewise for locals "def_insn" and
10861         "use_insn".
10863 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10865         * function.c (emit_initial_value_sets): Strengthen local "seq"
10866         from rtx to rtx_insn *.
10867         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
10868         local "seq".
10869         (instantiate_virtual_regs): Likewise for local "insn".
10870         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
10871         (reorder_blocks_1): Likewise for param "insns" and local "insn".
10872         (expand_function_end): Likewise for locals "insn" and "seq".
10873         (epilogue_done): Likewise for local "insn".
10874         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
10875         "last", "trial".
10876         (reposition_prologue_and_epilogue_notes): Likewise for locals
10877         "insn", "last", "note", "first".
10878         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
10879         (pass_match_asm_constraints::execute): Likewise for local "insn".
10881 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10883         * output.h (final_scan_insn): Strengthen return type from rtx to
10884         rtx_insn *.
10885         (final_forward_branch_p): Likewise for param.
10886         (current_output_insn): Likewise for this global.
10888         * final.c (rtx debug_insn): Likewise for this variable.
10889         (current_output_insn): Likewise.
10890         (get_attr_length_1): Rename param "insn" to "uncast_insn",
10891         adding "insn" back in as an rtx_insn * with a checked cast, so
10892         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
10893         first param.
10894         (compute_alignments): Strengthen local "label" from rtx to
10895         rtx_insn *.
10896         (shorten_branches): Rename param from "first" to "uncast_first",
10897         introducing a new local rtx_insn * "first" using a checked cast to
10898         effectively strengthen "first" from rtx to rtx_insn * without
10899         affecting the type signature.  Strengthen locals "insn", "seq",
10900         "next", "label" from rtx to rtx_insn *.
10901         (change_scope): Strengthen param "orig_insn" and local "insn" from
10902         rtx to rtx_insn *.
10903         (final_start_function): Rename param from "first" to "uncast_first",
10904         introducing a new local rtx_insn * "first" using a checked cast to
10905         effectively strengthen "first" from rtx to rtx_insn * without
10906         affecting the type signature.  Strengthen local "insn" from rtx to
10907         rtx_insn *.
10908         (dump_basic_block_info): Strengthen param "insn" from rtx to
10909         rtx_insn *.
10910         (final): Rename param from "first" to "uncast_first",
10911         introducing a new local rtx_insn * "first" using a checked cast to
10912         effectively strengthen "first" from rtx to rtx_insn * without
10913         affecting the type signature.  Strengthen locals "insn", "next"
10914         from rtx to rtx_insn *.
10915         (output_alternate_entry_point): Strengthen param "insn" from rtx to
10916         rtx_insn *.
10917         (call_from_call_insn): Strengthen param "insn" from rtx to
10918         rtx_call_insn *.
10919         (final_scan_insn): Rename param from "insn" to "uncast_insn",
10920         introducing a new local rtx_insn * "insn" using a checked cast to
10921         effectively strengthen "insn" from rtx to rtx_insn * without
10922         affecting the type signature.  Strengthen return type and locals
10923         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
10924         now-redundant checked cast to rtx_insn * from both invocations of
10925         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
10926         introducing a local "call_insn" for use when invoking
10927         call_from_call_insn.
10928         (notice_source_line): Strengthen param "insn" from rtx to
10929         rtx_insn *.
10930         (leaf_function_p): Likewise for local "insn".
10931         (final_forward_branch_p): Likewise.
10932         (leaf_renumber_regs): Likewise for param "first".
10933         (rest_of_clean_state): Likewise for locals "insn" and "next".
10934         (self_recursive_call_p): Likewise for param "insn".
10935         (collect_fn_hard_reg_usage): Likewise for local "insn".
10936         (get_call_fndecl): Likewise for param "insn".
10937         (get_call_cgraph_rtl_info): Likewise.
10938         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
10939         introducing a new local rtx_insn * "insn" using a checked cast to
10940         effectively strengthen "insn" from rtx to rtx_insn * without
10941         affecting the type signature.
10943         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
10944         cast when assigning from param "insn" to current_output_insn.
10945         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
10946         so that we can assign it back to current_output_insn.
10948 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10950         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
10951         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
10952         atmxt540s and atmxt540sreva devices.
10953         * config/avr/avr-tables.opt: Regenerate.
10954         * config/avr/t-multilib: Regenerate.
10955         * doc/avr-mmcu.texi: Regenerate.
10957 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10959         * expr.c (convert_move): Strengthen local "insns" from rtx to
10960         rtx_insn *.
10961         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10962         "top_label" from rtx to rtx_code_label *.
10963         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10964         rtx_insn *.
10965         (emit_single_push_insn): Likewise for locals "prev", "last".
10966         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10967         to rtx_code_label *.
10968         (store_constructor): Likewise for locals "loop_start", "loop_end".
10969         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10970         rtx_insn *.
10971         (expand_expr_real_2): Likewise.
10972         (expand_expr_real_1): Strengthen local "label" from rtx to
10973         rtx_code_label *.
10975 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10977         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10978         from rtx to rtx_insn *.
10979         (store_bit_field_1): Likewise.
10980         (extract_bit_field_1): Likewise.
10981         (expand_mult_const): Likewise for local "insns".
10982         (expmed_mult_highpart): Strengthen local "label" from rtx to
10983         rtx_code_label *.
10984         (expand_smod_pow2): Likewise.
10985         (expand_sdiv_pow2): Likewise.
10986         (expand_divmod): Strengthen locals "last", "insn" from rtx to
10987         rtx_insn *.  Strengthen locals "label", "label1", "label2",
10988         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10989         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10990         (emit_store_flag): Likewise.
10991         (emit_store_flag_force): Strengthen local "label" from rtx to
10992         rtx_code_label *.
10993         (do_cmp_and_jump): Likewise for param "label".
10995 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10997         * explow.c (force_reg): Strengthen local "insn" from rtx to
10998         rtx_insn *.
10999         (adjust_stack_1): Likewise.
11000         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
11001         "final_label", "available_label", "space_available" from rtx to
11002         rtx_code_label *.
11003         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
11004         (anti_adjust_stack_and_probe): Likewise.
11006 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11008         * except.h (sjlj_emit_function_exit_after): Strengthen param
11009         "after" from rtx to rtx_insn *.  This is only called with
11010         result of get_last_insn (in function.c) so type-change should be
11011         self-contained.
11013         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
11014         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
11015         to rtx_insn *.  These fields are only used from except.c so this
11016         type-change should be self-contained to this patch.
11018         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
11019         local "last" from rtx to rtx_insn *.
11020         (dw2_build_landing_pads): Likewise for local "seq".
11021         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
11022         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
11023         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
11024         rtx to rtx_insn *.
11025         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
11026         to rtx_insn *.
11027         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
11028         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
11029         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
11030         referring to an insn.  Strengthen local "dispatch_label" from
11031         rtx to rtx_code_label *.
11032         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
11033         rtx_insn *.
11034         (expand_eh_return): Strengthen local "around_label" from
11035         rtx to rtx_code_label *.
11036         (convert_to_eh_region_ranges): Strengthen locals "iter",
11037         "last_action_insn", "first_no_action_insn",
11038         "first_no_action_insn_before_switch",
11039         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
11041 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11043         * dwarf2out.c (last_var_location_insn): Strengthen this variable
11044         from rtx to rtx_insn *.
11045         (cached_next_real_insn): Likewise.
11046         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
11047         working with insns.
11048         (dwarf2out_var_location): Strengthen locals "next_real",
11049         "next_note", "expected_next_loc_note", "last_start", "insn" from
11050         rtx to rtx_insn *.
11052 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11054         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
11055         from rtx to rtx_insn *.
11056         (create_pseudo_cfg): Likewise for local "insn".
11058 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11060         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
11061         from rtx to rtx_insn *.
11062         (df_bb_regno_last_def_find): Likewise.
11064         * df-problems.c (df_rd_bb_local_compute): Likewise.
11065         (df_lr_bb_local_compute): Likewise.
11066         (df_live_bb_local_compute): Likewise.
11067         (df_chain_remove_problem): Likewise.
11068         (df_chain_create_bb): Likewise.
11069         (df_word_lr_bb_local_compute): Likewise.
11070         (df_remove_dead_eq_notes): Likewise for param "insn".
11071         (df_note_bb_compute): Likewise for local "insn".
11072         (simulate_backwards_to_point): Likewise.
11073         (df_md_bb_local_compute): Likewise.
11075         * df-scan.c (df_scan_free_bb_info): Likewise.
11076         (df_scan_start_dump): Likewise.
11077         (df_scan_start_block): Likewise.
11078         (df_install_ref_incremental): Likewise for local "insn".
11079         (df_insn_rescan_all): Likewise.
11080         (df_reorganize_refs_by_reg_by_insn): Likewise.
11081         (df_reorganize_refs_by_insn_bb): Likewise.
11082         (df_recompute_luids): Likewise.
11083         (df_bb_refs_record): Likewise.
11084         (df_update_entry_exit_and_calls): Likewise.
11085         (df_bb_verify): Likewise.
11087 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11089         * ddg.h (struct ddg_node): Strengthen fields "insn" and
11090         "first_note" from rtx to rtx_insn *.
11091         (get_node_of_insn): Likewise for param 2 "insn".
11092         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11094         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
11095         rtx_insn *.
11096         (mem_write_insn_p): Likewise.
11097         (mem_access_insn_p): Likewise.
11098         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11099         (def_has_ccmode_p): Likewise for param "insn".
11100         (add_cross_iteration_register_deps): Likewise for locals
11101         "def_insn" and "use_insn".
11102         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
11103         (build_intra_loop_deps): Likewise for local "src_insn".
11104         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
11105         to rtx_insn *.
11106         (get_node_of_insn): Likewise for param "insn".
11108 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11110         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
11111         (deletable_insn_p): Strengthen param "insn" from rtx to
11112         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
11113         find_call_stack_args, since this is guarded by CALL_P (insn).
11114         (marked_insn_p): Strengthen param "insn" from rtx to
11115         rtx_insn *.
11116         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
11117         invoking find_call_stack_args, since this is guarded by
11118         CALL_P (insn).
11119         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
11120         rtx_insn *; we know this is an insn since this was called by
11121         mark_nonreg_stores.
11122         (mark_nonreg_stores_2): Likewise.
11123         (mark_nonreg_stores): Strengthen param "insn" from rtx to
11124         rtx_insn *.
11125         (find_call_stack_args): Strengthen param "call_insn" from rtx to
11126         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
11127         to rtx_insn *.
11128         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
11129         from rtx to rtx_insn *.
11130         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
11131         "next", "ref_insn".
11132         (delete_unmarked_insns): Likewise for locals "insn", "next".
11133         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
11134         (mark_reg_dependencies): Likewise for param "insn".
11135         (rest_of_handle_ud_dce): Likewise for local "insn".
11136         (word_dce_process_block): Likewise.
11137         (dce_process_block): Likewise.
11139 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11141         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
11142         from rtx to rtx_insn *.
11143         (struct change_cc_mode_args): Likewise for field "insn".
11144         (this_insn): Strengthen from rtx to rtx_insn *.
11145         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
11146         with insn.
11147         (validate_canon_reg): Strengthen param "insn" from rtx to
11148         rtx_insn *.
11149         (canon_reg): Likewise.
11150         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
11151         dealing with insn.
11152         (record_jump_equiv): Strengthen param "insn" from rtx to
11153         rtx_insn *.
11154         (try_back_substitute_reg): Likewise, also for locals "prev",
11155         "bb_head".
11156         (find_sets_in_insn): Likewise for param "insn".
11157         (canonicalize_insn): Likewise.
11158         (cse_insn): Likewise.  Add a checked cast.
11159         (invalidate_from_clobbers): Likewise for param "insn".
11160         (invalidate_from_sets_and_clobbers): Likewise.
11161         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
11162         dealing with insn.
11163         (cse_prescan_path): Strengthen local "insn" from rtx to
11164         rtx_insn *.
11165         (cse_extended_basic_block): Likewise for locals "insn" and
11166         "prev_insn".
11167         (cse_main): Likewise for param "f".
11168         (check_for_label_ref): Likewise for local "insn".
11169         (set_live_p): Likewise for second param ("insn").
11170         (insn_live_p): Likewise for first param ("insn") and for local
11171         "next".
11172         (cse_change_cc_mode_insn): Likewise for first param "insn".
11173         (cse_change_cc_mode_insns): Likewise for first and second params
11174         "start" and "end".
11175         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
11176         and "end".
11177         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
11178         "cc_src_insn".
11180 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11181             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11182             Anna Tikhonova  <anna.tikhonova@intel.com>
11183             Ilya Tocar  <ilya.tocar@intel.com>
11184             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11185             Ilya Verbin  <ilya.verbin@intel.com>
11186             Kirill Yukhin  <kirill.yukhin@intel.com>
11187             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11189         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
11190         New.
11191         * config/i386/sse.md
11192         (define_mode_iterator VI248_AVX2): Delete.
11193         (define_mode_iterator VI2_AVX2_AVX512BW): New.
11194         (define_mode_iterator VI48_AVX2): Ditto.
11195         (define_insn <shift_insn><mode>3): Delete.
11196         (define_insn "<shift_insn><mode>3<mask_name>" with
11197         VI2_AVX2_AVX512BW): New.
11198         (define_insn "<shift_insn><mode>3<mask_name>" with
11199         VI48_AVX2): Ditto.
11201 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11202             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11203             Anna Tikhonova  <anna.tikhonova@intel.com>
11204             Ilya Tocar  <ilya.tocar@intel.com>
11205             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11206             Ilya Verbin  <ilya.verbin@intel.com>
11207             Kirill Yukhin  <kirill.yukhin@intel.com>
11208             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11210         * config/i386/sse.md
11211         (define_mode_iterator VI4F_BRCST32x2): New.
11212         (define_mode_attr 64x2_mode): Ditto.
11213         (define_mode_attr 32x2mode): Ditto.
11214         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
11215         with VI4F_BRCST32x2): Ditto.
11216         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
11217         with V16FI mode iterator): Ditto.
11218         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11219         with V16FI): Ditto.
11220         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11221         with VI8F_BRCST64x2): Ditto.
11223 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11224             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11225             Anna Tikhonova  <anna.tikhonova@intel.com>
11226             Ilya Tocar  <ilya.tocar@intel.com>
11227             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11228             Ilya Verbin  <ilya.verbin@intel.com>
11229             Kirill Yukhin  <kirill.yukhin@intel.com>
11230             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11232         * config/i386/sse.md
11233         (define_mode_iterator VI8_AVX512VL): New.
11234         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
11236 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11238         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
11239         (define_mode_iterator V48_AVX512VL): New.
11240         (define_mode_iterator V12_AVX512VL): Ditto.
11241         (define_insn <avx512>_load<mode>_mask): Split into two similar
11242         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
11243         Refactor output template.
11244         (define_insn "<avx512>_store<mode>_mask"): Ditto.
11246 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11248         * cprop.c (struct occr): Strengthen field "insn" from rtx to
11249         rtx_insn *.
11250         (reg_available_p): Likewise for param "insn".
11251         (insert_set_in_table): Likewise.
11252         (hash_scan_set): Likewise.
11253         (hash_scan_insn): Likewise.
11254         (make_set_regs_unavailable): Likewise.
11255         (compute_hash_table_work): Likewise for local "insn".
11256         (reg_not_set_p): Strengthen param "insn" from const_rtx to
11257         const rtx_insn *.
11258         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
11259         (try_replace_reg): Likewise.
11260         (find_avail_set): Likewise.
11261         (cprop_jump): Likewise for params "setcc", "jump".
11262         (constprop_register): Likewise for param "insn".
11263         (cprop_insn): Likewise.
11264         (do_local_cprop): Likewise.
11265         (local_cprop_pass): Likewise for local "insn".
11266         (bypass_block): Likewise for params "setcc" and "jump".
11267         (bypass_conditional_jumps): Likewise for locals "setcc" and
11268         "insn".
11269         (one_cprop_pass): Likewise for local "insn".
11271 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11273         * compare-elim.c (struct comparison_use): Strengthen field "insn"
11274         from rtx to rtx_insn *.
11275         (struct comparison): Likewise, also for field "prev_clobber".
11276         (conforming_compare): Likewise for param "insn".
11277         (arithmetic_flags_clobber_p): Likewise.
11278         (find_flags_uses_in_insn): Likewise.
11279         (find_comparison_dom_walker::before_dom_children): Likewise for
11280         locals "insn", "next", "last_clobber".
11281         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
11283 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11285         * combine-stack-adj.c (struct csa_reflist): Strengthen field
11286         "insn" from rtx to rtx_insn *.
11287         (single_set_for_csa): Likewise for param "insn".
11288         (record_one_stack_ref): Likewise.
11289         (try_apply_stack_adjustment): Likewise.
11290         (struct record_stack_refs_data): Likewise for field "insn".
11291         (maybe_move_args_size_note): Likewise for params "last" and "insn".
11292         (prev_active_insn_bb): Likewise for return type and param "insn".
11293         (next_active_insn_bb): Likewise.
11294         (force_move_args_size_note): Likewise for params "prev" and "last"
11295         and locals "test", "next_candidate", "prev_candidate".
11296         (combine_stack_adjustments_for_block): Strengthen locals
11297         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
11298         rtx_insn *.
11300 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11302         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
11303         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
11304         (subst_insn): Likewise for this variable.
11305         (added_links_insn): Likewise.
11306         (struct insn_link): Likewise for field "insn".
11307         (alloc_insn_link): Likewise for param "insn".
11308         (struct undobuf): Likewise for field "other_insn".
11309         (find_single_use): Likewise for param "insn" and local "next".
11310         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
11311         (delete_noop_moves): Likewise for locals "insn", "next".
11312         (create_log_links): Likewise for locals "insn", "use_insn".
11313         Strengthen local "next_use" from rtx * to rtx_insn **.
11314         (insn_a_feeds_b): Likewise for params "a", "b".
11315         (combine_instructions): Likewise for param "f" and locals "insn",
11316         "next", "prev", "first", "last_combined_insn", "link", "link1",
11317         "temp".  Replace use of NULL_RTX with NULL when referring to
11318         insns.
11319         (setup_incoming_promotions): Likewise for param "first"
11320         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
11321         (can_combine_p): Likewise for params "insn", "i3", "pred",
11322         "pred2", "succ", "succ2" and for local "p".
11323         (combinable_i3pat): Likewise for param "i3".
11324         (cant_combine_insn_p): Likewise for param "insn".
11325         (likely_spilled_retval_p): Likewise.
11326         (adjust_for_new_dest): Likewise.
11327         (update_cfg_for_uncondjump): Likewise, also for local "insn".
11328         (try_combine): Likewise for return type and for params "i3", "i2",
11329         "i1", "i0", "last_combined_insn", and for locals "insn",
11330         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
11331         "i0_insn".  Eliminate local "tem" in favor of new locals
11332         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
11333         checked cast for now to rtx_insn * on the return type of
11334         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
11335         insns.
11336         (find_split_point): Strengthen param "insn" from rtx to
11337         rtx_insn *.
11338         (simplify_set): Likewise for local "other_insn".
11339         (recog_for_combine): Likewise for param "insn".
11340         (record_value_for_reg): Likewise.
11341         (record_dead_and_set_regs_1): Likewise for local
11342         "record_dead_insn".
11343         (record_dead_and_set_regs): Likewise for param "insn".
11344         (record_promoted_value): Likewise.
11345         (check_promoted_subreg): Likewise.
11346         (get_last_value_validate): Likewise.
11347         (reg_dead_at_p): Likewise.
11348         (move_deaths): Likewise for param "to_insn".
11349         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
11350         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
11351         in favor of new locals "tem_note" and "tem_insn", the latter being
11352         an rtx_insn *.
11353         (distribute_links): Strengthen locals "place", "insn" from rtx to
11354         rtx_insn *.
11356 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11358         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
11359         than a const_rtx.
11360         (can_delete_label_p): Require a const rtx_code_label * rather than
11361         a const_rtx.
11362         (delete_insn): Add checked cast to rtx_code_label * when we know
11363         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
11364         rtx to rtx_insn *.
11365         (delete_insn_chain): Strengthen locals "prev" and "current" from
11366         rtx to rtx_insn *.  Add a checked cast when assigning from
11367         "finish" (strengthening the params will come later).  Add a
11368         checked cast to rtx_note * in region where we know
11369         NOTE_P (current).
11370         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
11371         rtx_insn *.
11372         (compute_bb_for_insn): Likewise.
11373         (free_bb_for_insn): Likewise for local "insn".
11374         (compute_bb_for_insn): Likewise.
11375         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
11376         local "insn" from rtx to rtx_insn *
11377         (flow_active_insn_p): Require a const rtx_insn * rather than a
11378         const_rtx.
11379         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
11380         rtx_insn *.
11381         (can_fallthru): Likewise for locals "insn" and "insn2".
11382         (bb_note): Likewise for local "note".
11383         (first_insn_after_basic_block_note): Likewise for local "note" and
11384         for return type.
11385         (rtl_split_block): Likewise for locals "insn" and "next".
11386         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
11387         "end".
11388         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
11389         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
11390         "prev", "tmp".
11391         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
11392         them), "kill_from", "barrier", "new_insn".
11393         (patch_jump_insn): Likewise for params "insn", "old_label".
11394         (redirect_branch_edge): Likewise for locals "old_label", "insn".
11395         (force_nonfallthru_and_redirect): Likewise for locals "insn",
11396         "old_label", "new_label".
11397         (rtl_tidy_fallthru_edge): Likewise for local "q".
11398         (rtl_split_edge): Likewise for locals "before", "last".
11399         (commit_one_edge_insertion): Likewise for locals "before",
11400         "after", "insns", "tmp", "last", adding a checked cast where
11401         currently necessary.
11402         (commit_edge_insertions): Likewise.
11403         (rtl_dump_bb): Likewise for locals "insn", "last".
11404         (print_rtl_with_bb): Likewise for local "x".
11405         (rtl_verify_bb_insns): Likewise for local "x".
11406         (rtl_verify_bb_pointers): Likewise for local "insn".
11407         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
11408         "head", "end".
11409         (rtl_verify_fallthru): Likewise for local "insn".
11410         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
11411         (purge_dead_edges): Likewise for local "insn".
11412         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
11413         (skip_insns_after_block): Likewise for return type and for locals
11414         "insn", "last_insn", "next_head", "prev".
11415         (record_effective_endpoints): Likewise for locals "next_insn",
11416         "insn", "end".
11417         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
11418         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
11419         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
11420         (duplicate_insn_chain): For now, add checked cast from rtx to
11421         rtx_insn * when returning insn.
11422         (cfg_layout_duplicate_bb): Likewise for local "insn".
11423         (cfg_layout_delete_block): Likewise for locals "insn", "next",
11424         "prev", "remaints".
11425         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
11426         (rtl_block_empty_p): Likewise.
11427         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
11428         "split_point", "last".
11429         (rtl_block_ends_with_call_p): Likewise for local "insn".
11430         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
11431         const rtx_insn *.
11432         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
11433         "split_at_insn" from rtx to rtx_insn *.
11434         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
11435         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
11436         to const rtx_insn *.
11437         (rtl_account_profile_record): Likewise.
11439 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11441         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
11442         rtx to rtx_insn *.
11443         (average_num_loop_insns): Likewise.
11444         (init_set_costs): Likewise for local "seq".
11445         (seq_cost): Likewise for param "seq", from const_rtx to const
11446         rtx_insn *.
11448 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11450         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
11451         rtx to rtx_insn *.
11453 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11455         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
11456         "f1" and "f2" from rtx * to rtx_insn **.
11457         (flow_find_head_matching_sequence): Likewise.
11459         * cfgcleanup.c (try_simplify_condjump): Strengthen local
11460         "cbranch_insn" from rtx to rtx_insn *.
11461         (thread_jump): Likewise for local "insn".
11462         (try_forward_edges): Likewise for local "last".
11463         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
11464         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
11465         "real_b_end".
11466         (can_replace_by): Likewise for params "i1", "i2".
11467         (old_insns_match_p): Likewise.
11468         (merge_notes): Likewise.
11469         (walk_to_nondebug_insn): Likewise for param "i1".
11470         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
11471         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
11472         "afterlast1", "afterlast2" from rtx to rtx_insn *.
11473         (flow_find_head_matching_sequence): Strengthen params "f1" and
11474         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
11475         "last1", "last2", "beforelast1", "beforelast2" from rtx to
11476         rtx_insn *.
11477         (outgoing_edges_match): Likewise for locals "last1", "last2".
11478         (try_crossjump_to_edge): Likewise for local "insn".
11479         Replace call to for_each_rtx with for_each_rtx_in_insn.
11481         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
11482         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
11483         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
11484         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
11485         (try_optimize_cfg): Strengthen local "last" from rtx to
11486         rtx_insn *.
11487         (delete_dead_jumptables): Likewise for locals "insn", "next",
11488         "label".
11490         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
11491         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
11492         "rtx else_first_tail", to reflect the basic-block.h changes above.
11494 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11496         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
11497         rtx_insn *.
11498         (purge_dead_tablejump_edges): Likewise.
11499         (find_bb_boundaries): Likewise for locals "insn", "end",
11500         "flow_transfer_insn".
11502 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11504         * caller-save.c (save_call_clobbered_regs): Strengthen locals
11505         "ins" and "prev" from rtx to rtx_insn *.
11507 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11509         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
11510         rtx_insn *.
11511         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
11512         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
11513         "scan_start".
11514         (load_register_parameters): Likewise for local "before_arg".
11515         (check_sibcall_argument_overlap): Likewise for param "insn".
11516         (expand_call): Likewise for locals "normal_call_insns",
11517         "tail_call_insns", "insns", "before_call", "after_args",
11518         "before_arg", "last", "prev".  Strengthen one of the "last" from
11519         rtx to rtx_call_insn *.
11520         (fixup_tail_calls): Strengthen local "insn" from rtx to
11521         rtx_insn *.
11522         (emit_library_call_value_1): Likewise for locals "before_call" and
11523         "last".
11525 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11527         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
11528         and "last" from rtx to rtx_insn *.
11529         (expand_builtin_nonlocal_goto): Likewise for local "insn".
11530         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
11531         rtx_call_insn *.
11532         (expand_errno_check): Strengthen local "lab" from rtx to
11533         rtx_code_label *.
11534         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
11535         rtx_insn *.
11536         (expand_builtin_mathfn_2): Likewise.
11537         (expand_builtin_mathfn_ternary): Likewise.
11538         (expand_builtin_mathfn_3): Likewise.
11539         (expand_builtin_interclass_mathfn): Likewise for local "last".
11540         (expand_builtin_int_roundingfn): Likewise for local "insns".
11541         (expand_builtin_int_roundingfn_2): Likewise.
11542         (expand_builtin_strlen): Likewise for local "before_strlen".
11543         (expand_builtin_strncmp): Likewise for local "seq".
11544         (expand_builtin_signbit): Likewise for local "last".
11545         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
11546         from rtx to rtx_code_label *.
11547         (expand_stack_restore):  Strengthen local "prev" from rtx to
11548         rtx_insn *.
11550 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11552         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
11553         to rtx_insn *.
11554         (struct btr_def_s): Likewise.
11555         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
11556         const rtx_insn *.
11557         (add_btr_def): Likewise.
11558         (new_btr_user): Likewise.
11559         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
11560         rtx to rtx_insn *.
11561         (link_btr_uses): Likewise.
11562         (move_btr_def): Likewise for locals "insp", "old_insn",
11563         "new_insn".  Add checked cast to rtx_insn * for now on result of
11564         gen_move_insn.
11565         (can_move_up): Strengthen param "insn" from const_rtx to
11566         const rtx_insn *.
11568 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11570         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
11571         rtx_insn *.
11572         (get_uncond_jump_length): Likewise for locals "label", "jump".
11573         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
11574         "jump", "insn".
11575         (add_labels_and_missing_jumps): Likewise for local "new_jump".
11576         (fix_up_fall_thru_edges): Likewise for local "old_jump".
11577         (find_jump_block): Likewise for local "insn".
11578         (fix_crossing_conditional_branches): Likewise for locals
11579         "old_jump", "new_jump".
11580         (fix_crossing_unconditional_branches): Likewise for locals
11581         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
11582         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
11584 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11586         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
11587         rtx to rtx_insn *.
11588         (struct mem_insn): Likewise for field "insn".
11589         (reg_next_use): Strengthen from rtx * to rtx_insn **.
11590         (reg_next_inc_use): Likewise.
11591         (reg_next_def): Likewise.
11592         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
11593         from rtx to rtx_insn *.
11594         (move_insn_before): Likewise for param "next_insn" and local "insns".
11595         (attempt_change): Likewise for local "mov_insn".
11596         (try_merge): Likewise for param "last_insn".
11597         (get_next_ref): Likewise for return type and local "insn".
11598         Strengthen param "next_array" from rtx * to rtx_insn **.
11599         (parse_add_or_inc): Strengthen param "insn" from rtx to
11600         rtx_insn *.
11601         (find_inc): Likewise for locals "insn" and "other_insn" (three of
11602         the latter).
11603         (merge_in_block): Likewise for locals "insn", "curr",
11604         "other_insn".
11605         (pass_inc_dec::execute): Update allocations of the arrays to
11606         reflect the stronger types.
11608 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11610         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
11611         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
11612         from rtx to rtx_code_label *.
11614 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11616         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
11617         to rtx_insn *.
11619 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11621         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
11622         generated a warning and prevented bootstrapping the compiler.
11624 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11626         * rtl.h (delete_related_insns): Strengthen return type from rtx to
11627         rtx_insn *.
11629         * jump.c (delete_related_insns): Likewise, also for locals "next"
11630         and "prev".
11632 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11634         * genautomata.c (output_internal_insn_latency_func): When writing
11635         the function "internal_insn_latency" to insn-automata.c,
11636         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
11637         allowing the optional guard function of (define_bypass) clauses to
11638         expect a pair of rtx_insn *, rather than a pair of rtx.
11639         (output_insn_latency_func): When writing the function
11640         "insn_latency", add an "uncast_" prefix to params "insn" and
11641         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
11642         using checked casts from the params, thus enabling the above
11643         change to the generated "internal_insn_latency" function.
11645 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
11647         PR tree-optimization/62091
11648         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
11649         handle correctly arrays.
11650         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
11651         inheritance binfos.
11652         (record_known_type): Walk into inner type.
11653         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
11654         condition on no type changes.
11656 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11658         * genattrtab.c (write_attr_get): Within the generated get_attr_
11659         functions, rename param "insn" to "uncast_insn" and reintroduce
11660         "insn" as an local rtx_insn * using a checked cast, so that "insn"
11661         is an rtx_insn * within insn-attrtab.c
11663 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11665         * output.h (peephole): Strengthen return type from rtx to
11666         rtx_insn *.
11667         * rtl.h (delete_for_peephole): Likewise for both params.
11668         * genpeep.c (main): In generated "peephole" function, strengthen
11669         return type and local "insn" from rtx to rtx_insn *.  For now,
11670         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
11671         rtx_insn *, with a checked cast.
11672         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
11673         locals "insn", "next", "prev" from rtx to rtx_insn *.
11675 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
11677         PR tree-optimization/62112
11678         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
11679         * gimple-iterator.h (gsi_replace): Return bool.
11680         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
11681         moved from ref_may_alias_global_p.
11682         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
11683         New overloads.
11684         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
11685         (stmt_kills_ref_p_1): Rename...
11686         (stmt_kills_ref_p): ... to this.
11687         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
11688         stmt_kills_ref_p): Declare.
11689         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
11690         Move the self-assignment case...
11691         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
11693 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11695         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
11697         * emit-rtl.c (try_split): Likewise, also for locals "before" and
11698         "after".  For now, don't strengthen param "trial", which requires
11699         adding checked casts when returning it.
11701 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11703         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
11704         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
11705         "var_location" hook from rtx to rtx_insn *.
11706         (debug_nothing_rtx): Delete in favor of...
11707         (debug_nothing_rtx_code_label): New prototype.
11708         (debug_nothing_rtx_rtx): Delete unused prototype.
11709         (debug_nothing_rtx_insn): New prototype.
11711         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
11712         invoking debug_hooks->var_location (in two places, one in a NOTE
11713         case of a switch statement, the other guarded by a CALL_P
11714         conditional.  Add checked cast to rtx_code_label * when invoking
11715         debug_hooks->label (within CODE_LABEL case of switch statement).
11717         * dbxout.c (dbx_debug_hooks): Update "label" hook from
11718         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
11719         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
11720         (xcoff_debug_hooks): Likewise.
11721         * debug.c (do_nothing_debug_hooks): Likewise.
11722         (debug_nothing_rtx): Delete in favor of...
11723         (debug_nothing_rtx_insn): New function.
11724         (debug_nothing_rtx_rtx): Delete unused function.
11725         (debug_nothing_rtx_code_label): New function.
11726         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
11727         debug_nothing_rtx to debug_nothing_rtx_code_label.
11728         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
11729         to rtx_insn *.
11730         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
11731         debug_nothing_rtx to debug_nothing_rtx_insn.
11732         (sdbout_label): Strengthen param "insn" from rtx to
11733         rtx_code_label *.
11734         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
11735         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
11736         "var_location" hook from debug_nothing_rtx to
11737         debug_nothing_rtx_insn.
11739 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11741         * recog.h (insn_output_fn): Update this function typedef to match
11742         the changes below to the generated output functions, strengthening
11743         the 2nd param from rtx to rtx_insn *.
11745         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
11746         insn when invoking an output function, to match the new signature
11747         of insn_output_fn with a stronger second param.
11749         * genconditions.c (write_header): In the generated code for
11750         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
11751         to match the other changes in this patch.
11753         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
11754         the generated "gen_" functions from rtx to rtx_insn * within their
11755         implementations.
11757         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
11758         the subfunctions within the generated "recog_", "split", "peephole2"
11759         function trees from rtx to rtx_insn *.  For now, the top-level
11760         generated functions ("recog", "split", "peephole2") continue to
11761         take a plain rtx for "insn", to avoid introducing dependencies on
11762         other patches.  Rename this 2nd param from "insn" to
11763         "uncast_insn", and reintroduce "insn" as a local variable of type
11764         rtx_insn *, initialized at the top of the generated function with
11765         a checked cast on "uncast_insn".
11766         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
11767         the generated "gen_" functions from rtx to rtx_insn * within their
11768         prototypes.
11770         * genoutput.c (process_template): Strengthen the 2nd param within
11771         the generated "output_" functions "insn" from rtx to rtx_insn *.
11773 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11775         * tree-profile.c (tree_profiling): Skip external functions
11776         when doing coverage instrumentation.
11777         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
11779 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11781         * config/rs6000/altivec.h (vec_cpsgn): New #define.
11782         (vec_mergee): Likewise.
11783         (vec_mergeo): Likewise.
11784         (vec_cntlz): Likewise.
11785         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
11786         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
11787         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
11788         VMRGEW, and VMRGOW.
11789         * doc/extend.texi: Document various forms of vec_cpsgn,
11790         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
11791         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
11792         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
11793         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
11794         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
11796 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11798         * config/rs6000/rs6000.c (context.h): New include.
11799         (tree-pass.h): Likewise.
11800         (make_pass_analyze_swaps): New decl.
11801         (rs6000_option_override): Register pass_analyze_swaps.
11802         (swap_web_entry): New subsclass of web_entry_base (df.h).
11803         (special_handling_values): New enum.
11804         (union_defs): New function.
11805         (union_uses): Likewise.
11806         (insn_is_load_p): Likewise.
11807         (insn_is_store_p): Likewise.
11808         (insn_is_swap_p): Likewise.
11809         (rtx_is_swappable_p): Likewise.
11810         (insn_is_swappable_p): Likewise.
11811         (chain_purpose): New enum.
11812         (chain_contains_only_swaps): New function.
11813         (mark_swaps_for_removal): Likewise.
11814         (swap_const_vector_halves): Likewise.
11815         (adjust_subreg_index): Likewise.
11816         (permute_load): Likewise.
11817         (permute_store): Likewise.
11818         (handle_special_swappables): Likewise.
11819         (replace_swap_with_copy): Likewise.
11820         (dump_swap_insn_table): Likewise.
11821         (rs6000_analyze_swaps): Likewise.
11822         (pass_data_analyze_swaps): New pass_data.
11823         (pass_analyze_swaps): New rtl_opt_pass.
11824         (make_pass_analyze_swaps): New function.
11825         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
11827 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11829         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
11830         type from rtx to rtx_insn *.
11831         (create_copy_of_insn_rtx): Likewise.
11832         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
11833         (create_copy_of_insn_rtx): Likewise, also for local "res".
11835 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11837         * rtl.h (find_first_parameter_load): Strengthen return type from
11838         rtx to rtx_insn *.
11839         * rtlanal.c (find_first_parameter_load): Strengthen return type
11840         from rtx to rtx_insn *.  Add checked cast for now, to postpone
11841         strengthening the params.
11843 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11845         PR fortran/44054
11846         * diagnostic.c: Set default caret.
11847         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
11848         line is needed.
11849         * diagnostic.h (struct diagnostic_context):
11851 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11853         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
11854         (sel_bb_head): Strengthen return type insn_t (currently just an
11855         rtx) to rtx_insn *.
11856         (sel_bb_end): Likewise.
11858         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
11859         (sel_bb_head): Strengthen return type and local "head" from
11860         insn_t (currently just an rtx) to rtx_insn *.
11861         (sel_bb_end): Likewise for return type.
11862         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
11863         working with insn.
11865 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11867         * basic-block.h (get_last_bb_insn): Strengthen return type from
11868         rtx to rtx_insn *.
11869         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
11870         end".
11872 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11874         PR fortran/44054
11875         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
11876          to here ...
11877         (diagnostic_report_diagnostic): ... from here.
11878         * toplev.c (general_init): Move code to c-family.
11880 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11882         * df.h (web_entry_base): Replace existing struct web_entry with a
11883         new class web_entry_base with only the predecessor member.
11884         (unionfind_root): Remove declaration and move to class member.
11885         (unionfind_union): Remove declaration and move to friend
11886         function.
11887         (union_defs): Remove declaration.
11888         * web.c (web_entry_base::unionfind_root): Modify to be member
11889         function and adjust accessors.
11890         (unionfind_union): Modify to be friend function and adjust
11891         accessors.
11892         (web_entry): New subclass of web_entry_base containing the reg
11893         member.
11894         (union_match_dups): Modify for struct -> class changes.
11895         (union_defs): Likewise.
11896         (entry_register): Likewise.
11897         (pass_web::execute): Likewise.
11899 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
11901         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
11902         builtin define __VEC_ELEMENT_REG_ORDER__.
11904 2014-08-20  Martin Jambor  <mjambor@suse.cz>
11905             Wei Mi  <wmi@google.com>
11907         PR ipa/60449
11908         PR middle-end/61776
11909         * tree-ssa-operands.c (update_stmt_operands): Remove
11910         MODIFIED_NORETURN_CALLS.
11911         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
11912         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
11913         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
11914         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
11915         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
11916         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
11917         (gimple_call_set_ctrl_altering): New func.
11918         (gimple_call_ctrl_altering_p): Ditto.
11919         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
11920         (make_blocks): Use gimple_call_initialize_ctrl_altering.
11921         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
11922         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
11923         remove MODIFIED_NORETURN_CALLS.
11925 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11927         * coverage.c (coverage_compute_profile_id): Return non-0;
11928         also handle symbols with unique name.
11929         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
11931 2014-08-20  Steve Ellcey  <sellcey@mips.com>
11933         PR middle-end/49191
11934         * doc/sourcebuild.texi (non_strict_align): New.
11936 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11938         * cgraphunit.c (ipa_passes, compile): Reshedule
11939         symtab_remove_unreachable_nodes passes; update comments.
11940         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
11941         TODO_remove_functions before the pass; the functions ought to be
11942         already removed.
11943         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
11944         TODO_remove_functions.
11945         * passes.c (pass_data_early_local_passes): Do not schedule function
11946         removal.
11947         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
11949 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11951         PR c/59304
11952         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
11953         before setting the option.
11954         * diagnostic.c (diagnostic_classify_diagnostic): Record
11955         command-line status.
11957 2014-08-20  Richard Biener  <rguenther@suse.de>
11959         PR lto/62190
11960         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11961         to build uint{16,32,64}_type_node.
11963 2014-08-20  Terry Guo  <terry.guo@arm.com>
11965         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11966         with immediate_operand.
11968 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
11970         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11971         "insn" from an as_a to a safe_as_a, for the case when "insn" is
11972         NULL.
11974 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11976         PR preprocessor/51303
11977         * incpath.c (remove_duplicates): Use cpp_warning.
11979 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11981         PR c/60975
11982         PR c/53063
11983         * doc/options.texi (CPP): Document it.
11984         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11985         * optc-gen.awk: Handle CPP.
11986         * opth-gen.awk: Likewise.
11988 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11990         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11991         rtx_insn *.
11992         (duplicate_insn_chain): Likewise.
11993         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11994         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
11995         checked cast for now (until we can strengthen the params in the
11996         same way).
11997         (duplicate_insn_chain): Likewise.
11999 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12001         * rtl.h (next_cc0_user): Strengthen return type from rtx to
12002         rtx_insn *.
12003         (prev_cc0_setter): Likewise.
12005         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
12006         rtx_insn *, adding checked casts for now as necessary.
12007         (prev_cc0_setter): Likewise.
12009 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12011         * expr.h (emit_move_insn): Strengthen return type from rtx to
12012         rtx_insn *.
12013         (emit_move_insn_1): Likewise.
12014         (emit_move_complex_push): Likewise.
12015         (emit_move_complex_parts): Likewise.
12017         * expr.c (emit_move_via_integer): Strengthen return type from rtx
12018         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
12019         with insns.
12020         (emit_move_complex_push): Strengthen return type from rtx to
12021         rtx_insn *.
12022         (emit_move_complex): Likewise, also for local "ret".
12023         (emit_move_ccmode): Likewise.
12024         (emit_move_multi_word): Likewise for return type and locals
12025         "last_insn", "seq".
12026         (emit_move_insn_1): Likewise for return type and locals "result",
12027         "ret".
12028         (emit_move_insn): Likewise for return type and local "last_insn".
12029         (compress_float_constant): Likewise.
12031 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12033         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
12034         from rtx to rtx_insn *.
12036         * rtl.h (emit_insn_before): Likewise.
12037         (emit_insn_before_noloc): Likewise.
12038         (emit_insn_before_setloc): Likewise.
12039         (emit_jump_insn_before): Likewise.
12040         (emit_jump_insn_before_noloc): Likewise.
12041         (emit_jump_insn_before_setloc): Likewise.
12042         (emit_call_insn_before): Likewise.
12043         (emit_call_insn_before_noloc): Likewise.
12044         (emit_call_insn_before_setloc): Likewise.
12045         (emit_debug_insn_before): Likewise.
12046         (emit_debug_insn_before_noloc): Likewise.
12047         (emit_debug_insn_before_setloc): Likewise.
12048         (emit_label_before): Likewise.
12049         (emit_insn_after): Likewise.
12050         (emit_insn_after_noloc): Likewise.
12051         (emit_insn_after_setloc): Likewise.
12052         (emit_jump_insn_after): Likewise.
12053         (emit_jump_insn_after_noloc): Likewise.
12054         (emit_jump_insn_after_setloc): Likewise.
12055         (emit_call_insn_after): Likewise.
12056         (emit_call_insn_after_noloc): Likewise.
12057         (emit_call_insn_after_setloc): Likewise.
12058         (emit_debug_insn_after): Likewise.
12059         (emit_debug_insn_after_noloc): Likewise.
12060         (emit_debug_insn_after_setloc): Likewise.
12061         (emit_label_after): Likewise.
12062         (emit_insn): Likewise.
12063         (emit_debug_insn): Likewise.
12064         (emit_jump_insn): Likewise.
12065         (emit_call_insn): Likewise.
12066         (emit_label): Likewise.
12067         (gen_clobber): Likewise.
12068         (emit_clobber): Likewise.
12069         (gen_use): Likewise.
12070         (emit_use): Likewise.
12071         (emit): Likewise.
12073         (emit_barrier_before): Strengthen return type from rtx to
12074         rtx_barrier *.
12075         (emit_barrier_after): Likewise.
12076         (emit_barrier): Likewise.
12078         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
12079         from rtx to rtx_insn *.  Add checked casts for now when converting
12080         "last" from rtx to rtx_insn *.
12081         (emit_insn_before_noloc): Likewise for return type.
12082         (emit_jump_insn_before_noloc): Likewise.
12083         (emit_call_insn_before_noloc): Likewise.
12084         (emit_debug_insn_before_noloc): Likewise.
12085         (emit_barrier_before): Strengthen return type and local "insn"
12086         from rtx to rtx_barrier *.
12087         (emit_label_before): Strengthen return type from rtx to
12088         rtx_insn *.  Add checked cast for now when returning param
12089         (emit_pattern_after_noloc): Strengthen return type from rtx to
12090         rtx_insn *.  Add checked casts for now when converting "last" from
12091         rtx to rtx_insn *.
12092         (emit_insn_after_noloc): Strengthen return type from rtx to
12093         rtx_insn *.
12094         (emit_jump_insn_after_noloc): Likewise.
12095         (emit_call_insn_after_noloc): Likewise.
12096         (emit_debug_insn_after_noloc): Likewise.
12097         (emit_barrier_after): Strengthen return type from rtx to
12098         rtx_barrier *.
12099         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
12100         Add checked cast for now when converting "label" from rtx to
12101         rtx_insn *.
12102         (emit_pattern_after_setloc): Strengthen return type from rtx to
12103         rtx_insn *.  Add checked casts for now when converting "last" from
12104         rtx to rtx_insn *.
12105         (emit_pattern_after): Strengthen return type from rtx to
12106         rtx_insn *.
12107         (emit_insn_after_setloc): Likewise.
12108         (emit_insn_after): Likewise.
12109         (emit_jump_insn_after_setloc): Likewise.
12110         (emit_jump_insn_after): Likewise.
12111         (emit_call_insn_after_setloc): Likewise.
12112         (emit_call_insn_after): Likewise.
12113         (emit_debug_insn_after_setloc): Likewise.
12114         (emit_debug_insn_after): Likewise.
12115         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
12116         when converting "last" from rtx to rtx_insn *.
12117         (emit_pattern_before): Strengthen return type from rtx to
12118         rtx_insn *.
12119         (emit_insn_before_setloc): Likewise.
12120         (emit_insn_before): Likewise.
12121         (emit_jump_insn_before_setloc): Likewise.
12122         (emit_jump_insn_before): Likewise.
12123         (emit_call_insn_before_setloc): Likewise.
12124         (emit_call_insn_before): Likewise.
12125         (emit_debug_insn_before_setloc): Likewise.
12126         (emit_debug_insn_before): Likewise.
12127         (emit_insn): Strengthen return type and locals "last", "insn",
12128         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
12129         within cases where we know we have an insn.
12130         (emit_debug_insn): Likewise.
12131         (emit_jump_insn): Likewise.
12132         (emit_call_insn): Strengthen return type and local "insn" from rtx
12133         to rtx_insn *.
12134         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
12135         a checked cast to rtx_insn * for now on "label".
12136         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
12137         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
12138         (emit_use): Likewise.
12139         (gen_use): Likewise, also for local "seq".
12140         (emit): Likewise for return type and local "insn".
12141         (rtx_insn): Likewise for return type and local "new_rtx".
12143         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
12144         from rtx to rtx_barrier *.
12146         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
12147         changed return type from rtx to rtx_insn *, we must update
12148         "emit_fn" type, and this in turn means updating...
12149         (frame_insn): ...this.  Strengthen return type from rtx to
12150         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
12152 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12154         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
12155         rtx to rtx_jump_table_data *.  Also for local.
12156         * rtl.h (emit_jump_table_data): Likewise.
12158 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12160         * basic-block.h (create_basic_block_structure): Strengthen third
12161         param "bb_note" from rtx to rtx_note *.
12162         * rtl.h (emit_note_before): Strengthen return type from rtx to
12163         rtx_note *.
12164         (emit_note_after): Likewise.
12165         (emit_note): Likewise.
12166         (emit_note_copy): Likewise.  Also, strengthen param similarly.
12167         * function.h (struct rtl_data): Strengthen field
12168         "x_stack_check_probe_note" from rtx to rtx_note *.
12170         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
12171         from rtx to rtx_note *.
12172         * cfgrtl.c (create_basic_block_structure): Strengthen third param
12173         "bb_note" from rtx to rtx_note *.
12174         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
12175         when calling emit_note_copy.
12176         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
12177         rtx_note *.
12178         (emit_note_after): Likewise.
12179         (emit_note_before): Likewise.
12180         (emit_note_copy): Likewise.  Also, strengthen param similarly.
12181         (emit_note): Likewise.
12182         * except.c (emit_note_eh_region_end): Likewise for return type.
12183         Strengthen local "next" from rtx to rtx_insn *.
12184         (convert_to_eh_region_ranges): Strengthen local "note"
12185         from rtx to rtx_note *.
12186         * final.c (change_scope): Likewise.
12187         (reemit_insn_block_notes): Likewise, for both locals named "note".
12188         Also, strengthen local "insn" from rtx to rtx_insn *.
12189         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
12190         rtx to rtx_note *.
12191         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
12192         strengthen local "seq" from rtx to rtx_insn *.
12193         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
12194         to rtx_note *.
12195         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
12196         vec<rtx_note *>.
12197         (get_bb_note_from_pool): Strengthen return type from rtx to
12198         rtx_note *.
12199         (sel_create_basic_block): Strengthen local "new_bb_note" from
12200         insn_t to rtx_note *.
12201         * var-tracking.c (emit_note_insn_var_location): Strengthen local
12202         "note" from rtx to rtx_note *.
12203         (emit_notes_in_bb): Likewise.
12205 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12207         * function.h (struct rtl_data): Strengthen field
12208         "x_parm_birth_insn" from rtx to rtx_insn *.
12209         * function.c (struct assign_parm_data_all): Strengthen fields
12210         "first_conversion_insn" and "last_conversion_insn" from rtx to
12211         rtx_insn *.
12213 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12215         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
12216         to rtx_insn *; also for local "var_end_seq".
12217         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
12218         (maybe_cleanup_end_of_block): Likewise for param "last" and local
12219         "insn".
12220         (expand_gimple_cond): Likewise for locals "last2" and "last".
12221         (mark_transaction_restart_calls): Likewise for local "insn".
12222         (expand_gimple_stmt): Likewise for return type and locals "last"
12223         and "insn".
12224         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
12225         (avoid_complex_debug_insns): Likewise for param "insn".
12226         (expand_debug_locations): Likewise for locals "insn", "last",
12227         "prev_insn" and "insn2".
12228         (expand_gimple_basic_block): Likewise for local "last".
12229         (construct_exit_block): Likewise for locals "head", "end",
12230         "orig_end".
12231         (pass_expand::execute): Likewise for locals "var_seq",
12232         "var_ret_seq", "next".
12234 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12236         * asan.h (asan_emit_stack_protection): Strengthen return type from
12237         rtx to rtx_insn *.
12238         * asan.c (asan_emit_stack_protection): Likewise.  Add local
12239         "insns" to hold the return value.
12241 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12243         * basic-block.h (bb_note): Strengthen return type from rtx to
12244         rtx_note *.
12245         * sched-int.h (bb_note): Likewise.
12246         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
12248 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12250         * rtl.h (make_insn_raw): Strengthen return type from rtx to
12251         rtx_insn *.
12253         * emit-rtl.c (make_insn_raw): Strengthen return type and local
12254         "insn" from rtx to rtx_insn *.
12255         (make_debug_insn_raw): Strengthen return type from rtx to
12256         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
12257         (make_jump_insn_raw):  Strengthen return type from rtx to
12258         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
12259         (make_call_insn_raw):  Strengthen return type from rtx to
12260         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
12261         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
12262         callback from rtx to rtx_insn *; likewise for local "insn" and
12263         "next", adding a checked cast to rtx_insn in the relevant cases of
12264         the switch statement.
12265         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
12266         callback from rtx to rtx_insn *.
12267         (emit_pattern_after_setloc): Likewise.
12268         (emit_pattern_after): Likewise.
12269         (emit_pattern_before_setloc): Likewise.
12270         (emit_pattern_before): Likewise.
12272 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12274         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
12275         rtx_call_insn *.
12276         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
12277         accepting an rtx_insn *.
12278         (last_call_insn): Strengthen return type from rtx to
12279         rtx_call_insn *.
12281 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12283         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
12284         "insns" from rtx to rtx_insn *.
12285         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
12286         locals "insn" and "prev".
12288 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12290         * rtl.h (tablejump_p): Strengthen third param from rtx * to
12291         rtx_jump_table_data **.
12293         * cfgbuild.c (make_edges): Introduce local "table", using it in
12294         place of "tmp" for jump table data.
12295         (find_bb_boundaries): Strengthen local "table" from rtx to
12296         rtx_jump_table_data *.
12297         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12298         (outgoing_edges_match): Likewise for locals "table1" and "table2".
12299         (try_crossjump_to_edge): Likewise.
12300         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
12301         "table".
12302         (patch_jump_insn): Introduce local "table", using it in place of
12303         "tmp" for jump table data.
12304         (force_nonfallthru_and_redirect): Introduce local "table", so that
12305         call to tablejump_p can receive an rtx_jump_table_data **.  Update
12306         logic around the call to overwrite "note" appropriately if
12307         tablejump_p returns non-zero.
12308         (get_last_bb_insn): Introduce local "table", using it in place of
12309         "tmp" for jump table data.
12310         * dwarf2cfi.c (create_trace_edges): Likewise.
12312         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
12313         from rtx to rtx_jump_table_data *.
12314         (create_fix_barrier): Strengthen local "tmp" from rtx to
12315         rtx_jump_table_data *.
12316         (arm_reorg): Likewise for local "table".
12318         * config/s390/s390.c (s390_chunkify_start): Likewise.
12320         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
12322         * jump.c (delete_related_insns): Strengthen local "lab_next" from
12323         rtx to rtx_jump_table_data *.
12325         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
12326         rtx_jump_table_data **.  Add a checked cast when writing through
12327         the pointer: we know there that local "table" is non-NULL and that
12328         JUMP_TABLE_DATA_P (table) holds.
12329         (label_is_jump_target_p): Introduce local "table", using it in
12330         place of "tmp" for jump table data.
12332 2014-08-19  Marek Polacek  <polacek@redhat.com>
12334         PR c++/62153
12335         * doc/invoke.texi: Document -Wbool-compare.
12337 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12339         * rtl.h (entry_of_function): Strengthen return type from rtx to
12340         rtx_insn *.
12341         * cfgrtl.c (entry_of_function): Likewise.
12343 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12345         * emit-rtl.h (get_insns): Strengthen return type from rtx to
12346         rtx_insn *, adding a checked cast for now.
12347         (get_last_insn): Likewise.
12349 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12351         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
12352         rtx_code_label *.
12354         * emit-rtl.c (gen_label_rtx): Likewise.
12356 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12358         * rtl.h (previous_insn): Strengthen return type from rtx to
12359         rtx_insn *.
12360         (next_insn): Likewise.
12361         (prev_nonnote_insn): Likewise.
12362         (prev_nonnote_insn_bb): Likewise.
12363         (next_nonnote_insn): Likewise.
12364         (next_nonnote_insn_bb): Likewise.
12365         (prev_nondebug_insn): Likewise.
12366         (next_nondebug_insn): Likewise.
12367         (prev_nonnote_nondebug_insn): Likewise.
12368         (next_nonnote_nondebug_insn): Likewise.
12369         (prev_real_insn): Likewise.
12370         (next_real_insn): Likewise.
12371         (prev_active_insn): Likewise.
12372         (next_active_insn): Likewise.
12374         * emit-rtl.c (next_insn): Strengthen return type from rtx to
12375         rtx_insn *, adding a checked cast.
12376         (previous_insn): Likewise.
12377         (next_nonnote_insn): Likewise.
12378         (next_nonnote_insn_bb): Likewise.
12379         (prev_nonnote_insn): Likewise.
12380         (prev_nonnote_insn_bb): Likewise.
12381         (next_nondebug_insn): Likewise.
12382         (prev_nondebug_insn): Likewise.
12383         (next_nonnote_nondebug_insn): Likewise.
12384         (prev_nonnote_nondebug_insn): Likewise.
12385         (next_real_insn): Likewise.
12386         (prev_real_insn): Likewise.
12387         (next_active_insn): Likewise.
12388         (prev_active_insn): Likewise.
12390         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
12391         param "stepfunc" so that it returns an rtx_insn * rather than an
12392         rtx, to track the change to prev_nonnote_insn_bb, which is the
12393         only function this is called with.
12394         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
12396 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
12398         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
12399         assert.
12401 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12403         * coretypes.h (class rtx_debug_insn): Add forward declaration.
12404         (class rtx_nonjump_insn): Likewise.
12405         (class rtx_jump_insn): Likewise.
12406         (class rtx_call_insn): Likewise.
12407         (class rtx_jump_table_data): Likewise.
12408         (class rtx_barrier): Likewise.
12409         (class rtx_code_label): Likewise.
12410         (class rtx_note): Likewise.
12412         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
12413         adding the invariant DEBUG_INSN_P (X).
12414         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
12415         the invariant NONJUMP_INSN_P (X).
12416         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
12417         the invariant JUMP_P (X).
12418         (class rtx_call_insn): New, a subclass of rtx_insn, adding
12419         the invariant CALL_P (X).
12420         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
12421         invariant JUMP_TABLE_DATA_P (X).
12422         (class rtx_barrier): New, a subclass of rtx_insn, adding the
12423         invariant BARRIER_P (X).
12424         (class rtx_code_label): New, a subclass of rtx_insn, adding
12425         the invariant LABEL_P (X).
12426         (class rtx_note): New, a subclass of rtx_insn, adding
12427         the invariant NOTE_P(X).
12428         (is_a_helper <rtx_debug_insn *>::test): New.
12429         (is_a_helper <rtx_nonjump_insn *>::test): New.
12430         (is_a_helper <rtx_jump_insn *>::test): New.
12431         (is_a_helper <rtx_call_insn *>::test): New.
12432         (is_a_helper <rtx_jump_table_data *>::test): New functions,
12433         overloaded for both rtx and rtx_insn *.
12434         (is_a_helper <rtx_barrier *>::test): New.
12435         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
12436         for both rtx and rtx_insn *.
12437         (is_a_helper <rtx_note *>::test): New.
12439 2014-08-19  Marek Polacek  <polacek@redhat.com>
12441         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
12442         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
12443         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
12444         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
12446 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12448         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
12449         rtx_insn *.  To help with transition, for now, convert from an
12450         access macro into a pair of functions: BND_TO, returning an
12451         rtx_insn *, and...
12452         (SET_BND_TO): New function, for use where BND_TO is used as an
12453         lvalue.
12455         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
12456         SET_BND_TO.
12457         (BND_TO): New function, adding a checked cast.
12458         (SET_BND_TO): New function.
12460         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
12461         SET_BND_TO.
12462         (compute_av_set_on_boundaries): Likewise.
12464 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12466         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
12467         destination if it is used in source.
12468         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
12469         (*popcount<mode>2_falsedep_1): Likewise.
12471 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12473         PR other/62168
12474         * configure.ac: Set install_gold_as_default to no first.
12475         * configure: Regenerated.
12477 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12479         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
12480         "note_list" field will eventually be an rtx_insn *.  To help with
12481         transition, for now, convert from an access macro into a pair of
12482         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
12483         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
12484         used as an lvalue.
12486         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
12487         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
12489         * sel-sched-ir.c (init_bb): Likewise.
12490         (sel_restore_notes): Likewise.
12491         (move_bb_info): Likewise.
12492         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
12493         (SET_BB_NOTE_LIST): New function.
12495 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12497         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
12498         field will eventually be an rtx_insn *.  To help with transition,
12499         for now, convert from an access macro into a pair of functions:
12500         VINSN_INSN_RTX, returning an rtx_insn *, and...
12501         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
12502         is used as an lvalue.
12504         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
12505         SET_VINSN_INSN_RTX where it's used as an lvalue.
12506         (VINSN_INSN_RTX): New function.
12507         (SET_VINSN_INSN_RTX): New function.
12509 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12511         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
12512         eventually be rtx_insn *, but to help with transition, for now,
12513         convert from an access macro into a pair of functions: DEP_PRO
12514         returning an rtx_insn * and...
12515         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
12516         lvalue, returning an rtx&.
12517         (DEP_CON): Analogous changes to DEP_PRO above.
12518         (SET_DEP_CON): Likewise.
12520         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
12521         an lvalue to SET_DEP_CON.
12522         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
12523         (sd_copy_back_deps): Likewise for DEP_CON.
12524         (DEP_PRO): New function, adding a checked cast for now.
12525         (DEP_CON): Likewise.
12526         (SET_DEP_PRO): New function.
12527         (SET_DEP_CON): Likewise.
12529 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
12531         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
12532         (extra_options): Add i386/cygwin.opt.
12533         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
12534         (CPP_SPEC): Accept -pthread.
12535         (LINK_SPEC): Ditto.
12536         (GOMP_SELF_SPECS): Update comment.
12537         * config/i386/cygwin.opt: New file for -pthread flag.
12539 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12541         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
12542         * df.h (DF_REF_INSN): Convert from a macro to a function, so
12543         that we can return an rtx_insn *.
12545 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
12547         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
12548         when building executables, not DLLs.  Add --large-address-aware
12549         under the same conditions.
12550         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
12551         when building executables, not DLLs.  Add --large-address-aware
12552         under the same conditions when using -m32.
12554         * config/i386/cygwin-stdint.h: Throughout, make type
12555         definitions dependent on target architecture, not host.
12557 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12559         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
12560         the return type from rtx to rtx_insn *,  which will enable various
12561         conversions in followup patches.  For now this is is done by a
12562         checked cast.
12563         (NEXT_INSN): Likewise.
12564         (SET_PREV_INSN): Convert to an inline function.  This is intended
12565         for use as an lvalue, and so returns an rtx& to allow in-place
12566         modification.
12567         (SET_NEXT_INSN): Likewise.
12569 2014-07-08  Mark Wielaard  <mjw@redhat.com>
12571         PR debug/59051
12572         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
12574 2014-08-19  Marek Polacek  <polacek@redhat.com>
12576         PR c/61271
12577         * cgraphunit.c (handle_alias_pairs): Fix condition.
12579 2014-08-19  Richard Biener  <rguenther@suse.de>
12581         * gimple-fold.c (fold_gimple_assign): Properly build a
12582         null-pointer constant when devirtualizing addresses.
12584 2014-07-07  Mark Wielaard  <mjw@redhat.com>
12586         * dwarf2out.c (decl_quals): New function.
12587         (modified_type_die): Take one cv_quals argument instead of two,
12588         one for const and one for volatile.
12589         (add_type_attribute): Likewise.
12590         (generic_parameter_die): Call add_type_attribute with one modifier
12591         argument.
12592         (base_type_for_mode): Likewise.
12593         (add_bounds_info): Likewise.
12594         (add_subscript_info): Likewise.
12595         (gen_array_type_die): Likewise.
12596         (gen_descr_array_type_die): Likewise.
12597         (gen_entry_point_die): Likewise.
12598         (gen_enumeration_type_die): Likewise.
12599         (gen_formal_parameter_die): Likewise.
12600         (gen_subprogram_die): Likewise.
12601         (gen_variable_die): Likewise.
12602         (gen_const_die): Likewise.
12603         (gen_field_die): Likewise.
12604         (gen_pointer_type_die): Likewise.
12605         (gen_reference_type_die): Likewise.
12606         (gen_ptr_to_mbr_type_die): Likewise.
12607         (gen_inheritance_die): Likewise.
12608         (gen_subroutine_type_die): Likewise.
12609         (gen_typedef_die): Likewise.
12610         (force_type_die): Likewise.
12612 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12614         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
12615         if unset.
12616         * configure: Regenerate.
12618 2014-08-19  Richard Biener  <rguenther@suse.de>
12620         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
12621         DECL_EXTERNALs in BLOCKs as non-references.
12622         * tree-streamer-out.c (streamer_write_chain): Likewise.
12624 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12625             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12626             Anna Tikhonova  <anna.tikhonova@intel.com>
12627             Ilya Tocar  <ilya.tocar@intel.com>
12628             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12629             Ilya Verbin  <ilya.verbin@intel.com>
12630             Kirill Yukhin  <kirill.yukhin@intel.com>
12631             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12633         * config/i386/sse.md
12634         (define_mode_iterator VI48_AVX512F): Delete.
12635         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
12636         (define_mode_iterator VI2_AVX512VL): Ditto.
12637         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
12638         Delete.
12639         (define_insn
12640         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
12641         New.
12642         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
12643         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
12644         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12645         with VI48_AVX512F_AVX512VL): New.
12646         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12647         with VI2_AVX512VL): Ditto.
12649 2014-08-19  Marek Polacek  <polacek@redhat.com>
12651         * doc/invoke.texi: Document -Wc99-c11-compat.
12653 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12655         * rtl.h (PREV_INSN): Split macro in two: the existing one,
12656         for rvalues, and...
12657         (SET_PREV_INSN): New macro, for use as an lvalue.
12658         (NEXT_INSN, SET_NEXT_INSN): Likewise.
12660         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
12661         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
12662         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
12663         (fixup_abnormal_edges): Likewise.
12664         (unlink_insn_chain): Likewise.
12665         (fixup_reorder_chain): Likewise.
12666         (cfg_layout_delete_block): Likewise.
12667         (cfg_layout_merge_blocks): Likewise.
12668         * combine.c (update_cfg_for_uncondjump): Likewise.
12669         * emit-rtl.c (link_insn_into_chain): Likewise.
12670         (remove_insn): Likewise.
12671         (delete_insns_since): Likewise.
12672         (reorder_insns_nobb): Likewise.
12673         (emit_insn_after_1): Likewise.
12674         * final.c (rest_of_clean_state): Likewise.
12675         (final_scan_insn): Likewise.
12676         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
12677         * haifa-sched.c (concat_note_lists): Likewise.
12678         (remove_notes): Likewise.
12679         (restore_other_notes): Likewise.
12680         (move_insn): Likewise.
12681         (unlink_bb_notes): Likewise.
12682         (restore_bb_notes): Likewise.
12683         * jump.c (delete_for_peephole): Likewise.
12684         * optabs.c (emit_libcall_block_1): Likewise.
12685         * reorg.c (emit_delay_sequence): Likewise.
12686         (fill_simple_delay_slots): Likewise.
12687         * sel-sched-ir.c (sel_move_insn): Likewise.
12688         (sel_remove_insn): Likewise.
12689         (get_bb_note_from_pool): Likewise.
12690         * sel-sched.c (move_nop_to_previous_block): Likewise.
12692         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
12693         * config/c6x/c6x.c (gen_one_bundle): Likewise.
12694         (c6x_gen_bundles): Likewise.
12695         (hwloop_optimize): Likewise.
12696         * config/frv/frv.c (frv_function_prologue): Likewise.
12697         (frv_register_nop): Likewise.
12698         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
12699         (ia64_reorg): Likewise.
12700         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
12701         (mep_make_bundle): Likewise.
12702         (mep_bundle_insns): Likewise.
12703         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
12704         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
12705         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
12707 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12709         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
12710         return type from rtx to rtx_insn *.
12711         (BB_END): Likewise.
12712         (BB_HEADER): Likewise.
12713         (BB_FOOTER): Likewise.
12714         (SET_BB_HEAD): Convert to a function.
12715         (SET_BB_END): Likewise.
12716         (SET_BB_HEADER): Likewise.
12717         (SET_BB_FOOTER): Likewise.
12719         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
12720         Strengthen the return type from rtx to rtx_insn *.  For now, this
12721         is done by adding a checked cast, but this will eventually
12722         become a field lookup.
12723         (BB_END): Likewise.
12724         (BB_HEADER): Likewise.
12725         (BB_FOOTER): Likewise.
12726         (SET_BB_HEAD): New function, from macro of same name.  This is
12727         intended for use as an lvalue, and so returns an rtx& to allow
12728         in-place modification.
12729         (SET_BB_END): Likewise.
12730         (SET_BB_HEADER): Likewise.
12731         (SET_BB_FOOTER): Likewise.
12733 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12735         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
12736         for rvalues, and...
12737         (SET_BB_HEAD): New macro, for use as a lvalue.
12738         (BB_END, SET_BB_END): Likewise.
12739         (BB_HEADER, SET_BB_HEADER): Likewise.
12740         (BB_FOOTER, SET_BB_FOOTER): Likewise.
12742         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
12743         of BB_* macros into SET_BB_* macros.
12744         (fix_crossing_unconditional_branches): Likewise.
12745         * caller-save.c (save_call_clobbered_regs): Likewise.
12746         (insert_one_insn): Likewise.
12747         * cfgbuild.c (find_bb_boundaries): Likewise.
12748         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12749         (outgoing_edges_match): Likewise.
12750         (try_optimize_cfg): Likewise.
12751         * cfgexpand.c (expand_gimple_cond): Likewise.
12752         (expand_gimple_tailcall): Likewise.
12753         (expand_gimple_basic_block): Likewise.
12754         (construct_exit_block): Likewise.
12755         * cfgrtl.c (delete_insn): Likewise.
12756         (create_basic_block_structure): Likewise.
12757         (rtl_delete_block): Likewise.
12758         (rtl_split_block): Likewise.
12759         (emit_nop_for_unique_locus_between): Likewise.
12760         (rtl_merge_blocks): Likewise.
12761         (block_label): Likewise.
12762         (try_redirect_by_replacing_jump): Likewise.
12763         (emit_barrier_after_bb): Likewise.
12764         (fixup_abnormal_edges): Likewise.
12765         (record_effective_endpoints): Likewise.
12766         (relink_block_chain): Likewise.
12767         (fixup_reorder_chain): Likewise.
12768         (fixup_fallthru_exit_predecessor): Likewise.
12769         (cfg_layout_duplicate_bb): Likewise.
12770         (cfg_layout_split_block): Likewise.
12771         (cfg_layout_delete_block): Likewise.
12772         (cfg_layout_merge_blocks): Likewise.
12773         * combine.c (update_cfg_for_uncondjump): Likewise.
12774         * emit-rtl.c (add_insn_after): Likewise.
12775         (remove_insn): Likewise.
12776         (reorder_insns): Likewise.
12777         (emit_insn_after_1): Likewise.
12778         * haifa-sched.c (get_ebb_head_tail): Likewise.
12779         (restore_other_notes): Likewise.
12780         (move_insn): Likewise.
12781         (sched_extend_bb): Likewise.
12782         (fix_jump_move): Likewise.
12783         * ifcvt.c (noce_process_if_block): Likewise.
12784         (dead_or_predicable): Likewise.
12785         * ira.c (update_equiv_regs): Likewise.
12786         * reg-stack.c (change_stack): Likewise.
12787         * sel-sched-ir.c (sel_move_insn): Likewise.
12788         * sel-sched.c (move_nop_to_previous_block): Likewise.
12790         * config/c6x/c6x.c (hwloop_optimize): Likewise.
12791         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12793 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12795         * rtl.h (for_each_rtx_in_insn): New function.
12796         * rtlanal.c (for_each_rtx_in_insn): Likewise.
12798 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12800         * coretypes.h (class rtx_insn): Add forward declaration.
12802         * rtl.h: Include is-a.h.
12803         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
12804         workaround to ensure gengtype knows inheritance is occurring,
12805         whilst continuing to use the pre-existing special-casing for
12806         rtx_def.
12807         (class rtx_insn): New subclass of rtx_def, adding the
12808         invariant that we're dealing with something we can sanely use
12809         INSN_UID, NEXT_INSN, PREV_INSN on.
12810         (is_a_helper <rtx_insn *>::test): New.
12811         (is_a_helper <const rtx_insn *>::test): New.
12813 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12815         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
12817 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12819         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
12820         comdats as extern.
12822 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12824         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
12825         to BUILT_IN_UNREACHABLE.
12827 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
12829         PR target/62011
12830         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
12831         New tune flag.
12832         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
12833         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
12834         (ffs<mode>2): Do not expand with tzcnt for
12835         TARGET_AVOID_FALSE_DEP_FOR_BMI.
12836         (ffssi2_no_cmove): Ditto.
12837         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
12838         (ctz<mode>2): New expander.
12839         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
12840         (*ctz<mode>2_falsedep): New insn.
12841         (*ctz<mode>2): Rename from ctz<mode>2.
12842         (clz<mode>2_lzcnt): New expander.
12843         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
12844         (*clz<mode>2_lzcnt_falsedep): New insn.
12845         (*clz<mode>2): Rename from ctz<mode>2.
12846         (popcount<mode>2): New expander.
12847         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
12848         (*popcount<mode>2_falsedep): New insn.
12849         (*popcount<mode>2): Rename from ctz<mode>2.
12850         (*popcount<mode>2_cmp): Remove.
12851         (*popcountsi2_cmp_zext): Ditto.
12853 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
12855         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
12856         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
12857         * config/microblaze/microblaze.h
12858         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
12860 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12862         PR other/62168
12863         * configure.ac: Set install_gold_as_default to no for
12864          --enable-gold=no.
12865          * configure: Regenerated.
12867 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
12869         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
12870         * config.in: Add undef of HAVE_isl.
12871         * configure: Regenerate.
12872         * configure.ac: Add definition of HAVE_isl.
12873         * graphite-blocking.c: Add checking of HAVE_isl.
12874         * graphite-dependences.c: Likewise.
12875         * graphite-interchange.c: Likewise.
12876         * graphite-isl-ast-to-gimple.c: Likewise.
12877         * graphite-optimize-isl.c: Likewise.
12878         * graphite-poly.c: Likewise.
12879         * graphite-scop-detection.c: Likewise.
12880         * graphite-sese-to-poly.c: Likewise.
12881         * graphite.c: Likewise.
12882         * toplev.c: Replace the checking of HAVE_cloog with the checking
12883         of HAVE_isl.
12885 2014-08-18  Richard Biener  <rguenther@suse.de>
12887         PR tree-optimization/62090
12888         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
12889         (fold_builtin_3): Do not fold snprintf.
12890         (fold_builtin_4): Likewise.
12891         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
12892         moved from builtins.c.
12893         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
12894         (gimple_fold_builtin): Do not fold sprintf here.
12896 2014-08-18  Richard Biener  <rguenther@suse.de>
12898         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
12899         code to ...
12900         (maybe_canonicalize_mem_ref_addr): ... this function.
12901         (fold_stmt_1): Apply it here before all simplification.
12903 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
12905         PR ipa/61800
12906         * cgraph.h (cgraph_node::create_indirect_edge): Add
12907         compute_indirect_info param.
12908         * cgraph.c (cgraph_node::create_indirect_edge): Compute
12909         indirect_info only when it is required.
12910         * cgraphclones.c (cgraph_clone_edge): Do not recompute
12911         indirect_info fore cloned indirect edge.
12913 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12914             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12915             Anna Tikhonova  <anna.tikhonova@intel.com>
12916             Ilya Tocar  <ilya.tocar@intel.com>
12917             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12918             Ilya Verbin  <ilya.verbin@intel.com>
12919             Kirill Yukhin  <kirill.yukhin@intel.com>
12920             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12922         * config/i386/sse.md
12923         (define_mode_iterator VI8_AVX2_AVX512BW): New.
12924         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
12926 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12927             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12928             Anna Tikhonova  <anna.tikhonova@intel.com>
12929             Ilya Tocar  <ilya.tocar@intel.com>
12930             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12931             Ilya Verbin  <ilya.verbin@intel.com>
12932             Kirill Yukhin  <kirill.yukhin@intel.com>
12933             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12935         * config/i386/sse.md
12936         (define_mode_iterator VF1_AVX512VL): New.
12937         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
12938         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
12939         New.
12941 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12942             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12943             Anna Tikhonova  <anna.tikhonova@intel.com>
12944             Ilya Tocar  <ilya.tocar@intel.com>
12945             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12946             Ilya Verbin  <ilya.verbin@intel.com>
12947             Kirill Yukhin  <kirill.yukhin@intel.com>
12948             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12950         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
12951         * config/i386/i386.md
12952         (define_code_iterator any_float): New.
12953         (define_code_attr floatsuffix): New.
12954         * config/i386/sse.md
12955         (define_mode_iterator VF1_128_256VL): New.
12956         (define_mode_iterator VF2_512_256VL): New.
12957         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12958         TARGET check.
12959         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12960         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12961         New.
12962         (define_mode_attr qq2pssuff): New.
12963         (define_mode_attr sselongvecmode): New.
12964         (define_mode_attr sselongvecmodelower): New.
12965         (define_mode_attr sseintvecmode3): New.
12966         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12967         New.
12968         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12969         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12970         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12971         (define_insn "ufloatv2siv2df2<mask_name>"): New.
12973 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12974             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12975             Anna Tikhonova  <anna.tikhonova@intel.com>
12976             Ilya Tocar  <ilya.tocar@intel.com>
12977             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12978             Ilya Verbin  <ilya.verbin@intel.com>
12979             Kirill Yukhin  <kirill.yukhin@intel.com>
12980             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12982         * config/i386/sse.md
12983         (define_mode_iterator VF2_AVX512VL): New.
12984         (define_mode_attr sseintvecmode2): New.
12985         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12986         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12987         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12988         (define_insn
12989         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12990         Ditto.
12991         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12992         Ditto.
12993         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12994         Ditto.
12996 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12997             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12998             Anna Tikhonova  <anna.tikhonova@intel.com>
12999             Ilya Tocar  <ilya.tocar@intel.com>
13000             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13001             Ilya Verbin  <ilya.verbin@intel.com>
13002             Kirill Yukhin  <kirill.yukhin@intel.com>
13003             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13005         * config/i386/i386.md
13006         (define_insn "*movoi_internal_avx"): Add evex version.
13007         (define_insn "*movti_internal"): Ditto.
13009 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13010             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13011             Anna Tikhonova  <anna.tikhonova@intel.com>
13012             Ilya Tocar  <ilya.tocar@intel.com>
13013             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13014             Ilya Verbin  <ilya.verbin@intel.com>
13015             Kirill Yukhin  <kirill.yukhin@intel.com>
13016             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13018         * config/i386/i386.md
13019         (define_attr "isa"): Add avx512dq, noavx512dq.
13020         (define_attr "enabled"): Ditto.
13021         * config/i386/sse.md
13022         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
13024 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13025             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13026             Anna Tikhonova  <anna.tikhonova@intel.com>
13027             Ilya Tocar  <ilya.tocar@intel.com>
13028             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13029             Ilya Verbin  <ilya.verbin@intel.com>
13030             Kirill Yukhin  <kirill.yukhin@intel.com>
13031             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13033         * config/i386/i386.c
13034         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
13035         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
13036         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
13037         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
13038         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
13039         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
13040         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
13041         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
13042         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
13043         * config/i386/sse.md
13044         (define_mode_iterator VMOVE): Allow V4TI mode.
13045         (define_mode_iterator V_AVX512VL): New.
13046         (define_mode_iterator V): New handling for AVX512VL.
13047         (define_insn "avx512f_load<mode>_mask"): Delete.
13048         (define_insn "<avx512>_load<mode>_mask"): New.
13049         (define_insn "avx512f_store<mode>_mask"): Delete.
13050         (define_insn "<avx512>_store<mode>_mask"): New.
13053 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
13055         PR sanitizer/62089
13056         * asan.c (instrument_derefs): Fix bitfield check.
13058 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13060         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
13061         * config/rs6000/htm.md (ttest): Remove clobber.
13062         * config/rs6000/predicates.md (any_mask_operand): New predicate.
13063         (and_operand): Reformat.
13064         (and_2rld_operand): New predicate.
13065         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
13066         parameter.
13067         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
13068         parameter.  Handle AND directly.
13069         (rs6000_split_logical_di): Remove last parameter.
13070         (rs6000_split_logical): Remove last parameter.  Remove obsolete
13071         comment.
13072         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
13073         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
13074         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
13075         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
13076         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
13077         and 5 anonymous splitters):  Delete.
13078         (and<mode>3): New expander.
13079         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
13080         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
13081         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
13082         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
13083         (floatdisf2_internal1): Remove clobbers.
13084         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
13085         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
13086         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
13087         (and<mode>3 for BOOL_128): Remove clobber.
13088         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
13089         rs6000_split_logical.
13090         (*bool<mode>3_internal for BOOL_128): Adjust call of
13091         rs6000_split_logical.
13092         (*boolc<mode>3_internal1 for BOOL_128,
13093         *boolc<mode>3_internal2 for BOOL_128,
13094         *boolcc<mode>3_internal1 for BOOL_128,
13095         *boolcc<mode>3_internal2 for BOOL_128,
13096         *eqv<mode>3_internal1 for BOOL_128,
13097         *eqv<mode>3_internal2 for BOOL_128,
13098         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
13099         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
13100         clobber.
13101         (*vec_reload_and_reg_<mptrsize>): Delete.
13103 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13105         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
13106         and split, *boolccsi3_internal3 and split): Delete.
13107         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
13108         *boolccdi3_internal3 and split): Delete.
13109         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
13110         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
13112 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13114         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
13115         and split, *boolcsi3_internal3 and split): Delete.
13116         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
13117         *boolcdi3_internal3 and split): Delete.
13118         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
13120 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13122         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
13123         <'u'>: Also support printing the low-order 16 bits.
13124         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
13125         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
13126         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
13127         *booldi3_internal3 and split): Delete.
13128         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
13129         *bool<mode>3_dot2): New.
13130         (two anonymous define_splits for non_logical_cint_operand): Merge.
13132 2014-08-17  Marek Polacek  <polacek@redhat.com>
13133             Manuel López-Ibáñez  <manu@gcc.gnu.org>
13135         PR c/62059
13136         * diagnostic.c (adjust_line): Add gcc_checking_assert.
13137         (diagnostic_show_locus): Don't print caret diagnostic
13138         if a column is larger than the line_width.
13140 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
13142         * common.opt: Make the ISL AST generator to be the main code generator
13143         of Graphite.
13145 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
13147         * wide-int.h (generic_wide_int): Declare as class instead of struct.
13149 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
13151         PR target/61641
13152         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
13153         Declare.
13154         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
13155         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
13156         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
13157         Define.
13158         * config/pa/pa.md (begin_brtab): Delete insn.
13159         (end_brtab): Likewise.
13161 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13163         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
13165 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
13167         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
13168         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
13169         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
13170         (get_dynamic_type): Remove.
13171         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
13172         (clear_speculation): Bring to ipa-deivrt.h
13173         (get_class_context): Rename to ...
13174         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
13175         (contains_type_p): Update.
13176         (get_dynamic_type): Rename to ...
13177         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
13178         (possible_polymorphic_call_targets): UPdate.
13179         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
13180         * ipa-prop.c (ipa_analyze_call_uses): Update.
13182 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
13184         * doc/invoke.texi (SH options): Document missing processor variant
13185         options.  Remove references to Hitachi.  Undocument deprecated mspace
13186         option.
13188 2014-08-15  Jason Merrill  <jason@redhat.com>
13190         * tree.c (type_hash_canon): Uncomment assert.
13192 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13194         * input.h (in_system_header_at): Add comment.
13196 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13198         PR fortran/44054
13199         * diagnostic.c (build_message_string): Make it extern.
13200         * diagnostic.h (build_message_string): Make it extern.
13202 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
13204         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
13205         load/store from/to non-floating class pseudo.
13207 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13209         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
13211 2014-08-15  Richard Biener  <rguenther@suse.de>
13213         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
13214         (get_constraint_for_ssa_var): Remove dead code.
13215         (get_constraint_for_1): Adjust.
13216         (find_what_var_points_to): Likewise.
13217         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
13219 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
13221         PR target/61878
13222         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
13223         (_mm512_mask_cmpge_epu32_mask): Ditto.
13224         (_mm512_cmpge_epu32_mask): Ditto.
13225         (_mm512_mask_cmpge_epi64_mask): Ditto.
13226         (_mm512_cmpge_epi64_mask): Ditto.
13227         (_mm512_mask_cmpge_epu64_mask): Ditto.
13228         (_mm512_cmpge_epu64_mask): Ditto.
13229         (_mm512_mask_cmple_epi32_mask): Ditto.
13230         (_mm512_cmple_epi32_mask): Ditto.
13231         (_mm512_mask_cmple_epu32_mask): Ditto.
13232         (_mm512_cmple_epu32_mask): Ditto.
13233         (_mm512_mask_cmple_epi64_mask): Ditto.
13234         (_mm512_cmple_epi64_mask): Ditto.
13235         (_mm512_mask_cmple_epu64_mask): Ditto.
13236         (_mm512_cmple_epu64_mask): Ditto.
13237         (_mm512_mask_cmplt_epi32_mask): Ditto.
13238         (_mm512_cmplt_epi32_mask): Ditto.
13239         (_mm512_mask_cmplt_epu32_mask): Ditto.
13240         (_mm512_cmplt_epu32_mask): Ditto.
13241         (_mm512_mask_cmplt_epi64_mask): Ditto.
13242         (_mm512_cmplt_epi64_mask): Ditto.
13243         (_mm512_mask_cmplt_epu64_mask): Ditto.
13244         (_mm512_cmplt_epu64_mask): Ditto.
13245         (_mm512_mask_cmpneq_epi32_mask): Ditto.
13246         (_mm512_mask_cmpneq_epu32_mask): Ditto.
13247         (_mm512_cmpneq_epu32_mask): Ditto.
13248         (_mm512_mask_cmpneq_epi64_mask): Ditto.
13249         (_mm512_cmpneq_epi64_mask): Ditto.
13250         (_mm512_mask_cmpneq_epu64_mask): Ditto.
13251         (_mm512_cmpneq_epu64_mask): Ditto.
13252         (_mm512_castpd_ps): Ditto.
13253         (_mm512_castpd_si512): Ditto.
13254         (_mm512_castps_pd): Ditto.
13255         (_mm512_castps_si512): Ditto.
13256         (_mm512_castsi512_ps): Ditto.
13257         (_mm512_castsi512_pd): Ditto.
13258         (_mm512_castpd512_pd128): Ditto.
13259         (_mm512_castps512_ps128): Ditto.
13260         (_mm512_castsi512_si128): Ditto.
13261         (_mm512_castpd512_pd256): Ditto.
13262         (_mm512_castps512_ps256): Ditto.
13263         (_mm512_castsi512_si256): Ditto.
13264         (_mm512_castpd128_pd512): Ditto.
13265         (_mm512_castps128_ps512): Ditto.
13266         (_mm512_castsi128_si512): Ditto.
13267         (_mm512_castpd256_pd512): Ditto.
13268         (_mm512_castps256_ps512): Ditto.
13269         (_mm512_castsi256_si512): Ditto.
13270         (_mm512_cmpeq_epu32_mask): Ditto.
13271         (_mm512_mask_cmpeq_epu32_mask): Ditto.
13272         (_mm512_mask_cmpeq_epu64_mask): Ditto.
13273         (_mm512_cmpeq_epu64_mask): Ditto.
13274         (_mm512_cmpgt_epu32_mask): Ditto.
13275         (_mm512_mask_cmpgt_epu32_mask): Ditto.
13276         (_mm512_mask_cmpgt_epu64_mask): Ditto.
13277         (_mm512_cmpgt_epu64_mask): Ditto.
13278         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
13279         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
13280         * config/i386/i386.c (enum ix86_builtins): Add
13281         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
13282         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
13283         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
13284         (bdesc_args): Add __builtin_ia32_si512_256si,
13285         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
13286         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
13287         __builtin_ia32_pd512_pd.
13288         (ix86_expand_args_builtin): Handle new FTYPEs.
13289         * config/i386/sse.md (castmode): Add 512-bit modes.
13290         (AVX512MODE2P): New.
13291         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
13292         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
13294 2014-08-15  Richard Biener  <rguenther@suse.de>
13296         * fold-const.c (tree_swap_operands_p): Put all constants
13297         last, also strip sign-changing NOPs when considering further
13298         canonicalization.  Canonicalize also when optimizing for size.
13300 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13302         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
13303         one_match > zero_match case to just before simple_sequence.
13305 2014-08-15  Richard Biener  <rguenther@suse.de>
13307         * data-streamer.h (streamer_string_index, string_for_index):
13308         Remove.
13309         * data-streamer-out.c (streamer_string_index): Make static.
13310         * data-streamer-in.c (string_for_index): Likewise.
13311         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
13312         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
13314 2014-08-15  Richard Biener  <rguenther@suse.de>
13316         PR tree-optimization/62031
13317         * tree-data-ref.c (dr_analyze_indices): Do not set
13318         DR_UNCONSTRAINED_BASE.
13319         (dr_may_alias_p): All indirect accesses have to go the
13320         formerly DR_UNCONSTRAINED_BASE path.
13321         * tree-data-ref.h (struct indices): Remove
13322         unconstrained_base member.
13323         (DR_UNCONSTRAINED_BASE): Remove.
13325 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
13327         PR middle-end/62092
13328         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
13329         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
13330         in OMP_CLAUSE_MAP in some outer target region.
13332 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
13334         * tree-ssa-loop-ivopts.c (ivopts_data): New field
13335         name_expansion_cache.
13336         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
13337         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
13338         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
13339         (difference_cannot_overflow_p): New parameter.  Use affine
13340         expansion for equality check.
13341         (iv_elimination_compare_lt): Pass new argument.
13343 2014-08-14  DJ Delorie  <dj@redhat.com>
13345         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
13346         variables to the accumulator.
13348         * config/rl78/predicates.md (rl78_near_mem_operand): New.
13349         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
13350         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
13351         with far-far moves.
13353         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
13354         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
13355         (umulqihi3_virt): Likewise.
13356         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
13357         (umulqihi3_real): Likewise.
13359         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
13361 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
13363         PR tree-optimization/62091
13364         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
13365         function_entry_reached.
13366         (walk_aliased_vdefs): Clear it here.
13367         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
13369 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
13371         * ipa-utils.h (compare_virtual_tables): Declare.
13372         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
13374 2014-08-14  Marek Polacek  <polacek@redhat.com>
13376         DR 458
13377         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
13378         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
13380 2014-08-14  Tom de Vries  <tom@codesourcery.com>
13382         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
13384 2014-08-14  Tom de Vries  <tom@codesourcery.com>
13386         PR rtl-optimization/62004
13387         PR rtl-optimization/62030
13388         * ifcvt.c (rtx_interchangeable_p): New function.
13389         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
13390         * emit-rtl.h (mem_attrs_eq_p): Declare.
13392 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
13394         * graphite-scop-detection.c:
13395         Add inclusion of cp-tree.h.
13396         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
13397         in case they are pointers to object types
13399 2014-08-14  Richard Biener  <rguenther@suse.de>
13401         * BASE-VER: Change to 5.0.0
13403 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13404             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13405             Anna Tikhonova  <anna.tikhonova@intel.com>
13406             Ilya Tocar  <ilya.tocar@intel.com>
13407             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13408             Ilya Verbin  <ilya.verbin@intel.com>
13409             Kirill Yukhin  <kirill.yukhin@intel.com>
13410             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13412         * config/i386/sse.md (define_mode_attr avx512): New.
13413         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
13414         V4DI modes.
13415         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
13416         (define_mode_attr ssse3_avx2): Ditto.
13417         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
13418         (define_mode_attr avx2_avx512bw): New.
13419         (define_mode_attr ssedoublemodelower): New.
13420         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
13421         V32HI, V64QI modes.
13422         (define_mode_attr ssebytemode): Allow V8DI modes.
13423         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
13424         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
13425         (define_mode_attr ssePSmode2): New.
13426         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
13427         V16HI, V32HI modes.
13428         (define_mode_attr dbpsadbwmode): New.
13429         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
13430         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
13431         (vi8_sse4_1_avx2_avx512): New.
13432         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
13433         mode attribute.
13434         (define_mode_attr blendbits): Move before its immediate use.
13436 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13437             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13438             Anna Tikhonova  <anna.tikhonova@intel.com>
13439             Ilya Tocar  <ilya.tocar@intel.com>
13440             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13441             Ilya Verbin  <ilya.verbin@intel.com>
13442             Kirill Yukhin  <kirill.yukhin@intel.com>
13443             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13445         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
13446         * config/i386/subst.md
13447         (define_mode_iterator SUBST_V): Update.
13448         (define_mode_iterator SUBST_A): Ditto.
13449         (define_subst_attr "mask_operand7"): New.
13450         (define_subst_attr "mask_operand10"): New.
13451         (define_subst_attr "mask_operand_arg34") : New.
13452         (define_subst_attr "mask_expand_op3"): New.
13453         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
13454         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
13455         (define_subst_attr "mask_avx512vl_condition"): New.
13456         (define_subst_attr "round_mask_operand4"): Ditto.
13457         (define_subst_attr "round_mask_scalar_op3"): Delete.
13458         (define_subst_attr "round_mask_op4"): New.
13459         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
13460         V16SImode.
13461         (define_subst_attr "round_modev8sf_condition"): New.
13462         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
13463         <MODE>mode.
13464         (define_subst_attr "round_saeonly_mask_operand4"): New.
13465         (define_subst_attr "round_saeonly_mask_op4"): New.
13466         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
13467         V8DImode, V16SImode.
13468         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
13469         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
13470         (define_subst_attr "mask_expand4_args"): New.
13471         (define_subst "mask_expand4"): New.
13473 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13474             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13475             Anna Tikhonova  <anna.tikhonova@intel.com>
13476             Ilya Tocar  <ilya.tocar@intel.com>
13477             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13478             Ilya Verbin  <ilya.verbin@intel.com>
13479             Kirill Yukhin  <kirill.yukhin@intel.com>
13480             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13482         * config/i386/i386.md
13483         (define_attr "isa"): Add avx512bw,noavx512bw.
13484         (define_attr "enabled"): Ditto.
13485         (define_split): Add 32/64-bit mask logic.
13486         (define_insn "*k<logic>qi"): New.
13487         (define_insn "*k<logic>hi"): New.
13488         (define_insn "*anddi_1"): Add mask version.
13489         (define_insn "*andsi_1"): Ditto.
13490         (define_insn "*<code><mode>_1"): Ditto.
13491         (define_insn "*<code>hi_1"): Ditto.
13492         (define_insn "kxnor<mode>"): New.
13493         (define_insn "kunpcksi"): New.
13494         (define_insn "kunpckdi"): New.
13495         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
13496         (define_insn "*one_cmplhi2_1"): Ditto.
13498 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13500             Anna Tikhonova  <anna.tikhonova@intel.com>
13501             Ilya Tocar  <ilya.tocar@intel.com>
13502             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13503             Ilya Verbin  <ilya.verbin@intel.com>
13504             Kirill Yukhin  <kirill.yukhin@intel.com>
13505             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13507         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
13508         V32HImode.
13510 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13511             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13512             Anna Tikhonova  <anna.tikhonova@intel.com>
13513             Ilya Tocar  <ilya.tocar@intel.com>
13514             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13515             Ilya Verbin  <ilya.verbin@intel.com>
13516             Kirill Yukhin  <kirill.yukhin@intel.com>
13517             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13519         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
13520         registers.
13521         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
13522         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
13523         xmm/ymm16+ when availble.
13524         * config/i386/i386.h
13525         (HARD_REGNO_NREGS): Add mask regs.
13526         (VALID_AVX512F_REG_MODE): Ditto.
13527         (VALID_AVX512F_REG_MODE) : Define.
13528         (VALID_MASK_AVX512BW_MODE): Ditto.
13529         (reg_class) (MASK_REG_P(X)): Define.
13530         * config/i386/i386.md: Do not split long moves with mask register,
13531         use kmovb if avx512bw is availible.
13532         (movdi_internal): Handle mask registers.
13534 2014-08-14  Richard Biener  <rguenther@suse.de>
13536         PR tree-optimization/62081
13537         * tree-ssa-loop.c (pass_fix_loops): New pass.
13538         (pass_tree_loop::gate):  Do not fixup loops here.
13539         * tree-pass.h (make_pass_fix_loops): Declare.
13540         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
13542 2014-08-14  Richard Biener  <rguenther@suse.de>
13544         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
13545         (type_hash_canon): ... this and avoid 2nd lookup for the add.
13547 2014-08-14  Richard Biener  <rguenther@suse.de>
13549         PR tree-optimization/62090
13550         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
13551         (fold_builtin_2): Do not fold sprintf.
13552         (fold_builtin_3): Likewise.
13553         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
13554         moved from builtins.c.
13555         (gimple_fold_builtin): Fold sprintf.
13557 2014-08-14  Richard Biener  <rguenther@suse.de>
13559         PR rtl-optimization/62079
13560         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
13561         run cleanup_cfg.
13563 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
13565         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
13566         current_function_decl.
13568 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
13570         * cgraph.c (cgraph_node::function_symbol): Fix wrong
13571         cgraph_function_node to cgraph_node::function_symbol
13572         refactoring.
13574 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13576         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
13577         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
13579 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
13581         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
13582         warning.
13584 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
13586         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
13587         generator.
13589 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
13591         PR target/62025
13592         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
13593         any registers that are used in mem_insn.
13595 2014-08-12  Steve Ellcey  <sellcey@mips.com>
13597         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
13599 2014-08-12  Steve Ellcey  <sellcey@mips.com>
13601         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
13602         (MULTILIB_DIRNAMES): Ditto.
13603         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
13604         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
13605         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
13606         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
13607         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
13608         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
13610 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13612         PR target/61413
13613         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
13614         of __ARM_SIZEOF_WCHAR_T.
13616 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13618         PR target/62098
13619         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
13620         Remove unnecessary attributes.
13622 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
13624         * internal-fn.c (init_internal_fns): Fix off-by-one.
13626 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13627             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13628             Anna Tikhonova  <anna.tikhonova@intel.com>
13629             Ilya Tocar  <ilya.tocar@intel.com>
13630             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13631             Ilya Verbin  <ilya.verbin@intel.com>
13632             Kirill Yukhin  <kirill.yukhin@intel.com>
13633             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13635         * config/i386/i386.c (standard_sse_constant_opcode): Use
13636         vpxord/vpternlog if avx512 is availible.
13638 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13640         PR middle-end/62103
13641         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
13642         bitfields, that is when size doesn't match the size of type or the
13643         size of the constructor.
13645 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13647         * config/rs6000/constraints.md (wh constraint): New constraint,
13648         for FP registers if direct move is available.
13649         (wi constraint): New constraint, for VSX/FP registers that can
13650         handle 64-bit integers.
13651         (wj constraint): New constraint for VSX/FP registers that can
13652         handle 64-bit integers for direct moves.
13653         (wk constraint): New constraint for VSX/FP registers that can
13654         handle 64-bit doubles for direct moves.
13655         (wy constraint): Make documentation match implementation.
13657         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
13658         scalar_in_vmx_p field to simplify tests of whether SFmode or
13659         DFmode can go in the Altivec registers.
13660         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
13661         (rs6000_setup_reg_addr_masks): Likewise.
13662         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
13663         field, and wh/wi/wj/wk constraints.
13664         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
13665         the wh/wi/wj/wk constraints.
13666         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
13667         upper registers, prefer VSX registers unless the operation is a
13668         memory operation with REG+OFFSET addressing.
13670         * config/rs6000/vsx.md (VSr mode attribute): Add support for
13671         DImode.  Change SFmode to use ww constraint instead of d to allow
13672         SF registers in the upper registers.
13673         (VSr2): Likewise.
13674         (VSr3): Likewise.
13675         (VSr5): Fix thinko in comment.
13676         (VSa): New mode attribute that is an alternative to wa, that
13677         returns the VSX register class that a mode can go in, but may not
13678         be the preferred register class.
13679         (VS_64dm): New mode attribute for appropriate register classes for
13680         referencing 64-bit elements of vectors for direct moves and normal
13681         moves.
13682         (VS_64reg): Likewise.
13683         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
13684         register allocator to only registers the data type can handle.
13685         (vsx_le_perm_load_<mode>): Likewise.
13686         (vsx_le_perm_store_<mode>): Likewise.
13687         (vsx_xxpermdi2_le_<mode>): Likewise.
13688         (vsx_xxpermdi4_le_<mode>): Likewise.
13689         (vsx_lxvd2x2_le_<mode>): Likewise.
13690         (vsx_lxvd2x4_le_<mode>): Likewise.
13691         (vsx_stxvd2x2_le_<mode>): Likewise.
13692         (vsx_add<mode>3): Likewise.
13693         (vsx_sub<mode>3): Likewise.
13694         (vsx_mul<mode>3): Likewise.
13695         (vsx_div<mode>3): Likewise.
13696         (vsx_tdiv<mode>3_internal): Likewise.
13697         (vsx_fre<mode>2): Likewise.
13698         (vsx_neg<mode>2): Likewise.
13699         (vsx_abs<mode>2): Likewise.
13700         (vsx_nabs<mode>2): Likewise.
13701         (vsx_smax<mode>3): Likewise.
13702         (vsx_smin<mode>3): Likewise.
13703         (vsx_sqrt<mode>2): Likewise.
13704         (vsx_rsqrte<mode>2): Likewise.
13705         (vsx_tsqrt<mode>2_internal): Likewise.
13706         (vsx_fms<mode>4): Likewise.
13707         (vsx_nfma<mode>4): Likewise.
13708         (vsx_eq<mode>): Likewise.
13709         (vsx_gt<mode>): Likewise.
13710         (vsx_ge<mode>): Likewise.
13711         (vsx_eq<mode>_p): Likewise.
13712         (vsx_gt<mode>_p): Likewise.
13713         (vsx_ge<mode>_p): Likewise.
13714         (vsx_xxsel<mode>): Likewise.
13715         (vsx_xxsel<mode>_uns): Likewise.
13716         (vsx_copysign<mode>3): Likewise.
13717         (vsx_float<VSi><mode>2): Likewise.
13718         (vsx_floatuns<VSi><mode>2): Likewise.
13719         (vsx_fix_trunc<mode><VSi>2): Likewise.
13720         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
13721         (vsx_x<VSv>r<VSs>i): Likewise.
13722         (vsx_x<VSv>r<VSs>ic): Likewise.
13723         (vsx_btrunc<mode>2): Likewise.
13724         (vsx_b2trunc<mode>2): Likewise.
13725         (vsx_floor<mode>2): Likewise.
13726         (vsx_ceil<mode>2): Likewise.
13727         (vsx_<VS_spdp_insn>): Likewise.
13728         (vsx_xscvspdp): Likewise.
13729         (vsx_xvcvspuxds): Likewise.
13730         (vsx_float_fix_<mode>2): Likewise.
13731         (vsx_set_<mode>): Likewise.
13732         (vsx_extract_<mode>_internal1): Likewise.
13733         (vsx_extract_<mode>_internal2): Likewise.
13734         (vsx_extract_<mode>_load): Likewise.
13735         (vsx_extract_<mode>_store): Likewise.
13736         (vsx_splat_<mode>): Likewise.
13737         (vsx_xxspltw_<mode>): Likewise.
13738         (vsx_xxspltw_<mode>_direct): Likewise.
13739         (vsx_xxmrghw_<mode>): Likewise.
13740         (vsx_xxmrglw_<mode>): Likewise.
13741         (vsx_xxsldwi_<mode>): Likewise.
13742         (vsx_xscvdpspn): Tighten constraints to only use register classes
13743         the types use.
13744         (vsx_xscvspdpn): Likewise.
13745         (vsx_xscvdpspn_scalar): Likewise.
13747         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
13748         wj, and wk constraints.
13749         (GPR_REG_CLASS_P): New helper macro for register classes targeting
13750         general purpose registers.
13752         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
13753         direct moves.
13754         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
13755         DImode instead of wm.  Use wk constraint for direct move of DFmode
13756         instead of wm.
13757         (extendsidi2_lfiwax): Likewise.
13758         (lfiwax): Likewise.
13759         (lfiwzx): Likewise.
13760         (movdi_internal64): Likewise.
13762         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
13763         wk constraints. Make the wy constraint documentation match them
13764         implementation.
13766 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
13768         Replacement of isl_int by isl_val
13769         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
13770         (compute_bounds_for_param): use isl_val instead of isl_int
13771         (compute_bounds_for_loop): likewise
13772         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
13773         (build_linearized_memory_access): use isl_val instead of isl_int
13774         (pdr_stride_in_loop): likewise
13775         * graphite-optimize-isl.c:
13776         (getPrevectorMap): use isl_val instead of isl_int
13777         * graphite-poly.c:
13778         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
13779         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
13780         (extern the_isl_ctx): declare
13781         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
13782         (extract_affine_gmp): likewise
13783         (wrap): likewise
13784         (build_loop_iteration_domains): likewise
13785         (add_param_constraints): likewise
13787 2014-08-11  Richard Biener  <rguenther@suse.de>
13789         PR tree-optimization/62075
13790         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
13791         handle uses in patterns.
13793 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13794             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13795             Anna Tikhonova  <anna.tikhonova@intel.com>
13796             Ilya Tocar  <ilya.tocar@intel.com>
13797             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13798             Ilya Verbin  <ilya.verbin@intel.com>
13799             Kirill Yukhin  <kirill.yukhin@intel.com>
13800             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13802         * common/config/i386/i386-common.c
13803         (OPTION_MASK_ISA_AVX512VL_SET): Define.
13804         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
13805         (ix86_handle_option): Handle OPT_mavx512vl.
13806         * config/i386/cpuid.h (bit_AVX512VL): Define.
13807         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
13808         set -mavx512vl accordingly.
13809         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13810         OPTION_MASK_ISA_AVX512VL.
13811         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
13812         (ix86_option_override_internal): Define PTA_AVX512VL, handle
13813         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
13814         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
13815         * config/i386/i386.h (TARGET_AVX512VL): Define.
13816         (TARGET_AVX512VL_P(x)): Ditto.
13817         * config/i386/i386.opt: Add mavx512vl.
13819 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
13821         PR tree-optimization/62073
13822         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
13823         a basic block.
13825 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13826             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13827             Anna Tikhonova  <anna.tikhonova@intel.com>
13828             Ilya Tocar  <ilya.tocar@intel.com>
13829             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13830             Ilya Verbin  <ilya.verbin@intel.com>
13831             Kirill Yukhin  <kirill.yukhin@intel.com>
13832             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13834         * common/config/i386/i386-common.c
13835         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
13836         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
13837         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
13838         (ix86_handle_option): Handle OPT_mavx512bw.
13839         * config/i386/cpuid.h (bit_AVX512BW): Define.
13840         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
13841         set -mavx512bw accordingly.
13842         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13843         OPTION_MASK_ISA_AVX512BW.
13844         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
13845         (ix86_option_override_internal): Define PTA_AVX512BW, handle
13846         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
13847         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
13848         * config/i386/i386.h (TARGET_AVX512BW): Define.
13849         (TARGET_AVX512BW_P(x)): Ditto.
13850         * config/i386/i386.opt: Add mavx512bw.
13852 2014-08-11  Richard Biener  <rguenther@suse.de>
13854         PR tree-optimization/62070
13855         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
13856         Remove SSA checking.
13858 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13860         * asan.c (asan_check_flags): New enum.
13861         (build_check_stmt_with_calls): Removed function.
13862         (build_check_stmt): Split inlining logic to
13863         asan_expand_check_ifn.
13864         (instrument_derefs): Rename parameter.
13865         (instrument_mem_region_access): Rename parameter.
13866         (instrument_strlen_call): Likewise.
13867         (asan_expand_check_ifn): New function.
13868         (asan_instrument): Remove old code.
13869         (pass_sanopt::execute): Change handling of
13870         asan-instrumentation-with-call-threshold.
13871         (asan_clear_shadow): Fix formatting.
13872         (asan_function_start): Likewise.
13873         (asan_emit_stack_protection): Likewise.
13874         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
13875         Update description.
13876         * internal-fn.c (expand_ASAN_CHECK): New function.
13877         * internal-fn.def (ASAN_CHECK): New internal function.
13878         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
13879         Update description.
13880         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
13881         * tree.c: Small comment fix.
13883 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13885         * gimple.c (gimple_call_fnspec): Support internal functions.
13886         (gimple_call_return_flags): Use const.
13887         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
13888         * internal-fn.def: Add fnspec information.
13889         * internal-fn.h (internal_fn_fnspec): New function.
13890         (init_internal_fns): Declare new function.
13891         * internal-fn.c (internal_fn_fnspec_array): New global variable.
13892         (init_internal_fns): New function.
13893         * tree-core.h: Update macro call.
13894         * tree.c (build_common_builtin_nodes): Initialize internal fns.
13896 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
13898         * lto-streamer.h (struct output_block::symbol): Change from
13899         struct symtab_node to plain symtab_node.
13900         (referenced_from_this_partition_p): Change first parameter
13901         from struct symtab_node to plain symtab_node.
13903 2014-08-10  Marek Polacek  <polacek@redhat.com>
13905         PR c/51849
13906         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
13908 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
13910         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
13911         DECL correctly; do not give up on types in static storage.
13913 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
13915         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
13917 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
13919         * graphite-isl-ast-to-gimple.c:
13920         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
13922         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
13924 2014-08-08  Guozhi Wei  <carrot@google.com>
13926         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
13928 2014-08-08  Cary Coutant  <ccoutant@google.com>
13930         * dwarf2out.c (get_skeleton_type_unit): Remove.
13931         (output_skeleton_debug_sections): Remove skeleton type units.
13932         (output_comdat_type_unit): Likewise.
13933         (dwarf2out_finish): Likewise.
13935 2014-08-07  Yi Yang  <ahyangyi@google.com>
13937         * predict.c (expr_expected_value_1): Remove the redundant assignment.
13939 2014-08-08  Richard Biener  <rguenther@suse.de>
13941         * lto-streamer.h (struct lto_input_block): Make it a class
13942         with a constructor.
13943         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
13944         (struct lto_function_header, struct lto_simple_header,
13945         struct lto_simple_header_with_strings,
13946         struct lto_decl_header, struct lto_function_header): Make
13947         a simple inheritance hieararchy.  Remove unused fields.
13948         (struct lto_asm_header): Remove.
13949         * lto-streamer-out.c (produce_asm): Adjust.
13950         (lto_output_toplevel_asms): Likewise.
13951         (produce_asm_for_decls): Likewise.
13952         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13953         * data-streamer-in.c (string_for_index): Likewise.
13954         * ipa-inline-analysis.c (inline_read_section): Likewise.
13955         * ipa-prop.c (ipa_prop_read_section): Likewise.
13956         (read_replacements_section): Likewise.
13957         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13958         * lto-section-in.c (lto_create_simple_input_block): Likewise.
13959         (lto_destroy_simple_input_block): Likewise.
13960         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13961         (lto_input_toplevel_asms): Likewise.
13963 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13964             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13965             Anna Tikhonova  <anna.tikhonova@intel.com>
13966             Ilya Tocar  <ilya.tocar@intel.com>
13967             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13968             Ilya Verbin  <ilya.verbin@intel.com>
13969             Kirill Yukhin  <kirill.yukhin@intel.com>
13970             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13972         * common/config/i386/i386-common.c
13973         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13974         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13975         (ix86_handle_option): Handle OPT_mavx512dq.
13976         * config/i386/cpuid.h (bit_AVX512DQ): Define.
13977         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13978         set -mavx512dq accordingly.
13979         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13980         OPTION_MASK_ISA_AVX512DQ.
13981         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13982         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13983         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13984         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13985         * config/i386/i386.h (TARGET_AVX512DQ): Define.
13986         (TARGET_AVX512DQ_P(x)): Ditto.
13987         * config/i386/i386.opt: Add mavx512dq.
13989 2014-08-08  Richard Biener  <rguenther@suse.de>
13991         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13992         target_percent, target_percent_s): Export.
13993         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13994         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13995         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13996         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13997         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13998         Move to gimple-fold.c.
13999         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
14000         strcat and strcpy.
14001         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
14002         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
14003         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
14004         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
14005         (rewrite_call_expr_array): Remove.
14006         (fold_builtin_sprintf_chk): Likewise.
14007         (fold_builtin_snprintf_chk): Likewise.
14008         (fold_builtin_varargs): Remove handling of sprintf_chk,
14009         vsprintf_chk, snprintf_chk and vsnprintf_chk.
14010         (gimple_fold_builtin_sprintf_chk): Remove.
14011         (gimple_fold_builtin_snprintf_chk): Likewise.
14012         (gimple_fold_builtin_varargs): Likewise.
14013         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
14014         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
14015         * gimple.c (gimple_seq_add_seq_without_update): New function.
14016         * gimple.h (gimple_seq_add_seq_without_update): Declare.
14017         * gimple-fold.c: Include output.h.
14018         (gsi_replace_with_seq_vops): New function, split out from ...
14019         (gimplify_and_update_call_from_tree): ... here.
14020         (replace_call_with_value): New function.
14021         (replace_call_with_call_and_fold): Likewise.
14022         (var_decl_component_p): Moved from builtins.c.
14023         (gimple_fold_builtin_memory_op): Moved from builtins.c
14024         fold_builtin_memory_op and rewritten to GIMPLE.
14025         (gimple_fold_builtin_memset): Likewise.
14026         (gimple_fold_builtin_strcpy): Likewise.
14027         (gimple_fold_builtin_strncpy): Likewise.
14028         (gimple_fold_builtin_strcat): Likewise.
14029         (gimple_fold_builtin_fputs): Likewise.
14030         (gimple_fold_builtin_memory_chk): Likewise.
14031         (gimple_fold_builtin_stxcpy_chk): Likewise.
14032         (gimple_fold_builtin_stxncpy_chk): Likewise.
14033         (gimple_fold_builtin_snprintf_chk): Likewise.
14034         (gimple_fold_builtin_sprintf_chk): Likewise.
14035         (gimple_fold_builtin_strlen): New function.
14036         (gimple_fold_builtin_with_strlen): New function split out from
14037         gimple_fold_builtin.
14038         (gimple_fold_builtin): Change signature and handle
14039         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
14040         here.  Call gimple_fold_builtin_with_strlen.
14041         (gimple_fold_call): Adjust.
14043 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
14045         * calls.c (precompute_arguments): Check
14046          promoted_for_signed_and_unsigned_p and set the promoted mode.
14047         (promoted_for_signed_and_unsigned_p): New function.
14048         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
14049         and set the promoted mode.
14050         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
14051         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
14052         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
14055 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
14057         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
14058         instead of SUBREG_PROMOTED_UNSIGNED_SET.
14059         (expand_call): Likewise.
14060         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
14061         to get promoted mode.
14062         * combine.c (record_promoted_value): Skip > 0 comparison with
14063         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
14064         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
14065         of SUBREG_PROMOTED_UNSIGNED_P.
14066         (convert_modes): Likewise.
14067         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
14068         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
14069         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
14070         SUBREG_PROMOTED_UNSIGNED_SET.
14071         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
14072         instead of SUBREG_PROMOTED_UNSIGNED_SET.
14073         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
14074         SUBREG_PROMOTED_SET.
14075         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
14076         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
14077         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
14078         of SUBREG_PROMOTED_UNSIGNED_P.
14079         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
14080         (SUBREG_PROMOTED_SET): New define.
14081         (SUBREG_PROMOTED_GET): Likewise.
14082         (SUBREG_PROMOTED_SIGN): Likewise.
14083         (SUBREG_PROMOTED_SIGNED_P): Likewise.
14084         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
14085         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
14086         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
14087         instead of SUBREG_PROMOTED_UNSIGNED_GET.
14088         (nonzero_bits1): Skip > 0 comparison with the results as
14089         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
14090         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
14091         of !SUBREG_PROMOTED_UNSIGNED_P.
14092         * simplify-rtx.c (simplify_unary_operation_1): Use new
14093         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
14094         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
14095         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
14096         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
14098 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
14100         * ipa-devirt.c: Include gimple-pretty-print.h
14101         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
14102         further tests.
14103         (decl_maybe_in_construction_p): Fix conditional on cdtor check
14104         (get_polymorphic_call_info): Fix return value
14105         (type_change_info): New sturcture based on ipa-prop
14106         variant.
14107         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
14108         based on ipa-prop variant.
14109         (extr_type_from_vtbl_ptr_store): New function
14110         based on ipa-prop variant.
14111         (record_known_type): New function.
14112         (check_stmt_for_type_change): New function.
14113         (get_dynamic_type): New function.
14114         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
14115         * tree-ssa-pre.c: ipa-utils.h
14116         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
14117         machinery; sanity check with ipa-prop devirtualization.
14118         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
14119         polymorphic flag.
14121 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
14123         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
14124         * alias.c, cfgexpand.c, cgraphbuild.c,
14125         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
14126         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
14127         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
14128         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
14129         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
14130         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14131         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
14132         dse.c, except.c, gengtype.c, gimple-expr.c,
14133         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
14134         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
14135         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
14136         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
14137         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
14138         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
14139         pointer-set.h.
14140         * pointer-set.c: Remove file.
14141         * pointer-set.h: Remove file.
14143 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14145         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
14146         * config/arm/types.md (f_sels, f_seld): Delete.
14148 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14150         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
14151         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
14152         (aarch64_movdi_<mode>high): Likewise.
14153         (aarch64_mov<mode>high_di): Likewise.
14154         (aarch64_movdi_<mode>low): Likewise.
14155         (aarch64_mov<mode>low_di): Likewise.
14156         (aarch64_movtilow_tilow): Likewise.
14157         Add comment explaining usage of fp,simd attributes and of
14158         TARGET_FLOAT and TARGET_SIMD.
14160 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
14161             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14163         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
14164         Use MOVN when one of the half-words is 0xffff.
14166 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
14168         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
14170 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14172         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
14173         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
14174         (rfs_str): String corresponding to RFS_* constants.
14175         (rank_for_schedule_stats_t): New typedef.
14176         (rank_for_schedule_stats): New static variable.
14177         (rfs_result): New static function.
14178         (rank_for_schedule): Track statistics for deciding heuristics.
14179         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
14180         static functions.
14181         (ready_sort): Use them for debug printouts.
14182         (schedule_block): Init statistics state.  Print statistics on
14183         rank_for_schedule decisions.
14185 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14187         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
14189 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
14191         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
14192         constraint.
14194 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
14196         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
14197         function to not conflict.
14198         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
14199         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
14200         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
14201         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
14202         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
14203         of pointer_map.
14205 2014-08-07  Marek Polacek  <polacek@redhat.com>
14207         * fold-const.c (fold_binary_loc): Add folding of
14208         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
14210 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
14212         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
14213         instead of type size.
14214         (ASM_FINISH_DECLARE_OBJECT): Likewise.
14216 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
14218         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
14219         (*thumb1_movqi_insn): Likewise.
14220         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
14222 2014-08-07  Tom de Vries  <tom@codesourcery.com>
14224         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14225         (glibc_2_11_or_earlier): Remove effective-target keywords.
14227 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
14229         * config/arm/arm.c (bdesc_2arg): Fix typo.
14230         (arm_atomic_assign_expand_fenv): Remove The default implementation.
14232 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14234         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
14236 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
14238         PR debug/61923
14239         * haifa-sched.c (advance_one_cycle): Fix dump.
14240         (schedule_block): Don't advance cycle if we are already at the
14241         beginning of the cycle.
14243 2014-08-06  Martin Jambor  <mjambor@suse.cz>
14245         PR ipa/61393
14246         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
14248 2014-08-06  Richard Biener  <rguenther@suse.de>
14250         PR lto/62034
14251         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
14252         SCCs here.
14253         (lto_input_tree): Pop SCCs here.
14255 2014-08-06  Richard Biener  <rguenther@suse.de>
14257         PR tree-optimization/61320
14258         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
14259         handle misaligned loads.
14261 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
14263         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
14264         (aarch64_expand_vec_perm_const): Check for dup before zip.
14266 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14268         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
14269         CONST_INT_P instead of GET_CODE and compare.
14270         (aarch64_select_cc_mode): Likewise.
14271         (aarch64_print_operand): Likewise.
14272         (aarch64_rtx_costs): Likewise.
14273         (aarch64_simd_valid_immediate): Likewise.
14274         (aarch64_simd_check_vect_par_cnst_half): Likewise.
14275         (aarch64_simd_emit_pair_result_insn): Likewise.
14277 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
14279         * gdbhooks.py (find_gcc_source_dir): New helper function.
14280         (class PassNames): New class, locating and parsing passes.def.
14281         (class BreakOnPass): New command "break-on-pass".
14283 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
14285         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
14286         getting olde.
14288 2014-08-05  Richard Biener  <rguenther@suse.de>
14290         PR rtl-optimization/61672
14291         * emit-rtl.h (mem_attrs_eq_p): Declare.
14292         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
14293         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
14294         * cfgcleanup.c (merge_memattrs): Likewise.
14295         Include emit-rtl.h.
14297 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14299         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
14300         rather than singleton vectors.
14301         (vqdmlsls_lane_s32): Likewise.
14303 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14305         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
14306         Use VSDQ_HSI mode iterator.
14307         (aarch64_sqrdmulh_laneq<mode>): Likewise.
14308         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
14309         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
14310         Use BUILTIN_VDQHS macro.
14311         (sqrdmulh_laneq): Likewise.
14312         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
14313         (vqdmlals_laneq_s32): Likewise.
14314         (vqdmlslh_laneq_s16): Likewise.
14315         (vqdmlsls_laneq_s32): Likewise.
14316         (vqdmulhh_laneq_s16): Likewise.
14317         (vqdmulhs_laneq_s32): Likewise.
14318         (vqrdmulhh_laneq_s16): Likewise.
14319         (vqrdmulhs_laneq_s32): Likewise.
14321 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14323         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
14324         (vmuld_laneq_f64): Likewise.
14325         (vmuls_laneq_f32): Likewise.
14326         (vmul_n_f64): Likewise.
14327         (vmuld_lane_f64): Reimplement in C.
14328         (vmuls_lane_f32): Likewise.
14330 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14332         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
14333         to reservation.
14334         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
14336 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14338         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
14339         (rbitsi2): Likewise.
14340         (*arm_rev): Set predicable and predicable_short_it attributes.
14342 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14344         * convert.c (convert_to_integer): Guard transformation to lrint by
14345         -fno-math-errno.
14347 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
14349         * config/aarch64/aarch64-builtins.c
14350         (aarch64_simd_builtin_type_mode): Delete.
14351         (v8qi_UP): Remap to V8QImode.
14352         (v4hi_UP): Remap to V4HImode.
14353         (v2si_UP): Remap to V2SImode.
14354         (v2sf_UP): Remap to V2SFmode.
14355         (v1df_UP): Remap to V1DFmode.
14356         (di_UP): Remap to DImode.
14357         (df_UP): Remap to DFmode.
14358         (v16qi_UP):V16QImode.
14359         (v8hi_UP): Remap to V8HImode.
14360         (v4si_UP): Remap to V4SImode.
14361         (v4sf_UP): Remap to V4SFmode.
14362         (v2di_UP): Remap to V2DImode.
14363         (v2df_UP): Remap to V2DFmode.
14364         (ti_UP): Remap to TImode.
14365         (ei_UP): Remap to EImode.
14366         (oi_UP): Remap to OImode.
14367         (ci_UP): Map to CImode.
14368         (xi_UP): Remap to XImode.
14369         (si_UP): Remap to SImode.
14370         (sf_UP): Remap to SFmode.
14371         (hi_UP): Remap to HImode.
14372         (qi_UP): Remap to QImode.
14373         (aarch64_simd_builtin_datum): Make mode a machine_mode.
14374         (VAR1): Build builtin name.
14375         (aarch64_init_simd_builtins): Remove dead code.
14377 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
14379         * graphite-isl-ast-to-gimple.c:
14380         (set_options): New function.
14381         (scop_to_isl_ast): Add calling of set_options.
14383 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
14385         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
14386         (analyze_iv_to_split_insn): Don't initialize them.
14387         (get_ivts_expr): Removed.
14388         (allocate_basic_variable, insert_base_initialization): Use
14389         SET_SRC instead of *get_ivts_expr.
14390         (split_iv): Use &SET_SRC instead of get_ivts_expr.
14392 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
14394         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
14395         (translate_isl_ast_for_loop): Add checking of the
14396         flag_loop_parallelize_all.
14397         (ast_build_before_for): New function.
14398         (scop_to_isl_ast): Add checking of the
14399         flag_loop_parallelize_all.
14400         * graphite-dependences.c: Move the defenition of the
14401         scop_get_dependences from graphite-optimize-isl.c to this file.
14402         (apply_schedule_on_deps): Add checking of the ux's emptiness.
14403         (carries_deps): Add checking of the x's value.
14404         * graphite-optimize-isl.c: Move the defenition of the
14405         scop_get_dependences to graphite-dependences.c.
14406         * graphite-poly.h: Add declarations of scop_get_dependences
14407         and carries_deps.
14409 2014-08-04  Rohit  <rohitarulraj@freescale.com>
14411         PR target/60102
14412         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
14413         names.
14414         (alt_reg_names): Likewise.
14415         (rs6000_dwarf_register_span): For SPE high registers, replace
14416         dwarf register numbers with GCC hard register numbers.
14417         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
14418         (rs6000_dbx_register_number): For SPE high registers, return dwarf
14419         register number for the corresponding GCC hard register number.
14420         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
14421         newly added GCC hard register numbers for SPE high registers.
14422         (DWARF_FRAME_REGISTERS):  Likewise.
14423         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
14424         (DWARF_FRAME_REGNUM): Likewise.
14425         (FIXED_REGISTERS): Likewise.
14426         (CALL_USED_REGISTERS): Likewise.
14427         (CALL_REALLY_USED_REGISTERS): Likewise.
14428         (REG_ALLOC_ORDER): Likewise.
14429         (enum reg_class): Likewise.
14430         (REG_CLASS_NAMES): Likewise.
14431         (REG_CLASS_CONTENTS): Likewise.
14432         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
14434 2014-08-04  Richard Biener  <rguenther@suse.de>
14436         * gimple-fold.h (gimple_fold_builtin): Remove.
14437         * gimple-fold.c (gimple_fold_builtin): Make static.
14438         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
14439         fold_stmt, not gimple_fold_builtin.
14441 2014-08-04  Martin Liska <mliska@suse.cz>
14443         * cgraph.h (csi_end_p): Removed.
14444         (csi_next): Likewise.
14445         (csi_node): Likewise.
14446         (csi_start): Likewise.
14447         (cgraph_node_in_set_p): Likewise.
14448         (cgraph_node_set_size): Likewise.
14449         (vsi_end_p): Likewise.
14450         (vsi_next): Likewise.
14451         (vsi_node): Likewise.
14452         (vsi_start): Likewise.
14453         (varpool_node_set_size): Likewise.
14454         (cgraph_node_set_nonempty_p): Likewise.
14455         (varpool_node_set_nonempty_p): Likewise.
14456         * cgraphunit.c (cgraph_process_new_functions): vec replaces
14457         cgraph_node_set.
14458         * ipa-inline-transform.c: Likewise.
14459         * ipa-utils.c (cgraph_node_set_new): Removed.
14460         (cgraph_node_set_add): Likewise.
14461         (cgraph_node_set_remove): Likewise.
14462         (cgraph_node_set_find): Likewise.
14463         (dump_cgraph_node_set): Likewise.
14464         (debug_cgraph_node_set): Likewise.
14465         (free_cgraph_node_set): Likewise.
14466         (varpool_node_set_new): Likewise.
14467         (varpool_node_set_add): Likewise.
14468         (varpool_node_set_remove): Likewise.
14469         (varpool_node_set_find): Likewise.
14470         (dump_varpool_node_set): Likewise.
14471         (free_varpool_node_set): Likewise.
14472         (debug_varpool_node_set): Likewise.
14473         * tree-emutls.c (struct tls_var_data):
14474         (emutls_index): Removed.
14475         (emutls_decl): Likewise.
14476         (gen_emutls_addr): Function implementation uses newly added
14477         hash_map<varpool_node *, tls_var_data>.
14478         (clear_access_vars): Likewise.
14479         (create_emultls_var): Likewise.
14480         (ipa_lower_emutls): Likewise.
14481         (reset_access): New function.
14483 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
14485         * config/i386/i386.c (ix86_option_override_internal): Add
14486         PTA_RDRND and PTA_MOVBE for bdver4.
14488 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14489             James Greenhalgh  <james.greenhalgh@arm.com>
14491         * doc/md.texi (clrsb): Document.
14492         (clz): Change reference to x into operand 1.
14493         (ctz): Likewise.
14494         (popcount): Likewise.
14496 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14498         PR target/61713
14499         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
14500         move to subtarget in serial version if result is ignored.
14502 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14503             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14505         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
14506         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
14507         (sched_analyze_insn): Update use of try_group_insn to
14508         sched_macro_fuse_insns.
14509         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
14510         arguments that are not conditional jumps.
14512 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
14514         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
14515         family information. Handle BTVER2 cpu with cpuid family value.
14517 2014-08-04  Tom de Vries  <tom@codesourcery.com>
14519         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14520         (glibc_2_11_or_earlier): Document effective-target keywords.
14522 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
14524         * ipa-devirt.c (odr_type_warn_count): Add type.
14525         (possible_polymorphic_call_targets): Set it.
14526         (ipa_devirt): Use it.
14528 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
14530         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
14531         Document.
14532         * ipa-devirt.c: Include hash-map.h
14533         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
14534         (clear_speculation): Break out of ...
14535         (get_class_context): ... here; speed up handling obviously useless
14536         speculations.
14537         (odr_type_warn_count, decl_warn_count): New structures.
14538         (final_warning_record): New structure.
14539         (final_warning_records): New static variable.
14540         (possible_polymorphic_call_targets): Cleanup handling of
14541         speculative info; do not build speculation when user do not care;
14542         record info about warnings when asked for.
14543         (add_decl_warning): New function.
14544         (type_warning_cmp): New function.
14545         (decl_warning_cmp): New function.
14546         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
14547         (gate): Enable pass when warnings are requested.
14548         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
14549         options.
14551 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
14553         * hash-map.h (default_hashmap_traits::mark_key_deleted):
14554         Fix cast.
14555         (hash_map::remove): New method.
14556         (hash_map::traverse): New method.
14557         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
14558         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
14559         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
14560         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
14561         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
14562         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
14563         pointer_map.
14565 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
14567         * hash-set.h: new File.
14568         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
14569         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
14570         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
14571         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
14572         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
14573         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
14574         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
14575         varpool.c: Use hash_set instead of pointer_set.
14577 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
14579         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
14581 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14583         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
14584         for frame access when strict_p is false.
14586 2014-08-01  Renlin Li <renlin.li@arm.com>
14587 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14589         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
14590         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
14591         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
14592         Declaration.
14593         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
14594         predicate.
14595         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
14596         aarch64_mem_pair_offset.
14598 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14600         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
14601         offset.
14602         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
14603         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
14605 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
14607         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
14609 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
14611         PR regression/61510
14612         * cgraphunit.c (analyze_functions): Use get_create rather than get
14613         for decls which are clones of abstract functions.
14615 2014-08-01  Martin Liska  <mliska@suse.cz>
14617         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
14618         * ipa-prop.h (count_formal_params): Global function created from static.
14619         * ipa-prop.c (count_formal_params): Likewise.
14620         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
14621         profiles for semantically equivalent functions.
14622         * passes.c (do_per_function): If we load body of a function
14623         during WPA, this condition should behave same.
14624         * varpool.c (ctor_for_folding): More tolerant assert for variable
14625         aliases created during WPA.
14627 2014-08-01  Martin Liska  <mliska@suse.cz>
14629         * doc/invoke.texi (Options That Control Optimization): Documentation
14630         for -foptimize-strlen introduced. Optimization levels default options
14631         fixed.
14633 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
14635         * opts.c (common_handle_option): Handle -fsanitize=alignment.
14636         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
14637         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
14638         type to bool.
14639         * stor-layout.h (min_align_of_type): New prototype.
14640         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
14641         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
14642         check.
14643         * ubsan.c: Include builtins.h.
14644         (ubsan_expand_bounds_ifn): Change return type to bool,
14645         always return true.
14646         (ubsan_expand_null_ifn): Change return type to bool, change
14647         argument to gimple_stmt_iterator *.  Handle both null and alignment
14648         sanitization, take type from ckind argument's type rather than
14649         first argument.
14650         (instrument_member_call): Removed.
14651         (instrument_mem_ref): Remove t argument, add mem and base arguments.
14652         Handle both null and alignment sanitization, don't say whole
14653         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
14654         call instead of 2 argument.
14655         (instrument_null): Adjust instrument_mem_ref caller.  Don't
14656         instrument calls here.
14657         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
14658         like SANITIZE_NULL.
14659         * stor-layout.c (min_align_of_type): New function.
14660         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
14661         Or it into SANITIZE_UNDEFINED.
14662         * doc/invoke.texi (-fsanitize=alignment): Document.
14664 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14666         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
14668 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14670         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
14671         inchash.
14672         (vn_reference_compute_hash): Dito.
14673         (vn_nary_op_compute_hash): Dito.
14674         (vn_phi_compute_hash): Dito.
14675         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
14677 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14679         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
14680         Rename to inchash:add_expr_commutative. Convert to inchash.
14681         (iterative_hash_hashable_expr): Rename to
14682         inchash:add_hashable_expr. Convert to inchash.
14683         (avail_expr_hash): Dito.
14685 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14687         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
14688         Convert to inchash.
14690 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14692         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
14694 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14696         * Makefile.in (OBJS): Add rtlhash.o
14697         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
14698         (loc_checksum): Dito.
14699         (loc_checksum_ordered): Dito.
14700         (hash_loc_operands): Dito.
14701         (hash_locs): Dito.
14702         (hash_loc_list): Dito.
14703         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
14704         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
14705         * rtlhash.c: New file.
14706         * rtlhash.h: New file.
14708 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14710         * inchash.h (inchash): Change inchash class to namespace.
14711         (class hash): ... Rename from inchash.
14712         (add_object): Move from macro to class template.
14713         * lto-streamer-out.c (hash_tree): Change inchash
14714         to inchash::hash.
14715         * tree.c (build_type_attribute_qual_variant): Dito.
14716         (type_hash_list): Dito.
14717         (attribute_hash_list): Dito.
14718         (iterative_hstate_expr): Rename to inchash::add_expr
14719         (build_range_type_1): Change inchash to inchash::hash
14720         and use hash::add_expr.
14721         (build_array_type_1): Dito.
14722         (build_function_type): Dito
14723         (build_method_type_directly): Dito.
14724         (build_offset_type): Dito.
14725         (build_complex_type): Dito.
14726         (make_vector_type): Dito.
14727         * tree.h (iterative_hash_expr): Dito.
14729 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
14731         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
14733 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14735         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
14736         correct alphabetical position.
14737         (vpaddd_f64): Rewrite using builtins.
14738         (vpaddd_s64): Move to correct alphabetical position.
14739         (vpaddd_u64): New.
14741 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
14743         PR target/61844
14744         * config/sh/sh.c (sh_legitimate_address_p,
14745         sh_legitimize_reload_address): Handle reg+reg address modes when
14746         ALLOW_INDEXED_ADDRESS is false.
14747         * config/sh/predicates.md (general_movsrc_operand,
14748         general_movdst_operand): Likewise.
14750 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14752         * config/aarch64/aarch64-builtins.c
14753         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
14754         BYTES_BIG_ENDIAN.
14756 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14758         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
14759         the generated mask based on BYTES_BIG_ENDIAN.
14760         (aarch64_simd_check_vect_par_cnst_half): New.
14761         * config/aarch64/aarch64-protos.h
14762         (aarch64_simd_check_vect_par_cnst_half): New.
14763         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
14764         the check out to aarch64_simd_check_vect_par_cnst_half.
14765         (vect_par_cnst_lo_half): Likewise.
14766         * config/aarch64/aarch64-simd.md
14767         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
14768         (move_hi_quad_<mode>): Always generate a low mask.
14770 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14772         * doc/invoke.texi (AVR Options): Add documentation about
14773         __AVR_DEVICE_NAME__ built-in macro.
14775 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
14777         PR target/61948
14778         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
14779         constraints are satisfied.
14780         (<shift>di3_neon): Likewise.
14782 2014-07-31  Richard Biener  <rguenther@suse.de>
14784         PR tree-optimization/61964
14785         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
14786         by structural equality.
14788 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
14790         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
14791         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
14792         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
14793         New enums.
14794         * gcc.c (sanitize_spec_function): Support new option.
14795         (SANITIZER_SPEC): Remove now redundant check.
14796         * opts.c (common_handle_option): Support new option.
14797         (finish_options): Check for incompatibilities.
14798         * toplev.c (process_options): Split userspace-specific checks.
14800 2014-07-31  Richard Biener  <rguenther@suse.de>
14802         * lto-streamer.h (struct output_block): Remove global.
14803         (struct data_in): Remove labels, num_named_labels and
14804         num_unnamed_labels.
14805         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
14806         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
14808 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
14810         PR c++/60517
14811         * common.opt (-Wreturn-local-addr): Moved from c.opt.
14812         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
14813         (isolate_path): New argument to avoid inserting a trap.
14814         (find_implicit_erroneous_behaviour): Handle returning the address
14815         of a local variable.
14816         (find_explicit_erroneous_behaviour): Likewise.
14818 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
14820         PR lto/61868
14821         * toplev.c (init_random_seed): Move piece of code never called to
14822         set_random_seed.
14823         (set_random_seed): see above.
14825 2014-07-31  Tom de Vries  <tom@codesourcery.com>
14827         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
14829 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
14831         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
14832         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
14834 2014-07-31  Richard Biener  <rguenther@suse.de>
14836         * data-streamer.h (streamer_write_data_stream): Declare here,
14837         renamed from ...
14838         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
14839         * lto-cgraph.c (lto_output_node): Adjust.
14840         (lto_output_varpool_node): Likewise.
14841         * data-streamer-out.c (streamer_string_index): Likewise.
14842         (streamer_write_data_stream, lto_append_block): Move from ...
14843         * lto-section-out.c (lto_output_data_stream,
14844         lto_append_block): ... here.
14846 2014-07-30  Mike Stump  <mikestump@comcast.net>
14848         * configure.ac: Also check for popen.
14849         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
14850         * configure: Regenerate.
14851         * config.in:  Regenerate.
14853 2014-07-30  Martin Jambor  <mjambor@suse.cz>
14855         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
14856         parameter to gimple.
14858 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14860         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
14861         address as second parameter to __tpf_eh_return routine.
14863 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
14865         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
14866         Thumb2.
14868 2014-07-30  Tom Tromey  <tromey@redhat.com>
14870         PR c/59855
14871         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
14872         * doc/extend.texi (Type Attributes): Document designated_init
14873         attribute.
14875 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
14877         * graphite-isl-ast-to-gimple.c:
14878         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
14879         (gcc_expression_from_isl_expression): Pass type to
14880         gcc_expression_from_isl_ast_expr_id.
14882 2014-07-30  Richard Biener  <rguenther@suse.de>
14884         * lto-streamer.h (lto_write_data): New function.
14885         * langhooks.c (lhd_append_data): Do not free block.
14886         * lto-section-out.c (lto_write_data): New function writing
14887         raw data to the current section.
14888         (lto_write_stream): Adjust for langhook semantic change.
14889         (lto_destroy_simple_output_block): Write header directly.
14890         * lto-opts.c (lto_write_options): Write options directly.
14891         * lto-streamer-out.c (produce_asm): Write heaeder directly.
14892         (lto_output_toplevel_asms): Likewise.
14893         (copy_function_or_variable): Copy data directly.
14894         (write_global_references): Output index table directly.
14895         (lto_output_decl_state_refs): Likewise.
14896         (write_symbol): Write data directly.
14897         (produce_symtab): Adjust.
14898         (produce_asm_for_decls): Output header and refs directly.
14900 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14902         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
14903         to speculative_targets
14904         (get_class_context): Fix handling of contextes without outer type;
14905         avoid matching non-polymorphic types in LTO.
14906         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
14907         parameter to speculative_targetsp; handle speculation.
14908         (dump_possible_polymorphic_call_targets): Update dumping.
14910 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14912         * common.opt (Wodr): Enable by default.
14914 2014-07-29  Olivier Hainque  <hainque@adacore.com>
14916         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
14918 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14920         PR bootstrap/61914
14921         * gengtype.c (strtoken): New function.
14922         (create_user_defined_type): Replace strtok with strtoken.
14924 2014-07-29  Nathan Sidwell  <nathan@acm.org>
14926         * gcov-io.c (gcov_var): Make hidden.
14927         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
14928         (gcov_do_dump): Declare.
14929         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
14931 2014-07-29  Martin Jambor  <mjambor@suse.cz>
14933         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
14934         parameter to gimple.
14935         (sra_modify_assign): Likewise.
14937 2014-07-29  Richard Biener  <rguenther@suse.de>
14939         PR middle-end/52478
14940         * expr.c (expand_expr_real_2): Revert last change.
14942 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14944         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
14945         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
14946         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
14947         call.
14948         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
14949         (contains_type_p): Forward declare.
14950         (polymorphic_call_target_hasher::hash): Hash speculative info.
14951         (polymorphic_call_target_hasher::equal): Compare speculative info.
14952         (get_class_context): Handle speuclation.
14953         (contains_type_p): Update.
14954         (get_polymorphic_call_info_for_decl): Update.
14955         (walk_ssa_copies): Break out from ...
14956         (get_polymorphic_call_info): ... here; set speculative context
14957         before giving up.
14958         * ipa-prop.c (ipa_write_indirect_edge_info,
14959         ipa_read_indirect_edge_info): Stream speculative context.
14960         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14961         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14962         SPECULATIVE_MAYBE_DERIVED_TYPE).
14963         (possible_polymorphic_call_targets overriders): Update.
14964         (dump_possible_polymorphic_call_targets overriders): Update.
14965         (dump_possible_polymorphic_call_target_p overriders): Update.
14967 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14969         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14970         ipa-devirt path; fix thinko there.
14972 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
14974         * config/i386/i386.c (ix86_return_in_memory): Replace one
14975         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14977 2014-07-28  Marek Polacek  <polacek@redhat.com>
14979         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
14981 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
14983         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14984         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14985         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14986         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14987         (USE_LD_AS_NEEDED): Likewise.
14988         (ASM_APP_ON): Likewise.
14989         (ASM_APP_OFF): Likewise.
14990         (TARGET_POSIX_IO): Likewise.
14991         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14992         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14993         (USE_LD_AS_NEEDED): Likewise.
14994         (ASM_APP_ON): Likewise.
14995         (ASM_APP_OFF): Likewise.
14996         (TARGET_POSIX_IO): Likewise.
14998 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
15000         PR middle-end/61734
15001         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
15002         operators other than the equality operators.
15004 2014-07-28  Richard Biener  <rguenther@suse.de>
15006         PR middle-end/52478
15007         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
15008         sure to register SImode ones, not only >= word_mode ones.
15009         * expr.c (expand_expr_real_2): When expanding -ftrapv
15010         binops do not use OPTAB_LIB_WIDEN.
15012 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
15014         PR middle-end/61919
15015         * tree-outof-ssa.c (insert_partition_copy_on_edge)
15016         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
15017         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
15018         inserting them in the insn stream.
15020 2014-07-28  Marek Polacek  <polacek@redhat.com>
15022         PR middle-end/61913
15023         * common.opt (Wodr): Add Var.
15025 2014-07-28  Richard Biener  <rguenther@suse.de>
15027         PR tree-optimization/61921
15028         * tree-ssa-structalias.c (create_variable_info_for_1): Check
15029         if there is a varpool node before dereferencing it.
15031 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
15033         * graphite-sese-to-poly.c:
15034         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
15035         id of the pbb), which contains pointer to the pbb1.
15037         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
15039 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
15041         * graphite-isl-ast-to-gimple.c:
15042         (graphite_create_new_guard): New function.
15043         (translate_isl_ast_node_if): New function.
15044         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
15046         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
15048 2014-07-27  Anthony Green  <green@moxielogic.com>
15050         * config.gcc: Add moxie-*-moxiebox* configuration.
15051         * config/moxie/moxiebox.h: New file.
15053 2014-07-26  Andrew Pinski  <apinski@cavium.com>
15055         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
15056         from the read only register.
15058 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
15060         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
15061         as the allocation class if it isn't likely to be spilled.
15063 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
15065         * rtl.h (tls_referenced_p): Declare.
15066         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
15067         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
15068         (mips_cannot_force_const_mem): Use tls_referenced_p.
15069         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
15070         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
15071         instead of pa_tls_referenced_p.
15072         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
15073         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
15074         (pa_legitimate_constant_p): Likewise.
15075         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
15076         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
15077         (rs6000_cannot_force_const_mem, rs6000_emit_move)
15078         (rs6000_address_for_altivec): Use tls_referenced_p instead of
15079         rs6000_tls_referenced_p.
15080         (rs6000_tls_symbol_ref_1): Delete.
15082 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
15084         PR target/44551
15085         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
15086         Optimize inverse of a VEC_CONCAT.
15088 2014-07-25  Xinliang David Li  <davidxl@google.com>
15090         * params.def: New parameter.
15091         * coverage.c (get_coverage_counts): Check new flag.
15092         (coverage_compute_profile_id): Check new flag.
15093         (coverage_begin_function): Check new flag.
15094         (coverage_end_function): Check new flag.
15095         * value-prof.c (coverage_node_map_initialized_p): New function.
15096         (init_node_map): Populate map with all functions.
15097         * doc/invoke.texi: Document new parameter.
15099 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
15100             Richard Biener <rguenther@suse.de>
15102         * lto-streamer-out.c (struct sccs): Turn to ...
15103         (class DFS): ... this one; refactor the DFS walk so it can
15104         be re-done on per-SCC basis.
15105         (DFS::DFS): New constructor.
15106         (DFS::~DFS): New destructor.
15107         (hash_tree): Add new MAP argument holding in-SCC hash values;
15108         remove POINTER_TYPE hashing hack.
15109         (scc_entry_compare): Rename to ...
15110         (DFS::scc_entry_compare): ... this one.
15111         (hash_scc): Rename to ...
15112         (DFS::hash_scc): ... this one; pass output_block instead
15113         of streamer_cache; work harder to get unique and stable SCC
15114         hashes.
15115         (DFS_write_tree): Rename to ...
15116         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
15117         (lto_output_tree): Update.
15119 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15121         * lto-streamer-out.c (hash_tree): Convert to inchash.
15123 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15125         * tree.c (build_type_attribute_qual_variant): Use inchash.
15126         (type_hash_list): Dito.
15127         (attribute_hash_list): Dito
15128         (iterative_hstate_expr): Dito.
15129         (iterative_hash_expr): Dito.
15130         (build_range_type_1): Dito.
15131         (build_array_type_1): Dito.
15132         (build_function_type): Dito.
15133         (build_method_type_directly): Dito.
15134         (build_offset_type): Dito.
15135         (build_complex_type): Dito.
15136         (make_vector_type): Dito.
15137         * tree.h (iterative_hash_expr): Add compat wrapper.
15138         (iterative_hstate_expr): Add.
15140 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15142         * Makefile.in (OBJS): Add inchash.o.
15143         (PLUGIN_HEADERS): Add inchash.h.
15144         * ipa-devirt.c: Include inchash.h.
15145         * lto-streamer-out.c: Dito.
15146         * tree-ssa-dom.c: Dito.
15147         * tree-ssa-pre.c: Dito.
15148         * tree-ssa-sccvn.c: Dito.
15149         * tree-ssa-tail-merge.c: Dito.
15150         * asan.c: Dito.
15151         * tree.c (iterative_hash_hashval_t): Move to ...
15152         (iterative_hash_host_wide_int): Move to ...
15153         * inchash.c: Here. New file.
15154         * tree.h (iterative_hash_hashval_t): Move to ...
15155         (iterative_hash_host_wide_int): Move to ...
15156         * inchash.h: Here. New file.
15158 2014-07-25  Richard Biener  <rguenther@suse.de>
15160         PR middle-end/61762
15161         PR middle-end/61894
15162         * fold-const.c (native_encode_int): Add and handle offset
15163         parameter to do partial encodings of expr.
15164         (native_encode_fixed): Likewise.
15165         (native_encode_real): Likewise.
15166         (native_encode_complex): Likewise.
15167         (native_encode_vector): Likewise.
15168         (native_encode_string): Likewise.
15169         (native_encode_expr): Likewise.
15170         * fold-const.c (native_encode_expr): Add offset parameter
15171         defaulting to -1.
15172         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
15173         (fold_ctor_reference): Handle all reads from tcc_constant
15174         ctors.
15176 2014-07-25  Richard Biener  <rguenther@suse.de>
15178         * tree-inline.c (estimate_move_cost): Mark speed_p argument
15179         as possibly unused.
15181 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15183         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
15185 2014-07-24  Kyle McMartin  <kyle@redhat.com>
15187         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
15189 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15191         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
15192         Add prototype.
15193         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
15194         function.
15195         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
15196         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15197         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
15199 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15201         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
15202         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
15203         aggregate types.  Instead, *all* aggregate types, except for single-
15204         element or homogeneous float/vector aggregates, are quadword-aligned
15205         if required by their type alignment.  Issue -Wpsabi note when a type
15206         is now treated differently than before.
15208 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15210         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
15211         does not fit fully into floating-point registers, and there is still
15212         space in the register parameter area, use GPRs to pass those parts
15213         of the argument.  Issue -Wpsabi note if any parameter is now treated
15214         differently than before.
15215         (rs6000_arg_partial_bytes): Update.
15217 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
15219         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
15221 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15223         * rtl.h (target_rtl): Remove lang_dependent_initialized.
15224         * toplev.c (initialize_rtl): Don't use it.  Move previously
15225         "language-dependent" calls to...
15226         (backend_init): ...here.
15227         (lang_dependent_init_target): Don't set lang_dependent_initialized.
15228         Assert that RTL initialization hasn't happend yet.
15230 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15232         PR rtl-optimization/61629
15233         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
15234         they have already been initialized.
15236 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15238         PR middle-end/61268
15239         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
15240         DECL_INCOMING_RTL and entry_parm.
15241         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
15242         * calls.c (load_register_parameters): Likewise argument values.
15243         (emit_library_call_value_1, store_one_arg): Likewise argument
15244         save areas.
15245         * config/i386/i386.c (assign_386_stack_local): Likewise the local
15246         stack slot.
15247         * explow.c (validize_mem): Modify the argument in-place.
15249 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15251         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
15252         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
15254 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15256         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
15257         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
15259 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15261         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
15262         (aarch64_save_callee_saves): New parameter "skip_wb".
15263         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
15265 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15267         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
15268         "wb_candidate2".
15269         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
15271 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
15273         * graphite-isl-ast-to-gimple.c:
15274         (graphite_create_new_loop): Add calling of isl_id_free to properly
15275         decrement reference counts.
15277         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
15279 2014-07-24  Martin Liska  <mliska@suse.cz>
15280         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
15281         function used.
15282         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
15283         (rs6000_code_end): Likewise.
15285 2014-07-24  Martin Liska  <mliska@suse.cz>
15287         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
15288         symtab_node funtion used.
15289         (rs6000_xcoff_declare_object_name): Likewise.
15291 2014-07-24  Martin Liska  <mliska@suse.cz>
15293         * cgraphunit.c (compile): Correct function used.
15295 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
15297         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
15298         as non-indexable.
15300 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
15302         PR lto/61802
15303         * varasm.c (bss_initializer_p): Handle offlined ctors.
15304         (align_variable, get_variable_align): Likewise.
15305         (make_decl_one_only): Likewise.
15306         (default_binds_local_p_1): Likewise.
15307         (decl_binds_to_current_def_p): Likewise.
15308         (get_variable_section): Get constructor if it is offlined.
15309         (assemble_variable_contents): Sanity check that the caller
15310         streamed in the ctor in LTO.
15312 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
15314         * graphite-isl-ast-to-gimple.c:
15315         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
15316         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
15317         isl_ast_op_pdiv_r to the different case.
15319         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
15321 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15323         PR middle-end/61876
15324         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
15325         when flag_errno_math is on.
15327 2014-07-24  Martin Liska  <mliska@suse.cz>
15329         * cgraph.h (varpool_node):
15330         (availability get_availability (void)):
15331         created from cgraph_variable_initializer_availability
15332         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
15333         created from: cgraph_variable_initializer_availability
15334         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
15335         (void finalize_named_section_flags (void)):
15336         created from varpool_finalize_named_section_flags
15337         (bool assemble_decl (void)): created from varpool_assemble_decl
15338         (void analyze (void)): created from varpool_analyze_node
15339         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
15340         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
15341         (void remove_initializer (void)): created from varpool_remove_initializer
15342         (tree get_constructor (void)): created from varpool_get_constructor
15343         (bool externally_visible_p (void)): created from varpool_externally_visible_p
15344         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
15345         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
15346         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
15347         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
15348         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
15349         (static bool output_variables (void)): created from varpool_output_variables
15350         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
15351         created from varpool_extra_name_alias
15352         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
15353         (static void dump_varpool (FILE *f)): created from dump_varpool
15354         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
15355         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
15356         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
15357         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
15358         (void assemble_aliases (void)): created from assemble_aliases
15360 2014-07-24  Martin Liska  <mliska@suse.cz>
15362         * cgraph.h (symtab_node):
15363         (void register_symbol (void)): created from symtab_register_node
15364         (void remove (void)): created from symtab_remove_node
15365         (void dump (FILE *f)): created from dump_symtab_node
15366         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
15367         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
15368         (struct ipa_ref *add_reference (symtab_node *referred_node,
15369         enum ipa_ref_use use_type)): created from add_reference
15370         (struct ipa_ref *add_reference (symtab_node *referred_node,
15371         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
15372         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
15373         gimple stmt)): created from maybe_add_reference
15374         (bool semantically_equivalent_p (symtab_node *target)): created from
15375         symtab_semantically_equivalent_p
15376         (void remove_from_same_comdat_group (void)): created from
15377         remove_from_same_comdat_group
15378         (void add_to_same_comdat_group (symtab_node *old_node)): created from
15379         symtab_add_to_same_comdat_group
15380         (void dissolve_same_comdat_group_list (void)): created from
15381         symtab_dissolve_same_comdat_group_list
15382         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
15383         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
15384         created from symtab_alias_ultimate_target
15385         (inline symtab_node *next_defined_symbol (void)): created from
15386         symtab_next_defined_symbol
15387         (bool resolve_alias (symtab_node *target)): created from
15388         symtab_resolve_alias
15389         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
15390         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
15391         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
15392         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
15393         (void set_section (const char *section)): created from set_section_1
15394         (enum availability get_availability (void)): created from symtab_node_availability
15395         (void make_decl_local (void)): created from symtab_make_decl_local
15396         (bool real_symbol_p (void)): created from symtab_read_node
15397         (can_be_discarded_p (void)): created from symtab_can_be_discarded
15398         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
15399         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
15400         symtab_in_same_comdat_p;
15401         (bool address_taken_from_non_vtable_p (void)): created from
15402         address_taken_from_non_vtable_p
15403         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
15404         (static void dump_table (FILE *)): created from dump_symtab
15405         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
15406         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
15407         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
15408         symtab_used_from_object_file_p
15409         (void dump_base (FILE *)): created from dump_symtab_base
15410         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
15411         (void unregister (void)): created from symtab_unregister_node
15412         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
15413         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
15414         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
15415         symtab_nonoverwritable_alias_1
15416         * cgraph.h (cgraph_node):
15417         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
15418         created from cgraph_remove_node_and_inline_clones
15419         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
15420         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
15421         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
15422         (cgraph_node *function_symbol (enum availability *avail = NULL)):
15423         created from cgraph_function_node
15424         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
15425         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
15426         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
15427         created from cgraph_create_clone
15428         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
15429         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
15430         created from cgraph_create_virtual_clone
15431         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
15432         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
15433         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
15434         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
15435         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
15436         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
15437         created from cgraph_function_version_info
15438         (struct cgraph_function_version_info *insert_new_function_version (void)):
15439         created from insert_new_cgraph_node_version
15440         (struct cgraph_function_version_info *function_version (void)): created from
15441         get_cgraph_node_version
15442         (void analyze (void)): created from analyze_function
15443         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
15444         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
15445         tree real_alias) cgraph_add_thunk
15446         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
15447         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
15448         created from cgraph_function_or_thunk_node
15449         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
15450         created from expand_thunk
15451         (void reset (void)): created from cgraph_reset_node
15452         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
15453         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
15454         (void remove (void)): created from cgraph_remove_node
15455         (void dump (FILE *f)): created from dump_cgraph_node
15456         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
15457         (bool get_body (void)): created from cgraph_get_body
15458         (void release_body (void)): created from cgraph_release_function_body
15459         (void unnest (void)): created from cgraph_unnest_node
15460         (void make_local (void)): created from cgraph_make_node_local
15461         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
15462         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
15463         gcov_type count, int freq)): created from cgraph_create_edge
15464         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
15465         gcov_type count, int freq)): created from cgraph_create_indirect_edge
15466         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
15467         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
15468         created from cgraph_create_edge_including_clones
15469         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
15470         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
15471         (void remove_callers (void)): created from cgraph_node_remove_callers
15472         (void remove_callees (void)): created from cgraph_node_remove_callees
15473         (enum availability get_availability (void)): created from cgraph_function_body_availability
15474         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
15475         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
15476         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
15477         (void call_duplication_hooks (cgraph_node *node2)): created from
15478         cgraph_call_node_duplication_hooks
15479         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
15480         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
15481         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
15482         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
15483         (void call_function_insertion_hooks (void)):
15484         created from cgraph_call_function_insertion_hooks
15485         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
15486         (bool local_p (void)): created from cgraph_local_node
15487         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
15488         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
15489         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
15490         (inline bool only_called_directly_or_aliased_p (void)):
15491         created from cgraph_only_called_directly_or_aliased_p
15492         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
15493         created from cgraph_will_be_removed_from_program_if_no_direct_calls
15494         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
15495         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
15496         (bool can_remove_if_no_direct_calls_p (void)):
15497         created from cgraph_can_remove_if_no_direct_calls_p
15498         (inline bool has_gimple_body_p (void)):
15499         created from cgraph_function_with_gimple_body_p
15500         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
15501         (static void dump_cgraph (FILE *f)): created from dump_cgraph
15502         (static inline void debug_cgraph (void)): created from debug_cgraph
15503         (static void record_function_versions (tree decl1, tree decl2)):
15504         created from record_function_versions
15505         (static void delete_function_version (tree decl)):
15506         created from delete_function_version
15507         (static void add_new_function (tree fndecl, bool lowered)):
15508         created from cgraph_add_new_function
15509         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
15510         (static cgraph_node * create (tree decl)): created from cgraph_create_node
15511         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
15512         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
15513         (static cgraph_node *get_for_asmname (tree asmname)):
15514         created from cgraph_node_for_asm
15515         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
15516         created from cgraph_same_body_alias
15517         (static bool used_from_object_file_p_worker (cgraph_node *node,
15518         void *): new function
15519         (static bool non_local_p (cgraph_node *node, void *)):
15520         created from cgraph_non_local_node_p_1
15521         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
15522         created from verify_cgraph
15523         (static bool make_local (cgraph_node *node, void *)):
15524         created from cgraph_make_node_local
15525         (static cgraph_node *create_alias (tree alias, tree target)):
15526         created from cgraph_create_function_alias
15527         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
15528         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
15529         created from cgraph_create_edge_1
15530         * cgraph.h (varpool_node):
15531         (void remove (void)): created from varpool_remove_node
15532         (void dump (FILE *f)): created from dump_varpool_node
15534 2014-07-24  Richard Biener  <rguenther@suse.de>
15536         PR ipa/61823
15537         * tree-ssa-structalias.c (create_variable_info_for_1):
15538         Use varpool_get_constructor.
15539         (create_variable_info_for): Likewise.
15541 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15543         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
15544         subtract outgoing area size when restoring stack_pointer_rtx.
15546 2014-07-24  Nick Clifton  <nickc@redhat.com>
15548         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
15549         that operations are taking place in parallel.
15550         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
15552 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
15554         * omp-low.c (extract_omp_for_data): Add missing break statement.
15556 2014-07-24  Richard Biener  <rguenther@suse.de>
15558         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
15559         * tree-inline.c (estimate_move_cost): Add speed_p parameter
15560         and adjust MOVE_RATIO query accordingly.
15561         (estimate_num_insns): Adjust callers.
15562         * ipa-prop.c (ipa_populate_param_decls): Likewise.
15563         * ipa-cp.c (gather_context_independent_values,
15564         estimate_local_effects): Likewise.
15565         * ipa-split.c (consider_split): Likewise.
15567 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
15569         * config/i386/driver-i386.c: Remove names of unused arguments and
15570         unnecessary unused attributes.
15571         * config/i386/host-mingw32.c: Likewise.
15572         * config/i386/i386.c: Likewise.
15573         * config/i386/winnt-stubs.c: Likewise.
15574         * config/i386/winnt.c: Likewise.
15576 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15578         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
15579         (aarch64_gen_loadwb_pair): New helper function.
15580         (aarch64_expand_epilogue): Simplify code using new helper functions.
15581         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
15583 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15585         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
15586         (aarch64_gen_storewb_pair): New helper function.
15587         (aarch64_expand_prologue): Simplify code using new helper functions.
15588         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
15590 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15592         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
15593         Rename to aarch64_save_callee_saves, remove restore code.
15594         (aarch64_restore_callee_saves): New function.
15596 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15598         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
15599         (aarch64_save_callee_saves): New function to handle reg save
15600         for both core and vectore regs.
15602 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15604         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
15605         (aarch64_gen_store_pair): New helper function.
15606         (aarch64_save_or_restore_callee_save_registers)
15607         (aarch64_save_or_restore_fprs): Use new helper functions.
15609 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15611         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
15612         (aarch64_save_or_restore_callee_save_registers)
15613         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
15615 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15617         * config/aarch64/aarch64.c
15618         (aarch64_save_or_restore_callee_save_registers)
15619         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
15621 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15623         * config/aarch64/aarch64.c
15624         (aarch64_save_or_restore_callee_save_registers)
15625         (aarch64_save_or_restore_fprs): Remove 'increment'.
15627 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15629         * config/aarch64/aarch64.c
15630         (aarch64_save_or_restore_callee_save_registers)
15631         (aarch64_save_or_restore_fprs): Use register offset in
15632         cfun->machine->frame.reg_offset.
15634 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15636         * config/aarch64/aarch64.c
15637         (aarch64_save_or_restore_callee_save_registers)
15638         (aarch64_save_or_restore_fprs): Remove base_rtx.
15640 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15642         * config/aarch64/aarch64.c
15643         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
15644         to 'start_offset'.  Remove local variable 'start_offset'.
15646 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15648         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
15649         type to HOST_WIDE_INT.
15651 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15653         * config/aarch64/aarch64.c (aarch64_expand_prologue)
15654         (aarch64_save_or_restore_fprs)
15655         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
15657 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15659         * config/arm/t-rtems-eabi: Add
15660         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
15661         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
15662         mbig-endian/mthumb/march=armv7-r, and
15663         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
15664         multilibs.
15666 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15667             Chris Johns <chrisj@rtems.org>
15668             Joel Sherrill <joel.sherrill@oarcorp.com>
15670         * config.gcc: Add nios2-*-rtems*.
15671         * config/nios2/rtems.h: New file.
15672         * gcc/config/nios2/t-rtems: New file.
15674 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
15676         PR target/61396
15677         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
15678         constant numbers, not general constants.
15679         (rs6000_expand_vector_init): Ditto.
15681 2014-07-23  Nathan Sidwell  <nathan@acm.org>
15683         * gcov-tool.c (gcov_list): Declare here.
15684         (set_gcov_list): Remove.
15685         (gcov_output_files): Set gcov_list directly.
15687 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
15689         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
15691 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15693         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
15694         callee-saved registers are available for padding purpose
15695         and r3 is not mandatory, then prefer use those callee-saved
15696         instead of r3.
15698 2014-07-23  Richard Biener  <rguenther@suse.de>
15700         * params.def (PARAM_MAX_COMBINE_INSNS): New.
15701         * combine.c: Include statistics.h and params.h.
15702         (combine_instructions): Guard three and four insn combines
15703         with max-combine-insns value.  Record statistics for combines
15704         performed.
15705         * doc/invoke.texi (max-combine-insns): Document new param.
15707 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
15709         * graphite-isl-ast-to-gimple.c:
15710         (translate_isl_ast_node_block): New function.
15711         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
15713         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
15714         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
15716 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
15718         * graphite-isl-ast-to-gimple.c:
15719         (get_max_schedule_dimensions): New function.
15720         (extend_schedule): Likewise.
15721         (generate_isl_schedule): Add calling of extend_schedule and
15722         get_max_schedule_dimensions.
15724 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15726         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
15727         (case UNSPEC): Handle UNSPEC_RBIT.
15729 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15731         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
15732         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
15734 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15736         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
15738 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
15740         * graphite-isl-ast-to-gimple.c:
15741         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
15742         (ivs_params_clear):
15743         (build_iv_mapping): New function.
15744         (translate_isl_ast_node_user): Likewise.
15745         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
15747         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
15748         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
15749         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
15751 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15753         PR target/55701
15754         * config/arm/arm.md (setmem): New pattern.
15755         * config/arm/arm-protos.h (struct tune_params): New fields.
15756         (arm_gen_setmem): New prototype.
15757         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
15758         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
15759         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
15760         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
15761         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
15762         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
15763         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
15764         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
15765         (arm_const_inline_cost): New function.
15766         (arm_block_set_max_insns): New function.
15767         (arm_block_set_non_vect_profit_p): New function.
15768         (arm_block_set_vect_profit_p): New function.
15769         (arm_block_set_unaligned_vect): New function.
15770         (arm_block_set_aligned_vect): New function.
15771         (arm_block_set_unaligned_non_vect): New function.
15772         (arm_block_set_aligned_non_vect): New function.
15773         (arm_block_set_vect, arm_gen_setmem): New functions.
15775 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15777         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
15779 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
15781         PR target/61855
15782         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
15783         out of #ifdef __OPTIMIZE__.
15785 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15787         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
15788         different trapping status if -fnon-call-exceptions is enabled.
15790 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15792         * expr.c (store_field): Handle VOIDmode for calls that return values
15793         in multiple locations.
15795 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15797         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
15798         (altivec_vsldoi_<mode>): Likewise.
15800 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15802         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
15803         to the number of characters in the line.
15805 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15807         * graphite-isl-ast-to-gimple.c: Add using of
15808         build_nonstandard_integer_type instead of int128_integer_type_node.
15810 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
15812         * toplev.c (output_stack_usage): Adjust the location of the warning.
15814 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
15816         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
15817         (*membar_storeload): Disable for LEON3.
15819 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15821         PR rtl-optimization/61461
15822         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
15824 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
15826         PR target/61794
15827         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
15828         Fix instruction constraint.
15829         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
15831 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
15833         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
15835 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
15837         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
15838         GNU coding standards.
15839         (nds32_register_move_cost): Likewise.
15840         (nds32_memory_move_cost): Likewise.
15841         (nds32_address_cost): Likewise.
15843 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15845         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
15847 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
15849         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
15850         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15851         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15852         (HAVE_sync_compare_and_swapqi): Define.
15853         (HAVE_sync_compare_and_swaphi): Likewise.
15854         (HAVE_sync_compare_and_swapsi): Likewise.
15856 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
15858         * config/mips/p5600.md: Add missing cpu tests.
15860 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15862         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
15863         (vmla_f64): Likewise.
15864         (vfms_f64): Likewise.
15865         (vmls_f64): Likewise.
15867 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15869         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
15870         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
15872 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15874         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
15875         (vmlal_high_lane_s32): Likewise.
15876         (vmlal_high_lane_u16): Likewise.
15877         (vmlal_high_lane_u32): Likewise.
15878         (vmlsl_high_lane_s16): Likewise.
15879         (vmlsl_high_lane_s32): Likewise.
15880         (vmlsl_high_lane_u16): Likewise.
15881         (vmlsl_high_lane_u32): Likewise.
15883 2014-07-17  Terry Guo  <terry.guo@arm.com>
15885         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
15886         (alus_reg): Renamed to alus_sreg.
15887         * config/arm/arm-fixed.md: Change type of non-dsp instructions
15888         from alu_reg to alu_sreg.  Change type of dsp instructions from
15889         alu_reg to alu_dsp_reg.
15890         * config/arm/thumb1.md: Likewise.
15891         * config/arm/thumb2.md: Likewise.
15892         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
15893         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
15894         with alu_sreg and alus_sreg.
15895         * config/arm/arm1026ejs.md (alu_op): Likewise.
15896         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
15897         * config/arm/arm926ejs.md (9_alu_op): Likewise.
15898         * config/arm/fa526.md (526_alu_op): Likewise.
15899         * config/arm/fa606te.md (606te_alu_op): Likewise.
15900         * config/arm/fa626te.md (626te_alu_op): Likewise.
15901         * config/arm/fa726te.md (726te_alu_op): Likewise.
15902         * config/arm/fmp626.md (mp626_alu_op): Likewise.
15903         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
15904         alu_sreg, alu_dsp_reg and alus_sreg.
15905         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
15906         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15907         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15908         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
15909         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
15910         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15911         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15912         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15913         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
15914         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
15915         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
15916         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
15917         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
15918         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
15919         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
15920         alus_reg to alus_sreg.
15922 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
15924         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
15925         infinity format.
15927 2014-07-17  Richard Biener  <rguenther@suse.de>
15929         PR rtl-optimization/61801
15930         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
15931         don't set reg_pending_barrier if it appears in a debug-insn.
15933 2014-07-16  DJ Delorie  <dj@redhat.com>
15935         * config/rx/rx.c (rx_option_override): Fix alignment values.
15936         (rx_align_for_label): Likewise.
15938 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
15940         PR target/61737.
15941         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
15942         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15943         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
15944         functions.
15945         (cris_print_index, cris_print_operand, cris_constant_index_p)
15946         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
15947         (cris_address_cost): Ditto last CONSTANT_P.
15948         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
15949         callers changed.  Yield cris_offsettable_symbol for non-PIC
15950         constant symbolic expressions including labels.  Yield cris_unspec
15951         for all unspecs.
15952         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
15953         target to pic_offset_table_rtx for calls that will likely go
15954         through PLT, const0_rtx when they can't.  All callers changed.
15955         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
15956         symbolic expressions to be PICified.  Remove second, redundant,
15957         assert on can_create_pseudo_p returning non-zero.  Use
15958         replace_equiv_address_nv, not replace_equiv_address, for final
15959         operand update.
15960         * config/cris/cris.md ("movsi"): Move variable t to pattern
15961         toplevel. Adjust assert for new cris_symbol_type member.  Use
15962         CONSTANT_P instead of CONSTANT_ADDRESS_P.
15963         ("*movsi_internal") <case 9>: Make check for valid unspec operands
15964         for lapc stricter.
15965         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15966         ("call", "call_value"): Use second incoming operand as a marker
15967         for pic-offset-table-register being used.
15968         ("*expanded_call_non_v32", "*expanded_call_v32")
15969         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15970         second incoming operand to CALL, match cris_call_type_marker.
15971         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
15972         ("*expanded_call_side"): Ditto.  Fix typo in comment.
15973         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15974         CONSTANT_P.
15975         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15976         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15977         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
15978         users changed.  Add members cris_offsettable_symbol and cris_unspec.
15979         (cris_symbol_type): Rename from cris_pic_symbol_type.
15980         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15981         just CONSTANT_P.
15982         * config/cris/cris-protos.h (cris_symbol_type_of,
15983         cris_expand_pic_call_address): Adjust prototypes.
15984         (cris_legitimate_constant_p): New prototype.
15986         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15987         an existing tmake_file.  Don't add t-slibgcc and t-linux.
15989 2014-07-17  Jason Merrill  <jason@redhat.com>
15991         PR c++/61623
15992         * symtab.c (symtab_remove_from_same_comdat_group): Also
15993         set_comdat_group to NULL_TREE.
15994         (verify_symtab): Fix diagnostic.
15996 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
15998         PR target/61662
15999         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
16001 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
16003         Support location tracking for built-in macro tokens
16004         * input.h (is_location_from_builtin_token): New function declaration.
16005         * input.c (is_location_from_builtin_token): New function definition.
16006         * toplev.c (general_init): Tell libcpp what the pre-defined
16007         spelling location for built-in tokens is.
16009 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
16011         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
16012         on the FUNCTION_DECL.
16014 2014-07-16  Richard Biener  <rguenther@suse.de>
16016         PR other/61782
16017         * doc/extend.texi (always_inline): Clarify.
16019 2014-07-15  Eric Christopher  <echristo@gmail.com>
16021         * doc/invoke.texi (Link Options): Document -z option.
16023 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
16025         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
16026         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16028 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
16030         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
16032 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
16034         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
16035         varpool_assemble_decl.
16036         * varpool.c (varpool_assemble_decl): Assert that node->definition is
16037         true.
16039 2014-07-15  Michael Matz  <matz@suse.de>
16041         PR rtl-optimization/61772
16042         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
16044 2014-07-15  Richard Biener  <rguenther@suse.de>
16046         * opts.c (default_options_table): Disable bit-ccp at -Og.
16048 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
16050         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
16052 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
16054         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
16055         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
16056         call langhook for unknown declaration.
16057         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
16058         * tree.h (DECL_ARGUMENTS): Update.
16059         * print-tree.c (print_node): Update.
16060         * tree-core.h (tree_decl_non_common): Remove arguments.
16061         (tree_function_decl): Add arguments.
16063 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
16065         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
16067 2014-07-14  Richard Biener  <rguenther@suse.de>
16069         PR tree-optimization/61779
16070         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
16071         simplifying a condition.
16073 2014-07-14  Richard Biener  <rguenther@suse.de>
16075         * builtins.c (c_strlen): Make only_value == 2 really only
16076         affect warning generation.
16078 2014-07-14  Richard Biener  <rguenther@suse.de>
16080         PR tree-optimization/61757
16081         PR tree-optimization/61783
16082         PR tree-optimization/61787
16083         * tree-ssa-dom.c (record_equality): Revert canonicalization
16084         change and add comment.
16085         (propagate_rhs_into_lhs): Revert previous fix, removing
16086         loop depth restriction again.
16088 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16090         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
16091         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
16092         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
16093         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
16094         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
16095         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
16096         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
16098 2014-07-14  Richard Biener  <rguenther@suse.de>
16100         * cgraph.h (decl_in_symtab_p): Make inline.
16102 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
16104         PR middle-end/61294
16105         * doc/invoke.texi (-Wmemset-transposed-args): Document.
16107         PR target/61656
16108         * config/i386/i386.c (classify_argument): Don't merge classes above
16109         number of words.
16111 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
16113         * cgraph.h (symtab_node): Add nonzero_address.
16114         (decl_in_symtab_p): Break out from ...
16115         (symtab_get_node): ... here.
16116         * fold-const.c: Include cgraph.h
16117         (tree_single_nonzero_warnv_p): Use symtab to determine
16118         if symbol is non-zero.
16119         * symtab.c (symtab_node::nonzero_address): New method.
16121 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16123         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
16124         forgotten in previous commit.
16126 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16128         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
16129         on builtin types.
16130         * ipa-devirt.c: Include stor-layout.h and intl.h
16131         (odr_subtypes_equivalent_p): New function.
16132         (warn_odr): New function.
16133         (warn_type_mismatch): New function.
16134         (odr_types_equivalent_p): New function.
16135         (add_type_duplicate): Use it.
16136         * common.opt (Wodr): New flag.
16137         * doc/invoke.texi (Wodr): Document new warning.
16139 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16141         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
16142         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
16143         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
16144         (varpool_get_constructor): Push CTORS_IN timevar.
16145         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
16147 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
16149         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
16150         Remove VOID_FTYPE_PUSHORT.
16151         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
16152         Change code to USHORT_FTYPE_VOID.
16153         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
16154         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
16155         (ix86_atomic_assign_expand_fenv): Update for
16156         __builtin_ia32_fnstsw changes.
16157         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
16158         (fnstsw): Change operand 0 to nonimmediate operand.
16160 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16162         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
16163         (varpool_get_constructor): New function.
16164         (varpool_ctor_useable_for_folding_p): Break out from ...
16165         (ctor_for_folding): ... here; use varpool_get_constructor.
16166         (varpool_assemble_decl): Likewise.
16167         * lto-streamer.h (struct output_block): Turn cgraph_node
16168         to symbol filed.
16169         (lto_input_variable_constructor): Declare.
16170         * ipa-visibility.c (function_and_variable_visibility): Use
16171         varpool_get_constructor.
16172         * cgraph.h (varpool_get_constructor): Declare.
16173         (varpool_ctor_useable_for_folding_p): New function.
16174         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
16175         parameter; return error_mark_node for non-trivial constructors.
16176         (lto_write_tree_1, DFS_write_tree): Update use of
16177         get_symbol_initial_value.
16178         (output_function): Update initialization of symbol.
16179         (output_constructor): New function.
16180         (copy_function): Rename to ..
16181         (copy_function_or_variable): ... this one; handle vars too.
16182         (lto_output): Output variable sections.
16183         * lto-streamer-in.c (input_constructor): New function.
16184         (lto_read_body): Rename from ...
16185         (lto_read_body_or_constructor): ... this one; handle vars too.
16186         (lto_input_variable_constructor): New function.
16187         * ipa-prop.c (ipa_prop_write_jump_functions,
16188         ipa_prop_write_all_agg_replacement): Update.
16189         * lto-cgraph.c (compute_ltrans_boundary): Use it.
16190         (output_cgraph_opt_summary): Set symbol to NULL.
16192 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16194         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
16195         non-polymorphic types.
16196         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
16197         * ipa-devirt.c (types_same_for_odr): Do not explode when one
16198         of types is not polymorphic.
16200 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
16202         * lra-constraints.c (remove_inheritance_pseudos): Process
16203         destination pseudo too.
16205 2014-07-11  Rong Xu  <xur@google.com>
16207         * gcov-tool.c (gcov_output_files): Fix build error introduced in
16208         commit r212448.
16210 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16212         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
16213         * config/avr/avr-devices.c (AVR_MCU): Same.
16214         (avr_mcu_types): add text start value to end of device list.
16215         * config/avr/avr-mcus.def: Add text section start for all devices.
16216         (ata5782): Add new avr5 device.
16217         (ata5831): Same.
16218         * config/avr/avr-tables.opt: Regenerate.
16219         * config/avr/avr.h: Add declaration for text section start handler.
16220         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
16221         SPEC functions.
16222         (LINK_SPEC): Include text section start handler to linker spec.
16223         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
16224         pass -Ttext option to linker if the text section start for the device
16225         is not zero.
16226         * config/avr/t-multilib: Regenerate.
16227         * doc/avr-mmcu.texi: Regenerate.
16229 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
16231         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
16232         * config/rs6000/aix52.h (LINK_SPEC): Same.
16233         * config/rs6000/aix53.h (LINK_SPEC): Same.
16234         * config/rs6000/aix61.h (LINK_SPEC): Same.
16235         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
16237 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
16239         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
16240         (graphite_verify): New function.
16241         (ivs_params_clear): New function.
16242         (gcc_expression_from_isl_ast_expr_id): New function.
16243         (gcc_expression_from_isl_expr_int): New function.
16244         (binary_op_to_tree): New function.
16245         (ternary_op_to_tree): New function.
16246         (unary_op_to_tree): New function.
16247         (nary_op_to_tree): New function.
16248         (gcc_expression_from_isl_expr_op): New function.
16249         (gcc_expression_from_isl_expression): New function.
16250         (graphite_create_new_loop): New function.
16251         (translate_isl_ast_for_loop): New function.
16252         (get_upper_bound): New function.
16253         (graphite_create_new_loop_guard): New function.
16254         (translate_isl_ast_node_for): New function.
16255         (translate_isl_ast): New function.
16256         (add_parameters_to_ivs_params): New function.
16257         (scop_to_isl_ast): New parameter ip.
16258         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
16260 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16262         * config/xtensa/predicates.md (call expander): Update for
16263         DECL_SECTION_NAME being string.
16265 2014-07-11  Richard Biener  <rguenther@suse.de>
16267         PR middle-end/61473
16268         * builtins.c (fold_builtin_memory_op): Inline memory moves that
16269         can be implemented with a single load followed by a single store.
16270         (c_strlen): Only warn when only_value is not 2.
16272 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
16274         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
16276 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
16278         PR target/61561
16279         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
16280         (*movhi_bytes): Likewise.
16281         (*arm_movqi_insn): Likewise.
16283 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
16285         PR target/56858
16286         * config/alpha/alpha.c: Include tree-pass.h, context.h
16287         and pass_manager.h.
16288         (pass_data_handle_trap_shadows): New pass.
16289         (pass_handle_trap_shadows::gate): New pass gate function.
16290         (make_pass_handle_trap_shadows): New function.
16291         (rest_of_handle_trap_shadows): Ditto.
16293         (alpha_align_insns_1): Rename from alpha_align_insns.
16294         (pass_data_align_insns): New pass.
16295         (pass_align_insns::gate): New pass gate function.
16296         (make_pass_aling_insns): New function.
16297         (rest_of_align_insns): Ditto.
16298         (alpha_align_insns): Ditto.
16300         (alpha_option_override): Declare handle_trap_shadows info
16301         and align_insns_info.  Register handle_trap_shadows and align_insns
16302         passes here.
16303         (alpha_reorg): Do not call alpha_trap_shadows and
16304         alpha_align_insn from here.
16306         (alpha_pad_function_end): Do not skip BARRIERs.
16308 2014-07-10  Rong Xu  <xur@google.com>
16310         Add gcov-tool: an offline gcda profile processing tool support.
16311         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
16312         (gcov_is_error): Ditto.
16313         (gcov_read_string): Ditto.
16314         (gcov_read_sync): Ditto.
16315         * gcov-io.h: Move counter defines to gcov-counter.def.
16316         * gcov-dump.c (tag_counters): Use gcov-counter.def.
16317         * coverage.c: Ditto.
16318         * gcov-tool.c: Offline gcda profile processing tool.
16319         (unlink_gcda_file): Remove one gcda file.
16320         (unlink_profile_dir): Remove gcda files from the profile path.
16321         (gcov_output_files): Output gcda files to an output dir.
16322         (profile_merge): Merge two profiles in directory.
16323         (print_merge_usage_message): Print merge usage.
16324         (merge_usage): Print merge usage and exit.
16325         (do_merge): Driver for profile merge sub-command.
16326         (profile_rewrite): Rewrite profile.
16327         (print_rewrite_usage_message): Print rewrite usage.
16328         (rewrite_usage): Print rewrite usage and exit.
16329         (do_rewrite): Driver for profile rewrite sub-command.
16330         (print_usage): Print gcov-info usage and exit.
16331         (print_version): Print gcov-info version.
16332         (process_args): Process arguments.
16333         (main): Main routine for gcov-tool.
16334         * Makefile.in: Build and install gcov-tool.
16335         * gcov-counter.def: New file split from gcov-io.h.
16336         * doc/gcc.texi: Include gcov-tool.texi.
16337         * doc/gcov-tool.texi: Document for gcov-tool.
16339 2014-07-10  Richard Biener  <rguenther@suse.de>
16341         PR tree-optimization/61757
16342         * tree-ssa-dom.c (loop_depth_of_name): Restore.
16343         (propagate_rhs_into_lhs): Revert part of last change.
16345 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
16347         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
16348         FUNCTION_DECLs.
16350 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
16352         PR middle-end/53590
16353         * function.c (allocate_struct_function): Revert r188667 change.
16355         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
16357 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
16359         * doc/install.texi: Remove links to defunct package providers for
16360         Solaris.
16362 2014-07-09  Tom de Vries  <tom@codesourcery.com>
16364         * final.c (get_call_fndecl): Declare.
16365         (self_recursive_call_p): New function.
16366         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
16368 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16370         * ipa-devirt.c (record_node): Walk through aliases.
16372 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16374         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
16376 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16378         Revert:
16379         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16381 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16383         * ipa-visibility.c (function_and_variable_visibility): Remove
16384         temporary hack disabling local aliases on AIX.
16386 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16388         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
16389         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
16391 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16393         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
16394         * rs6000/rs6000.c: Inline output of .set instruction.
16395         (declare_alias_data): New struct.
16396         (rs6000_declare_alias): New function.
16397         (rs6000_xcoff_declare_function_name): Use it.
16398         (rs6000_xcoff_declare_object_name): New function.
16399         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
16400         (ASM_OUTPUT_DEF): Turn to empty definition.
16402 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16404         PR bootstrap/61679
16405         * hash-table.h: use hash_table::value_type instead of
16406         Descriptor::value_type in the return types of several methods.
16408 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16410         * tree-pass.h (pass_data): Remove has_execute member.
16411         * passes.c (execute_one_pass): Don't check pass->has_execute.
16412         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16413         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16414         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16415         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16416         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16417         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
16418         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
16419         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
16420         gimple-low.c, gimple-ssa-isolate-paths.c,
16421         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
16422         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
16423         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
16424         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
16425         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
16426         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
16427         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
16428         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
16429         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
16430         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
16431         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
16432         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
16433         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16434         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16435         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16436         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16437         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16438         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16439         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16440         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16441         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16442         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16443         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
16444         web.c: Remove initializer for pass_data::has_execute.
16446 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16448         * graphite-htab.h: Use hash_map instead of hash_table.
16449         * graphite-clast-to-gimple.c: Adjust.
16450         * passes.c: Use hash_map instead of hash_table.
16451         * sese.c: Likewise.
16452         * sese.h: Remove now unused code.
16454 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
16456         PR target/61599
16457         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
16458         than zero.
16460 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
16462         PR rtl-optimization/61673
16463         * combine.c (simplify_comparison): Test just mode's sign bit
16464         in tmode rather than the sign bit and any bits above it.
16466 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
16468         * graphite-isl-ast-to-gimple.c (generate_isl_context):
16469         Add __isl_give to the declaration.
16470         (generate_isl_schedule): Likewise.
16471         (scop_to_isl_ast): Likewise.
16473 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16475         * config/arm/arm.c (cortexa5_extra_costs): New table.
16476         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
16478 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
16480         PR tree-optimization/61725
16481         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
16482         range, use range_includes_zerop_p instead of integer_zerop on
16483         vr0->min, only use log2 of max if min is not negative.
16485 2014-07-08  Richard Biener  <rguenther@suse.de>
16487         * tree-ssa-dom.h (loop_depth_of_name): Remove.
16488         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
16489         restriction on loop depth difference.
16490         (record_equality): Likewise.
16491         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
16492         (loop_depth_of_name): Remove.
16493         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
16494         restriction on loop depth difference.
16495         (init_copy_prop): Likewise.
16497 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16499         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
16500         parameter.
16501         (walk_aliased_vdefs): Likewise.
16502         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
16503         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
16504         (detect_type_change_from_memory_writes): Check if entry was reached.
16506 2014-07-08  Richard Biener  <rguenther@suse.de>
16508         PR tree-optimization/61681
16509         * tree-ssa-structalias.c (find_what_var_points_to): Expand
16510         NONLOCAL inside ESCAPED.
16512 2014-07-08  Richard Biener  <rguenther@suse.de>
16514         PR tree-optimization/61680
16515         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16516         Handle properly all read-write dependences with group accesses.
16518 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
16520         PR tree-optimization/61576
16521         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
16522         block containing reduction statement is predecessor of phi basi block.
16524 2014-07-08  Marek Polacek  <polacek@redhat.com>
16526         PR c/60226
16527         * fold-const.c (round_up_loc): Change the parameter type.
16528         Remove assert.
16529         * fold-const.h (round_up_loc): Adjust declaration.
16530         * stor-layout.c (finalize_record_size): Check for too large types.
16532 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
16534         * symtab.c: Include calls.h.
16535         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
16537 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
16539         * config/rs6000/rs6000.c (output_vec_const_move): Handle
16540         little-endian code generation.
16541         * config/rs6000/spe.md (spe_evmergehi): Rename to...
16542         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
16543         (spe_evmergehilo): Rename to...
16544         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
16545         (spe_evmergelo): Rename to...
16546         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
16547         (spe_evmergelohi): Rename to...
16548         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
16549         (spe_evmergehi, spe_evmergehilo): New expanders.
16550         (spe_evmergelo, spe_evmergelohi): Likewise.
16551         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
16552         (*frob_tf_ti): Likewise.
16553         (*frob_<mode>_di_2): Likewise.
16554         (*frob_tf_di_8_2): Likewise.
16555         (*frob_di_<mode>): Likewise.
16556         (*frob_ti_tf): Likewise.
16557         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
16558         (*frob_ti_<mode>_8_2): Likewise.
16559         (*frob_ti_tf_2): Likewise.
16560         (mov_si<mode>_e500_subreg0): Rename to...
16561         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
16562         endianness only.
16563         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
16564         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
16565         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
16566         the big endianness only.
16567         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
16568         (*mov_si<mode>_e500_subreg0_2): Rename to...
16569         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
16570         big big endianness only.
16571         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
16572         (*mov_si<mode>_e500_subreg4): Rename to...
16573         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
16574         endianness only.
16575         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
16576         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
16577         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
16578         the big endianness only.
16579         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
16580         pattern.
16581         (*mov_si<mode>_e500_subreg4_2): Rename to...
16582         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
16583         endianness only.
16584         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
16585         (*mov_sitf_e500_subreg8): Rename to...
16586         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
16587         endianness only.
16588         (*mov_sitf_e500_subreg8_le): New instruction pattern.
16589         (*mov_sitf_e500_subreg8_2): Rename to...
16590         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
16591         endianness only.
16592         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
16593         (*mov_sitf_e500_subreg12): Rename to...
16594         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
16595         endianness only.
16596         (*mov_sitf_e500_subreg12_le): New instruction pattern.
16597         (*mov_sitf_e500_subreg12_2): Rename to...
16598         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
16599         endianness only.
16600         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
16602 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16604         * asan.c (instrument_strlen_call): Do not instrument first byte
16605         in strlen if already instrumented.
16607 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16609         * config/arm/arm.opt (mwords-little-endian): Delete.
16610         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
16611         of TARGET_LITTLE_WORDS.
16612         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
16613         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
16614         warning.
16615         * doc/invoke.texi: Remove references to -mwords-little-endian.
16617 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
16619         * expmed.c (struct init_expmed_rtl): Change all fields but
16620         pow2 and cint from struct rtx_def to rtx.
16621         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
16622         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
16623         at the end again.
16625 2014-07-06  Marek Polacek  <polacek@redhat.com>
16627         PR c/6940
16628         * doc/invoke.texi: Document -Wsizeof-array-argument.
16630 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
16632         * wide-int.h (wide_int_storage): Change declaration from struct
16633         to class.
16635 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
16637         * cgraph.c (cgraph_create_indirect_edge): Update call of
16638         get_polymorphic_call_info.
16639         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
16640         (possible_polymorphic_call_targets): Add parameter call.
16641         (decl_maybe_in_construction_p): New predicate.
16642         (get_polymorphic_call_info): Add parameter call;
16643         use decl_maybe_in_construction_p.
16644         * gimple-fold.c (fold_gimple_assign): Update use of
16645         possible_polymorphic_call_targets.
16646         (gimple_fold_call): Likewise.
16647         * ipa-prop.c: Inlcude calls.h
16648         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
16649         (param_type_may_change_p): New predicate.
16650         (detect_type_change_from_memory_writes): Break out from ...
16651         (detect_type_change): ... this one; use param_type_may_change_p.
16652         (detect_type_change_ssa): Use param_type_may_change_p.
16653         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
16655 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
16657         PR target/49423
16658         * config/arm/arm-protos.h (arm_legitimate_address_p,
16659         arm_is_constant_pool_ref): Add prototypes.
16660         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
16661         (arm_is_constant_pool_ref) New function.
16662         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
16663         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
16664         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
16665         operand. Remove pool_range and neg_pool_range attributes.
16666         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
16667         pool_range and neg_pool_range attributes.
16668         * config/arm/constraints.md (Uh): New constraint.
16669         (Uq): Don't allow constant pool references.
16671 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
16673         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
16674         (move_lo_quad_internal_be_<mode>): Likewise.
16675         (move_lo_quad_<mode>): Convert to define_expand.
16676         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
16677         (aarch64_simd_move_hi_quad_be_<mode>): New.
16678         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
16679         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
16680         (aarch64_combinez_be<mode>): New.
16681         (aarch64_combine<mode>): Convert to define_expand.
16682         (aarch64_combine_internal<mode>): New.
16683         (aarch64_simd_combine<mode>): Remove bogus RTL description.
16685 2014-07-04  Tom de Vries  <tom@codesourcery.com>
16687         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
16688         combination of earlyclobber and read/write modifiers.
16690 2014-07-04  Tom de Vries  <tom@codesourcery.com>
16692         * config/aarch64/aarch64-simd.md
16693         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
16695 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
16697         PR target/61714
16698         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
16700 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
16702         PR middle-end/61654
16703         * cgraphunit.c (expand_thunk): Call free_dominance_info.
16705         PR tree-optimization/61684
16706         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
16707         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
16709 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16710             Kito Cheng  <kito@0xlab.org>
16711             Monk Chiang  <sh.chiang04@gmail.com>
16713         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
16714         (nds32_symbol_load_store_p): Move to ...
16715         (nds32_fp_as_gp_check_available): Move to ...
16716         * config/nds32/nds32-fp-as-gp.c: ... here.
16717         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
16718         extern declaration.
16720 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16721             Kito Cheng  <kito@0xlab.org>
16722             Monk Chiang  <sh.chiang04@gmail.com>
16724         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
16725         (nds32_expand_store_multiple): Move to ...
16726         (nds32_expand_movmemqi): Move to ...
16727         * config/nds32/nds32-memory-manipulation.c: ... here.
16729 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16730             Kito Cheng  <kito@0xlab.org>
16731             Monk Chiang  <sh.chiang04@gmail.com>
16733         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
16734         (nds32_output_casesi_pc_relative): Move to ...
16735         (nds32_output_casesi): Move to ...
16736         (nds32_mem_format): Move to ...
16737         (nds32_output_16bit_store): Move to ...
16738         (nds32_output_16bit_load): Move to ...
16739         (nds32_output_32bit_store): Move to ...
16740         (nds32_output_32bit_load): Move to ...
16741         (nds32_output_32bit_load_s): Move to ...
16742         (nds32_output_stack_push): Move to ...
16743         (nds32_output_stack_pop): Move to ...
16744         * config/nds32/nds32-md-auxiliary.c: ... here.
16746 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16747             Ling-Hua Tseng  <uranus@tinlans.org>
16749         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
16750         the purpose of this file.
16752 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16753             Kito Cheng  <kito@0xlab.org>
16754             Monk Chiang  <sh.chiang04@gmail.com>
16756         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
16757         (nds32_address_cost): Move implementation to ...
16758         * config/nds32/nds32-cost.c: ... here.
16759         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
16760         (nds32_address_cost_impl): Declare.
16762 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16763             Kito Cheng  <kito@0xlab.org>
16764             Monk Chiang  <sh.chiang04@gmail.com>
16766         * config/nds32/nds32.c
16767         (nds32_consecutive_registers_load_store_p): Move to ...
16768         (nds32_valid_multiple_load_store): Move to ...
16769         (nds32_valid_stack_push_pop): Move to ...
16770         (nds32_can_use_bclr_p): Move to ...
16771         (nds32_can_use_bset_p): Move to ...
16772         (nds32_can_use_btgl_p): Move to ...
16773         (nds32_can_use_bitci_p): Move to ...
16774         * config/nds32/nds32-predicates.c: ... here.
16776 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16777             Kito Cheng  <kito@0xlab.org>
16778             Monk Chiang  <sh.chiang04@gmail.com>
16780         * config/nds32/nds32.c
16781         (nds32_expand_builtin_null_ftype_reg): Move to ...
16782         (nds32_expand_builtin_reg_ftype_imm): Move to ...
16783         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
16784         (nds32_init_builtins): Move implementation to ...
16785         (nds32_expand_builtin): Move implementation to ...
16786         * config/nds32/nds32-intrinsic.c: ... here.
16787         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
16788         (nds32_expand_builtin_impl): Declare.
16790 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16791             Kito Cheng  <kito@0xlab.org>
16792             Monk Chiang  <sh.chiang04@gmail.com>
16794         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
16795         (nds32_emit_section_tail_template): Move to ...
16796         (nds32_emit_isr_jmptbl_section): Move to ...
16797         (nds32_emit_isr_vector_section): Move to ...
16798         (nds32_emit_isr_reset_conten): Move to ...
16799         (nds32_check_isr_attrs_conflict): Move to ...
16800         (nds32_construct_isr_vectors_information): Move to ...
16801         (nds32_asm_file_start): Move implementation to ...
16802         (nds32_asm_file_end): Move implementation to ...
16803         * config/nds32/nds32-isr.c: ... here.
16804         * config/nds32/nds32-protos.h
16805         (nds32_check_isr_attrs_conflict): Declare.
16806         (nds32_construct_isr_vectors_information): Declare.
16807         (nds32_asm_file_start_for_isr): Declare.
16808         (nds32_asm_file_end_for_isr): Declare.
16810 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16811             Kito Cheng  <kito@0xlab.org>
16812             Monk Chiang  <sh.chiang04@gmail.com>
16814         * config.gcc (nds32*): Add new modules to extra_objs.
16815         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
16816         (nds32be-*-*): Likewise.
16817         * config/nds32/nds32-cost.c: New file.
16818         * config/nds32/nds32-fp-as-gp.c: New file.
16819         * config/nds32/nds32-intrinsic.c: New file.
16820         * config/nds32/nds32-isr.c: New file.
16821         * config/nds32/nds32-md-auxiliary.c: New file.
16822         * config/nds32/nds32-memory-manipulation.c: New file.
16823         * config/nds32/nds32-pipelines-auxiliary.c: New file.
16824         * config/nds32/nds32-predicates.c: New file.
16825         * config/nds32/t-nds32: New file.
16827 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16829         PR tree-optimization/61682
16830         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
16831         using cases and when one of the operands is equal to 1.
16833 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
16835         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
16836         ashr<mode>3): Correct mode of operands[2].
16837         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
16838         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
16839         Correct mode of operands[2].  Fix split condition.
16841 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
16843         * arm.md (arch): Add armv6_or_vfpv3.
16844         (arch_enabled): Add test for the above.
16845         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
16846         on VFP9.
16847         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
16849 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16851         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
16852         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
16853         HWI 1 and negate the unsigned value.
16854         * expmed.c (expand_sdiv_pow2): For modes wider than word always
16855         use AND instead of shift.
16856         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
16858 2014-07-03  Marek Polacek  <polacek@redhat.com>
16860         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
16861         (-fsanitize=float-divide-by-zero): Move to the table with
16862         -fsanitize=undefined suboptions.
16863         (-fsanitize=float-cast-overflow): Likewise.
16865 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
16867         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
16868         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
16869         endianness.
16871 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16873         * loop-invariant.c (struct invariant): Add a new member: eqno;
16874         (find_identical_invariants): Update eqno;
16875         (create_new_invariant): Init eqno;
16876         (get_inv_cost): Compute comp_cost with eqno;
16878 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
16880         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
16881         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
16882         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
16883         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
16884         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
16886 2014-07-02  Christian Bruel  <christian.bruel@st.com>
16888         PR target/29349
16889         PR target/53513
16890         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
16891         (make_preds_opaque): Delete.
16892         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
16893         (commit_mode_sets): New function.
16894         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
16895         Process all modes at once.
16896         * basic-block.h (pre_edge_lcm_avs): Declare.
16897         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
16898         Call clear_aux_for_edges. Fix comments.
16899         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
16900         (pre_edge_rev_lcm): Idem.
16901         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
16902         parameter.
16903         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
16904         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
16905         Idem.
16906         * config/i386/i386.c (x96_emit_mode_set): Idem.
16907         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
16908         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
16909         (fpscr_toggle) Disallow from delay slot.
16910         * target.def (emit_mode_set): Add prev_mode parameter.
16911         * doc/tm.texi: Regenerate.
16913 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16915         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
16916         variable i.
16918 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16920         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
16921         vtable_pointer_value_to_vtable): Constify.
16922         (contains_polymorphic_type_p): Declare.
16923         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
16924         vtable_pointer_value_to_vtable): Constify.
16925         (contains_polymorphic_type_p): New predicate.
16926         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
16927         polymorphic types.
16928         (ipa_set_ancestor_jf): Likewise.
16929         (detect_type_change): Return false in easy cases.
16930         (compute_complex_assign_jump_func): Require type to contain
16931         polymorphic type.
16932         (compute_known_type_jump_func): Likewise.
16934 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16936         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
16937         Remove.
16938         (type_in_anonymous_namespace_p): Constify argument.
16939         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
16940         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
16941         (main_odr_variant): New function.
16942         (hash_type_name): Make static; update assert; do not ICE on
16943         non-records.
16944         (types_same_for_odr): Bring here from tree.c; simplify and remove
16945         old structural comparing code that doesn't work for templates.
16946         (odr_hasher::equal): Update assert.
16947         (add_type_duplicate): Return true when bases should be computed;
16948         replace incomplete loader by complete; do not output duplicated
16949         warnings; do not ICE on non-records; set odr_violated flag.
16950         (get_odr_type): Be ready to replace incomplete type by complete
16951         one; work on ODR variants instead of main variants; reorder item
16952         in array so bases have still smaller indexes.
16953         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
16954         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
16956 2014-07-01  Cary Coutant  <ccoutant@google.com>
16958         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16959         lookup.
16960         (resolve_addr_in_expr): When replacing the rtx in a location list
16961         entry, get a new address table entry.
16962         (dwarf2out_finish): Call index_location_lists even if there are no
16963         addr_index_table entries yet.
16965 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16967         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16968         change for not being obvious.
16970 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16972         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16973         unused argument.
16975 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16977         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16978         (vcagt_f64): Likewise.
16979         (vcale_f64): Likewise.
16980         (vcaled_f64): Likewise.
16981         (vcales_f32): Likewise.
16982         (vcalt_f64): Likewise.
16983         (vcaltd_f64): Likewise.
16984         (vcalts_f32): Likewise.
16986 2014-07-01  Marek Polacek  <polacek@redhat.com>
16988         * doc/invoke.texi: Document -Wint-conversion.
16990 2014-07-01  Marek Polacek  <polacek@redhat.com>
16992         PR c/58286
16993         * doc/invoke.texi: Document -Wincompatible-pointer-types.
16995 2014-07-01  Martin Liska  <mliska@suse.cz>
16997         IPA REF alias refactoring
16998         * cgraph.h (iterate_direct_aliases): New function.
16999         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
17000         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
17001         FOR_EACH_ALIAS added.
17002         (cgraph_for_node_and_aliases): Likewise.
17003         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
17004         * ipa-inline.c (reset_edge_caches): Likewise.
17005         (update_caller_keys): Likewise.
17006         * trans-mem.c (ipa_tm_execute): Likewise.
17007         *varpool.c (varpool_analyze_node): Likewise.
17008         (varpool_for_node_and_aliases): Likewise.
17009         * ipa-ref.h (first_alias): New function.
17010         (last_alias): Likewise.
17011         (has_aliases_p): Likewise.
17012         * ipa-ref.c (ipa_ref::remove_reference): Removal function
17013         is sensitive to IPA_REF_ALIASes.
17014         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
17015         are put at the beginning of the list.
17016         (symtab_node::iterate_direct_aliases): New function.
17018 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17020         Revert:
17021         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
17022         type is complete.
17023         (write_ts_type_common_tree_pointers): Do not stream fields not set
17024         for incomplete types; do not stream duplicated fields for variants;
17025         sanity check that variant and type match.
17026         (write_ts_type_non_common_tree_pointers): Likewise.
17027         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
17028         TYPE_SIZE whether type is complete.
17029         (lto_input_ts_type_common_tree_pointers): Do same changes as in
17030         write_ts_type_common_tree_pointers
17031         (lto_input_ts_type_non_common_tree_pointers): Likewise.
17033 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
17035         * var-tracking.c (add_stores): Return instead of asserting if old
17036         and new values for conditional store are the same.
17038 2014-06-30  Richard Henderson  <rth@redhat.com>
17040         PR rtl-opt/61608
17041         PR target/39284
17042         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
17043         the cfg if there were any changes.
17044         * passes.def: Revert move of peephole2 after reorder_blocks;
17045         move duplicate_computed_gotos before peephole2.
17047 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
17049         * except.c (emit_note_eh_region_end): New helper function.
17050         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
17051         emit EH_REGION_END note.
17052         * jump.c (cleanup_barriers): Do not split a call and its
17053         corresponding CALL_ARG_LOCATION note.
17055 2014-06-30  Jeff Law  <law@redhat.com>
17057         PR tree-optimization/61607
17058         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
17059         deeper into the SSA_NAME_VALUE chain.
17061 2014-06-30  Marek Polacek  <polacek@redhat.com>
17063         * convert.c (convert_to_integer): Don't instrument conversions if the
17064         function has no_sanitize_undefined attribute.
17065         * ubsan.c: Don't run the ubsan pass if the function has
17066         no_sanitize_undefined attribute.
17068 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
17070         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
17071         -fsanitize=undefined suboptions.
17073 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
17075         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
17076         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
17077         against bigendian and adjust indices.
17079 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
17081         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
17083 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17085         PR target/61633
17086         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
17087         Add alternative; make early clobber.  Adjust both split patterns
17088         to use operand 0 as the working register.
17090 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
17092         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
17093         as ira_object_id_map might be NULL, or 1.
17095 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17097         * loop-invariant.c (get_inv_cost): Handle register class.
17098         (gain_for_invariant): Check the register pressure of the inv
17099         and its overlapped register class, other than all.
17101 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
17103         * doc/invoke.texi (Optimize Options): Fix descriptions of
17104         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
17106 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
17108         * doc/extend.texi (Function Attributes): Update 'naked' attribute
17109         documentation.
17111 2014-06-29  Tobias Grosser <tobias@grosser.es>
17113         PR bootstrap/61650
17114         * graphite-isl-ast-to-gimple.c: Add missing guards.
17116 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17118         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
17119         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
17120         * flag-types.h: Add new enum fgraphite_generator.
17121         * graphite-isl-ast-to-gimple.c: New.
17122         * graphite-isl-ast-to-gimple.h: New.
17123         * graphite.c (graphite_transform_loops): Add choice of Graphite
17124         code generator, which depends on flag_graphite_code_gen.
17126 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17128         * graphite-dependences.c (subtract_commutative_associative_deps):
17129         Add NULL checking of the following variables: must_raw_no_source,
17130         may_raw_no_source, must_war_no_source, may_war_no_source,
17131         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
17132         must_war, may_war, must_waw, may_waw.
17134 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17136         * graphite-clast-to-gimple.c: gloog is renamed to
17137         graphite_regenerate_ast_cloog.  gloog_error is renamed to
17138         graphite_regenerate_error.
17139         * graphite-clast-to-gimple.h: The definition of the struct
17140         bb_pbb_def is moved to graphite-htab.h.
17141         Add inclusion of the hash-table.h.
17142         * graphite-htab.h: The declaration of the function gloog is moved
17143         to graphite-clast-to-gimple.h and renamed to
17144         graphite_regenerate_ast_cloog.
17145         * graphite.c (graphite_transform_loops): gloog is renamed
17146         to graphite_regenerate_ast_cloog.
17148 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17150         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
17151         type is complete.
17152         (write_ts_type_common_tree_pointers): Do not stream fields not set
17153         for incomplete types; do not stream duplicated fields for variants;
17154         sanity check that variant and type match.
17155         (write_ts_type_non_common_tree_pointers): Likewise.
17156         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
17157         TYPE_SIZE whether type is complete.
17158         (lto_input_ts_type_common_tree_pointers): Do same changes as in
17159         write_ts_type_common_tree_pointers
17160         (lto_input_ts_type_non_common_tree_pointers): Likewise.
17162 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17164         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
17166 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17168         * tree-inline.c (remap_type_1): Do not duplicate fields
17169         that are shared in between type and its main variant.
17171 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17173         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
17174         of the type.
17175         (ipa_set_ancestor_jf) Likewise.
17176         (check_stmt_for_type_change): Check that we work on main variant.
17177         (detect_type_change): Look into main variant.
17178         (compute_known_type_jump_func): Check that main variant has BINFO.
17180 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17182         * ipa-devirt.c (set_type_binfo): New function.
17183         (add_type_duplicate): Use it.
17184         (get_odr_type): Sanity check that binfos points to main variants.
17185         (get_class_context): Be sure the context's outer_type is main variant.
17186         (contains_type_p): Walk main variant.
17187         (get_polymorphic_call_info_for_decl): Set outer_type to be
17188         main variant.
17189         (get_polymorphic_call_info): Likewise.
17190         (possible_polymorphic_call_targets): Sanity check that we operate
17191         on main variant.
17193 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17195         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17197 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17199         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
17200         accidental change due to wide-int branch merge.
17202 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17204         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
17205         compressed debug support.
17206         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
17207         * configure: Regenerate.
17208         * config.in: Regenerate.
17209         * common.opt (compressed_debug_sections): New enum.
17210         (gz, gz=): New options.
17211         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
17212         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
17213         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
17214         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
17215         LINK_COMPRESS_DEBUG_SPEC.
17216         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
17217         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
17218         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
17219         (Debugging Options): Document -gz[=type].
17221 2014-06-27  Martin Jambor  <mjambor@suse.cz>
17223         PR ipa/61160
17224         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
17225         args_to_skip, use those from node instead.  Copy args_to_skip and
17226         combined_args_to_skip from node to the new thunk.
17227         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
17228         (cgraph_create_virtual_clone): Moved computation of
17229         combined_args_to_skip...
17230         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
17232 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
17234         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
17235         redundant diagnostic machinary.
17237 2014-06-27  Richard Biener  <rguenther@suse.de>
17239         * tree-ssa-math-opts.c (bswap_replace): Fix
17240         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
17242 2014-06-27  Martin Liska  <mliska@suse.cz>
17244         * gimple.h (gimple_location_safe): New function introduced.
17245         * cgraphunit.c (walk_polymorphic_call_targets): Usage
17246         of gimple_location_safe replaces gimple_location.
17247         (gimple_fold_call): Likewise.
17248         * ipa-devirt.c (ipa_devirt): Likewise.
17249         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17250         * ipa.c (walk_polymorphic_call_targets): Likewise.
17251         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
17253 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
17255         PR tree-optimization/57233
17256         PR tree-optimization/61299
17257         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
17258         functions.
17259         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
17260         would be lowered to scalar shifts, check if corresponding
17261         shifts and vector BIT_IOR_EXPR are supported and don't lower
17262         or lower just to narrower vector type in that case.
17263         * expmed.c (expand_shift_1): Fix up handling of vector
17264         shifts and rotates.
17266 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
17268         PR target/61586
17269         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
17271 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
17273         * doc/invoke.texi (-fsemantic-interposition): Document.
17274         * common.opt (fsemantic-interposition): New flag.
17275         * varasm.c (decl_replaceable_p): Use it.
17277 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17279         PR target/61542
17280         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
17281         extraction other than index 3.
17283 2014-06-26  Teresa Johnson  <tejohnson@google.com>
17285         * doc/invoke.texi: Fix typo.
17286         * dumpfile.c: Add support for documented -fdump-* options
17287         optimized/missed/note/optall.
17289 2014-06-26  Martin Jambor  <mjambor@suse.cz>
17291         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
17292         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
17293         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
17294         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
17295         * opts.c (default_options_optimization): Set
17296         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
17297         * doc/invoke.texi (allow-load-data-races)
17298         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
17299         (allow-store-data-races): Document the new default.
17301 2014-06-26  Martin Jambor  <mjambor@suse.cz>
17303         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
17304         renamed to ipa_impossible_devirt_target.  Fix typo.
17305         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
17306         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
17307         ipa_impossible_devirt_target.
17309 2014-06-26  Richard Biener  <rguenther@suse.de>
17311         PR tree-optimization/61607
17312         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
17313         explaining why we restrict copies on loop depth.
17314         * tree-ssa-dom.c (cprop_operand): Remove restriction on
17315         on loop depth.
17316         (record_equivalences_from_phis): Instead add it here.
17318 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
17320         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
17321         (LTO_WRAPPER_OBJS): New variable.
17322         (lto-wrapper$(exeext)): Use it.
17323         * collect2.c: Include "collect-utils.h".
17324         (verbose, debug): Remove variables.
17325         (at_file_supplied): No longer static.
17326         (tool_name): New variable.
17327         (do_wait, fork_execute, maybe_unlink): Don't declare.
17328         (tool_cleanup): No longer static.
17329         (notice): Remove function.
17330         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
17331         fork_execute calls.
17332         (collect_wait, do_wait, collect_execute): Remove functions.
17333         (maybe_unlink): No longer static.
17334         * collect2.h (verbose, debug): Don't declare.
17335         (at_file_supplied): Declare.
17336         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
17337         changed.
17338         (collect_execute): Replace with implementation from collect2, plus a
17339         new arg use_atfile.  All callers changed.
17340         (collect_wait): Replace with implementation from collect2.
17341         (maybe_unlink_file): Remove function.
17342         (fork_execute): Replace with implementation from collect2, plus a
17343         new arg use_atfile.  All callers changed.
17344         (do_wait): Add call to utils_cleanup to the error path.
17345         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
17346         (tool_cleanup): Adjust declarations.
17347         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
17348         * tlink.c: Include "collect-utils.h".
17349         (tlink_execute): New arg use_atfile.  All callers changed.
17350         (tlink_init, tlink_execute): Remove declarations.
17352         * collect-utils.c (save_temps): New variable.
17353         (do_wait): Use it instead of debug.  Use fatal_error.
17354         * collect-utils.h (save_temps): Declare.
17355         * collect2.c (verbose): Rename from vflag.  All uses changed.
17356         (tool_cleanup): New function, copied from collect_atexit.
17357         (collect_atexit, handler): Just call it.
17358         * collect2.h (verbose): Declaration renamed from vflag.
17359         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
17360         debug.
17362         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
17363         (lto-wrapper$(exeext)): Link with collect-utils.o.
17364         * collect-utils.c: New file.
17365         * collect-utils.h: New file.
17366         * lto-wrapper.c: Include "collect-utils.h".
17367         (args_name): Delete variable.
17368         (tool_name): New variable.
17369         (tool_cleanup): New function.
17370         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
17371         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
17372         (fork_execute): Remove functions.
17374 2014-06-26  Nick Clifton  <nickc@redhat.com>
17376         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
17378         * doc/extend.texi (Function Attributes): Fix typo in description
17379         of RX vector attribute.
17381 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17383         * config.gcc (supported_defaults): Error when passing either
17384         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
17386 2014-06-26  Richard Biener  <rguenther@suse.de>
17388         * tree-ssa-dom.c (cprop_operand): Remove restriction on
17389         propagating volatile pointers.
17391 2014-06-26  Richard Biener  <rguenther@suse.de>
17393         PR tree-optimization/61607
17394         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
17395         loop if we redirected its latch edge.
17396         (thread_block_1): Do not cancel loops prematurely.
17398 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
17400         * toplev.c (backend_init_target): Move init_emit_regs and
17401         init_regs to...
17402         (backend_init) ... here; skip ira_init_once and backend_init_target.
17403         (target_reinit) ... and here; clear
17404         this_target_rtl->lang_dependent_initialized.
17405         (lang_dependent_init_target): Clear
17406         this_target_rtl->lang_dependent_initialized;
17407         break out rtl initialization to ...
17408         (initialize_rtl): ... here; call also backend_init_target
17409         and ira_init_once.
17410         * toplev.h (initialize_rtl): New function.
17411         * function.c: Include toplev.h
17412         (init_function_start): Call initialize_rtl.
17413         * rtl.h (target_rtl): Add target_specific_initialized,
17414         lang_dependent_initialized.
17416 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
17417             Jakub Jelinek  <jakub@redhat.com>
17419         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
17421 2014-06-25  Tom de Vries  <tom@codesourcery.com>
17423         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
17425 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17427         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
17428         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
17429         Issue a strict overflow warning if appropriate.
17431 2014-06-25  Martin Liska  <mliska@suse.cz>
17433         IPA REF refactoring
17434         * Makefile.in: Removed header file (ipa-ref-inline.h).
17435         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
17436         called.
17437         (cgraph_speculative_call_info): Likewise.
17438         (cgraph_for_node_thunks_and_aliases): Likewise.
17439         (cgraph_for_node_and_aliases): Likewise.
17440         (verify_cgraph_node): Likewise.
17441         * cgraph.h: Batch of IPA REF functions become member functions of
17442         symtab_node: add_reference, maybe_add_reference, clone_references,
17443         clone_referring, clone_reference, find_reference,
17444         remove_stmt_references, remove_all_references,
17445         remove_all_referring, dump_references, dump_referring,
17446         has_alias_p, iterate_reference, iterate_referring.
17447         * cgraphbuild.c (record_reference): New IPA REF function used.
17448         (record_type_list): Likewise.
17449         (record_eh_tables): Likewise.
17450         (mark_address): Likewise.
17451         (mark_load): Likewise.
17452         (mark_store): Likewise.
17453         (pass_build_cgraph_edges): Likewise.
17454         (rebuild_cgraph_edge): Likewise.
17455         (cgraph_rebuild_references): Likewise.
17456         (pass_remove_cgraph_callee_edges): Likewise.
17457         * cgraphclones.c (cgraph_clone_node): Likewise.
17458         (cgraph_create_virtual_clone): Likewise.
17459         (cgraph_materialize_clone): Likewise.
17460         (cgraph_materialize_all_clones): Likewise.
17461         * cgraphunit.c (cgraph_reset_node): Likewise.
17462         (cgraph_reset_node): Likewise.
17463         (analyze_function): Likewise.
17464         (assemble_thunks_and_aliases): Likewise.
17465         (expand_function): Likewise.
17466         * ipa-comdats.c (propagate_comdat_group): Likewise.
17467         (enqueue_references): Likewise.
17468         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
17469         (create_specialized_node): Likewise.
17470         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
17471         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
17472         * ipa-inline.c (reset_edge_caches): Likewise.
17473         (update_caller_keys): Likewise.
17474         (execute): Likewise.
17475         * ipa-prop.c (remove_described_reference): Likewise.
17476         (propagate_controlled_uses): Likewise.
17477         (ipa_edge_duplication_hook): Likewise.
17478         (ipa_modify_call_arguments): Likewise.
17479         * ipa-pure-const.c (propagate_pure_const): Likewise.
17480         * ipa-ref-inline.h: Header file removed, functions moved
17481         to symtab_node class.
17482         * ipa-ref.c (remove_reference): New class member function.
17483         (cannot_lead_to_return): New class member function.
17484         (referring_ref_list): Likewise.
17485         (referred_ref_list): Likewise.
17486         Rest of functions moved to symtab_node class.
17487         * ipa-ref.h: New member functions remove_reference,
17488         cannot_lead_to_return, referring_ref_list, referred_ref_list added
17489         to ipa_ref class.
17490         ipa_ref_list class has new member functions: first_reference,
17491         first_referring, clear, nreferences.
17492         * ipa-reference.c (analyze_function): New IPA REF function used.
17493         (write_node_summary_p): Likewise.
17494         (ipa_reference_write_optimization_summary): Likewise.
17495         * ipa-split.c (split_function): Likewise.
17496         * ipa-utils.c (ipa_reverse_postorder): Likewise.
17497         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
17498         (function_and_variable_visibility): Likewise.
17499         * ipa.c (has_addr_references_p): Likewise.
17500         (process_references): Argument type changed.
17501         (symtab_remove_unreachable_nodes): New IPA REF function used.
17502         (process_references): Likewise.
17503         (set_writeonly_bit): Likewise.
17504         * lto-cgraph.c: Implementation of new symtab_node member functions
17505         that uses new IPA REF functions.
17506         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
17507         function used.
17508         * lto-streamer-out.c (output_symbol_p): Likewise.
17509         * lto-streamer.h (referenced_from_this_partition_p): Argument type
17510         changed.
17511         * symtab.c: Implementation of new IPA REF API.
17512         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
17513         (ipa_tm_create_version): Likewise.
17514         (ipa_tm_execute): Likewise.
17515         * tree-emutls.c (gen_emutls_addr): Likewise.
17516         * tree-inline.c (copy_bb): Likewise.
17517         (delete_unreachable_blocks_update_callgraph): Likewise.
17518         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
17519         (varpool_for_node_and_aliases): Likewise.
17521 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
17523         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
17525 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
17527         PR bootstrap/61598
17528         * fold-const.c (fold_checksum_tree): Use a hash_table of const
17529         tree_node * instead of tree_node *.
17530         (fold): Adjust.
17531         (print_fold_checksum): Likewise.
17532         (fold_check_failed): Likewise.
17533         (debug_fold_checksum): Likewise.
17534         (fold_build1_stat_loc): Likewise.
17535         (fold_build2_stat_loc): Likewise.
17536         (fold_build3_stat_loc): Likewise.
17537         (fold_build_call_array_loc): Likewise.
17539 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
17541         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
17542         implementation with call to...
17543         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
17544         function.
17545         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
17546         Declare.
17548 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
17550         PR tree-optimization/57742
17551         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
17552         after replacing the statement.
17554 2014-06-25  Nick Clifton  <nickc@redhat.com>
17556         * config/v850/v850.c (GHS_default_section_names): Change to const
17557         char * type.
17558         (GHS_current_section_names): Likewise.
17559         (v850_insert_attributes): Do not build strings, just assign the
17560         names directly.  Change the type of 'chosen_section' to const
17561         char*.
17562         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
17563         directly to the array entry.
17564         * config/v850/v850.h (GHS_default_section_names): Change to const
17565         char * type.
17566         (GHS_current_section_names): Likewise.
17568 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
17570         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
17571         (LANG_HOOKS_DECLS): Add it.
17572         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
17573         has correct type.
17574         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
17575         * langhooks.h (struct lang_hooks_for_decls): Add
17576         omp_clause_linear_ctor hook.
17577         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
17578         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
17579         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
17580         combined simd loop use omp_clause_linear_ctor hook.
17582 2014-06-24  Cong Hou  <congh@google.com>
17584         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
17585         pattern recognition.
17586         (type_conversion_p): PROMOTION is true if it's a type promotion
17587         conversion, and false otherwise.  Return true if the given expression
17588         is a type conversion one.
17589         * tree-vectorizer.h: Adjust the number of patterns.
17590         * tree.def: Add SAD_EXPR.
17591         * optabs.def: Add sad_optab.
17592         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
17593         * expr.c (expand_expr_real_2): Likewise.
17594         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
17595         * gimple.c (get_gimple_rhs_num_ops): Likewise.
17596         * optabs.c (optab_for_tree_code): Likewise.
17597         * tree-cfg.c (estimate_operator_cost): Likewise.
17598         * tree-ssa-operands.c (get_expr_operands): Likewise.
17599         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
17600         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
17601         * doc/generic.texi: Add document for SAD_EXPR.
17602         * doc/md.texi: Add document for ssad and usad.
17604 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17606         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
17607         qualification in cast.
17609 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
17611         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
17612         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
17613         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
17614         (tree_function_decl): ... here.
17615         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
17616         streaming of vindex to ...
17617         (write_ts_function_decl_tree_pointers): ... here.
17618         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17619         Do not stream DECL_VINDEX.
17620         (lto_input_ts_function_decl_tree_pointers): Stream it here.
17622 2014-06-24  Catherine Moore  <clm@codesourcery.com>
17623             Sandra Loosemore  <sandra@codesourcery.com>
17625         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
17626         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
17627         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
17629 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
17631         * doc/invoke.texi (Warning Options): Remove duplicated
17632         -Wmaybe-uninitialized.
17634 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
17636         PR tree-optimization/57742
17637         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
17638         (handle_builtin_malloc, handle_builtin_memset): New functions.
17639         (strlen_optimize_stmt): Call them.
17640         * passes.def: Move strlen after loop+dom but before vrp.
17642 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17644         PR target/61570
17645         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
17646         model family 6 CPU with has_longmode never use a CPU without
17647         64-bit support.
17649 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17651         PR target/61570
17652         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
17653         the last change.
17655 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17657         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
17658         * dominance.c (iterate_fix_dominators): Use hash_map instead of
17659         pointer_map.
17660         * hash-map.h: New file.
17661         * ipa-comdats.c: Use hash_map instead of pointer_map.
17662         * ipa.c: Likewise.
17663         * lto-section-out.c: Adjust.
17664         * lto-streamer.h: Replace pointer_map with hash_map.
17665         * symtab.c (verify_symtab): Likewise.
17666         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
17667         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
17668         * tree-streamer.h: Likewise.
17669         * tree-streamer.c: Adjust.
17670         * pointer-set.h: Remove pointer_map.
17672 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17674         * hash-table.h: Add a template arg to choose between storing values
17675         and storing pointers to values, and then provide partial
17676         specializations for both.
17677         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
17678         should store, not the type values should point to.
17679         * tree-into-ssa.c (var_info_hasher): Likewise.
17680         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17681         * tree-complex.c: Adjust.
17682         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
17683         table instead of int_tree_map *.
17684         * tree-parloops.c: Adjust.
17685         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
17686         type is being stored.
17687         * tree-vectorizer.c: Adjust.
17689 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17691         * hash-table.h: Remove a layer of indirection from hash_table so that
17692         it contains the hash table's data instead of a pointer to the data.
17693         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
17694         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
17695         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
17696         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
17697         fold-const.c, gcse.c, ggc-common.c,
17698         gimple-ssa-strength-reduction.c, gimplify.c,
17699         graphite-clast-to-gimple.c, graphite-dependences.c,
17700         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
17701         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
17702         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
17703         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
17704         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
17705         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
17706         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
17707         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
17708         tree-ssa-live.c, tree-ssa-loop-im.c,
17709         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
17710         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
17711         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
17712         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
17713         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
17714         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
17715         vtable-verify.c, vtable-verify.h: Adjust.
17717 2014-06-24  Richard Biener  <rguenther@suse.de>
17719         PR tree-optimization/61572
17720         * tree-ssa-sink.c (statement_sink_location): Do not sink
17721         loads from hard registers.
17723 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17725         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
17726         not mentioned in clauses use private clause if the iterator is
17727         declared in #pragma omp for simd, and when adding lastprivate
17728         instead, add it to the outer #pragma omp for too.  Diagnose
17729         if the variable is private in outer context.  For simd collapse > 1
17730         loops, replace all iterators with temporaries.
17731         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
17732         same even in collapse > 1 loops.
17734         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
17735         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
17736         non-NULL.
17737         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
17738         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
17739         non-NULL.
17740         (gimplify_adjust_omp_clauses): Likewise.
17741         * omp-low.c (lower_rec_simd_input_clauses,
17742         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
17743         safelen the same as safelen(1).
17744         * tree-nested.c (convert_nonlocal_omp_clauses,
17745         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
17746         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
17747         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
17748         Fixup handling of GIMPLE_OMP_TARGET.
17749         (convert_tramp_reference_stmt, convert_gimple_call): Handle
17750         GIMPLE_OMP_TARGET.
17752 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
17754         PR tree-optimization/61554
17755         * tree-ssa-propagate.c: Include "bitmap.h".
17756         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
17757         properly update constructor/destructor.
17758         (substitute_and_fold_dom_walker::before_dom_children):
17759         Remove call to gimple_purge_dead_eh_edges, add bb->index to
17760         need_eh_cleaup instead.
17761         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
17762         need_eh_cleanup.
17764 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17766         * varpool.c (dump_varpool_node): Dump used_by_single_function.
17767         * tree-pass.h (make_pass_ipa_single_use): New pass.
17768         * cgraph.h (used_by_single_function): New flag.
17769         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
17770         Stream it.
17771         * passes.def (pass_ipa_single_use): Scedule.
17772         * ipa.c (BOTTOM): New macro.
17773         (meet): New function
17774         (propagate_single_user): New function.
17775         (ipa_single_use): New function.
17776         (pass_data_ipa_single_use): New pass.
17777         (pass_ipa_single_use): New pass.
17778         (pass_ipa_single_use::gate): New gate.
17779         (make_pass_ipa_single_use): New function.
17781 2014-06-23  Kai Tietz  <ktietz@redhat.com>
17783         PR target/39284
17784         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
17785         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
17787 2014-06-23  Richard Biener  <rguenther@suse.de>
17789         * tree-ssa-loop.c (gate_loop): New function.
17790         (pass_tree_loop::gate): Call it.
17791         (pass_data_tree_no_loop, pass_tree_no_loop,
17792         make_pass_tree_no_loop): New.
17793         * tree-vectorizer.c: Include tree-scalar-evolution.c
17794         (pass_slp_vectorize::execute): Initialize loops and SCEV if
17795         required.
17796         (pass_slp_vectorize::clone): New method.
17797         * timevar.def (TV_TREE_NOLOOP): New.
17798         * tree-pass.h (make_pass_tree_no_loop): Declare.
17799         * passes.def (pass_tree_no_loop): New pass group with
17800         SLP vectorizer.
17802 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17804         PR target/61570
17805         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
17806         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
17808 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17810         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
17811         "yes" where needed.
17813 2014-06-23  Alan Modra  <amodra@gmail.com>
17815         PR bootstrap/61583
17816         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
17817         to zero on debug statements.
17819 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17821         PR target/60825
17822         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
17823         Ignore third operand if present by marking qualifier_internal.
17825         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
17827         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
17828         vector extension.
17829         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
17830         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
17831         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
17832         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
17833         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
17834         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
17835         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
17836         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
17837         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
17838         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
17839         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
17840         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
17841         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
17842         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
17843         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
17844         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
17845         logic in GCC vector extensions
17847         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
17848         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
17849         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
17850         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
17851         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
17852         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
17853         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
17854         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
17855         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
17856         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
17858         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
17860         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
17861         extensions.
17863         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
17864         (vget_low_s64): Use __GET_LOW macro.
17865         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
17866         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
17867         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
17868         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
17869         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
17871         (vcombine_s64): Use GCC vector extensions; remove cast.
17872         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
17873         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
17874         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
17875         Fix type signature; remove cast.
17877 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17879         PR target/60825
17880         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
17881         V1DFmode.
17882         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
17883         add V1DFmode
17884         (BUILTIN_VD1): New.
17885         (BUILTIN_VD_RE): Remove.
17886         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
17887         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
17888         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
17889         variant but not df.
17890         (vreinterpretv1df*, vreinterpret*v1df): New.
17891         (vreinterpretdf*, vreinterpret*df): Remove.
17892         * config/aarch64/aarch64-simd.md (aarch64_create,
17893         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
17894         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
17895         (VD1): New.
17896         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
17897         (vcreate_f64): Remove cast, use v1df builtin.
17898         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
17899         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
17900         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
17901         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
17902         vmov_n_f64, vst1_f64): Use gcc vector extensions.
17903         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
17904         add range check using __builtin_aarch64_im_lane_boundsi.
17905         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
17906         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
17907         type signature, use gcc vector extensions.
17908         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
17909         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
17910         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
17911         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
17912         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
17913         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
17914         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
17915         vreinterpret_u64_f64): Use v1df builtin not df.
17917 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17919         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
17920         vector registers.
17922 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17924         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
17925         priority directly.
17927 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17929         * loop-invariant.c (pre_check_invariant_p): New function.
17930         (find_invariant_insn): Call pre_check_invariant_p.
17932 2014-06-22  Richard Henderson  <rth@redhat.com>
17934         PR target/61565
17935         * compare-elim.c (struct comparison): Add eh_note.
17936         (find_comparison_dom_walker::before_dom_children): Don't eliminate
17937         a redundant comparison in a different EH region.  Purge EH edges if
17938         necessary.
17940 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17942         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
17943         (var_shift): Use it.
17944         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
17945         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17946         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17947         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17948         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17949         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
17950         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
17951         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
17952         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
17953         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
17954         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
17955         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
17956         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17957         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17958         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17959         *rotldi3_internal15be): Use the new attribute.  Merge register and
17960         integer alternatives.
17962 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17964         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17965         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17966         split, *ashrdi3_internal3 and split): Delete, merge into...
17967         (ashr<mode>3): New expander.
17968         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17969         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
17971 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17973         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17974         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17975         *rotldi3_internal3 and split): Delete, merge into...
17976         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17977         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
17978         Use "rotlw" extended mnemonic.
17980 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17982         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17983         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17984         and split, *ashldi3_internal3 and split): Delete, merge into...
17985         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17986         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
17988 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17990         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17991         (lshrsi3, two anonymous define_insns and define_splits,
17992         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17993         *lshrdi3_internal3 and split): Delete, merge into...
17994         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17995         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
17997 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17999         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
18000         Remove "O" alternative.
18002 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
18004         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
18005         (mips_move_from_gpr_cost): Likewise.
18006         (mips_register_move_cost): Update accordingly.
18007         (mips_secondary_reload_class): Remove name of in_p.
18009 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
18011         PR target/61503
18012         * config/i386/i386.md (x86_64_shrd, x86_shrd,
18013         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
18015 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18017         * config/nios2/nios2.c: Include "builtins.h".
18019 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18021         * cgraph.h (tls_model_names): New variable.
18022         * print-tree.c (print_node): Simplify.
18023         * varpool.c (tls_model_names): New variable.
18024         (dump_varpool_node): Output tls model.
18026 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18028         * ipa-visibility.c (function_and_variable_visibility): Disable
18029         temporarily local aliases for some targets.
18031 2014-06-20  Marek Polacek  <polacek@redhat.com>
18033         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
18034         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
18035         into SANITIZE_UNDEFINED.
18036         * doc/invoke.texi: Describe -fsanitize=bounds.
18037         * gimplify.c (gimplify_call_expr): Add gimplification of internal
18038         functions created in the FEs.
18039         * internal-fn.c: Move "internal-fn.h" after "tree.h".
18040         (expand_UBSAN_BOUNDS): New function.
18041         * internal-fn.def (UBSAN_BOUNDS): New internal function.
18042         * internal-fn.h: Don't define internal functions here.
18043         * opts.c (common_handle_option): Add -fsanitize=bounds.
18044         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
18045         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
18046         * tree-core.h: Define internal functions here.
18047         (struct tree_base): Add ifn field.
18048         * tree-pretty-print.c: Include "internal-fn.h".
18049         (dump_generic_node): Handle functions without CALL_EXPR_FN.
18050         * tree.c (get_callee_fndecl): Likewise.
18051         (build_call_expr_internal_loc): New function.
18052         * tree.def (CALL_EXPR): Update description.
18053         * tree.h (CALL_EXPR_IFN): Define.
18054         (build_call_expr_internal_loc): Declare.
18055         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
18056         types.
18057         (ubsan_type_descriptor): Change bool parameter to enum
18058         ubsan_print_style.  Adjust the code.  Add handling of
18059         UBSAN_PRINT_ARRAY.
18060         (ubsan_expand_bounds_ifn): New function.
18061         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
18062         (ubsan_build_overflow_builtin): Likewise.
18063         (instrument_bool_enum_load): Likewise.
18064         (ubsan_instrument_float_cast): Likewise.
18065         * ubsan.h (enum ubsan_print_style): New enum.
18066         (ubsan_expand_bounds_ifn): Declare.
18067         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
18069 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
18071         * config/rs6000/rs6000.md: Append `DONE' to preparation
18072         statements of `bswap' pattern splitters.
18074 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18076         * target.def (call_fusage_contains_non_callee_clobbers): Update
18077         definition.
18078         * doc/tm.texi: Regenerate.
18080 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
18081             Max Ostapenko  <m.ostapenko@partner.samsung.com>
18083         PR sanitizer/61547
18084         * asan.c (instrument_strlen_call): Fixed instrumentation of
18085         trailing byte.
18087 2014-06-20  Martin Jambor  <mjambor@suse.cz>
18089         PR ipa/61540
18090         * ipa-prop.c (impossible_devirt_target): New function.
18091         (try_make_edge_direct_virtual_call): Use it, also instead of
18092         asserting.
18094 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
18095             Max Ostapenko  <m.ostapenko@partner.samsung.com>
18097         PR sanitizer/61530
18098         * asan.c (build_check_stmt): Add condition.
18100 2014-06-20  Martin Jambor  <mjambor@suse.cz>
18102         PR ipa/61211
18103         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
18104         expanded clones.
18106 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18108         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
18109         Update comments.
18110         (VCONQ): Make comment more helpful.
18111         (VCON): Delete.
18112         * config/aarch64/aarch64-simd.md
18113         (aarch64_sqdmulh_lane<mode>):
18114         Use VCOND for operands 2.  Update lane checking and flipping logic.
18115         (aarch64_sqrdmulh_lane<mode>): Likewise.
18116         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
18117         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
18118         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
18119         attribute of operand 3 to VCOND.
18120         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
18121         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
18122         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
18123         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
18124         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
18125         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
18126         define_insn.
18127         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
18128         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
18129         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
18130         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
18131         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
18132         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
18133         operand to VCOND.  Update lane flipping and bounds checking logic.
18134         (aarch64_sqdmlal2_lane<mode>): Likewise.
18135         (aarch64_sqdmlsl_lane<mode>): Likewise.
18136         (aarch64_sqdmull_lane<mode>): Likewise.
18137         (aarch64_sqdmull2_lane<mode>): Likewise.
18138         (aarch64_sqdmlal_laneq<mode>):
18139         Replace VCON usage with VCONQ.
18140         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
18141         (aarch64_sqdmlal2_laneq<mode>): Emit
18142         aarch64_sqdmlal2_laneq<mode>_internal insn.
18143         Replace VCON with VCONQ.
18144         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
18145         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18146         (aarch64_sqdmull_laneq<mode>): Emit
18147         aarch64_sqdmull_laneq<mode>_internal insn.
18148         Replace VCON with VCONQ.
18149         (aarch64_sqdmull2_laneq<mode>): Emit
18150         aarch64_sqdmull2_laneq<mode>_internal insn.
18151         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
18152         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
18153         of 3rd argument to int16x4_t.
18154         (vqdmlalh_lane_s16): Likewise.
18155         (vqdmlslh_lane_s16): Likewise.
18156         (vqdmull_high_lane_s16): Likewise.
18157         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
18158         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
18159         (vqdmlsl_lane_s16): Likewise.
18160         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
18161         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
18162         (vqdmlals_lane_s32): Likewise.
18163         (vqdmlsls_lane_s32): Likewise.
18164         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
18165         (vqdmulls_lane_s32): Likewise.
18166         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
18167         (vqdmlsl_lane_s32): Likewise.
18168         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
18169         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
18170         (vqrdmulhh_lane_s16): Likewise.
18171         (vqdmlsl_high_lane_s16): Likewise.
18172         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
18173         (vqdmlsl_high_lane_s32): Likewise.
18174         (vqrdmulhs_lane_s32): Likewise.
18176 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18178         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
18179         get_call_reg_set_usage.
18181 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18183         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
18184         it contains all call_used_regs.
18186 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18188         * final.c (collect_fn_hard_reg_usage): Add and use variable
18189         function_used_regs.
18191 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18193         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
18194         (set_init_priority, get_init_priority, set_fini_priority,
18195         get_fini_priority): New methods.
18196         * tree.c (init_priority_for_decl): Remove.
18197         (init_ttree): Do not initialize init priority.
18198         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
18199         (decl_priority_info): Remove.
18200         (decl_init_priority_insert): Rewrite.
18201         (decl_fini_priority_insert): Rewrite.
18202         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
18203         tree_priority_map_marked_p): Remove.
18204         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
18205         * lto-streamer-out.c (hash_tree): Do not hash priorities.
18206         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
18207         not output priorities.
18208         (pack_ts_function_decl_value_fields): Likewise.
18209         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18210         not input priorities.
18211         (unpack_ts_function_decl_value_fields): Likewise.
18212         * symtab.c (symbol_priority_map): Declare.
18213         (init_priority_hash): Declare.
18214         (symtab_unregister_node): Unregister from priority hash, too.
18215         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
18216         New methods.
18217         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
18218         (symbol_priority_info): New function.
18219         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
18220         New methods.
18221         * tree-core.h (tree_priority_map): Remove.
18223 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
18225         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
18226         0xff to uint64_t before shifting it up.
18228 2014-06-20  Julian Brown  <julian@codesourcery.com>
18229             Chung-Lin Tang  <cltang@codesourcery.com>
18231         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
18232         TARGET_THUMB1_ONLY. Add comments.
18234 2014-06-19  Tom de Vries  <tom@codesourcery.com>
18236         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
18237         return type to void.
18238         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
18240 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18242         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
18243         as "move", from depends_on.
18245 2014-06-19  Terry Guo  <terry.guo@arm.com>
18247         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
18248         stage.
18250 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
18252         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
18253         Remove cr5.
18254         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
18256 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18258         PR target/61550
18259         * config/sh/sh.c (prepare_move_operands): Don't process TLS
18260         addresses here if reload in progress or completed.
18262 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18264         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
18265         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
18266         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
18267         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
18268         (mips_register_priority): New function that implements the target
18269         hook TARGET_REGISTER_PRIORITY.
18270         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
18271         (mips_lra_p): Likewise for TARGET_LRA_P.
18272         (TARGET_REGISTER_PRIORITY): Define macro.
18273         (TARGET_SPILL_CLASS): Likewise.
18274         (TARGET_LRA_P): Likewise.
18275         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
18276         classes.
18277         (REG_CLASS_NAMES): Likewise.
18278         (REG_CLASS_CONTENTS): Likewise.
18279         (BASE_REG_CLASS): Use M16_SP_REGS.
18280         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
18281         New set attribute to enable alternatives depending on the register
18282         allocator used.
18283         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
18284         (*lea64): Disable pattern for MIPS16.
18285         * config/mips/mips.opt (mlra): New option.
18287 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18289         * lra-constraints.c (base_to_reg): New function.
18290         (process_address): Use new function.
18292 2014-06-18  Tom de Vries  <tom@codesourcery.com>
18294         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
18295         * config/aarch64/aarch64.c
18296         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
18297         (aarch64_emit_call_insn): New function.
18298         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
18299         of emit_call_insn.
18300         * config/aarch64/aarch64.md (define_expand "call_internal")
18301         (define_expand "call_value_internal", define_expand "sibcall_internal")
18302         (define_expand "sibcall_value_internal"): New.
18303         (define_expand "call", define_expand "call_value")
18304         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
18305         expand variant and aarch64_emit_call_insn.
18307 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
18308             Tom de Vries  <tom@codesourcery.com>
18310         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
18311         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18312         Redefine to true.
18313         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
18314         clobbers to CALL_INSN_FUNCTION_USAGE.
18315         (define_expand "sibcall_internal")
18316         (define_expand "sibcall_value_internal"): New.
18317         (define_expand "call", define_expand "call_value"): Add argument to
18318         arm_emit_call_insn.
18319         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
18320         (define_expand "sibcall_value"): Use sibcall_value_internal and
18321         arm_emit_call_insn.
18323 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18325         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
18327 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18329         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
18330         __udivmoddi4.
18332 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18334         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
18335         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
18336         annotations. Fix DWARF information.
18338 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18340         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
18341         __udivmoddi4, and fixups for negative operands.
18343 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18345         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
18347 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18349         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
18350         to __udivmoddi4.
18352 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18354         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
18355         manipulation.
18357 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18359         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
18360         describing register usage on function entry and exit.
18362 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18364         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
18365         (__aeabi_ldivmod): Fix whitespace.
18367 2014-06-18  Andreas Schwab  <schwab@suse.de>
18369         * doc/md.texi (Standard Names): Use @itemx for grouped items.
18370         Remove blank line after @item.
18372 2014-06-18  Richard Henderson  <rth@redhat.com>
18374         PR target/61545
18375         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
18377 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18379         * config/arm/arm.c (neon_vector_mem_operand): Allow register
18380         POST_MODIFY for neon loads and stores.
18381         (arm_print_operand): Output post-index register for neon loads and
18382         stores.
18384 2014-06-18  Richard Biener  <rguenther@suse.de>
18386         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
18388 2014-06-18  Richard Biener  <rguenther@suse.de>
18390         * tree-pass.h (make_pass_dce_loop): Remove.
18391         * passes.def: Replace pass_dce_loop with pass_dce.
18392         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
18393         changed free niter estimates and reset the scev cache.
18394         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
18395         make_pass_dce_loop): Remove.
18396         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
18397         (fini_copy_prop): Return whether something changed.  Always
18398         let substitute_and_fold perform DCE and free niter estimates
18399         and reset the scev cache if so.
18400         (execute_copy_prop): If sth changed schedule cleanup-cfg.
18401         (pass_data_copy_prop): Do not unconditionally schedule
18402         cleanup-cfg or update-ssa.
18404 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
18406         PR tree-optimization/61518
18407         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
18408         reduction var is used in reduction stmt or phi-function only.
18410 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18412         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
18414 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18416         PR tree-optimization/61517
18417         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
18418         whose rhs's first tree is the source expression instead of the
18419         expression itself.
18420         (find_bswap_or_nop): Likewise.
18421         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
18422         gimple stmt whose rhs's first tree is the source. In the memory source
18423         case, move the stmt to be replaced close to one of the original load to
18424         avoid the problem of a store between the load and the stmt's original
18425         location.
18426         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
18427         signature.
18429 2014-06-18  Andreas Schwab  <schwab@suse.de>
18431         PR rtl-optimization/54555
18432         * postreload.c (move2add_use_add2_insn): Substitute
18433         STRICT_LOW_PART only if it is cheaper.
18435 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
18437         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
18438         Do not use unspec as call operand.  Use memory_operand instead of
18439         memory_nox32_operand and add "m" operand constraint.  Disable
18440         pattern for TARGET_X32.
18441         (*sibcall_pop_memory): Ditto.
18442         (*sibcall_value_memory): Ditto.
18443         (*sibcall_value_pop_memory): Ditto.
18444         (sibcall peepholes): Merge SImode and DImode patterns using
18445         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
18446         Disable pattern for TARGET_X32.  Check if eliminated register is
18447         really dead after call insn.  Generate call RTX without unspec operand.
18448         (sibcall_value peepholes): Ditto.
18449         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
18450         instead of memory_nox32_operand.  Check if eliminated register is
18451         really dead after call insn. Generate call RTX without unspec operand.
18452         (sibcall_value_pop peepholes): Ditto.
18453         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
18455 2014-06-18  Terry Guo  <terry.guo@arm.com>
18457         PR target/61544
18458         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
18459         reach the head.
18461 2014-06-18  Olivier Hainque  <hainque@adacore.com>
18463         * tree-core.h (tree_block): Add an "end_locus" field, allowing
18464         memorization of the end of block source location.
18465         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
18466         * gimplify.c (gimplify_bind_expr): Propagate the block start and
18467         end source location info we have on the block entry/exit code we
18468         generate.
18470 2014-06-18  Richard Biener  <rguenther@suse.de>
18472         * common.opt (fssa-phiopt): New option.
18473         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
18474         but not with -Og.
18475         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
18476         * doc/invoke.texi (-fssa-phiopt): Document.
18478 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18480         * genattrtab.c (n_bypassed): New variable.
18481         (process_bypasses): Initialise n_bypassed.
18482         Count number of bypassed reservations.
18483         (make_automaton_attrs): Allocate space for bypassed reservations
18484         rather than number of bypasses.
18486 2014-06-18  Richard Biener  <rguenther@suse.de>
18488         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
18489         we propagated anything.
18490         (substitute_and_fold_dom_walker::before_dom_children): Something
18491         changed if we propagated into PHI arguments.
18492         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
18493         we removed a stmt.
18495 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
18497         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
18498         vector case.
18499         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
18500         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
18501         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
18502         Introduces alternative way of loads group permutaions.
18503         (vect_transform_grouped_load): Try alternative way of permutations.
18505 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
18507         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
18508         changed in ORT_TARGET region, don't jump to do_outer.
18509         (struct gimplify_adjust_omp_clauses_data): New type.
18510         (gimplify_adjust_omp_clauses_1): Adjust for data being
18511         a struct gimplify_adjust_omp_clauses_data pointer instead
18512         of tree *.  Pass pre_p as a new argument to
18513         lang_hooks.decls.omp_finish_clause hook.
18514         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
18515         splay_tree_foreach to pass both list_p and pre_p.
18516         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
18517         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
18518         gimplify_adjust_omp_clauses callers.
18519         * langhooks.c (lhd_omp_finish_clause): New function.
18520         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
18521         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
18522         * langhooks.h (struct lang_hooks_for_decls): Add a new
18523         gimple_seq * argument to omp_finish_clause hook.
18524         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
18525         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
18526         (scan_omp_parallel, lower_omp_for): When adding
18527         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
18528         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
18529         * tree-nested.c (convert_nonlocal_omp_clauses,
18530         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
18531         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
18533 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
18535         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
18536         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
18538 2014-06-17  Xinliang David Li  <davidxl@google.com>
18540         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
18541         * passes.c (pass_init_dump_file): Do not set initialize
18542         flag to false unconditionally.
18544 2014-06-17  Richard Biener  <rguenther@suse.de>
18546         * genopinit.c (main): Use vec<>::qsort method.
18547         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18548         Likewise.
18549         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
18551 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
18553         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
18554         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
18555         (mips_move_to_gpr_cost): Remove ST_REGS case.
18556         (mips_move_from_gpr_cost): Likewise.
18557         (mips_register_move_cost): Likewise.
18558         (mips_secondary_reload_class): Likewise.
18560 2014-06-17  Richard Biener  <rguenther@suse.de>
18562         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
18563         (pass_all_optimizations): Move 3rd copy-prop pass from after
18564         fre to before ifcombine/phiopt.
18566 2014-06-17  Richard Biener  <rguenther@suse.de>
18568         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
18569         and allow all blocks to be forwarders.
18571 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
18573         PR target/61483
18574         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
18575         variable 'size'; calculate 'size' right in the front; use
18576         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
18577         pcum->aapcs_stack_words.
18579 2014-06-17  Nick Clifton  <nickc@redhat.com>
18581         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
18582         (umulhi3, mulsidi3, umulsidi3): Likewise.
18584 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
18586         PR middle-end/61508
18587         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
18588         check for section name.
18590 2014-06-17  Richard Biener  <rguenther@suse.de>
18592         * tree-ssa-propagate.c: Include domwalk.h.
18593         (substitute_and_fold): Outline main worker into a domwalker ...
18594         (substitute_and_fold_dom_walker::before_dom_children): ... here.
18595         Schedule stmts we can fully propagate for removal.  Remove
18596         poor-mans DCE.
18597         (substitute_and_fold): Apply a dominator walk to perform
18598         substitution.  Process stmts scheduled for removal here.
18600 2014-06-17  Richard Biener  <rguenther@suse.de>
18602         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
18603         of PHI node moving.
18605 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
18607         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
18608         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
18609         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18610         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
18611         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
18612         TARGET_HARD_FLOAT.
18613         (get_fpscr) : Likewise.
18615 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
18617         PR rtl-optimization/61325
18618         * lra-constraints.c (valid_address_p): Add forward declaration.
18619         (simplify_operand_subreg): Check address validity before and after
18620         alter_reg of memory subreg.
18622 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
18624         * config/i386/i386.c (decide_alg): Correctly handle
18625         maximum size of stringop algorithm.
18627 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
18629         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
18631 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
18633         PR rtl-optimization/61522
18634         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
18636 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
18638         Revert:
18639         * symtab.c (symtab_node::reset_section): New method.
18640         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18641         for localization.
18642         * cgraph.h (reset_section): Declare.
18643         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18644         do not consider comdat locals.
18645         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18646         for new symbol.
18647         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18648         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18649         reset sections of symbols dragged out of the comdats.
18650         (function_and_variable_visibility): Reset sections of
18651         localized symbols.
18653 2014-06-16  Richard Biener  <rguenther@suse.de>
18655         PR tree-optimization/61482
18656         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
18657         [-INF(OVF), +INF(OVF)] range.
18659 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
18661         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
18662         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
18663         handling 32-bit multiplication.
18665 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
18667         PR middle-end/61430
18668         * lra-lives.c (process_bb_lives): Skip creating copy during
18669         insn scan when src/dest has constrained to same regno.
18671 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
18673         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
18674         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
18676 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
18678         * asan.c (check_func): New function.
18679         (maybe_create_ssa_name): Likewise.
18680         (build_check_stmt_with_calls): Likewise.
18681         (use_calls_p): Likewise.
18682         (report_error_func): Change interface.
18683         (build_check_stmt): Allow non-integer lengths; add support
18684         for new parameter.
18685         (asan_instrument): Likewise.
18686         (instrument_mem_region_access): Moved code to build_check_stmt.
18687         (instrument_derefs): Likewise.
18688         (instrument_strlen_call): Likewise.
18689         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
18690         * doc/invoke.texi: Describe new parameter.
18691         * params.def: Define new parameter.
18692         * params.h: Likewise.
18693         * sanitizer.def: Describe new builtins.
18695 2014-06-16  Richard Biener  <rguenther@suse.de>
18697         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18698         Make all defs available at the end.
18699         (eliminate): If we remove a PHI node schedule cfg-cleanup.
18701 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
18703         PR plugins/45078
18704         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
18706 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
18708         PR bootstrap/61516
18709         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
18710         initialization.  Replace remaining use of uid.
18712 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
18714         * c-family/c-common.c (handle_tls_model_attribute): Use
18715         set_decl_tls_model.
18716         * c-family/c-common.c (handle_tls_model_attribute): Use
18717         set_decl_tls_model.
18718         * cgraph.h (struct varpool_node): Add tls_model.
18719         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
18720         * tree.h (DECL_TLS_MODEL): Update.
18721         (DECL_THREAD_LOCAL_P): Check that variable is static.
18722         (decl_tls_model): Declare.
18723         (set_decl_tls_model): Declare.
18724         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
18725         set symbol prorperties.
18726         (get_emutls_init_templ_addr): Cleanup.
18727         (new_emutls_decl): Update.
18728         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
18729         (lto_input_varpool_node): Likewise.
18730         * lto-streamer-out.c (hash_tree): Likewise.
18731         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18732         not stream DECL_TLS_MODEL.
18733         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
18734         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
18736 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18738         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
18740 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18742         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
18743         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
18744         lists.
18745         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
18746         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
18747         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
18748         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
18749         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
18750         (df_get_artificial_defs, df_get_artificial_uses)
18751         (df_single_def, df_single_use): Update accordingly.
18752         (df_refs_chain_dump): Take the first element in a linked list as
18753         parameter, rather than a pointer to an array of pointers.
18754         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
18755         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
18756         (df_chain_create_bb_process_use): Likewise.
18757         (df_md_bb_local_compute_process_def): Likewise.
18758         * fwprop.c (process_defs, process_uses): Likewise.
18759         (register_active_defs, update_uses): Likewise.
18760         (forward_propagate_asm): Update for new df_ref linking.
18761         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
18762         (df_null_ref_rec, df_null_mw_rec): Likewise.
18763         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
18764         explicitly.
18765         (df_scan_free_bb_info): Remove check for null artificial_defs.
18766         (df_install_ref_incremental): Adjust for new df_ref linking.
18767         Use a single-element insertion rather than a full sort.
18768         (df_ref_chain_delete_du_chain): Take the first element
18769         in a linked list as parameter, rather than a pointer to an array of
18770         pointers.
18771         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
18772         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
18773         (df_insn_info_delete): Remove check for null defs and call to
18774         df_scan_free_mws_vec.
18775         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
18776         null rather than df_null_*_rec.
18777         (df_insn_rescan_debug_internal): Likewise, and update null
18778         checks in the same way.  Remove check for null defs.
18779         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
18780         Move a single element rather doing a full sort.
18781         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
18782         linking.
18783         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
18784         Initialize df_ref and df_mw_hardreg lists to null rather than
18785         df_null_*_rec.
18786         (df_ref_compare): Take df_refs as parameter, transferring the
18787         old interface to...
18788         (df_ref_ptr_compare): ...this new function.
18789         (df_sort_and_compress_refs): Update accordingly.
18790         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
18791         old interface to...
18792         (df_mw_ptr_compare): ...this new function.
18793         (df_sort_and_compress_mws): Update accordingly.
18794         (df_install_refs, df_install_mws): Return a linked list rather than
18795         an array of pointers.
18796         (df_refs_add_to_chains): Assert that old lists are empty rather
18797         than freeing them.
18798         (df_insn_refs_verify): Don't handle null defs speciailly.
18799         * web.c (union_match_dups): Update for new df_ref linking.
18801 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18803         * df.h (df_ref_create, df_ref_remove): Delete.
18804         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
18805         (df_ref_remove): Likewise.
18807 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18809         * df.h (df_single_def, df_single_use): New functions.
18810         * ira.c (find_moveable_pseudos): Use them.
18812 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18814         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
18815         * df-problems.c (df_note_bb_compute): Use it.
18816         * regstat.c (regstat_bb_compute_ri): Likewise.
18818 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18820         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
18821         * cse.c (cse_extended_basic_block): Use them.
18822         * dce.c (mark_artificial_use): Likewise.
18823         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
18824         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18825         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
18826         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
18827         (df_simulate_initialize_backwards): Likewise.
18828         (df_simulate_finalize_backwards): Likewise.
18829         (df_simulate_initialize_forwards): Likewise.
18830         (df_md_simulate_artificial_defs_at_top): Likewise.
18831         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18832         * regrename.c (init_rename_info): Likewise.
18833         * regstat.c (regstat_bb_compute_ri): Likewise.
18834         (regstat_bb_compute_calls_crossed): Likewise.
18836 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18838         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
18839         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
18840         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
18841         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
18842         * combine.c (create_log_links): Likewise.
18843         * compare-elim.c (find_flags_uses_in_insn): Likewise.
18844         (try_eliminate_compare): Likewise.
18845         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
18846         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
18847         (remove_reg_equal_equiv_notes_for_defs): Likewise.
18848         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
18849         (word_dce_process_block, dce_process_block): Likewise.
18850         * ddg.c (def_has_ccmode_p): Likewise.
18851         * df-core.c (df_bb_regno_first_def_find): Likewise.
18852         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
18853         * df-problems.c (df_rd_simulate_one_insn): Likewise.
18854         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18855         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
18856         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
18857         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
18858         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
18859         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
18860         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
18861         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
18862         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18863         * fwprop.c (local_ref_killed_between_p): Likewise.
18864         (all_uses_available_at, free_load_extend): Likewise.
18865         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
18866         * hw-doloop.c (scan_loop): Likewise.
18867         * ifcvt.c (dead_or_predicable): Likewise.
18868         * init-regs.c (initialize_uninitialized_regs): Likewise.
18869         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
18870         (process_bb_node_lives): Likewise.
18871         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
18872         (find_moveable_pseudos): Likewise.
18873         * loop-invariant.c (check_dependencies, record_uses): Likewise.
18874         * recog.c (peep2_find_free_register): Likewise.
18875         * ree.c (get_defs): Likewise.
18876         * regstat.c (regstat_bb_compute_ri): Likewise.
18877         (regstat_bb_compute_calls_crossed): Likewise.
18878         * sched-deps.c (find_inc, find_mem): Likewise.
18879         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
18880         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
18881         * shrink-wrap.c (requires_stack_frame_p): Likewise.
18882         (prepare_shrink_wrap): Likewise.
18883         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
18884         * web.c (union_defs, pass_web::execute): Likewise.
18885         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
18886         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
18888 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
18890         * lra-assign.c (assign_by_spills): Add code to assign vector regs
18891         to inheritance pseudos.
18892         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
18894 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
18896         PR target/61415
18897         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
18898         (BU_MISC_2): Rename to ...
18899         (BU_LDBL128_2): ... this.
18900         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
18901         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
18902         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18903         RS6000_BTM_LDBL128.
18904         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
18905         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
18906         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
18907         (unpacktf_1): Likewise.
18908         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
18909         (__builtin_longdouble_dw1): Likewise.
18910         * doc/sourcebuild.texi (longdouble128): Document.
18912 2014-06-13  Jeff Law  <law@redhat.com>
18914         PR rtl-optimization/61094
18915         PR rtl-optimization/61446
18916         * ree.c (combine_reaching_defs): Get the mode for the copy from
18917         the extension insn rather than the defining insn.
18919 2014-06-13  Dehao Chen  <dehao@google.com>
18921         * dwarf2out.c (add_linkage_name): Emit more linkage name.
18923 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
18925         * doc/install.texi (--enable-linker-plugin-configure-flags)
18926         (--enable-linker-plugin-flags): Document new flags.
18928 2014-06-13  Martin Jambor  <mjambor@suse.cz>
18930         PR ipa/61186
18931         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
18932         cache_token if returning early.
18934 2014-06-13  Nick Clifton  <nickc@redhat.com>
18936         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
18937         requested alignment is active.
18938         (LABEL_ALIGN): Likewise.
18939         (LOOP_ALIGN): Likewise.
18941 2014-06-13  Richard Biener  <rguenther@suse.de>
18943         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18944         Rewrite to propagate the VN result into all uses where
18945         possible and to remove stmts becoming dead because of that.
18946         (eliminate): Generalize stmt removal handling, remove in
18947         reverse dominator order to support proper debug stmt
18948         generation.  Update stmts before removing stmts.
18949         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
18951 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18953         PR tree-optimization/61375
18954         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
18955         symbolic number cannot be represented in an uint64_t.
18956         (find_bswap_or_nop_1): Likewise.
18958 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18960         * symtab.c (symtab_node::reset_section): New method.
18961         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18962         for localization.
18963         * cgraph.h (reset_section): Declare.
18964         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18965         do not consider comdat locals.
18966         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18967         for new symbol.
18968         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18969         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18970         reset sections of symbols dragged out of the comdats.
18971         (function_and_variable_visibility): Reset sections of
18972         localized symbols.
18974 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18976         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18977         to use symtab and decl_binds_to_current_def_p
18978         * tree-vectorizer.c (increase_alignment): Increase alignment
18979         of alias target, too.
18981 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
18983         PR middle-end/61486
18984         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18985         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18986         if outer combined construct is distribute.
18987         (gimplify_omp_for): For OMP_DISTRIBUTE set
18988         gimplify_omp_ctxp->distribute.
18989         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18990         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18991         mapping into decl map.
18993 2014-06-12  Jason Merrill  <jason@redhat.com>
18995         * common.opt (fabi-version): Change default to 0.
18997 2014-06-12  Jason Merrill  <jason@redhat.com>
18999         * toplev.c (process_options): Reject -fabi-version=1.
19001 2014-06-12  Jeff Law  <law@redhat.com>
19003         PR tree-optimization/61009
19004         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
19005         value when we stop processing a block due to problematic PHIs.
19007 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
19009         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
19010         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
19011         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
19012         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
19013         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
19014         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
19015         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
19016         are not in the spec.
19018 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
19020         PR target/59843
19021         * config/aarch64/aarch64-modes.def: Add V1DFmode.
19022         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
19023         Support V1DFmode.
19025 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
19027         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
19029 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
19031         PR target/61443
19032         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
19033         loading from address spaces.
19035 2014-06-12  Martin Liska  <mliska@suse.cz>
19037         PR ipa/61462
19038         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
19039         statement is reachable.
19041 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
19043         * symtab.c (section_hash): New hash.
19044         (symtab_unregister_node): Clear section before freeing.
19045         (hash_section_hash_entry): New haser.
19046         (eq_sections): New function.
19047         (symtab_node::set_section_for_node): New method.
19048         (set_section_1): Update.
19049         (symtab_node::set_section): Take string instead of tree as parameter.
19050         (symtab_resolve_alias): Update.
19051         * cgraph.h (section_hash_entry_d): New structure.
19052         (section_hash_entry): New typedef.
19053         (cgraph_node): Change comdat_group_ to x_comdat_group,
19054         change section_ to x_section and turn into section_hash_entry;
19055         update accestors; put set_section_for_node offline.
19056         * tree.c (decl_section_name): Turn into string.
19057         (set_decl_section_name): Change parameter to be string.
19058         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
19059         * sdbout.c (sdbout_one_type): Update.
19060         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
19061         * varasm.c (IN_NAMED_SECTION, get_named_section,
19062         resolve_unique_section, hot_function_section, get_named_text_section,
19063         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
19064         make_decl_rtl, default_unique_section): Update.
19065         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
19066         (c6x_elf_unique_section): Update.
19067         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
19068         * config/pa/pa.c (pa_function_section): Update.
19069         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
19070         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
19071         * config/arc/arc.c (arc_in_small_data_p): Update.
19072         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
19073         * config/mcore/mcore.c (mcore_unique_section): Update.
19074         * config/mips/mips.c (mips16_build_function_stub): Update.
19075         (mips16_build_call_stub): Update.
19076         (mips_function_rodata_section): Update.
19077         (mips_in_small_data_p): Update.
19078         * config/score/score.c (score_in_small_data_p): Update.
19079         * config/rx/rx.c (rx_in_small_data): Update.
19080         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
19081         (rs6000_xcoff_asm_named_section): Update.
19082         (rs6000_xcoff_unique_section): Update.
19083         * config/frv/frv.c (frv_string_begins_with): Update.
19084         (frv_in_small_data_p): Update.
19085         * config/v850/v850.c (v850_encode_data_area): Update.
19086         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
19087         (bfin_handle_l1_data_attribute): Update.
19088         (bfin_handle_l2_attribute): Update.
19089         * config/mep/mep.c (mep_unique_section): Update.
19090         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
19091         Update.
19092         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
19093         (h8300_handle_tiny_data_attribute): Update.
19094         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
19095         (m32r_in_small_data_p): Update.
19096         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
19097         * config/i386/i386.c (ix86_in_large_data_p): Update.
19098         * config/i386/winnt.c (i386_pe_unique_section): Update.
19099         * config/darwin.c (darwin_function_section): Update.
19100         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
19101         * tree-emutls.c (get_emutls_init_templ_addr): Update.
19102         (new_emutls_decl): Update.
19103         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
19104         input_varpool_node): Update.
19105         (ead_string_cst): Turn to ...
19106         (read_string): ... this one.
19107         * dwarf2out.c (secname_for_decl): Update.
19108         * asan.c (asan_protect_global): Update.
19110 2014-06-11  DJ Delorie  <dj@redhat.com>
19112         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
19113         cache lines.
19114         * config/rx/rx.c (rx_option_override): Likewise.
19115         (rx_align_for_label): Likewise.
19117         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
19119 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
19121         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
19122         prototype.
19124 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19126         * common.md: New file.
19127         * doc/md.texi: Update description of generic, machine-independent
19128         constraints.
19129         * config/s390/constraints.md (e): Delete.
19130         * Makefile.in (md_file): Include common.md.
19131         * config/m32c/t-m32c (md_file): Likewise.
19132         * genpreds.c (general_mem): New array.
19133         (generic_constraint_letters): Remove constraints now defined by
19134         common.md.
19135         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19136         Allow the first character to be '<' or '>' as well.
19137         * genoutput.c (general_mem): New array.
19138         (indep_constraints): Remove constraints now defined by common.md.
19139         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19140         Remove special handling of 'm'.
19141         * ira-costs.c (record_reg_classes): Remove special handling of
19142         constraints now defined by common.md.
19143         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19144         * ira-lives.c (single_reg_class): Likewise.
19145         (ira_implicitly_set_insn_hard_regs): Likewise.
19146         * lra-constraints.c (reg_class_from_constraints): Likewise.
19147         (process_alt_operands, process_address, curr_insn_transform): Likewise.
19148         * postreload.c (reload_cse_simplify_operands): Likewise.
19149         * reload.c (push_secondary_reload, scratch_reload_class)
19150         (find_reloads, alternative_allows_const_pool_ref): Likewise.
19151         * reload1.c (maybe_fix_stack_asms): Likewise.
19152         * targhooks.c (default_secondary_reload): Likewise.
19153         * stmt.c (parse_output_constraint): Likewise.
19154         * recog.c (preprocess_constraints): Likewise.
19155         (constrain_operands, peep2_find_free_register): Likewise.
19156         (asm_operand_ok): Likewise, but add a comment saying why 'o'
19157         must be handled specially.
19159 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19161         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
19162         * genpreds.c (have_const_dbl_constraints): Delete.
19163         (add_constraint): Don't set it.
19164         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
19165         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
19166         constraints using the lookup_constraint logic.
19167         * ira-lives.c (single_reg_class): Likewise.
19168         * ira.c (ira_setup_alts): Likewise.
19169         * lra-constraints.c (process_alt_operands): Likewise.
19170         * recog.c (asm_operand_ok, constrain_operands): Likewise.
19171         * reload.c (find_reloads): Likewise.
19173 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19175         * genpreds.c (const_int_start, const_int_end): New variables.
19176         (choose_enum_order): Output CONST_INT constraints before memory
19177         constraints.
19178         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
19179         Add CT_CONST_INT.
19180         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
19181         * ira.c (ira_setup_alts): Likewise.
19182         * lra-constraints.c (process_alt_operands): Likewise.
19183         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19184         * reload.c (find_reloads): Likewise.
19186 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19188         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
19189         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
19190         * recog.c (preprocess_constraints): Update accordingly.
19192 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19194         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
19195         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
19196         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
19197         * genpreds.c (print_type_tree): New function.
19198         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
19199         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
19200         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
19201         Write out enum constraint_type and get_constraint_type.
19202         * lra-constraints.c (satisfies_memory_constraint_p): Take a
19203         constraint_num rather than a constraint string.
19204         (satisfies_address_constraint_p): Likewise.
19205         (reg_class_from_constraints): Avoid old constraint macros.
19206         (process_alt_operands, process_address_1): Likewise.
19207         (curr_insn_transform): Likewise.
19208         * ira-costs.c (record_reg_classes): Likewise.
19209         (record_operand_costs): Likewise.
19210         * ira-lives.c (single_reg_class): Likewise.
19211         (ira_implicitly_set_insn_hard_regs): Likewise.
19212         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19213         * postreload.c (reload_cse_simplify_operands): Likewise.
19214         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19215         (constrain_operands, peep2_find_free_register): Likewise.
19216         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
19217         (find_reloads, alternative_allows_const_pool_ref): Likewise.
19218         * reload1.c (maybe_fix_stack_asms): Likewise.
19219         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
19220         * targhooks.c (default_secondary_reload): Likewise.
19221         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
19222         to EXTRA_CONSTRAINT_STR.
19223         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
19225 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19227         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
19228         (write_constraint_satisfied_p_array): ...this new function.
19229         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
19230         an array.
19231         (write_insn_preds_c): Update accordingly.
19233 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19235         * genpreds.c (write_lookup_constraint): Rename to...
19236         (write_lookup_constraint_1): ...this.
19237         (write_lookup_constraint_array): New function.
19238         (write_tm_preds_h): Define lookup_constraint as an inline function
19239         that uses write_lookup_constraint_array where possible.
19240         (write_insn_preds_c): Update for the changes above.
19242 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19244         * doc/md.texi (regclass_for_constraint): Rename to...
19245         (reg_class_for_constraint): ...this.
19246         * genpreds.c (num_constraints, enum_order, register_start)
19247         (register_end, satisfied_start, memory_start, memory_end)
19248         (address_start, address_end): New variables.
19249         (add_constraint): Count the number of constraints.
19250         (choose_enum_order): New function.
19251         (write_enum_constraint_num): Iterate over enum_order.
19252         (write_regclass_for_constraint): Rename to...
19253         (write_reg_class_for_constraint_1): ...this and update output
19254         accordingly.
19255         (write_constraint_satisfied_p): Rename to...
19256         (write_constraint_satisfied_p_1): ...this and update output
19257         accordingly.  Do nothing if all extra constraints are register
19258         constraints.
19259         (write_insn_extra_memory_constraint): Delete.
19260         (write_insn_extra_address_constraint): Delete.
19261         (write_range_function): New function.
19262         (write_tm_preds_h): Define constraint_satisfied_p and
19263         reg_class_for_constraint as inline functions that do a range check
19264         before calling the out-of-line function.  Use write_range_function
19265         to implement insn_extra_{register,memory,address}_constraint,
19266         the first of which is new.
19267         (write_insn_preds_c): Update after above changes to write_* functions.
19268         (main): Call choose_enum_order.
19270 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19272         PR tree-optimization/61306
19273         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
19274         expression instead of its size.
19275         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
19276         false to prevent optimization when the result is unpredictable due to
19277         arithmetic right shift of signed type with highest byte is set.
19278         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
19279         (init_symbolic_number): Likewise.
19280         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
19281         when the result is unpredictable due to sign extension.
19283 2014-06-11  Terry Guo  <terry.guo@arm.com>
19285         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
19286         (*thumb1_addsi3): Ditto.
19287         (*thumb_subdi3): Ditto.
19288         (thumb1_subsi3_insn): Ditto.
19289         (*thumb_mulsi3): Ditto.
19290         (*thumb_mulsi3_v6): Ditto.
19291         (*thumb1_andsi3_insn): Ditto.
19292         (thumb1_bicsi3): Ditto.
19293         (*thumb1_iorsi3_insn): Ditto.
19294         (*thumb1_xorsi3_insn): Ditto.
19295         (*thumb1_ashlsi3): Ditto.
19296         (*thumb1_ashrsi3): Ditto.
19297         (*thumb1_lshrsi3): Ditto.
19298         (*thumb1_rotrsi3): Ditto.
19299         (*thumb1_negdi2): Ditto.
19300         (*thumb1_negsi2): Ditto.
19301         (*thumb1_abssi2): Ditto.
19302         (*thumb1_neg_abssi2): Ditto.
19303         (*thumb1_one_cmplsi2): Ditto.
19304         (*thumb1_zero_extendhisi2): Ditto.
19305         (*thumb1_zero_extendqisi2): Ditto.
19306         (*thumb1_zero_extendqisi2_v6): Ditto.
19307         (thumb1_extendhisi2): Ditto.
19308         (thumb1_extendqisi2): Ditto.
19309         (*thumb1_movdi_insn): Ditto.
19310         (*thumb1_movsi_insn): Ditto.
19311         (*thumb1_movhi_insn): Ditto.
19312         (thumb_movhi_clobber): Ditto.
19313         (*thumb1_movqi_insn): Ditto.
19314         (*thumb1_movhf): Ditto.
19315         (*thumb1_movsf_insn): Ditto.
19316         (*thumb_movdf_insn): Ditto.
19317         (movmem12b): Ditto.
19318         (movmem8b): Ditto.
19319         (cbranchqi4): Ditto.
19320         (cbranchsi4_insn): Ditto.
19321         (cbranchsi4_scratch): Ditto.
19322         (*negated_cbranchsi4): Ditto.
19323         (*tbit_cbranch): Ditto.
19324         (*tlobits_cbranch): Ditto.
19325         (*tstsi3_cbranch): Ditto.
19326         (*cbranchne_decr1): Ditto.
19327         (*addsi3_cbranch): Ditto.
19328         (*addsi3_cbranch_scratch): Ditto.
19329         (*thumb_cmpdi_zero): Ditto.
19330         (cstoresi_eq0_thumb1): Ditto.
19331         (cstoresi_ne0_thumb1): Ditto.
19332         (*cstoresi_eq0_thumb1_insn): Ditto.
19333         (*cstoresi_ne0_thumb1_insn): Ditto.
19334         (cstoresi_nltu_thumb1): Ditto.
19335         (cstoresi_ltu_thumb1): Ditto.
19336         (thumb1_addsi3_addgeu): Ditto.
19337         (*thumb_jump): Ditto.
19338         (*call_reg_thumb1_v5): Ditto.
19339         (*call_reg_thumb1): Ditto.
19340         (*call_value_reg_thumb1_v5): Ditto.
19341         (*call_value_reg_thumb1): Ditto.
19342         (*call_insn): Ditto.
19343         (*call_value_insn): Ditto.
19344         (thumb1_casesi_internal_pic): Ditto.
19345         (thumb1_casesi_dispatch): Ditto.
19346         (*thumb1_indirect_jump): Ditto.
19347         (prologue_thumb1_interwork): Ditto.
19348         (*epilogue_insns): Ditto.
19349         (consttable_1): Ditto.
19350         (consttable_2): Ditto.
19351         (tablejump): Ditto.
19352         (*thumb1_tablejump): Ditto.
19353         (thumb_eh_return): Ditto.
19354         (define_peephole2): Two of them are thumb1 only and got moved into
19355         new file thumb1.md.
19356         (define_split): Six of them are thumb1 only and got moved into new
19357         file thumb1.md.
19358         * config/arm/thumb1.md: New file comprised of above thumb1 only
19359         patterns.
19361 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19363         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
19364         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
19365         dependencies.
19366         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
19367         (aarch64_crc_builtin_datum): New struct.
19368         (aarch64_crc_builtin_data): New.
19369         (aarch64_init_crc32_builtins): New function.
19370         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
19371         (aarch64_crc32_expand_builtin): New.
19372         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
19373         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19374         __ARM_FEATURE_CRC32 when appropriate.
19375         (TARGET_CRC32): Define.
19376         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
19377         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
19378         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
19379         (aarch64_<crc_variant>): New pattern.
19380         * config/aarch64/arm_acle.h: New file.
19381         * config/aarch64/iterators.md (CRC): New int iterator.
19382         (crc_variant, crc_mode): New int attributes.
19383         * doc/aarch64-acle-intrinsics.texi: New file.
19384         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
19385         Include aarch64-acle-intrinsics.texi.
19387 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
19389         * tree-vect-data-refs.c (vect_grouped_store_supported): New
19390         check for stores group of length 3.
19391         (vect_permute_store_chain): New permutations for stores group of
19392         length 3.
19393         * tree-vect-stmts.c (vect_model_store_cost): Change cost
19394         of vec_perm_shuffle for the new permutations.
19396 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
19398         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
19399         table rewriting temporarily on targets not supporting ONE_ONLY.
19401 2014-06-11  Richard Biener  <rguenther@suse.de>
19403         PR middle-end/61437
19404         Revert
19405         2014-06-04  Richard Biener  <rguenther@suse.de>
19407         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19408         TREE_PUBLIC and DECL_EXTERNAL decls.
19410 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
19412         * varasm.c (set_implicit_section): New function.
19413         (resolve_unique_section): Use it to set implicit section
19414         for aliases, too.
19415         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
19416         (default_function_section): Likewise.
19417         (decl_binds_to_current_def_p): Constify argument.
19418         * varasm.h (decl_binds_to_current_def_p): Update prototype.
19419         * asan.c (asan_protect_global): Use
19420         symtab_get_node (decl)->implicit_section.
19421         * symtab.c (dump_symtab_base): Dump implicit sections.
19422         (verify_symtab_base): Verify sanity of sectoins and comdats.
19423         (symtab_resolve_alias): Alias share the section of its target.
19424         (set_section_1): New function.
19425         (symtab_node::set_section): Move here, recurse to aliases.
19426         (verify_symtab): Check for duplicated symtab lists.
19427         * tree-core.h (implicit_section_name_p): Remove.
19428         * tree-vect-data-refs.c: Include varasm.h.
19429         (vect_can_force_dr_alignment_p): Fix conditional on when
19430         decl bints to current definition; use
19431         symtab_get_node (decl)->implicit_section.
19432         * cgraph.c (cgraph_make_node_local_1): Fix section set.
19433         * cgraph.h (struct symtab_node): Add implicit_section.
19434         (set_section): Rename to ...
19435         (set_section_for_node): ... this one.
19436         (set_section): Declare.
19437         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
19438         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
19439         input_overwrite_node, input_varpool_node): Stream implicit_section.
19440         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
19441         removal; it will fail in LTO.
19443 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19445         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
19446         Change second alternative type to f_mcr.
19447         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
19448         and 12th alternatives' types to f_mcr and f_mrc.
19449         (*movdi_aarch64): Same for 12th and 13th alternatives.
19450         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
19451         (aarch64_movtilow_tilow): Change type to fmov.
19453 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
19455         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
19456         (aarch64_save_or_restore_callee_save_registers): Fix layout.
19458 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19460         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
19461         New expander.
19462         (aarch64_sqrdmulh_lane<mode>): Likewise.
19463         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
19464         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
19465         (aarch64_sqdmulh_laneq<mode>): New expander.
19466         (aarch64_sqrdmulh_laneq<mode>): Likewise.
19467         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
19468         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
19469         (aarch64_sqdmulh_lane<mode>): New expander.
19470         (aarch64_sqrdmulh_lane<mode>): Likewise.
19471         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
19472         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
19473         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
19474         (aarch64_sqdmlal_laneq<mode>): Likewise.
19475         (aarch64_sqdmlsl_lane<mode>): Likewise.
19476         (aarch64_sqdmlsl_laneq<mode>): Likewise.
19477         (aarch64_sqdmlal2_lane<mode>): Likewise.
19478         (aarch64_sqdmlal2_laneq<mode>): Likewise.
19479         (aarch64_sqdmlsl2_lane<mode>): Likewise.
19480         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19481         (aarch64_sqdmull_lane<mode>): Likewise.
19482         (aarch64_sqdmull_laneq<mode>): Likewise.
19483         (aarch64_sqdmull2_lane<mode>): Likewise.
19484         (aarch64_sqdmull2_laneq<mode>): Likewise.
19486 2014-06-10  Richard Biener  <rguenther@suse.de>
19488         PR tree-optimization/61438
19489         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
19490         (eliminate_dom_walker::before_dom_children): Only try to inhibit
19491         insertion of IVs if running PRE.
19492         (eliminate): Adjust.
19493         (pass_pre::execute): Likewise.
19494         (pass_fre::execute): Likewise.
19496 2014-06-10  Richard Biener  <rguenther@suse.de>
19498         PR middle-end/61456
19499         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19500         Do not use the main variant for the type comparison.
19501         (ncr_compar): Likewise.
19502         (nonoverlapping_component_refs_p): Likewise.
19504 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19506         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
19507         REG_CFA_RESTORE mode.
19509 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
19511         * config/i386/i386.c (expand_vec_perm_pblendv): New.
19512         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
19513         expand_vec_perm_pblendv.
19515 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19517         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
19518         available.
19519         Simplify description of __crc32d and __crc32cd intrinsics.
19520         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
19521         availability.
19523 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
19525         PR lto/61334
19526         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
19527         * config.in: Regenerate.
19528         * configure: Likewise.
19530 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
19532         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
19533         and public vars.
19534         (intersect_static_var_sets): Remove.
19535         (propagate): Do not prune local statics.
19537 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
19539         PR fortran/60928
19540         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
19541         Set lastprivate_firstprivate even if omp_private_outer_ref
19542         langhook returns true.
19543         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
19544         langhook, call unshare_expr on new_var and call
19545         build_outer_var_ref to get the last argument.
19547 2014-06-10  Marek Polacek  <polacek@redhat.com>
19549         PR c/60988
19550         * doc/extend.texi: Add cindex for transparent_union.
19552 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19554         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
19555         init_symbolic_number ().
19557 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
19559         PR middle-end/61141
19560         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
19561         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
19562         (verify_rtl_sharing): Likewise.
19564 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
19566         PR c++/54442
19567         * tree.c (build_qualified_type): Use a canonical type for
19568         TYPE_CANONICAL.
19570 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19572         * config/arm/arm-modes.def: Remove XFmode.
19574 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
19576         PR target/61062
19577         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
19578         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
19579         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
19580         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
19581         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
19582         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
19583         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
19584         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
19585         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
19587 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
19589         * tree-core.h (tree_decl_with_vis): Remove section_name.
19591 2014-06-09  Kito Cheng  <kito@0xlab.org>
19593         * ira.c (ira): Don't call init_caller_save if LRA enabled
19594         since LRA use its own infrastructure to handle that.
19596 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19598         * symtab.c (dump_symtab_base): Update dumping.
19599         (symtab_make_decl_local): Clear only DECL_COMDAT.
19600         * tree-vect-data-refs.c (Check that variable is static before
19601         tampering with sections.
19602         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
19603         (cgraph_create_virtual_clone): Likewise.
19604         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
19605         (decl_section_name, set_decl_section_name): New accessors.
19606         (find_decls_types_r): Do not walk section name
19607         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
19608         (decl_comdat_group, decl_comdat_group_id): Constify.
19609         (decl_section_name, set_decl_section_name): Update.
19610         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
19611         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
19612         (cgraph_make_node_local_1): Clear section and comdat group.
19613         * cgraph.h (set_comdat_group): Sanity check.
19614         (get_section, set_section): New.
19615         * ipa-comdats.c (ipa_comdats): Use get_section.
19616         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
19617         * lto-streamer-out.c: Do not follow section names.
19618         * c-family/c-common.c (handle_section_attribute): Update.
19619         * lto-cgraph.c (lto_output_node): Output section.
19620         (lto_output_varpool_node): Likewise.
19621         (read_comdat_group): Rename to ...
19622         (read_identifier): ... this one.
19623         (read_string_cst): New function.
19624         (input_node, input_varpool_node): Input section names.
19625         * tree-emutls.c (get_emutls_init_templ_addr): Update.
19626         (new_emutls_decl): Update.
19627         (secname_for_decl): Check section names only of static vars.
19628         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
19629         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
19630         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19631         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19632         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
19633         * config/mcore/mcore.c (mcore_unique_section): Likewise.
19634         * config/mips/mips.c (mips16_build_function_stub): Likewise.
19635         * config/v850/v850.c (v850_insert_attributes): Likewise.
19636         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
19637         Likewise.
19638         (h8300_handle_tiny_data_attribute): Likewise.
19639         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
19640         (bfin_handle_l2_attribute): Likewise.
19642 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19644         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
19645         remove static initializer.
19647 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19649         * varasm.c (use_blocks_for_decl_p): Check symbol table
19650         instead of alias attribute.
19651         (place_block_symbol): Recurse on aliases.
19653 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19655         * ipa-visibility.c: Include varasm.h
19656         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
19658 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19660         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
19661         outputting aliases.
19663 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
19665         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
19666         from test_insn into GGC space escape via SET_SRC.
19668 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
19670         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
19671         call statement, if any.
19672         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
19673         statements, if any.  Tidy up.
19675 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19677         PR target/61431
19678         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
19679         iterators, VSX_D that handles 64-bit types, and VSX_LE that
19680         handles swapping the two 64-bit double words on little endian
19681         systems.  Include V1TImode and optionally TImode in VSX_LE so that
19682         these types are properly swapped.  Change all of the insns and
19683         splits that do the 64-bit swaps to use VSX_LE.
19684         (vsx_le_perm_load_<mode>): Likewise.
19685         (vsx_le_perm_store_<mode>): Likewise.
19686         (splitters for little endian memory operations): Likewise.
19687         (vsx_xxpermdi2_le_<mode>): Likewise.
19688         (vsx_lxvd2x2_le_<mode>): Likewise.
19689         (vsx_stxvd2x2_le_<mode>): Likewise.
19691 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
19693         PR target/61423
19694         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
19695         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
19696         and corresponding splitters.  Zero extend general register
19697         or memory input operand to XMM temporary.  Enable for
19698         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
19699         (floatunssi<mode>2): Update expander predicate.
19701 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
19703         PR rtl-optimization/61325
19704         * lra-constraints.c (process_address_1): Check scale equal to one
19705         to prevent transformation: base + scale * index => base + new_reg.
19707 2014-06-06  Richard Biener  <rguenther@suse.de>
19709         PR tree-optimization/59299
19710         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
19711         a def operand.
19712         (nearest_common_dominator_of_uses): Likewise.
19713         (statement_sink_location): Adjust.  Support sinking loads.
19715 2014-06-06  Martin Jambor  <mjambor@suse.cz>
19717         * ipa-prop.c (get_place_in_agg_contents_list): New function.
19718         (build_agg_jump_func_from_list): Likewise.
19719         (determine_known_aggregate_parts): Renamed to
19720         determine_locally_known_aggregate_parts.  Moved some functionality
19721         to the two functions above, removed bound checks.
19723 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
19725         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
19726         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
19727         (aarch64_progress_pointer): Likewise.
19728         (aarch64_copy_one_part_and_move_pointers): Likewise.
19729         (aarch64_expand_movmen): Likewise.
19730         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
19731         * config/aarch64/aarch64.md (movmem<mode>): New.
19733 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
19735         * targhooks.c (default_add_stmt_cost): Call target specific
19736         hook instead of default one.
19738 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19740         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
19741         endianness instead of host endianness.
19742         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
19743         comments.
19745 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19747         PR debug/53927
19748         * function.c (instantiate_decls): Process the saved static chain.
19749         (expand_function_start): If not optimizing, save the static chain
19750         onto the stack.
19751         * tree-nested.c (convert_all_function_calls): Always create the static
19752         chain for nested functions if not optimizing.
19754 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19756         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
19758 2014-06-06  Richard Biener  <rguenther@suse.de>
19760         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
19761         (construct_init_block): Likewise.
19762         (construct_exit_block): Likewise.
19763         (pass_expand::execute): Likewise.
19764         * graphite.c (graphite_transforms): Replace check for current_loops
19765         with a check for > 1 loops.
19766         (pass_graphite_transforms::execute): Adjust.
19767         * ipa-split.c (split_function): Remove check for current_loops.
19768         * omp-low.c (expand_parallel_call): Likewise.
19769         (expand_omp_for_init_counts): Likewise.
19770         (extract_omp_for_update_vars): Likewise.
19771         (expand_omp_for_generic): Likewise.
19772         (expand_omp_sections): Likewise.
19773         (expand_omp_target): Likewise.
19774         * tracer.c (tail_duplicate): Likewise.
19775         (pass_tracer::execute): Likewise.
19776         * trans-mem.c (expand_transaction): Likewise.
19777         * tree-complex.c (expand_complex_div_wide): Likewise.
19778         * tree-eh.c (lower_resx): Likewise.
19779         (cleanup_empty_eh_merge_phis): Likewise.
19780         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
19781         current_loops with a check for > 1 loops.
19782         (pass_predcom::execute): Adjust.
19783         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
19784         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
19785         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
19786         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
19787         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
19788         * tree-switch-conversion.c (process_switch): Likewise.
19789         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
19790         * tree-vrp.c (vrp_visit_phi_node): Likewise.
19791         (execute_vrp): Likewise.
19792         * ubsan.c (ubsan_expand_null_ifn): Likewise.
19794 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19796         * rtl.h (insn_location): Declare.
19797         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
19798         with UNKNOWN_LOCATION.
19799         * emit-rtl.c (insn_location): New function.
19800         * final.c (notice_source_line): Check that the instruction has a
19801         location before retrieving it and use insn_location.
19802         * modulo-sched.c (loop_single_full_bb_p): Likewise.
19803         * print-rtl.c (print_rtx): Likewise.
19805 2014-06-06  Richard Biener  <rguenther@suse.de>
19807         * passes.def: Move 2nd VRP pass before phi-only-cprop.
19809 2014-06-06  Christian Bruel  <christian.bruel@st.com>
19811         PR tree-optimization/43934
19812         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
19813         cost.
19815 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
19817         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
19818         return NO_REGS for extra address and memory constraints.  Handle
19819         operands that match (or are equivalent to something that matches)
19820         extra constant constraints.  Ignore other non-register operands.
19822 2014-06-06  Alan Modra  <amodra@gmail.com>
19824         PR target/61300
19825         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
19826         * doc/tm.texi: Regenerate.
19827         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
19828         Use throughout in place of REG_PARM_STACK_SPACE.
19829         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
19830         "incoming" param.  Pass to rs6000_function_parms_need_stack.
19831         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
19832         prototype_p when incoming.  Use function decl when incoming
19833         to handle K&R style functions.
19834         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
19835         (INCOMING_REG_PARM_STACK_SPACE): Define.
19837 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19839         PR target/52472
19840         * cfgexpand.c (expand_debug_expr): Use address space of nested
19841         TREE_TYPE for ADDR_EXPR and MEM_REF.
19843 2014-06-05  Jeff Law  <law@redhat.com>
19845         PR tree-optimization/61289
19846         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
19847         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
19848         looking for those which match LHS.  All callers changed.
19849         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
19850         parameters and code which manipulated them.  All callers changed.
19851         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
19852         and DST_MAP parameters.  Simplify invalidation code by just calling
19853         invalidate_equivalences.  All callers changed.
19854         (thread_across_edge): Simplify now that we don't need to maintain
19855         the map of equivalences to invalidate.
19857 2014-06-05  Kai Tietz  <ktietz@redhat.com>
19858             Richard Henderson  <rth@redhat.com>
19860         PR target/46219
19861         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
19862         checking for !TARGET_X32.
19863         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
19864         (sibcall_intern): New define_insn, plus required peepholes.
19865         (sibcall_pop_intern): Likewise.
19866         (sibcall_value_intern): Likewise.
19867         (sibcall_value_pop_intern): Likewise.
19869 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
19871         * tree-inline.c (tree_function_versioning): Check DF info existence
19872         before accessing it.
19874 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19876         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
19877         frame_size.
19878         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
19879         aarch64_frame hard_fp_offset and frame_size.
19880         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
19881         frame_size; remove original_frame_size.
19882         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
19883         (aarch64_initial_elimination_offset): Remove frame_size and
19884         offset.  Use aarch64_frame frame_size.
19886 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19887             Jiong Wang  <jiong.wang@arm.com>
19888             Renlin  <renlin.li@arm.com>
19890         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
19891         initialization of R30 offset.  Update offset.  Iterate core
19892         regisers upto X30.  Remove X29, X30 specific code.
19894 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19895             Jiong Wang  <jiong.wang@arm.com>
19897         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
19898         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
19899         (aarch64_register_saved_on_entry): Adjust test.
19901 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19903         * config/aarch64/aarch64.h (machine_function): Move
19904         saved_varargs_size from here...
19905         (aarch64_frame): ... to here.
19907         * config/aarch64/aarch64.c (aarch64_expand_prologue)
19908         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
19909         (aarch64_initial_elimination_offset)
19910         (aarch64_setup_incoming_varargs): Adjust location of
19911         saved_varargs_size.
19913 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19915         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
19916         layout comment.
19918 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
19919             Prachi Godbole  <Prachi.Godbole@imgtec.com>
19921         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
19922         mips32r5 entry to use PROCESSOR_P5600.
19923         * config/mips/mips-tables.opt: Regenerate.
19924         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
19925         * config/mips/mips.c (mips_fmadd_bypass): New function.
19926         (mips_rtx_cost_data): Add costs for p5600.
19927         (mips_issue_rate): Add support for p5600.
19928         (mips_multipass_dfa_lookahead): Likewise.
19929         * config/mips/mips.h (TUNE_P5600): New define.
19930         (TUNE_MACC_CHAINS): Add TUNE_P5600.
19931         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
19932         * config/mips/mips.md: Include p5600.md.
19933         (processor): Add p5600.
19934         * config/mips/p5600.md: New file.
19936 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
19938         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
19939         * config/i386/predicates.md (palignr_operand): New.
19940         Indicates if permutation is suitable for palignr instruction.
19942 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
19944         PR tree-optimization/61319
19945         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19946         stmt belongs to loop.
19948 2014-06-05  Richard Biener  <rguenther@suse.de>
19950         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
19951         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
19952         (lookup_tmp_var): Adjust.
19953         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
19955 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19957         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19959 2014-06-05  Marek Polacek  <polacek@redhat.com>
19961         PR c/49706
19962         * doc/invoke.texi: Document -Wlogical-not-parentheses.
19964 2014-06-04  Tom de Vries  <tom@codesourcery.com>
19966         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19967         CONST_INT.
19969 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
19971         PR tree-optimization/61385
19972         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19974 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
19976         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
19977         changed to use fatal_error.
19978         (main): Ensure lto_wrapper_cleanup is run atexit.
19980 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19982         * lra-constraints.c (valid_address_p): Move earlier in file.
19983         (address_eliminator): New structure.
19984         (satisfies_memory_constraint_p): New function.
19985         (satisfies_address_constraint_p): Likewise.
19986         (process_alt_operands, process_address, curr_insn_transform): Use them.
19988 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19990         * lra-int.h (lra_static_insn_data): Make operand_alternative a
19991         const pointer.
19992         (target_lra_int, default_target_lra_int, this_target_lra_int)
19993         (op_alt_data): Delete.
19994         * lra.h (lra_init): Delete.
19995         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19996         (init_insn_code_data_once): Remove op_alt_data handling.
19997         (finish_insn_code_data_once): Likewise.
19998         (init_op_alt_data): Delete.
19999         (get_static_insn_data): Initialize operand_alternative to null.
20000         (free_insn_recog_data): Cast operand_alternative before freeing it.
20001         (setup_operand_alternative): Take the operand_alternative as
20002         parameter and assume it isn't already cached in the static
20003         insn data.
20004         (lra_set_insn_recog_data): Update accordingly.
20005         (lra_init): Delete.
20006         * ira.c (ira_init): Don't call lra_init.
20007         * target-globals.h (this_target_lra_int): Declare.
20008         (target_globals): Remove lra_int.
20009         (restore_target_globals): Update accordingly.
20010         * target-globals.c: Don't include lra-int.h.
20011         (default_target_globals, save_target_globals): Remove lra_int.
20013 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20015         * recog.h (operand_alternative): Convert reg_class, reject,
20016         matched and matches into bitfields.
20017         (preprocess_constraints): New overload.
20018         (preprocess_insn_constraints): New function.
20019         (preprocess_constraints): Take the insn as parameter.
20020         (recog_op_alt): Change into a pointer.
20021         (target_recog): Add x_op_alt.
20022         * recog.c (asm_op_alt): New variable.
20023         (recog_op_alt): Change into a pointer.
20024         (preprocess_constraints): New overload, replacing the old function
20025         definition with one that doesn't use global state.
20026         (preprocess_insn_constraints): New function.
20027         (preprocess_constraints): Use them.  Take the insn as parameter.
20028         Use asm_op_alt for asms.
20029         (recog_init): Free existing x_op_alt entries.
20030         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
20031         pointer const.
20032         (make_early_clobber_and_input_conflicts): Likewise.
20033         (process_bb_node_lives): Pass the insn to process_constraints.
20034         * reg-stack.c (check_asm_stack_operands): Likewise.
20035         (subst_asm_stack_regs): Likewise.
20036         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
20037         * regrename.c (build_def_use): Likewise.
20038         * sched-deps.c (sched_analyze_insn): Likewise.
20039         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
20040         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
20041         (note_invalid_constants): Likewise.
20042         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20043         (ix86_legitimate_combined_insn): Make operand_alternative pointer
20044         const.
20046 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20048         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
20049         * ira-lives.c (check_and_make_def_conflict): Check for disabled
20050         alternatives.
20051         (make_early_clobber_and_input_conflicts): Likewise.
20052         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20054 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20056         * recog.h (alternative_class): New function.
20057         (which_op_alt): Return a const recog_op_alt.
20058         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
20059         (subst_asm_stack_regs): Likewise.
20060         * config/arm/arm.c (note_invalid_constants): Likewise.
20061         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
20062         the operand_alternative; use alternative class instead.
20063         * sel-sched.c (get_reg_class): Likewise.
20064         * regrename.c (build_def_use): Likewise.
20065         (hide_operands, restore_operands, record_out_operands): Update type
20066         accordingly.
20068 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20070         * recog.h (recog_op_alt): Convert to a flat array.
20071         (which_op_alt): New function.
20072         * recog.c (recog_op_alt): Convert to a flat array.
20073         (preprocess_constraints): Update accordingly, grouping all
20074         operands of the same alternative together, rather than the
20075         other way around.
20076         * ira-lives.c (check_and_make_def_conflict): Likewise.
20077         (make_early_clobber_and_input_conflicts): Likewise.
20078         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20079         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
20080         (subst_asm_stack_regs): Likewise.
20081         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
20082         * regrename.c (hide_operands, record_out_operands): Likewise.
20083         (build_def_use): Likewise.
20084         * sel-sched.c (get_reg_class): Likewise.
20085         * config/arm/arm.c (note_invalid_constants): Likewise.
20087 2014-06-04  Jason Merrill  <jason@redhat.com>
20089         PR c++/51253
20090         PR c++/61382
20091         * gimplify.c (gimplify_arg): Non-static.
20092         * gimplify.h: Declare it.
20094 2014-06-04  Richard Biener  <rguenther@suse.de>
20096         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20097         TREE_PUBLIC and DECL_EXTERNAL decls.
20099 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
20101         * regcprop.c (copyprop_hardreg_forward_1): Account for
20102         HARD_REGNO_CALL_PART_CLOBBERED.
20104 2014-06-04  Richard Biener  <rguenther@suse.de>
20106         * configure.ac: Check whether the underlying type of int64_t
20107         is long or long long.
20108         * configure: Regenerate.
20109         * config.in: Likewise.
20110         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
20111         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20113 2014-06-04  Richard Biener  <rguenther@suse.de>
20115         PR tree-optimization/60098
20116         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
20117         we hit a kill.
20118         (dse_optimize_stmt): Simplify, now that we found a kill
20119         earlier.
20121 2014-06-04  Richard Biener  <rguenther@suse.de>
20123         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
20124         of accesses with non-invariant address.
20126 2014-06-04  Martin Liska  <mliska@suse.cz>
20128         * cgraph.h (cgraph_make_wrapper): New function introduced.
20129         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
20130         * ipa-inline.h (inline_analyze_function): The function is global.
20131         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
20133 2014-06-04  Martin Liska  <mliska@suse.cz>
20135         * tree.h (private_lookup_attribute_starting): New function.
20136         (lookup_attribute_starting): Likewise.
20137         * tree.c (private_lookup_attribute_starting): Likewise.
20139 2014-06-04  Martin Liska  <mliska@suse.cz>
20141         * cgraph.h (expand_thunk): New argument added.
20142         (address_taken_from_non_vtable_p): New global function.
20143         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
20144         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
20145         * cgraphunit.c (analyze_function): Likewise.
20146         (assemble_thunks_and_aliases): Argument added to call.
20147         (expand_thunk): New argument forces to produce GIMPLE thunk.
20149 2014-06-04  Martin Liska  <mliska@suse.cz>
20151         * coverage.h (coverage_compute_cfg_checksum): Argument added.
20152         * coverage.c (coverage_compute_cfg_checksum): Likewise.
20153         * profile.c (branch_prob): Likewise.
20155 2014-06-04  Martin Jambor  <mjambor@suse.cz>
20157         PR ipa/61340
20158         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
20159         handler for switch on an ipa_ref_use enum.
20160         * ipa-reference.c (analyze_function): Likewise.
20162 2014-06-04  Kai Tietz  <ktietz@redhat.com>
20164         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
20165         from old call-instruction.
20167 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
20169         * config/aarch64/aarch64.c (aarch64_classify_address)
20170         (aarch64_legitimize_reload_address): Support full addressing modes
20171         for vector modes.
20172         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
20173         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
20175 2014-06-03  Andrew Pinski  <apinski@cavium.com>
20177         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
20178         for OP0.
20180 2014-06-03  Andrew Pinski  <apinski@cavium.com>
20182         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
20183         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
20185 2014-06-03  Kai Tietz  <ktietz@redhat.com>
20187         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
20188         for 64-bit ms-abi.
20190 2014-06-03  Dehao Chen  <dehao@google.com>
20192         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
20193         the same loop.
20195 2014-06-03  Marek Polacek  <polacek@redhat.com>
20197         PR c/60439
20198         * doc/invoke.texi: Document -Wswitch-bool.
20199         * function.c (stack_protect_epilogue): Cast controlling expression of
20200         the switch to int.
20201         * gengtype.c (walk_type): Generate switch expression with its
20202         controlling expression cast to int.
20204 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
20206         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
20207         and attiny841.
20208         * config/avr/avr-tables.opt: Regenerate.
20209         * config/avr/t-multilib: Regenerate.
20210         * doc/avr-mmcu.texi: Regenerate.
20212 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
20213             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20215         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
20216         (ata6617c, ata664251): Add new avr35 devices.
20217         (ata6612c): Add new avr4 device.
20218         (ata6613c, ata6614q): Add new avr5 devices.
20219         * config/avr/avr-tables.opt: Regenerate.
20220         * config/avr/t-multilib: Regenerate.
20221         * doc/avr-mmcu.texi: Regenerate.
20223 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20225         * gcc/config/aarch64/aarch64-builtins.c
20226         (aarch64_types_binop_ssu_qualifiers): New static data.
20227         (TYPES_BINOP_SSU): Define.
20228         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
20229         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
20230         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
20231         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
20232         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
20233         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
20234         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
20235         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
20236         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
20237         suffix to builtin function name, remove cast.
20238         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
20239         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
20240         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
20242 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20244         * gcc/config/aarch64/aarch64-builtins.c
20245         (aarch64_types_binop_uus_qualifiers,
20246         aarch64_types_shift_to_unsigned_qualifiers,
20247         aarch64_types_unsigned_shiftacc_qualifiers): Define.
20248         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
20249         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
20250         sqshlu_n, uqshl_n): Update qualifiers.
20251         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
20252         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
20253         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
20254         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
20255         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
20256         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
20257         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
20258         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
20259         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
20260         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
20261         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
20262         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
20263         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
20264         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
20265         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
20266         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
20267         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
20268         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
20269         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
20270         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
20271         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
20272         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
20273         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
20274         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
20275         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
20276         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
20277         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
20279 2014-06-03  Teresa Johnson  <tejohnson@google.com>
20281         * tree-sra.c (modify_function): Record caller nodes after rebuild.
20283 2014-06-02  Jason Merrill  <jason@redhat.com>
20285         PR c++/61020
20286         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
20288 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20290         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
20291         location == 0.
20293 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20295         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
20296         New pattern.
20297         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
20298         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
20299         * config/aarch64/iterators.md (REVERSE): New iterator.
20300         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
20301         (rev_op): New int_attribute.
20302         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
20303         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
20304         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
20305         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
20306         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
20307         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
20308         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
20309         Replace temporary __asm__ with __builtin_shuffle.
20311 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
20313         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
20314         mips64r5.
20315         * config/mips/mips-tables.opt: Regenerate.
20316         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
20317         to use mips_isa_rev rather than ISA_MIPS32R2.
20318         * config/mips/mips.h (ISA_MIPS32R3): New define.
20319         (ISA_MIPS32R5): New define.
20320         (ISA_MIPS64R3): New define.
20321         (ISA_MIPS64R5): New define.
20322         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
20323         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
20324         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
20325         and mips64r5.
20326         (MIPS_ISA_SYNCI_SPEC): Likewise.
20327         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
20328         (LINK_SPEC): Added mips32r3 and mips32r5.
20329         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
20330         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
20331         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
20332         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
20333         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
20334         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
20335         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
20337 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
20339         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
20340         options.
20341         * config/mips/mips.opt (mxpa): New option.
20342         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
20343         assembler.
20345 2014-06-03  Martin Jambor  <mjambor@suse.cz>
20347         PR ipa/61160
20348         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
20349         thunks.
20351 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20353         PR tree-optimization/61328
20354         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
20355         initialization from find_bswap_or_nop_1.
20356         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
20357         in source_expr2 before using the size value the function sets. Also
20358         make use of init_symbolic_number () in both the old place and
20359         find_bswap_or_nop_load () to avoid reading uninitialized memory when
20360         doing recursion in the GIMPLE_BINARY_RHS case.
20362 2014-06-03  Richard Biener  <rguenther@suse.de>
20364         PR tree-optimization/61383
20365         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
20366         stmts can't trap.
20368 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
20370         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
20371         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
20372         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
20373         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
20374         in this file.
20375         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
20376         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
20377         * system.h: ...here and make it unconditional.
20378         * target.def (conditional_register_usage): Mention
20379         define_register_constraint instead of old-style constraint macros.
20380         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
20381         * doc/tm.texi: Regenerate.
20382         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
20383         protected by !USE_MD_CONSTRAINTS.
20384         * config/frv/frv.md: Remove quote from old version of documentation.
20385         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
20386         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
20387         CONST_DOUBLE_OK_FOR_LETTER.
20388         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
20390 2014-06-02  Andrew Pinski  <apinski@cavium.com>
20392         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
20393         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
20394         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
20395         file whose name depends on -mabi= and -mbig-endian.
20396         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
20397         Handle LP64 better and handle ilp32 too.
20398         (MULTILIB_OPTIONS): Delete.
20399         (MULTILIB_DIRNAMES): Delete.
20401 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
20403         * expr.h: Remove prototypes of functions defined in builtins.c.
20404         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
20405         Remove prototypes of functions defined in builtins.c.
20406         * builtins.h: Update prototype list to include all exported functions.
20407         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
20408         no_c99_libc_has_function): Move to targhooks.c
20409         (build_string_literal, build_call_expr_loc_array,
20410         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
20411         to tree.c.
20412         (expand_builtin_object_size, fold_builtin_object_size): Make static.
20413         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
20414         no_c99_libc_has_function): Relocate from builtins.c.
20415         * tree.c: Include builtins.h.
20416         (build_call_expr_loc_array, build_call_expr_loc_vec,
20417         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
20418         from builtins.c.
20419         * fold-const.h (fold_fma): Move prototype to builtins.h.
20420         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
20421         * asan.c: Include builtins.h.
20422         * cfgexpand.c: Likewise.
20423         * convert.c: Likewise.
20424         * emit-rtl.c: Likewise.
20425         * except.c: Likewise.
20426         * expr.c: Likewise.
20427         * fold-const.c: Likewise.
20428         * gimple-fold.c: Likewise.
20429         * gimple-ssa-strength-reduction.c: Likewise.
20430         * gimplify.c: Likewise.
20431         * ipa-inline.c: Likewise.
20432         * ipa-prop.c: Likewise.
20433         * lto-streamer-out.c: Likewise.
20434         * stmt.c: Likewise.
20435         * tree-inline.c: Likewise.
20436         * tree-object-size.c: Likewise.
20437         * tree-sra.c: Likewise.
20438         * tree-ssa-ccp.c: Likewise.
20439         * tree-ssa-forwprop.c: Likewise.
20440         * tree-ssa-loop-ivcanon.c: Likewise.
20441         * tree-ssa-loop-ivopts.c: Likewise.
20442         * tree-ssa-math-opts.c: Likewise.
20443         * tree-ssa-reassoc.c: Likewise.
20444         * tree-ssa-threadedge.c: Likewise.
20445         * tree-streamer-in.c: Likewise.
20446         * tree-vect-data-refs.c: Likewise.
20447         * tree-vect-patterns.c: Likewise.
20448         * tree-vect-stmts.c: Likewise.
20449         * config/aarch64/aarch64.c: Likewise.
20450         * config/alpha/alpha.c: Likewise.
20451         * config/arc/arc.c: Likewise.
20452         * config/arm/arm.c: Likewise.
20453         * config/avr/avr.c: Likewise.
20454         * config/bfin/bfin.c: Likewise.
20455         * config/c6x/c6x.c: Likewise.
20456         * config/cr16/cr16.c: Likewise.
20457         * config/cris/cris.c: Likewise.
20458         * config/epiphany/epiphany.c: Likewise.
20459         * config/fr30/fr30.c: Likewise.
20460         * config/frv/frv.c: Likewise.
20461         * config/h8300/h8300.c: Likewise.
20462         * config/i386/i386.c: Likewise.
20463         * config/i386/winnt.c: Likewise.
20464         * config/ia64/ia64.c: Likewise.
20465         * config/iq2000/iq2000.c: Likewise.
20466         * config/lm32/lm32.c: Likewise.
20467         * config/m32c/m32c.c: Likewise.
20468         * config/m32r/m32r.c: Likewise.
20469         * config/m68k/m68k.c: Likewise.
20470         * config/mcore/mcore.c: Likewise.
20471         * config/mep/mep.c: Likewise.
20472         * config/microblaze/microblaze.c: Likewise.
20473         * config/mips/mips.c: Likewise.
20474         * config/mmix/mmix.c: Likewise.
20475         * config/mn10300/mn10300.c: Likewise.
20476         * config/moxie/moxie.c: Likewise.
20477         * config/msp430/msp430.c: Likewise.
20478         * config/nds32/nds32.c: Likewise.
20479         * config/pa/pa.c: Likewise.
20480         * config/pdp11/pdp11.c: Likewise.
20481         * config/picochip/picochip.c: Likewise.
20482         * config/rl78/rl78.c: Likewise.
20483         * config/rs6000/rs6000.c: Likewise.
20484         * config/rx/rx.c: Likewise.
20485         * config/s390/s390.c: Likewise.
20486         * config/score/score.c: Likewise.
20487         * config/sh/sh.c: Likewise.
20488         * config/sparc/sparc.c: Likewise.
20489         * config/spu/spu.c: Likewise.
20490         * config/stormy16/stormy16.c: Likewise.
20491         * config/tilegx/tilegx.c: Likewise.
20492         * config/tilepro/tilepro.c: Likewise.
20493         * config/v850/v850.c: Likewise.
20494         * config/vax/vax.c: Likewise.
20495         * config/xtensa/xtensa.c: Likewise.
20497 2014-06-02  Jeff Law  <law@redhat.com>
20499         PR rtl-optimization/61094
20500         * ree.c (combine_reaching_defs): Do not reextend an insn if it
20501         was marked as do_no_reextend.  If a copy is needed to eliminate
20502         an extension, then mark it as do_not_reextend.
20504 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20506         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
20508 2014-06-02  Richard Henderson  <rth@redhat.com>
20510         PR target/61336
20511         * config/alpha/alpha.c (print_operand_address): Allow symbolic
20512         addresses inside asms.  Use output_operand_lossage instead of
20513         gcc_unreachable.
20515 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
20517         PR target/61239
20518         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
20519         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
20521 2014-06-02  Tom de Vries  <tom@codesourcery.com>
20523         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
20524         case that x has VOIDmode.
20526 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
20528         * varasm.c (copy_constant): Delete function.
20529         (build_constant_desc): Don't call it.
20531 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20533         PR target/61154
20534         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
20535         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
20536         with immediate_operand.
20538 2014-06-02  Andreas Schwab  <schwab@suse.de>
20540         * config/ia64/ia64.c
20541         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
20542         pending_data_specs first.
20544 2014-06-02  Richard Biener  <rguenther@suse.de>
20546         PR tree-optimization/61378
20547         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
20548         valueized_anything.
20550 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
20552         * config/i386/constraints.md (Bw): Rename from 'w'.
20553         (Bz): Rename from 'z'.
20554         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
20556 2014-06-01  Kai Tietz  <ktietz@redhat.com>
20558         PR target/61377
20559         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
20560         * config/i386/i386.md (sibcall_insn_operand): Use Bs
20561         instead of m constraint.
20563 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
20565         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
20566         a separate alternative where the scratch operand 2 is marked as
20567         early clobber.
20569 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
20571         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
20572         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
20573         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
20574         and __builtins_arm_get_fpscr.
20575         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20576         __builtins_arm_get_fpscr.
20577         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
20578         __builtins_arm_ldfpscr.
20579         (arm_atomic_assign_expand_fenv): New function.
20580         * config/arm/vfp.md (set_fpscr): New pattern.
20581         (get_fpscr) : Likewise.
20582         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
20583         VUNSPEC_SET_FPSCR.
20584         * doc/extend.texi (AARCH64 Built-in Functions) : Document
20585         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
20587 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
20589         * asan.c (report_error_func): Add SLOW_P argument, use
20590         BUILT_IN_ASAN_*_N if set.
20591         (build_check_stmt): Likewise.
20592         (instrument_derefs): If T has insufficient alignment,
20593         force same handling as for odd sizes.
20595         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
20596         BUILT_IN_ASAN_REPORT_STORE_N): New.
20597         * asan.c (struct asan_mem_ref): Change access_size type to
20598         HOST_WIDE_INT.
20599         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
20600         update_mem_ref_hash_table): Likewise.
20601         (asan_mem_ref_hasher::hash): Hash in a HWI.
20602         (report_error_func): Change size_in_bytes argument to HWI.
20603         Use *_N builtins if size_in_bytes is larger than 16 or not power of
20604         two.
20605         (build_shadow_mem_access): New function.
20606         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
20607         Handle size_in_bytes not power of two or larger than 16.
20608         (instrument_derefs): Don't give up if size_in_bytes is not
20609         power of two or is larger than 16.
20611 2014-05-30  Kai Tietz  <ktietz@redhat.com>
20613         PR target/60104
20614         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
20615         for sibling-tail-calls.
20616         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
20617         to its use.
20618         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
20619         (sibcall_insn_operand): Add check for sibcall_memory_operand.
20621 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20623         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
20624         * config/avr/avr-tables.opt: Regenerate.
20625         * config/avr/t-multilib: Regenerate.
20626         * doc/avr-mmcu.texi: Regenerate.
20628 2014-05-30  Ian Lance Taylor  <iant@google.com>
20630         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
20631         target("sse").
20633 2014-05-30  Tom de Vries  <tom@codesourcery.com>
20635         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20636         Redefine as true.
20638 2014-05-30  Tom de Vries  <tom@codesourcery.com>
20640         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20641         * lra.c (initialize_lra_reg_info_element): Add init of
20642         actual_call_used_reg_set field.
20643         (lra): Call lra_create_live_ranges before lra_inheritance for
20644         -fuse-caller-save.
20645         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20646         -fuse-caller-save.
20647         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
20648         instead of call_used_reg_set for -fuse-caller-save.
20649         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20651 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20653         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
20654         to mov_imm.
20655         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
20657 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
20659         * ira.c (ira_get_dup_out_num): Check for output operands at
20660         the start of the loop.  Handle cases where an included alternative
20661         follows an excluded one.
20663 2014-05-29  Mike Stump  <mikestump@comcast.net>
20665         PR debug/61352
20666         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
20667         post ld passes when lto is used.
20669 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
20671         PR rtl-optimization/61325
20672         * lra-constraints.c (process_address): Rename to process_address_1.
20673         (process_address): New function.
20675 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
20677         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
20678         TYPES_BINOPV): New static data.
20679         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
20680         New builtin.
20681         * config/aarch64/aarch64-simd.md (aarch64_ext,
20682         aarch64_im_lane_boundsi): New patterns.
20683         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
20684         patterns for EXT.
20685         (aarch64_evpc_ext): New function.
20687         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
20689         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
20690         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
20691         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
20692         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
20693         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
20695 2014-05-29  Tom de Vries  <tom@codesourcery.com>
20697         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
20699 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
20700             Richard Sandiford  <rdsandiford@googlemail.com>
20702         * arm/iterators.md (shiftable_ops): New code iterator.
20703         (t2_binop0, arith_shift_insn): New code attributes.
20704         * arm/predicates.md (shift_nomul_operator): New predicate.
20705         * arm/arm.md (insn_enabled): Delete.
20706         (enabled): Remove insn_enabled test.
20707         (*arith_shiftsi): Delete.  Replace with ...
20708         (*<arith_shift_insn>_multsi): ... new pattern.
20709         (*<arith_shift_insn>_shiftsi): ... new pattern.
20710         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
20712 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
20713             Tom de Vries  <tom@codesourcery.com>
20715         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
20716         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
20717         clobber.
20718         (mips_split_call): Use POST_CALL_TMP_REG.
20719         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
20721 2014-05-29  Tom de Vries  <tom@codesourcery.com>
20723         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
20724         with #ifdef STACK_REGS.
20726 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
20728         * varasm.c (get_variable_section): Walk aliases.
20729         (place_block_symbol): Walk aliases.
20731 2014-05-28  Tom de Vries  <tom@codesourcery.com>
20733         Revert:
20734         2014-05-28  Tom de Vries  <tom@codesourcery.com>
20736         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20737         * lra.c (initialize_lra_reg_info_element): Add init of
20738         actual_call_used_reg_set field.
20739         (lra): Call lra_create_live_ranges before lra_inheritance for
20740         -fuse-caller-save.
20741         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20742         -fuse-caller-save.
20743         * lra-constraints.c (need_for_call_save_p): Use
20744         actual_call_used_reg_set instead of call_used_reg_set for
20745         -fuse-caller-save.
20746         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20748 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20750         * doc/md.texi: Document that the % constraint character must
20751         be at the beginning of the string.
20752         * genoutput.c (validate_insn_alternatives): Check that '=',
20753         '+' and '%' only appear at the beginning of a constraint.
20754         * ira.c (commutative_constraint_p): Delete.
20755         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
20756         at the start of the string.
20757         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
20758         duplicate '='s.
20759         * config/arm/neon.md (bicdi3_neon): Likewise.
20760         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
20761         (slt_si, sltu_si): Likewise.
20762         * config/vax/vax.md (sbcdi3): Likewise.
20763         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
20764         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
20765         (mul64): Move '%' to beginning of constraint.
20766         * config/arm/arm.md (*xordi3_insn): Likewise.
20767         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
20768         (xorsi3): Likewise.
20770 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20772         * doc/md.texi: Document the restrictions on the "enabled" attribute.
20774 2014-05-28  Jason Merrill  <jason@redhat.com>
20776         PR c++/47202
20777         * cgraph.h (symtab_node::get_comdat_group_id): New.
20778         * cgraphunit.c (analyze_functions): Call it.
20779         * symtab.c (dump_symtab_node): Likewise.
20780         * tree.c (decl_comdat_group_id): New.
20781         * tree.h: Declare it.
20782         * lto-streamer-out.c (write_symbol): Use it.
20783         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
20785 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20787         PR bootstrap/PR61146
20788         * wide-int.cc: Do not include longlong.h when compiling with clang.
20790 2014-05-28  Richard Biener  <rguenther@suse.de>
20792         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
20793         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
20794         (vrp_visit_assignment_or_call): Print less vertical space.
20795         (vrp_visit_stmt): Likewise.
20796         (vrp_visit_phi_node): Likewise.  For a PHI argument with
20797         VR_VARYING range consider recording it as copy.
20799 2014-05-28  Richard Biener  <rguenther@suse.de>
20801         Revert
20802         2014-05-28  Richard Biener  <rguenther@suse.de>
20804         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20806 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20808         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
20809         sufficiently aligned and an offset is used at the same time.
20810         (expand_expr_real_1): Likewise.
20812 2014-05-28  Richard Biener  <rguenther@suse.de>
20814         PR middle-end/61045
20815         * fold-const.c (fold_comparison): When folding
20816         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
20817         the sign of the remaining constant operand stays the same.
20819 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
20821         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
20822         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
20823         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
20824         to the assembler.
20825         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
20826         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
20827         (m32bit-doubles) Likewise.
20828         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
20829         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
20830         option for RL78.
20832 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20834         * configure.ac ($gcc_cv_ld_clearcap): New test.
20835         * configure: Regenerate.
20836         * config.in: Regenerate.
20837         * config/sol2.opt (mclear-hwcap): New option.
20838         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
20839         * config/sol2-clearcap.map: Moved here from
20840         testsuite/gcc.target/i386/clearcap.map.
20841         * config/sol2-clearcapv2.map: Move here from
20842         gcc.target/i386/clearcapv2.map.
20843         * config/t-sol2 (install): Depend on install-clearcap-map.
20844         (install-clearcap-map): New target.
20845         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
20846         -mclear-hwcap.
20848 2014-05-28  Richard Biener  <rguenther@suse.de>
20850         * hwint.h (*_HALF_WIDE_INT*): Move to ...
20851         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
20852         ... here and remove the rest.
20853         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20855 2014-05-28  Richard Biener  <rguenther@suse.de>
20857         PR tree-optimization/61335
20858         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
20859         new range fails, drop to varying.
20861 2014-05-28  Olivier Hainque  <hainque@adacore.com>
20863         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
20864         (CPP_SPEC): Add entry for -mcpu=8548.
20865         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
20866         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
20868 2014-05-28  Tom de Vries  <tom@codesourcery.com>
20870         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20871         * lra.c (initialize_lra_reg_info_element): Add init of
20872         actual_call_used_reg_set field.
20873         (lra): Call lra_create_live_ranges before lra_inheritance for
20874         -fuse-caller-save.
20875         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20876         -fuse-caller-save.
20877         * lra-constraints.c (need_for_call_save_p): Use
20878         actual_call_used_reg_set instead of call_used_reg_set for
20879         -fuse-caller-save.
20880         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20882 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20883             Tom de Vries  <tom@codesourcery.com>
20885         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
20886         to gccoptlist.
20887         (@item -fuse-caller-save): New item.
20889 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20890             Tom de Vries  <tom@codesourcery.com>
20892         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
20893         OPT_fuse_caller_save.
20895 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20896             Tom de Vries  <tom@codesourcery.com>
20898         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
20899         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
20900         get_call_reg_set_usage.
20901         * resource.c (mark_set_resources, mark_target_live_regs): Use
20902         get_call_reg_set_usage.
20903         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
20904         field.
20905         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
20906         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
20907         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20908         * ira-build.c (ira_create_allocno): Init
20909         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20910         (create_cap_allocno, propagate_allocno_info)
20911         (propagate_some_info_from_allocno)
20912         (copy_info_to_removed_store_destinations): Handle
20913         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20914         * ira-costs.c (ira_tune_allocno_costs): Use
20915         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
20917 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20918             Tom de Vries  <tom@codesourcery.com>
20920         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
20921         and function_used_regs_valid fields.
20922         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
20923         find_all_hard_reg_sets.
20924         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
20925         (get_call_reg_set_usage): New function.
20926         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
20927         * regs.h (get_call_reg_set_usage): Declare.
20929 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20931         PR libgcc/61152
20932         * config/dbx.h (License): Add Runtime Library Exception.
20933         * config/newlib-stdint.h (License): Same.
20934         * config/rtems.h (License): Same
20935         * config/initfini-array.h (License): Same
20936         * config/v850/v850.h (License): Same.
20937         * config/v850/v850-opts.h (License): Same
20938         * config/v850/rtems.h (License): Same.
20940 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20942         PR target/61044
20943         * doc/extend.texi (Local Labels): Note that label differences are
20944         not supported for AVR.
20946 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20947             Olivier Hainque  <hainque@adacore.com>
20949         * rtl.h (set_for_reg_notes): Declare.
20950         * emit-rtl.c (set_for_reg_notes): New function.
20951         (set_unique_reg_note): Use it.
20952         * optabs.c (add_equal_note): Likewise
20954 2014-05-27  Andrew Pinski  <apinski@cavium.com>
20956         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20957         Use <w> for the register in assembly template.
20958         (stack_protect_test): Use the mode of operands[0] for the result.
20959         (stack_protect_test_<mode>): Use <w> for the register
20960         in assembly template.
20962 2014-05-27  DJ Delorie  <dj@redhat.com>
20964         * config/rx/rx.c (add_vector_labels): New.
20965         (rx_output_function_prologue): Call it.
20966         (rx_handle_func_attribute): Don't require empty arguments.
20967         (rx_handle_vector_attribute): New.
20968         (rx_attribute_table): Add "vector" attribute.
20969         * doc/extend.texi (interrupt, vector): Document new/changed
20970         RX-specific attributes.
20972         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20974 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20976         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20977         predicate to detect a negative quotient.
20979 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20981         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20982         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20983         Add X - Y CMP 0 to X CMP Y transformation.
20984         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20986 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
20988         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20989         before printing.
20991 2014-05-27  Steve Ellcey  <sellcey@mips.com>
20993         * config/mips/mips.c: Add include of cgraph.h.
20995 2014-05-27  Richard Biener  <rguenther@suse.de>
20997         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20999 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
21001         PR libgcc/61152
21002         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
21003         * config/arm/arm-cores.def (License): Same.
21004         * config/arm/arm-opts.h (License): Same.
21005         * config/arm/aout.h (License): Same.
21006         * config/arm/bpabi.h (License): Same.
21007         * config/arm/elf.h (License): Same.
21008         * config/arm/linux-elf.h (License): Same.
21009         * config/arm/linux-gas.h (License): Same.
21010         * config/arm/netbsd-elf.h (License): Same.
21011         * config/arm/uclinux-eabi.h (License): Same.
21012         * config/arm/uclinux-elf.h (License): Same.
21013         * config/arm/vxworks.h (License): Same.
21015 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21017         * config/arm/neon.md (neon_bswap<mode>): New pattern.
21018         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
21019         (arm_init_neon_builtins): Handle NEON_BSWAP.
21020         Define required type nodes.
21021         (arm_expand_neon_builtin): Handle NEON_BSWAP.
21022         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
21023         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
21024         * config/arm/iterators.md (VDQHSD): New mode iterator.
21026 2014-05-27  Richard Biener  <rguenther@suse.de>
21028         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
21029         Try using literal operands when comparing value-ranges failed.
21031 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21033         * ira.c (commutative_operand): Adjust for change to recog_data.
21034         [Missing from previous commit.]
21036 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21038         * system.h (TEST_BIT): New macro.
21039         * recog.h (alternative_mask): New type.
21040         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
21041         (recog_data_d): Replace alternative_enabled_p array with
21042         enabled_alternatives.
21043         (target_recog): New structure.
21044         (default_target_recog, this_target_recog): Declare.
21045         (get_enabled_alternatives, recog_init): Likewise.
21046         * recog.c (default_target_recog, this_target_recog): New variables.
21047         (get_enabled_alternatives): New function.
21048         (extract_insn): Use it.
21049         (recog_init): New function.
21050         (preprocess_constraints, constrain_operands): Adjust for change to
21051         recog_data.
21052         * postreload.c (reload_cse_simplify_operands): Likewise.
21053         * reload.c (find_reloads): Likewise.
21054         * ira-costs.c (record_reg_classes): Likewise.
21055         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
21056         all alternatives after a disabled one would be skipped.
21057         (ira_implicitly_set_insn_hard_regs): Likewise.
21058         * ira.c (ira_setup_alts): Adjust for change to recog_data.
21059         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
21060         with enabled_alternatives.
21061         * lra.c (free_insn_recog_data): Update accordingly.
21062         (lra_update_insn_recog_data): Likewise.
21063         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
21064         * lra-constraints.c (process_alt_operands): Likewise.  Handle
21065         only_alternative as part of the enabled mask.
21066         * target-globals.h (this_target_recog): Declare.
21067         (target_globals): Add a recog field.
21068         (restore_target_globals): Restore this_target_recog.
21069         * target-globals.c: Include recog.h.
21070         (default_target_globals): Initialize recog field.
21071         (save_target_globals): Likewise.
21072         * reginfo.c (reinit_regs): Call recog_init.
21073         * toplev.c (backend_init_target): Likewise.
21075 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21077         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
21078         rather than any named insn's code.
21080 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
21082         PR libgcc/61152
21083         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
21084         * config/arm/arm-cores.def (License): Same.
21086 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
21088         * tree.h (decl_comdat_group): Declare.
21089         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
21090         * tree.c (decl_comdat_group): Here.
21092 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
21094         PR rtl-optimization/61222
21095         * combine.c (simplify_shift_const_1): When moving a PLUS outside
21096         the shift, truncate the PLUS operand to the result mode.
21098 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
21100         PR target/61271
21101         * config/i386/i386.c (ix86_rtx_costs)
21102         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
21103         Fix condition.
21105 2014-05-26  Martin Jambor  <mjambor@suse.cz>
21107         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
21108         subreg uses.
21110 2014-05-26  Richard Biener  <rguenther@suse.de>
21112         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
21113         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
21114         Provide specializations.
21115         (wi::int_traits <HOST_WIDE_INT>,
21116         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
21118 2014-05-26  Alan Modra  <amodra@gmail.com>
21120         PR target/61098
21121         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
21122         params and return a bool.  Remove dead code.  Update comment.
21123         Assert we have a const_int source.  Remove bogus code from
21124         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
21125         handling of constants > 2G and reg_equal note, from..
21126         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
21127         return value.  Update comment.  If we can, use a new pseudo
21128         for intermediate calculations.
21129         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
21130         prototype.
21131         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
21132         call to rs6000_emit_set_const in splitter.
21133         (movdi_internal64+2, +3): Likewise.
21135 2014-05-26  Richard Biener  <rguenther@suse.de>
21137         * system.h: Define __STDC_FORMAT_MACROS before
21138         including inttypes.h.
21139         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
21140         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
21141         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
21142         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
21143         HOST_WIDEST_INT_C): Remove.
21144         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
21145         if C99 inttypes.h is not available.
21146         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
21147         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
21148         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
21149         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
21150         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
21151         (struct output_info): Likewise.
21152         (print_statistics): Adjust.
21153         (dump_bitmap_statistics): Likewise.
21154         * bt-load.c (migrate_btr_defs): Print with PRId64.
21155         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
21156         (MAX_SAFE_MULTIPLIER): Adjust.
21157         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
21158         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
21159         dump_cgraph_node): Likewise.
21160         * final.c (dump_basic_block_info): Likewise.
21161         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
21162         * gcov.c (format_gcov): Likewise.
21163         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
21164         for calculation.
21165         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
21166         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
21167         (inline_small_functions, dump_overall_stats, dump_inline_stats):
21168         Use PRId64 for dumping.
21169         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
21170         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
21171         (add_allocno_hard_regs): Adjust.
21172         * loop-doloop.c (doloop_modify): Print using PRId64.
21173         * loop-iv.c (inverse): Compute in uint64_t.
21174         (determine_max_iter, iv_number_of_iterations): Likewise.
21175         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
21176         Print using PRId64.
21177         * lto-streamer-out.c (write_symbol): Use uint64_t.
21178         * mcf.c (CAP_INFINITY): Use int64_t maximum.
21179         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
21180         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
21181         * modulo-sched.c (const_iteration_count): Use int64_t.
21182         (sms_schedule): Dump using PRId64.
21183         * predict.c (dump_prediction): Likewise.
21184         * pretty-print.h (pp_widest_integer): Remove.
21185         * profile.c (get_working_sets, is_edge_inconsistent,
21186         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
21187         * tree-pretty-print.c (pp_double_int): Remove case handling
21188         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
21189         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
21190         and adjust users.
21191         (pass_optimize_bswap::execute): Remove restriction on hosts.
21192         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
21193         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
21194         * tree.c (widest_int_cst_value): Remove.
21195         * tree.h (widest_int_cst_value): Likewise.
21196         * value-prof.c (dump_histogram_value): Print using PRId64.
21197         * gengtype.c (main): Also inject int64_t.
21198         * ggc-page.c (struct max_alignment): Use int64_t.
21199         * alloc-pool.c (struct allocation_object_def): Likewise.
21200         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
21201         for computation.
21202         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
21203         * doc/tm.texi: Regenerated.
21204         * gengtype-lex.l (IWORD): Handle [u]int64_t.
21205         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
21206         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
21207         mmix_output_register_setting): Use [u]int64_t in prototypes.
21208         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
21209         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
21210         mmix_output_octa, mmix_output_shifted_value): Adjust.
21211         (mmix_intval): Adjust.  Remove unreachable case.
21212         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
21214 2014-05-26  Richard Biener  <rguenther@suse.de>
21216         * configure.ac: Drop __int64 type check.  Insist that we
21217         found uint64_t and int64_t.
21218         * hwint.h (HOST_BITS_PER___INT64): Remove.
21219         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
21220         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
21221         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
21222         (HOST_WIDEST_FAST_INT): Remove __int64 case.
21223         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
21224         for dst_q_src_df_rms_cdt.
21225         * configure: Regenerate.
21226         * config.in: Likewise.
21228 2014-05-26  Michael Tautschnig  <mt@debian.org>
21230         PR target/61249
21231         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
21232         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
21234 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21236         PR rtl-optimization/61278
21237         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
21239 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21241         PR rtl-optimization/61220
21242         Part of PR rtl-optimization/61225
21243         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
21244         insn; skip split_edge for a block with only one successor.
21246 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21248         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
21249         for variables.
21251 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21253         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
21254         (update_vtable_references): New function.
21255         (function_and_variable_visibility): Rewrite also vtable initializers.
21256         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
21258 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21260         * ggc.h (ggc_grow): New function.
21261         * ggc-none.c (ggc_grow): New function.
21262         * ggc-page.c (ggc_grow): Likewise.
21264 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21266         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
21267         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
21268         comdat_can_be_unshared_p, cgraph_externally_visible_p,
21269         varpool_externally_visible_p, can_replace_by_local_alias,
21270         update_visibility_by_resolution_info, function_and_variable_visibility,
21271         pass_data_ipa_function_and_variable_visibility,
21272         make_pass_ipa_function_and_variable_visibility,
21273         whole_program_function_and_variable_visibility,
21274         pass_data_ipa_whole_program_visibility,
21275         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
21276         * cgraph.h (cgraph_local_node_p): Declare.
21277         * ipa-visibility.c: New file.
21278         * Makefile.in (OBJS): Add ipa-visiblity.o
21280 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21282         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
21283         that var decl is available.
21285 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21287         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
21288         symtab_node pointer.
21289         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
21290         (find_decls_types_r): Do not walk COMDAT_GROUP.
21291         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
21292         * varasm.c (make_decl_one_only): Use set_comdat_group;
21293         create node if needed.
21294         * ipa-inline-transform.c (save_inline_function_body): Update
21295         way we decl->symtab mapping.
21296         * symtab.c (symtab_hash, hash_node, eq_node
21297         symtab_insert_node_to_hashtable): Remove.
21298         (symtab_register_node): Update.
21299         (symtab_unregister_node): Update.
21300         (symtab_get_node): Reimplement as inline function.
21301         (symtab_add_to_same_comdat_group): Update.
21302         (symtab_dissolve_same_comdat_group_list): Update.
21303         (dump_symtab_base): Update.
21304         (verify_symtab_base): Update.
21305         (symtab_make_decl_local): Update.
21306         (fixup_same_cpp_alias_visibility): Update.
21307         (symtab_nonoverwritable_alias): Update.
21308         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
21309         * ipa.c (update_visibility_by_resolution_info): UPdate.
21310         * bb-reorder.c: Include cgraph.h
21311         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
21312         with comdat groups.
21313         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
21314         * cgraph.c (cgraph_get_create_node): Update.
21315         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
21316         and comdat_group_.
21317         (symtab_get_node): Make inline.
21318         (symtab_insert_node_to_hashtable): Remove.
21319         (symtab_can_be_discarded): Update.
21320         (decl_comdat_group): New function.
21321         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
21322         Update.
21323         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
21324         comdat group name.
21325         (read_comdat_group): New function.
21326         (input_node, input_varpool_node): Use it.
21327         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
21328         comdat groups.
21329         * mips.c (mips_start_unique_function): Likewise.
21330         (ix86_code_end): Likewise.
21331         (rs6000_code_end): Likweise.
21332         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
21334 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21336         * gengtype-state.c (fatal_reading_state): Bring offline.
21337         * optabs.c (widening_optab_handler): Bring offline.
21338         * optabs.h (widening_optab_handler): Likewise.
21339         * final.c (get_attr_length_1): Likewise.
21341 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21343         * sched-int.h (sd_iterator_cond): Manually tail recurse.
21345 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21347         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
21348         (ppc440-compare): Include shift with dot.
21349         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
21350         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
21351         without dot.
21352         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
21353         without dot.
21354         (e6500_sfx2): Include it.
21355         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
21356         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
21357         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
21358         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
21359         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
21360         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
21361         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
21362         *lshiftrt_internal1le, *lshiftrt_internal1be,
21363         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
21364         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
21365         *rotldi3_internal10le, *rotldi3_internal10be,
21366         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
21367         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
21368         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
21369         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
21370         define_insns): Use type "shift" in the appropriate alternatives.
21372 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21374         * config/rs6000/rs6000.md (type): Add "logical".  Delete
21375         "fast_compare".
21376         (dot): Adjust comment.
21377         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
21378         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
21379         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
21380         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
21381         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
21382         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
21383         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
21384         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21386         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21387         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21388         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21389         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21390         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21391         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21392         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21393         * config/rs6000/8540.md (ppc8540_su): Adjust.
21394         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21395         cell-cmp-microcoded): Adjust.
21396         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
21397         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21398         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
21399         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
21400         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
21401         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21402         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
21403         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
21404         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
21405         Adjust.
21406         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
21407         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
21408         Adjust.  Adjust comment.
21409         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21410         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
21412 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21414         * config/rs6000/rs6000.md (type): Add "add".
21415         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
21416         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
21417         define_insns): Use it.
21418         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21420         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21421         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21422         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21423         * config/rs6000/601.md (ppc601-integer): Adjust.
21424         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21425         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21426         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21427         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21428         * config/rs6000/8540.md (ppc8540_su): Adjust.
21429         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21430         cell-cmp-microcoded): Adjust.
21431         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
21432         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21433         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
21434         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
21435         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
21436         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21437         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
21438         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
21439         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
21440         Adjust.
21441         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
21442         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
21443         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21444         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
21446 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21448         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
21449         "delayed_compare", "var_delayed_compare".
21450         (var_shift): New attribute.
21451         (cell_micro): Adjust.
21452         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
21453         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
21454         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
21455         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
21456         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
21457         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
21458         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
21459         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
21460         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
21461         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21462         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
21463         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
21464         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
21465         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
21466         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
21467         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
21468         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
21469         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
21470         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
21471         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
21472         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
21473         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
21474         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
21475         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21476         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21478         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21479         * config/rs6000/440.md (ppc440-integer): Adjust.
21480         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21481         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
21482         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21483         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21484         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21485         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21486         * config/rs6000/8540.md (ppc8540_su): Adjust.
21487         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21488         cell-cmp-microcoded): Adjust.
21489         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
21490         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21491         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
21492         e500mc64_delayed): Adjust.
21493         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
21494         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
21495         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21496         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
21497         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
21498         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
21499         power6-delayed-compare, power6-var-delayed-compare): Adjust.
21500         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
21501         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
21502         Adjust comment.
21503         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21504         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21506 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21508         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
21509         (bits): New mode_attr.
21510         (idiv_ldiv): Delete mode_attr.
21511         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
21512         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21513         rs6000_adjust_priority, is_nonpipeline_insn,
21514         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21516         * config/rs6000/40x.md (ppc403-idiv): Adjust.
21517         * config/rs6000/440.md (ppc440-idiv): Adjust.
21518         * config/rs6000/476.md (ppc476-idiv): Adjust.
21519         * config/rs6000/601.md (ppc601-idiv): Adjust.
21520         * config/rs6000/603.md (ppc603-idiv): Adjust.
21521         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
21522         ppc620-ldiv): Adjust.
21523         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
21524         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
21525         * config/rs6000/8540.md (ppc8540_divide): Adjust.
21526         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
21527         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
21528         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
21529         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
21530         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
21531         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
21532         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
21533         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
21534         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
21535         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
21536         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
21537         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
21538         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
21539         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
21540         * config/rs6000/titan.md (titan_fxu_div): Adjust.
21542 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21544         * config/rs6000/rs6000.md (type): Delete "insert_word",
21545         "insert_dword".  Add "insert".
21546         (size): Update comment.
21547         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21548         insn_must_be_first_in_group): Adjust.
21549         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21550         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21551         *insvsi_internal6, insvdi_internal): Adjust.
21553         * config/rs6000/40x.md (ppc403-integer): Adjust.
21554         * config/rs6000/440.md (ppc440-integer): Adjust.
21555         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
21556         * config/rs6000/601.md (ppc601-integer): Adjust.
21557         * config/rs6000/603.md (ppc603-integer): Adjust.
21558         * config/rs6000/6xx.md (ppc604-integer): Adjust.
21559         * config/rs6000/7450.md (ppc7450-integer): Adjust.
21560         * config/rs6000/7xx.md (ppc750-integer): Adjust.
21561         * config/rs6000/8540.md (ppc8540_su): Adjust.
21562         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
21563         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
21564         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21565         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
21566         * config/rs6000/e5500.md (e5500_sfx): Adjust.
21567         * config/rs6000/e6500.md (e6500_sfx): Adjust.
21568         * config/rs6000/mpc.md (mpccore-integer): Adjust.
21569         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
21570         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
21571         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
21572         * config/rs6000/power7.md (power7-integer): Adjust.
21573         * config/rs6000/power8.md (power8-1cyc): Adjust.
21574         * config/rs6000/rs64.md (rs64a-integer): Adjust.
21575         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21577 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21579         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
21580         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
21581         (size): New attribute.
21582         (dot): New attribute.
21583         (cell_micro): Adjust.
21584         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
21585         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
21586         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
21587         umuldi3_highpart): Adjust.
21588         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21589         rs6000_adjust_priority, is_nonpipeline_insn,
21590         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21592         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
21593         ppc405-imul3): Adjust.
21594         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
21595         * config/rs6000/476.md (ppc476-imul): Adjust.
21596         * config/rs6000/601.md (ppc601-imul): Adjust.
21597         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
21598         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
21599         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
21600         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
21601         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
21602         Adjust.
21603         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
21604         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
21605         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
21606         cell-imul): Adjust.
21607         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
21608         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
21609         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
21610         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
21611         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
21612         * config/rs6000/mpc.md (mpccore-imul): Adjust.
21613         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
21614         power4-lmul, power4-imul, power4-imul3): Adjust.
21615         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
21616         power5-lmul, power5-imul, power5-imul3): Adjust.
21617         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
21618         power6-lmul, power6-imul, power6-imul3): Adjust.
21619         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
21620         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
21622         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
21623         rs64a-lmul): Adjust.
21624         * config/rs6000/titan.md (titan_imul): Adjust.
21626 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21628         * config/rs6000/rs6000.md (type): Add new value "halfmul".
21629         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
21630         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
21631         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
21632         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
21633         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
21634         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
21635         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
21636         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
21637         * config/rs6000/titan.md: Delete nonsensical comment.
21638         (titan_imul): Add type imul3.
21639         (titan_mulhw): Remove type imul3; add type halfmul.
21641 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21643         * config/rs6000/rs6000.md (type): Reorder, reformat.
21645 2014-05-23  Martin Jambor  <mjambor@suse.cz>
21647         PR tree-optimization/53787
21648         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
21649         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
21650         analysis_done, update all uses.
21651         * ipa-prop.c: Include domwalk.h
21652         (param_analysis_info): Removed.
21653         (param_aa_status): New type.
21654         (ipa_bb_info): Likewise.
21655         (func_body_info): Likewise.
21656         (ipa_get_bb_info): New function.
21657         (aa_overwalked): Likewise.
21658         (find_dominating_aa_status): Likewise.
21659         (parm_bb_aa_status_for_bb): Likewise.
21660         (parm_preserved_before_stmt_p): Changed to use new param AA info.
21661         (load_from_unmodified_param): Accept func_body_info as a parameter
21662         instead of parms_ainfo.
21663         (parm_ref_data_preserved_p): Changed to use new param AA info.
21664         (parm_ref_data_pass_through_p): Likewise.
21665         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
21666         (compute_complex_assign_jump_func): Changed to use new param AA info.
21667         (compute_complex_ancestor_jump_func): Likewise.
21668         (ipa_compute_jump_functions_for_edge): Likewise.
21669         (ipa_compute_jump_functions): Removed.
21670         (ipa_compute_jump_functions_for_bb): New function.
21671         (ipa_analyze_indirect_call_uses): Likewise, moved variable
21672         declarations down.
21673         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
21674         and info, moved variable declarations down.
21675         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
21676         node and info.
21677         (ipa_analyze_stmt_uses): Likewise.
21678         (ipa_analyze_params_uses): Removed.
21679         (ipa_analyze_params_uses_in_bb): New function.
21680         (ipa_analyze_controlled_uses): Likewise.
21681         (free_ipa_bb_info): Likewise.
21682         (analysis_dom_walker): New class.
21683         (ipa_analyze_node): Handle node-specific forbidden analysis,
21684         initialize and free func_body_info, use dominator walker.
21685         (ipcp_modif_dom_walker): New class.
21686         (ipcp_transform_function): Create and free func_body_info, use
21687         ipcp_modif_dom_walker, moved a lot of functionality there.
21689 2014-05-23  Marek Polacek  <polacek@redhat.com>
21690             Jakub Jelinek  <jakub@redhat.com>
21692         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
21693         * gcc.c (sanitize_spec_function): Likewise.
21694         * convert.c (convert_to_integer): Include "ubsan.h".  Add
21695         floating-point to integer instrumentation.
21696         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
21697         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
21698         SANITIZE_NONDEFAULT.
21699         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
21700         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
21701         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
21702         * ubsan.c: Include "realmpfr.h" and "dfp.h".
21703         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
21704         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
21705         float/double/long double.
21706         (ubsan_instrument_float_cast): New function.
21707         * ubsan.h (ubsan_instrument_float_cast): Declare.
21709 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
21711         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
21712         predicate.
21713         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
21714         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
21715         Adjust for tailcalling through registers.
21716         * config/aarch64/aarch64.h (enum reg_class): New caller save
21717         register class.
21718         (REG_CLASS_NAMES): Likewise.
21719         (REG_CLASS_CONTENTS): Likewise.
21720         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
21721         Allow tailcalling without decls.
21723 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
21725         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21726         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
21728         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
21729         gsi, and variables v_* to v*.
21731 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
21733         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
21735 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
21737         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
21738         * omp-low.c: Update accordingly.
21740         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
21741         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
21742         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
21743         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
21744         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
21745         GF_OMP_TARGET_KIND_UPDATE.
21747         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21748         Explicitly enumerate the expected region types.
21750 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21752         PR other/56955
21753         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
21754         documentation; the old documentation didn't clearly state the
21755         constraints on the contents of the pointed-to storage.
21757 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21759         Fix bootstrap error on ia64
21760         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
21761         Return default value.
21763 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21765         PR tree-optimization/54733
21766         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
21767         (CMPNOP): Define.
21768         (find_bswap_or_nop_load): New.
21769         (find_bswap_1): Renamed to ...
21770         (find_bswap_or_nop_1): This. Also add support for memory source.
21771         (find_bswap): Renamed to ...
21772         (find_bswap_or_nop): This. Also add support for memory source and
21773         detection of bitwise operations equivalent to load in target
21774         endianness.
21775         (execute_optimize_bswap): Likewise. Also move its leading comment back
21776         in place and split statement transformation into ...
21777         (bswap_replace): This.
21779 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21781         PR rtl-optimization/61215
21782         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
21783         simplify_gen_subreg until final substitution.
21785 2014-05-23  Alan Modra  <amodra@gmail.com>
21787         PR target/61231
21788         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
21789         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
21790         Use "Y" constraint rather than "m".
21792 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
21794         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
21795         define.
21796         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
21797         New function declaration.
21798         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
21799         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
21800         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
21801         (aarch64_init_builtins) : Initialize builtins
21802         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21803         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21804         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
21805         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
21806         and __builtins_aarch64_set_fpsr.
21807         (aarch64_atomic_assign_expand_fenv): New function.
21808         * config/aarch64/aarch64.md (set_fpcr): New pattern.
21809         (get_fpcr) : Likewise.
21810         (set_fpsr) : Likewise.
21811         (get_fpsr) : Likewise.
21812         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
21813          and UNSPECV_SET_FPSR.
21814         * doc/extend.texi (AARCH64 Built-in Functions) : Document
21815         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21816         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21818 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21820         PR rtl-optimization/60969
21821         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
21822         constraints.  Set up mem cost for NO_REGS case.
21824 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
21826         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
21828 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
21830         * config/darwin.c: Include "lto-section-names.h".
21831         (LTO_SEGMENT_NAME): Don't define.
21832         * config/i386/winnt.c: Include "lto-section-names.h".
21833         * lto-streamer.c: Include "lto-section-names.h".
21834         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
21835         * lto-wrapper.c: Include "lto-section-names.h".
21836         (LTO_SECTION_NAME_PREFIX): Don't define.
21837         * lto-section-names.h: New file.
21838         * cgraphunit.c: Include "lto-section-names.h".
21840 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
21842         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
21844 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
21846         PR target/61208
21847         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
21849 2014-05-22  Nick Clifton  <nickc@redhat.com>
21851         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
21853 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
21855         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
21856         -> (T)A transformation to integer types.
21858 2014-05-22  Teresa Johnson  <tejohnson@google.com>
21860         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
21861         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
21862         (gcov_rewrite): Use gcov_nonruntime_assert.
21863         (gcov_open): Ditto.
21864         (gcov_write_words): Ditto.
21865         (gcov_write_length): Ditto.
21866         (gcov_read_words): Use gcov_nonruntime_assert, and remove
21867         gcc_assert from IN_LIBGCOV code.
21868         (gcov_read_summary): Use gcov_error to flag profile corruption.
21869         (gcov_sync): Use gcov_nonruntime_assert.
21870         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
21871         (gcov_histo_index): Use gcov_nonruntime_assert.
21872         (static void gcov_histogram_merge): Ditto.
21873         (compute_working_sets): Ditto.
21874         * gcov-io.h (gcov_nonruntime_assert): Define.
21875         (gcov_error): Define for !IN_LIBGCOV
21877 2014-05-22  Richard Biener  <rguenther@suse.de>
21879         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21880         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
21881         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
21882         and deallocation site.
21883         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21884         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
21885         passing through the incoming points-to set.
21886         (handle_lhs_call): Use flags argument instead of recomputing it.
21887         (find_func_aliases_for_call): Call handle_lhs_call with proper
21888         call return flags.
21890 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
21892         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
21893         all padding bits in REAL_VALUE_TYPE are cleared.
21895 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21897         Cleanup and improve multipass_dfa_lookahead_guard
21898         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
21899         (core2i7_first_cycle_multipass_begin,)
21900         (core2i7_first_cycle_multipass_issue,)
21901         (core2i7_first_cycle_multipass_backtrack): Update signature.
21902         * config/ia64/ia64.c
21903         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
21904         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
21905         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
21906         hook definition.
21907         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
21908         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
21909         values.
21910         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
21911         return values.
21912         * doc/tm.texi: Regenerate.
21913         * doc/tm.texi.in
21914         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
21915         * haifa-sched.c (ready_try): Make signed to allow negative values.
21916         (rebug_ready_list_1): Update.
21917         (choose_ready): Simplify.
21918         (sched_extend_ready_list): Update.
21920 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21922         Remove IA64 speculation tweaking flags
21923         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
21924         speculation tuning flags.
21925         (msched-prefer-non-data-spec-insns,)
21926         (msched-prefer-non-control-spec-insns): Obsolete options.
21927         * haifa-sched.c (choose_ready): Remove handling of
21928         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21929         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
21930         and PREFER_NON_DATA_SPEC.
21931         * sel-sched.c (process_spec_exprs): Remove handling of
21932         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21934 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21936         Improve scheduling debug output
21937         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
21938         (advance_one_cycle): Update.
21939         (schedule_insn, queue_to_ready): Add debug printouts.
21940         (debug_ready_list_1): New static function.
21941         (debug_ready_list): Update.
21942         (max_issue): Add debug printouts.
21943         (dump_insn_stream): New static function.
21944         (schedule_block): Use it.  Also better indent printouts.
21946 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21948         Fix sched_insn debug counter
21949         * haifa-sched.c (schedule_insn): Update.
21950         (struct haifa_saved_data): Add nonscheduled_insns_begin.
21951         (save_backtrack_point, restore_backtrack_point): Update.
21952         (first_nonscheduled_insn): New static function.
21953         (queue_to_ready, choose_ready): Use it.
21954         (schedule_block): Init nonscheduled_insns_begin.
21955         (sched_emit_insn): Update.
21958 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
21960         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21961         to GENERAL_REGS.
21962         (aarch64_secondary_reload) : LikeWise.
21963         (aarch64_class_max_nregs) : Remove CORE_REGS.
21964         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21965         (REG_CLASS_NAMES) : Likewise.
21966         (REG_CLASS_CONTENTS) : LikeWise.
21967         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21969 2014-05-21  Guozhi Wei  <carrot@google.com>
21971         PR target/61202
21972         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21973         constraint.
21974         (vqdmulhq_n_s16): Likewise.
21976 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21978         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21980 2014-05-21  Marek Polacek  <polacek@redhat.com>
21982         PR sanitizer/61272
21983         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21985 2014-05-21  Martin Jambor  <mjambor@suse.cz>
21987         * doc/invoke.texi (Optimize Options): Document parameters
21988         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21989         ipa-cp-array-index-hint-bonus.
21991 2014-05-21  Mark Wielaard  <mjw@redhat.com>
21993         PR debug/16063
21994         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21995         version >= 3 or not strict DWARF.
21996         * langhooks.h (struct lang_hooks_for_types): Add
21997         enum_underlying_base_type.
21998         * langhooks.c (lhd_enum_underlying_base_type): New function.
21999         * gcc/langhooks.h (struct lang_hooks_for_types): Add
22000         enum_underlying_base_type.
22001         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
22002         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
22003         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
22005 2014-05-21  Richard Biener  <rguenther@suse.de>
22007         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
22009 2014-05-21  John Marino  <gnugcc@marino.st>
22011         * config.gcc (*-*-dragonfly*): New target.
22012         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
22013         * configure: Regenerate.
22014         * config/dragonfly-stdint.h: New.
22015         * config/dragonfly.h: New.
22016         * config/dragonfly.opt: New.
22017         * config/i386/dragonfly.h: New.
22018         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
22020 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22022         * tree.def (VOID_CST): New.
22023         * tree-core.h (TI_VOID): New.
22024         * tree.h (void_node): New.
22025         * tree.c (tree_node_structure_for_code, tree_code_size)
22026         (iterative_hash_expr): Handle VOID_CST.
22027         (build_common_tree_nodes): Initialize void_node.
22029 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
22031         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
22032         functions.
22033         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
22035         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
22036         more places.
22038         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
22039         flag_reorder_blocks_and_partition.
22040         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
22042 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
22044         PR target/54236
22045         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
22046         constraints.
22047         (*addc_r_t): Add new insn_and_split.
22049 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
22051         PR middle-end/61252
22052         * omp-low.c (handle_simd_reference): New function.
22053         (lower_rec_input_clauses): Use it.  Defer adding reference
22054         initialization even for reduction without placeholder if in simd,
22055         handle it properly later on.
22057 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22059         PR tree-optimization/60899
22060         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
22061         assume all static symbols will have definition wile parsing and
22062         check the do have definition later in compilation; check that
22063         variable referring symbol will be output before concluding that
22064         reference is safe; be conservative for referring local statics;
22065         be more precise about when comdat is output in other partition.
22067 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22069         PR bootstrap/60984
22070         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
22071         parameter.
22072         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
22073         (ipa_inline): Loop inline_to_all_callers until no more aliases
22074         are removed.
22076 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22078         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
22079         set writeonly flag only for vars actually written to.
22081 2014-05-20  Dehao Chen  <dehao@google.com>
22083         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
22084         and callee count to get clone count.
22085         * tree-inline.c (expand_call_inline): Use callee count instead of bb
22086         count in copy_body.
22088 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
22090         PR rtl-optimization/61243
22091         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
22093 2014-05-20  Xinliang David Li  <davidxl@google.com>
22095         * cgraphunit.c (walk_polymorphic_call_targets): Add
22096         dbgcnt and fopt-info support.
22097         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
22098         * ipa-devirt.c (ipa_devirt): Ditto.
22099         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
22100         * ipa.c (walk_polymorphic_call_targets): Ditto.
22101         * gimple-fold.c (fold_gimple_assign): Ditto.
22102         (gimple_fold_call): Ditto.
22103         * dbgcnt.def: New counter.
22105 2014-05-20  DJ Delorie  <dj@redhat.com>
22107         * config/msp430/msp430.md (split): Don't allow subregs when
22108         splitting SImode adds.
22109         (andneghi): Fix subtraction logic.
22110         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
22112 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22114         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
22115         symbols.
22116         * except.c (switch_to_exception_section, resolve_unique_section,
22117         get_named_text_section, default_function_rodata_section,
22118         align_variable, get_block_for_decl, default_section_type_flags):
22119         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
22120         * symtab.c (symtab_add_to_same_comdat_group,
22121         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
22122         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
22123         Likewise.
22124         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
22125         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
22126         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22127         (c6x_function_in_section_p): Likewise.
22128         * config/darwin.c (machopic_select_section): Likewise.
22129         * config/arm/arm.c (arm_function_in_section_p): Likewise.
22130         * config/mips/mips.c (mips_function_rodata_section): Likewise.
22131         * config/mep/mep.c (mep_select_section): LIkewise.
22132         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22134 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
22136         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
22137         EH region of calls to pure functions that can throw an exception.
22138         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
22139         (copy_reference_ops_from_call): Also copy the EH region of the call if
22140         it can throw an exception.
22142 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22144         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
22145         nested VEC_SELECTs that are inverses of each other.
22147 2014-05-20  Richard Biener  <rguenther@suse.de>
22149         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
22150         (extract_and_process_scc_for_name): not here.
22151         (cond_dom_walker::before_dom_children): Only process
22152         stmts that end the BB in interesting ways.
22153         (run_scc_vn): Mark param uses as visited.
22155 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22157         * config/arm/arm.md (arith_shiftsi): Do not predicate for
22158         arm_restrict_it.
22160 2014-05-20  Nick Clifton  <nickc@redhat.com>
22162         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22163         (msp430_gimplify_va_arg_expr): New function.
22164         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
22166         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
22167         operand 0 in order to prevent confusion about the number of
22168         registers involved.
22170 2014-05-20  Richard Biener  <rguenther@suse.de>
22172         PR tree-optimization/61221
22173         * tree-ssa-pre.c (el_to_update): Remove.
22174         (eliminate_dom_walker::before_dom_children): Handle released
22175         VDEFs by value-numbering them to the associated VUSE.  Update
22176         stmt immediately for substituted call address.
22177         (eliminate): Remove delayed stmt updating code.
22178         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
22179         possibly late re-numbered vuses.
22180         (vn_reference_lookup_2): Adjust.
22181         (vn_reference_lookup_pieces): Likewise.
22182         (vn_reference_lookup): Likewise.
22184 2014-05-20  Richard Biener  <rguenther@suse.de>
22186         * config.gcc: Remove need_64bit_hwint.
22187         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
22188         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
22189         it to be true.
22190         * config.in: Regenerate.
22191         * configure: Likewise.
22193 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
22195         * doc/extend.texi: Create Label Attributes section,
22196         move all label attributes into it and reference it.
22198 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
22200         * arm.c (thumb1_reorg): When scanning backwards skip anything
22201         that's not a proper insn.
22203 2014-05-19  Richard Biener  <rguenther@suse.de>
22205         PR tree-optimization/61221
22206         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22207         Do nothing for unreachable blocks.
22208         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
22209         Improve unreachability detection.
22211 2014-05-19  Richard Biener  <rguenther@suse.de>
22213         PR tree-optimization/61209
22214         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
22216 2014-05-19  Nick Clifton  <nickc@redhat.com>
22218         * except.c (init_eh): Fix computation of builtin setjmp buffer
22219         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
22221 2014-05-19  Richard Biener  <rguenther@suse.de>
22223         PR tree-optimization/61184
22224         * tree-vrp.c (is_negative_overflow_infinity): Use
22225         TREE_OVERFLOW_P and do that check first.
22226         (is_positive_overflow_infinity): Likewise.
22227         (is_overflow_infinity): Likewise.
22228         (vrp_operand_equal_p): Properly treat operands with
22229         differing overflow as not equal.
22231 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
22233         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
22234         shift simplification where it was intended.
22236 2014-05-19  Christian Bruel  <christian.bruel@st.com>
22238         PR target/61195
22239         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
22241 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
22243         PR target/61084
22244         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
22245         than wide_int.
22247 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
22249         * reg-notes.def (CROSSING_JUMP): Likewise.
22250         * rtl.h (rtx_def): Update comment for jump flag.
22251         (CROSSING_JUMP_P): Define.
22252         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
22253         of a REG_CROSSING_JUMP note.
22254         * cfghooks.c (tidy_fallthru_edges): Likewise.
22255         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
22256         * emit-rtl.c (try_split): Likewise.
22257         * haifa-sched.c (sched_create_recovery_edges): Likewise.
22258         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
22259         * jump.c (redirect_jump_2): Likewise.
22260         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
22261         (relax_delay_slots): Likewise.
22262         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
22263         (bbit_di): Likewise.
22264         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
22265         * config/sh/sh.md (jump_compact): Likewise.
22266         * bb-reorder.c (rotate_loop): Likewise.
22267         (pass_duplicate_computed_gotos::execute): Likewise.
22268         (add_reg_crossing_jump_notes): Rename to...
22269         (update_crossing_jump_flags): ...this.
22270         (pass_partition_blocks::execute): Update accordingly.
22272 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
22274         * tree.h: Remove extraneous template <>.
22276 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22278         * ipa.c (symtab_remove_unreachable_nodes): Remove
22279         symbol from comdat group if its body was eliminated.
22280         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
22281         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
22282         (symtab_unregister_node): ... this one.
22283         (verify_symtab_base): More strict checking of comdats.
22284         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
22286 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22288         * tree-pass.h (make_pass_ipa_comdats): New pass.
22289         * timevar.def (TV_IPA_COMDATS): New timevar.
22290         * passes.def (pass_ipa_comdats): Add.
22291         * Makefile.in (OBJS): Add ipa-comdats.o
22292         * ipa-comdats.c: New file.
22294 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22296         * ipa.c (update_visibility_by_resolution_info): New function.
22297         (function_and_variable_visibility): Use it.
22299 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22301         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
22302         New functions.
22303         (FOR_EACH_DEFINED_SYMBOL): New macro.
22304         (varpool_first_static_initializer, varpool_next_static_initializer,
22305         varpool_first_defined_variable, varpool_next_defined_variable):
22306         Fix comments.
22307         (symtab_in_same_comdat_p): Correctly deal with inline functions.
22309 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22311         * ggc-page.c (ggc_handle_finalizers): Add comment.
22313 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22315         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
22316         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
22317         (ggc_internal_cleared_alloc): Likewise.
22318         * ggc-page.c (finalizer): New class.
22319         (vec_finalizer): Likewise.
22320         (globals::finalizers): New member.
22321         (globals::vec_finalizers): Likewise.
22322         (ggc_internal_alloc): Record the finalizer if any for the block being
22323         allocated.
22324         (ggc_handle_finalizers): New function.
22325         (ggc_collect): Call ggc_handle_finalizers.
22326         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
22327         finalizer.
22328         (ggc_internal_cleared_alloc): Likewise.
22329         (finalize): New function.
22330         (need_finalization_p): Likewise.
22331         (ggc_alloc): Install the type's destructor as the finalizer if it
22332         might do something.
22333         (ggc_cleared_alloc): Likewise.
22334         (ggc_vec_alloc): Likewise.
22335         (ggc_cleared_vec_alloc): Likewise.
22337 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22339         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
22341 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22343         * alias.c (record_alias_subset): Adjust.
22344         * bitmap.c (bitmap_element_allocate): Likewise.
22345         (bitmap_gc_alloc_stat): Likewise.
22346         * cfg.c (init_flow): Likewise.
22347         (alloc_block): Likewise.
22348         (unchecked_make_edge): Likewise.
22349         * cfgloop.c (alloc_loop): Likewise.
22350         (flow_loops_find): Likewise.
22351         (rescan_loop_exit): Likewise.
22352         * cfgrtl.c (init_rtl_bb_info): Likewise.
22353         * cgraph.c (insert_new_cgraph_node_version): Likewise.
22354         (cgraph_allocate_node): Likewise.
22355         (cgraph_create_edge_1): Likewise.
22356         (cgraph_allocate_init_indirect_info): Likewise.
22357         * cgraphclones.c (cgraph_clone_edge): Likewise.
22358         * cgraphunit.c (add_asm_node): Likewise.
22359         (init_lowered_empty_function): Likewise.
22360         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
22361         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22362         (alpha_use_linkage): Likewise.
22363         * config/arc/arc.c (arc_init_machine_status): Likewise.
22364         * config/arm/arm.c (arm_init_machine_status): Likewise.
22365         * config/avr/avr.c (avr_init_machine_status): Likewise.
22366         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22367         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
22368         * config/cris/cris.c (cris_init_machine_status): Likewise.
22369         * config/darwin.c (machopic_indirection_name): Likewise.
22370         (darwin_build_constant_cfstring): Likewise.
22371         (darwin_enter_string_into_cfstring_table): Likewise.
22372         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
22373         * config/frv/frv.c (frv_init_machine_status): Likewise.
22374         * config/i386/i386.c (get_dllimport_decl): Likewise.
22375         (ix86_init_machine_status): Likewise.
22376         (assign_386_stack_local): Likewise.
22377         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22378         (i386_pe_maybe_record_exported_symbol): Likewise.
22379         (i386_pe_record_stub): Likewise.
22380         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22381         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22382         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22383         (m32c_note_pragma_address): Likewise.
22384         * config/mep/mep.c (mep_init_machine_status): Likewise.
22385         (mep_note_pragma_flag): Likewise.
22386         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22387         (mips16_local_alias): Likewise.
22388         (mips_init_machine_status): Likewise.
22389         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
22390         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
22391         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
22392         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
22393         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
22394         * config/pa/pa.c (pa_init_machine_status): Likewise.
22395         (pa_get_deferred_plabel): Likewise.
22396         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
22397         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
22398         (rs6000_init_machine_status): Likewise.
22399         (output_toc): Likewise.
22400         * config/s390/s390.c (s390_init_machine_status): Likewise.
22401         * config/score/score.c (score_output_external): Likewise.
22402         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
22403         * config/spu/spu.c (spu_init_machine_status): Likewise.
22404         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
22405         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
22406         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
22407         * coverage.c (coverage_end_function): Likewise.
22408         * dbxout.c (dbxout_init): Likewise.
22409         * doc/gty.texi: Don't mention variable_size attribute.
22410         * dwarf2cfi.c (new_cfi): Adjust.
22411         (new_cfi_row): Likewise.
22412         (copy_cfi_row): Likewise.
22413         (create_cie_data): Likewise.
22414         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
22415         (new_loc_descr): Likewise.
22416         (find_AT_string_in_table): Likewise.
22417         (add_addr_table_entry): Likewise.
22418         (new_die): Likewise.
22419         (add_var_loc_to_decl): Likewise.
22420         (clone_die): Likewise.
22421         (clone_as_declaration): Likewise.
22422         (break_out_comdat_types): Likewise.
22423         (new_loc_list): Likewise.
22424         (add_loc_descr_to_each): Likewise.
22425         (add_location_or_const_value_attribute): Likewise.
22426         (add_linkage_name): Likewise.
22427         (lookup_filename): Likewise.
22428         (dwarf2out_var_location): Likewise.
22429         (new_line_info_table): Likewise.
22430         (dwarf2out_init): Likewise.
22431         (mem_loc_descriptor): Likewise.
22432         (loc_descriptor): Likewise.
22433         (add_const_value_attribute): Likewise.
22434         (tree_add_const_value_attribute): Likewise.
22435         (comp_dir_string): Likewise.
22436         (dwarf2out_vms_debug_main_pointer): Likewise.
22437         (string_cst_pool_decl): Likewise.
22438         * emit-rtl.c (set_mem_attrs): Likewise.
22439         (get_reg_attrs): Likewise.
22440         (start_sequence): Likewise.
22441         (init_emit): Likewise.
22442         (init_emit_regs): Likewise.
22443         * except.c (init_eh_for_function): Likewise.
22444         (gen_eh_region): Likewise.
22445         (gen_eh_region_catch): Likewise.
22446         (gen_eh_landing_pad): Likewise.
22447         (add_call_site): Likewise.
22448         * function.c (add_frame_space): Likewise.
22449         (insert_temp_slot_address): Likewise.
22450         (assign_stack_temp_for_type): Likewise.
22451         (get_hard_reg_initial_val): Likewise.
22452         (allocate_struct_function): Likewise.
22453         (prepare_function_start): Likewise.
22454         (types_used_by_var_decl_insert): Likewise.
22455         * gengtype.c (variable_size_p): Remove function.
22456         (enum alloc_quantity): Remove enum.
22457         (write_typed_alloc_def): Remove function.
22458         (write_typed_struct_alloc_def): Likewise.
22459         (write_typed_typedef_alloc_def): Likewise.
22460         (write_typed_alloc_defns): Likewise.
22461         (main): Adjust.
22462         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
22463         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
22464         * ggc.h (ggc_alloc): new function.
22465         (ggc_cleared_alloc): Likewise.
22466         (ggc_vec_alloc): Template on type of vector element, and remove
22467         element size argument.
22468         (ggc_cleared_vec_alloc): Likewise.
22469         * gimple.c (gimple_build_omp_for): Adjust.
22470         (gimple_copy): Likewise.
22471         * ipa-cp.c (get_replacement_map): Likewise.
22472         (find_aggregate_values_for_callers_subset): Likewise.
22473         (known_aggs_to_agg_replacement_list): Likewise.
22474         * ipa-devirt.c (get_odr_type): Likewise.
22475         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
22476         (read_agg_replacement_chain): Likewise.
22477         * loop-iv.c (get_simple_loop_desc): Likewise.
22478         * lto-cgraph.c (input_node_opt_summary): Likewise.
22479         * lto-section-in.c (lto_new_in_decl_state): Likewise.
22480         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
22481         (input_eh_region): Likewise.
22482         (input_eh_lp): Likewise.
22483         (input_cfg): Likewise.
22484         * optabs.c (set_optab_libfunc): Likewise.
22485         (init_tree_optimization_optabs): Likewise.
22486         (set_conv_libfunc): Likewise.
22487         * passes.c (do_per_function_toporder): Likewise.
22488         * rtl.h: Don't use variable_size gty attribute.
22489         * sese.c (if_region_set_false_region): Adjust.
22490         * stringpool.c (gt_pch_save_stringpool): Likewise.
22491         * target-globals.c (save_target_globals): Likewise.
22492         * toplev.c (general_init): Likewise.
22493         * trans-mem.c (record_tm_replacement): Likewise.
22494         (split_bb_make_tm_edge): Likewise.
22495         * tree-cfg.c (move_sese_region_to_fn): Likewise.
22496         * tree-data-ref.h (lambda_vector_new): Likewise.
22497         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22498         * tree-iterator.c (tsi_link_before): Likewise.
22499         (tsi_link_after): Likewise.
22500         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22501         * tree-ssa-loop-niter.c (record_estimate): Likewise.
22502         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22503         * tree-ssa-operands.h: Don't use variable_size gty attribute.
22504         * tree-ssa.c (init_tree_ssa): Adjust.
22505         * tree-ssanames.c (set_range_info): Likewise.
22506         (get_ptr_info): Likewise.
22507         (duplicate_ssa_name_ptr_info): Likewise.
22508         (duplicate_ssa_name_range_info): Likewise.
22509         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
22510         (unpack_ts_fixed_cst_value_fields): Likewise.
22511         * tree.c (build_fixed): Likewise.
22512         (build_real): Likewise.
22513         (build_string): Likewise.
22514         (decl_priority_info): Likewise.
22515         (decl_debug_expr_insert): Likewise.
22516         (decl_value_expr_insert): Likewise.
22517         (decl_debug_args_insert): Likewise.
22518         (type_hash_add): Likewise.
22519         (build_omp_clause): Likewise.
22520         * ubsan.c (decl_for_type_insert): Likewise.
22521         * varasm.c (get_unnamed_section): Likewise.
22522         (get_noswitch_section): Likewise.
22523         (get_section): Likewise.
22524         (get_block_for_section): Likewise.
22525         (create_block_symbol): Likewise.
22526         (build_constant_desc): Likewise.
22527         (create_constant_pool): Likewise.
22528         (force_const_mem): Likewise.
22529         (record_tm_clone_pair): Likewise.
22530         * varpool.c (varpool_create_empty_node): Likewise.
22532 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22534         * dwarf2out.c (tree_add_const_value_attribute): Call
22535         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
22536         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
22537         instead of ggc_internal_<x>alloc_stat.
22538         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
22539         (ggc_realloc): Likewise.
22540         * ggc-none.c (ggc_internal_alloc): Likewise.
22541         (ggc_internal_cleared_alloc): Likewise.
22542         * ggc-page.c: Likewise.
22543         * ggc.h (ggc_internal_alloc_stat): Likewise.
22544         (ggc_internal_alloc): Remove macro.
22545         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
22546         (ggc_internal_cleared_alloc): Remove macro.
22547         (GGC_RESIZEVEC): Adjust.
22548         (ggc_resizevar): Remove macro.
22549         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
22550         (ggc_internal_cleared_vec_alloc_stat): Likewise.
22551         (ggc_internal_vec_cleared_alloc): Remove macro.
22552         (ggc_alloc_atomic_stat): Drop _stat suffix.
22553         (ggc_alloc_atomic): Remove macro.
22554         (ggc_alloc_cleared_atomic): Remove macro.
22555         (ggc_alloc_string_stat): Drop _stat suffix.
22556         (ggc_alloc_string): Remove macro.
22557         (ggc_alloc_rtx_def_stat): Adjust.
22558         (ggc_alloc_tree_node_stat): Likewise.
22559         (ggc_alloc_cleared_tree_node_stat): Likewise.
22560         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
22561         (ggc_alloc_cleared_simd_clone_stat): Likewise.
22562         * gimple.c (gimple_build_omp_for): Likewise.
22563         (gimple_copy): Likewise.
22564         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
22565         * toplev.c (realloc_for_line_map): Adjust.
22566         * tree-data-ref.h (lambda_vector_new): Likewise.
22567         * tree-phinodes.c (allocate_phi_node): Likewise.
22568         * tree.c (grow_tree_vec_stat): Likewise.
22569         * vec.h (va_gc::reserve): Adjust.
22571 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
22573         * config/microblaze/microblaze.c (break_handler): New Declaration.
22574         (microblaze_break_function_p,microblaze_is_break_handler): New.
22575         (compute_frame_size): Use microblaze_break_function_p.
22576         Add the test of break_handler.
22577         (microblaze_function_prologue) : Add the test of variable
22578         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
22579         (microblaze_function_epilogue) : Add the test of break_handler.
22580         (microblaze_globalize_label) : Add the test of break_handler.
22581         Check the name by BREAK_HANDLER_NAME.
22583         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
22585         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
22586         microblaze_is_break_handler test.
22587         (call_internal1,call_value_intern): Use microblaze_break_function_p.
22588         Use SYMBOL_REF_DECL.
22590         * config/microblaze/microblaze-protos.h
22591         (microblaze_break_function_p,microblaze_is_break_handler):
22592         New Declaration.
22594         * doc/extend.texi (MicroBlaze break_handler Functions): Document
22595         new MicroBlaze break_handler functions.
22597 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
22599         * doc/extend.texi (Size of an asm): Move node text according
22600         to its @menu entry position.
22602 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
22604         PR tree-optimization/61140
22605         PR tree-optimization/61150
22606         PR tree-optimization/61197
22607         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
22609 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
22611         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
22613 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
22615         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
22616         __SIZEOF_INT128__ is defined.
22618 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22620         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
22621         (rs6000_delegitimize_address): Use it.
22623 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22625         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
22626         inplace argument.  Store the new address in the original MEM when true.
22627         * emit-rtl.c (change_address_1): Likewise.
22628         (adjust_address_1, adjust_automodify_address_1, offset_address):
22629         Update accordingly.
22630         * rtl.h (plus_constant): Add an inplace argument.
22631         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
22632         when true.  Avoid generating (plus X (const_int 0)).
22633         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
22634         in-place.  Pass true to plus_constant.
22635         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
22637 2014-05-16  Dehao Chen  <dehao@google.com>
22639         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
22641 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22643         PR target/54089
22644         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
22645         patterns.
22646         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
22648 2014-05-16  Dehao Chen  <dehao@google.com>
22650         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
22651         optimize_function_for_size_p.
22652         * regs.h (REG_FREQ_FROM_BB): Likewise.
22654 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22656         PR target/51244
22657         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
22658         negt_reg_operand cases.
22659         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
22660         predicate.
22661         * config/sh/predicates.md (cbranch_treg_value): Simplify.
22663 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22665         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
22666         target variants.
22668 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
22670         Revert:
22671         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22673         * tree-cfg.c (dump_function_to_file): Dump the return type of
22674         functions, in a line to itself before the function body, mimicking
22675         the layout of a C function.
22677 2014-05-16  Dehao Chen  <dehao@google.com>
22679         * cfghooks.c (make_forwarder_block): Use direct computation to
22680         get fall-through edge's count and frequency.
22682 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
22684         * config/arc/arc.c (arc_init): Fix typo in error message.
22685         * config/i386/i386.c (ix86_expand_builtin): Likewise.
22686         (split_stack_prologue_scratch_regno): Likewise.
22687         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
22688         word from error message.
22690 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22692         * ira-costs.c: Fix typo in comment.
22694 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
22696         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
22698 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
22700         * varpool.c (dump_varpool_node): Dump write-only flag.
22701         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
22702         write-only flag.
22703         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
22704         write-only variables.
22705         * ipa.c (process_references): New function.
22706         (set_readonly_bit): New function.
22707         (set_writeonly_bit): New function.
22708         (clear_addressable_bit): New function.
22709         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
22710         fix handling of aliases.
22711         * cgraph.h (struct varpool_node): Add writeonly flag.
22713 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
22715         PR rtl-optimization/60969
22716         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
22717         Calculate costs for this case.
22719 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
22721         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
22722         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
22724 2014-05-16  Richard Biener  <rguenther@suse.de>
22726         PR tree-optimization/61194
22727         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
22728         bool patterns ending in a COND_EXPR.
22730 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22732         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
22734 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22736         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
22737         where we were unable to cost an RTX.
22739 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22741         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
22742         HIGH, LO_SUM.
22744 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22745             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22747         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
22749 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22750             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22752         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
22753         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
22755 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22756             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22758         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
22759         operators.
22761 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22762             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22764         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22765         DIV/MOD.
22767 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22768             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22770         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
22771         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
22773 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22774             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22776         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22777         rotates and shifts.
22779 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22780             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22782         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
22783         ZERO_EXTEND and SIGN_EXTEND better.
22785 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22786             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22788         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
22789         logical operations.
22791 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22792             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22794         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
22795         costs when costing loads and stores to memory.
22797 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22798             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
22800         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
22801         for SET RTX.
22803 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22805         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
22807 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22808             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22810         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
22811         to...
22812         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
22813         well formed.
22814         (aarch64_rtx_mult_cost): New.
22815         (aarch64_rtx_costs): Use it, refactor as appropriate.
22817 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22818             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22820         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
22821         emit instructions, return number of instructions which would
22822         be emitted.
22823         (aarch64_add_constant): Update call to aarch64_build_constant.
22824         (aarch64_output_mi_thunk): Likewise.
22825         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
22826         a CONST_DOUBLE.
22828 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22830         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
22831         (TARGET_RTX_COSTS): Call it.
22833 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22835         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
22836         (cortexa57_vector_cost): Likewise.
22837         (cortexa57_tunings): Use them.
22839 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22841         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
22842         (cpu_addrcost_table): Use it.
22843         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
22844         (aarch64_address_cost): Rewrite using aarch64_classify_address,
22845         move it.
22847 2014-05-16  Richard Biener  <rguenther@suse.de>
22849         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
22850         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
22851         (visit_phi): Ignore edges marked as not executable.
22852         (class cond_dom_walker): New.
22853         (cond_dom_walker::before_dom_children): Value-number
22854         control statements and mark successor edges as not
22855         executable if possible.
22856         (run_scc_vn): First walk all control statements in
22857         dominator order, marking edges as not executable.
22858         * tree-inline.c (copy_edges_for_bb): Be not confused
22859         about random edge flags.
22861 2014-05-16  Richard Biener  <rguenther@suse.de>
22863         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
22865 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
22867         PR target/61193
22868         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
22869         (__TM_simple_begin): Use it.
22870         (__TM_begin): Likewise.
22872 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22874         PR ipa/61085
22875         * ipa-prop.c (update_indirect_edges_after_inlining): Check
22876         type_preserved flag when the indirect edge is polymorphic.
22878 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22880         PR tree-optimization/61090
22881         * tree-sra.c (sra_modify_expr): Pass the current gsi to
22882         build_ref_for_model.
22884 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22886         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
22887         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
22889 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
22891         PR tree-optimization/61158
22892         * fold-const.c (fold_binary_loc): If X is zero-extended and
22893         shiftc >= prec, make sure zerobits is all ones instead of
22894         invoking undefined behavior.
22896 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22898         * regcprop.h: New file.
22899         * regcprop.c (skip_debug_insn_p): New decl.
22900         (replace_oldest_value_reg): Check skip_debug_insn_p.
22901         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
22902         * shrink-wrap.c: Include regcprop.h.
22903         (prepare_shrink_wrap): Call
22904         copyprop_hardreg_forward_bb_without_debug_insn.
22906 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22908         * shrink-wrap.h: Update comment.
22909         * shrink-wrap.c: Update comment.
22910         (next_block_for_reg): Rename to live_edge_for_reg.
22911         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
22912         (move_insn_for_shrink_wrap): Split live_edge.
22913         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
22915 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22917         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
22918         Delete.
22919         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
22920         * config/sparc/sparc.md (fptype_ut699): New attribute.
22921         (in_branch_delay): Return false if -mfix-ut699 is specified and
22922         fptype_ut699 is set to single.
22923         (truncdfsf2): Add fptype_ut699 attribute.
22924         (fix_truncdfsi2): Likewise.
22925         (floatsisf2): Change fptype attribute.
22926         (fix_truncsfsi2): Likewise.
22927         (negtf2_notv9): Delete.
22928         (negtf2_v9): Likewise.
22929         (negtf2_hq): New instruction.
22930         (negtf2): New instruction and splitter.
22931         (negdf2_notv9): Rewrite.
22932         (abstf2_notv9): Delete.
22933         (abstf2_hq_v9): Likewise.
22934         (abstf2_v9): Likewise.
22935         (abstf2_hq): New instruction.
22936         (abstf2): New instruction and splitter.
22937         (absdf2_notv9): Rewrite.
22939 2014-05-14  Cary Coutant  <ccoutant@google.com>
22941         PR debug/61013
22942         * opts.c (common_handle_option): Don't special-case "-g".
22943         (set_debug_level): Default to at least level 2 with "-g".
22945 2014-05-14  DJ Delorie  <dj@redhat.com>
22947         * config/msp430/msp430.c (msp430_builtin): Add
22948         MSP430_BUILTIN_DELAY_CYCLES.
22949         (msp430_init_builtins): Register void __delay_cycles(long long).
22950         (msp430_builtin_decl): Add it.
22951         (cg_magic_constant): New.
22952         (msp430_expand_delay_cycles): New.
22953         (msp430_expand_builtin): Call it.
22954         (msp430_print_operand_raw): Change integer printing from "int" to
22955         HOST_WIDE_INT.
22956         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22957         (delay_cycles_start): New.
22958         (delay_cycles_end): New.
22959         (delay_cycles_32): New.
22960         (delay_cycles_32x): New.
22961         (delay_cycles_16): New.
22962         (delay_cycles_16x): New.
22963         (delay_cycles_2): New.
22964         (delay_cycles_1): New.
22965         * doc/extend.texi: Document __delay_cycles().
22967 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
22969         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22970         length attribute computation.
22972 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
22974         PR debug/61188
22975         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22977 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
22979         PR target/61084
22980         * config/sparc/sparc.md: Fix types of low and high in DI constant
22981         splitter.  Use gen_int_mode in some other splitters.
22983 2014-05-14  Martin Jambor  <mjambor@suse.cz>
22985         PR ipa/60897
22986         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22988 2014-05-14  James Norris  <jnorris@codesourcery.com>
22990         * omp-low.c (expand_parallel_call): Remove shadow variable.
22991         (expand_omp_taskreg): Likewise.
22993 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
22995         * common/config/i386/i386-common.c
22996         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22997         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22998         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22999         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
23000         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
23001         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
23002         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
23003         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
23004         xsavecintrin.h, xsavesintrin.h.
23005         (x86_64-*-*): Ditto.
23006         * config/i386/clflushoptintrin.h: New.
23007         * config/i386/xsavecintrin.h: Ditto.
23008         * config/i386/xsavesintrin.h: Ditto.
23009         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
23010         (bit_XSAVES): Ditto.
23011         (bit_XSAVES): Ditto.
23012         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
23013         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
23014         -mno-clflushopt.
23015         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23016         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
23017         OPTION_MASK_ISA_XSAVES.
23018         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
23019         -mxsavec, -mxsaves.
23020         (PTA_CLFLUSHOPT) Define.
23021         (PTA_XSAVEC): Ditto.
23022         (PTA_XSAVES): Ditto.
23023         (ix86_option_override_internal): Handle new options.
23024         (ix86_valid_target_attribute_inner_p): Ditto.
23025         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
23026         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
23027         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
23028         (bdesc_special_args): Add __builtin_ia32_xsaves,
23029         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
23030         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
23031         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
23032         (ix86_expand_builtin): Handle new builtins.
23033         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
23034         (TARGET_CLFLUSHOPT_P): Ditto.
23035         (TARGET_XSAVEC): Ditto.
23036         (TARGET_XSAVEC_P): Ditto.
23037         (TARGET_XSAVES): Ditto.
23038         (TARGET_XSAVES_P): Ditto.
23039         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
23040         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
23041         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
23042         (ANY_XRSTOR): New.
23043         (ANY_XRSTOR64): Ditto.
23044         (xrstor): Ditto.
23045         (xrstor): Change into <xrstor>.
23046         (xrstor_rex64): Change into <xrstor>_rex64.
23047         (xrstor64): Change into <xrstor>64
23048         (clflushopt): New.
23049         * config/i386/i386.opt (mclflushopt): New.
23050         (mxsavec): Ditto.
23051         (mxsaves): Ditto.
23052         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
23053         xsavecintrin.h.
23054         * doc/invoke.texi: Document new options.
23056 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
23058         PR rtl-optimization/60866
23059         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
23060         Default it to -1.  Pass it down to init_simplejump_data.
23061         (init_simplejump_data): New parameter old_seqno.  Pass it down
23062         to get_seqno_for_a_jump.
23063         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
23064         initializing new jump seqno as a last resort.  Add comment.
23065         (sel_redirect_edge_and_branch): Save old seqno of the conditional
23066         jump and pass it down to sel_init_new_insn.
23067         (sel_redirect_edge_and_branch_force): Likewise.
23069 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
23071         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
23072         shifted values to avoid build warning.
23074 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
23076         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
23077         * cfgrtl.c (rtl_merge_blocks): Fix comment.
23078         (cfg_layout_merge_blocks): Likewise.
23079         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
23081 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
23083         PR rtl-optimization/60901
23084         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
23085         bb predecessor belongs to the same scheduling region.  Adjust comment.
23087 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
23089         * doc/sourcebuild.texi: (dfp_hw): Document.
23090         (p8vector_hw): Likewise.
23091         (powerpc_eabi_ok): Likewise.
23092         (powerpc_elfv2): Likewise.
23093         (powerpc_htm_ok): Likewise.
23094         (ppc_recip_hw): Likewise.
23095         (vsx_hw): Likewise.
23097 2014-05-13  Cary Coutant  <ccoutant@google.com>
23099         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
23101 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
23103         * gengtype-parse.c (require3): Eliminate in favor of...
23104         (require4): New.
23105         (require_template_declaration): Update to support optional single *
23106         on a type.
23108         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
23109         (create_user_defined_type): Handle a single level of explicit
23110         pointerness within template arguments.
23111         (struct write_types_data): Add field "kind".
23112         (filter_type_name): Handle "*" character.
23113         (write_user_func_for_structure_ptr): Require a write_types_data
23114         rather than just a prefix string, so that we can look up the kind
23115         of the wtd and use it as an index into wrote_user_func_for_ptr,
23116         ensuring that such functions are written at most once.  Support
23117         subclasses by invoking the marking function of the ultimate base class.
23118         (write_user_func_for_structure_body): Require a write_types_data
23119         rather than just a prefix string, so that we can pass this to
23120         write_user_func_for_structure_ptr.
23121         (write_func_for_structure): Likewise.
23122         (ggc_wtd): Add initializer of new "kind" field.
23123         (pch_wtd): Likewise.
23125         * gengtype.h (enum write_types_kinds): New.
23126         (struct type): Add field wrote_user_func_for_ptr to the "s"
23127         union member.
23129 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
23131         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
23132         instead of const_binop.
23133         (fold_binary_loc): Likewise.
23135 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
23137         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
23138         calculation to match get_ref_base_and_extent.
23140 2014-05-13  Catherine Moore  <clm@codesourcery.com>
23141             Sandra Loosemore  <sandra@codesourcery.com>
23143         * configure.ac: Fix assembly for explicit JALR relocation check.
23144         * configure: Regenerate.
23146 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23148         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
23149         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
23150         Remove associated type declarations and initialisations.
23151         (arm_expand_neon_builtin): Likewise.
23152         (neon_emit_pair_result_insn): Delete.
23153         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
23154         * config/arm/neon.md (neon_vtrn<mode>): Delete.
23155         (neon_vzip<mode>): Likewise.
23156         (neon_vuzp<mode>): Likewise.
23158 2014-05-13  Richard Biener  <rguenther@suse.de>
23160         PR ipa/60973
23161         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
23162         it needs revisiting whether the call still may be tail-called.
23164 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23166         * rtl.def (SYMBOL_REF): Remove middle "0" field.
23167         * rtl.h (block_symbol): Reduce number of fields to 2.
23168         (rtx_def): Add u2.symbol_ref_flags.
23169         (SYMBOL_REF_FLAGS): Use it.
23170         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
23171         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
23172         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
23173         Lower index of SYMBOL_REF_DATA.
23174         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
23175         Print SYMBOL_REF_FLAGS at the same time.
23176         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
23178 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23180         * rtl.def (VAR_LOCATION): Remove "i" field.
23181         * rtl.h (rtx_def): Add u2.var_location_status.
23182         (PAT_VAR_LOCATION_STATUS): Use it.
23183         (gen_rtx_VAR_LOCATION): Declare.
23184         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
23185         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
23186         * var-tracking.c (emit_note_insn_var_location): Remove casts.
23188 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23190         * rtl.def (scratch): Fix outdated comment and remove "0" field.
23191         * gengtype.c (adjust_field_rtx_def): Update accordingly.
23193 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23195         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
23196         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
23197         * rtl.h (rtx_def): Add insn_uid to u2 field.
23198         (RTX_FLAG_CHECK8): Delete in favor of...
23199         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
23200         (INSN_DELETED_P): Update accordingly.
23201         (INSN_UID): Use u2.insn_uid.
23202         (INSN_CHAIN_CODE_P): Define.
23203         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
23204         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
23205         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
23206         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
23207         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
23208         indices accordingly.
23209         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
23210         Update indices for insn-chain rtxes.
23211         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
23212         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
23213         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
23214         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
23215         * combine.c (try_combine): Likewise.
23216         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23218 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23220         * rtl.def (REG): Remove middle field.
23221         * rtl.h (rtx_def): Add orignal_regno to u2.
23222         (ORIGINAL_REGNO): Use it instead of field 1.
23223         (REG_ATTRS): Lower field index accordingly.
23224         * gengtype.c (adjust_field_rtx_def): Remove handling of
23225         ORIGINAL_REGNO.  Move REG_ATTRS index down.
23226         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
23227         code that prints the REGNO.
23229 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23231         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
23232         GENERATOR_FILE.
23234 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23236         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
23238 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
23240         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
23241         (alloc_iv): Lower base expressions containing ADDR_EXPR.
23243 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
23245         * config/aarch64/aarch64-protos.h
23246         (aarch64_hard_regno_caller_save_mode): New prototype.
23247         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
23248         New function.
23249         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
23251 2014-05-13  Christian Bruel  <christian.bruel@st.com>
23253         * target.def (mode_switching): New hook vector.
23254         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
23255         (mode_exit, modepriority_to_mode): Likewise.
23256         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
23257         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23258         * target.h: Include tm.h and hard-reg-set.h.
23259         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
23260         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
23261         * doc/tm.texi Regenerate.
23262         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
23263         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23264         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
23265         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
23266         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
23267         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23268         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
23269         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
23270         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
23271         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
23272         (ix86_emit_mode_set): Hookify.
23273         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
23274         Delete.
23275         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23276         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
23277         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
23278         (epiphany_mode_priority_to_mode): Remove declaration.
23279         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
23280         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
23281         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
23282         Likewise.
23283         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
23284         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
23285         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
23287 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
23289         PR target/61060
23290         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
23291         is const0_rtx, return immediately.  Don't test count == 0 when
23292         it is always true.
23294 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23296         * Makefile.in: add shrink-wrap.o.
23297         * config/i386/i386.c: include "shrink-wrap.h"
23298         * function.c: Likewise.
23299         (requires_stack_frame_p, next_block_for_reg,
23300         move_insn_for_shrink_wrap, prepare_shrink_wrap,
23301         dup_block_and_redirect): Move to shrink-wrap.c
23302         (thread_prologue_and_epilogue_insns): Extract three code segments
23303         as functions in shrink-wrap.c
23304         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
23305         shrink-wrap.h
23306         * shrink-wrap.c: New file.
23307         * shrink-wrap.h: New file.
23309 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
23311         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
23312         reference to Solaris.
23314 2014-05-12  Mike Stump  <mikestump@comcast.net>
23316         PR other/31778
23317         * genattrtab.c (filename): Add.
23318         (convert_set_attr_alternative): Improve error message.
23319         (check_defs): Restore read_md_filename for error messages.
23320         (gen_insn): Save filename.
23322 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
23324         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
23325         -fno-local-ivars and -fivar-visibility.
23326         * c-family/c.opt: Make -Wshadow also implicitly enable
23327         -Wshadow-ivar.
23329 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
23331         * doc/tm.texi: Remove reference to deleted macro.
23332         * doc/tm.texi.in: Likewise.
23334 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23336         PR target/60991
23337         * config/avr/avr.c (avr_out_store_psi): Use correct constant
23338         to restore Y.
23340 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
23342         PR libgcc/61152
23343         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
23344         * config/arm/aout.h (License): Same.
23345         * config/arm/bpabi.h (License): Same.
23346         * config/arm/elf.h (License): Same.
23347         * config/arm/linux-elf.h (License): Same.
23348         * config/arm/linux-gas.h (License): Same.
23349         * config/arm/netbsd-elf.h (License): Same.
23350         * config/arm/uclinux-eabi.h (License): Same.
23351         * config/arm/uclinux-elf.h (License): Same.
23352         * config/arm/vxworks.h (License): Same.
23354 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
23356         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
23357         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
23358         number of operands to 3.
23359         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
23360         * tree-nested.c (convert_nonlocal_omp_clauses,
23361         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
23362         * gimplify.c (gimplify_scan_omp_clauses): Handle
23363         OMP_CLAUSE_LINEAR_STMT.
23364         * omp-low.c (lower_rec_input_clauses): Fix typo.
23365         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
23366         cast between Fortran boolean_type_node and C _Bool if
23367         needed.
23369 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
23371         PR tree-optimization/61136
23372         * wide-int.h (multiple_of_p): Define a version that doesn't return
23373         the quotient.
23374         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
23375         integer_zerop/const_binop pair.
23376         (multiple_of_p): Likewise, converting both operands to widest_int
23377         precision.
23379 2014-05-09  Teresa Johnson  <tejohnson@google.com>
23381         * cgraphunit.c (analyze_functions): Use correct dump file.
23383 2014-05-09  Florian Weimer  <fweimer@redhat.com>
23385         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
23386         expand_used_vars.
23387         (stack_protect_return_slot_p): New function.
23388         (expand_used_vars): Call stack_protect_decl_p and
23389         stack_protect_return_slot_p for -fstack-protector-strong.
23391 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
23392         Andrew Haley <aph@redhat.com>
23393         Richard Sandiford <rdsandiford@googlemail.com>
23395         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
23396         pages.
23398 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
23400         PR middle-end/61111
23401         * fold-const.c (fold_binary_loc): Changed width of mask.
23403 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
23405         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
23406         unsigned int initializers for regno_in, regno_out.
23408 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
23410         PR target/61055
23411         * config/avr/avr.md (cc): Add new attribute set_vzn.
23412         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
23413         Set cc insn attribute to set_vzn instead of set_zn for alternatives
23414         with INC, DEC or NEG.
23415         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
23416         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
23417         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
23419 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23421         Revert:
23422         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23424         * wide-int.cc (UTItype): Define.
23425         (UDWtype): Define for appropriate W_TYPE_SIZE.
23427 2014-05-09  Richard Biener  <rguenther@suse.de>
23429         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
23430         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
23431         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
23432         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
23433         ssa_propagate): Adjust.
23435 2014-05-08  Jeff Law  <law@redhat.com>
23437         PR tree-optimization/61009
23438         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
23439         tri-state rather than a boolean.  When a block is too big to
23440         thread through, inform caller via negative return value.
23441         (thread_across_edge): If a block was too big for normal threading,
23442         then it's too big for a joiner too, so remove temporary equivalences
23443         and return immediately.
23445 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23446             Matthias Klose  <doko@ubuntu.com>
23448         PR driver/61106
23449         * optc-gen.awk: Fix option handling for -Wunused-parameter.
23451 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
23453         PR target/59952
23454         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
23456 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
23458         PR target/61092
23459         * config/alpha/alpha.c: Include gimple-iterator.h.
23460         (alpha_gimple_fold_builtin): New function.  Move
23461         ALPHA_BUILTIN_UMULH folding from ...
23462         (alpha_fold_builtin): ... here.
23463         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
23465 2014-05-08  Wei Mi  <wmi@google.com>
23467         PR target/58066
23468         * config/i386/i386.c (ix86_compute_frame_layout): Update
23469         preferred_stack_boundary for call, expanded from tls descriptor.
23470         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
23471         to depend on SP register.
23472         (*tls_local_dynamic_base_32_gnu): Ditto.
23473         (*tls_local_dynamic_32_once): Ditto.
23474         (tls_global_dynamic_64_<mode>): Set
23475         ix86_tls_descriptor_calls_expanded_in_cfun.
23476         (tls_local_dynamic_base_64_<mode>): Ditto.
23477         (tls_global_dynamic_32): Set
23478         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
23479         to depend on SP register.
23480         (tls_local_dynamic_base_32): Ditto.
23482 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23484         * config/arm/arm_neon.h: Update comment.
23485         * config/arm/neon-docgen.ml: Delete.
23486         * config/arm/neon-gen.ml: Delete.
23487         * doc/arm-neon-intrinsics.texi: Update comment.
23489 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23491         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
23492         and v4sf versions.
23493         (vand, vorr, veor, vorn, vbic): Remove.
23494         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
23495         iterator.
23496         (neon_vsub_unspec): Likewise.
23497         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
23499 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23501         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
23502         (vadd_s16): Likewise.
23503         (vadd_s32): Likewise.
23504         (vadd_f32): Likewise.
23505         (vadd_u8): Likewise.
23506         (vadd_u16): Likewise.
23507         (vadd_u32): Likewise.
23508         (vadd_s64): Likewise.
23509         (vadd_u64): Likewise.
23510         (vaddq_s8): Likewise.
23511         (vaddq_s16): Likewise.
23512         (vaddq_s32): Likewise.
23513         (vaddq_s64): Likewise.
23514         (vaddq_f32): Likewise.
23515         (vaddq_u8): Likewise.
23516         (vaddq_u16): Likewise.
23517         (vaddq_u32): Likewise.
23518         (vaddq_u64): Likewise.
23519         (vmul_s8): Likewise.
23520         (vmul_s16): Likewise.
23521         (vmul_s32): Likewise.
23522         (vmul_f32): Likewise.
23523         (vmul_u8): Likewise.
23524         (vmul_u16): Likewise.
23525         (vmul_u32): Likewise.
23526         (vmul_p8): Likewise.
23527         (vmulq_s8): Likewise.
23528         (vmulq_s16): Likewise.
23529         (vmulq_s32): Likewise.
23530         (vmulq_f32): Likewise.
23531         (vmulq_u8): Likewise.
23532         (vmulq_u16): Likewise.
23533         (vmulq_u32): Likewise.
23534         (vsub_s8): Likewise.
23535         (vsub_s16): Likewise.
23536         (vsub_s32): Likewise.
23537         (vsub_f32): Likewise.
23538         (vsub_u8): Likewise.
23539         (vsub_u16): Likewise.
23540         (vsub_u32): Likewise.
23541         (vsub_s64): Likewise.
23542         (vsub_u64): Likewise.
23543         (vsubq_s8): Likewise.
23544         (vsubq_s16): Likewise.
23545         (vsubq_s32): Likewise.
23546         (vsubq_s64): Likewise.
23547         (vsubq_f32): Likewise.
23548         (vsubq_u8): Likewise.
23549         (vsubq_u16): Likewise.
23550         (vsubq_u32): Likewise.
23551         (vsubq_u64): Likewise.
23552         (vand_s8): Likewise.
23553         (vand_s16): Likewise.
23554         (vand_s32): Likewise.
23555         (vand_u8): Likewise.
23556         (vand_u16): Likewise.
23557         (vand_u32): Likewise.
23558         (vand_s64): Likewise.
23559         (vand_u64): Likewise.
23560         (vandq_s8): Likewise.
23561         (vandq_s16): Likewise.
23562         (vandq_s32): Likewise.
23563         (vandq_s64): Likewise.
23564         (vandq_u8): Likewise.
23565         (vandq_u16): Likewise.
23566         (vandq_u32): Likewise.
23567         (vandq_u64): Likewise.
23568         (vorr_s8): Likewise.
23569         (vorr_s16): Likewise.
23570         (vorr_s32): Likewise.
23571         (vorr_u8): Likewise.
23572         (vorr_u16): Likewise.
23573         (vorr_u32): Likewise.
23574         (vorr_s64): Likewise.
23575         (vorr_u64): Likewise.
23576         (vorrq_s8): Likewise.
23577         (vorrq_s16): Likewise.
23578         (vorrq_s32): Likewise.
23579         (vorrq_s64): Likewise.
23580         (vorrq_u8): Likewise.
23581         (vorrq_u16): Likewise.
23582         (vorrq_u32): Likewise.
23583         (vorrq_u64): Likewise.
23584         (veor_s8): Likewise.
23585         (veor_s16): Likewise.
23586         (veor_s32): Likewise.
23587         (veor_u8): Likewise.
23588         (veor_u16): Likewise.
23589         (veor_u32): Likewise.
23590         (veor_s64): Likewise.
23591         (veor_u64): Likewise.
23592         (veorq_s8): Likewise.
23593         (veorq_s16): Likewise.
23594         (veorq_s32): Likewise.
23595         (veorq_s64): Likewise.
23596         (veorq_u8): Likewise.
23597         (veorq_u16): Likewise.
23598         (veorq_u32): Likewise.
23599         (veorq_u64): Likewise.
23600         (vbic_s8): Likewise.
23601         (vbic_s16): Likewise.
23602         (vbic_s32): Likewise.
23603         (vbic_u8): Likewise.
23604         (vbic_u16): Likewise.
23605         (vbic_u32): Likewise.
23606         (vbic_s64): Likewise.
23607         (vbic_u64): Likewise.
23608         (vbicq_s8): Likewise.
23609         (vbicq_s16): Likewise.
23610         (vbicq_s32): Likewise.
23611         (vbicq_s64): Likewise.
23612         (vbicq_u8): Likewise.
23613         (vbicq_u16): Likewise.
23614         (vbicq_u32): Likewise.
23615         (vbicq_u64): Likewise.
23616         (vorn_s8): Likewise.
23617         (vorn_s16): Likewise.
23618         (vorn_s32): Likewise.
23619         (vorn_u8): Likewise.
23620         (vorn_u16): Likewise.
23621         (vorn_u32): Likewise.
23622         (vorn_s64): Likewise.
23623         (vorn_u64): Likewise.
23624         (vornq_s8): Likewise.
23625         (vornq_s16): Likewise.
23626         (vornq_s32): Likewise.
23627         (vornq_s64): Likewise.
23628         (vornq_u8): Likewise.
23629         (vornq_u16): Likewise.
23630         (vornq_u32): Likewise.
23631         (vornq_u64): Likewise.
23633 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23635         * wide-int.cc (UTItype): Define.
23636         (UDWtype): Define for appropriate W_TYPE_SIZE.
23638 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
23640         PR tree-optimization/59100
23641         * tree-ssa-phiopt.c: Include tree-inline.h.
23642         (neutral_element_p, absorbing_element_p): New functions.
23643         (value_replacement): Handle conditional binary operations with a
23644         neutral or absorbing element.
23646 2014-05-08  Richard Biener  <rguenther@suse.de>
23648         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
23649         folding the expression.
23650         (valueize_expr): Remove.
23651         (visit_reference_op_load): Do not valueize the result of
23652         vn_get_expr_for.
23653         (simplify_binary_expression): Likewise.
23654         (simplify_unary_expression): Likewise.
23656 2014-05-08  Richard Biener  <rguenther@suse.de>
23658         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
23659         looking at TYPE_ARG_TYPES.
23661 2014-05-08  Richard Biener  <rguenther@suse.de>
23663         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
23664         pointer propagation special-case.
23666 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
23668         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
23669         core part of address expressions.
23671 2014-05-08  Alan Modra  <amodra@gmail.com>
23673         PR target/60737
23674         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
23675         loads and stores when -mno-strict-align at any alignment.
23676         (expand_block_clear): Similarly.  Also correct calculation of
23677         instruction count.
23679 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23681         PR middle-end/39246
23682         * tree-complex.c (expand_complex_move): Keep line info when expanding
23683         complex move.
23684         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
23685         of complex expression. Use new argument to display correct location
23686         for values coming from phi statement.
23687         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
23688         (warn_uninitialized_phi): Pass location of phi argument to
23689         warn_uninit.
23690         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
23691         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
23693 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
23695         * config/rs6000/predicates.md (indexed_address_mem): New.
23696         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
23697         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
23698         fpstore_ux, fpstore_u.
23699         (sign_extend, indexed, update): New.
23700         (cell_micro): Adjust.
23701         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
23702         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
23703         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
23704         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
23705         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
23706         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
23707         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
23708         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
23709         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
23710         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
23711         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
23712         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
23713         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
23714         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
23715         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
23717         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
23718         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
23719         *vsx_extract_<mode>_store): Adjust.
23720         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
23721         is_cracked_insn, insn_must_be_first_in_group,
23722         insn_must_be_last_in_group): Adjust.
23724         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
23725         Adjust.
23726         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
23727         ppc440-fpstore): Adjust.
23728         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
23729         ppc476-fpstore): Adjust.
23730         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
23731         ppc601-fpstore): Adjust.
23732         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
23733         Adjust.
23734         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
23735         Adjust.
23736         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
23737         ppc7450-fpstore): Adjust.
23738         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
23739         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
23740         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
23741         Adjust.
23742         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
23743         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
23744         cell-fpstore, cell-fpstore-update): Adjust.
23745         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
23746         ppce300c3_store, ppce300c3_fpstore): Adjust.
23747         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
23748         e500mc_fpstore): Adjust.
23749         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
23750         e500mc64_store, e500mc64_fpstore): Adjust.
23751         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
23752         e5500_fpstore): Adjust.
23753         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
23754         e6500_fpstore): Adjust.
23755         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
23756         Adjust.
23757         * config/rs6000/power4.md (power4-load, power4-load-ext,
23758         power4-load-ext-update, power4-load-ext-update-indexed,
23759         power4-load-update-indexed, power4-load-update, power4-fpload,
23760         power4-fpload-update, power4-store, power4-store-update,
23761         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
23762         Adjust.
23763         * config/rs6000/power5.md (power5-load, power5-load-ext,
23764         power5-load-ext-update, power5-load-ext-update-indexed,
23765         power5-load-update-indexed, power5-load-update, power5-fpload,
23766         power5-fpload-update, power5-store, power5-store-update,
23767         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
23768         Adjust.
23769         * config/rs6000/power6.md (power6-load, power6-load-ext,
23770         power6-load-update, power6-load-update-indexed,
23771         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
23772         power6-fpload-update, power6-store, power6-store-update,
23773         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
23774         Adjust.
23775         * config/rs6000/power7.md (power7-load, power7-load-ext,
23776         power7-load-update, power7-load-update-indexed,
23777         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
23778         power7-fpload-update, power7-store, power7-store-update,
23779         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
23780         Adjust.
23781         * config/rs6000/power8.md (power8-load, power8-load-update,
23782         power8-load-ext, power8-load-ext-update, power8-fpload,
23783         power8-fpload-update, power8-store, power8-store-update-indexed,
23784         power8-fpstore, power8-fpstore-update): Adjust.
23785         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
23786         Adjust.
23787         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
23788         titan_lsu_store, titan_lsu_fpstore): Adjust.
23789         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
23791 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
23793         PR target/60884
23794         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
23795         unrolled byte insns.  Emit address increments after move insns.
23797 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
23799         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
23800         const_gimple, rather than a gimple.
23801         (gimple_call_builtin_p): Likewise, for the three variants.
23803         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
23804         (gimple_call_builtin_p): Likewise, for the three variants.
23806 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23808         PR tree-optimization/61095
23809         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
23811 2014-05-07  Richard Biener  <rguenther@suse.de>
23813         PR tree-optimization/61034
23814         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
23815         (maybe_skip_until): Use translate to take into account
23816         lattices when trying to do disambiguations.
23817         (get_continuation_for_phi_1): Likewise.
23818         (get_continuation_for_phi): Adjust for added translate arguments.
23819         (walk_non_aliased_vuses): Likewise.
23820         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
23821         (walk_non_aliased_vuses): Likewise.
23822         (call_may_clobber_ref_p_1): Declare.
23823         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
23824         calls.  Stop early if we are only supposed to disambiguate.
23825         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
23827 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
23829         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
23830         Emit an error when the function has arguments.
23832 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23834         * cfgloop.h (unswitch_loops): Remove.
23835         * doc/passes.texi: Remove references to loop-unswitch.c
23836         * timevar.def (TV_LOOP_UNSWITCH): Remove.
23838 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
23840         * tree-vect-data-refs.c (vect_grouped_load_supported): New
23841         check for loads group of length 3.
23842         (vect_permute_load_chain): New permutations for loads group of
23843         length 3.
23844         * tree-vect-stmts.c (vect_model_load_cost): Change cost
23845         of vec_perm_shuffle for the new permutations.
23847 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
23849         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
23850         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
23851         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
23852         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
23853         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
23854         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
23855         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
23856         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
23858 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23860         * loop-unswitch.c: Delete.
23862 2014-05-07  Richard Biener  <rguenther@suse.de>
23864         * config.gcc: Always set need_64bit_hwint to yes.
23866 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
23868         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
23869         of using optimize_size.
23871 2014-05-06  Mike Stump  <mikestump@comcast.net>
23873         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
23875 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
23877         * config/i386/sse.md (*mov<mode>_internal)
23878         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
23879         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
23880         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
23881         (*<code><mode>3, *andnot<mode>3<mask_name>)
23882         (<mask_codefor><code><mode>3<mask_name>): Only consider
23883         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
23885 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23887         Revert:
23888         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
23890         * lra-constraints.c (valid_address_p): Move earlier in file.
23891         Add a constraint argument to the address_info version.
23892         (satisfies_memory_constraint_p): New function.
23893         (satisfies_address_constraint_p): Likewise.
23894         (process_alt_operands, curr_insn_transform): Use them.
23895         (process_address): Pass the constraint to valid_address_p when
23896         checking address operands.
23898 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
23900         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
23901         to their respective blocks.  Fix inadvertent use of "node".
23903 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23905         * emit-rtl.c (init_derived_machine_modes): New functionm, split
23906         out from...
23907         (init_emit_once): ...here.
23908         * rtl.h (init_derived_machine_modes): Declare.
23909         * toplev.c (do_compile): Call it even if no_backend.
23911 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
23912             Mike Stump  <mikestump@comcast.net>
23913             Richard Sandiford  <rdsandiford@googlemail.com>
23914             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23916         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
23917         (rtx_equal_for_memref_p): Update comment.
23918         (adjust_offset_for_component_ref): Use wide-int interfaces.
23919         * builtins.c (get_object_alignment_2): Likewise.
23920         (c_readstr): Likewise.
23921         (target_char_cast): Add comment.
23922         (determine_block_size): Use wide-int interfaces.
23923         (expand_builtin_signbit): Likewise.
23924         (fold_builtin_int_roundingfn): Likewise.
23925         (fold_builtin_bitop): Likewise.
23926         (fold_builtin_bswap): Likewise.
23927         (fold_builtin_logarithm): Use signop.
23928         (fold_builtin_pow): Likewise.
23929         (fold_builtin_memory_op): Use wide-int interfaces.
23930         (fold_builtin_object_size): Likewise.
23931         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
23932         nb_iterations_estimate.
23933         (record_niter_bound): Use wide-int interfaces.
23934         (get_estimated_loop_iterations_int): Likewise.
23935         (get_estimated_loop_iterations): Likewise.
23936         (get_max_loop_iterations): Likewise.
23937         * cfgloop.h: Include wide-int.h.
23938         (struct nb_iter_bound): Change bound to widest_int.
23939         (struct loop): Change nb_iterations_upper_bound and
23940         nb_iterations_estimate to widest_int.
23941         (record_niter_bound): Switch to use widest_int.
23942         (get_estimated_loop_iterations): Likewise.
23943         (get_max_loop_iterations): Likewise.
23944         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
23945         update for wide-int.
23946         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
23947         * combine.c (try_combine): Likewise.
23948         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
23949         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
23950         interfaces.
23951         (aarch64_float_const_representable_p): Likewise.
23952         * config/arc/arc.c: Include wide-int.h.
23953         (arc_can_use_doloop_p): Use wide-int interfaces.
23954         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
23955         (vfp3_const_double_index): Likewise.
23956         * config/avr/avr.c (avr_out_round): Likewise.
23957         (avr_fold_builtin): Likewise.
23958         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23959         (bfin_can_use_doloop_p): Likewise.
23960         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23961         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23962         * config/i386/i386.c: Include wide-int.h.
23963         (ix86_data_alignment): Use wide-int interfaces.
23964         (ix86_local_alignment): Likewise.
23965         (ix86_emit_swsqrtsf): Update real_from_integer.
23966         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23967         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23968         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23969         (zero_constant): Likewise.
23970         (input_operand): Likewise.
23971         (splat_input_operand): Likewise.
23972         (non_logical_cint_operand): Change const_double to const_wide_int.
23973         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23974         (easy_altivec_constant): Remove comment.
23975         (paired_expand_vector_init): Use CONSTANT_P.
23976         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23977         (rs6000_emit_move): Update checks.
23978         (rs6000_aggregate_candidate): Use wide-int interfaces.
23979         (rs6000_expand_ternop_builtin): Likewise.
23980         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23981         (rs6000_assemble_integer): Likewise.
23982         (rs6000_hash_constant): Likewise.
23983         (output_toc): Likewise.
23984         (rs6000_rtx_costs): Likewise.
23985         (rs6000_emit_swrsqrt); Update call to real_from_integer.
23986         * config/rs6000/rs6000-c.c: Include wide-int.h.
23987         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23988         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23989         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23990         Handle CONST_WIDE_INT.
23991         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23992         Use tree_fits_uhwi_p.
23993         * config/sparc/sparc.c: Include wide-int.h.
23994         (sparc_fold_builtin): Use wide-int interfaces.
23995         * config/vax/vax.c: Include wide-int.h.
23996         (vax_float_literal): Use real_from_integer.
23997         * coretypes.h (struct hwivec_def): New.
23998         (hwivec): New.
23999         (const_hwivec): New.
24000         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
24001         (equiv_constant): Handle CONST_WIDE_INT.
24002         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
24003         (cselib_hash_rtx): Handle CONST_WIDE_INT.
24004         * dbxout.c (stabstr_U): Use wide-int interfaces.
24005         (dbxout_type): Update to use cst_fits_shwi_p.
24006         * defaults.h (LOG2_BITS_PER_UNIT): Define.
24007         (TARGET_SUPPORTS_WIDE_INT): Add default.
24008         * dfp.c: Include wide-int.h.
24009         (decimal_real_to_integer2): Use wide-int interfaces and rename to
24010         decimal_real_to_integer.
24011         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
24012         decimal_real_to_integer.
24013         * doc/generic.texi (Constant expressions): Update for wide_int.
24014         * doc/rtl.texi (const_double): Likewise.
24015         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
24016         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
24017         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
24018         (REAL_VALUE_FROM_INT): Remove.
24019         (TARGET_SUPPORTS_WIDE_INT): New.
24020         * doc/tm.texi: Regenerate.
24021         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
24022         * double-int.h: Include wide-int.h.
24023         (struct wi::int_traits): New.
24024         * dwarf2out.c (get_full_len): New.
24025         (dw_val_equal_p): Add case dw_val_class_wide_int.
24026         (size_of_loc_descr): Likewise.
24027         (output_loc_operands): Likewise.
24028         (insert_double): Remove.
24029         (insert_wide_int): New.
24030         (add_AT_wide): New.
24031         (print_die): Add case dw_val_class_wide_int.
24032         (attr_checksum): Likewise.
24033         (attr_checksum_ordered): Likewise.
24034         (same_dw_val_p): Likewise.
24035         (size_of_die): Likewise.
24036         (value_format): Likewise.
24037         (output_die): Likewise.
24038         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
24039         Use wide-int.
24040         (clz_loc_descriptor): Use wide-int interfaces.
24041         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
24042         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
24043         (round_up_to_align): Use wide-int interfaces.
24044         (field_byte_offset): Likewise.
24045         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
24046         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
24047         CONST_DOUBLE handling.  Use wide-int interfaces.
24048         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
24049         (gen_enumeration_type_die): Use add_AT_wide.
24050         (hash_loc_operands): Add case dw_val_class_wide_int.
24051         (compare_loc_operands): Likewise.
24052         * dwarf2out.h: Include wide-int.h.
24053         (wide_int_ptr): New.
24054         (enum dw_val_class): Add dw_val_class_wide_int.
24055         (struct dw_val_struct): Add val_wide.
24056         * emit-rtl.c (const_wide_int_htab): New.
24057         (const_wide_int_htab_hash): New.
24058         (const_wide_int_htab_eq): New.
24059         (lookup_const_wide_int): New.
24060         (const_double_htab_hash): Use wide-int interfaces.
24061         (const_double_htab_eq): Likewise.
24062         (rtx_to_double_int): Conditionally compile for wide-int.
24063         (immed_double_int_const): Rename to immed_wide_int_const and
24064         update for wide-int.
24065         (immed_double_const): Conditionally compile for wide-int.
24066         (init_emit_once): Use wide-int interfaces.
24067         * explow.c (plus_constant): Likewise.
24068         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
24069         (lshift_value): Use wide-int interfaces.
24070         (expand_mult): Likewise.
24071         (choose_multiplier): Likewise.
24072         (expand_smod_pow2): Likewise.
24073         (make_tree): Likewise.
24074         * expr.c (convert_modes): Consolidate handling of constants.
24075         Use wide-int interfaces.
24076         (emit_group_load_1): Add note.
24077         (store_expr): Update comment.
24078         (get_inner_reference): Use wide-int interfaces.
24079         (expand_constructor): Update comment.
24080         (expand_expr_real_2): Use wide-int interfaces.
24081         (expand_expr_real_1): Likewise.
24082         (reduce_to_bit_field_precision): Likewise.
24083         (const_vector_from_tree): Likewise.
24084         * final.c: Include wide-int-print.h.
24085         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
24086         * fixed-value.c: Include wide-int.h.
24087         (fixed_from_string): Use wide-int interfaces.
24088         (fixed_to_decimal): Likewise.
24089         (fixed_convert_from_real): Likewise.
24090         (real_convert_from_fixed): Likewise.
24091         * fold-const.h (mem_ref_offset): Return an offset_int.
24092         (div_if_zero_remainder): Remove code parameter.
24093         * fold-const.c (div_if_zero_remainder): Remove code parameter.
24094         Use wide-int interfaces.
24095         (may_negate_without_overflow_p): Use wide-int interfaces.
24096         (negate_expr_p): Likewise.
24097         (fold_negate_expr): Likewise.
24098         (int_const_binop_1): Likewise.
24099         (const_binop): Likewise.
24100         (fold_convert_const_int_from_int): Likewise.
24101         (fold_convert_const_int_from_real): Likewise.
24102         (fold_convert_const_int_from_fixed): Likewise.
24103         (fold_convert_const_fixed_from_int): Likewise.
24104         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
24105         (sign_bit_p): Use wide-int interfaces.
24106         (make_range_step): Likewise.
24107         (build_range_check): Likewise.  Pass an integer of the correct type
24108         instead of using integer_one_node.
24109         (range_predecessor): Pass an integer of the correct type instead
24110         of using integer_one_node.
24111         (range_successor): Likewise.
24112         (merge_ranges): Likewise.
24113         (unextend): Use wide-int interfaces.
24114         (extract_muldiv_1): Likewise.
24115         (fold_div_compare): Likewise.
24116         (fold_single_bit_test): Likewise.
24117         (fold_sign_changed_comparison): Likewise.
24118         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
24119         (fold_plusminus_mult_expr): Use wide-int interfaces.
24120         (native_encode_int): Likewise.
24121         (native_interpret_int): Likewise.
24122         (fold_unary_loc): Likewise.
24123         (pointer_may_wrap_p): Likewise.
24124         (size_low_cst): Likewise.
24125         (mask_with_tz): Likewise.
24126         (fold_binary_loc): Likewise.
24127         (fold_ternary_loc): Likewise.
24128         (multiple_of_p): Likewise.
24129         (tree_call_nonnegative_warnv_p): Update calls to
24130         tree_int_cst_min_precision and real_from_integer.
24131         (fold_negate_const): Use wide-int interfaces.
24132         (fold_abs_const): Likewise.
24133         (fold_relational_const): Use tree_int_cst_lt.
24134         (round_up_loc): Use wide-int interfaces.
24135         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
24136         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
24137         * gengtype.c: Remove include of double-int.h.
24138         (do_typedef): Use wide-int interfaces.
24139         (open_base_files): Add wide-int.h.
24140         (main): Add offset_int and widest_int typedefs.
24141         * gengtype-lex.l: Handle "^".
24142         (CXX_KEYWORD): Add "static".
24143         * gengtype-parse.c (require3): New.
24144         (require_template_declaration): Handle constant template arguments
24145         and nested templates.
24146         * gengtype-state.c: Don't include "double-int.h".
24147         * genpreds.c (write_one_predicate_function): Update comment.
24148         (write_tm_constrs_h): Add check for hval and lval use in
24149         CONST_WIDE_INT.
24150         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
24151         (add_to_sequence): Likewise.
24152         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
24153         and const_double_operand.
24154         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
24155         interfaces.
24156         * gimple-fold.c (get_base_constructor): Likewise.
24157         (fold_array_ctor_reference): Likewise.
24158         (fold_nonarray_ctor_reference): Likewise.
24159         (fold_const_aggregate_ref_1): Likewise.
24160         (gimple_val_nonnegative_real_p): Likewise.
24161         (gimple_fold_indirect_ref): Likewise.
24162         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
24163         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
24164         (struct slsr_cand_d): Change index to be widest_int.
24165         (struct incr_info_d): Change incr to be widest_int.
24166         (alloc_cand_and_find_basis): Use wide-int interfaces.
24167         (slsr_process_phi): Likewise.
24168         (backtrace_base_for_ref): Likewise.  Return a widest_int.
24169         (restructure_reference): Take a widest_int instead of a double_int.
24170         (slsr_process_ref): Use wide-int interfaces.
24171         (create_mul_ssa_cand): Likewise.
24172         (create_mul_imm_cand): Likewise.
24173         (create_add_ssa_cand): Likewise.
24174         (create_add_imm_cand): Take a widest_int instead of a double_int.
24175         (slsr_process_add): Use wide-int interfaces.
24176         (slsr_process_cast): Likewise.
24177         (slsr_process_copy): Likewise.
24178         (dump_candidate): Likewise.
24179         (dump_incr_vec): Likewise.
24180         (replace_ref): Likewise.
24181         (cand_increment): Likewise.  Return a widest_int.
24182         (cand_abs_increment): Likewise.
24183         (replace_mult_candidate): Take a widest_int instead of a double_int.
24184         (replace_unconditional_candidate): Use wide-int interfaces.
24185         (incr_vec_index): Take a widest_int instead of a double_int.
24186         (create_add_on_incoming_edge): Likewise.
24187         (create_phi_basis): Use wide-int interfaces.
24188         (replace_conditional_candidate): Likewise.
24189         (record_increment): Take a widest_int instead of a double_int.
24190         (record_phi_increments): Use wide-int interfaces.
24191         (phi_incr_cost): Take a widest_int instead of a double_int.
24192         (lowest_cost_path): Likewise.
24193         (total_savings): Likewise.
24194         (analyze_increments): Use wide-int interfaces.
24195         (ncd_with_phi): Take a widest_int instead of a double_int.
24196         (ncd_of_cand_and_phis): Likewise.
24197         (nearest_common_dominator_for_cands): Likewise.
24198         (insert_initializers): Use wide-int interfaces.
24199         (all_phi_incrs_profitable): Likewise.
24200         (replace_one_candidate): Likewise.
24201         (replace_profitable_candidates): Likewise.
24202         * godump.c: Include wide-int-print.h.
24203         (go_output_typedef): Use wide-int interfaces.
24204         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
24205         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
24206         (build_loop_iteration_domains): Likewise.
24207         * hooks.h: Include wide-int.h rather than double-int.h.
24208         (hook_bool_dint_dint_uint_bool_true): Delete.
24209         (hook_bool_wint_wint_uint_bool_true): Declare.
24210         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
24211         (hook_bool_wint_wint_uint_bool_true): New.
24212         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
24213         interfaces.
24214         (ubsan_expand_si_overflow_mul_check): Likewise.
24215         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
24216         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
24217         (get_ancestor_addr_info): Likewise.
24218         (ipa_modify_call_arguments): Likewise.
24219         * loop-doloop.c (doloop_modify): Likewise.
24220         (doloop_optimize): Likewise.
24221         * loop-iv.c (iv_number_of_iterations): Likewise.
24222         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
24223         (unroll_loop_constant_iterations): Likewise.
24224         (decide_unroll_runtime_iterations): Likewise.
24225         (unroll_loop_runtime_iterations): Likewise.
24226         (decide_peel_simple): Likewise.
24227         (decide_unroll_stupid): Likewise.
24228         * lto-streamer-in.c (streamer_read_wi): Add.
24229         (input_cfg): Use wide-int interfaces.
24230         (lto_input_tree_1): Likewise.
24231         * lto-streamer-out.c (streamer_write_wi): Add.
24232         (hash_tree): Use wide-int interfaces.
24233         (output_cfg): Likewise.
24234         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
24235         (GTFILES): Add wide-int.h and signop.h.
24236         (TAGS): Look for .cc files too.
24237         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
24238         * optabs.c (expand_subword_shift): Likewise.
24239         (expand_doubleword_shift): Likewise.
24240         (expand_absneg_bit): Likewise.
24241         (expand_copysign_absneg): Likewise.
24242         (expand_copysign_bit): Likewise.
24243         * postreload.c (reload_cse_simplify_set): Likewise.
24244         * predict.c (predict_iv_comparison): Likewise.
24245         * pretty-print.h: Include wide-int-print.h.
24246         (pp_wide_int) New.
24247         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
24248         * print-tree.c: Include wide-int-print.h.
24249         (print_node_brief): Use wide-int interfaces.
24250         (print_node): Likewise.
24251         * read-rtl.c (validate_const_wide_int): New.
24252         (read_rtx_code): Add CONST_WIDE_INT case.
24253         * real.c: Include wide-int.h.
24254         (real_to_integer2): Delete.
24255         (real_to_integer): New function, returning a wide_int.
24256         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
24257         (ten_to_ptwo): Update call to real_from_integer.
24258         (real_digit): Likewise.
24259         * real.h: Include signop.h, wide-int.h and insn-modes.h.
24260         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
24261         (REAL_VALUE_TO_INT): Delete.
24262         (real_to_integer): Declare a wide-int form.
24263         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
24264         * recog.c (const_int_operand): Improve comment.
24265         (const_scalar_int_operand): New.
24266         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
24267         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
24268         (split_double): Likewise.
24269         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
24270         (rtx_size): Likewise.
24271         (rtx_alloc_stat_v): New.
24272         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
24273         (cwi_output_hex): New.
24274         (iterative_hash_rtx): Handle CONST_WIDE_INT.
24275         (cwi_check_failed_bounds): New.
24276         * rtl.def (CONST_WIDE_INT): New.
24277         * rtl.h: Include <utility> and wide-int.h.
24278         (struct hwivec_def): New.
24279         (CWI_GET_NUM_ELEM): New.
24280         (CWI_PUT_NUM_ELEM): New.
24281         (struct rtx_def): Add num_elem and hwiv.
24282         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
24283         (CASE_CONST_UNIQUE): Likewise.
24284         (CASE_CONST_ANY): Likewise.
24285         (CONST_SCALAR_INT_P): Likewise.
24286         (CONST_WIDE_INT_P): New.
24287         (CWI_ELT): New.
24288         (HWIVEC_CHECK): New.
24289         (cwi_check_failed_bounds): New.
24290         (CWI_ELT): New.
24291         (HWIVEC_CHECK): New.
24292         (CONST_WIDE_INT_VEC) New.
24293         (CONST_WIDE_INT_NUNITS) New.
24294         (CONST_WIDE_INT_ELT) New.
24295         (rtx_mode_t): New type.
24296         (wi::int_traits <rtx_mode_t>): New.
24297         (wi::shwi): New.
24298         (wi::min_value): New.
24299         (wi::max_value): New.
24300         (rtx_alloc_v) New.
24301         (const_wide_int_alloc): New.
24302         (immed_wide_int_const): New.
24303         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
24304         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
24305         * signop.h: New file.
24306         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
24307         (simplify_const_unary_operation): Use wide-int interfaces.
24308         (simplify_binary_operation_1): Likewise.
24309         (simplify_const_binary_operation): Likewise.
24310         (simplify_const_relational_operation): Likewise.
24311         (simplify_immed_subreg): Likewise.
24312         * stmt.c (expand_case): Likewise.
24313         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
24314         signop rather than a bool.
24315         * stor-layout.c (layout_type): Use wide-int interfaces.
24316         (initialize_sizetypes): Update calls to
24317         set_min_and_max_values_for_integral_type.
24318         (set_min_and_max_values_for_integral_type): Take a signop rather
24319         than a bool.  Use wide-int interfaces.
24320         (fixup_signed_type): Update accordingly.  Remove
24321         HOST_BITS_PER_DOUBLE_INT limit.
24322         (fixup_unsigned_type): Likewise.
24323         * system.h (STATIC_CONSTANT_P): New.
24324         (STATIC_ASSERT): New.
24325         * target.def (can_use_doloop_p): Take widest_ints rather than
24326         double_ints.
24327         * target.h: Include wide-int.h rather than double-int.h.
24328         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
24329         than double_ints.
24330         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
24331         rather than INT_CST_LT_UNSIGNED.
24332         (can_use_doloop_if_innermost): Take widest_ints rather than
24333         double_ints.
24334         * tree-affine.c: Include wide-int-print.h.
24335         (double_int_ext_for_comb): Delete.
24336         (wide_int_ext_for_comb): New.
24337         (aff_combination_zero): Use wide-int interfaces.
24338         (aff_combination_const): Take a widest_int instead of a double_int.
24339         (aff_combination_elt): Use wide-int interfaces.
24340         (aff_combination_scale): Take a widest_int instead of a double_int.
24341         (aff_combination_add_elt): Likewise.
24342         (aff_combination_add_cst): Likewise.
24343         (aff_combination_add): Use wide-int interfaces.
24344         (aff_combination_convert): Likewise.
24345         (tree_to_aff_combination): Likewise.
24346         (add_elt_to_tree): Take a widest_int instead of a double_int.
24347         (aff_combination_to_tree): Use wide-int interfaces.
24348         (aff_combination_remove_elt): Likewise.
24349         (aff_combination_add_product): Take a widest_int instead of
24350         a double_int.
24351         (aff_combination_mult): Use wide-int interfaces.
24352         (aff_combination_expand): Likewise.
24353         (double_int_constant_multiple_p): Delete.
24354         (wide_int_constant_multiple_p): New.
24355         (aff_combination_constant_multiple_p): Take a widest_int pointer
24356         instead of a double_int pointer.
24357         (print_aff): Use wide-int interfaces.
24358         (get_inner_reference_aff): Take a widest_int pointer
24359         instead of a double_int pointer.
24360         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
24361         * tree-affine.h: Include wide-int.h.
24362         (struct aff_comb_elt): Change type of coef to widest_int.
24363         (struct affine_tree_combination): Change type of offset to widest_int.
24364         (double_int_ext_for_comb): Delete.
24365         (wide_int_ext_for_comb): New.
24366         (aff_combination_const): Use widest_int instead of double_int.
24367         (aff_combination_scale): Likewise.
24368         (aff_combination_add_elt): Likewise.
24369         (aff_combination_constant_multiple_p): Likewise.
24370         (get_inner_reference_aff): Likewise.
24371         (aff_comb_cannot_overlap_p): Likewise.
24372         (aff_combination_zero_p): Use wide-int interfaces.
24373         * tree.c: Include tree.h.
24374         (init_ttree): Use make_int_cst.
24375         (tree_code_size): Removed code for INTEGER_CST case.
24376         (tree_size): Add INTEGER_CST case.
24377         (make_node_stat): Update comment.
24378         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
24379         (build_int_cst_type): Use wide-int interfaces.
24380         (double_int_to_tree): Likewise.
24381         (double_int_fits_to_tree_p): Delete.
24382         (force_fit_type_double): Delete.
24383         (force_fit_type): New.
24384         (int_cst_hash_hash): Use wide-int interfaces.
24385         (int_cst_hash_eq): Likewise.
24386         (build_int_cst_wide): Delete.
24387         (wide_int_to_tree): New.
24388         (cache_integer_cst): Use wide-int interfaces.
24389         (build_low_bits_mask): Likewise.
24390         (cst_and_fits_in_hwi): Likewise.
24391         (real_value_from_int_cst): Likewise.
24392         (make_int_cst_stat): New.
24393         (integer_zerop): Use wide_int interfaces.
24394         (integer_onep): Likewise.
24395         (integer_all_onesp): Likewise.
24396         (integer_pow2p): Likewise.
24397         (integer_nonzerop): Likewise.
24398         (tree_log2): Likewise.
24399         (tree_floor_log2): Likewise.
24400         (tree_ctz): Likewise.
24401         (int_size_in_bytes): Likewise.
24402         (mem_ref_offset): Return an offset_int rather than a double_int.
24403         (build_type_attribute_qual_variant): Use wide_int interfaces.
24404         (type_hash_eq): Likewise
24405         (tree_int_cst_equal): Likewise.
24406         (tree_int_cst_lt): Delete.
24407         (tree_int_cst_compare): Likewise.
24408         (tree_fits_shwi_p): Use wide_int interfaces.
24409         (tree_fits_uhwi_p): Likewise.
24410         (tree_int_cst_sign_bit): Likewise.
24411         (tree_int_cst_sgn): Likewise.
24412         (tree_int_cst_min_precision): Take a signop rather than a bool.
24413         (simple_cst_equal): Use wide_int interfaces.
24414         (compare_tree_int): Likewise.
24415         (iterative_hash_expr): Likewise.
24416         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
24417         INT_CST_LT.
24418         (get_type_static_bounds): Use wide_int interfaces.
24419         (tree_int_cst_elt_check_failed): New.
24420         (build_common_tree_nodes): Reordered to set prec before filling in
24421         value.
24422         (int_cst_value): Check cst_and_fits_in_hwi.
24423         (widest_int_cst_value): Use wide_int interfaces.
24424         (upper_bound_in_type): Likewise.
24425         (lower_bound_in_type): Likewise.
24426         (num_ending_zeros): Likewise.
24427         (drop_tree_overflow): Likewise.
24428         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
24429         (gen_conditions_for_pow_cst_base): Likewise.
24430         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
24431         (group_case_labels_stmt): Use wide-int interfaces.
24432         (verify_gimple_assign_binary): Likewise.
24433         (print_loop): Likewise.
24434         * tree-chrec.c (tree_fold_binomial): Likewise.
24435         * tree-core.h (struct tree_base): Add int_length.
24436         (struct tree_int_cst): Change rep of value.
24437         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
24438         (dr_may_alias_p): Likewise.
24439         (max_stmt_executions_tree): Likewise.
24440         * tree.def (INTEGER_CST): Update comment.
24441         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
24442         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
24443         * tree-dump.c: Include wide-int.h and wide-int-print.h.
24444         (dequeue_and_dump): Use wide-int interfaces.
24445         * tree.h: Include wide-int.h.
24446         (NULL_TREE): Moved to earlier loc in file.
24447         (TREE_INT_CST_ELT_CHECK): New.
24448         (tree_int_cst_elt_check_failed): New.
24449         (TYPE_SIGN): New.
24450         (TREE_INT_CST): Delete.
24451         (TREE_INT_CST_LOW): Use wide-int interfaces.
24452         (TREE_INT_CST_HIGH): Delete.
24453         (TREE_INT_CST_NUNITS): New.
24454         (TREE_INT_CST_EXT_NUNITS): Likewise.
24455         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
24456         (TREE_INT_CST_ELT): Likewise.
24457         (INT_CST_LT): Delete.
24458         (tree_int_cst_elt_check): New (two forms).
24459         (type_code_size): Update comment.
24460         (make_int_cst_stat, make_int_cst): New.
24461         (tree_to_double_int): Delete.
24462         (double_int_fits_to_tree_p): Delete.
24463         (force_fit_type_double): Delete.
24464         (build_int_cstu): Replace with out-of-line function.
24465         (build_int_cst_wide): Delete.
24466         (tree_int_cst_lt): Define inline.
24467         (tree_int_cst_le): New.
24468         (tree_int_cst_compare): Define inline.
24469         (tree_int_cst_min_precision): Take a signop rather than a bool.
24470         (wi::int_traits <const_tree>): New.
24471         (wi::int_traits <tree>): New.
24472         (wi::extended_tree): New.
24473         (wi::int_traits <wi::extended_tree>): New.
24474         (wi::to_widest): New.
24475         (wi::to_offset): New.
24476         (wi::fits_to_tree_p): New.
24477         (wi::min_value): New.
24478         (wi::max_value): New.
24479         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
24480         (copy_tree_body_r): Likewise.
24481         * tree-object-size.c (compute_object_offset): Likewise.
24482         (addr_object_size): Likewise.
24483         * tree-predcom.c: Include wide-int-print.h.
24484         (struct dref_d): Change type of offset to widest_int.
24485         (dump_dref): Call wide-int printer.
24486         (aff_combination_dr_offset): Use wide-int interfaces.
24487         (determine_offset): Take a widest_int pointer rather than a
24488         double_int pointer.
24489         (split_data_refs_to_components): Use wide-int interfaces.
24490         (suitable_component_p): Likewise.
24491         (order_drefs): Likewise.
24492         (add_ref_to_chain): Likewise.
24493         (valid_initializer_p): Likewise.
24494         (determine_roots_comp): Likewise.
24495         * tree-pretty-print.c: Include wide-int-print.h.
24496         (dump_generic_node): Use wide-int interfaces.
24497         * tree-sra.c (sra_ipa_modify_expr): Likewise.
24498         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
24499         (move_fixed_address_to_symbol): Likewise.
24500         (move_hint_to_base): Likewise.
24501         (move_pointer_to_base): Likewise.
24502         (move_variant_to_index): Likewise.
24503         (most_expensive_mult_to_index): Likewise.
24504         (addr_to_parts): Likewise.
24505         (copy_ref_info): Likewise.
24506         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24507         (indirect_refs_may_alias_p): Likewise.
24508         (stmt_kills_ref_p_1): Likewise.
24509         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
24510         * tree-ssa-ccp.c: Update comment at top of file.  Include
24511         wide-int-print.h.
24512         (struct prop_value_d): Change type of mask to widest_int.
24513         (extend_mask): New function.
24514         (dump_lattice_value): Use wide-int interfaces.
24515         (get_default_value): Likewise.
24516         (set_constant_value): Likewise.
24517         (set_value_varying): Likewise.
24518         (valid_lattice_transition): Likewise.
24519         (set_lattice_value): Likewise.
24520         (value_to_double_int): Delete.
24521         (value_to_wide_int): New.
24522         (get_value_from_alignment): Use wide-int interfaces.
24523         (get_value_for_expr): Likewise.
24524         (do_dbg_cnt): Likewise.
24525         (ccp_finalize): Likewise.
24526         (ccp_lattice_meet): Likewise.
24527         (bit_value_unop_1): Use widest_ints rather than double_ints.
24528         (bit_value_binop_1): Likewise.
24529         (bit_value_unop): Use wide-int interfaces.
24530         (bit_value_binop): Likewise.
24531         (bit_value_assume_aligned): Likewise.
24532         (evaluate_stmt): Likewise.
24533         (ccp_fold_stmt): Likewise.
24534         (visit_cond_stmt): Likewise.
24535         (ccp_visit_stmt): Likewise.
24536         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24537         (constant_pointer_difference): Likewise.
24538         (associate_pointerplus): Likewise.
24539         (combine_conversions): Likewise.
24540         * tree-ssa-loop.h: Include wide-int.h.
24541         (struct tree_niter_desc): Change type of max to widest_int.
24542         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
24543         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
24544         (remove_redundant_iv_tests): Likewise.
24545         (canonicalize_loop_induction_variables): Likewise.
24546         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
24547         (constant_multiple_of): Take a widest_int pointer instead of
24548         a double_int pointer.
24549         (get_computation_aff): Use wide-int interfaces.
24550         (ptr_difference_cost): Likewise.
24551         (difference_cost): Likewise.
24552         (get_loop_invariant_expr_id): Likewise.
24553         (get_computation_cost_at): Likewise.
24554         (iv_elimination_compare_lt): Likewise.
24555         (may_eliminate_iv): Likewise.
24556         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
24557         instead of double_int.
24558         (max_loop_iterations): Likewise.
24559         (max_stmt_executions): Likewise.
24560         (estimated_stmt_executions): Likewise.
24561         * tree-ssa-loop-niter.c: Include wide-int-print.h.
24562         (split_to_var_and_offset): Use wide-int interfaces.
24563         (determine_value_range): Likewise.
24564         (bound_difference_of_offsetted_base): Likewise.
24565         (bounds_add): Take a widest_int instead of a double_int.
24566         (number_of_iterations_ne_max): Use wide-int interfaces.
24567         (number_of_iterations_ne): Likewise.
24568         (number_of_iterations_lt_to_ne): Likewise.
24569         (assert_loop_rolls_lt): Likewise.
24570         (number_of_iterations_lt): Likewise.
24571         (number_of_iterations_le): Likewise.
24572         (number_of_iterations_cond): Likewise.
24573         (number_of_iterations_exit): Likewise.
24574         (finite_loop_p): Likewise.
24575         (derive_constant_upper_bound_assign): Likewise.
24576         (derive_constant_upper_bound): Return a widest_int.
24577         (derive_constant_upper_bound_ops): Likewise.
24578         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
24579         (record_estimate): Take a widest_int rather than a double_int.
24580         (record_nonwrapping_iv): Use wide-int interfaces.
24581         (double_int_cmp): Delete.
24582         (wide_int_cmp): New.
24583         (bound_index): Take a widest_int rather than a double_int.
24584         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
24585         (maybe_lower_iteration_bound): Likewise.
24586         (estimate_numbers_of_iterations_loop): Likewise.
24587         (estimated_loop_iterations): Take a widest_int pointer than than
24588         a double_int pointer.
24589         (estimated_loop_iterations_int): Use wide-int interfaces.
24590         (max_loop_iterations): Take a widest_int pointer than than
24591         a double_int pointer.
24592         (max_loop_iterations_int): Use wide-int interfaces.
24593         (max_stmt_executions): Take a widest_int pointer than than
24594         a double_int pointer.
24595         (estimated_stmt_executions): Likewise.
24596         (n_of_executions_at_most): Use wide-int interfaces.
24597         (scev_probably_wraps_p): Likewise.
24598         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
24599         to real_to_integer.
24600         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
24601         interfaces.
24602         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
24603         double_ints.  Adjust for trailing_wide_ints <3> representation.
24604         (set_nonzero_bits): Likewise.
24605         (get_range_info): Return wide_ints rather than double_ints.
24606         Adjust for trailing_wide_ints <3> representation.
24607         (get_nonzero_bits): Likewise.
24608         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
24609         representation.
24610         * tree-ssanames.h (struct range_info_def): Replace min, max and
24611         nonzero_bits with a trailing_wide_ints <3>.
24612         (set_range_info): Use wide_int_refs rather than double_ints.
24613         (set_nonzero_bits): Likewise.
24614         (get_range_info): Return wide_ints rather than double_ints.
24615         (get_nonzero_bits): Likewise.
24616         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
24617         * tree-ssa-pre.c (phi_translate_1): Likewise.
24618         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
24619         (acceptable_pow_call): Likewise.
24620         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
24621         interfaces.
24622         (vn_reference_fold_indirect): Likewise.
24623         (vn_reference_maybe_forwprop_address): Likewise.
24624         (valueize_refs_1): Likewise.
24625         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
24626         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
24627         tree_int_cst_lt and tree_int_cst_le.
24628         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
24629         interfaces.
24630         (streamer_alloc_tree): Likewise.
24631         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
24632         (streamer_write_tree_header): Likewise.
24633         (streamer_write_integer_cst): Likewise.
24634         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24635         (build_constructors): Likewise.
24636         (array_value_type): Likewise.
24637         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
24638         (vect_check_gather): Likewise.
24639         * tree-vect-generic.c (build_replicated_const): Likewise.
24640         (expand_vector_divmod): Likewise.
24641         * tree-vect-loop.c (vect_transform_loop): Likewise.
24642         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24643         (vect_do_peeling_for_alignment): Likewise.
24644         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
24645         * tree-vrp.c: Include wide-int.h.
24646         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
24647         (extract_range_from_assert): Use wide-int interfaces.
24648         (vrp_int_const_binop): Likewise.
24649         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
24650         double_int pointers.
24651         (ranges_from_anti_range): Use wide-int interfaces.
24652         (quad_int_cmp): Delete.
24653         (quad_int_pair_sort): Likewise.
24654         (extract_range_from_binary_expr_1): Use wide-int interfaces.
24655         (extract_range_from_unary_expr_1): Likewise.
24656         (adjust_range_with_scev): Likewise.
24657         (masked_increment): Take and return wide_ints rather than double_ints.
24658         (register_edge_assert_for_2): Use wide-int interfaces.
24659         (check_array_ref): Likewise.
24660         (search_for_addr_array): Likewise.
24661         (maybe_set_nonzero_bits): Likewise.
24662         (union_ranges): Pass an integer of the correct type instead of
24663         using integer_one_node.
24664         (intersect_ranges): Likewise.
24665         (simplify_truth_ops_using_ranges): Likewise.
24666         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
24667         (range_fits_type_p): Likewise.
24668         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
24669         a bool.
24670         (simplify_conversion_using_ranges): Use wide-int interfaces.
24671         (simplify_float_conversion_using_ranges): Likewise.
24672         (vrp_finalize): Likewise.
24673         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
24674         (gimple_stringops_transform): Likewise.
24675         * varasm.c (decode_addr_const): Likewise.
24676         (const_hash_1): Likewise.
24677         (const_rtx_hash_1): Likewise
24678         (output_constant): Likewise.
24679         (array_size_for_constructor): Likewise.
24680         (output_constructor_regular_field): Likewise.
24681         (output_constructor_bitfield): Likewise.
24682         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
24683         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
24684         GENERATOR_FILEs.
24685         * gencheck.c: Define BITS_PER_UNIT.
24686         * wide-int.cc: New.
24687         * wide-int.h: New.
24688         * wide-int-print.cc: New.
24689         * wide-int-print.h: New.
24691 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24693         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
24695 2014-05-06  Richard Biener  <rguenther@suse.de>
24697         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
24698         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
24699         (TODO_verify_all): Adjust.
24700         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
24701         TODO_verify_stmts and TODO_verify_rtl_sharing.
24702         * bb-reorder.c: Likewise.
24703         * cfgexpand.c: Likewise.
24704         * cprop.c: Likewise.
24705         * cse.c: Likewise.
24706         * function.c: Likewise.
24707         * fwprop.c: Likewise.
24708         * gcse.c: Likewise.
24709         * gimple-ssa-isolate-paths.c: Likewise.
24710         * gimple-ssa-strength-reduction.c: Likewise.
24711         * ipa-split.c: Likewise.
24712         * loop-init.c: Likewise.
24713         * loop-unroll.c: Likewise.
24714         * lower-subreg.c: Likewise.
24715         * modulo-sched.c: Likewise.
24716         * postreload-gcse.c: Likewise.
24717         * predict.c: Likewise.
24718         * recog.c: Likewise.
24719         * sched-rgn.c: Likewise.
24720         * store-motion.c: Likewise.
24721         * tracer.c: Likewise.
24722         * trans-mem.c: Likewise.
24723         * tree-call-cdce.c: Likewise.
24724         * tree-cfg.c: Likewise.
24725         * tree-cfgcleanup.c: Likewise.
24726         * tree-complex.c: Likewise.
24727         * tree-eh.c: Likewise.
24728         * tree-emutls.c: Likewise.
24729         * tree-if-conv.c: Likewise.
24730         * tree-into-ssa.c: Likewise.
24731         * tree-loop-distribution.c: Likewise.
24732         * tree-object-size.c: Likewise.
24733         * tree-parloops.c: Likewise.
24734         * tree-pass.h: Likewise.
24735         * tree-sra.c: Likewise.
24736         * tree-ssa-ccp.c: Likewise.
24737         * tree-ssa-copy.c: Likewise.
24738         * tree-ssa-copyrename.c: Likewise.
24739         * tree-ssa-dce.c: Likewise.
24740         * tree-ssa-dom.c: Likewise.
24741         * tree-ssa-dse.c: Likewise.
24742         * tree-ssa-forwprop.c: Likewise.
24743         * tree-ssa-ifcombine.c: Likewise.
24744         * tree-ssa-loop-ch.c: Likewise.
24745         * tree-ssa-loop-ivcanon.c: Likewise.
24746         * tree-ssa-loop.c: Likewise.
24747         * tree-ssa-math-opts.c: Likewise.
24748         * tree-ssa-phiopt.c: Likewise.
24749         * tree-ssa-phiprop.c: Likewise.
24750         * tree-ssa-pre.c: Likewise.
24751         * tree-ssa-reassoc.c: Likewise.
24752         * tree-ssa-sink.c: Likewise.
24753         * tree-ssa-strlen.c: Likewise.
24754         * tree-ssa-tail-merge.c: Likewise.
24755         * tree-ssa-uncprop.c: Likewise.
24756         * tree-switch-conversion.c: Likewise.
24757         * tree-tailcall.c: Likewise.
24758         * tree-vect-generic.c: Likewise.
24759         * tree-vectorizer.c: Likewise.
24760         * tree-vrp.c: Likewise.
24761         * tsan.c: Likewise.
24762         * var-tracking.c: Likewise.
24763         * bt-load.c: Likewise.
24764         * cfgcleanup.c: Likewise.
24765         * combine-stack-adj.c: Likewise.
24766         * combine.c: Likewise.
24767         * compare-elim.c: Likewise.
24768         * config/epiphany/resolve-sw-modes.c: Likewise.
24769         * config/i386/i386.c: Likewise.
24770         * config/mips/mips.c: Likewise.
24771         * config/s390/s390.c: Likewise.
24772         * config/sh/sh_treg_combine.cc: Likewise.
24773         * config/sparc/sparc.c: Likewise.
24774         * dce.c: Likewise.
24775         * dse.c: Likewise.
24776         * final.c: Likewise.
24777         * ifcvt.c: Likewise.
24778         * mode-switching.c: Likewise.
24779         * passes.c: Likewise.
24780         * postreload.c: Likewise.
24781         * ree.c: Likewise.
24782         * reg-stack.c: Likewise.
24783         * regcprop.c: Likewise.
24784         * regrename.c: Likewise.
24785         * web.c: Likewise.
24787 2014-05-06  Richard Biener  <rguenther@suse.de>
24789         PR middle-end/61070
24790         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
24791         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
24793 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
24795         PR ipa/60965
24796         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
24798 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
24799             Tom de Vries  <tom@codesourcery.com>
24801         * target.def (call_fusage_contains_non_callee_clobbers): New
24802         DEFHOOKPOD.
24803         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
24804         Hooks to @menu.
24805         (@node Miscellaneous Register Hooks): New node.
24806         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
24807         * doc/tm.texi: Regenerate.
24809 2014-05-05  Marek Polacek  <polacek@redhat.com>
24811         PR driver/61065
24812         * opts.c (common_handle_option): Call error_at instead of warning_at.
24814 2014-05-05  Richard Biener  <rguenther@suse.de>
24816         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
24817         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
24818         under the TODO_verify_il umbrella.
24820 2014-05-05  Richard Biener  <rguenther@suse.de>
24822         * passes.c (execute_function_todo): Move TODO_verify_flow under
24823         the TODO_verify_ul umbrella.
24825 2014-05-05  Richard Biener  <rguenther@suse.de>
24827         PR middle-end/61010
24828         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
24829         X & CST away from a CST that is the mask of a mode.
24831 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24833         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
24834         int argument to enum machine_mode.
24835         (picochip_class_max_nregs): Ditto.
24836         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
24837         (picochip_class_max_nregs): Ditto.
24839 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24841         * target.def: Add new target hook.
24842         * doc/tm.texi: Regenerate.
24843         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
24844         * targhooks.c (default_keep_leaf_when_profiled): New function.
24846         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
24847         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
24849 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
24851         PR tree-optimization/60363
24852         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
24853         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
24854         (update_destination_phis): New parameter.
24855         (create_edge_and_update_destination_phis): Ditto.
24856         (ssa_fix_duplicate_block_edges): Pass new arguments.
24857         (thread_single_edge): Ditto.
24859 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
24861         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
24862         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
24863         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
24864         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
24865         Use RS6000_BTM_HARD_FLOAT.
24866         (BU_MISC_2): Likewise.
24867         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24868         RS6000_BTM_HARD_FLOAT.
24869         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
24870         is explicitly used.
24871         (rs6000_invalid_builtin): Add hard floating builtin support.
24872         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
24873         hard float builtins.
24874         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
24876 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24878         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
24879         Add missing function* argument.
24881 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24883         * lra-constraints.c (valid_address_p): Move earlier in file.
24884         Add a constraint argument to the address_info version.
24885         (satisfies_memory_constraint_p): New function.
24886         (satisfies_address_constraint_p): Likewise.
24887         (process_alt_operands, curr_insn_transform): Use them.
24888         (process_address): Pass the constraint to valid_address_p when
24889         checking address operands.
24891 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24893         * config/mips/mips.c (mips_isa_rev): New variable.
24894         (mips_set_architecture): Set it.
24895         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
24896         from mips_isa_rev.
24897         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
24898         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
24899         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
24900         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
24901         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
24902         conditions in terms of mips_isa_rev.
24903         (mips_isa_rev): Declare.
24905 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24907         * config/sh/sh-mem.cc: Use tabs instead of spaces.
24908         (prob_unlikely, prob_likely): Make variables const.
24910 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
24912         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
24914 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24916         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
24918 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24920         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
24921         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
24922         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
24923         functions.
24924         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
24925         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
24926         sh_pass_in_reg_p.
24927         Replace usage of ROUND_REG with sh_round_reg.
24928         Use CEIL instead of ROUND_ADVANCE.
24930 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24932         PR target/61026
24933         * config/sh/sh.c: Include stdlib headers before everything else.
24935 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
24937         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
24938         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
24939         (gimplify_adjust_omp_clauses): Simd region is never
24940         directly nested in combined parallel.  Instead, for linear
24941         with copyin/copyout, if in combined for simd loop, make decl
24942         firstprivate/lastprivate on OMP_FOR.
24943         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
24944         expand_omp_for_static_chunk): When setting endvar, also set
24945         fd->loop.v to the same value.
24947 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24949         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
24951 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
24953         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
24954         expression.
24956 2014-05-02  Marek Polacek  <polacek@redhat.com>
24958         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24960 2014-05-02  Kito Cheng  <kito@0xlab.org>
24962         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24963         to a C expression marco.
24964         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24965         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24966         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24967         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24968         HONOR_REG_ALLOC_ORDER.
24969         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24971 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24973         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24975 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24977         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24979 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
24981         * tree-if-conv.c (is_cond_scalar_reduction): New function.
24982         (convert_scalar_cond_reduction): Likewise.
24983         (predicate_scalar_phi): Add recognition and transformation
24984         of simple conditioanl reduction to be vectorizable.
24986 2014-05-01  Marek Polacek  <polacek@redhat.com>
24988         PR c/43245
24989         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24991 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
24993         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24994         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24995         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24996         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24997         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24998         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24999         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
25000         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
25002 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25004         * config/arc/arc.opt (mlra): Move comment above option name
25005         to avoid mis-parsing as language options.
25007 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25009         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
25010         * config/sol2.h: ... here.
25011         * config/sol2-10.h: Remove.
25013         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
25014         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
25015         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
25016         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
25017         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
25018         * config/sol2.h: ... here.
25019         (SECTION_NAME_FORMAT): Don't redefine.
25020         (STARTFILE_ARCH32_SPEC): Rename to ...
25021         (STARTFILE_ARCH_SPEC): ... this.
25022         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25023         * config/sparc/sol2.h: ... here.
25024         (SECTION_NAME_FORMAT): Don't undef.
25025         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
25026         (SUBTARGET_EXTRA_SPECS): Remove.
25027         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
25029         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
25030         (MD_STARTFILE_PREFIX): Remove.
25031         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
25032         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
25033         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
25034         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
25035         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
25036         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
25037         * config/i386/sol2.h: ... here.
25038         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
25039         * config/i386/sol2-bi.h: Remove.
25040         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
25041         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
25043         * config/i386/t-sol2-64: Rename to ...
25044         * config/i386/t-sol2: ... this.
25045         * config/sparc/t-sol2-64: Rename to ...
25046         * config/sparc/t-sol2: ... this.
25048         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
25049         sol2_tm_file_head, sol2_tm_file_tail.
25050         Include ${cpu_type}/sol2.h before sol2.h.
25051         Remove sol2-10.h.
25052         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
25053         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
25054         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
25055         Reflect i386/t-sol2-64 renaming.
25056         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
25057         Reflect sparc/t-sol2-64 renaming.
25059 2014-04-30  Richard Biener  <rguenther@suse.de>
25061         * passes.c (execute_function_todo): Move TODO_verify_stmts
25062         and TODO_verify_ssa under the TODO_verify_il umbrella.
25063         * tree-ssa.h (verify_ssa): Adjust prototype.
25064         * tree-ssa.c (verify_ssa): Add parameter to tell whether
25065         we should verify SSA operands.
25066         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
25067         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
25068         whether we should verify whether not throwing stmts have EH info.
25069         * graphite-scop-detection.c (create_sese_edges): Adjust.
25070         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
25071         * tree-eh.c (lower_try_finally_switch): Do not add the
25072         default case label twice.
25074 2014-04-30  Marek Polacek  <polacek@redhat.com>
25076         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
25077         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
25078         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
25079         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
25081 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
25083         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
25084         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
25085         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
25086         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
25087         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
25088         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
25089         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
25090         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
25092 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25094         * tree-cfg.c (dump_function_to_file): Dump the return type of
25095         functions, in a line to itself before the function body, mimicking
25096         the layout of a C function.
25098 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
25100         PR tree-optimization/60971
25101         * tree-tailcall.c (process_assignment): Reject conversions which
25102         reduce precision.
25104 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
25106         * calls.c (initialize_argument_information): Always treat
25107         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
25108         (expand_call): Likewise.
25109         (emit_library_call_calue_1): Likewise.
25110         * expr.c (PUSH_ARGS_REVERSED): Do not define.
25111         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
25112         code accordingly.
25114 2014-04-29  Nick Clifton  <nickc@redhat.com>
25116         * config/msp430/msp430.md (umulsidi): Fix typo.
25117         (mulhisi3): Enable even inside interrupt handlers.
25118         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
25119         bigger return address pushed in large mode.
25121 2014-04-29  Nick Clifton  <nickc@redhat.com>
25123         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
25124         (arc_init_reg_tables): Use a machine_mode enum to iterate over
25125         available modes.
25126         * config/m32r/m32r.c (init_reg_tables): Likewise.
25127         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
25128         enum to hold the modes.
25130 2014-04-29  Richard Biener  <rguenther@suse.de>
25132         * dominance.c (free_dominance_info): Add overload with
25133         function parameter.
25134         (dom_info_state): Likewise.
25135         (dom_info_available_p): Likewise.
25136         * basic-block.h (free_dominance_info, dom_info_state,
25137         dom_info_available_p): Declare overloads.
25138         * passes.c (execute_function_todo): Verify that verifiers
25139         don't change dominator info state.  Drop dominator info
25140         for IPA pass invocations.
25141         * cgraph.c (release_function_body): Restore asserts that
25142         dominator information is released.
25144 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
25146         * doc/invoke.texi: Fix typo.
25147         * tree-vrp.c: Fix typos.
25148         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
25150 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25152         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
25154 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
25156         * config/aarch64/aarch64-builtins.c
25157         (aarch64_types_storestruct_lane_qualifiers): New.
25158         (TYPES_STORESTRUCT_LANE): Likewise.
25159         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
25160         (st3_lane): Likewise.
25161         (st4_lane): Likewise.
25162         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
25163         (vec_store_lanesci_lane<mode>): Likewise.
25164         (vec_store_lanesxi_lane<mode>): Likewise.
25165         (aarch64_st2_lane<VQ:mode>): Likewise.
25166         (aarch64_st3_lane<VQ:mode>): Likewise.
25167         (aarch64_st4_lane<VQ:mode>): Likewise.
25168         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
25169         * config/aarch64/arm_neon.h
25170         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
25171         use new macro arguments.
25172         (__ST3_LANE_FUNC): Likewise.
25173         (__ST4_LANE_FUNC): Likewise.
25174         * config/aarch64/iterators.md (V_TWO_ELEM): New.
25175         (V_THREE_ELEM): Likewise.
25176         (V_FOUR_ELEM): Likewise.
25178 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
25180         * doc/gimple.texi: Replace the description of the now-defunct
25181         union gimple_statement_d with a diagram showing the
25182         gimple_statement_base class hierarchy and its relationships to
25183         the GSS_ and GIMPLE_ enums.
25185 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
25187         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
25188         * config/aarch64/aarch64.c
25189         (aarch64_cannot_change_mode_class): Weaken conditions.
25190         (aarch64_modes_tieable_p): New.
25191         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
25193 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
25195         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25196         (loadsync_<mode>): Change mode.
25197         (load_quadpti, store_quadpti): New.
25198         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25199         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25201 2014-04-28  Martin Jambor  <mjambor@suse.cz>
25203         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
25204         same alias type as the original statement.
25205         (subreplacement_assignment_data): New type.
25206         (handle_unscalarized_data_in_subtree): New type of parameter,
25207         generate new memory accesses with same alias type as the original
25208         statement.
25209         (load_assign_lhs_subreplacements): Likewise.
25210         (sra_modify_constructor_assign): Generate new memory accesses with
25211         same alias type as the original statement.
25213 2014-04-28  Richard Biener  <rguenther@suse.de>
25215         * tree-pass.h (TODO_verify_il): Define.
25216         (TODO_verify_all): Complete properly.
25217         * passes.c (execute_function_todo): Move existing loop-closed
25218         SSA verification under TODO_verify_il.
25219         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
25220         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
25221         Fix tree sharing issue.
25223 2014-04-28  Richard Biener  <rguenther@suse.de>
25225         PR middle-end/60092
25226         * builtins.def (DEF_C11_BUILTIN): Add.
25227         (BUILT_IN_ALIGNED_ALLOC): Likewise.
25228         * coretypes.h (enum function_class): Add function_c11_misc.
25229         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
25230         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
25231         (call_may_clobber_ref_p_1): Likewise.
25232         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
25233         (mark_all_reaching_defs_necessary_1): Likewise.
25234         (propagate_necessity): Likewise.
25235         (eliminate_unnecessary_stmts): Likewise.
25236         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
25238 2014-04-28  Richard Biener  <rguenther@suse.de>
25240         * tree-vrp.c (vrp_var_may_overflow): Remove.
25241         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
25242         with overflow immediately bump to one before that value and
25243         let iteration figure out overflow status.
25245 2014-04-28  Richard Biener  <rguenther@suse.de>
25247         * configure.ac: Do valgrind header checks unconditionally.
25248         Add --enable-valgrind-annotations.
25249         * system.h: Guard valgrind header inclusion with
25250         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
25251         * alloc-pool.c (pool_alloc, pool_free): Use
25252         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
25253         to guard possibly dead code.
25254         * config.in: Regenerated.
25255         * configure: Likewise.
25257 2014-04-28  Jeff Law  <law@redhat.com>
25259         PR tree-optimization/60902
25260         * tree-ssa-threadedge.c
25261         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
25262         over real defs when invalidating outputs from statements that do not
25263         produce useful outputs for threading.
25265 2014-04-28  Richard Biener  <rguenther@suse.de>
25267         PR tree-optimization/60979
25268         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
25269         SCOPs that end in a block with a successor with abnormal
25270         predecessors.
25272 2014-04-28  Richard Biener  <rguenther@suse.de>
25274         * tree-pass.h (execute_pass_list): Adjust prototype.
25275         * passes.c (pass_manager::execute_early_local_passes): Adjust.
25276         (do_per_function): Change callback signature, push all actual
25277         work to the callbals.
25278         (do_per_function_toporder): Likewise.
25279         (execute_function_dump): Adjust.
25280         (execute_function_todo): Likewise.
25281         (clear_last_verified): Likewise.
25282         (verify_curr_properties): Likewise.
25283         (update_properties_after_pass): Likewise.
25284         (execute_pass_list_1): Split out from ...
25285         (execute_pass_list): ... here.  Adjust.
25286         (execute_ipa_pass_list): Likewise.
25287         * cgraphunit.c (cgraph_add_new_function): Adjust.
25288         (analyze_function): Likewise.
25289         (expand_function): Likewise.
25290         * cgraph.c (release_function_body): Free dominance info
25291         here instead of asserting it was magically freed elsewhere.
25293 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
25295         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
25296         * configure: Regenerate.
25297         * config/sparc/sparc.opt (muser-mode): New option.
25298         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
25299         for LEON3.
25300         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
25301         * doc/invoke.texi (SPARC options): Document -muser-mode.
25303 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
25305         * cselib.c (find_slot_memmode): Delete.
25306         (cselib_hasher): Change compare_type to a struct.
25307         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
25308         constants.
25309         (preserve_constants_and_equivs): Adjust for new compare_type.
25310         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
25311         (wrap_constant): Delete.
25312         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
25314 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
25316         * doc/install.texi (Building with profile feedback): Remove
25317         outdated sentence.
25319 2014-04-26  Tom de Vries  <tom@codesourcery.com>
25321         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
25322         array accesses.
25324 2014-04-25  Cary Coutant  <ccoutant@google.com>
25326         PR debug/60929
25327         * dwarf2out.c (should_move_die_to_comdat): A type definition
25328         can contain a subprogram definition, but don't move it to a
25329         comdat unit.
25330         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
25331         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
25332         from original DIE.
25333         (clone_tree_hash): Rename to...
25334         (clone_tree_partial): ...this; change callers.  Copy
25335         DW_TAG_subprogram DIEs as declarations.
25336         (copy_decls_walk): Don't copy children of a declaration into a
25337         type unit.
25339 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
25341         PR target/60969
25342         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
25343         alternative 12.
25345 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
25347         * config/arm/predicates.md (call_insn_operand): Add long_call check.
25348         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
25349         reg for long_call.
25350         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
25351         restriction.
25353 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25355         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
25357 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25359         PR tree-optimization/60930
25360         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
25361         creating a multiply candidate by folding two constant
25362         multiplicands when the result overflows.
25364 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
25366         PR tree-optimization/60960
25367         * tree-vect-generic.c (expand_vector_operation): Only call
25368         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
25370 2014-04-25  Tom de Vries  <tom@codesourcery.com>
25372         * expr.c (clobber_reg_mode): New function.
25373         * expr.h (clobber_reg): New function.
25375 2014-04-25  Tom de Vries  <tom@codesourcery.com>
25377         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
25378         clobbers.
25380 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
25381             Tom de Vries  <tom@codesourcery.com>
25383         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
25384         handle.
25385         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
25386         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
25387         new argument to find_all_hard_reg_sets call.
25389 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25391         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
25392         Use HOST_WIDE_INT_C for mask literal.
25393         (aarch_rev16_shleft_mask_imm_p): Likewise.
25395 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
25397         PR target/60941
25398         * config/sparc/sparc.md (ashlsi3_extend): Delete.
25400 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
25402         PR preprocessor/56540
25403         * config/i386/i386-c.c (ix86_target_macros): Define
25404         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
25406 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25408         * configure.ac (tga_func): Remove.
25409         (LIB_TLS_SPEC): Remove.
25410         * configure: Regenerate.
25411         * config.in: Regenerate.
25412         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
25414 2014-04-25  Richard Biener  <rguenther@suse.de>
25416         PR ipa/60912
25417         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
25418         call stmt use/clobber sets during stmt walk instead of
25419         walking the possibly incomplete set of caller edges.
25421 2014-04-25  Richard Biener  <rguenther@suse.de>
25423         PR ipa/60911
25424         * passes.c (apply_ipa_transforms): Inline into only caller ...
25425         (execute_one_pass): ... here.  Properly bring in function
25426         bodies for nodes we want to apply IPA transforms to.
25428 2014-04-24  Cong Hou  <congh@google.com>
25430         PR tree-optimization/60896
25431         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
25432         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
25433         (vect_mark_pattern_stmts): Set the def type of all statements in
25434         PATTERN_DEF_SEQ as vect_internal_def.
25436 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25438         * doc/extend.texi (PowerPC Built-in Functions): Document new
25439         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
25440         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
25442         * config/rs6000/predicates.md (const_0_to_3_operand): New
25443         predicate to match 0..3 integer constants.
25445         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
25446         to support adding miscellaneous builtin functions.
25447         (BU_DFP_MISC_2): Likewise.
25448         (BU_P7_MISC_1): Likewise.
25449         (BU_P7_MISC_2): Likewise.
25450         (BU_P8V_MISC_3): Likewise.
25451         (BU_MISC_1): Likewise.
25452         (BU_MISC_2): Likewise.
25453         (DIVWE): Add extended divide builtin functions.
25454         (DIVWEO): Likewise.
25455         (DIVWEU): Likewise.
25456         (DIVWEUO): Likewise.
25457         (DIVDE): Likewise.
25458         (DIVDEO): Likewise.
25459         (DIVDEU): Likewise.
25460         (DIVDEUO): Likewise.
25461         (DXEX): Add decimal floating-point builtin functions.
25462         (DXEXQ): Likewise.
25463         (DDEDPD): Likewise.
25464         (DDEDPDQ): Likewise.
25465         (DENBCD): Likewise.
25466         (DENBCDQ): Likewise.
25467         (DIEX): Likewise.
25468         (DIEXQ): Likewise.
25469         (DSCLI): Likewise.
25470         (DSCLIQ): Likewise.
25471         (DSCRI): Likewise.
25472         (DSCRIQ): Likewise.
25473         (CDTBCD): Add new BCD builtin functions.
25474         (CBCDTD): Likewise.
25475         (ADDG6S): Likewise.
25476         (BCDADD): Likewise.
25477         (BCDADD_LT): Likewise.
25478         (BCDADD_EQ): Likewise.
25479         (BCDADD_GT): Likewise.
25480         (BCDADD_OV): Likewise.
25481         (BCDSUB): Likewise.
25482         (BCDSUB_LT): Likewise.
25483         (BCDSUB_EQ): Likewise.
25484         (BCDSUB_GT): Likewise.
25485         (BCDSUB_OV): Likewise.
25486         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
25487         (UNPACK_TD): Likewise.
25488         (PACK_TF): Likewise.
25489         (UNPACK_TF): Likewise.
25490         (UNPACK_TF_0): Likewise.
25491         (UNPACK_TF_1): Likewise.
25492         (PACK_V1TI): Likewise.
25493         (UNPACK_V1TI): Likewise.
25495         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25496         support for decimal floating point builtin functions.
25497         (rs6000_expand_ternop_builtin): Add checks for the new builtin
25498         functions that take constant arguments.
25499         (rs6000_invalid_builtin): Add decimal floating point builtin support.
25500         (rs6000_init_builtins): Setup long double, _Decimal64, and
25501         _Decimal128 types for new builtin functions.
25502         (builtin_function_type): Set the unsigned flags appropriately for
25503         the new builtin functions.
25504         (rs6000_opt_masks): Add support for decimal floating point builtin
25505         functions.
25507         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
25508         floating point builtin functions.
25509         (RS6000_BTM_COMMON): Likewise.
25510         (RS6000_BTI_long_double): Likewise.
25511         (RS6000_BTI_dfloat64): Likewise.
25512         (RS6000_BTI_dfloat128): Likewise.
25513         (long_double_type_internal_node): Likewise.
25514         (dfloat64_type_internal_node): Likewise.
25515         (dfloat128_type_internal_node): Likewise.
25517         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
25518         2.07 bcd arithmetic instructions.
25519         (UNSPEC_BCDSUB): Likewise.
25520         (UNSPEC_BCD_OVERFLOW): Likewise.
25521         (UNSPEC_BCD_ADD_SUB): Likewise.
25522         (bcd_add_sub): Likewise.
25523         (BCD_TEST): Likewise.
25524         (bcd<bcd_add_sub>): Likewise.
25525         (bcd<bcd_add_sub>_test): Likewise.
25526         (bcd<bcd_add_sub>_test2): Likewise.
25527         (bcd<bcd_add_sub>_<code>): Likewise.
25528         (peephole2 for combined bcd ops): Likewise.
25530         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
25531         decimal floating point builtin functions.
25532         (UNSPEC_DENBCD): Likewise.
25533         (UNSPEC_DXEX): Likewise.
25534         (UNSPEC_DIEX): Likewise.
25535         (UNSPEC_DSCLI): Likewise.
25536         (UNSPEC_DSCRI): Likewise.
25537         (D64_D128): Likewise.
25538         (dfp_suffix): Likewise.
25539         (dfp_ddedpd_<mode>): Likewise.
25540         (dfp_denbcd_<mode>): Likewise.
25541         (dfp_dxex_<mode>): Likewise.
25542         (dfp_diex_<mode>): Likewise.
25543         (dfp_dscli_<mode>): Likewise.
25544         (dfp_dscri_<mode>): Likewise.
25546         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
25547         builtin functions.
25548         (UNSPEC_CDTBCD): Likewise.
25549         (UNSPEC_CBCDTD): Likewise.
25550         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
25551         (UNSPEC_DIVEO): Likewise.
25552         (UNSPEC_DIVEU): Likewise.
25553         (UNSPEC_DIVEUO): Likewise.
25554         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
25555         pack/unpack 128-bit types.
25556         (UNSPEC_PACK_128BIT): Likewise.
25557         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
25558         (udiv<mode>3): Use idiv_ldiv mode attribute.
25559         (div<mode>3): Likewise.
25560         (addg6s): Add new BCD builtin functions.
25561         (cdtbcd): Likewise.
25562         (cbcdtd): Likewise.
25563         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
25564         (div_extend): Likewise.
25565         (div<div_extend>_<mode>"): Likewise.
25566         (FP128_64): Add support for new builtin functions to pack/unpack
25567         128-bit types.
25568         (unpack<mode>): Likewise.
25569         (unpacktf_0): Likewise.
25570         (unpacktf_1): Likewise.
25571         (unpack<mode>_dm): Likewise.
25572         (unpack<mode>_nodm): Likewise.
25573         (pack<mode>): Likewise.
25574         (unpackv1ti): Likewise.
25575         (packv1ti): Likewise.
25577 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
25579         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
25580         is disabled.
25582 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
25584         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
25585         * gimplify.c (omp_is_private): Change last argument's type to int.
25586         Only diagnose lastprivate if the simd argument is 1, only diagnose
25587         linear if the simd argument is 2.
25588         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
25589         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
25590         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
25591         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
25592         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
25593         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25594         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
25595         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25596         * tree-nested.c (convert_nonlocal_omp_clauses,
25597         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
25599 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
25601         PR target/60822
25602         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
25603         operand 1.
25605 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
25607         * flag-types.h (enum ivar_visibility): Add.
25609 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
25611         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
25612         function * argument.
25614 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
25616         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
25618 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
25619             Tom de Vries  <tom@codesourcery.com>
25621         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
25622         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
25623         reg-note.
25624         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
25625         * emit-rtl.c (try_split): Same.
25627 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
25628             Tom de Vries  <tom@codesourcery.com>
25630         * common.opt (fuse-caller-save): New option.
25632 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
25634         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
25635         elements for big-endian.
25637 2014-04-24  Richard Biener  <rguenther@suse.de>
25639         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
25640         during TER and instead use the sepops interface for expanding
25641         non-GIMPLE_SINGLE_RHS.
25643 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25645         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
25646         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
25648 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25650         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
25651         assembler 64-bit option.
25652         * configure: Regenerate.
25654 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25656         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
25657         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
25658         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
25659         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
25660         (TARGET_CRYPTO): Take TARGET_SIMD into account.
25662 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25664         * config/aarch64/aarch64-builtins.c
25665         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
25666         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
25667         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
25668         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
25669         builtins.
25670         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
25671         (Vrevsuff): New mode attribute.
25673 2014-04-24  Terry Guo  <terry.guo@arm.com>
25675         * config/arm/arm.h (machine_function): Define variable
25676         after_arm_reorg here.
25677         * config/arm/arm.c (after_arm_reorg): Remove the definition.
25678         (arm_split_constant): Update the way to access variable
25679         after_arm_reorg.
25680         (arm_reorg): Ditto.
25681         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
25683 2014-04-23  Tom de Vries  <tom@codesourcery.com>
25685         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
25687 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
25689         * is-a.h: Update comments to reflect the following changes to the
25690         "pointerness" of the API, making the template parameter match the
25691         return type, allowing use of is-a.h with typedefs of pointers.
25692         (is_a_helper::cast): Return a T rather then a pointer to a T, so
25693         that the return type matches the parameter to the is_a_helper.
25694         (as_a): Likewise.
25695         (dyn_cast): Likewise.
25697         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
25698         pointer from the is-a.h API.
25700         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
25701         (is_a_helper <cgraph_node *>::test): ...this, matching change to
25702         is-a.h API.
25703         (is_a_helper <varpool_node>::test): Likewise, convert to...
25704         (is_a_helper <varpool_node *>::test): ...this.
25706         (varpool_first_variable): Update for removal of implicit pointer
25707         from the is-a.h API.
25708         (varpool_next_variable): Likewise.
25709         (varpool_first_static_initializer): Likewise.
25710         (varpool_next_static_initializer): Likewise.
25711         (varpool_first_defined_variable): Likewise.
25712         (varpool_next_defined_variable): Likewise.
25713         (cgraph_first_defined_function): Likewise.
25714         (cgraph_next_defined_function): Likewise.
25715         (cgraph_first_function): Likewise.
25716         (cgraph_next_function): Likewise.
25717         (cgraph_first_function_with_gimple_body): Likewise.
25718         (cgraph_next_function_with_gimple_body): Likewise.
25719         (cgraph_alias_target): Likewise.
25720         (varpool_alias_target): Likewise.
25721         (cgraph_function_or_thunk_node): Likewise.
25722         (varpool_variable_node): Likewise.
25723         (symtab_real_symbol_p): Likewise.
25724         * cgraphunit.c (referred_to_p): Likewise.
25725         (analyze_functions): Likewise.
25726         (handle_alias_pairs): Likewise.
25727         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
25728         * gimple-ssa.h (gimple_vuse_op): Likewise.
25729         (gimple_vdef_op): Likewise.
25730         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
25731         * gimple.c (gimple_build_asm_1): Likewise.
25732         (gimple_build_try): Likewise.
25733         (gimple_build_resx): Likewise.
25734         (gimple_build_eh_dispatch): Likewise.
25735         (gimple_build_omp_for): Likewise.
25736         (gimple_omp_for_set_clauses): Likewise.
25738         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
25739         (is_a_helper <gimple_statement_asm *>::test): ...this.
25740         (is_a_helper <gimple_statement_bind>::test): Convert to...
25741         (is_a_helper <gimple_statement_bind *>::test): ...this.
25742         (is_a_helper <gimple_statement_call>::test): Convert to...
25743         (is_a_helper <gimple_statement_call *>::test): ...this.
25744         (is_a_helper <gimple_statement_catch>::test): Convert to...
25745         (is_a_helper <gimple_statement_catch *>::test): ...this.
25746         (is_a_helper <gimple_statement_resx>::test): Convert to...
25747         (is_a_helper <gimple_statement_resx *>::test): ...this.
25748         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
25749         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
25750         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
25751         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
25752         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
25753         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
25754         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
25755         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
25756         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
25757         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
25758         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
25759         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
25760         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
25761         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
25762         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
25763         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
25764         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
25765         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
25766         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
25767         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
25768         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
25769         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
25770         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
25771         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
25772         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
25773         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
25774         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
25775         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
25776         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
25777         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
25778         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
25779         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
25780         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
25781         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
25782         (is_a_helper <gimple_statement_phi>::test): Convert to...
25783         (is_a_helper <gimple_statement_phi *>::test): ...this.
25784         (is_a_helper <gimple_statement_transaction>::test): Convert to...
25785         (is_a_helper <gimple_statement_transaction *>::test): ...this.
25786         (is_a_helper <gimple_statement_try>::test): Convert to...
25787         (is_a_helper <gimple_statement_try *>::test): ...this.
25788         (is_a_helper <gimple_statement_wce>::test): Convert to...
25789         (is_a_helper <gimple_statement_wce *>::test): ...this.
25790         (is_a_helper <const gimple_statement_asm>::test): Convert to...
25791         (is_a_helper <const gimple_statement_asm *>::test): ...this.
25792         (is_a_helper <const gimple_statement_bind>::test): Convert to...
25793         (is_a_helper <const gimple_statement_bind *>::test): ...this.
25794         (is_a_helper <const gimple_statement_call>::test): Convert to...
25795         (is_a_helper <const gimple_statement_call *>::test): ...this.
25796         (is_a_helper <const gimple_statement_catch>::test): Convert to...
25797         (is_a_helper <const gimple_statement_catch *>::test): ...this.
25798         (is_a_helper <const gimple_statement_resx>::test): Convert to...
25799         (is_a_helper <const gimple_statement_resx *>::test): ...this.
25800         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
25801         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
25802         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
25803         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
25804         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
25805         Convert to...
25806         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
25807         ...this.
25808         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
25809         Convert to...
25810         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
25811         ...this.
25812         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
25813         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
25814         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
25815         to...
25816         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
25817         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
25818         to...
25819         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
25820         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
25821         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
25822         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
25823         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
25824         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
25825         to...
25826         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
25827         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
25828         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
25829         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
25830         to...
25831         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
25832         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
25833         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
25834         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
25835         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
25836         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
25837         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
25838         (is_a_helper <const gimple_statement_phi>::test): Convert to...
25839         (is_a_helper <const gimple_statement_phi *>::test): ...this.
25840         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
25841         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
25842         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
25843         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
25844         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
25845         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
25846         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
25847         to...
25848         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
25849         ...this.
25850         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
25851         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
25853         (gimple_use_ops): Update for removal of implicit pointer from the
25854         is-a.h API.
25855         (gimple_set_use_ops): Likewise.
25856         (gimple_vuse): Likewise.
25857         (gimple_vdef): Likewise.
25858         (gimple_vuse_ptr): Likewise.
25859         (gimple_vdef_ptr): Likewise.
25860         (gimple_set_vuse): Likewise.
25861         (gimple_set_vdef): Likewise.
25862         (gimple_omp_return_set_lhs): Likewise.
25863         (gimple_omp_return_lhs): Likewise.
25864         (gimple_omp_return_lhs_ptr): Likewise.
25865         (gimple_call_fntype): Likewise.
25866         (gimple_call_set_fntype): Likewise.
25867         (gimple_call_set_internal_fn): Likewise.
25868         (gimple_call_use_set): Likewise.
25869         (gimple_call_clobber_set): Likewise.
25870         (gimple_bind_vars): Likewise.
25871         (gimple_bind_set_vars): Likewise.
25872         (gimple_bind_body_ptr): Likewise.
25873         (gimple_bind_set_body): Likewise.
25874         (gimple_bind_add_stmt): Likewise.
25875         (gimple_bind_block): Likewise.
25876         (gimple_bind_set_block): Likewise.
25877         (gimple_asm_ninputs): Likewise.
25878         (gimple_asm_noutputs): Likewise.
25879         (gimple_asm_nclobbers): Likewise.
25880         (gimple_asm_nlabels): Likewise.
25881         (gimple_asm_input_op): Likewise.
25882         (gimple_asm_input_op_ptr): Likewise.
25883         (gimple_asm_output_op): Likewise.
25884         (gimple_asm_output_op_ptr): Likewise.
25885         (gimple_asm_set_output_op): Likewise.
25886         (gimple_asm_clobber_op): Likewise.
25887         (gimple_asm_set_clobber_op): Likewise.
25888         (gimple_asm_label_op): Likewise.
25889         (gimple_asm_set_label_op): Likewise.
25890         (gimple_asm_string): Likewise.
25891         (gimple_catch_types): Likewise.
25892         (gimple_catch_types_ptr): Likewise.
25893         (gimple_catch_handler_ptr): Likewise.
25894         (gimple_catch_set_types): Likewise.
25895         (gimple_catch_set_handler): Likewise.
25896         (gimple_eh_filter_types): Likewise.
25897         (gimple_eh_filter_types_ptr): Likewise.
25898         (gimple_eh_filter_failure_ptr): Likewise.
25899         (gimple_eh_filter_set_types): Likewise.
25900         (gimple_eh_filter_set_failure): Likewise.
25901         (gimple_eh_must_not_throw_fndecl): Likewise.
25902         (gimple_eh_must_not_throw_set_fndecl): Likewise.
25903         (gimple_eh_else_n_body_ptr): Likewise.
25904         (gimple_eh_else_e_body_ptr): Likewise.
25905         (gimple_eh_else_set_n_body): Likewise.
25906         (gimple_eh_else_set_e_body): Likewise.
25907         (gimple_try_eval_ptr): Likewise.
25908         (gimple_try_cleanup_ptr): Likewise.
25909         (gimple_try_set_eval): Likewise.
25910         (gimple_try_set_cleanup): Likewise.
25911         (gimple_wce_cleanup_ptr): Likewise.
25912         (gimple_wce_set_cleanup): Likewise.
25913         (gimple_phi_capacity): Likewise.
25914         (gimple_phi_num_args): Likewise.
25915         (gimple_phi_result): Likewise.
25916         (gimple_phi_result_ptr): Likewise.
25917         (gimple_phi_set_result): Likewise.
25918         (gimple_phi_arg): Likewise.
25919         (gimple_phi_set_arg): Likewise.
25920         (gimple_resx_region): Likewise.
25921         (gimple_resx_set_region): Likewise.
25922         (gimple_eh_dispatch_region): Likewise.
25923         (gimple_eh_dispatch_set_region): Likewise.
25924         (gimple_omp_critical_name): Likewise.
25925         (gimple_omp_critical_name_ptr): Likewise.
25926         (gimple_omp_critical_set_name): Likewise.
25927         (gimple_omp_for_clauses): Likewise.
25928         (gimple_omp_for_clauses_ptr): Likewise.
25929         (gimple_omp_for_set_clauses): Likewise.
25930         (gimple_omp_for_collapse): Likewise.
25931         (gimple_omp_for_index): Likewise.
25932         (gimple_omp_for_index_ptr): Likewise.
25933         (gimple_omp_for_set_index): Likewise.
25934         (gimple_omp_for_initial): Likewise.
25935         (gimple_omp_for_initial_ptr): Likewise.
25936         (gimple_omp_for_set_initial): Likewise.
25937         (gimple_omp_for_final): Likewise.
25938         (gimple_omp_for_final_ptr): Likewise.
25939         (gimple_omp_for_set_final): Likewise.
25940         (gimple_omp_for_incr): Likewise.
25941         (gimple_omp_for_incr_ptr): Likewise.
25942         (gimple_omp_for_set_incr): Likewise.
25943         (gimple_omp_for_pre_body_ptr): Likewise.
25944         (gimple_omp_for_set_pre_body): Likewise.
25945         (gimple_omp_parallel_clauses): Likewise.
25946         (gimple_omp_parallel_clauses_ptr): Likewise.
25947         (gimple_omp_parallel_set_clauses): Likewise.
25948         (gimple_omp_parallel_child_fn): Likewise.
25949         (gimple_omp_parallel_child_fn_ptr): Likewise.
25950         (gimple_omp_parallel_set_child_fn): Likewise.
25951         (gimple_omp_parallel_data_arg): Likewise.
25952         (gimple_omp_parallel_data_arg_ptr): Likewise.
25953         (gimple_omp_parallel_set_data_arg): Likewise.
25954         (gimple_omp_task_clauses): Likewise.
25955         (gimple_omp_task_clauses_ptr): Likewise.
25956         (gimple_omp_task_set_clauses): Likewise.
25957         (gimple_omp_task_child_fn): Likewise.
25958         (gimple_omp_task_child_fn_ptr): Likewise.
25959         (gimple_omp_task_set_child_fn): Likewise.
25960         (gimple_omp_task_data_arg): Likewise.
25961         (gimple_omp_task_data_arg_ptr): Likewise.
25962         (gimple_omp_task_set_data_arg): Likewise.
25963         (gimple_omp_taskreg_clauses): Likewise.
25964         (gimple_omp_taskreg_clauses_ptr): Likewise.
25965         (gimple_omp_taskreg_set_clauses): Likewise.
25966         (gimple_omp_taskreg_child_fn): Likewise.
25967         (gimple_omp_taskreg_child_fn_ptr): Likewise.
25968         (gimple_omp_taskreg_set_child_fn): Likewise.
25969         (gimple_omp_taskreg_data_arg): Likewise.
25970         (gimple_omp_taskreg_data_arg_ptr): Likewise.
25971         (gimple_omp_taskreg_set_data_arg): Likewise.
25972         (gimple_omp_task_copy_fn): Likewise.
25973         (gimple_omp_task_copy_fn_ptr): Likewise.
25974         (gimple_omp_task_set_copy_fn): Likewise.
25975         (gimple_omp_task_arg_size): Likewise.
25976         (gimple_omp_task_arg_size_ptr): Likewise.
25977         (gimple_omp_task_set_arg_size): Likewise.
25978         (gimple_omp_task_arg_align): Likewise.
25979         (gimple_omp_task_arg_align_ptr): Likewise.
25980         (gimple_omp_task_set_arg_align): Likewise.
25981         (gimple_omp_single_clauses): Likewise.
25982         (gimple_omp_single_clauses_ptr): Likewise.
25983         (gimple_omp_single_set_clauses): Likewise.
25984         (gimple_omp_target_clauses): Likewise.
25985         (gimple_omp_target_clauses_ptr): Likewise.
25986         (gimple_omp_target_set_clauses): Likewise.
25987         (gimple_omp_target_child_fn): Likewise.
25988         (gimple_omp_target_child_fn_ptr): Likewise.
25989         (gimple_omp_target_set_child_fn): Likewise.
25990         (gimple_omp_target_data_arg): Likewise.
25991         (gimple_omp_target_data_arg_ptr): Likewise.
25992         (gimple_omp_target_set_data_arg): Likewise.
25993         (gimple_omp_teams_clauses): Likewise.
25994         (gimple_omp_teams_clauses_ptr): Likewise.
25995         (gimple_omp_teams_set_clauses): Likewise.
25996         (gimple_omp_sections_clauses): Likewise.
25997         (gimple_omp_sections_clauses_ptr): Likewise.
25998         (gimple_omp_sections_set_clauses): Likewise.
25999         (gimple_omp_sections_control): Likewise.
26000         (gimple_omp_sections_control_ptr): Likewise.
26001         (gimple_omp_sections_set_control): Likewise.
26002         (gimple_omp_for_set_cond): Likewise.
26003         (gimple_omp_for_cond): Likewise.
26004         (gimple_omp_atomic_store_set_val): Likewise.
26005         (gimple_omp_atomic_store_val): Likewise.
26006         (gimple_omp_atomic_store_val_ptr): Likewise.
26007         (gimple_omp_atomic_load_set_lhs): Likewise.
26008         (gimple_omp_atomic_load_lhs): Likewise.
26009         (gimple_omp_atomic_load_lhs_ptr): Likewise.
26010         (gimple_omp_atomic_load_set_rhs): Likewise.
26011         (gimple_omp_atomic_load_rhs): Likewise.
26012         (gimple_omp_atomic_load_rhs_ptr): Likewise.
26013         (gimple_omp_continue_control_def): Likewise.
26014         (gimple_omp_continue_control_def_ptr): Likewise.
26015         (gimple_omp_continue_set_control_def): Likewise.
26016         (gimple_omp_continue_control_use): Likewise.
26017         (gimple_omp_continue_control_use_ptr): Likewise.
26018         (gimple_omp_continue_set_control_use): Likewise.
26019         (gimple_transaction_body_ptr): Likewise.
26020         (gimple_transaction_label): Likewise.
26021         (gimple_transaction_label_ptr): Likewise.
26022         (gimple_transaction_set_body): Likewise.
26023         (gimple_transaction_set_label): Likewise.
26025         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
26026         * ipa-inline-analysis.c (inline_write_summary): Likewise.
26027         * ipa-ref.c (ipa_record_reference): Likewise.
26028         * ipa-reference.c (analyze_function): Likewise.
26029         (ipa_reference_write_optimization_summary): Likewise.
26030         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
26031         (address_taken_from_non_vtable_p): Likewise.
26032         (comdat_can_be_unshared_p_1): Likewise.
26033         * lto-cgraph.c (lto_output_ref): Likewise.
26034         (add_references): Likewise.
26035         (compute_ltrans_boundary): Likewise.
26036         (output_symtab): Likewise.
26037         (input_ref): Likewise.
26038         (input_cgraph_1): Likewise.
26039         (output_cgraph_opt_summary): Likewise.
26040         * lto-streamer-out.c (lto_output): Likewise.
26041         (output_symbol_p): Likewise.
26042         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
26043         (lsei_start_function_in_partition): Likewise.
26044         (lsei_next_variable_in_partition): Likewise.
26045         (lsei_start_variable_in_partition): Likewise.
26046         * symtab.c (insert_to_assembler_name_hash): Likewise.
26047         (unlink_from_assembler_name_hash): Likewise.
26048         (symtab_unregister_node): Likewise.
26049         (symtab_remove_node): Likewise.
26050         (dump_symtab_node): Likewise.
26051         (verify_symtab_base): Likewise.
26052         (verify_symtab_node): Likewise.
26053         (symtab_make_decl_local): Likewise.
26054         (symtab_alias_ultimate_target): Likewise.
26055         (symtab_resolve_alias): Likewise.
26056         (symtab_get_symbol_partitioning_class): Likewise.
26057         * tree-phinodes.c (allocate_phi_node): Likewise.
26058         (reserve_phi_args_for_new_edge): Likewise.
26059         (remove_phi_args): Likewise.
26060         * varpool.c (varpool_node_for_asm): Likewise.
26061         (varpool_remove_unreferenced_decls): Likewise.
26063 2014-04-23  Jeff Law  <law@redhat.com>
26065         PR tree-optimization/60902
26066         * tree-ssa-threadedge.c
26067         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
26068         invalidate outputs from statements that do not produce useful
26069         outputs for threading.
26071 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
26073         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
26074         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
26075         machine descriptions for Stack Smashing Protector.
26077 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
26079         * aarch64.md (<optab>_rol<mode>3): New pattern.
26080         (<optab>_rolsi3_uxtw): Likewise.
26081         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
26083 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
26085         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
26086         (arm_cortex_a12_tune): Likewise.
26088 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26090         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
26092 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26094         * config/arm/arm.md (arm_rev16si2): New pattern.
26095         (arm_rev16si2_alt): Likewise.
26096         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
26098 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26100         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
26101         (rev16<mode>2_alt): Likewise.
26102         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
26103         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
26104         (aarch_rev16_shleft_mask_imm_p): Likewise.
26105         (aarch_rev16_p_1): Likewise.
26106         (aarch_rev16_p): Likewise.
26107         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
26108         (aarch_rev16_shright_mask_imm_p): Likewise.
26109         (aarch_rev16_shleft_mask_imm_p): Likewise.
26111 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26113         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
26114         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
26115         rev cost.
26116         (cortex_a53_extra_costs): Likewise.
26117         (cortex_a57_extra_costs): Likewise.
26118         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
26119         (cortexa7_extra_costs): Likewise.
26120         (cortexa8_extra_costs): Likewise.
26121         (cortexa12_extra_costs): Likewise.
26122         (cortexa15_extra_costs): Likewise.
26123         (v7m_extra_costs): Likewise.
26124         (arm_new_rtx_costs): Handle BSWAP.
26126 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26128         * config/arm/arm.c (cortexa8_extra_costs): New table.
26129         (arm_cortex_a8_tune): New tuning struct.
26130         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
26132 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26134         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
26136 2014-04-23  Richard Biener  <rguenther@suse.de>
26138         * Makefile.in (OBJS): Remove loop-unswitch.o.
26139         * tree-pass.h (make_pass_rtl_unswitch): Remove.
26140         * passes.def (pass_rtl_unswitch): Likewise.
26141         * loop-init.c (gate_rtl_unswitch): Likewise.
26142         (rtl_unswitch): Likewise.
26143         (pass_data_rtl_unswitch): Likewise.
26144         (pass_rtl_unswitch): Likewise.
26145         (make_pass_rtl_unswitch): Likewise.
26146         * rtl.h (reversed_condition): Likewise.
26147         (compare_and_jump_seq): Likewise.
26148         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
26149         and make static.
26150         * loop-unroll.c (compare_and_jump_seq): Likewise.
26152 2014-04-23  Richard Biener  <rguenther@suse.de>
26154         PR tree-optimization/60903
26155         * tree-ssa-loop-im.c (analyze_memory_references): Remove
26156         commented code block.
26157         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
26158         loop flags to newly created BBs and edges.
26160 2014-04-23  Nick Clifton  <nickc@redhat.com>
26162         * config/msp430/msp430.c (msp430_handle_option): Move function
26163         to msp430-common.c
26164         (msp430_option_override): Simplify mcu and mcpu option handling.
26165         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
26166         support for -mhwmult command line option.
26167         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
26168         -mhwmult command line option.
26169         (msp430_hwmult_enabled): Delete.
26170         (msp43o_output_labelref): Add support for -mhwmult command line option.
26171         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
26172         (umulsidi3): Likewise.
26173         * config/msp430/msp430.opt (mmcu): Add Report attribute.
26174         (mcpu, mlarge, msmall): Likewise.
26175         (mhwmult): New option.
26176         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
26177         prototype.
26178         (msp430_is_f5_mcu): Remove prototype.
26179         (msp430_use_f5_series_hwmult): Add prototype.
26180         * config/msp430/msp430-opts.h: New file.
26181         * common/config/msp430: New directory.
26182         * common/config/msp430/msp430-common.c: New file.
26183         * config.gcc (msp430): Remove target_has_targetm_common.
26184         * doc/invoke.texi: Document -mhwmult command line option.
26186 2014-04-23  Nick Clifton  <nickc@redhat.com>
26188         * config/i386/cygwin.h (ENDFILE_SPEC): Include
26189         default-manifest.o if it can be found in the search path.
26190         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26192 2014-04-23  Terry Guo  <terry.guo@arm.com>
26194         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
26196 2014-04-23  Richard Biener  <rguenther@suse.de>
26198         PR middle-end/60895
26199         * tree-inline.c (declare_return_variable): Use mark_addressable.
26201 2014-04-23  Richard Biener  <rguenther@suse.de>
26203         PR middle-end/60891
26204         * loop-init.c (loop_optimizer_init): Make sure to apply
26205         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
26207 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26209         PR sanitizer/60275
26210         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
26211         New options.
26212         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
26213         if flag_sanitize_undefined_trap_on_error.
26214         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
26215         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
26216         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
26217         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
26218         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
26219         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
26220         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
26221         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
26222         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
26223         * ubsan.c (ubsan_instrument_unreachable): Return
26224         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
26225         (ubsan_expand_null_ifn): Emit __builtin_trap ()
26226         if flag_sanitize_undefined_trap_on_error and
26227         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
26228         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
26229         instrument_bool_enum_load): Emit __builtin_trap () if
26230         flag_sanitize_undefined_trap_on_error and
26231         __builtin_handle_*_abort () if !flag_sanitize_recover.
26232         * doc/invoke.texi (-fsanitize-recover,
26233         -fsanitize-undefined-trap-on-error): Document.
26235 2014-04-22  Christian Bruel  <christian.bruel@st.com>
26237         * config/sh/sh.md (mov<mode>): Replace movQIHI.
26238          Force immediates to SImode.
26240 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
26242         * config/nios2/nios2.md (UNSPEC_ROUND): New.
26243         (lroundsfsi2): New.
26244         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
26245         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
26246         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
26247         (nios2_fpu_insn): Add entry for round.
26248         (N2FPU_NO_ERRNO_P): Define.
26249         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
26250         flag_errno_math.
26251         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
26253 2014-04-22  Richard Henderson  <rth@redhat.com>
26255         * config/aarch64/aarch64 (addti3, subti3): New expanders.
26256         (add<GPI>3_compare0): Remove leading * from name.
26257         (add<GPI>3_carryin): Likewise.
26258         (sub<GPI>3_compare0): Likewise.
26259         (sub<GPI>3_carryin): Likewise.
26260         (<su_optab>mulditi3): New expander.
26261         (multi3): New expander.
26262         (madd<GPI>): Remove leading * from name.
26264 2014-04-22  Martin Jambor  <mjambor@suse.cz>
26266         * cgraphclones.c (cgraph_function_versioning): Copy
26267         ipa_transforms_to_apply instead of asserting it is empty.
26269 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
26271         PR target/60868
26272         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
26273         on count_exp to get mode.
26275 2014-04-22  Andrew Pinski  <apinski@cavium.com>
26277         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
26278         Handle TLS for ILP32.
26279         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
26280         (tlsie_small_<mode>): this and handle PTR.
26281         (tlsie_small_sidi): New pattern.
26282         (tlsle_small): Change to an expand to handle ILP32.
26283         (tlsle_small_<mode>): New pattern.
26284         (tlsdesc_small): Rename to ...
26285         (tlsdesc_small_<mode>): this and handle PTR.
26287 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26289         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
26291 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26293         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26294         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
26295         (aarch64_types_signed_poly_qualifiers): Likewise.
26296         (aarch64_types_unsigned_signed_qualifiers): Likewise.
26297         (aarch64_types_poly_signed_qualifiers): Likewise.
26298         (TYPES_REINTERP_SS): Type macro added.
26299         (TYPES_REINTERP_SU): Likewise.
26300         (TYPES_REINTERP_SP): Likewise.
26301         (TYPES_REINTERP_US): Likewise.
26302         (TYPES_REINTERP_PS): Likewise.
26303         (aarch64_fold_builtin): New expression folding added.
26304         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
26305         Declarations removed.
26306         (REINTERP_SS): Declarations added.
26307         (REINTERP_US): Likewise.
26308         (REINTERP_PS): Likewise.
26309         (REINTERP_SU): Likewise.
26310         (REINTERP_SP): Likewise.
26311         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
26312         (vreinterpretq_p8_f64): Likewise.
26313         (vreinterpret_p16_f64): Likewise.
26314         (vreinterpretq_p16_f64): Likewise.
26315         (vreinterpret_f32_f64): Likewise.
26316         (vreinterpretq_f32_f64): Likewise.
26317         (vreinterpret_f64_f32): Likewise.
26318         (vreinterpret_f64_p8): Likewise.
26319         (vreinterpret_f64_p16): Likewise.
26320         (vreinterpret_f64_s8): Likewise.
26321         (vreinterpret_f64_s16): Likewise.
26322         (vreinterpret_f64_s32): Likewise.
26323         (vreinterpret_f64_s64): Likewise.
26324         (vreinterpret_f64_u8): Likewise.
26325         (vreinterpret_f64_u16): Likewise.
26326         (vreinterpret_f64_u32): Likewise.
26327         (vreinterpret_f64_u64): Likewise.
26328         (vreinterpretq_f64_f32): Likewise.
26329         (vreinterpretq_f64_p8): Likewise.
26330         (vreinterpretq_f64_p16): Likewise.
26331         (vreinterpretq_f64_s8): Likewise.
26332         (vreinterpretq_f64_s16): Likewise.
26333         (vreinterpretq_f64_s32): Likewise.
26334         (vreinterpretq_f64_s64): Likewise.
26335         (vreinterpretq_f64_u8): Likewise.
26336         (vreinterpretq_f64_u16): Likewise.
26337         (vreinterpretq_f64_u32): Likewise.
26338         (vreinterpretq_f64_u64): Likewise.
26339         (vreinterpret_s64_f64): Likewise.
26340         (vreinterpretq_s64_f64): Likewise.
26341         (vreinterpret_u64_f64): Likewise.
26342         (vreinterpretq_u64_f64): Likewise.
26343         (vreinterpret_s8_f64): Likewise.
26344         (vreinterpretq_s8_f64): Likewise.
26345         (vreinterpret_s16_f64): Likewise.
26346         (vreinterpretq_s16_f64): Likewise.
26347         (vreinterpret_s32_f64): Likewise.
26348         (vreinterpretq_s32_f64): Likewise.
26349         (vreinterpret_u8_f64): Likewise.
26350         (vreinterpretq_u8_f64): Likewise.
26351         (vreinterpret_u16_f64): Likewise.
26352         (vreinterpretq_u16_f64): Likewise.
26353         (vreinterpret_u32_f64): Likewise.
26354         (vreinterpretq_u32_f64): Likewise.
26356 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26358         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26359         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
26360         (vreinterpret_p8_s8): Likewise.
26361         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
26362         (vreinterpret_p8_s16): Likewise.
26363         (vreinterpret_p8_s32): Likewise.
26364         (vreinterpret_p8_s64): Likewise.
26365         (vreinterpret_p8_f32): Likewise.
26366         (vreinterpret_p8_u8): Likewise.
26367         (vreinterpret_p8_u16): Likewise.
26368         (vreinterpret_p8_u32): Likewise.
26369         (vreinterpret_p8_u64): Likewise.
26370         (vreinterpret_p8_p16): Likewise.
26371         (vreinterpretq_p8_s8): Likewise.
26372         (vreinterpretq_p8_s16): Likewise.
26373         (vreinterpretq_p8_s32): Likewise.
26374         (vreinterpretq_p8_s64): Likewise.
26375         (vreinterpretq_p8_f32): Likewise.
26376         (vreinterpretq_p8_u8): Likewise.
26377         (vreinterpretq_p8_u16): Likewise.
26378         (vreinterpretq_p8_u32): Likewise.
26379         (vreinterpretq_p8_u64): Likewise.
26380         (vreinterpretq_p8_p16): Likewise.
26381         (vreinterpret_p16_s8): Likewise.
26382         (vreinterpret_p16_s16): Likewise.
26383         (vreinterpret_p16_s32): Likewise.
26384         (vreinterpret_p16_s64): Likewise.
26385         (vreinterpret_p16_f32): Likewise.
26386         (vreinterpret_p16_u8): Likewise.
26387         (vreinterpret_p16_u16): Likewise.
26388         (vreinterpret_p16_u32): Likewise.
26389         (vreinterpret_p16_u64): Likewise.
26390         (vreinterpret_p16_p8): Likewise.
26391         (vreinterpretq_p16_s8): Likewise.
26392         (vreinterpretq_p16_s16): Likewise.
26393         (vreinterpretq_p16_s32): Likewise.
26394         (vreinterpretq_p16_s64): Likewise.
26395         (vreinterpretq_p16_f32): Likewise.
26396         (vreinterpretq_p16_u8): Likewise.
26397         (vreinterpretq_p16_u16): Likewise.
26398         (vreinterpretq_p16_u32): Likewise.
26399         (vreinterpretq_p16_u64): Likewise.
26400         (vreinterpretq_p16_p8): Likewise.
26401         (vreinterpret_f32_s8): Likewise.
26402         (vreinterpret_f32_s16): Likewise.
26403         (vreinterpret_f32_s32): Likewise.
26404         (vreinterpret_f32_s64): Likewise.
26405         (vreinterpret_f32_u8): Likewise.
26406         (vreinterpret_f32_u16): Likewise.
26407         (vreinterpret_f32_u32): Likewise.
26408         (vreinterpret_f32_u64): Likewise.
26409         (vreinterpret_f32_p8): Likewise.
26410         (vreinterpret_f32_p16): Likewise.
26411         (vreinterpretq_f32_s8): Likewise.
26412         (vreinterpretq_f32_s16): Likewise.
26413         (vreinterpretq_f32_s32): Likewise.
26414         (vreinterpretq_f32_s64): Likewise.
26415         (vreinterpretq_f32_u8): Likewise.
26416         (vreinterpretq_f32_u16): Likewise.
26417         (vreinterpretq_f32_u32): Likewise.
26418         (vreinterpretq_f32_u64): Likewise.
26419         (vreinterpretq_f32_p8): Likewise.
26420         (vreinterpretq_f32_p16): Likewise.
26421         (vreinterpret_s64_s8): Likewise.
26422         (vreinterpret_s64_s16): Likewise.
26423         (vreinterpret_s64_s32): Likewise.
26424         (vreinterpret_s64_f32): Likewise.
26425         (vreinterpret_s64_u8): Likewise.
26426         (vreinterpret_s64_u16): Likewise.
26427         (vreinterpret_s64_u32): Likewise.
26428         (vreinterpret_s64_u64): Likewise.
26429         (vreinterpret_s64_p8): Likewise.
26430         (vreinterpret_s64_p16): Likewise.
26431         (vreinterpretq_s64_s8): Likewise.
26432         (vreinterpretq_s64_s16): Likewise.
26433         (vreinterpretq_s64_s32): Likewise.
26434         (vreinterpretq_s64_f32): Likewise.
26435         (vreinterpretq_s64_u8): Likewise.
26436         (vreinterpretq_s64_u16): Likewise.
26437         (vreinterpretq_s64_u32): Likewise.
26438         (vreinterpretq_s64_u64): Likewise.
26439         (vreinterpretq_s64_p8): Likewise.
26440         (vreinterpretq_s64_p16): Likewise.
26441         (vreinterpret_u64_s8): Likewise.
26442         (vreinterpret_u64_s16): Likewise.
26443         (vreinterpret_u64_s32): Likewise.
26444         (vreinterpret_u64_s64): Likewise.
26445         (vreinterpret_u64_f32): Likewise.
26446         (vreinterpret_u64_u8): Likewise.
26447         (vreinterpret_u64_u16): Likewise.
26448         (vreinterpret_u64_u32): Likewise.
26449         (vreinterpret_u64_p8): Likewise.
26450         (vreinterpret_u64_p16): Likewise.
26451         (vreinterpretq_u64_s8): Likewise.
26452         (vreinterpretq_u64_s16): Likewise.
26453         (vreinterpretq_u64_s32): Likewise.
26454         (vreinterpretq_u64_s64): Likewise.
26455         (vreinterpretq_u64_f32): Likewise.
26456         (vreinterpretq_u64_u8): Likewise.
26457         (vreinterpretq_u64_u16): Likewise.
26458         (vreinterpretq_u64_u32): Likewise.
26459         (vreinterpretq_u64_p8): Likewise.
26460         (vreinterpretq_u64_p16): Likewise.
26461         (vreinterpret_s8_s16): Likewise.
26462         (vreinterpret_s8_s32): Likewise.
26463         (vreinterpret_s8_s64): Likewise.
26464         (vreinterpret_s8_f32): Likewise.
26465         (vreinterpret_s8_u8): Likewise.
26466         (vreinterpret_s8_u16): Likewise.
26467         (vreinterpret_s8_u32): Likewise.
26468         (vreinterpret_s8_u64): Likewise.
26469         (vreinterpret_s8_p8): Likewise.
26470         (vreinterpret_s8_p16): Likewise.
26471         (vreinterpretq_s8_s16): Likewise.
26472         (vreinterpretq_s8_s32): Likewise.
26473         (vreinterpretq_s8_s64): Likewise.
26474         (vreinterpretq_s8_f32): Likewise.
26475         (vreinterpretq_s8_u8): Likewise.
26476         (vreinterpretq_s8_u16): Likewise.
26477         (vreinterpretq_s8_u32): Likewise.
26478         (vreinterpretq_s8_u64): Likewise.
26479         (vreinterpretq_s8_p8): Likewise.
26480         (vreinterpretq_s8_p16): Likewise.
26481         (vreinterpret_s16_s8): Likewise.
26482         (vreinterpret_s16_s32): Likewise.
26483         (vreinterpret_s16_s64): Likewise.
26484         (vreinterpret_s16_f32): Likewise.
26485         (vreinterpret_s16_u8): Likewise.
26486         (vreinterpret_s16_u16): Likewise.
26487         (vreinterpret_s16_u32): Likewise.
26488         (vreinterpret_s16_u64): Likewise.
26489         (vreinterpret_s16_p8): Likewise.
26490         (vreinterpret_s16_p16): Likewise.
26491         (vreinterpretq_s16_s8): Likewise.
26492         (vreinterpretq_s16_s32): Likewise.
26493         (vreinterpretq_s16_s64): Likewise.
26494         (vreinterpretq_s16_f32): Likewise.
26495         (vreinterpretq_s16_u8): Likewise.
26496         (vreinterpretq_s16_u16): Likewise.
26497         (vreinterpretq_s16_u32): Likewise.
26498         (vreinterpretq_s16_u64): Likewise.
26499         (vreinterpretq_s16_p8): Likewise.
26500         (vreinterpretq_s16_p16): Likewise.
26501         (vreinterpret_s32_s8): Likewise.
26502         (vreinterpret_s32_s16): Likewise.
26503         (vreinterpret_s32_s64): Likewise.
26504         (vreinterpret_s32_f32): Likewise.
26505         (vreinterpret_s32_u8): Likewise.
26506         (vreinterpret_s32_u16): Likewise.
26507         (vreinterpret_s32_u32): Likewise.
26508         (vreinterpret_s32_u64): Likewise.
26509         (vreinterpret_s32_p8): Likewise.
26510         (vreinterpret_s32_p16): Likewise.
26511         (vreinterpretq_s32_s8): Likewise.
26512         (vreinterpretq_s32_s16): Likewise.
26513         (vreinterpretq_s32_s64): Likewise.
26514         (vreinterpretq_s32_f32): Likewise.
26515         (vreinterpretq_s32_u8): Likewise.
26516         (vreinterpretq_s32_u16): Likewise.
26517         (vreinterpretq_s32_u32): Likewise.
26518         (vreinterpretq_s32_u64): Likewise.
26519         (vreinterpretq_s32_p8): Likewise.
26520         (vreinterpretq_s32_p16): Likewise.
26521         (vreinterpret_u8_s8): Likewise.
26522         (vreinterpret_u8_s16): Likewise.
26523         (vreinterpret_u8_s32): Likewise.
26524         (vreinterpret_u8_s64): Likewise.
26525         (vreinterpret_u8_f32): Likewise.
26526         (vreinterpret_u8_u16): Likewise.
26527         (vreinterpret_u8_u32): Likewise.
26528         (vreinterpret_u8_u64): Likewise.
26529         (vreinterpret_u8_p8): Likewise.
26530         (vreinterpret_u8_p16): Likewise.
26531         (vreinterpretq_u8_s8): Likewise.
26532         (vreinterpretq_u8_s16): Likewise.
26533         (vreinterpretq_u8_s32): Likewise.
26534         (vreinterpretq_u8_s64): Likewise.
26535         (vreinterpretq_u8_f32): Likewise.
26536         (vreinterpretq_u8_u16): Likewise.
26537         (vreinterpretq_u8_u32): Likewise.
26538         (vreinterpretq_u8_u64): Likewise.
26539         (vreinterpretq_u8_p8): Likewise.
26540         (vreinterpretq_u8_p16): Likewise.
26541         (vreinterpret_u16_s8): Likewise.
26542         (vreinterpret_u16_s16): Likewise.
26543         (vreinterpret_u16_s32): Likewise.
26544         (vreinterpret_u16_s64): Likewise.
26545         (vreinterpret_u16_f32): Likewise.
26546         (vreinterpret_u16_u8): Likewise.
26547         (vreinterpret_u16_u32): Likewise.
26548         (vreinterpret_u16_u64): Likewise.
26549         (vreinterpret_u16_p8): Likewise.
26550         (vreinterpret_u16_p16): Likewise.
26551         (vreinterpretq_u16_s8): Likewise.
26552         (vreinterpretq_u16_s16): Likewise.
26553         (vreinterpretq_u16_s32): Likewise.
26554         (vreinterpretq_u16_s64): Likewise.
26555         (vreinterpretq_u16_f32): Likewise.
26556         (vreinterpretq_u16_u8): Likewise.
26557         (vreinterpretq_u16_u32): Likewise.
26558         (vreinterpretq_u16_u64): Likewise.
26559         (vreinterpretq_u16_p8): Likewise.
26560         (vreinterpretq_u16_p16): Likewise.
26561         (vreinterpret_u32_s8): Likewise.
26562         (vreinterpret_u32_s16): Likewise.
26563         (vreinterpret_u32_s32): Likewise.
26564         (vreinterpret_u32_s64): Likewise.
26565         (vreinterpret_u32_f32): Likewise.
26566         (vreinterpret_u32_u8): Likewise.
26567         (vreinterpret_u32_u16): Likewise.
26568         (vreinterpret_u32_u64): Likewise.
26569         (vreinterpret_u32_p8): Likewise.
26570         (vreinterpret_u32_p16): Likewise.
26571         (vreinterpretq_u32_s8): Likewise.
26572         (vreinterpretq_u32_s16): Likewise.
26573         (vreinterpretq_u32_s32): Likewise.
26574         (vreinterpretq_u32_s64): Likewise.
26575         (vreinterpretq_u32_f32): Likewise.
26576         (vreinterpretq_u32_u8): Likewise.
26577         (vreinterpretq_u32_u16): Likewise.
26578         (vreinterpretq_u32_u64): Likewise.
26579         (vreinterpretq_u32_p8): Likewise.
26580         (vreinterpretq_u32_p16): Likewise.
26582 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26584         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
26585         Pattern extended.
26586         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
26587         (sqabs): Likewise.
26588         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
26589         (vqnegd_s64): Likewise.
26590         (vqabs_s64): Likewise.
26591         (vqabsd_s64): Likewise.
26593 2014-04-22  Richard Henderson  <rth@redhat.com>
26595         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
26596         computation to the top of the loop.
26598 2014-04-22  Renlin  <renlin.li@arm.com>
26599             Jiong Wang  <jiong.wang@arm.com>
26601         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
26602         * config/aarch64/aarch64.c (aarch64_layout_frame)
26603         (aarch64_initial_elimination_offset): Likewise.
26605 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26607         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
26608         Fix indentation.
26610 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
26612         * machmode.h (bitwise_mode_for_mode): Declare.
26613         * stor-layout.h (bitwise_type_for_mode): Likewise.
26614         * stor-layout.c (bitwise_mode_for_mode): New function.
26615         (bitwise_type_for_mode): Likewise.
26616         * builtins.c (fold_builtin_memory_op): Use it instead of
26617         int_mode_for_mode and build_nonstandard_integer_type.
26619 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26621         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
26622         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
26623         (*-*-solaris2*): Simplify.
26624         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
26625         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
26626         *-*-solaris2.9* handling.
26628         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
26629         as bug.
26630         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
26631         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
26632         handling, simplify.
26633         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
26634         * configure: Regenerate.
26636         * config/i386/sol2-9.h: Remove.
26638         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
26639         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
26640         Remove Solaris 9 references.
26642 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
26644         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
26645         (floatuns<GPI:mode><GPF:mode>2): Remove.
26646         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
26647         and floatuns conversions.
26648         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
26649         and floatuns conversions.
26650         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
26651         (w1,w2): New mode attributes for inequal width conversions.
26653 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
26655         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
26656         the output asm format.
26658 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
26660         * config/aarch64/aarch64-simd.md
26661         (aarch64_cm<optab>di): Always split.
26662         (*aarch64_cm<optab>di): New.
26663         (aarch64_cmtstdi): Always split.
26664         (*aarch64_cmtstdi): New.
26666 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26668         PR tree-optimization/60823
26669         * omp-low.c (ipa_simd_modify_function_body): Go through
26670         all SSA_NAMEs and for those refering to vector arguments
26671         which are going to be replaced adjust SSA_NAME_VAR and,
26672         if it is a default definition, change it into a non-default
26673         definition assigned at the beginning of function from new_decl.
26674         (ipa_simd_modify_stmt_ops): Rewritten.
26675         * tree-dfa.c (set_ssa_default_def): When removing default def,
26676         check for NULL loc instead of NULL *loc.
26678 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26680         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
26681         restrictions on core registers for DImode values in Thumb2.
26683 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26685         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
26686         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
26688 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26690         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
26691         (*iordi_notzesidi_di): Likewise.
26692         (*iordi_notsesidi_di): Likewise.
26694 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26696         * config/arm/arm-protos.h (tune_params): New struct members.
26697         * config/arm/arm.c: Initialise tune_params per processor.
26698         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
26699         for speed, based on new tune_params.
26701 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26703         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
26704         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
26705         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
26706         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
26707         * config/aarch64/arm_neon.h (vrnd_f64): Added.
26708         (vrnda_f64): Likewise.
26709         (vrndi_f64): Likewise.
26710         (vrndm_f64): Likewise.
26711         (vrndn_f64): Likewise.
26712         (vrndp_f64): Likewise.
26713         (vrndx_f64): Likewise.
26715 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26717         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
26718         GET_MODE_SIZE argument is enum machine_mode.
26720 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26722         PR target/60910
26723         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
26724         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
26726 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
26728         PR middle-end/60281
26729         * asan.c (asan_emit_stack_protection): Force the base to align to
26730         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
26731         appropriate bits if STRICT_ALIGNMENT.
26732         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
26733         when asan is on.
26734         (expand_used_vars): Leave a space in the stack frame for alignment
26735         if STRICT_ALIGNMENT.
26737 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
26739         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
26740         than a gimple.
26741         (gimple_store_p): Likewise.
26742         (gimple_assign_load_p): Likewise.
26743         (gimple_assign_cast_p): Likewise.
26744         (gimple_clobber_p): Likewise.
26746         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
26747         rather than a gimple.
26748         (gimple_assign_cast_p): Likewise.
26750 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26752         PR target/60735
26753         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
26754         If mode is DDmode and TARGET_E500_DOUBLE allow move.
26756         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
26757         more debug information for E500 if -mdebug=reg.
26759 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
26761         PR target/60909
26762         * config/i386/i386.c (ix86_expand_builtin)
26763         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
26764         register for target RTX.
26765         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
26767 2014-04-18  Cong Hou  <congh@google.com>
26769         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
26770         the widen-mult pattern by handling two operands with different sizes,
26771         and operands whose size is smaller than half of the result type.
26773 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26775         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
26776         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
26777         (do_estimate_edge_time): Compute it.
26778         * ipa-inline.c (want_inline_small_function_p): Bypass
26779         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
26781 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26783         * ipa-inline.c (spec_rem): New static variable.
26784         (dump_overall_stats): New function.
26785         (dump_inline_stats): New function.
26787 2014-04-18  Richard Henderson  <rth@redhat.com>
26789         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
26790         to GET_MODE_SIZE, not a reg_class_t.
26792 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26794         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
26795         (vsx_xxmrglw_<mode>): Likewise.
26797 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
26799         PR target/60876
26800         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
26801         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
26802         (rs6000_init_hard_regno_mode_ok): Likewise.
26804 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
26806         * ipa-inline.c (inline_small_functions): Account only non-cold
26807         functions.
26808         * doc/invoke.texi (inline-unit-growth): Update documentation.
26810 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
26812         * config/rs6000/rs6000.md (addti3, subti3): New.
26814 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
26816         PR target/60863
26817         * config/i386/i386.c (ix86_expand_clear): Remove outdated
26818         comment.  Check optimize_insn_for_size_p instead of
26819         optimize_insn_for_speed_p.
26821 2014-04-17  Martin Jambor  <mjambor@suse.cz>
26823         * gimple-iterator.c (gsi_start_edge): New function.
26824         * gimple-iterator.h (gsi_start_edge): Declare.
26825         * tree-sra.c (single_non_eh_succ): New function.
26826         (disqualify_ops_if_throwing_stmt): Renamed to
26827         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
26828         having one non-EH successor BB.
26829         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
26830         generate loads into replacements.
26831         (sra_modify_assign): Likewise and and also use the simple path for
26832         such statements.
26833         (sra_modify_function_body): Commit statements on edges.
26835 2014-04-17  Richard Biener  <rguenther@suse.de>
26837         PR middle-end/60849
26838         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
26839         comparison results and add clarifying comment.
26841 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26843         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
26844         (blank_mode): Initialize it.
26845         (emit_mode_size_inline, emit_mode_nunits_inline,
26846         emit_mode_inner_inline): New functions.
26847         (emit_insn_modes_h): Call them and surround their output with
26848         #if GCC_VERSION >= 4001 ... #endif.
26849         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
26850         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
26851         mode_* arrays if the argument is __builtin_constant_p.
26852         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
26853         is enum machine_mode.
26855 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26857         * passes.c (opt_pass::execute): Adjust.
26858         (pass_manager::execute_pass_mode_switching): Likewise.
26859         (early_local_passes::execute): Likewise.
26860         (execute_one_pass): Pass cfun to the pass's execute method.
26861         * tree-pass.h (opt_pass::execute): Add function * argument.
26862         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26863         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26864         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26865         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26866         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26867         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
26868         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
26869         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26870         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26871         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
26872         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
26873         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
26874         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
26875         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
26876         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26877         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26878         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26879         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
26880         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
26881         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26882         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26883         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26884         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26885         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26886         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26887         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26888         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26889         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26890         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26891         Adjust.
26893 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26895         * passes.c (opt_pass::gate): Take function * argument.
26896         (gate_all_early_local_passes): Merge into
26897         (early_local_passes::gate): this.
26898         (gate_all_early_optimizations): Merge into
26899         (all_early_optimizations::gate): this.
26900         (gate_all_optimizations): Mege into
26901         (all_optimizations::gate): this.
26902         (gate_all_optimizations_g): Merge into
26903         (all_optimizations_g::gate): this.
26904         (gate_rest_of_compilation): Mege into
26905         (rest_of_compilation::gate): this.
26906         (gate_postreload): Merge into
26907         (postreload::gate): this.
26908         (dump_one_pass): Pass cfun to the pass's gate method.
26909         (execute_ipa_summary_passes): Likewise.
26910         (execute_one_pass): Likewise.
26911         (ipa_write_summaries_2): Likewise.
26912         (ipa_write_optimization_summaries_1): Likewise.
26913         (ipa_read_summaries_1): Likewise.
26914         (ipa_read_optimization_summaries_1): Likewise.
26915         (execute_ipa_stmt_fixups): Likewise.
26916         * tree-pass.h (opt_pass::gate): Add function * argument.
26917         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
26918         combine-stack-adj.c, combine.c, compare-elim.c,
26919         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26920         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
26921         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
26922         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
26923         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26924         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26925         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26926         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
26927         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26928         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
26929         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26930         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26931         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
26932         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26933         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26934         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26935         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26936         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26937         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26938         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26939         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26940         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26941         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
26942         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
26943         var-tracking.c, vtable-verify.c, web.c: Adjust.
26945 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26947         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
26948         * configure: Regenerate.
26950 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26952         * passes.c (dump_one_pass): don't check pass->has_gate.
26953         (execute_ipa_summary_passes): Likewise.
26954         (execute_one_pass): Likewise.
26955         (ipa_write_summaries_2): Likewise.
26956         (ipa_write_optimization_summaries_1): Likewise.
26957         (ipa_read_optimization_summaries_1): Likewise.
26958         (execute_ipa_stmt_fixups): Likewise.
26959         * tree-pass.h (pass_data::has_gate): Remove.
26960         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26961         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26962         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26963         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26964         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26965         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26966         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26967         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26968         gimple-low.c, gimple-ssa-isolate-paths.c,
26969         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26970         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26971         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26972         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26973         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26974         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26975         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26976         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26977         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26978         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26979         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26980         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26981         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26982         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26983         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26984         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26985         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26986         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26987         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26988         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26989         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26990         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26991         Adjust.
26993 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26995         * pass_manager.h (pass_manager::register_dump_files_1): Remove
26996         declaration.
26997         * passes.c (pass_manager::register_dump_files_1): Merge into
26998         (pass_manager::register_dump_files): this, and remove its handling of
26999         properties since the pass always has the properties anyway.
27000         (pass_manager::pass_manager): Adjust.
27002 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27004         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
27005         * passes.c (pass_manager::register_dump_files_1): Remove dead code
27006         dealing with properties.
27007         (pass_manager::register_dump_files): Adjust.
27009 2014-03-20  Mark Wielaard  <mjw@redhat.com>
27011         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
27012         then represent the bound as normal constant value.
27014 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
27016         PR target/60847
27017         Forward port from 4.8 branch
27018         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
27020         * config/i386/bmiintrin.h (_blsi_u32): New.
27021         (_blsi_u64): Ditto.
27022         (_blsr_u32): Ditto.
27023         (_blsr_u64): Ditto.
27024         (_blsmsk_u32): Ditto.
27025         (_blsmsk_u64): Ditto.
27026         (_tzcnt_u32): Ditto.
27027         (_tzcnt_u64): Ditto.
27029 2014-04-17  Kito Cheng  <kito@0xlab.org>
27031         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
27033 2014-04-17  Richard Biener  <rguenther@suse.de>
27035         PR middle-end/60849
27036         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
27037         boolean results for comparisons.
27039 2014-04-17  Richard Biener  <rguenther@suse.de>
27041         PR tree-optimization/60836
27042         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
27043         initial PHI args to be gimple values.
27045 2014-04-17  Richard Biener  <rguenther@suse.de>
27047         PR tree-optimization/60841
27048         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
27049         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
27050         of stmts to SLP build.
27051         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
27052         (vect_analyze_slp): Likewise.
27053         (vect_analyze_slp_instance): Likewise.
27054         (vect_build_slp_tree): Limit overall SLP tree growth.
27055         * tree-vectorizer.h (vect_analyze_data_refs,
27056         vect_analyze_slp): Adjust prototypes.
27058 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27060         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
27061         Silvermont.
27063 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27065         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
27066         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
27067         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
27068         for TARGET_SLOW_PSHUFB
27070 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27072         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
27073         * config/i386/i386.c (intel_cost): Ditto.
27075 2014-04-17  Joey Ye  <joey.ye@arm.com>
27077         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
27079 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27081         * opts.c (common_handle_option): Disable -fipa-reference coorectly
27082         with -fuse-profile.
27084 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27086         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
27087         (type_all_derivations_known_p): New predicate.
27088         (type_all_ctors_visible_p): New predicate.
27089         (type_possibly_instantiated_p): New predicate.
27090         (get_odr_type): Compute all_derivations_known.
27091         (dump_odr_type): Dump the flag.
27092         (maybe_record_type): Cleanup.
27093         (record_target_from_binfo): Add bases_to_consider array;
27094         record bases for types w/o instances and skip CXX destructor.
27095         (possible_polymorphic_call_targets_1): Add bases_to_consider
27096         and consider_construction parameters; check if type may have instance.
27097         (get_polymorphic_call_info): Set maybe_in_construction to true
27098         when we know nothing.
27099         (record_targets_from_bases): Skip CXX destructors; they are
27100         never called for types in construction.
27101         (possible_polymorphic_call_targets): Do not record target when
27102         type may not have instance.
27104 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27106         PR ipa/60854
27107         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
27108         external aliases alive, too.
27110 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
27112         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
27113         definition.
27115 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
27117         * final.c (compute_alignments): Do not apply loop alignment to a block
27118         falling through to the exit.
27120 2014-04-16  Catherine Moore  <clm@codesourcery.com>
27122         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
27123         Adjust constraints for microMIPS store patterns.
27125 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
27127         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
27129 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
27131         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
27132         (append_use): Run at -O0.
27133         (append_vdef): Likewise.
27134         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
27135         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
27137 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
27139         PR tree-optimization/60844
27140         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
27141         (propagate_op_to_single_use, remove_visited_stmt_chain,
27142         linearize_expr, repropagate_negates, reassociate_bb): Use it
27143         instead of gsi_remove.
27145 2014-04-16  Martin Jambor  <mjambor@suse.cz>
27147         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
27148         ipa_transforms_to_apply.
27149         (cgraph_function_versioning): Assert that old_node has empty
27150         ipa_transforms_to_apply.
27151         * trans-mem.c (ipa_tm_create_version): Likewise.
27152         * tree-inline.c (tree_function_versioning): Do not duplicate
27153         ipa_transforms_to_apply.
27155 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27157         PR target/60817
27158         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
27159         x86_64-*-* cases.
27160         Pass necessary as flags on 64-bit Solaris/x86.
27161         Use lowercase relocs for x86_64-*-*.
27162         * configure: Regenerate.
27164 2014-04-15  Jan Hubicka  <jh@suse.cz>
27166         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
27167         (maybe_record_node, likely_target_p): Use it.
27169 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27171         PR target/60839
27172         Revert following patch
27174         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27176         PR target/60735
27177         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27178         software floating point or no floating point registers, do not
27179         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27180         in GPRs that occurs after we tested for GPRs that would never be
27181         true.
27183         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27184         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27185         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27186         specifically allow DDmode, since that does not use the SPE SIMD
27187         instructions.
27189 2014-03-21  Mark Wielaard  <mjw@redhat.com>
27191         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
27192         as unsigned or int depending on type and value used.
27194 2014-04-15  Richard Biener  <rguenther@suse.de>
27196         PR rtl-optimization/56965
27197         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
27198         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
27199         ... here.
27200         * alias.c (true_dependence_1): Do not call
27201         nonoverlapping_component_refs_p.
27202         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
27203         nonoverlapping_component_refs_p.
27204         (indirect_refs_may_alias_p): Likewise.
27206 2014-04-15  Teresa Johnson  <tejohnson@google.com>
27208         * cfg.c (dump_bb_info): Fix flags check.
27209         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
27211 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27213         PR rtl-optimization/60663
27214         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
27215         avoid 0 cost.
27217 2014-04-15  Richard Biener  <rguenther@suse.de>
27219         * lto-streamer.h (LTO_major_version): Bump to 4.
27221 2014-04-15  Richard Biener  <rguenther@suse.de>
27223         * common.opt (lto_partition_model): New enum.
27224         (flto-partition=): Merge separate options with a single with argument,
27225         add -flto-partition=one support.
27226         * flag-types.h (enum lto_partition_model): Declare.
27227         * opts.c (finish_options): Remove duplicate -flto-partition=
27228         option check.
27229         * lto-wrapper.c (run_gcc): Adjust.
27231 2014-04-15  Richard Biener  <rguenther@suse.de>
27233         * alias.c (ncr_compar): New function.
27234         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
27236 2014-04-15  Richard Biener  <rguenther@suse.de>
27238         * alias.c (record_component_aliases): Do not walk BINFOs.
27240 2014-04-15  Richard Biener  <rguenther@suse.de>
27242         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27243         Add struct function argument and adjust.
27244         (find_func_aliases_for_call): Likewise.
27245         (find_func_aliases): Likewise.
27246         (find_func_clobbers): Likewise.
27247         (intra_create_variable_infos): Likewise.
27248         (compute_points_to_sets): Likewise.
27249         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
27251 2014-04-15  Richard Biener  <rguenther@suse.de>
27253         * tree.c (iterative_hash_expr): Use enum tree_code_class
27254         to store TREE_CODE_CLASS.
27255         (tree_block): Likewise.
27256         (tree_set_block): Likewise.
27257         * tree.h (fold_build_pointer_plus_loc): Use
27258         convert_to_ptrofftype_loc.
27260 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
27262         PR plugins/59335
27263         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
27264         added in 4.9.
27266 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
27268         * cfgloop.h (struct loop): Move force_vectorize down.
27269         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
27270         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
27271         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
27272         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
27273         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
27274         * tree-core.h (enum annot_expr_kind): Add new kind values.
27275         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
27276         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
27277         kinds.
27278         * tree.def (ANNOTATE_EXPR): Tweak comment.
27280 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27282         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
27283         cxa_pure_virtual).
27285 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
27287         * tree.h (TYPE_IDENTIFIER): Declare.
27288         * tree.c (subrange_type_for_debug_p): Use it.
27289         * godump.c (go_format_type): Likewise.
27290         * dwarf2out.c (is_cxx_auto, modified_type_die,
27291         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
27292         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
27294 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27296         PR lto/60820
27297         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
27299 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
27301         * config/i386/i386.c (examine_argument): Return bool.  Return true if
27302         parameter should be passed in memory.
27303         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
27304         (construct_container): Update calls to examine_argument.
27305         (function_arg_advance_64): Ditto.
27306         (return_in_memory_32): Merge with ix86_return_in_memory.
27307         (return_in_memory_64): Ditto.
27308         (return_in_memory_ms_64): Ditto.
27310 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27312         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
27313         * coverage.c (coverage_compute_profile_id): Handle externally visible
27314         symbols.
27316 2014-04-14  Martin Jambor  <mjambor@suse.cz>
27318         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
27319         DECL_DISREGARD_INLINE_LIMITS functions.
27321 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27323         PR target/60827
27324         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
27326 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27328         PR target/60827
27329         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
27330         optimize_insn_for_speed_p instead of
27331         optimize_function_for_speed_p.
27333 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
27335         * doc/invoke.texi (free): Document AArch64.
27337 2014-04-14  Richard Biener  <rguenther@suse.de>
27339         PR tree-optimization/60042
27340         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
27341         (insert_into_preds_of_block): Do not prevent PHI insertion
27342         for REFERENCE exprs here ...
27343         (eliminate_dom_walker::before_dom_children): ... but prevent
27344         their use here under similar conditions when applied to the
27345         IL after PRE optimizations.
27347 2014-04-14  Richard Biener  <rguenther@suse.de>
27349         * passes.def: Move early points-to after early SRA.
27351 2014-04-14  Richard Biener  <rguenther@suse.de>
27353         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
27354         check for which sign-changes we allow when forwarding
27355         a converted value into a switch.
27357 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27359         * stor-layout.c (place_field): Finalize non-constant offset for the
27360         field, if any.
27362 2014-04-14  Richard Biener  <rguenther@suse.de>
27364         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
27365         as argument.
27366         (expand_switch_using_bit_tests_p): Likewise.
27367         (process_switch): Compute and pass on speed_p based on the
27368         switch stmt.
27369         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
27370         optimize_bb_for_speed_p.
27372 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27374         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
27375         * function.h (struct function): Rename has_force_vect_loops into
27376         has_force_vectorize_loops.
27377         * lto-streamer-in.c (input_cfg): Adjust for renaming.
27378         (input_struct_function_base): Likewise.
27379         * lto-streamer-out.c (output_cfg): Likewise.
27380         (output_struct_function_base): Likewise.
27381         * omp-low.c (expand_omp_simd): Likewise.
27382         * tree-cfg.c (move_sese_region_to_fn): Likewise.
27383         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
27384         (version_loop_for_if_conversion): Likewise.
27385         (tree_if_conversion): Likewise.
27386         (main_tree_if_conversion): Likewise.
27387         (gate_tree_if_conversion): Likewise.
27388         * tree-inline.c (copy_loops): Likewise.
27389         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
27390         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
27391         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
27392         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
27393         * tree-vectorizer.c (vectorize_loops): Likewise.
27394         * tree-vectorizer.h (unlimited_cost_model): Likewise.
27396 2014-04-14  Richard Biener  <rguenther@suse.de>
27398         PR lto/60720
27399         * lto-streamer-out.c (wrap_refs): New function.
27400         (lto_output): Wrap symbol references in global initializes in
27401         type-preserving MEM_REFs.
27403 2014-04-14  Christian Bruel  <christian.bruel@st.com>
27405         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
27407 2014-04-14  Christian Bruel  <christian.bruel@st.com>
27409         * config/sh/sh.md (setmemqi): New expand pattern.
27410         * config/sh/sh.h (CLEAR_RATIO): Define.
27411         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
27412         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
27414 2014-04-14  Richard Biener  <rguenther@suse.de>
27416         PR middle-end/55022
27417         * fold-const.c (negate_expr_p): Don't negate directional rounding
27418         division.
27419         (fold_negate_expr): Likewise.
27421 2014-04-14  Richard Biener  <rguenther@suse.de>
27423         PR tree-optimization/59817
27424         PR tree-optimization/60453
27425         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
27426         recursion to catch all CHRECs in the scalar evolution and restrict
27427         the predicate for the remains appropriately.
27429 2014-04-12  Catherine Moore  <clm@codesourcery.com>
27431         * config/mips/constraints.md: Add new register constraint "kb".
27432         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
27433         (*movhi_internal): Likewise.
27434         (*movqi_internal): Likewise.
27435         * config/mips/mips.h (M16_STORE_REGS): New register class.
27436         (REG_CLASS_NAMES): Add M16_STORE_REGS.
27437         (REG_CLASS_CONTENTS): Likewise.
27438         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
27440 2014-04-11  Tobias Burnus  <burnus@net-b.de>
27442         PR c/60194
27443         * doc/invoke.texi (-Wformat-signedness): Document it.
27444         (Wformat=2): Mention that this enables -Wformat-signedness.
27446 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27448         * common/config/epiphany/epiphany-common.c
27449         (epiphany_option_optimization_table): Enable section anchors by
27450         default at -O1 or higher.
27451         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
27452         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
27453         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
27454         carries no extra cost.
27455         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
27456         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
27457         * config/epiphany/predicates.md (memclob_operand): New predicate.
27458         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
27459         Use memclob_operand predicate and X constraint for operand 3.
27461 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27463         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
27464         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
27465         its operands.
27467 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27469         PR rtl-optimization/60651
27470         * mode-switching.c (optimize_mode_switching): Make sure to emit
27471         sets of a lower numbered entity before sets of a higher numbered
27472         entity to a mode of the same or lower priority.
27473         When creating a seginfo for a basic block that starts with a code
27474         label, move the insertion point past the code label.
27475         (new_seginfo): Document and enforce requirement that
27476         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
27477         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
27478         * doc/tm.texi: Regenerate.
27480 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27482         PR target/60811
27483         * config/arc/arc.c (arc_save_restore): Fix assert typo.
27485 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
27487         * BASE-VER: Set to 4.10.0.
27489 2014-04-11  Tobias Burnus  <burnus@net-b.de>
27491         PR other/59055
27492         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
27493         * doc/gcc.texi (Service): Update description in the @menu
27494         * doc/invoke.texi (Option Summary): Remove misplaced and
27495         duplicated @menu.
27497 2014-04-11  Steve Ellcey  <sellcey@mips.com>
27498             Jakub Jelinek  <jakub@redhat.com>
27500         PR middle-end/60556
27501         * expr.c (convert_move): Use emit_store_flag_force instead of
27502         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
27503         argument to it.
27505 2014-04-11  Richard Biener  <rguenther@suse.de>
27507         PR middle-end/60797
27508         * varasm.c (assemble_alias): Avoid endless error reporting
27509         recursion by setting TREE_ASM_WRITTEN.
27511 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27513         * config/s390/s390.md: Add a splitter for NOT rtx.
27515 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
27517         PR rtl-optimization/60663
27518         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
27520 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
27521             Jakub Jelinek  <jakub@redhat.com>
27523         PR lto/60567
27524         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
27525         flag from decl_node to node.
27527 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27529         PR debug/60655
27530         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
27531         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
27532         ameliorating the cases where it can be.
27534 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
27536         Revert
27537         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
27539         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27540         (loadsync_<mode>): Change mode.
27541         (load_quadpti, store_quadpti): New.
27542         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27543         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27544         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
27546 2014-04-09  Cong Hou  <congh@google.com>
27548         PR testsuite/60773
27549         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
27550         documentation.
27552 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27554         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
27555         instead of vnor to exploit possible fusion opportunity in the
27556         future.
27557         (altivec_expand_vec_perm_const_le): Likewise.
27559 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
27561         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27562         (loadsync_<mode>): Change mode.
27563         (load_quadpti, store_quadpti): New.
27564         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27565         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27567 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
27569         PR target/60763
27570         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
27571         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
27572         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
27574 2014-04-08  Richard Biener  <rguenther@suse.de>
27576         PR middle-end/60706
27577         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
27578         a 64bit widest int print double-int similar to on HWI64 hosts.
27580 2014-04-08  Richard Biener  <rguenther@suse.de>
27582         PR tree-optimization/60785
27583         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
27584         default defs properly.
27586 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
27588         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
27589         (Weffc++): Likewise.
27591 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
27593         * ipa-devirt.c (maybe_record_node): When node is not recorded,
27594         set completep to false rather than true.
27596 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
27598         PR target/60504
27599         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
27600         ARM_TARGET2_DWARF_FORMAT.
27602 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
27604         PR target/60609
27605         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
27606         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
27607         ADDR_DIFF_VEC.
27609 2014-04-07  Richard Biener  <rguenther@suse.de>
27611         PR tree-optimization/60766
27612         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
27613         (may_eliminate_iv): Convert cand_value_at result to desired type.
27615 2014-04-07  Jason Merrill  <jason@redhat.com>
27617         PR c++/60731
27618         * common.opt (-fno-gnu-unique): Add.
27619         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
27621 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27623         * haifa-sched.c: Fix outdated function reference and minor
27624         grammar errors in introductory comment.
27626 2014-04-07  Richard Biener  <rguenther@suse.de>
27628         PR middle-end/60750
27629         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
27630         for noreturn calls.
27631         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
27633 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
27635         PR debug/55794
27636         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
27637         size accounting for thunks.
27638         (pa_asm_output_mi_thunk): Use final_start_function() and
27639         final_end_function() to output function start and end directives.
27641 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
27643         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
27644         device specific ISA/ feature information. Remove short_sp and
27645         errata_skip ds.  Add avr_device_specific_features enum to have device
27646         specific info.
27647         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
27648         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
27649         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
27650         updated device specific info.
27651         * config/avr/avr-mcus.def: Merge device specific details to
27652         dev_attribute field.
27653         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
27654         errata_skip.
27655         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
27656         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
27657         assembler if RMW isa supported by current device.
27658         * config/avr/genmultilib.awk: Update as device info structure changed.
27659         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
27661 2014-04-04  Cong Hou  <congh@google.com>
27663         PR tree-optimization/60656
27664         * tree-vect-stmts.c (supportable_widening_operation):
27665         Fix a bug that elements in a vector with vect_used_by_reduction
27666         property are incorrectly reordered when the operation on it is not
27667         consistant with the one in reduction operation.
27669 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
27671         PR rtl-optimization/60155
27672         * gcse.c (record_set_data): New function.
27673         (single_set_gcse): New function.
27674         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
27675         (hoist_code): Likewise.
27676         (get_pressure_class_and_nregs): Likewise.
27678 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
27680         * explow.c (probe_stack_range): Emit a final optimization blockage.
27682 2014-04-04  Anthony Green  <green@moxielogic.com>
27684         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
27685         typos.
27687 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
27689         PR ipa/59626
27690         * lto-cgraph.c (input_overwrite_node): Check that partitioning
27691         flags are set only during streaming.
27692         * ipa.c (process_references, walk_polymorphic_call_targets,
27693         symtab_remove_unreachable_nodes): Drop bodies of always inline
27694         after early inlining.
27695         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
27697 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
27698         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27700         PR debug/60655
27701         * dwarf2out.c (const_ok_for_output_1): Reject expressions
27702         containing a NOT.
27704 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27706         PR bootstrap/60743
27707         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
27708         duration.
27709         (cortex_a53_fdivd): Likewise.
27711 2014-04-04  Martin Jambor  <mjambor@suse.cz>
27713         PR ipa/60640
27714         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
27715         Adjust all callers.
27716         * cgraph.c (clone_of_p): Also return true if thunks match.
27717         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
27718         cgraph_function_or_thunk_node and an obsolete comment.
27719         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
27720         file.
27721         (build_function_decl_skip_args): Likewise.
27722         (set_new_clone_decl_and_node_flags): New function.
27723         (duplicate_thunk_for_node): Likewise.
27724         (redirect_edge_duplicating_thunks): Likewise.
27725         (cgraph_clone_node): New parameter args_to_skip, pass it to
27726         redirect_edge_duplicating_thunks which is called instead of
27727         cgraph_redirect_edge_callee.
27728         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
27729         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
27731 2014-04-04  Jeff Law  <law@redhat.com>
27733         PR target/60657
27734         * config/arm/predicates.md (const_int_I_operand): New predicate.
27735         (const_int_M_operand): Similarly.
27736         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
27737         const_int_operand.
27738         (insv_t2, extv_reg, extzv_t2): Likewise.
27739         (load_multiple_with_writeback): Similarly for const_int_I_operand.
27740         (pop_multiple_with_writeback_and_return): Likewise.
27741         (vfp_pop_multiple_with_writeback): Likewise
27743 2014-04-04  Richard Biener  <rguenther@suse.de>
27745         PR ipa/60746
27746         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
27747         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
27748         non-GIMPLE_LABELs.
27749         * gimplify.h (gimple_add_tmp_var_fn): Declare.
27750         * gimplify.c (gimple_add_tmp_var_fn): New function.
27751         * gimple-expr.h (create_tmp_reg_fn): Declare.
27752         * gimple-expr.c (create_tmp_reg_fn): New function.
27753         * gimple-low.c (record_vars_into): Don't change cfun.
27754         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
27755         code generation without cfun.
27757 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
27759         PR bootstrap/60719
27760         * Makefile.in (install-driver): Fix shell scripting.
27762 2014-04-03  Cong Hou  <congh@google.com>
27764         PR tree-optimization/60505
27765         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
27766         threshold of number of iterations below which no vectorization
27767         will be done.
27768         * tree-vect-loop.c (new_loop_vec_info):
27769         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
27770         * tree-vect-loop.c (vect_analyze_loop_operations):
27771         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
27772         * tree-vect-loop.c (vect_transform_loop):
27773         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
27774         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
27775         of iterations of the loop and see if we should build the epilogue.
27777 2014-04-03  Richard Biener  <rguenther@suse.de>
27779         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
27780         (streamer_tree_cache_create): Adjust.
27781         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
27782         to allow optional nodes array.
27783         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
27784         (streamer_tree_cache_append): Likewise.
27785         (streamer_tree_cache_create): Create nodes array optionally
27786         as specified by parameter.
27787         * lto-streamer-out.c (create_output_block): Avoid maintaining
27788         the node array in the writer cache.
27789         (DFS_write_tree): Remove assertion.
27790         (produce_asm_for_decls): Free the out decl state hash table early.
27791         * lto-streamer-in.c (lto_data_in_create): Adjust for
27792         streamer_tree_cache_create prototype change.
27794 2014-04-03  Richard Biener  <rguenther@suse.de>
27796         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
27797         set TREE_CHAIN to NULL_TREE.
27799 2014-04-03  Richard Biener  <rguenther@suse.de>
27801         PR tree-optimization/60740
27802         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
27803         over all GIMPLE_COND operands.
27805 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
27807         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
27808         (Weffc++): Remove Scott's numbering, merge lists and reference
27809         Wnon-virtual-dtor.
27811 2014-04-03  Nick Clifton  <nickc@redhat.com>
27813         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
27814         properly.
27816 2014-04-03  Martin Jambor  <mjambor@suse.cz>
27818         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
27819         mention gcc_unreachable before failing.
27820         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
27821         removed symbols.
27823 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
27825         PR ipa/60659
27826         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
27827         inconsistent code and instead mark the context inconsistent.
27828         (possible_polymorphic_call_targets): For inconsistent contexts
27829         return empty complete list.
27831 2014-04-02  Anthony Green  <green@moxielogic.com>
27833         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
27834         (extendqisi2, extendhisi2): Define.
27835         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
27836         (WCHAR_TYPE): Change to unsigned int.
27838 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27840         PR tree-optimization/60733
27841         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
27842         insertion point for PHI candidates to be the end of the feeding
27843         block for the PHI argument.
27845 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
27847         PR rtl-optimization/60650
27848         * lra-constraints.c (process_alt_operands): Decrease reject for
27849         earlyclobber matching.
27851 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27853         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
27855 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27857         * config/spu/spu.c (pad_bb): Do not crash when the last
27858         insn is CODE_FOR_blockage.
27860 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27862         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
27863         lies outside the target mode.
27865 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27867         PR target/60735
27868         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27869         software floating point or no floating point registers, do not
27870         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27871         in GPRs that occurs after we tested for GPRs that would never be
27872         true.
27874         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27875         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27876         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27877         specifically allow DDmode, since that does not use the SPE SIMD
27878         instructions.
27880 2014-04-02  Richard Biener  <rguenther@suse.de>
27882         PR middle-end/60729
27883         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
27884         MODE_INTs.  Properly use negv_optab.
27885         (expand_abs): Likewise.
27887 2014-04-02  Richard Biener  <rguenther@suse.de>
27889         PR bootstrap/60719
27890         * Makefile.in (install-driver): Guard extra installs with special
27891         names properly.
27893 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27895         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27896         Document vec_vgbbd.
27898 2014-04-01  Richard Henderson  <rth@redhat.com>
27900         PR target/60704
27901         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
27902         alternative enabled before register allocation.
27904 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
27906         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
27907         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
27908         typo.
27909         (nios2_large_got_address): Remove unneeded 'sym' parameter.
27910         (nios2_got_address): Update nios2_large_got_address call site.
27911         (nios2_delegitimize_address): New function.
27912         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
27913         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
27914         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
27916 2014-04-01  Martin Husemann  <martin@duskware.de>
27918         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
27919         for -mabi=32.
27921 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
27923         PR rtl-optimization/60604
27924         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
27925         check from register_operand.
27926         (register_operand): Redefine in terms of general_operand.
27927         (nonmemory_operand): Use register_operand for the non-constant cases.
27929 2014-04-01  Richard Biener  <rguenther@suse.de>
27931         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
27933 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27935         * doc/invoke.texi (mapp-regs): Clarify.
27937 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
27939         * config/i386/avx512fintrin.h (__v32hi): Define type.
27940         (__v64qi): Likewise.
27941         (_mm512_set1_epi8): Define.
27942         (_mm512_set1_epi16): Define.
27943         (_mm512_set4_epi32): Define.
27944         (_mm512_set4_epi64): Define.
27945         (_mm512_set4_pd): Define.
27946         (_mm512_set4_ps): Define.
27947         (_mm512_setr4_epi64): Define.
27948         (_mm512_setr4_epi32): Define.
27949         (_mm512_setr4_pd): Define.
27950         (_mm512_setr4_ps): Define.
27951         (_mm512_setzero_epi32): Define.
27953 2014-03-31  Martin Jambor  <mjambor@suse.cz>
27955         PR middle-end/60647
27956         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27957         callsite_arguments_match_p.  Updated all callers.  Also check types of
27958         corresponding formal parameters and actual arguments.
27959         (not_all_callers_have_enough_arguments_p) Renamed to
27960         some_callers_have_mismatched_arguments_p.
27962 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
27964         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27966 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
27968         PR target/60034
27969         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27970         section anchor.
27972 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
27974         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27975         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27976         Split out
27977         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27978         Use FMAMODE_NOVF512 mode iterator.
27979         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27980         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27981         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27982         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27983         Split out
27984         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27985         Use VF_128_256 mode iterator.
27986         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27987         Ditto.
27989 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27991         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27992         static chain if needed.
27994 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27996         PR target/60697
27997         * lra-constraints.c (index_part_to_reg): New.
27998         (process_address): Use it.
28000 2014-03-27  Jeff Law  <law@redhat.com>
28001             Jakub Jelinek  <jakub@redhat.com>
28003         PR target/60648
28004         * expr.c (do_tablejump): Use simplify_gen_binary rather than
28005         gen_rtx_{PLUS,MULT} to build up the address expression.
28007         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
28008         creating non-canonical RTL.
28010 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
28012         PR ipa/60243
28013         * ipa-inline.c (want_inline_small_function_p): Short circuit large
28014         functions; reorganize to make cheap checks first.
28015         (inline_small_functions): Do not estimate growth when dumping;
28016         it is expensive.
28017         * ipa-inline.h (inline_summary): Add min_size.
28018         (growth_likely_positive): New function.
28019         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
28020         (set_cond_stmt_execution_predicate): Cleanup.
28021         (estimate_edge_size_and_time): Compute min_size.
28022         (estimate_calls_size_and_time): Likewise.
28023         (estimate_node_size_and_time): Likewise.
28024         (inline_update_overall_summary): Update min_size.
28025         (do_estimate_edge_time): Likewise.
28026         (do_estimate_edge_size): Update.
28027         (do_estimate_edge_hints): Update.
28028         (growth_likely_positive): New function.
28030 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
28032         PR target/60693
28033         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
28034         also if addr has VOIDmode.
28036 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28038         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
28039         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
28040         Declare extern.
28041         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
28042         instructions as well as AdvancedSIMD loads.
28044 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28046         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
28047         Use crypto_aese type.
28048         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
28049         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
28050         crypto_aese, crypto_aesmc.  Move to types.md.
28051         * config/arm/types.md (crypto_aes): Split into crypto_aese,
28052         crypto_aesmc.
28053         * config/arm/iterators.md (crypto_type): Likewise.
28055 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
28057         * cgraph.c: Include expr.h and tree-dfa.h.
28058         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
28059         remove LHS.
28061 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
28063         PR target/60675
28064         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
28065         regs from checking multi-reg pseudos.
28067 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28069         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
28071 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28073         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
28074         if it would clobber the stack pointer, even temporarily.
28076 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28078         * mode-switching.c: Make small adjustments to the top comment.
28080 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
28082         * config/rs6000/constraints.md (wD constraint): New constraint to
28083         match the constant integer to get the top DImode/DFmode out of a
28084         vector in a VSX register.
28086         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
28087         match the constant integer to get the top DImode/DFmode out of a
28088         vector in a VSX register.
28090         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
28091         for ISA 2.07.
28093         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28094         vbpermq builtins.
28096         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
28097         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
28099         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
28100         Optimize vec_extract of 64-bit values, where the value being
28101         extracted is in the top word, where we can use scalar
28102         instructions.  Add direct move and store support.  Combine the big
28103         endian/little endian vector select load support into a single insn.
28104         (vsx_extract_<mode>_internal1): Likewise.
28105         (vsx_extract_<mode>_internal2): Likewise.
28106         (vsx_extract_<mode>_load): Likewise.
28107         (vsx_extract_<mode>_store): Likewise.
28108         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
28109         combined into vsx_extract_<mode>_load.
28110         (vsx_extract_<mode>_one_le): Likewise.
28112         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
28113         define the top 64-bit vector element.
28115         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
28116         constraint.
28118         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28119         Document vec_vbpermq builtin.
28121         PR target/60672
28122         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
28123         enable use of xxsldwi and xxpermdi builtin functions.
28124         (vec_xxpermdi): Likewise.
28126         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28127         Document use of vec_xxsldwi and vec_xxpermdi builtins.
28129 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
28131         PR rtl-optimization/60650
28132         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
28133         first_p.  Use it.
28134         (find_spills_for): New.
28135         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
28136         Spill all pseudos on the second iteration.
28138 2014-03-27  Marek Polacek  <polacek@redhat.com>
28140         PR c/50347
28141         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
28142         types.
28144 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28146         * config/s390/s390.c (s390_can_use_return_insn): Check for
28147         call-saved FPRs on 31 bit.
28149 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
28151         PR middle-end/60682
28152         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
28153         if they need regimplification, just drop them instead of
28154         calling gimple_regimplify_operands on them.
28156 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28158         PR target/60580
28159         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
28160         (aarch64_frame_pointer_required): Adjust logic.
28161         (aarch64_can_eliminate): Adjust logic.
28162         (aarch64_override_options_after_change): Adjust logic.
28164 2014-03-27  Dehao Chen  <dehao@google.com>
28166         * ipa-inline.c (early_inliner): Update node's inline info.
28168 2014-03-26  Dehao Chen  <dehao@google.com>
28170         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
28171         compiler inserted conditional jumps for NAN float check.
28173 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
28175         * ubsan.h (ubsan_create_data): Change second argument's type
28176         to const location_t *.
28177         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
28178         _("<unknown>").
28179         (ubsan_create_data): Change second argument to const location_t *PLOC.
28180         Create Loc field whenever PLOC is non-NULL.
28181         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
28182         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
28183         callers.
28185         PR other/59545
28186         * real.c (real_to_integer2): Change type of low to UHWI.
28188 2014-03-26  Tobias Burnus  <burnus@net-b.de>
28190         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
28191         (CILK_SELF_SPECS): New define.
28192         (driver_self_specs): Use it.
28194 2014-03-26  Richard Biener  <rguenther@suse.de>
28196         * tree-pretty-print.c (percent_K_format): Implement special
28197         case for LTO and its stripped down BLOCK tree.
28199 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
28201         PR sanitizer/60636
28202         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
28204         * tree-vrp.c (simplify_internal_call_using_ranges): If only
28205         one range is range_int_cst_p, but not both, at least optimize
28206         addition/subtraction of 0 and multiplication by 0 or 1.
28207         * gimple-fold.c (gimple_fold_call): Fold
28208         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
28209         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
28210         INTEGER_CSTs, try to fold at least x * 0 and y - y.
28212 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
28214         PR rtl-optimization/60452
28215         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
28216         <case REG>: Return 1 for invalid offsets from the frame pointer.
28218 2014-03-26  Marek Polacek  <polacek@redhat.com>
28220         PR c/37428
28221         * doc/extend.texi (C Extensions): Mention variable-length arrays in
28222         a structure/union.
28224 2014-03-26  Marek Polacek  <polacek@redhat.com>
28226         PR c/39525
28227         * doc/extend.texi (Designated Inits): Describe what happens to omitted
28228         field members.
28230 2014-03-26  Marek Polacek  <polacek@redhat.com>
28232         PR other/59545
28233         * ira-color.c (update_conflict_hard_regno_costs): Perform the
28234         multiplication in unsigned type.
28236 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
28238         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
28240 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
28242         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
28244 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
28246         PR ipa/60315
28247         * cif-code.def (UNREACHABLE) New code.
28248         * ipa-inline.c (inline_small_functions): Skip edges to
28249         __builtlin_unreachable.
28250         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
28251         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
28252         predicate to __bulitin_unreachable.
28253         (set_cond_stmt_execution_predicate): Fix issue when
28254         invert_tree_comparison returns ERROR_MARK.
28255         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
28256         propagate to inline clones.
28257         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
28258         to unreachable.
28259         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
28260         * cgraphclones.c (cgraph_clone_node): If call destination is already
28261         ureachable, do not redirect it back.
28262         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
28263         unreachable.
28265 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
28267         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
28268         Do not modify inline clones.
28270 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
28272         * config/i386/i386.md (general_sext_operand): New mode attr.
28273         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
28274         don't generate (sign_extend (const_int)).
28275         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
28276         operands[2].  Use We constraint instead of <i> and
28277         <general_sext_operand> predicate instead of <general_operand>.
28278         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
28279         * config/i386/constraints.md (We): New constraint.
28280         * config/i386/predicates.md (x86_64_sext_operand,
28281         sext_operand): New predicates.
28283 2014-03-25  Martin Jambor  <mjambor@suse.cz>
28285         PR ipa/60600
28286         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
28287         inconsistent devirtualizations to __builtin_unreachable.
28289 2014-03-25  Marek Polacek  <polacek@redhat.com>
28291         PR c/35449
28292         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
28294 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
28296         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
28297         order of elements for big-endian.
28299 2014-03-25  Richard Biener  <rguenther@suse.de>
28301         PR middle-end/60635
28302         * gimplify-me.c (gimple_regimplify_operands): Update the
28303         re-gimplifed stmt.
28305 2014-03-25  Martin Jambor  <mjambor@suse.cz>
28307         PR ipa/59176
28308         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
28309         (lto_output_varpool_node): Likewise.
28310         (input_overwrite_node): Likewise.
28311         (input_varpool_node): Likewise.
28313 2014-03-25  Richard Biener  <rguenther@suse.de>
28315         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
28316         (run_gcc): Likewise.
28318 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
28320         * combine.c (simplify_compare_const): Add MODE argument.
28321         Handle mode_width 0 as very large mode_width.
28322         (try_combine, simplify_comparison): Adjust callers.
28324         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
28325         type to avoid signed integer overflow.
28326         * explow.c (plus_constant): Likewise.
28328 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28330         * doc/generic.texi: Correct typos.
28332 2014-03-24  Tobias Burnus  <burnus@net-b.de>
28334         * doc/invoke.texi (-flto): Expand section about
28335         using static libraries with LTO.
28337 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28339         PR rtl-optimization/60501
28340         * optabs.def (addptr3_optab): New optab.
28341         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
28342         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
28343         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
28345         * lra.c (emit_add3_insn): Use the addptr pattern if available.
28347         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
28349 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
28351         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
28352         _mm512_set1_pd.
28354         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
28355         (_mm256_undefined_ps): Define.
28356         (_mm256_undefined_pd): Define.
28357         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
28358         (_mm_undefined_pd): Define.
28359         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
28360         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
28361         (_mm512_undefined_ps): Define.
28362         (_mm512_undefined_pd): Define.
28363         Use _mm*_undefined_*.
28364         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
28366 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
28368         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
28369         (lshr_simd): DI mode added.
28370         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
28371         (aarch64_ushr_simddi): Likewise.
28372         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
28373         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
28374         (vshrd_n_u64): Likewise.
28376 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28378         * Makefile.in (s-macro_list): Depend on cc1.
28380 2014-03-23  Teresa Johnson  <tejohnson@google.com>
28382         * ipa-utils.c (ipa_print_order): Use specified dump file.
28384 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
28386         PR rtl-optimization/60601
28387         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
28389         * gcc.c (eval_spec_function): Initialize save_growing_value.
28391 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
28393         PR sanitizer/60613
28394         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
28395         code == MINUS_EXPR, never swap op0 with op1.
28397         * toplev.c (init_local_tick): Avoid signed integer multiplication
28398         overflow.
28399         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
28400         shift by first operand's bitsize.
28402 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
28404         PR target/60610
28405         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
28406         redefine to 1 or 0.
28407         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
28408         TARGET_ISA_64BIT_P(x).
28410 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28412         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
28413         pattern for vector nor instead of subtract from splat(-1).
28414         (altivec_expand_vec_perm_const_le): Likewise.
28416 2014-03-21  Richard Henderson  <rth@twiddle.net>
28418         PR target/60598
28419         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
28420         related insns after epilogue_completed.
28422 2014-03-21  Martin Jambor  <mjambor@suse.cz>
28424         PR ipa/59176
28425         * cgraph.h (symtab_node): New flag body_removed.
28426         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
28427         when removing bodies.
28428         * symtab.c (dump_symtab_base): Dump body_removed flag.
28429         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
28430         had their bodies removed.
28432 2014-03-21  Martin Jambor  <mjambor@suse.cz>
28434         PR ipa/60419
28435         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
28436         in the border.
28438 2014-03-21  Richard Biener  <rguenther@suse.de>
28440         PR tree-optimization/60577
28441         * tree-core.h (struct tree_base): Document nothrow_flag use
28442         in DECL_NONALIASED.
28443         * tree.h (DECL_NONALIASED): New.
28444         (may_be_aliased): Adjust.
28445         * coverage.c (build_var): Set DECL_NONALIASED.
28447 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28449         * expr.c (expand_expr_real_1): Remove outdated comment.
28451 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
28453         PR middle-end/60597
28454         * ira.c (adjust_cleared_regs): Call copy_rtx on
28455         *reg_equiv[REGNO (loc)].src_p before passing it to
28456         simplify_replace_fn_rtx.
28458         PR target/60568
28459         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
28460         into CONST, put pic register as first operand of PLUS.  Use
28461         gen_const_mem for both 32-bit and 64-bit PIC got loads.
28463 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28465         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
28467 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28469         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
28470         around for store forwarding issue in the FPU on the UT699.
28471         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
28472         loads and operations if -mfix-ut699 is specified.
28473         (divtf3_hq): Tweak attribute.
28474         (sqrttf2_hq): Likewise.
28476 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28478         * calls.c (store_one_arg): Remove incorrect const qualification on the
28479         type of the temporary.
28480         * cfgexpand.c (expand_return): Likewise.
28481         * expr.c (expand_constructor): Likewise.
28482         (expand_expr_real_1): Likewise.
28484 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28486         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
28487         of parts.
28489 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
28491         PR target/60039
28492         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
28494 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
28496         * config/arm/aarch-common-protos.h
28497         (alu_cost_table): Fix spelling of "extend".
28498         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
28500 2014-03-19  Richard Biener  <rguenther@suse.de>
28502         PR middle-end/60553
28503         * tree-core.h (tree_type_common): Re-order pointer members
28504         to reduce recursion depth during GC walks.
28506 2014-03-19  Marek Polacek  <polacek@redhat.com>
28508         PR sanitizer/60569
28509         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
28510         before accessing it.
28512 2014-03-19  Richard Biener  <rguenther@suse.de>
28514         PR lto/59543
28515         * lto-streamer-in.c (input_function): In WPA stage do not drop
28516         debug stmts.
28518 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
28520         PR tree-optimization/60559
28521         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
28522         with build_zero_cst assignment.
28524 2014-03-18  Kai Tietz  <ktietz@redhat.com>
28526         PR rtl-optimization/56356
28527         * sdbout.c (sdbout_parms): Verify that parms'
28528         incoming argument is valid.
28529         (sdbout_reg_parms): Likewise.
28531 2014-03-18  Richard Henderson  <rth@redhat.com>
28533         PR target/60562
28534         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
28535         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
28536         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
28538 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
28540         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
28541         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
28542         Italicize plugin event names in description.  Explain that
28543         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
28544         Remind that no GCC functions should be called after PLUGIN_FINISH.
28545         Explain what pragmas with expansion are.
28547 2014-03-18  Martin Liska  <mliska@suse.cz>
28549         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
28550         gimple call statement is update.
28551         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
28552         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
28554 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
28556         PR sanitizer/60557
28557         * ubsan.c (ubsan_instrument_unreachable): Call
28558         initialize_sanitizer_builtins.
28559         (ubsan_pass): Likewise.
28561         PR sanitizer/60535
28562         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
28563         varpool_finalize_decl instead of rest_of_decl_compilation.
28565 2014-03-18  Richard Biener  <rguenther@suse.de>
28567         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
28568         by using bitmap_and_compl instead of bitmap_and_compl_into.
28569         (df_rd_transfer_function): Likewise.
28571 2014-03-18  Richard Biener  <rguenther@suse.de>
28573         * doc/lto.texi (fresolution): Fix typo.
28575 2014-03-18  Richard Biener  <rguenther@suse.de>
28577         * doc/invoke.texi (flto): Update for changes in 4.9.
28579 2014-03-18  Richard Biener  <rguenther@suse.de>
28581         * doc/loop.texi: Remove section on the removed lambda framework.
28582         Update loop docs with recent changes in preserving loop structure.
28584 2014-03-18  Richard Biener  <rguenther@suse.de>
28586         * doc/lto.texi (-fresolution): Document.
28588 2014-03-18  Richard Biener  <rguenther@suse.de>
28590         * doc/contrib.texi: Adjust my name.
28592 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
28594         PR ipa/58721
28595         * internal-fn.c: Include diagnostic-core.h.
28596         (expand_BUILTIN_EXPECT): New function.
28597         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
28598         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
28599         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
28600         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
28601         IFN_BUILTIN_EXPECT.
28602         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
28603         Revert 3 argument __builtin_expect code.
28604         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
28605         * gimple-fold.c (gimple_fold_call): Likewise.
28606         * tree.h (fold_builtin_expect): New prototype.
28607         * builtins.c (build_builtin_expect_predicate): Add predictor
28608         argument, if non-NULL, create 3 argument __builtin_expect.
28609         (fold_builtin_expect): No longer static.  Add ARG2 argument,
28610         pass it through to build_builtin_expect_predicate.
28611         (fold_builtin_2): Adjust caller.
28612         (fold_builtin_3): Handle BUILT_IN_EXPECT.
28613         * internal-fn.def (BUILTIN_EXPECT): New.
28615 2014-03-18  Tobias Burnus  <burnus@net-b.de>
28617         PR ipa/58721
28618         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
28619         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
28620         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
28622 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
28624         PR ipa/58721
28625         * predict.c (combine_predictions_for_bb): Fix up formatting.
28626         (expr_expected_value_1, expr_expected_value): Add predictor argument,
28627         fill what it points to if non-NULL.
28628         (tree_predict_by_opcode): Adjust caller, use the predictor.
28629         * predict.def (PRED_COMPARE_AND_SWAP): Add.
28631 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
28633         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
28634         proper constant for the store mode.
28636 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
28638         * symtab.c (change_decl_assembler_name): Fix transparent alias
28639         chain construction.
28641 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
28643         * config/aarch64/aarch64.c: Correct the comments about the
28644         aarch64 stack layout.
28646 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
28648         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
28649         check for GF_OMP_FOR_KIND_FOR.
28651 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
28653         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
28654         ymm and zmm register names.
28656 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
28658         PR target/60516
28659         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
28660         note creation for the 2010-08-31 changes.
28662 2014-03-17  Marek Polacek  <polacek@redhat.com>
28664         PR middle-end/60534
28665         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
28666         as -fno-tree-loop-vectorize.
28667         (expand_omp_simd): Likewise.
28669 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
28671         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
28672         (eligible_for_call_delay): New prototype.
28673         * config/sparc/sparc.c (tls_call_delay): Rename into...
28674         (eligible_for_call_delay): ...this.  Return false if the instruction
28675         cannot be put in the delay slot of a branch.
28676         (eligible_for_restore_insn): Simplify.
28677         (eligible_for_return_delay): Return false if the instruction cannot be
28678         put in the delay slot of a branch and simplify.
28679         (eligible_for_sibcall_delay): Return false if the instruction cannot be
28680         put in the delay slot of a branch.
28681         * config/sparc/sparc.md (fix_ut699): New attribute.
28682         (tls_call_delay): Delete.
28683         (in_call_delay): Reimplement.
28684         (eligible_for_sibcall_delay): Rename into...
28685         (in_sibcall_delay): ...this.
28686         (eligible_for_return_delay): Rename into...
28687         (in_return_delay): ...this.
28688         (in_branch_delay): Reimplement.
28689         (in_uncond_branch_delay): Delete.
28690         (in_annul_branch_delay): Delete.
28692 2014-03-14  Richard Henderson  <rth@redhat.com>
28694         PR target/60525
28695         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
28696         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
28697         (*floathi<X87MODEF>2_i387_with_temp): Remove.
28698         (floathi splitters): Remove.
28699         (float<SWI48x>xf2): New pattern.
28700         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
28701         code that tried to handle DImode for 32-bit, but which was excluded
28702         by the pattern's condition.  Drop allocation of stack temporary.
28703         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
28704         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
28705         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
28706         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
28707         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
28708         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
28709         (*float<SWI48><MODEF>2_sse_interunit): Remove.
28710         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
28711         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
28712         (*float<SWI48x><X87MODEF>2_i387): Remove.
28713         (all float _with_temp splitters): Remove.
28714         (*float<SWI48x><MODEF>2_i387): New pattern.
28715         (*float<SWI48><MODEF>2_sse): New pattern.
28716         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
28717         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
28719 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
28720             Marek Polacek  <polacek@redhat.com>
28722         PR middle-end/60484
28723         * common.opt (dump_base_name_prefixed): New Variable.
28724         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
28725         if x_dump_base_name_prefixed is already set, set it at the end.
28727 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
28729         PR rtl-optimization/60508
28730         * lra-constraints.c (get_reload_reg): Add new parameter
28731         in_subreg_p.
28732         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
28733         Pass the new parameter values.
28735 2014-03-14  Richard Biener  <rguenther@suse.de>
28737         * common.opt: Revert unintented changes from r205065.
28738         * opts.c: Likewise.
28740 2014-03-14  Richard Biener  <rguenther@suse.de>
28742         PR middle-end/60518
28743         * cfghooks.c (split_block): Properly adjust all loops the
28744         block was a latch of.
28746 2014-03-14  Martin Jambor  <mjambor@suse.cz>
28748         PR lto/60461
28749         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
28750         and simplify it.
28752 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
28754         PR target/59396
28755         * config/avr/avr.c (avr_set_current_function): Pass function name
28756         through default_strip_name_encoding before sanity checking instead
28757         of skipping the first char of the assembler name.
28759 2014-03-13  Richard Henderson  <rth@redhat.com>
28761         PR debug/60438
28762         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
28763         (ix86_force_to_memory, ix86_free_from_memory): Remove.
28764         * config/i386/i386-protos.h: Likewise.
28765         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
28766         in the expander instead of a splitter.
28767         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
28768         any possibility of requiring a memory.
28769         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
28770         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
28771         (fp branch splitters): Update for ix86_split_fp_branch.
28772         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
28773         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
28774         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
28775         (*fop_<MODEF>_2_i387): Remove f/r alternative.
28776         (*fop_<MODEF>_3_i387): Likewise.
28777         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
28778         (splitters for the fop_* register patterns): Remove.
28779         (fscalexf4_i387): Rename from *fscalexf4_i387.
28780         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
28782 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28784         PR tree-optimization/59779
28785         * tree-dfa.c (get_ref_base_and_extent): Use double_int
28786         type for bitsize and maxsize instead of HOST_WIDE_INT.
28788 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
28790         PR rtl-optimization/57320
28791         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
28792         the CFG after thread_prologue_and_epilogue_insns.
28794 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
28796         PR rtl-optimization/57189
28797         * lra-constraints.c (process_alt_operands): Disfavor spilling
28798         vector pseudos.
28800 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
28802         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
28804 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28806         PR tree-optimization/59025
28807         PR middle-end/60418
28808         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
28809         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
28811 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
28813         PR target/60486
28814         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
28815         calls of avr_out_plus_1.
28817 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
28819         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
28820         BB's single pred and update the father loop's latch info later.
28822 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
28824         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
28825         (VEC_M): Likewise.
28826         (VEC_N): Likewise.
28827         (VEC_R): Likewise.
28828         (VEC_base): Likewise.
28829         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
28830         registers, we need to swap double words in little endian mode.
28832         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
28833         to be a container mode for 128-bit integer operations added in ISA
28834         2.07.  Unlike TImode and PTImode, the preferred register set is
28835         the Altivec/VMX registers for the 128-bit operations.
28837         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
28838         declarations.
28839         (rs6000_split_128bit_ok_p): Likewise.
28841         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
28842         macros for creating ISA 2.07 normal and overloaded builtin
28843         functions with 3 arguments.
28844         (BU_P8V_OVERLOAD_3): Likewise.
28845         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
28846         for use as overloaded functions.
28847         (VPERM_1TI_UNS): Likewise.
28848         (VSEL_1TI): Likewise.
28849         (VSEL_1TI_UNS): Likewise.
28850         (ST_INTERNAL_1ti): Likewise.
28851         (LD_INTERNAL_1ti): Likewise.
28852         (XXSEL_1TI): Likewise.
28853         (XXSEL_1TI_UNS): Likewise.
28854         (VPERM_1TI): Likewise.
28855         (VPERM_1TI_UNS): Likewise.
28856         (XXPERMDI_1TI): Likewise.
28857         (SET_1TI): Likewise.
28858         (LXVD2X_V1TI): Likewise.
28859         (STXVD2X_V1TI): Likewise.
28860         (VEC_INIT_V1TI): Likewise.
28861         (VEC_SET_V1TI): Likewise.
28862         (VEC_EXT_V1TI): Likewise.
28863         (EQV_V1TI): Likewise.
28864         (NAND_V1TI): Likewise.
28865         (ORC_V1TI): Likewise.
28866         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
28867         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
28868         overloaded builtin.
28869         (VADDUQM): Likewise.
28870         (VSUBCUQ): Likewise.
28871         (VADDEUQM): Likewise.
28872         (VADDECUQ): Likewise.
28873         (VSUBEUQM): Likewise.
28874         (VSUBECUQ): Likewise.
28876         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
28877         __int128_t and __uint128_t types.
28878         (__uint128_type): Likewise.
28879         (altivec_categorize_keyword): Add support for vector __int128_t,
28880         vector __uint128_t, vector __int128, and vector unsigned __int128
28881         as a container type for TImode operations that need to be done in
28882         VSX/Altivec registers.
28883         (rs6000_macro_to_expand): Likewise.
28884         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
28885         to support 128-bit integer instructions vaddcuq, vadduqm,
28886         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
28887         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
28889         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
28890         for V1TImode, and set up preferences to use VSX/Altivec registers.
28891         Setup VSX reload handlers.
28892         (rs6000_debug_reg_global): Likewise.
28893         (rs6000_init_hard_regno_mode_ok): Likewise.
28894         (rs6000_preferred_simd_mode): Likewise.
28895         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
28896         (easy_altivec_constant): Likewise.
28897         (output_vec_const_move): Likewise.
28898         (rs6000_expand_vector_set): Convert V1TImode set and extract to
28899         simple move.
28900         (rs6000_expand_vector_extract): Likewise.
28901         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
28902         addressing.
28903         (rs6000_const_vec): Add support for V1TImode.
28904         (rs6000_emit_le_vsx_load): Swap double words when loading or
28905         storing TImode/V1TImode.
28906         (rs6000_emit_le_vsx_store): Likewise.
28907         (rs6000_emit_le_vsx_move): Likewise.
28908         (rs6000_emit_move): Add support for V1TImode.
28909         (altivec_expand_ld_builtin): Likewise.
28910         (altivec_expand_st_builtin): Likewise.
28911         (altivec_expand_vec_init_builtin): Likewise.
28912         (altivec_expand_builtin): Likewise.
28913         (rs6000_init_builtins): Add support for V1TImode type.  Add
28914         support for ISA 2.07 128-bit integer builtins.  Define type names
28915         for the VSX/Altivec vector types.
28916         (altivec_init_builtins): Add support for overloaded vector
28917         functions with V1TImode type.
28918         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
28919         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
28920         external function.
28921         (rs6000_split_128bit_ok_p): Likewise.
28922         (rs6000_handle_altivec_attribute): Create V1TImode from vector
28923         __int128_t and vector __uint128_t.
28925         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
28926         and mode attributes.
28927         (VSX_M): Likewise.
28928         (VSX_M2): Likewise.
28929         (VSm): Likewise.
28930         (VSs): Likewise.
28931         (VSr): Likewise.
28932         (VSv): Likewise.
28933         (VS_scalar): Likewise.
28934         (VS_double): Likewise.
28935         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
28937         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
28938         we support the ISA 2.07 128-bit integer arithmetic instructions.
28939         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
28940         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
28941         and TImode types for use with the builtin functions.
28942         (V1TI_type_node): Likewise.
28943         (unsigned_V1TI_type_node): Likewise.
28944         (intTI_type_internal_node): Likewise.
28945         (uintTI_type_internal_node): Likewise.
28947         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
28948         128-bit builtin functions.
28949         (UNSPEC_VADDEUQM): Likewise.
28950         (UNSPEC_VADDECUQ): Likewise.
28951         (UNSPEC_VSUBCUQ): Likewise.
28952         (UNSPEC_VSUBEUQM): Likewise.
28953         (UNSPEC_VSUBECUQ): Likewise.
28954         (VM): Add V1TImode to vector mode iterators.
28955         (VM2): Likewise.
28956         (VI_unit): Likewise.
28957         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28958         (altivec_vaddcuq): Likewise.
28959         (altivec_vsubuqm): Likewise.
28960         (altivec_vsubcuq): Likewise.
28961         (altivec_vaddeuqm): Likewise.
28962         (altivec_vaddecuq): Likewise.
28963         (altivec_vsubeuqm): Likewise.
28964         (altivec_vsubecuq): Likewise.
28966         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28967         mode iterators.
28968         (BOOL_128): Likewise.
28969         (BOOL_REGS_OUTPUT): Likewise.
28970         (BOOL_REGS_OP1): Likewise.
28971         (BOOL_REGS_OP2): Likewise.
28972         (BOOL_REGS_UNARY): Likewise.
28973         (BOOL_REGS_AND_CR0): Likewise.
28975         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28976         128-bit integer builtin support.
28977         (vec_vadduqm): Likewise.
28978         (vec_vaddecuq): Likewise.
28979         (vec_vaddeuqm): Likewise.
28980         (vec_vsubecuq): Likewise.
28981         (vec_vsubeuqm): Likewise.
28982         (vec_vsubcuq): Likewise.
28983         (vec_vsubuqm): Likewise.
28985         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28986         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28987         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28988         128-bit integer add/subtract to ISA 2.07.
28990 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
28992         * config/arc/arc.c (arc_predicate_delay_insns):
28993         Fix third argument passed to conditionalize_nonjump.
28995 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
28997         * config/aarch64/aarch64-builtins.c
28998         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28999         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
29000         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
29001         instead of __builtin_lfloor.
29002         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
29004 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29006         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
29007         (tree_ssa_ifcombine_bb_1): New function.
29008         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
29009         is an empty forwarder block to then_bb or vice versa and then_bb
29010         and else_bb are effectively swapped.
29012 2014-03-12  Christian Bruel  <christian.bruel@st.com>
29014         PR target/60264
29015         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
29016         REG_CFA_DEF_CFA note.
29017         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
29018         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
29020 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29022         PR tree-optimization/60454
29023         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
29025 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29027         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
29028         Do not define target_cpu_default2 to generic.
29029         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
29030         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
29031         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
29033 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29034             Marc Glisse  <marc.glisse@inria.fr>
29036         PR tree-optimization/60502
29037         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
29038         instead of build_low_bits_mask.
29040 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29042         PR middle-end/60482
29043         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
29044         if there are multiple uses, but op doesn't live on E edge.
29045         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
29046         clobber stmts before __builtin_unreachable.
29048 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
29050         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
29051         hard_frame_pointer_rtx.
29052         * cse.c (cse_insn): Remove volatile check.
29053         * cselib.c (cselib_process_insn): Likewise.
29054         * dse.c (scan_insn): Likewise.
29056 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29058         * config/arc/arc.c (conditionalize_nonjump): New function,
29059         broken out of ...
29060         (arc_ifcvt): ... this.
29061         (arc_predicate_delay_insns): Use it.
29063 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29065         * config/arc/predicates.md (extend_operand): During/after reload,
29066         allow const_int_operand.
29067         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
29068         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
29069         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
29070         to "i".
29071         (umulsi3_highpart_i): Likewise.
29073 2014-03-11  Richard Biener  <rguenther@suse.de>
29075         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
29076         Add asserts to guard possible wrong-code bugs.
29078 2014-03-11  Richard Biener  <rguenther@suse.de>
29080         PR tree-optimization/60429
29081         PR tree-optimization/60485
29082         * tree-ssa-structalias.c (set_union_with_increment): Properly
29083         take into account all fields that overlap the shifted vars.
29084         (do_sd_constraint): Likewise.
29085         (do_ds_constraint): Likewise.
29086         (get_constraint_for_ptr_offset): Likewise.
29088 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
29090         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
29091         (nios2_compute_frame_layout):
29092         Add calculation of cfun->machine->fp_save_offset.
29093         (nios2_expand_prologue): Correct setting of frame pointer register
29094         in prologue.
29095         (nios2_expand_epilogue): Update recovery of stack pointer from
29096         frame pointer accordingly.
29097         (nios2_initial_elimination_offset): Update calculation of offset
29098         for eliminating to HARD_FRAME_POINTER_REGNUM.
29100 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
29102         PR ipa/60457
29103         * ipa.c (symtab_remove_unreachable_nodes): Don't call
29104         cgraph_get_create_node on VAR_DECLs.
29106 2014-03-10  Richard Biener  <rguenther@suse.de>
29108         PR middle-end/60474
29109         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
29111 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
29113         * config/vms/vms.opt (vms_float_format): New variable.
29115 2014-03-08  Tobias Burnus  <burnus@net-b.de>
29117         * doc/invoke.texi (-fcilkplus): Update implementation status.
29119 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
29120             Richard Biener  <rguenther@suse.de>
29122         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
29123         consistently accross all TUs.
29124         (run_gcc): Enable -fshort-double automatically at link at link-time
29125         and disallow override.
29127 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
29129         PR target/58271
29130         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
29131         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
29132         if they can't be used.
29134 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29136         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
29137         for Solaris 11/x86 ld.
29138         * configure: Regenerate.
29140 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29142         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
29143         (LIB_TLS_SPEC): Save as ld_tls_libs.
29144         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
29145         (HAVE_AS_IX86_TLSLDM): New test.
29146         * configure, config.in: Regenerate.
29147         * config/i386/i386.c (legitimize_tls_address): Fall back to
29148         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
29149         cannot support TLS_MODEL_LOCAL_DYNAMIC.
29150         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
29151         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
29153 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
29155         * common.opt (fira-loop-pressure): Mark as optimization.
29157 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
29159         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
29160         an OpenMP mappable type.
29162 2014-03-06  Matthias Klose  <doko@ubuntu.com>
29164         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
29165         MULTILIB_OSDIRNAMES is not defined.
29167 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
29168             Meador Inge  <meadori@codesourcery.com>
29170         PR target/58595
29171         * config/arm/arm.c (arm_tls_symbol_p): Remove.
29172         (arm_legitimize_address): Call legitimize_tls_address for any
29173         arm_tls_referenced_p expression, handle constant addend.  Call it
29174         before testing for !TARGET_ARM.
29175         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
29177 2014-03-06  Richard Biener  <rguenther@suse.de>
29179         PR middle-end/60445
29180         PR lto/60424
29181         PR lto/60427
29182         Revert
29183         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
29185         * tree-streamer.c (record_common_node): Assert we don't record
29186         nodes with type double.
29187         (preload_common_node): Skip type double, complex double and double
29188         pointer since it is now frontend dependent due to fshort-double option.
29190 2014-03-06  Richard Biener  <rguenther@suse.de>
29192         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
29193         or -fno-lto is specified and the linker has full plugin support.
29194         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
29195         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
29196         * lto-wrapper.c (merge_and_complain): Merge compile-time
29197         optimization levels.
29198         (run_gcc): And pass it through to the link options.
29200 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
29202         PR debug/60381
29203         Revert:
29204         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29205         PR debug/59992
29206         * cselib.c (remove_useless_values): Skip to avoid quadratic
29207         behavior if the condition moved from...
29208         (cselib_process_insn): ... here holds.
29210 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
29212         PR plugins/59335
29213         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
29214         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
29216         PR plugins/59335
29217         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
29218         (TM_H): Add x86-tune.def.
29220 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29222         * config/aarch64/aarch64.c (generic_tunings):
29223         Use cortexa57_extra_costs.
29225 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
29227         PR lto/60404
29228         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
29229         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
29230         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
29231         cost for in_lto_p.
29233 2014-03-04  Heiher  <r@hev.cc>
29235         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
29236         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
29238 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
29240         * config/i386/predicates.md (const2356_operand): Change to ...
29241         (const2367_operand): ... this.
29242         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
29243         const2367_operand.
29244         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29245         (*avx512pf_scatterpf<mode>sf): Ditto.
29246         (avx512pf_scatterpf<mode>df): Ditto.
29247         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29248         (*avx512pf_scatterpf<mode>df): Ditto.
29249         * config/i386/i386.c (ix86_expand_builtin): Update
29250         incorrect hint operand error message.
29252 2014-03-04  Richard Biener  <rguenther@suse.de>
29254         * lto-section-in.c (lto_get_section_data): Fix const cast.
29256 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
29258         * tree-streamer.c (record_common_node): Assert we don't record
29259         nodes with type double.
29260         (preload_common_node): Skip type double, complex double and double
29261         pointer since it is now frontend dependent due to fshort-double option.
29263 2014-03-04  Richard Biener  <rguenther@suse.de>
29265         PR lto/60405
29266         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
29267         (lto_input_toplevel_asms): Likewise.
29268         * lto-section-in.c (lto_get_section_data): Instead do it here
29269         for every section.
29271 2014-03-04  Richard Biener  <rguenther@suse.de>
29273         PR tree-optimization/60382
29274         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
29275         dead PHIs a reduction.
29277 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
29279         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
29280         hint value.
29281         (_mm_prefetch): Move out of GCC target("sse") pragma.
29282         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
29283         GCC target("prfchw") pragma.
29284         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
29285         for locality <= 2.
29286         * config/i386/i386.c (ix86_option_override_internal): Enable
29287         -mprfchw with -mprefetchwt1.
29289 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
29291         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
29292         Mark as varying.
29294 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
29296         * opts.h (CL_PCH_IGNORE): Define.
29297         * targhooks.c (option_affects_pch_p):
29298         Return false for options that have CL_PCH_IGNORE set.
29299         * opt-functions.awk: Process PchIgnore.
29300         * doc/options.texi: Document PchIgnore.
29302         * config/arc/arc.opt (misize): Add PchIgnore property.
29304 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29306         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
29307         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
29308         constraint on constants to permit them being loaded into
29309         GENERAL_REGS or BASE_REGS.
29311 2014-03-03  Nick Clifton  <nickc@redhat.com>
29313         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
29314         anti-cacnonical alternatives.
29315         (negandhi3_real): New pattern.
29316         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
29318 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29320         * config/avr/avr-mcus.def: Remove atxmega16x1.
29321         * config/avr/avr-tables.opt: Regenerate.
29322         * config/avr/t-multilib: Regenerate.
29323         * doc/avr-mmcu.texi: Regenerate.
29325 2014-03-03  Tobias Grosser  <tobias@grosser.es>
29326             Mircea Namolaru  <mircea.namolaru@inria.fr>
29328         PR tree-optimization/58028
29329         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
29330         scalar dimensions.
29332 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29334         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
29335         not handled by recognizers.
29337 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
29339         PR middle-end/60175
29340         * function.c (expand_function_end): Don't emit
29341         clobber_return_register sequence if clobber_after is a BARRIER.
29342         * cfgexpand.c (construct_exit_block): Append instructions before
29343         return_label to prev_bb.
29345 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29347         * config/rs6000/constraints.md: Document reserved use of "wc".
29349 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
29351         PR ipa/60150
29352         * ipa.c (function_and_variable_visibility): When dissolving comdat
29353         group, also set all symbols to local.
29355 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
29357         PR ipa/60306
29359         Revert:
29360         2013-12-14  Jan Hubicka  <jh@suse.cz>
29361         PR middle-end/58477
29362         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
29364 2014-03-02  Jon Beniston  <jon@beniston.com>
29366         PR bootstrap/48230
29367         PR bootstrap/50927
29368         PR bootstrap/52466
29369         PR target/46898
29370         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
29371           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
29372         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
29373         (simple_return, *simple_return): New patterns
29374         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
29375         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
29377 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
29379         * dwarf2out.c (gen_subprogram_die): Tidy.
29381 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
29383         PR target/60071
29384         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
29385         (*mov_t_msb_neg_negc): ... this new insn.
29387 2014-02-28  Jason Merrill  <jason@redhat.com>
29389         PR c++/58678
29390         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
29391         function.
29393 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
29395         PR c++/60314
29396         * dwarf2out.c (decltype_auto_die): New static.
29397         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
29398         (gen_type_die_with_usage): Handle 'decltype(auto)'.
29399         (is_cxx_auto): Likewise.
29401 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
29403         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
29404         we are not using general regs only.
29406 2014-02-28  Richard Biener  <rguenther@suse.de>
29408         PR target/60280
29409         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
29410         previous fix and only allow to remove trivial pre-headers
29411         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
29412         (remove_forwarder_block): Properly update the latch of a loop.
29414 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29416         PR debug/59992
29417         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
29418         (cselib_preserved_hash_table): New.
29419         (preserve_constants_and_equivs): Move preserved vals to it.
29420         (cselib_find_slot): Look it up first.
29421         (cselib_init): Initialize it.
29422         (cselib_finish): Release it.
29423         (dump_cselib_table): Dump it.
29425 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29427         PR debug/59992
29428         * cselib.c (remove_useless_values): Skip to avoid quadratic
29429         behavior if the condition moved from...
29430         (cselib_process_insn): ... here holds.
29432 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29434         PR debug/57232
29435         * var-tracking.c (vt_initialize): Apply the same condition to
29436         preserve the CFA base value.
29438 2014-02-28  Joey Ye  <joey.ye@arm.com>
29440         PR target/PR60169
29441         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
29442         if reload in progress or completed.
29444 2014-02-28  Tobias Burnus  <burnus@net-b.de>
29446         PR middle-end/60147
29447         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
29448         NAMELIST_DECL.
29450 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
29452         * doc/tm.texi.in (Condition Code Status): Update documention for
29453         relative locations of cc0-setter and cc0-user.
29455 2014-02-27  Jeff Law  <law@redhat.com>
29457         PR rtl-optimization/52714
29458         * combine.c (try_combine): When splitting an unrecognized PARALLEL
29459         into two independent simple sets, if I3 is a jump, ensure the
29460         pattern we place into I3 is a (set (pc) ...).
29462 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
29463             Jeff Law  <law@redhat.com>
29465         PR rtl-optimization/49847
29466         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
29467         are in different blocks.
29468         * doc/tm.texi (Condition Code Status): Update documention for
29469         relative locations of cc0-setter and cc0-user.
29471 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
29473         PR target/59222
29474         * lra.c (lra_emit_add): Check SUBREG too.
29476 2014-02-27  Andreas Schwab  <schwab@suse.de>
29478         * config/m68k/m68k.c (m68k_option_override): Disable
29479         -flive-range-shrinkage for classic m68k.
29480         (m68k_override_options_after_change): Likewise.
29482 2014-02-27  Marek Polacek  <polacek@redhat.com>
29484         PR middle-end/59223
29485         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
29486         -Wmaybe-uninitialized.
29488 2014-02-27  Alan Modra  <amodra@gmail.com>
29490         PR target/57936
29491         * reload1.c (emit_input_reload_insns): When reload_override_in,
29492         set old to rl->in_reg when rl->in_reg is a subreg.
29494 2014-02-26  Richard Biener  <rguenther@suse.de>
29496         PR bootstrap/60343
29497         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
29499 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
29501         * common/config/i386/predicates.md (const1256_operand): Remove.
29502         (const2356_operand): New.
29503         (const_1_to_2_operand): Remove.
29504         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29505         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29506         (*avx512pf_gatherpf<mode>sf): Ditto.
29507         (avx512pf_gatherpf<mode>df): Ditto.
29508         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29509         (*avx512pf_gatherpf<mode>df): Ditto.
29510         (avx512pf_scatterpf<mode>sf): Ditto.
29511         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29512         (*avx512pf_scatterpf<mode>sf): Ditto.
29513         (avx512pf_scatterpf<mode>df): Ditto.
29514         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29515         (*avx512pf_scatterpf<mode>df): Ditto.
29516         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
29518 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
29520         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
29521         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
29522         (_mm512_mask_testn_epi64_mask): Move to ...
29523         * config/i386/avx512cdintrin.h: Here.
29524         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
29525         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
29526         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
29527         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
29528         TARGET_AVX512F from TARGET_AVX512CD.
29530 2014-02-26  Richard Biener  <rguenther@suse.de>
29532         PR ipa/60327
29533         * ipa.c (walk_polymorphic_call_targets): Properly guard
29534         call to inline_update_overall_summary.
29536 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
29538         PR target/60280
29539         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
29540         and latches only if requested.  Fix latch if it is removed.
29541         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
29542         LOOPS_HAVE_PREHEADERS.
29544 2014-02-25  Andrew Pinski  <apinski@cavium.com>
29546         * builtins.c (expand_builtin_thread_pointer): Create a new target
29547         when the target is NULL.
29549 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
29551         PR rtl-optimization/60317
29552         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29553         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29554         * lra-assigns.c: Include params.h.
29555         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
29556         other reload pseudos considerations.
29558 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29560         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
29561         to use canonical form for nor<mode>3.
29563 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29565         PR target/55426
29566         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
29567         conversions.
29569 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
29571         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
29572         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
29573         (ix86_handle_option): Handle OPT_mprefetchwt1.
29574         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
29575         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29576         PREFETCHWT1 CPUID.
29577         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29578         OPTION_MASK_ISA_PREFETCHWT1.
29579         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
29580         (PTA_PREFETCHWT1): New.
29581         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
29582         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
29583         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
29584         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
29585         (*prefetch_avx512pf_<mode>_: Change into ...
29586         (*prefetch_prefetchwt1_<mode>: This.
29587         * config/i386/i386.opt (mprefetchwt1): New.
29588         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
29589         (_mm_prefetch): Handle intent to write.
29590         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
29592 2014-02-25  Richard Biener  <rguenther@suse.de>
29594         PR middle-end/60291
29595         * emit-rtl.c (mem_attrs_htab): Remove.
29596         (mem_attrs_htab_hash): Likewise.
29597         (mem_attrs_htab_eq): Likewise.
29598         (set_mem_attrs): Always allocate new mem-attrs when something changed.
29599         (init_emit_once): Do not allocate mem_attrs_htab.
29601 2014-02-25  Richard Biener  <rguenther@suse.de>
29603         PR lto/60319
29604         * lto-opts.c (lto_write_options): Output non-explicit conservative
29605         -fwrapv, -fno-trapv and -fno-strict-overflow.
29606         * lto-wrapper.c (merge_and_complain): Handle merging those options.
29607         (run_gcc): And pass them through.
29609 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
29611         * sel-sched.c (calculate_new_fences): New parameter ptime.
29612         Calculate it as a maximum over all fence cycles.
29613         (sel_sched_region_2): Adjust the call to calculate_new_fences.
29614         Print the final schedule timing when sched_verbose.
29616 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
29618         PR rtl-optimization/60292
29619         * sel-sched.c (fill_vec_av_set): Do not reset target availability
29620         bit fot the fence instruction.
29622 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
29624         * calls.h: Fix typo in comment.
29626 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
29628         * config/pa/pa.c (pa_output_move_double): Don't valididate when
29629         adjusting offsetable addresses.
29631 2014-02-24  Guozhi Wei  <carrot@google.com>
29633         * sparseset.h (sparseset_pop): Fix the wrong index.
29635 2014-02-24  Walter Lee  <walt@tilera.com>
29637         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
29638         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
29639         triplet.
29640         * common/config/tilegx/tilegx-common.c
29641         (TARGET_DEFAULT_TARGET_FLAGS): Define.
29642         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
29643         (LINK_SPEC): Ditto.
29644         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
29645         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
29646         (tilegx_gimplify_va_arg_expr): Handle big endian.
29647         (tilegx_expand_unaligned_load): Ditto.
29648         (tilegx_expand_unaligned_store): Ditto.
29649         (TARGET_RETURN_IN_MSB): New.
29650         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
29651         (TARGET_ENDIAN_DEFAULT): New.
29652         (TARGET_BIG_ENDIAN): Handle big endian.
29653         (BYTES_BIG_ENDIAN): Ditto.
29654         (WORDS_BIG_ENDIAN): Ditto.
29655         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
29656         (ENDIAN_SPEC): New.
29657         (EXTRA_SPECS): New.
29658         * config/tilegx/tilegx.md (extv): Handle big endian.
29659         (extzv): Ditto.
29660         (insn_st<n>): Ditto.
29661         (insn_st<n>_add<bitsuffix>): Ditto.
29662         (insn_stnt<n>): Ditto.
29663         (insn_stnt<n>_add<bitsuffix>):Ditto.
29664         (vec_interleave_highv8qi): Handle big endian.
29665         (vec_interleave_highv8qi_be): New.
29666         (vec_interleave_highv8qi_le): New.
29667         (insn_v1int_h): Handle big endian.
29668         (vec_interleave_lowv8qi): Handle big endian.
29669         (vec_interleave_lowv8qi_be): New.
29670         (vec_interleave_lowv8qi_le): New.
29671         (insn_v1int_l): Handle big endian.
29672         (vec_interleave_highv4hi): Handle big endian.
29673         (vec_interleave_highv4hi_be): New.
29674         (vec_interleave_highv4hi_le): New.
29675         (insn_v2int_h): Handle big endian.
29676         (vec_interleave_lowv4hi): Handle big endian.
29677         (vec_interleave_lowv4hi_be): New.
29678         (vec_interleave_lowv4hi_le): New.
29679         (insn_v2int_l): Handle big endian.
29680         (vec_interleave_highv2si): Handle big endian.
29681         (vec_interleave_highv2si_be): New.
29682         (vec_interleave_highv2si_le): New.
29683         (insn_v4int_h): Handle big endian.
29684         (vec_interleave_lowv2si): Handle big endian.
29685         (vec_interleave_lowv2si_be): New.
29686         (vec_interleave_lowv2si_le): New.
29687         (insn_v4int_l): Handle big endian.
29688         * config/tilegx/tilegx.opt (mbig-endian): New option.
29689         (mlittle-endian): New option.
29690         * doc/install.texi: Document tilegxbe-linux.
29691         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
29693 2014-02-24  Martin Jambor  <mjambor@suse.cz>
29695         PR ipa/60266
29696         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
29697         there are no parameter descriptors.
29699 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
29701         PR rtl-optimization/60268
29702         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
29703         initialization to ...
29704         (sched_rgn_init): ... here.
29705         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
29707 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29709         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
29710         names.
29712 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
29714         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
29715         definition.
29717 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29719         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
29720         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
29722 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29724         * config/microblaze/predicates.md: Add cmp_op predicate.
29725         * config/microblaze/microblaze.md: Add branch_compare instruction
29726         which uses cmp_op predicate and emits cmp insn before branch.
29727         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
29728         to microblaze_expand_conditional_branch and consolidate logic.
29729         (microblaze_expand_conditional_branch): emit branch_compare
29730         insn instead of handling cmp op separate from branch insn.
29732 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29734         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
29735         to permit subregs.
29737 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29739         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
29740         define_insn with define_expand and new define_insn
29741         *altivec_lve<VI_char>x_internal.
29742         (altivec_stve<VI_char>x): Replace define_insn with define_expand
29743         and new define_insn *altivec_stve<VI_char>x_internal.
29744         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
29745         prototype.
29746         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
29747         lve*x built-ins.
29748         (altivec_expand_stvex_be): New function.
29750 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
29752         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
29753         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
29754         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
29755         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
29757 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
29759         PR target/60298
29760         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
29761         instead of emit_move_insn.
29763 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29765         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
29766         vspltw with vsldoi.
29767         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
29768         gen_altivec_vsumsws.
29770 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29772         * config/rs6000/altivec.md (altivec_lvxl): Rename as
29773         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
29774         (altivec_lvxl_<mode>): New define_expand incorporating
29775         -maltivec=be semantics where needed.
29776         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
29777         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
29778         semantics where needed.
29779         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
29780         (altivec_stvx_<mode>): New define_expand incorporating
29781         -maltivec=be semantics where needed.
29782         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
29783         VM2 iterator instead of V4SI.
29784         (altivec_stvxl_<mode>): New define_expand incorporating
29785         -maltivec=be semantics where needed.
29786         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
29787         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
29788         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
29789         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
29790         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
29791         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
29792         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
29793         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
29794         ALTIVEC_BUILTIN_STVXL.
29795         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
29796         (altivec_expand_stvx_be): Likewise.
29797         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
29798         (altivec_expand_lvx_be): Likewise.
29799         (altivec_expand_stvx_be): Likewise.
29800         (altivec_expand_builtin): Add cases for
29801         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
29802         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
29803         (altivec_init_builtins): Add definitions for
29804         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
29805         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
29807 2014-02-21  Catherine Moore  <clm@codesourcery.com>
29809         * doc/invoke.texi (mvirt, mno-virt): Document.
29810         * config/mips/mips.opt (mvirt): New option.
29811         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
29813 2014-02-21  Richard Biener  <rguenther@suse.de>
29815         PR tree-optimization/60276
29816         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
29817         (STMT_VINFO_MIN_NEG_DIST): New macro.
29818         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
29819         STMT_VINFO_MIN_NEG_DIST.
29820         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
29821         made for negative dependence distances still hold.
29823 2014-02-21  Richard Biener  <rguenther@suse.de>
29825         PR middle-end/60291
29826         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
29827         DECL_INITIAL for globals not in the current function context.
29829 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29831         PR tree-optimization/56490
29832         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
29833         * tree-ssa-uninit.c: Include params.h.
29834         (compute_control_dep_chain): Add num_calls argument, return false
29835         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
29836         num_calls to recursive call.
29837         (find_predicates): Change dep_chain into normal array,
29838         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
29839         variable and adjust compute_control_dep_chain caller.
29840         (find_def_preds): Likewise.
29842 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
29844         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
29845         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
29847 2014-02-21  Nick Clifton  <nickc@redhat.com>
29849         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
29850         (pushhi1): Likewise.
29851         (popqi1): Add mode to pre_dec.
29852         (pophi1): Likewise.
29854 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29856         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
29857         mode for mask of V8SFmode permutation.
29859 2014-02-20  Richard Henderson  <rth@redhat.com>
29861         PR c++/60272
29862         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
29863         a new pseudo for OLDVAL.
29865 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
29867         PR target/57896
29868         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
29869         gen_reg_rtx if d->testing_p.
29870         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
29871         if d->testing_p and we will certainly return true.
29872         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
29873         if d->testing_p.
29875 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
29877         * emit-rtl.c (gen_reg_rtx): Assert that
29878         crtl->emit.regno_pointer_align_length is non-zero.
29880 2014-02-20  Richard Henderson  <rth@redhat.com>
29882         PR c++/60272
29883         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
29884         on failure the store back into EXPECT.
29886 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
29887             Sandra Loosemore  <sandra@codesourcery.com>
29889         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
29890         * config/nios2/nios2.c (nios2_function_profiler): Add
29891         -fPIC (flag_pic == 2) support.
29892         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
29893         (nios2_large_offset_p): New function.
29894         (nios2_unspec_reloc_p): Move up position, update to use
29895         nios2_large_offset_p.
29896         (nios2_unspec_address): Remove function.
29897         (nios2_unspec_offset): New function.
29898         (nios2_large_got_address): New function.
29899         (nios2_got_address): Add large offset support.
29900         (nios2_legitimize_tls_address): Update usage of removed and new
29901         functions.
29902         (nios2_symbol_binds_local_p): New function.
29903         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
29904         (nios2_legitimize_address): Update to use nios2_large_offset_p.
29905         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
29906         (nios2_print_operand): Merge H/L processing, add hiadj/lo
29907         processing for (const (unspec ...)).
29908         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
29910 2014-02-20  Richard Biener  <rguenther@suse.de>
29912         * tree-cfg.c (replace_uses_by): Mark altered BBs before
29913         doing the substitution.
29914         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
29916 2014-02-20  Martin Jambor  <mjambor@suse.cz>
29918         PR ipa/55260
29919         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
29920         info when checking whether lattices are bottom.
29922 2014-02-20  Richard Biener  <rguenther@suse.de>
29924         PR middle-end/60221
29925         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
29926         regions at -O0.
29928 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
29930         PR ipa/58555
29931         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
29932         parameter specifying the scaling.
29933         (inline_call): Update.
29934         (want_inline_recursively): Guard division by zero.
29935         (recursive_inlining): Update.
29936         * ipa-inline.h (clone_inlined_nodes): Update.
29938 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29940         PR target/60204
29941         * config/i386/i386.c (classify_argument): Pass structures of size
29942         64 bytes or less in register.
29944 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29945             Kirill Yukhin  <kirill.yukhin@intel.com>
29947         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
29948         (_mm_rcp28_round_ss): Ditto.
29949         (_mm_rsqrt28_round_sd): Ditto.
29950         (_mm_rsqrt28_round_ss): Ditto.
29951         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
29952         (_mm_rcp14_round_ss): Ditto.
29953         (_mm_rsqrt14_round_sd): Ditto.
29954         (_mm_rsqrt14_round_ss): Ditto.
29955         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
29956         the first input operand, get rid of match_dup.
29957         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29958         attribute to sse.
29959         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29960         Ditto.
29961         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29962         operand as the first input operand, set type attribute.
29963         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29964         Set type attribute.
29965         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29966         operand as the first input operand, set type attribute.
29968 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29970         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29971         bit of zero.
29973 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
29975         PR target/60207
29976         * config/i386/i386.c (construct_container): Remove TFmode check
29977         for X86_64_INTEGER_CLASS.
29979 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
29981         PR target/59794
29982         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29983         only when -Wpsabi is enabled.
29985 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
29987          PR target/59799
29988         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29989         passing arrays in registers are the same as for structs, so remove the
29990         special case for them.
29992 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
29994         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29995         destination type, extract only the valid bits if the source type is not
29996         integral and has a different mode.
29998 2014-02-19  Richard Biener  <rguenther@suse.de>
30000         PR ipa/60243
30001         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
30002         for all calls.
30004 2014-02-19  Richard Biener  <rguenther@suse.de>
30006         PR ipa/60243
30007         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
30008         (ipa_modify_call_arguments): Emit an argument load explicitely and
30009         preserve virtual SSA form there and for the replacement call.
30010         Do not update SSA form nor free dominance info.
30012 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30014         * ipa.c (function_and_variable_visibility): Also clear WEAK
30015         flag when disolving COMDAT_GROUP.
30017 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30019         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
30020         * ipa-prop.c (ipa_set_jf_known_type): Return early when
30021         not devirtualizing.
30022         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
30023         do more sanity checks.
30024         (detect_type_change): Return true when giving up early.
30025         (compute_complex_assign_jump_func): Fix type parameter of
30026         ipa_set_ancestor_jf.
30027         (compute_complex_ancestor_jump_func): Likewise.
30028         (update_jump_functions_after_inlining): Fix updating of
30029         ancestor function.
30030         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
30032 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30034         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
30035         inline clones when edge disappears.
30037 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
30039         PR target/60203
30040         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
30041         Split 64-bit moves into 2 patterns.  Do not allow the use of
30042         direct move for TDmode in little endian, since the decimal value
30043         has little endian bytes within a word, but the 64-bit pieces are
30044         ordered in a big endian fashion, and normal subreg's of TDmode are
30045         not allowed.
30046         (mov<mode>_64bit_dm): Likewise.
30047         (movtd_64bit_nodm): Likewise.
30049 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
30051         PR tree-optimization/60174
30052         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
30053         statement of an SSA_NAME that occurs in an abnormal PHI node.
30055 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
30057         PR sanitizer/60142
30058         * final.c (SEEN_BB): Remove.
30059         (SEEN_NOTE, SEEN_EMITTED): Renumber.
30060         (final_scan_insn): Don't force_source_line on second
30061         NOTE_INSN_BASIC_BLOCK.
30063 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
30065         PR target/60205
30066         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
30067         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
30068         (type_natural_mode): Warn ABI change when %zmm register is not
30069         available for AVX512F vector value passing.
30071 2014-02-18  Kai Tietz  <ktietz@redhat.com>
30073         PR target/60193
30074         * config/i386/i386.c (ix86_expand_prologue): Use value in
30075         rax register as displacement when restoring %r10 or %rax.
30076         Fix wrong offset when restoring both registers.
30078 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
30080         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
30081         assertion with conditional return.
30083 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
30084             Uros Bizjak  <ubizjak@gmail.com>
30086         PR driver/60233
30087         * config/i386/driver-i386.c (host_detect_local_cpu): If
30088         YMM state is not saved by the OS, also clear has_f16c.  Move
30089         CPUID 0x80000001 handling before YMM state saving checking.
30091 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
30093         PR rtl-optimization/58960
30094         * haifa-sched.c (alloc_global_sched_pressure_data): New,
30095         factored out from ...
30096         (sched_init): ... here.
30097         (free_global_sched_pressure_data): New, factored out from ...
30098         (sched_finish): ... here.
30099         * sched-int.h (free_global_sched_pressure_data): Declare.
30100         * sched-rgn.c (nr_regions_initial): New static global.
30101         (haifa_find_rgns): Initialize it.
30102         (schedule_region): Disable sched-pressure for the newly
30103         generated regions.
30105 2014-02-17  Richard Biener  <rguenther@suse.de>
30107         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
30108         release SSA defs of pattern stmts.
30110 2014-02-17  Richard Biener  <rguenther@suse.de>
30112         * tree-inline.c (expand_call_inline): Release the virtual
30113         operand defined by the call we are about to inline.
30115 2014-02-17  Richard Biener  <rguenther@suse.de>
30117         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
30119 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
30120             Ilya Tocar  <ilya.tocar@intel.com>
30122         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
30123         arguments order in builtin.
30124         (_mm512_permutexvar_epi64): Ditto.
30125         (_mm512_mask_permutexvar_epi64): Ditto
30126         (_mm512_maskz_permutexvar_epi32): Ditto
30127         (_mm512_permutexvar_epi32): Ditto
30128         (_mm512_mask_permutexvar_epi32): Ditto
30130 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30132         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
30133         (p8_vmrgow): Likewise.
30135 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30137         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
30138         endian targets.
30140 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
30142         PR target/60203
30143         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
30144         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
30145         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
30146         using direct move instructions on ISA 2.07.  Also adjust
30147         instruction length for 64-bit.
30148         (mov<mode>_64bit, TFmode/TDmode): Likewise.
30149         (mov<mode>_32bit, TFmode/TDmode): Likewise.
30151 2014-02-15  Alan Modra  <amodra@gmail.com>
30153         PR target/58675
30154         PR target/57935
30155         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30156         find_replacement on parts of insn rtl that might be reloaded.
30158 2014-02-15  Richard Biener  <rguenther@suse.de>
30160         PR tree-optimization/60183
30161         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
30162         (tree_ssa_phiprop): Calculate and free post-dominators.
30164 2014-02-14  Jeff Law  <law@redhat.com>
30166         PR rtl-optimization/60131
30167         * ree.c (get_extended_src_reg): New function.
30168         (combine_reaching_defs): Use it rather than assuming location of REG.
30169         (find_and_remove_re): Verify first operand of extension is
30170         a REG before adding the insns to the copy list.
30172 2014-02-14  Roland McGrath  <mcgrathr@google.com>
30174         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
30175         * configure: Regenerated.
30176         * config.in: Regenerated.
30177         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
30178         instead of ASM_SHORT.
30180 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
30181             Richard Earnshaw  <rearnsha@arm.com>
30183         PR rtl-optimization/59535
30184         * lra-constraints.c (process_alt_operands): Encourage alternative
30185         when unassigned pseudo class is superset of the alternative class.
30186         (inherit_reload_reg): Don't inherit when optimizing for code size.
30187         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
30188         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
30189         modes not less than 4 for Thumb1.
30191 2014-02-14  Kyle McMartin  <kyle@redhat.com>
30193         PR pch/60010
30194         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
30196 2014-02-14  Richard Biener  <rguenther@suse.de>
30198         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
30199         (get_frame_arg): Drop the assert with langhook types_compatible_p.
30200         Do not strip INDIRECT_REFs.
30202 2014-02-14  Richard Biener  <rguenther@suse.de>
30204         PR lto/60179
30205         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
30206         DECL_FUNCTION_SPECIFIC_TARGET.
30207         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
30208         * tree-streamer-out.c (pack_ts_target_option): Remove.
30209         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
30210         (write_ts_function_decl_tree_pointers): Do not stream
30211         DECL_FUNCTION_SPECIFIC_TARGET.
30212         * tree-streamer-in.c (unpack_ts_target_option): Remove.
30213         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
30214         (lto_input_ts_function_decl_tree_pointers): Do not stream
30215         DECL_FUNCTION_SPECIFIC_TARGET.
30217 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
30219         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
30220         (get_initial_def_for_induction, vectorizable_induction): Ignore
30221         debug stmts when looking for exit_phi.
30222         (vectorizable_live_operation): Fix up condition.
30224 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30226         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
30227         nreverse() because it changes the content of original tree list.
30229 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30231         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
30232         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
30234 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30236         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
30237         GNU coding standards.
30239 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
30241         PR debug/60152
30242         * dwarf2out.c (gen_subprogram_die): Don't call
30243         add_calling_convention_attribute if subr_die is old_die.
30245 2014-02-13  Sharad Singhai  <singhai@google.com>
30247         * doc/optinfo.texi: Fix order of nodes.
30249 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
30251         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
30252         operands[2], not operands[3].
30254 2014-02-13  Richard Biener  <rguenther@suse.de>
30256         PR bootstrap/59878
30257         * doc/install.texi (ISL): Update recommended version to 0.12.2,
30258         mention the possibility of an in-tree build.
30259         (CLooG): Update recommended version to 0.18.1, mention the
30260         possibility of an in-tree build and clarify that the ISL
30261         bundled with CLooG does not work.
30263 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
30265         PR target/43546
30266         * expr.c (compress_float_constant): If x is a hard register,
30267         extend into a pseudo and then move to x.
30269 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30271         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
30272         caused by bad second argument to warning_at() with -mhotpatch and
30273         nested functions (e.g. with gfortran).
30275 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
30277         * opts.c (option_name): Remove "enabled by default" rider.
30279 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
30281         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
30283 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
30284             Uros Bizjak  <ubizjak@gmail.com>
30286         PR target/60151
30287         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
30288         * configure: Regenerated.
30290 2014-02-12  Richard Biener  <rguenther@suse.de>
30292         * vec.c (vec_prefix::calculate_allocation): Move as
30293         inline variant to vec.h.
30294         (vec_prefix::calculate_allocation_1): New out-of-line version.
30295         * vec.h (vec_prefix::calculate_allocation_1): Declare.
30296         (vec_prefix::m_has_auto_buf): Rename to ...
30297         (vec_prefix::m_using_auto_storage): ... this.
30298         (vec_prefix::calculate_allocation): Inline the easy cases
30299         and dispatch to calculate_allocation_1 which doesn't need the
30300         prefix address.
30301         (va_heap::reserve): Use gcc_checking_assert.
30302         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
30303         m_using_auto_storage.
30304         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
30305         member and adjust.
30306         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
30307         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
30308         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
30310 2014-02-12  Richard Biener  <rguenther@suse.de>
30312         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
30313         when we found a dependence.
30315 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
30317         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
30318         common code...
30319         (maybe_fold_stmt): ... into this new function.
30320         * omp-low.c (lower_omp): Update comment.
30322         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
30323         last use.
30325         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
30326         dereference.
30328 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
30330         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
30331         identifiers in comments.
30332         (cortexa53_extra_costs): Likewise.
30333         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
30334         (cortexa7_extra_costs): Likewise.
30335         (cortexa12_extra_costs): Likewise.
30336         (cortexa15_extra_costs): Likewise.
30337         (v7m_extra_costs): Likewise.
30339 2014-02-12  Richard Biener  <rguenther@suse.de>
30341         PR middle-end/60092
30342         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
30343         of posix_memalign being successful.
30344         (lower_stmt): Restrict lowering of posix_memalign to when
30345         -ftree-bit-ccp is enabled.
30347 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30349         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
30350         arg_loc.
30351         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
30353 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
30355         PR rtl-optimization/60116
30356         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
30357         other_insn once the combination has been validated.
30359 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
30361         PR lto/59468
30362         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
30363         and wrapper.
30364         * ipa-devirt.c: Include demangle.h
30365         (odr_violation_reported): New static variable.
30366         (add_type_duplicate): Update odr_violations.
30367         (maybe_record_node): Add completep parameter; update it.
30368         (record_target_from_binfo): Add COMPLETEP parameter;
30369         update it as needed.
30370         (possible_polymorphic_call_targets_1): Likewise.
30371         (struct polymorphic_call_target_d): Add nonconstruction_targets;
30372         rename FINAL to COMPLETE.
30373         (record_targets_from_bases): Sanity check we found the binfo;
30374         fix COMPLETEP updating.
30375         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
30376         parameter, fix computing of COMPLETEP.
30377         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
30378         at LTO time do demangling.
30379         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
30380         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
30381         parameter.
30382         (gimple_get_virt_method_for_binfo): Likewise.
30383         * gimple-fold.h (gimple_get_virt_method_for_binfo,
30384         gimple_get_virt_method_for_vtable): Update prototypes.
30386 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
30388         PR target/49008
30389         * genautomata.c (add_presence_absence): Fix typo with
30390         {final_}presence_list.
30392 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
30394         PR target/60137
30395         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
30396         for VSX/Altivec vectors that land in GPR registers.
30398 2014-02-11  Richard Henderson  <rth@redhat.com>
30399             Jakub Jelinek  <jakub@redhat.com>
30401         PR debug/59776
30402         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
30403         around drhs if type conversion to lacc->type is not useless.
30405 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30407         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
30408         tuning struct.
30409         (cortex-a57.cortex-a53): Likewise.
30410         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
30412 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30414         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
30415         arm_restrict_it.
30417 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
30419         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
30420         add_options_for_arm_vfp3.
30422 2014-02-11  Jeff Law  <law@redhat.com>
30424         PR middle-end/54041
30425         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
30426         object with an undesirable mode.
30428 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30430         PR libgomp/60107
30431         * config/i386/sol2-9.h: New file.
30432         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
30433         *-*-solaris2.9*): Use it.
30435 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
30437         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
30438         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
30440 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
30442         * config/microblaze/microblaze.c: Extend mcpu version format
30444 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
30446         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
30448 2014-02-10  Richard Henderson  <rth@redhat.com>
30450         PR target/59927
30451         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
30452         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
30453         ms-abi vs -mno-accumulate-outgoing-args.
30454         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
30455         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
30456         respect to ms-abi.
30458 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30460         PR middle-end/60080
30461         * cfgexpand.c (expand_asm_operands): Attach source location to
30462         ASM_INPUT rtx objects.
30463         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
30465 2014-02-10  Nick Clifton  <nickc@redhat.com>
30467         * config/mn10300/mn10300.c (popcount): New function.
30468         (mn10300_expand_prologue): Include saved registers in stack usage
30469         count.
30471 2014-02-10  Jeff Law  <law@redhat.com>
30473         PR middle-end/52306
30474         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
30475         when changing the SET_DEST of a prior insn to avoid an input reload.
30477 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30479         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
30480         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
30481         -mcall-openbsd, or -mcall-linux.
30482         (CC1_ENDIAN_BIG_SPEC): Remove.
30483         (CC1_ENDIAN_LITTLE_SPEC): Remove.
30484         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30485         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
30486         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
30487         and %cc1_endian_default.
30488         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30490 2014-02-10  Richard Biener  <rguenther@suse.de>
30492         PR tree-optimization/60115
30493         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
30494         MEM_REF handling.  Properly verify that the accesses are not
30495         out of the objects bound.
30497 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30499         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
30500         coretex to cortex.
30502 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
30504         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
30505         proper constants and fix formatting.
30506         (possible_polymorphic_call_targets): Fix formatting.
30508 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
30509             Ilya Tocar  <ilya.tocar@intel.com>
30511         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
30512         (_mm512_loadu_epi32): Renamed into...
30513         (_mm512_loadu_si512): This.
30514         (_mm512_storeu_epi32): Renamed into...
30515         (_mm512_storeu_si512): This.
30516         (_mm512_maskz_ceil_ps): Removed.
30517         (_mm512_maskz_ceil_pd): Ditto.
30518         (_mm512_maskz_floor_ps): Ditto.
30519         (_mm512_maskz_floor_pd): Ditto.
30520         (_mm512_floor_round_ps): Ditto.
30521         (_mm512_floor_round_pd): Ditto.
30522         (_mm512_ceil_round_ps): Ditto.
30523         (_mm512_ceil_round_pd): Ditto.
30524         (_mm512_mask_floor_round_ps): Ditto.
30525         (_mm512_mask_floor_round_pd): Ditto.
30526         (_mm512_mask_ceil_round_ps): Ditto.
30527         (_mm512_mask_ceil_round_pd): Ditto.
30528         (_mm512_maskz_floor_round_ps): Ditto.
30529         (_mm512_maskz_floor_round_pd): Ditto.
30530         (_mm512_maskz_ceil_round_ps): Ditto.
30531         (_mm512_maskz_ceil_round_pd): Ditto.
30532         (_mm512_expand_pd): Ditto.
30533         (_mm512_expand_ps): Ditto.
30534         * config/i386/i386.c (ix86_builtins): Remove
30535         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
30536         (bdesc_args): Ditto.
30537         * config/i386/predicates.md (const1256_operand): New.
30538         (const_1_to_2_operand): Ditto.
30539         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30540         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30541         (*avx512pf_gatherpf<mode>sf): Ditto.
30542         (avx512pf_gatherpf<mode>df): Ditto.
30543         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30544         (*avx512pf_gatherpf<mode>df): Ditto.
30545         (avx512pf_scatterpf<mode>sf): Ditto.
30546         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30547         (*avx512pf_scatterpf<mode>sf): Ditto.
30548         (avx512pf_scatterpf<mode>df): Ditto.
30549         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30550         (*avx512pf_scatterpf<mode>df): Ditto.
30551         (avx512f_expand<mode>): Removed.
30552         (<shift_insn><mode>3<mask_name>): Change predicate type.
30554 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
30556         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
30557         not at the end of datarefs vector use ordered_remove to avoid
30558         reordering datarefs vector.
30560         PR c/59984
30561         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
30562         mark local addressable non-static vars as GOVD_PRIVATE
30563         instead of GOVD_LOCAL.
30564         * omp-low.c (lower_omp_for): Move gimple_bind_vars
30565         and BLOCK_VARS of gimple_bind_block to new_stmt rather
30566         than copying them.
30568         PR middle-end/60092
30569         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
30570         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
30571         assume_aligned or alloc_align attributes.
30572         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
30573         arguments.  Handle also assume_aligned and alloc_align attributes.
30574         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
30575         calls to functions with assume_aligned or alloc_align attributes.
30576         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
30578 2014-02-08  Terry Guo  <terry.guo@arm.com>
30580         * doc/invoke.texi: Document ARM -march=armv7e-m.
30582 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
30584         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
30585         flag on __cilkrts_rethrow builtin.
30587         PR ipa/60026
30588         * ipa-cp.c (determine_versionability): Fail at -O0
30589         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
30590         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
30592         Revert:
30593         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
30595         PR ipa/60026
30596         * tree-inline.c (copy_forbidden): Fail for
30597         __attribute__((optimize (0))) functions.
30599 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
30601         * varpool.c: Include pointer-set.h.
30602         (varpool_remove_unreferenced_decls): Variables in other partitions
30603         will not be output; be however careful to not lose information
30604         about partitioning.
30606 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
30608         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
30609         lookup in the vtable constructor.
30611 2014-02-07  Jeff Law  <law@redhat.com>
30613         PR target/40977
30614         * config/m68k/m68k.md (ashldi_extsi): Turn into a
30615         define_insn_and_split.
30617         * ipa-inline.c (inline_small_functions): Fix typos.
30619 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30621         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
30622         (s390_can_use_return_insn): Declare.
30623         * config/s390/s390.h (EPILOGUE_USES): Define.
30624         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
30625         instructions.
30626         (s390_chunkify_start): Handle return JUMP_LABELs.
30627         (s390_early_mach): Emit a main_pool instruction on the entry edge.
30628         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
30629         (s390_can_use_return_insn): New functions.
30630         (s390_fix_long_loop_prediction): Handle conditional returns.
30631         (TARGET_SET_UP_BY_PROLOGUE): Define.
30632         * config/s390/s390.md (ANY_RETURN): New code iterator.
30633         (*creturn, *csimple_return, return, simple_return): New patterns.
30635 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30637         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
30638         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
30639         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
30640         REG_CFA_RESTORE list when deciding not to restore a register.
30642 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30644         * config/s390/s390.c: Include tree-pass.h and context.h.
30645         (s390_early_mach): New function, split out from...
30646         (s390_emit_prologue): ...here.
30647         (pass_data_s390_early_mach): New pass structure.
30648         (pass_s390_early_mach): New class.
30649         (s390_option_override): Create and register early_mach pass.
30650         Move to end of file.
30652 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30654         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
30655         to match for the exit block.
30657 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30659         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
30660         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
30661         Reject misaligned operands.
30663 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30665         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
30667 2014-02-07  Richard Biener  <rguenther@suse.de>
30669         PR middle-end/60092
30670         * gimple-low.c (lower_builtin_posix_memalign): New function.
30671         (lower_stmt): Call it to lower posix_memalign in a way
30672         to make alignment info accessible.
30674 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
30676         PR c++/60082
30677         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
30678         __builtin_setjmp_receiver.
30680 2014-02-07  Richard Biener  <rguenther@suse.de>
30682         PR middle-end/60092
30683         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
30684         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
30685         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30686         Handle BUILT_IN_POSIX_MEMALIGN.
30687         (find_func_clobbers): Likewise.
30688         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30689         (call_may_clobber_ref_p_1): Likewise.
30691 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30693         PR ipa/59918
30694         * ipa-devirt.c (record_target_from_binfo): Remove overactive
30695         sanity check.
30697 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30699         PR ipa/59469
30700         * lto-cgraph.c (lto_output_node): Use
30701         symtab_get_symbol_partitioning_class.
30702         (lto_output_varpool_node): likewise.
30703         (symtab_get_symbol_partitioning_class): Move here from
30704         lto/lto-partition.c
30705         * cgraph.h (symbol_partitioning_class): Likewise.
30706         (symtab_get_symbol_partitioning_class): Declare.
30708 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30710         * ggc.h (ggc_internal_cleared_alloc): New macro.
30711         * vec.h (vec_safe_copy): Handle memory stats.
30712         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
30713         * target-globals.c (save_target_globals): Likewise.
30715 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30717         PR target/60077
30718         * expr.c (emit_move_resolve_push): Export; be bit more selective
30719         on when to clear alias set.
30720         * expr.h (emit_move_resolve_push): Declare.
30721         * function.h (struct function): Add tail_call_marked.
30722         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
30723         * config/i386/i386-protos.h (ix86_expand_push): Remove.
30724         * config/i386/i386.md (TImode move expander): De not call
30725         ix86_expand_push.
30726         (FP push expanders): Preserve memory attributes.
30727         * config/i386/sse.md (push<mode>1): Remove.
30728         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
30729         (ix86_expand_push): Remove.
30730         * config/i386/mmx.md (push<mode>1): Remove.
30732 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30734         PR rtl-optimization/60030
30735         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
30736         lopart with paradoxical subreg before shifting it up by hprec.
30738 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30740         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
30741         Remove extra newline at end of file.
30742         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
30743         (arm_issue_rate): Handle cortexa57.
30744         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
30745         (cortex-a57.cortex-a53): Likewise.
30747 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30749         PR target/59575
30750         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
30751         don't record in REG_FRAME_RELATED_EXPR registers not set in that
30752         bitmask.
30753         (arm_expand_prologue): Adjust all callers.
30754         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
30755         info, registers also at the lowest numbered registers side.  Use
30756         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
30757         XEXP.
30759         PR debug/59992
30760         * var-tracking.c (adjust_mems): Before adding a SET to
30761         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
30763 2014-02-06  Alan Modra  <amodra@gmail.com>
30765         PR target/60032
30766         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
30767         change SDmode to DDmode when lra_in_progress.
30769 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30771         PR middle-end/59150
30772         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
30773         free_data_ref on the dr first, and before goto again also set dr
30774         to the next dr.  For simd_lane_access, free old datarefs[i] before
30775         overwriting it.  For get_vectype_for_scalar_type failure, don't
30776         free_data_ref if simd_lane_access.
30778         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
30780         PR target/60062
30781         * tree.h (opts_for_fn): New inline function.
30782         (opt_for_fn): Define.
30783         * config/i386/i386.c (ix86_function_regparm): Use
30784         opt_for_fn (decl, optimize) instead of optimize.
30786 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30788         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
30789         for SYMBOL_REF in large memory model.
30791 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30793         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
30794         and crypto support.
30795         (cortex-a57): Likewise.
30796         (cortex-a57.cortex-a53): Likewise.
30798 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
30799             Kugan Vivekanandarajah  <kuganv@linaro.org>
30801         * config/arm/arm.c (arm_vector_alignment_reachable): Check
30802         unaligned_access.
30803         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
30805 2014-02-06  Richard Biener  <rguenther@suse.de>
30807         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
30808         set_loop_copy and initialize_original_copy_tables.
30810 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
30812         * config/aarch64/aarch64-simd.md
30813         (aarch64_ashr_simddi): Change QI to SI.
30815 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30816             Jakub Jelinek  <jakub@redhat.com>
30818         PR middle-end/60013
30819         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
30820         of the dataflow.
30822 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30824         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
30825         CODE_FOR_altivec_vpku[hw]um to
30826         CODE_FOR_altivec_vpku[hw]um_direct.
30827         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
30828         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
30829         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
30830         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
30832 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30834         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
30835         generation for -maltivec=be.
30836         (altivec_vsumsws): Simplify redundant test.
30838 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30840         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
30841         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
30842         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
30843         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
30844         gen_altivec_vpkuwum.
30845         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
30846         BYTES_BIG_ENDIAN.
30847         (altivec_vpks<VI_char>ss): Likewise.
30848         (altivec_vpks<VI_char>us): Likewise.
30849         (altivec_vpku<VI_char>us): Likewise.
30850         (altivec_vpku<VI_char>um): Likewise.
30851         (altivec_vpku<VI_char>um_direct): New (copy of
30852         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
30853         internal use).
30854         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
30855         target is little endian and -maltivec=be is not specified.
30856         (*altivec_vupkhs<VU_char>_direct): New (copy of
30857         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
30858         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
30859         target is little endian and -maltivec=be is not specified.
30860         (*altivec_vupkls<VU_char>_direct): New (copy of
30861         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
30862         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
30863         little endian and -maltivec=be is not specified.
30864         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
30865         little endian and -maltivec=be is not specified.
30867 2014-02-05  Richard Henderson  <rth@redhat.com>
30869         PR debug/52727
30870         * combine-stack-adj.c: Revert r206943.
30871         * sched-int.h (struct deps_desc): Add last_args_size.
30872         * sched-deps.c (init_deps): Initialize it.
30873         (sched_analyze_insn): Add OUTPUT dependencies between insns that
30874         contain REG_ARGS_SIZE notes.
30876 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30878         * lto-cgraph.c (asm_nodes_output): Make global.
30879         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
30880         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
30881         (driver_handle_option): Handle OPT_fwpa.
30883 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
30885         PR ipa/59947
30886         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
30887         a comment typo and formatting issue.  If odr_hash hasn't been
30888         created, return vNULL and set *completep to false.
30890         PR middle-end/57499
30891         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
30892         bb with no successors.
30894 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
30896         PR target/59718
30897         * doc/invoke.texi (-march): Clarify documentation for ARM.
30898         (-mtune): Likewise.
30899         (-mcpu): Likewise.
30901 2014-02-05  Richard Biener  <rguenther@suse.de>
30903         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
30904         when not vectorizing because of too many alias checks.
30905         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30906         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
30908 2014-02-05  Nick Clifton  <nickc@redhat.com>
30910         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
30911         accept extended registers in any mode when compiling for the MN10300.
30913 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
30915         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
30916         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
30917         sanitization attributes.
30918         (can_inline_edge_p): Likewise.
30919         (sanitize_attrs_match_for_inline_p): New function.
30921 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30923         * ipa-prop.c (detect_type_change): Shor circuit testing of
30924         type changes on THIS pointer.
30926 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
30928         PR target/59777
30929         * config/pa/pa.c (legitimize_tls_address): Return original address
30930         if not passed a SYMBOL_REF rtx.
30931         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
30932         addresses.
30933         (pa_emit_move_sequence): Simplify TLS source operands.
30934         (pa_legitimate_constant_p): Reject all TLS constants.
30935         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
30936         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
30938 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30940         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
30941         groups when we know they are controlled by LTO.
30942         * varasm.c (default_binds_local_p_1): If object is in other partition,
30943         it will be resolved locally.
30945 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30947         * config/host-linux.c (linux_gt_pch_use_address): Don't
30948         use SSIZE_MAX because it is not always defined.
30950 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
30952         PR bootstrap/59913
30953         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
30954         threshold for pseudo splitting.
30955         (update_ebb_live_info): Process call argument hard registers and
30956         hard registers from insn definition too.
30957         (max_small_class_regs_num): New constant.
30958         (inherit_in_ebb): Update live hard regs through EBBs.  Update
30959         reloads_num only for small register classes.  Don't split for
30960         outputs of jumps.
30962 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
30964         PR ipa/60058
30965         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30966         is non-null.
30968 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30970         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30971         visibility is safe.
30973 2014-02-04  Marek Polacek  <polacek@redhat.com>
30975         * gdbinit.in (pel): Define.
30977 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30979         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30980         behavior.
30982 2014-02-04  Richard Biener  <rguenther@suse.de>
30984         PR lto/59723
30985         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30986         in function context local.
30987         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30988         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30989         similar to LTO_imported_decl_ref.
30991 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
30993         PR tree-optimization/60002
30994         * cgraphclones.c (build_function_decl_skip_args): Clear
30995         DECL_LANG_SPECIFIC.
30997         PR tree-optimization/60023
30998         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30999         false to gsi_replace.
31000         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
31001         has been in some EH region and vec_stmt could throw, add
31002         vec_stmt into the same EH region.
31003         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
31004         has no lhs, ignore it.
31005         * internal-fn.c (expand_MASK_LOAD): Likewise.
31007         PR ipa/60026
31008         * tree-inline.c (copy_forbidden): Fail for
31009         __attribute__((optimize (0))) functions.
31011         PR other/58712
31012         * omp-low.c (simd_clone_struct_copy): If from->inbranch
31013         is set, copy one less argument.
31014         (expand_simd_clones): Don't subtract clone_info->inbranch
31015         from simd_clone_struct_alloc argument.
31017         PR rtl-optimization/57915
31018         * recog.c (simplify_while_replacing): If all unary/binary/relational
31019         operation arguments are constant, attempt to simplify those.
31021         PR middle-end/59261
31022         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
31023         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
31025 2014-02-04  Richard Biener  <rguenther@suse.de>
31027         PR tree-optimization/60012
31028         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
31029         TBAA disambiguation to all DDRs.
31031 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31033         PR target/59788
31034         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
31035         (LINK_SPEC): Use it for -shared, -shared-libgcc.
31037 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31039         PR ipa/59882
31040         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
31042 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31044         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
31045         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
31047 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31049         PR ipa/59831
31050         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
31051         to figure out targets of polymorphic calls with known decl.
31052         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31053         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
31054         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
31055         (get_polymorphic_call_info): ... here.
31056         (get_polymorphic_call_info_from_invariant): New function.
31058 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31060         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
31061         lookup via vtable pointer; check for type consistency
31062         and turn inconsitent facts into UNREACHABLE.
31063         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31064         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
31065         type inconsistent querries; return UNREACHABLE instead.
31067 2014-02-03  Richard Henderson  <rth@twiddle.net>
31069         PR tree-opt/59924
31070         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
31071         already processed this node.
31072         (normalize_one_pred_1): Pass along mark_set.
31073         (normalize_one_pred): Create and destroy a pointer_set_t.
31074         (normalize_one_pred_chain): Likewise.
31076 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
31078         PR gcov-profile/58602
31079         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
31081 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31083         PR ipa/59831
31084         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
31085         -fno-devirtualize; try to devirtualize by the knowledge of
31086         virtual table pointer given by aggregate propagation.
31087         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31088         (ipa_print_node_jump_functions): Dump also offset that
31089         is relevant for polymorphic calls.
31090         (determine_known_aggregate_parts): Add arg_type parameter; use it
31091         instead of determining the type from pointer type.
31092         (ipa_compute_jump_functions_for_edge): Update call of
31093         determine_known_aggregate_parts.
31094         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
31095         (gimple_get_virt_method_for_binfo): ... here; simplify using
31096         vtable_pointer_value_to_vtable.
31097         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
31098         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
31099         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
31100         (vtable_pointer_value_to_vtable): Break out from ...; handle also
31101         POINTER_PLUS_EXPR.
31102         (vtable_pointer_value_to_binfo): ... here.
31103         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
31105 2014-02-03  Teresa Johnson  <tejohnson@google.com>
31107         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
31108         redef of outer loop index variable.
31110 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
31112         PR c++/53017
31113         PR c++/59211
31114         * doc/extend.texi (Function Attributes): Typo.
31116 2014-02-03  Cong Hou  <congh@google.com>
31118         PR tree-optimization/60000
31119         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
31120         if the vectorized statement is a store.  A store statement can only
31121         appear at the end of pattern statements.
31123 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
31125         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
31126         (ix86_option_override_internal): Default long double to 64-bit for
31127         32-bit Bionic and to 128-bit for 64-bit Bionic.
31129         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
31130         TARGET_LONG_DOUBLE_128 is true.
31131         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
31133         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
31134         (mlong-double-64): Negate -mlong-double-128.
31135         (mlong-double-128): New option.
31137         * config/i386/i386-c.c (ix86_target_macros): Define
31138         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
31140         * doc/invoke.texi: Document -mlong-double-128.
31142 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
31144         PR rtl-optimization/60024
31145         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
31147 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
31149         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
31151 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
31153         PR rtl-optimization/57662
31154         * sel-sched.c (code_motion_path_driver): Do not mark already not
31155         existing blocks in the visiting bitmap.
31157 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
31159         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
31160         on the insn being emitted.
31162 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
31163             Will Deacon  <will.deacon@arm.com>
31165         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
31167 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31169         * config/arm/arm-tables.opt: Regenerate.
31171 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31173         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
31174         for vector types other than V16QImode.
31175         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
31176         define_expand, and call altivec_expand_vec_perm_le when producing
31177         code with little endian element order.
31178         (*altivec_vperm_<mode>_internal): New insn having previous
31179         behavior of altivec_vperm_<mode>.
31180         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
31181         altivec_expand_vec_perm_le when producing code with little endian
31182         element order.
31183         (*altivec_vperm_<mode>_uns_internal): New insn having previous
31184         behavior of altivec_vperm_<mode>_uns.
31186 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31188         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
31189         (altivec_vsumsws): Add handling for -maltivec=be with a little
31190         endian target.
31191         (altivec_vsumsws_direct): New.
31192         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
31193         gen_altivec_vsumsws.
31195 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
31197         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
31198         vtable_pointer_value_to_binfo): New functions.
31199         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
31200         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
31202 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
31204         * config/nios2/nios2.md (load_got_register): Initialize GOT
31205         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
31206         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
31208 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
31210         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
31211         preserverd by passthrough, do not propagate the type.
31213 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31215         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
31216         (mips_atomic_assign_expand_fenv): New function.
31217         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
31219 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31221         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
31222         (__builtin_mips_set_fcsr): Likewise.
31223         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
31224         MIPS_USI_FTYPE_VOID.
31225         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
31226         (mips16_expand_set_fcsr): Likewise.
31227         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
31228         (mips16_set_fcsr_stub): Likewise.
31229         (mips16_get_fcsr_one_only_stub): New class.
31230         (mips16_set_fcsr_one_only_stub): Likewise.
31231         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
31232         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
31233         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
31234         (hard_float): New availability predicate.
31235         (mips_builtins): Add get_fcsr and set_fcsr.
31236         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
31237         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
31238         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
31239         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
31240         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
31241         patterns.
31243 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31245         * config/mips/mips.c (mips_one_only_stub): New class.
31246         (mips_need_mips16_rdhwr_p): Replace with...
31247         (mips16_rdhwr_stub): ...this new variable.
31248         (mips16_stub_call_address): New function.
31249         (mips16_rdhwr_one_only_stub): New class.
31250         (mips_expand_thread_pointer): Use mips16_stub_call_address.
31251         (mips_output_mips16_rdhwr): Delete.
31252         (mips_finish_stub): New function.
31253         (mips_code_end): Use it to handle rdhwr stubs.
31255 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
31257         PR target/60017
31258         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
31259         when calculating size of integer atomic types.
31261 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
31263         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
31265 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
31267         PR tree-optimization/60003
31268         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
31269         * profile.c (branch_prob): Use gimple_call_builtin_p
31270         to check for BUILT_IN_SETJMP_RECEIVER.
31271         * tree-inline.c (copy_bb): Call notice_special_calls.
31273 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
31275         PR bootstrap/59985
31276         * lra-constraints.c (process_alt_operands): Update reload_sum only
31277         on the first pass.
31279 2014-01-31  Richard Henderson  <rth@redhat.com>
31281         PR middle-end/60004
31282         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
31283         until after else_eh is processed.
31285 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
31287         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
31288         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
31289         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
31290         in smmintrin.h, remove them.
31291         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
31292         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
31293         * config/i386/i386.md (ROUND_SAE): Fix value.
31294         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
31295         (const48_operand): New.
31296         * config/i386/subst.md (round), (round_expand): Use
31297         const_4_or_8_to_11_operand.
31298         (round_saeonly), (round_saeonly_expand): Use const48_operand.
31300 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
31302         * config/i386/constraints.md (Yk): Swap meaning with k.
31303         * config/i386/i386.md (movhi_internal): Change Yk to k.
31304         (movqi_internal): Ditto.
31305         (*k<logic><mode>): Ditto.
31306         (*andhi_1): Ditto.
31307         (*andqi_1): Ditto.
31308         (kandn<mode>): Ditto.
31309         (*<code>hi_1): Ditto.
31310         (*<code>qi_1): Ditto.
31311         (kxnor<mode>): Ditto.
31312         (kortestzhi): Ditto.
31313         (kortestchi): Ditto.
31314         (kunpckhi): Ditto.
31315         (*one_cmplhi2_1): Ditto.
31316         (*one_cmplqi2_1): Ditto.
31317         * config/i386/sse.md (): Change k to Yk.
31318         (avx512f_load<mode>_mask): Ditto.
31319         (avx512f_blendm<mode>): Ditto.
31320         (avx512f_store<mode>_mask): Ditto.
31321         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
31322         (avx512f_storedqu<mode>_mask): Ditto.
31323         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
31324         Ditto.
31325         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
31326         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
31327         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
31328         (avx512f_maskcmp<mode>3): Ditto.
31329         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
31330         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
31331         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
31332         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
31333         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
31334         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
31335         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
31336         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
31337         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
31338         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
31339         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
31340         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
31341         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
31342         (vec_extract_lo_<mode>_maskm): Ditto.
31343         (vec_extract_hi_<mode>_maskm): Ditto.
31344         (avx512f_vternlog<mode>_mask): Ditto.
31345         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
31346         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
31347         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
31348         (avx512f_<code>v8div16qi2_mask): Ditto.
31349         (avx512f_<code>v8div16qi2_mask_store): Ditto.
31350         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
31351         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
31352         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
31353         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
31354         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31355         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31356         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31357         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31358         (avx512cd_maskb_vec_dupv8di): Ditto.
31359         (avx512cd_maskw_vec_dupv16si): Ditto.
31360         (avx512f_vpermi2var<mode>3_maskz): Ditto.
31361         (avx512f_vpermi2var<mode>3_mask): Ditto.
31362         (avx512f_vpermi2var<mode>3_mask): Ditto.
31363         (avx512f_vpermt2var<mode>3_maskz): Ditto.
31364         (*avx512f_gathersi<mode>): Ditto.
31365         (*avx512f_gathersi<mode>_2): Ditto.
31366         (*avx512f_gatherdi<mode>): Ditto.
31367         (*avx512f_gatherdi<mode>_2): Ditto.
31368         (*avx512f_scattersi<mode>): Ditto.
31369         (*avx512f_scatterdi<mode>): Ditto.
31370         (avx512f_compress<mode>_mask): Ditto.
31371         (avx512f_compressstore<mode>_mask): Ditto.
31372         (avx512f_expand<mode>_mask): Ditto.
31373         * config/i386/subst.md (mask): Change k to Yk.
31374         (mask_scalar_merge): Ditto.
31375         (sd): Ditto.
31377 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
31379         * doc/extend.texi (Vector Extensions): Document ?: in C++.
31381 2014-01-31  Richard Biener  <rguenther@suse.de>
31383         PR middle-end/59990
31384         * builtins.c (fold_builtin_memory_op): Make sure to not
31385         use a floating-point mode or a boolean or enumeral type for
31386         the copy operation.
31388 2014-01-30  DJ Delorie  <dj@redhat.com>
31390         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
31391         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
31392         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
31393         whenever main() has an epilogue.
31395 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31397         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
31398         unused variable "field".
31399         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
31400         (vsx_mergeh_<mode>): Likewise.
31401         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
31402         (altivec_vmrghh): Likewise.
31403         (altivec_vmrghw): Likewise.
31404         (altivec_vmrglb): Likewise.
31405         (altivec_vmrglh): Likewise.
31406         (altivec_vmrglw): Likewise.
31407         (altivec_vspltb): Add missing uses.
31408         (altivec_vsplth): Likewise.
31409         (altivec_vspltw): Likewise.
31410         (altivec_vspltsf): Likewise.
31412 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
31414         PR target/59923
31415         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
31416         frame related instructions.
31418 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
31420         PR rtl-optimization/59959
31421         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
31422         any reload of register whose subreg is invalid.
31424 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
31426         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
31427         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
31428         Add missing return type - void.
31430 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31432         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
31433         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
31434         remove element index adjustment for endian (now handled in vsx.md
31435         and altivec.md).
31436         (altivec_expand_vec_perm_const): Use
31437         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
31438         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
31439         (vsx_xxspltw_<mode>): Adjust element index for little endian.
31440         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
31441         define_expand and a new define_insn *altivec_vspltb_internal;
31442         adjust for -maltivec=be on a little endian target.
31443         (altivec_vspltb_direct): New.
31444         (altivec_vsplth): Divide into a define_expand and a new
31445         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
31446         little endian target.
31447         (altivec_vsplth_direct): New.
31448         (altivec_vspltw): Divide into a define_expand and a new
31449         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
31450         little endian target.
31451         (altivec_vspltw_direct): New.
31452         (altivec_vspltsf): Divide into a define_expand and a new
31453         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
31454         a little endian target.
31456 2014-01-30  Richard Biener  <rguenther@suse.de>
31458         PR tree-optimization/59993
31459         * tree-ssa-forwprop.c (associate_pointerplus): Check we
31460         can propagate form the earlier stmt and avoid the transform
31461         when the intermediate result is needed.
31463 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
31465         * README.Portability: Fix typo.
31467 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
31469         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
31470         comparison_operator with ordered_comparison_operator.
31472 2014-01-30  Nick Clifton  <nickc@redhat.com>
31474         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
31475         Rename to mn10300_store_multiple_regs.
31476         * config/mn10300/mn10300.c: Likewise.
31477         * config/mn10300/mn10300.md (store_movm): Fix typo: call
31478         store_multiple_regs.
31479         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
31480         Call mn10300_store_multiple_regs.
31482 2014-01-30  Nick Clifton  <nickc@redhat.com>
31483             DJ Delorie  <dj@redhat.com>
31485         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
31486         %fp 2 to keep registers after it properly word-aligned.
31487         (rl78_alloc_physical_registers_umul): Handle the case where both
31488         input operands are the same.
31490 2014-01-30  Richard Biener  <rguenther@suse.de>
31492         PR tree-optimization/59903
31493         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
31494         check properly.
31496 2014-01-30  Jason Merrill  <jason@redhat.com>
31498         PR c++/59633
31499         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
31501         PR c++/59645
31502         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
31504 2014-01-30  Richard Biener  <rguenther@suse.de>
31506         PR tree-optimization/59951
31507         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
31509 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
31511         PR target/59784
31512         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
31513         SFmode to DFmode case.
31515 2014-01-29  DJ Delorie  <dj@redhat.com>
31517         * config/msp430/msp430.opt (-minrt): New.
31518         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
31519         if -minrt given.
31520         (ENDFILE_SPEC): Likewise.
31522 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
31524         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
31525         (estimate_function_body_sizes): Use it.
31527 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
31529         PR c++/58561
31530         * dwarf2out.c (is_cxx_auto): New.
31531         (is_base_type): Use it.
31532         (gen_type_die_with_usage): Likewise.
31534 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31536         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
31537         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
31538         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
31539         -maltivec=be with LE targets.
31540         (vsx_mergeh_<mode>): Likewise.
31541         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
31542         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
31543         (altivec_vmrghb): Replace with define_expand and new
31544         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
31545         (altivec_vmrghb_direct): New define_insn.
31546         (altivec_vmrghh): Replace with define_expand and new
31547         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
31548         (altivec_vmrghh_direct): New define_insn.
31549         (altivec_vmrghw): Replace with define_expand and new
31550         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
31551         (altivec_vmrghw_direct): New define_insn.
31552         (*altivec_vmrghsf): Adjust for endianness.
31553         (altivec_vmrglb): Replace with define_expand and new
31554         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
31555         (altivec_vmrglb_direct): New define_insn.
31556         (altivec_vmrglh): Replace with define_expand and new
31557         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
31558         (altivec_vmrglh_direct): New define_insn.
31559         (altivec_vmrglw): Replace with define_expand and new
31560         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
31561         (altivec_vmrglw_direct): New define_insn.
31562         (*altivec_vmrglsf): Adjust for endianness.
31563         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31564         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31565         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31566         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31567         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31568         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31569         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31570         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31572 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31574         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
31575         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
31576         whitespace.
31578 2014-01-29  Richard Biener  <rguenther@suse.de>
31580         PR tree-optimization/58742
31581         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
31582         associate_pointerplus_align.
31583         (associate_pointerplus_diff): New function.
31584         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
31585         and associate_pointerplus_diff.
31587 2014-01-29  Richard Biener  <rguenther@suse.de>
31589         * lto-streamer.h (LTO_major_version): Bump to 3.
31590         (LTO_minor_version): Reset to 0.
31592 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
31594         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
31595         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
31596         (arm_file_start): Generate correct asm header for armv7ve.
31597         * config/arm/bpabi.h: Add multilib support for armv7ve.
31598         * config/arm/driver-arm.c: Change the architectures of cortex-a7
31599         and cortex-a15 to armv7ve.
31600         * config/arm/t-aprofile: Add multilib support for armv7ve.
31601         * doc/invoke.texi: Document -march=armv7ve.
31603 2014-01-29  Richard Biener  <rguenther@suse.de>
31605         PR tree-optimization/58742
31606         * tree-ssa-forwprop.c (associate_plusminus): Return true
31607         if we changed sth, defer EH cleanup to ...
31608         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
31609         (simplify_mult): New function.
31611 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
31613         PR middle-end/59917
31614         PR tree-optimization/59920
31615         * tree.c (build_common_builtin_nodes): Remove
31616         __builtin_setjmp_dispatcher initialization.
31617         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
31618         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
31619         instead of gsi_after_labels + manually skipping debug stmts.
31620         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
31621         ignore bbs with IFN_ABNORMAL_DISPATCHER.
31622         * tree-inline.c (copy_edges_for_bb): Remove
31623         can_make_abnormal_goto argument, instead add abnormal_goto_dest
31624         argument.  Ignore computed_goto_p stmts.  Don't call
31625         make_abnormal_goto_edges.  If a call might need abnormal edges
31626         for non-local gotos, see if it already has an edge to
31627         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
31628         with true argument, don't do anything then, otherwise add
31629         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
31630         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
31631         caller.
31632         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
31633         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
31634         (lower_stmt): Don't set data->calls_builtin_setjmp.
31635         (lower_builtin_setjmp): Adjust comment.
31636         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
31637         * tree-cfg.c (found_computed_goto): Remove.
31638         (factor_computed_gotos): Remove.
31639         (make_goto_expr_edges): Return bool, true for computed gotos.
31640         Don't call make_abnormal_goto_edges.
31641         (build_gimple_cfg): Don't set found_computed_goto, don't call
31642         factor_computed_gotos.
31643         (computed_goto_p): No longer static.
31644         (make_blocks): Don't set found_computed_goto.
31645         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
31646         (make_edges): If make_goto_expr_edges returns true, push bb
31647         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
31648         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
31649         vector.  Record mapping between bbs and OpenMP regions if there
31650         are any, adjust make_gimple_omp_edges caller.  Call
31651         handle_abnormal_edges.
31652         (make_abnormal_goto_edges): Remove.
31653         * tree-cfg.h (make_abnormal_goto_edges): Remove.
31654         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
31655         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
31656         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
31657         * internal-fn.def (ABNORMAL_DISPATCHER): New.
31658         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
31659         filling *region also set *region_idx to (*region)->entry->index.
31661         PR other/58712
31662         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
31663         For REGs set ORIGINAL_REGNO.
31665 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
31667         * doc/md.texi: Mention that a target shouldn't implement
31668         vec_widen_(s|u)mul_even/odd pair if it is less efficient
31669         than hi/lo pair.
31671 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
31673         PR tree-optimization/59594
31674         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
31675         a copy of the datarefs vector rather than the vector itself.
31677 2014-01-28  Jason Merrill  <jason@redhat.com>
31679         PR c++/53756
31680         * dwarf2out.c (auto_die): New static.
31681         (gen_type_die_with_usage): Handle C++1y 'auto'.
31682         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
31683         on definition.
31685 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
31687         PR target/59672
31688         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
31689         (SPEC_X32): Likewise.
31690         (SPEC_64): Likewise.
31691         * config/i386/i386.c (ix86_option_override_internal): Turn off
31692         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
31693         for TARGET_16BIT.
31694         (x86_file_start): Output .code16gcc for TARGET_16BIT.
31695         * config/i386/i386.h (TARGET_16BIT): New macro.
31696         (TARGET_16BIT_P): Likewise.
31697         * config/i386/i386.opt: Add m16.
31698         * doc/invoke.texi: Document -m16.
31700 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
31702         PR preprocessor/59935
31703         * input.c (location_get_source_line): Bail out on when line number
31704         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
31706 2014-01-28  Richard Biener  <rguenther@suse.de>
31708         PR tree-optimization/58742
31709         * tree-ssa-forwprop.c (associate_plusminus): Handle
31710         pointer subtraction of the form (T)(P + A) - (T)P.
31712 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31714         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
31715         at const_int_cost.
31717 2014-01-28  Richard Biener  <rguenther@suse.de>
31719         Revert
31720         2014-01-28  Richard Biener  <rguenther@suse.de>
31722         PR rtl-optimization/45364
31723         PR rtl-optimization/59890
31724         * var-tracking.c (local_get_addr_clear_given_value): Handle
31725         already cleared slot.
31726         (val_reset): Handle not allocated local_get_addr_cache.
31727         (vt_find_locations): Use post-order on the inverted CFG.
31729 2014-01-28  Richard Biener  <rguenther@suse.de>
31731         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
31733 2014-01-28  Richard Biener  <rguenther@suse.de>
31735         PR rtl-optimization/45364
31736         PR rtl-optimization/59890
31737         * var-tracking.c (local_get_addr_clear_given_value): Handle
31738         already cleared slot.
31739         (val_reset): Handle not allocated local_get_addr_cache.
31740         (vt_find_locations): Use post-order on the inverted CFG.
31742 2014-01-28  Alan Modra  <amodra@gmail.com>
31744         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
31745         * configure.ac <recursive call for build != host>: Define
31746         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
31747         and LD_FOR_BUILD too.
31748         * configure: Regenerate.
31750 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
31752         * config/i386/i386.c (get_builtin_code_for_version): Separate
31753         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
31754         Broadwell from Haswell.
31756 2014-01-27  Steve Ellcey  <sellcey@mips.com>
31758         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31759         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
31760         * config/mips/mips.c (mips_option_override): Change setting
31761         of TARGET_DSP.
31762         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
31763         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
31764         Change from Mask to Var.
31766 2014-01-27  Jeff Law  <law@redhat.com>
31768         * ipa-inline.c (inline_small_functions): Fix typo.
31770 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
31772         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
31773         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
31774         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
31775         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
31776         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
31777         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
31778         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
31779         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
31780         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
31781         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
31782         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
31783         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
31784         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
31785         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
31786         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
31787         (_mm512_storeu_epi64): Ditto.
31788         (_mm512_cmpge_epi32_mask): Ditto.
31789         (_mm512_cmpge_epu32_mask): Ditto.
31790         (_mm512_cmpge_epi64_mask): Ditto.
31791         (_mm512_cmpge_epu64_mask): Ditto.
31792         (_mm512_cmple_epi32_mask): Ditto.
31793         (_mm512_cmple_epu32_mask): Ditto.
31794         (_mm512_cmple_epi64_mask): Ditto.
31795         (_mm512_cmple_epu64_mask): Ditto.
31796         (_mm512_cmplt_epi32_mask): Ditto.
31797         (_mm512_cmplt_epu32_mask): Ditto.
31798         (_mm512_cmplt_epi64_mask): Ditto.
31799         (_mm512_cmplt_epu64_mask): Ditto.
31800         (_mm512_cmpneq_epi32_mask): Ditto.
31801         (_mm512_cmpneq_epu32_mask): Ditto.
31802         (_mm512_cmpneq_epi64_mask): Ditto.
31803         (_mm512_cmpneq_epu64_mask): Ditto.
31804         (_mm512_expand_pd): Ditto.
31805         (_mm512_expand_ps): Ditto.
31806         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
31807         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
31808         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
31809         * config/i386/i386.c (ix86_builtins): Add
31810         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
31811         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
31812         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
31813         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
31814         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
31815         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
31816         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
31817         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
31818         IX86_BUILTIN_PMOVUSQW512_MEM.
31819         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
31820         __builtin_ia32_pmovsqd512mem_mask,
31821         __builtin_ia32_pmovqd512mem_mask,
31822         __builtin_ia32_pmovusqw512mem_mask,
31823         __builtin_ia32_pmovsqw512mem_mask,
31824         __builtin_ia32_pmovqw512mem_mask,
31825         __builtin_ia32_pmovusdw512mem_mask,
31826         __builtin_ia32_pmovsdw512mem_mask,
31827         __builtin_ia32_pmovdw512mem_mask,
31828         __builtin_ia32_pmovqb512mem_mask,
31829         __builtin_ia32_pmovusqb512mem_mask,
31830         __builtin_ia32_pmovsqb512mem_mask,
31831         __builtin_ia32_pmovusdb512mem_mask,
31832         __builtin_ia32_pmovsdb512mem_mask,
31833         __builtin_ia32_pmovdb512mem_mask.
31834         (bdesc_args): Add __builtin_ia32_expanddf512,
31835         __builtin_ia32_expandsf512.
31836         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
31837         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
31838         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
31839         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
31840         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
31841         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
31842         (avx512f_<code>v8div16qi2_mask_store): This.
31843         (avx512f_expand<mode>): New.
31845 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
31847         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
31848         New.
31849         (_mm512_mask_prefetch_i64gather_pd): Ditto.
31850         (_mm512_prefetch_i32scatter_pd): Ditto.
31851         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
31852         (_mm512_prefetch_i64scatter_pd): Ditto.
31853         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
31854         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
31855         (_mm512_mask_prefetch_i64gather_ps): Ditto.
31856         (_mm512_prefetch_i32scatter_ps): Ditto.
31857         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
31858         (_mm512_prefetch_i64scatter_ps): Ditto.
31859         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
31860         * config/i386/i386-builtin-types.def: Define
31861         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
31862         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
31863         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
31864         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
31865         IX86_BUILTIN_SCATTERPFQPD.
31866         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
31867         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
31868         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
31869         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
31870         __builtin_ia32_scatterpfqps.
31871         (ix86_expand_builtin): Expand new built-ins.
31872         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
31873         fix memory access data type.
31874         (*avx512pf_gatherpf<mode>_mask): Ditto.
31875         (*avx512pf_gatherpf<mode>): Ditto.
31876         (avx512pf_scatterpf<mode>): Ditto.
31877         (*avx512pf_scatterpf<mode>_mask): Ditto.
31878         (*avx512pf_scatterpf<mode>): Ditto.
31879         (GATHER_SCATTER_SF_MEM_MODE): New.
31880         (avx512pf_gatherpf<mode>df): Ditto.
31881         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31882         (*avx512pf_scatterpf<mode>df): Ditto.
31884 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
31886         PR bootstrap/59934
31887         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
31888         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
31889         reached.
31891 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31893         * common/config/arm/arm-common.c
31894         (arm_rewrite_mcpu): Handle multiple names.
31895         * config/arm/arm.h
31896         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31898 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31900         * gimple-builder.h (create_gimple_tmp): Delete.
31902 2014-01-27  Christian Bruel  <christian.bruel@st.com>
31904         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
31905         words comparisons.
31907 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
31909         * config/pa/pa.md (call): Generate indirect long calls to non-local
31910         functions when outputing 32-bit code.
31911         (call_value): Likewise except for special call to buggy powf function.
31913         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
31914         portable runtime and PIC indirect calls.
31915         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
31916         and PIC call sequences.  Use ldo instead of blr to set return register
31917         in PIC call sequence.
31919 2014-01-25  Walter Lee  <walt@tilera.com>
31921         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
31922         avoid clobbering a live register.
31924 2014-01-25  Walter Lee  <walt@tilera.com>
31926         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
31927         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
31928         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
31929         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
31931 2014-01-25  Walter Lee  <walt@tilera.com>
31933         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
31934         arguments on even registers.
31935         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
31936         STACK_BOUNDARY.
31937         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
31938         (BIGGEST_ALIGNMENT): Ditto.
31939         (BIGGEST_FIELD_ALIGNMENT): Ditto.
31941 2014-01-25  Walter Lee  <walt@tilera.com>
31943         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
31944         insns before bundling.
31945         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
31947 2014-01-25  Walter Lee  <walt@tilera.com>
31949         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
31950         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
31951         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
31953 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31955         * config/mips/constraints.md (kl): Delete.
31956         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31957         define expands, using...
31958         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31959         instructions for MIPS16.
31960         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31961         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31963 2014-01-25  Walter Lee  <walt@tilera.com>
31965         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31966         (clzdi2): Ditto.
31967         (ffsdi2): Ditto.
31969 2014-01-25  Walter Lee  <walt@tilera.com>
31971         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31972         (TARGET_EXPAND_TO_RTL_HOOK): Define.
31974 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31976         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31977         Handle XOR.
31979 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
31981         * print-rtl.c (in_call_function_usage): New var.
31982         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31983         EXPR_LIST mode as mode and not as reg note name.
31985         PR middle-end/59561
31986         * cfgloopmanip.c (copy_loop_info): If
31987         loop->warned_aggressive_loop_optimizations, make sure
31988         the flag is set in target loop too.
31990 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
31992         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31993         flag_cilkplus.
31994         * builtins.def: Likewise.
31995         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31996         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31997         * ira.c (ira_setup_eliminable_regset): Likewise.
31998         * omp-low.c (gate_expand_omp): Likewise.
31999         (execute_lower_omp): Likewise.
32000         (diagnose_sb_0): Likewise.
32001         (gate_diagnose_omp_blocks): Likewise.
32002         (simd_clone_clauses_extract): Likewise.
32003         (gate): Likewise.
32005 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32007         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
32008         correction for little endian...
32009         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
32010         here.
32012 2014-01-24  Jeff Law  <law@redhat.com>
32014         PR tree-optimization/59919
32015         * tree-vrp.c (find_assert_locations_1): Do not register asserts
32016         for non-returning calls.
32018 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
32020         * common/config/aarch64/aarch64-common.c
32021         (aarch64_rewrite_mcpu): Handle multiple names.
32022         * config/aarch64/aarch64.h
32023         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
32025 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
32027         * input.c (add_file_to_cache_tab): Handle the case where fopen
32028         returns NULL.
32030 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
32032         PR target/59929
32033         * config/i386/i386.md (pushsf splitter): Get stack adjustment
32034         from push operand if code of push isn't PRE_DEC.
32036 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
32038         PR target/59909
32039         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
32040         -mquad-memory-atomic.  Update -mquad-memory documentation to say
32041         it is only used for non-atomic loads/stores.
32043         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
32044         -mquad-memory or -mquad-memory-atomic switches.
32046         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
32047         -mquad-memory-atomic to ISA 2.07 support.
32049         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
32050         to separate support of normal quad word memory operations (ldq, stq)
32051         from the atomic quad word memory operations.
32053         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
32054         support to separate non-atomic quad word operations from atomic
32055         quad word operations.  Disable non-atomic quad word operations in
32056         little endian mode so that we don't have to swap words after the
32057         load and before the store.
32058         (quad_load_store_p): Add comment about atomic quad word support.
32059         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
32060         options printed with -mdebug=reg.
32062         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
32063         -mquad-memory-atomic as the test for whether we have quad word
32064         atomic instructions.
32065         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
32066         or -mp8-vector are used, allow byte/half-word atomic operations.
32068         * config/rs6000/sync.md (load_lockedti): Insure that the address
32069         is a proper indexed or indirect address for the lqarx instruction.
32070         On little endian systems, swap the hi/lo registers after the lqarx
32071         instruction.
32072         (load_lockedpti): Use indexed_or_indirect_operand predicate to
32073         insure the address is valid for the lqarx instruction.
32074         (store_conditionalti): Insure that the address is a proper indexed
32075         or indirect address for the stqcrx. instruction.  On little endian
32076         systems, swap the hi/lo registers before doing the stqcrx.
32077         instruction.
32078         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
32079         insure the address is valid for the stqcrx. instruction.
32081         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
32082         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
32083         type of quad memory support is available.
32085 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
32087         PR regression/59915
32088         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
32089         there is a danger of looping.
32091 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
32093         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32094         force flag_ira_loop_pressure if set via command line.
32096 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32098         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
32099         (ashr_simd): New builtin handling DI mode.
32100         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
32101         (aarch64_sshr_simddi): New match pattern.
32102         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
32103         (vshrd_n_s64): Likewise.
32104         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
32106 2014-01-23  Nick Clifton  <nickc@redhat.com>
32108         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
32109         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
32110         favour of mcu specific scripts.
32111         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
32112         430x multilibs.
32114 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
32115             Alex Velenko  <Alex.Velenko@arm.com>
32117         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
32118         (vaddv_s16): Likewise.
32119         (vaddv_s32): Likewise.
32120         (vaddv_u8): Likewise.
32121         (vaddv_u16): Likewise.
32122         (vaddv_u32): Likewise.
32123         (vaddvq_s8): Likewise.
32124         (vaddvq_s16): Likewise.
32125         (vaddvq_s32): Likewise.
32126         (vaddvq_s64): Likewise.
32127         (vaddvq_u8): Likewise.
32128         (vaddvq_u16): Likewise.
32129         (vaddvq_u32): Likewise.
32130         (vaddvq_u64): Likewise.
32131         (vaddv_f32): Likewise.
32132         (vaddvq_f32): Likewise.
32133         (vaddvq_f64): Likewise.
32134         (vmaxv_f32): Likewise.
32135         (vmaxv_s8): Likewise.
32136         (vmaxv_s16): Likewise.
32137         (vmaxv_s32): Likewise.
32138         (vmaxv_u8): Likewise.
32139         (vmaxv_u16): Likewise.
32140         (vmaxv_u32): Likewise.
32141         (vmaxvq_f32): Likewise.
32142         (vmaxvq_f64): Likewise.
32143         (vmaxvq_s8): Likewise.
32144         (vmaxvq_s16): Likewise.
32145         (vmaxvq_s32): Likewise.
32146         (vmaxvq_u8): Likewise.
32147         (vmaxvq_u16): Likewise.
32148         (vmaxvq_u32): Likewise.
32149         (vmaxnmv_f32): Likewise.
32150         (vmaxnmvq_f32): Likewise.
32151         (vmaxnmvq_f64): Likewise.
32152         (vminv_f32): Likewise.
32153         (vminv_s8): Likewise.
32154         (vminv_s16): Likewise.
32155         (vminv_s32): Likewise.
32156         (vminv_u8): Likewise.
32157         (vminv_u16): Likewise.
32158         (vminv_u32): Likewise.
32159         (vminvq_f32): Likewise.
32160         (vminvq_f64): Likewise.
32161         (vminvq_s8): Likewise.
32162         (vminvq_s16): Likewise.
32163         (vminvq_s32): Likewise.
32164         (vminvq_u8): Likewise.
32165         (vminvq_u16): Likewise.
32166         (vminvq_u32): Likewise.
32167         (vminnmv_f32): Likewise.
32168         (vminnmvq_f32): Likewise.
32169         (vminnmvq_f64): Likewise.
32171 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
32173         * config/aarch64/aarch64-simd.md
32174         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
32175         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
32176         (*aarch64_mul3_elt<mode>): Likewise.
32177         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
32178         (*aarch64_mul3_elt_to_64v2df): Likewise.
32179         (*aarch64_mla_elt<mode>): Likewise.
32180         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
32181         (*aarch64_mls_elt<mode>): Likewise.
32182         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
32183         (*aarch64_fma4_elt<mode>): Likewise.
32184         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
32185         (*aarch64_fma4_elt_to_64v2df): Likewise.
32186         (*aarch64_fnma4_elt<mode>): Likewise.
32187         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
32188         (*aarch64_fnma4_elt_to_64v2df): Likewise.
32189         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
32190         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
32191         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32192         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32193         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
32194         (aarch64_sqdmull_lane<mode>_internal): Likewise.
32195         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
32197 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32199         * config/aarch64/aarch64-simd.md
32200         (aarch64_be_checked_get_lane<mode>): New define_expand.
32201         * config/aarch64/aarch64-simd-builtins.def
32202         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
32203         New builtin definition.
32204         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
32205         Use new safe be builtin.
32207 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32209         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
32210         New define_insn.
32211         (aarch64_be_st1<mode>): Likewise.
32212         (aarch_ld1<VALL:mode>): Define_expand modified.
32213         (aarch_st1<VALL:mode>): Likewise.
32214         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
32215         (UNSPEC_ST1): Likewise.
32217 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
32219         * config/microblaze/microblaze.md: Add trap insn and attribute
32221 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
32223         PR preprocessor/58580
32224         * input.h (location_get_source_line): Take an additional line_size
32225         parameter.
32226         (void diagnostics_file_cache_fini): Declare new function.
32227         * input.c (struct fcache): New type.
32228         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
32229         New static constants.
32230         (diagnostic_file_cache_init, total_lines_num)
32231         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
32232         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
32233         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
32234         (get_next_line, read_next_line, goto_next_line, read_line_num):
32235         New static function definitions.
32236         (diagnostic_file_cache_fini): New function.
32237         (location_get_source_line): Take an additional output line_len
32238         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
32239         read_line_num.
32240         * diagnostic.c (diagnostic_finish): Call
32241         diagnostic_file_cache_fini.
32242         (adjust_line): Take an additional input parameter for the length
32243         of the line, rather than calculating it with strlen.
32244         (diagnostic_show_locus): Adjust the use of
32245         location_get_source_line and adjust_line with respect to their new
32246         signature.  While displaying a line now, do not stop at the first
32247         null byte.  Rather, display the zero byte as a space and keep
32248         going until we reach the size of the line.
32249         * Makefile.in: Add vec.o to OBJS-libcommon
32251 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
32252             Ilya Tocar  <ilya.tocar@intel.com>
32254         * config/i386/avx512fintrin.h (_mm512_kmov): New.
32255         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
32256         (__builtin_ia32_kmov16): Ditto.
32257         * config/i386/i386.md (UNSPEC_KMOV): New.
32258         (kmovw): Ditto.
32260 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
32262         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
32263         (_mm512_storeu_si512): Ditto.
32265 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
32267         PR target/52125
32268         * rtl.h (get_referenced_operands): Declare.
32269         * recog.c (get_referenced_operands): New function.
32270         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
32271         operands have been referenced when recording LO_SUM references.
32273 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
32275         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
32277 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
32279         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
32280         Enable for generic and recent AMD targets.
32282 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
32284         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
32285         ARG_SIZE note when adjustment was eliminated.
32287 2014-01-22  Jeff Law  <law@redhat.com>
32289         PR tree-optimization/59597
32290         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
32291         in file.  Accept new argument REGISTERING and use it to modify
32292         dump output appropriately.
32293         (register_jump_thread): Corresponding changes.
32294         (mark_threaded_blocks): Reinstate code to cancel unprofitable
32295         thread paths involving joiner blocks.  Add code to dump cancelled
32296         jump threading paths.
32298 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
32300         PR rtl-optimization/59477
32301         * lra-constraints.c (inherit_in_ebb): Process call for living hard
32302         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
32304 2014-01-22  Tom Tromey  <tromey@redhat.com>
32306         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
32307         PARAMS.
32308         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
32310 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32312         PR rtl-optimization/59896
32313         * lra-constraints.c (process_alt_operands): Check unused note for
32314         matched operands of insn with no output reloads.
32316 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
32318         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
32319         (mips_move_from_gpr_cost): Likewise.
32321 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32323         PR rtl-optimization/59858
32324         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
32325         ira_class_hard_regs_num.
32326         (process_alt_operands): Increase reject for dying matched operand.
32328 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
32330         PR target/59003
32331         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
32332         smaller than size, perform several stores or loads and stores
32333         at dst + count - size to store or copy all of size bytes, rather
32334         than just last modesize bytes.
32336 2014-01-20  DJ Delorie  <dj@redhat.com>
32338         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
32339         that CLOBBERs are REGs before propogating their values.
32341 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
32343         PR middle-end/59789
32344         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
32345         (cgraph_inline_failed_type): New function.
32346         * cgraph.h (DEFCIFCODE): Add type.
32347         (cgraph_inline_failed_type_t): New enum.
32348         (cgraph_inline_failed_type): New prototype.
32349         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
32350         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32351         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
32352         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
32353         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
32354         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
32355         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
32356         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
32357         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
32358         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
32359         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
32360         OPTIMIZATION_MISMATCH.
32361         * tree-inline.c (expand_call_inline): Emit errors during
32362         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
32364 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
32366         PR target/59685
32367         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
32368         mode attribute in insn output.
32370 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
32372         * output.h (output_constant): Delete.
32373         * varasm.c (output_constant): Make private.
32375 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
32377         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
32379 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
32381         PR middle-end/59860
32382         * tree.h (fold_builtin_strcat): New prototype.
32383         * builtins.c (fold_builtin_strcat): No longer static.  Add len
32384         argument, if non-NULL, don't call c_strlen.  Optimize
32385         directly into __builtin_memcpy instead of __builtin_strcpy.
32386         (fold_builtin_2): Adjust fold_builtin_strcat caller.
32387         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
32389 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
32391         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
32392         for SImode_address_operand operands, having only a REG argument.
32394 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32396         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
32397         loader name using mbig-endian.
32398         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
32400 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
32402         * doc/invoke.texi (-march): Clarify documentation for AArch64.
32403         (-mtune): Likewise.
32404         (-mcpu): Likewise.
32406 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
32408         * config/aarch64/aarch64-protos.h
32409         (aarch64_cannot_change_mode_class_ptr): Declare.
32410         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
32411         aarch64_cannot_change_mode_class_ptr): New.
32412         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
32413         backend hook aarch64_cannot_change_mode_class.
32415 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
32417         * common/config/aarch64/aarch64-common.c
32418         (aarch64_handle_option): Don't handle any option order logic here.
32419         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
32420         selected_cpu, warn on architecture version mismatch.
32421         (aarch64_override_options): Fix parsing order for option strings.
32423 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32424             Iain Sandoe  <iain@codesourcery.com>
32426         PR bootstrap/59496
32427         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
32428         warning.  Amend comment to reflect current functionality.
32430 2014-01-20  Richard Biener  <rguenther@suse.de>
32432         PR middle-end/59860
32433         * builtins.c (fold_builtin_strcat): Remove case better handled
32434         by tree-ssa-strlen.c.
32436 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
32438         * config/aarch64/aarch64.opt
32439         (mcpu, march, mtune): Make case-insensitive.
32441 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
32443         PR target/59880
32444         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
32445         if operands[1] is a REG or ZERO_EXTEND of a REG.
32447 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
32449         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
32451 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
32453         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
32454         long non-pic millicode calls.
32456 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32458         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
32460 2014-01-19  Kito Cheng  <kito@0xlab.org>
32462         * builtins.c (expand_movstr): Check movstr expand done or fail.
32464 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32465             H.J. Lu  <hongjiu.lu@intel.com>
32467         PR target/59379
32468         * config/i386/i386.md (*lea<mode>): Zero-extend return register
32469         to DImode for zero-extended addresses.
32471 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
32473         PR rtl-optimization/57763
32474         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
32475         on the new indirect jump_insn and increment LABEL_NUSES (label).
32477 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
32479         PR bootstrap/59580
32480         PR bootstrap/59583
32481         * config.gcc (x86_archs): New variable.
32482         (x86_64_archs): Likewise.
32483         (x86_cpus): Likewise.
32484         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
32485         --with-arch/--with-cpu= options.
32486         Support --with-arch=/--with-cpu={nehalem,westmere,
32487         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
32489 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32491         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
32492         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
32494 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32496         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
32498 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
32500         PR target/58944
32501         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
32502         clear cpp_get_options (parse_in)->warn_unused_macros for
32503         ix86_target_macros_internal with cpp_define.
32505 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
32507         * jump.c (delete_related_insns): Keep (use (insn))s.
32508         * reorg.c (redundant_insn): Check for barriers too.
32510 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32512         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
32514 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
32516         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
32517         call to $$dyncall when TARGET_LONG_CALLS is true.
32519 2014-01-17  Jeff Law  <law@redhat.com>
32521         * ree.c (combine_set_extension): Temporarily disable test for
32522         changing number of hard registers.
32524 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
32526         PR middle-end/58125
32527         * ipa-inline-analysis.c (inline_free_summary):
32528         Do not free summary of aliases.
32530 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
32532         PR middle-end/59706
32533         * gimplify.c (gimplify_expr): Use create_tmp_var
32534         instead of create_tmp_var_raw.  If cond doesn't have
32535         integral type, don't add the IFN_ANNOTATE builtin at all.
32537 2014-01-17  Martin Jambor  <mjambor@suse.cz>
32539         PR ipa/59736
32540         * ipa-cp.c (prev_edge_clone): New variable.
32541         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
32542         Also resize prev_edge_clone vector.
32543         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
32544         (ipcp_edge_removal_hook): New function.
32545         (ipcp_driver): Register ipcp_edge_removal_hook.
32547 2014-01-17  Andrew Pinski  <apinski@cavium.com>
32548             Steve Ellcey  <sellcey@mips.com>
32550         PR target/59462
32551         * config/mips/mips.c (mips_print_operand): Check operand mode instead
32552         of operator mode.
32554 2014-01-17  Jeff Law  <law@redhat.com>
32556         PR middle-end/57904
32557         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
32558         so that pass_ccp runs first.
32560 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32562         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
32563         (ix86_adjust_cost): Use !TARGET_XXX.
32564         (do_reorder_for_imul): Likewise.
32565         (swap_top_of_ready_list): Likewise.
32566         (ix86_sched_reorder): Likewise.
32568 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32570         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32571         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
32572         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
32573         (intel_memset): New.  Duplicate slm_memset.
32574         (intel_cost): New.  Duplicate slm_cost.
32575         (m_INTEL): New macro.
32576         (processor_target_table): Add "intel".
32577         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
32578         with PROCESSOR_INTEL for "intel".
32579         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
32580         PROCESSOR_SILVERMONT.
32581         (ix86_issue_rate): Likewise.
32582         (ix86_adjust_cost): Likewise.
32583         (ia32_multipass_dfa_lookahead): Likewise.
32584         (swap_top_of_ready_list): Likewise.
32585         (ix86_sched_reorder): Likewise.
32586         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
32587         instead of TARGET_OPT_AGU.
32588         * config/i386/i386.h (TARGET_INTEL): New.
32589         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
32590         (processor_type): Add PROCESSOR_INTEL.
32591         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
32592         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
32594 2014-01-17  Marek Polacek  <polacek@redhat.com>
32596         PR c/58346
32597         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
32598         size is zero.
32600 2014-01-17  Richard Biener  <rguenther@suse.de>
32602         PR tree-optimization/46590
32603         * opts.c (default_options_table): Add entries for
32604         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
32605         all enabled at -O1 but not for -Og.
32606         * common.opt (fbranch-count-reg): Remove Init(1).
32607         (fmove-loop-invariants): Likewise.
32608         (ftree-pta): Likewise.
32610 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
32612         * config/i386/i386.c (ix86_data_alignment): For compatibility with
32613         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
32614         decls to at least the GCC 4.8 used alignments.
32616         PR fortran/59440
32617         * tree-nested.c (convert_nonlocal_reference_stmt,
32618         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
32619         of GIMPLE_BIND stmts, adjust associated decls.
32621 2014-01-17  Richard Biener  <rguenther@suse.de>
32623         PR tree-optimization/46590
32624         * vec.h (vec<>::bseach): New member function implementing
32625         binary search according to C89 bsearch.
32626         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
32627         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
32628         bitmap pointer again.  Make accesses_in_loop a flat array.
32629         (mem_ref_obstack): New global.
32630         (outermost_indep_loop): Adjust for mem_ref->stored changes.
32631         (mark_ref_stored): Likewise.
32632         (ref_indep_loop_p_2): Likewise.
32633         (set_ref_stored_in_loop): New helper function.
32634         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
32635         (memref_free): Adjust.
32636         (record_mem_ref_loc): Simplify.
32637         (gather_mem_refs_stmt): Adjust.
32638         (sort_locs_in_loop_postorder_cmp): New function.
32639         (analyze_memory_references): Sort accesses_in_loop after
32640         loop postorder number.
32641         (find_ref_loc_in_loop_cmp): New function.
32642         (for_all_locs_in_loop): Find relevant cluster of locs in
32643         accesses_in_loop and iterate without recursion.
32644         (execute_sm): Avoid uninit warning.
32645         (struct ref_always_accessed): Simplify.
32646         (ref_always_accessed::operator ()): Likewise.
32647         (ref_always_accessed_p): Likewise.
32648         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
32649         loop postorder numbers here.
32650         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
32651         numbers.
32653 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
32655         PR c++/57945
32656         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
32657         on decls for which assemble_alias has been called.
32659 2014-01-17  Nick Clifton  <nickc@redhat.com>
32661         * config/msp430/msp430.opt: (mcpu): New option.
32662         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
32663         (msp430_option_override): Parse target_cpu.  If the MCU name
32664         matches a generic string, clear target_mcu.
32665         (msp430_attr): Allow numeric interrupt values up to 63.
32666         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
32667         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
32668         option.
32669         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
32670         Add mcpu matches.
32671         * config/msp430/msp430.md (popm): Use %J rather than %I.
32672         (addsi3): Use msp430_nonimmediate_operand for operand 2.
32673         (addhi_cy_i): Use immediate_operand for operand 2.
32674         * doc/invoke.texi: Document -mcpu option.
32676 2014-01-17  Richard Biener  <rguenther@suse.de>
32678         PR rtl-optimization/38518
32679         * df.h (df_analyze_loop): Declare.
32680         * df-core.c: Include cfgloop.h.
32681         (df_analyze_1): Split out main part of df_analyze.
32682         (df_analyze): Adjust.
32683         (loop_inverted_post_order_compute): New function.
32684         (loop_post_order_compute): Likewise.
32685         (df_analyze_loop): New function avoiding whole-function
32686         postorder computes.
32687         * loop-invariant.c (find_defs): Use df_analyze_loop.
32688         (find_invariants): Adjust.
32689         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
32691 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
32693         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
32694         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
32696 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
32698         * ipa-ref.c (ipa_remove_stmt_references): Fix references
32699         traversal when removing references.
32701 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
32703         PR ipa/59775
32704         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
32706 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
32708         PR middle-end/56791
32709         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
32710         pushing a reload for an autoinc when we had previously reloaded an
32711         inner part of the address.
32713 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
32715         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
32716         field.
32717         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
32718         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
32719         when not giving up or versioning for alias only because of
32720         loop->safelen.
32721         (vect_analyze_data_ref_dependences): Set to true.
32722         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
32723         is a GIMPLE_PHI.
32724         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
32725         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
32726         to the condition.
32728         PR middle-end/58344
32729         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
32731         PR target/59839
32732         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
32733         operand 0 predicate for gathers, use a new pseudo as subtarget.
32735 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
32737         PR middle-end/59609
32738         * lra-constraints.c (process_alt_operands): Add printing debug info.
32739         Check absence of input/output reloads for matched operands too.
32741 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
32743         PR rtl-optimization/59835
32744         * ira.c (ira_init_register_move_cost): Increase cost for
32745         impossible modes.
32747 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
32749         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
32751 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
32753         PR target/59780
32754         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
32755         non-register objects.  Use gen_(high/low)part more consistently.
32756         Fix assertions.
32758 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
32760         PR target/59844
32761         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
32762         endian support, remove tests for WORDS_BIG_ENDIAN.
32763         (p8_mfvsrd_3_<mode>): Likewise.
32764         (reload_gpr_from_vsx<mode>): Likewise.
32765         (reload_gpr_from_vsxsf): Likewise.
32766         (p8_mfvsrd_4_disf): Likewise.
32768 2014-01-16  Richard Biener  <rguenther@suse.de>
32770         PR rtl-optimization/46590
32771         * lcm.c (compute_antinout_edge): Use postorder iteration.
32772         (compute_laterin): Use inverted postorder iteration.
32774 2014-01-16  Nick Clifton  <nickc@redhat.com>
32776         PR middle-end/28865
32777         * varasm.c (output_constant): Return the number of bytes actually
32778         emitted.
32779         (output_constructor_array_range): Update the field size with the
32780         number of bytes emitted by output_constant.
32781         (output_constructor_regular_field): Likewise.  Also do not
32782         complain if the total number of bytes emitted is now greater
32783         than the expected fieldpos.
32784         * output.h (output_constant): Update prototype and descriptive comment.
32786 2014-01-16  Marek Polacek  <polacek@redhat.com>
32788         PR middle-end/59827
32789         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
32790         it is error_mark_node.
32792 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
32794         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
32795         VALID_AVX256_REG_OR_OI_MODE.
32797 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
32799         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
32800         current procedure should be profiled.
32802 2014-01-15  Andrew Pinski  <apinski@cavium.com>
32804         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
32805         of moving from/to the STACK_REG register class.
32807 2014-01-15  Richard Henderson  <rth@redhat.com>
32809         PR debug/54694
32810         * reginfo.c (global_regs_decl): Globalize.
32811         * rtl.h (global_regs_decl): Declare.
32812         * ira.c (do_reload): Diagnose frame_pointer_needed and it
32813         reserved via global_regs.
32815 2014-01-15  Teresa Johnson  <tejohnson@google.com>
32817         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
32819 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
32821         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
32822         and vmulosh rather than call gen_vec_widen_smult_*.
32823         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
32824         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
32825         (vec_widen_smult_even_v16qi): Likewise.
32826         (vec_widen_umult_even_v8hi): Likewise.
32827         (vec_widen_smult_even_v8hi): Likewise.
32828         (vec_widen_umult_odd_v16qi): Likewise.
32829         (vec_widen_smult_odd_v16qi): Likewise.
32830         (vec_widen_umult_odd_v8hi): Likewise.
32831         (vec_widen_smult_odd_v8hi): Likewise.
32832         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
32833         vmuloub rather than call gen_vec_widen_umult_*.
32834         (vec_widen_umult_lo_v16qi): Likewise.
32835         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
32836         vmulosb rather than call gen_vec_widen_smult_*.
32837         (vec_widen_smult_lo_v16qi): Likewise.
32838         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
32839         rather than call gen_vec_widen_umult_*.
32840         (vec_widen_umult_lo_v8hi): Likewise.
32841         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
32842         rather than call gen_vec_widen_smult_*.
32843         (vec_widen_smult_lo_v8hi): Likewise.
32845 2014-01-15  Jeff Law  <law@redhat.com>
32847         PR tree-optimization/59747
32848         * ree.c (find_and_remove_re): Properly handle case where a second
32849         eliminated extension requires widening a copy created for elimination
32850         of a prior extension.
32851         (combine_set_extension): Ensure that the number of hard regs needed
32852         for a destination register does not change when we widen it.
32854 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32856         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
32857         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
32858         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
32859         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
32860         (avr-*-rtems*): Likewise.
32861         (bfin*-rtems*): Likewise.
32862         (moxie-*-rtems*): Likewise.
32863         (h8300-*-rtems*): Likewise.
32864         (i[34567]86-*-rtems*): Likewise.
32865         (lm32-*-rtems*): Likewise.
32866         (m32r-*-rtems*): Likewise.
32867         (m68k-*-rtems*): Likewise.
32868         (microblaze*-*-rtems*): Likewise.
32869         (mips*-*-rtems*): Likewise.
32870         (powerpc-*-rtems*): Likewise.
32871         (sh-*-rtems*): Likewise.
32872         (sparc-*-rtems*): Likewise.
32873         (sparc64-*-rtems*): Likewise.
32874         (v850-*-rtems*): Likewise.
32875         (m32c-*-rtems*): Likewise.
32877 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
32879         PR rtl-optimization/59511
32880         * ira.c (ira_init_register_move_cost): Use memory costs for some
32881         cases of register move cost calculations.
32882         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
32883         instead of BB frequency.
32884         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
32885         * lra-assigns.c (find_hard_regno_for): Ditto.
32887 2014-01-15  Richard Biener  <rguenther@suse.de>
32889         PR tree-optimization/59822
32890         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
32891         (vectorizable_load): Use it to hoist defs of uses of invariant
32892         loads out of the loop.
32894 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
32895             Kugan Vivekanandarajah  <kuganv@linaro.org>
32897         PR target/59695
32898         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
32899         truncation.
32901 2014-01-15  Richard Biener  <rguenther@suse.de>
32903         PR rtl-optimization/59802
32904         * lcm.c (compute_available): Use inverted postorder to seed
32905         the initial worklist.
32907 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32909         PR target/59803
32910         * config/s390/s390.c (s390_preferred_reload_class): Don't return
32911         ADDR_REGS for invalid symrefs in non-PIC code.
32913 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
32915         PR other/58712
32916         * builtins.c (determine_block_size): Initialize *probable_max_size
32917         even if len_rtx is CONST_INT.
32919 2014-01-14  Andrew Pinski  <apinski@cavium.com>
32921         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
32922         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
32923         (cortexa53_tunings): Likewise.
32924         (aarch64_sched_issue_rate): New function.
32925         (TARGET_SCHED_ISSUE_RATE): Define.
32927 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32929         * ira-costs.c (find_costs_and_classes): Add missed
32930         ira_init_register_move_cost_if_necessary.
32932 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32934         PR target/59787
32935         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
32937 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
32939         PR target/59794
32940         * config/i386/i386.c (type_natural_mode): Add a bool parameter
32941         to indicate if type is used for function return value.  Warn ABI
32942         change if the vector mode isn't available for function return value.
32943         (ix86_function_arg_advance): Pass false to type_natural_mode.
32944         (ix86_function_arg): Likewise.
32945         (ix86_gimplify_va_arg): Likewise.
32946         (function_arg_32): Don't warn ABI change.
32947         (ix86_function_value): Pass true to type_natural_mode.
32948         (ix86_return_in_memory): Likewise.
32949         (ix86_struct_value_rtx): Removed.
32950         (TARGET_STRUCT_VALUE_RTX): Likewise.
32952 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32954         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
32955         converting a conditional jump into a conditional return.
32957 2014-01-14  Richard Biener  <rguenther@suse.de>
32959         PR tree-optimization/58921
32960         PR tree-optimization/59006
32961         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32962         hoisting invariant stmts.
32963         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32964         invariant loads on the preheader edge if possible.
32966 2014-01-14  Joey Ye  <joey.ye@arm.com>
32968         * doc/plugin.texi (Building GCC plugins): Update to C++.
32970 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
32972         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32973         (_mm_rcp28_round_ss): Ditto.
32974         (_mm_rsqrt28_round_sd): Ditto.
32975         (_mm_rsqrt28_round_ss): Ditto.
32976         (_mm_rcp28_sd): Ditto.
32977         (_mm_rcp28_ss): Ditto.
32978         (_mm_rsqrt28_sd): Ditto.
32979         (_mm_rsqrt28_ss): Ditto.
32980         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32981         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32982         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32983         (IX86_BUILTIN_RCP28SD): Ditto.
32984         (IX86_BUILTIN_RCP28SS): Ditto.
32985         (IX86_BUILTIN_RSQRT28SD): Ditto.
32986         (IX86_BUILTIN_RSQRT28SS): Ditto.
32987         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32988         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32989         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32990         (ix86_expand_special_args_builtin): Expand new FTYPE.
32991         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32992         (srcp14<mode>): Make insn unary.
32993         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32994         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32995         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32996         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32997         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32998         Fix rounding: make it SAE only.
32999         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
33000         Ditto.
33001         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
33002         Ditto.
33003         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
33004         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
33005         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
33006         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
33007         (round_saeonly_mask_scalar_operand4): Ditto.
33008         (round_saeonly_mask_scalar_op3): Ditto.
33009         (round_saeonly_mask_scalar_op4): Ditto.
33011 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33013         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
33014         Implement -maltivec=be for vec_insert and vec_extract.
33016 2014-01-10  DJ Delorie  <dj@redhat.com>
33018         * config/msp430/msp430.md (call_internal): Don't allow memory
33019         references with SP as the base register.
33020         (call_value_internal): Likewise.
33021         * config/msp430/constraints.md (Yc): New.  For memory references
33022         that don't use SP as a base register.
33024         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
33025         "an integer without a # prefix"
33026         * config/msp430/msp430.md (epilogue_helper): Use it.
33028 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
33030         PR target/59617
33031         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
33032         AVX512F gather builtins.
33033         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
33034         on gather decls with INTEGER_TYPE masktype.
33035         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
33036         directly into the builtin rather than hoisting it before loop.
33038         PR tree-optimization/59387
33039         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
33040         (scev_const_prop): If folded_casts and type has undefined overflow,
33041         use force_gimple_operand instead of force_gimple_operand_gsi and
33042         for each added stmt if it is assign with
33043         arith_code_with_undefined_signed_overflow, call
33044         rewrite_to_defined_overflow.
33045         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
33046         gimple-fold.h instead.
33047         (arith_code_with_undefined_signed_overflow,
33048         rewrite_to_defined_overflow): Moved to ...
33049         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
33050         rewrite_to_defined_overflow): ... here.  No longer static.
33051         Include gimplify-me.h.
33052         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
33053         rewrite_to_defined_overflow): New prototypes.
33055 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33057         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
33059 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
33061         * builtins.c (get_object_alignment_2): Minor tweak.
33062         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
33064 2014-01-13  Christian Bruel  <christian.bruel@st.com>
33066         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
33067         optimized non constant lengths.
33069 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
33071         PR libgomp/59194
33072         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
33073         load as __atomic_load_N if possible.
33075 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
33077         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
33078         target parameter.
33079         (rs6000_expand_builtin): Adjust call.
33081 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
33083         PR target/58115
33084         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
33085         * config/rs6000/rs6000.c: Include target-globals.h.
33086         (rs6000_set_current_function): Instead of doing target_reinit
33087         unconditionally, use save_target_globals_default_opts and
33088         restore_target_globals.
33090         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
33091         FPSCR.
33092         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
33093         (rs6000_expand_builtin): Handle mffs and mtfsf.
33094         (rs6000_init_builtins): Define mffs and mtfsf.
33095         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
33096         (rs6000_mffs): New pattern.
33097         (rs6000_mtfsf): New pattern.
33099 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
33101         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
33102         Start narrowing with START.  Apply candidate-use pair
33103         and check overall cost in narrowing.
33104         (iv_ca_prune): Pass new argument.
33106 2014-01-10  Jeff Law  <law@redhat.com>
33108         PR middle-end/59743
33109         * ree.c (combine_reaching_defs): Ensure the defining statement
33110         occurs before the extension when optimizing extensions with
33111         different source and destination hard registers.
33113 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
33115         PR ipa/58585
33116         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
33117         vtables into the type inheritance graph.
33119 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33121         PR rtl-optimization/59754
33122         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
33123         modes in the REGNO != REGNO case.
33125 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33127         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
33129 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33131         PR tree-optimization/59745
33132         * tree-predcom.c (tree_predictive_commoning_loop): Call
33133         free_affine_expand_cache if giving up because components is NULL.
33135         * target-globals.c (save_target_globals): Allocate < 4KB structs using
33136         GC in payload of target_globals struct instead of allocating them on
33137         the heap and the larger structs separately using GC.
33138         * target-globals.h (struct target_globals): Make regs, hard_regs,
33139         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
33140         of GTY((skip)) and change type to void *.
33141         (reset_target_globals): Cast loads from those fields to corresponding
33142         types.
33144 2014-01-10  Steve Ellcey  <sellcey@mips.com>
33146         PR plugins/59335
33147         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
33148         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
33149         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
33151 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
33153         PR target/59744
33154         * aarch64-modes.def (CC_Zmode): New flags mode.
33155         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
33156         represents an equality.
33157         (aarch64_get_condition_code): Handle CC_Zmode.
33158         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
33160 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33162         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
33163         extraction in good case.
33165 2014-01-10  Richard Biener  <rguenther@suse.de>
33167         PR tree-optimization/59374
33168         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
33169         checking after SLP discovery.  Mark stmts not participating
33170         in any SLP instance properly.
33172 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33174         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
33175         when handling a SET rtx.
33177 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33179         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
33180         (cortex-a57): Likewise.
33181         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
33183 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33185         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
33186         non-iwmmxt builtins.
33188 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
33190         PR ipa/58252
33191         PR ipa/59226
33192         * ipa-devirt.c record_target_from_binfo): Take as argument
33193         stack of binfos and lookup matching one for virtual inheritance.
33194         (possible_polymorphic_call_targets_1): Update.
33196 2014-01-10  Huacai Chen  <chenhc@lemote.com>
33198         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
33199         kernel strings for Loongson-2E/2F/3A.
33201 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33203         PR middle-end/59670
33204         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
33205         is_gimple_call before calling gimple_call_internal_p.
33207 2014-01-09  Steve Ellcey  <sellcey@mips.com>
33209         * Makefile.in (TREE_FLOW_H): Remove.
33210         (TREE_SSA_H): Add file names from tree-flow.h.
33211         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
33212         * tree.h: Remove tree-flow.h reference.
33213         * hash-table.h: Remove tree-flow.h reference.
33214         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
33215         reference with tree-ssa-loop.h.
33217 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33219         * doc/invoke.texi: Add -maltivec={be,le} options, and document
33220         default element-order behavior for -maltivec.
33221         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
33222         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
33223         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
33224         when targeting big endian, at least for now.
33225         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
33227 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33229         PR middle-end/47735
33230         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
33231         var satisfies use_register_for_decl, just take into account type
33232         alignment, rather than decl alignment.
33234         PR tree-optimization/59622
33235         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
33236         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
33237         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
33238         Don't devirtualize for inplace at all.  For targets.length () == 1,
33239         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
33241 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
33243         * config/i386/i386.md (cpu): Remove the unused btver1.
33245 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
33247         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
33249 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33251         PR target/58115
33252         * tree-core.h (struct target_globals): New forward declaration.
33253         (struct tree_target_option): Add globals field.
33254         * tree.h (TREE_TARGET_GLOBALS): Define.
33255         (prepare_target_option_nodes_for_pch): New prototype.
33256         * target-globals.h (struct target_globals): Define even if
33257         !SWITCHABLE_TARGET.
33258         * tree.c (prepare_target_option_node_for_pch,
33259         prepare_target_option_nodes_for_pch): New functions.
33260         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
33261         * config/i386/i386.c: Include target-globals.h.
33262         (ix86_set_current_function): Instead of doing target_reinit
33263         unconditionally, use save_target_globals_default_opts and
33264         restore_target_globals.
33266 2014-01-09  Richard Biener  <rguenther@suse.de>
33268         PR tree-optimization/59715
33269         * tree-cfg.h (split_critical_edges): Declare.
33270         * tree-cfg.c (split_critical_edges): Export.
33271         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
33273 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33275         * cfgexpand.c (expand_stack_vars): Optionally disable
33276         asan stack protection.
33277         (expand_used_vars): Likewise.
33278         (partition_stack_vars): Likewise.
33279         * asan.c (asan_emit_stack_protection): Optionally disable
33280         after return stack usage.
33281         (instrument_derefs): Optionally disable memory access instrumentation.
33282         (instrument_builtin_call): Likewise.
33283         (instrument_strlen_call): Likewise.
33284         (asan_protect_global): Optionally disable global variables protection.
33285         * doc/invoke.texi: Added doc for new options.
33286         * params.def: Added new options.
33287         * params.h: Likewise.
33289 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33291         PR rtl-optimization/59724
33292         * ifcvt.c (cond_exec_process_if_block): Don't call
33293         flow_find_head_matching_sequence with 0 longest_match.
33294         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
33295         non-active insns if !stop_after.
33296         (try_head_merge_bb): Revert 2014-01-07 changes.
33298 2014-01-08  Jeff Law  <law@redhat.com>
33300         * ree.c (get_sub_rtx): New function, extracted from...
33301         (merge_def_and_ext): Here.
33302         (combine_reaching_defs): Use get_sub_rtx.
33304 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
33306         * cgraph.h (varpool_variable_node): Do not choke on null node.
33308 2014-01-08  Catherine Moore  <clm@codesourcery.com>
33310         * config/mips/mips.md (simple_return): Attempt to use JRC
33311         for microMIPS.
33312         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
33314 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
33316         PR rtl-optimization/59137
33317         * reorg.c (steal_delay_list_from_target): Call update_block for
33318         elided insns.
33319         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
33321 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33323         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
33324         two duplicate entries.
33326 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
33328         Revert:
33329         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
33331         * config/mips/mips.c (mips_truncated_op_cost): New function.
33332         (mips_rtx_costs): Adjust test for BADDU.
33333         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
33335         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
33337         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
33338         (*baddu_si): ...this new pattern.
33340 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
33342         PR ipa/59722
33343         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
33345 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33347         PR middle-end/57748
33348         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
33349         inner_reference_p.
33350         (expand_expr, expand_normal): Adjust.
33351         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
33352         inner_reference_p. Use inner_reference_p to expand inner references.
33353         (store_expr): Adjust.
33354         * cfgexpand.c (expand_call_stmt): Adjust.
33356 2014-01-08  Rong Xu  <xur@google.com>
33358         * gcov-io.c (gcov_var): Move from gcov-io.h.
33359         (gcov_position): Ditto.
33360         (gcov_is_error): Ditto.
33361         (gcov_rewrite): Ditto.
33362         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
33363         only part to libgcc/libgcov.h.
33365 2014-01-08  Marek Polacek  <polacek@redhat.com>
33367         PR middle-end/59669
33368         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
33370 2014-01-08  Marek Polacek  <polacek@redhat.com>
33372         PR sanitizer/59667
33373         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
33375 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
33377         PR rtl-optimization/59649
33378         * stor-layout.c (get_mode_bounds): For BImode return
33379         0 and STORE_FLAG_VALUE.
33381 2014-01-08  Richard Biener  <rguenther@suse.de>
33383         PR middle-end/59630
33384         * gimple.h (is_gimple_builtin_call): Remove.
33385         (gimple_builtin_call_types_compatible_p): New.
33386         (gimple_call_builtin_p): New overload.
33387         * gimple.c (is_gimple_builtin_call): Remove.
33388         (validate_call): Rename to ...
33389         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
33390         check return types.
33391         (validate_type): New static function.
33392         (gimple_call_builtin_p): New overload and adjust.
33393         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
33394         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
33395         (gimple_fold_stmt_to_constant_1): Likewise.
33396         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
33398 2014-01-08  Richard Biener  <rguenther@suse.de>
33400         PR middle-end/59471
33401         * gimplify.c (gimplify_expr): Gimplify register-register type
33402         VIEW_CONVERT_EXPRs to separate stmts.
33404 2014-01-07  Jeff Law  <law@redhat.com>
33406         PR middle-end/53623
33407         * ree.c (combine_set_extension): Handle case where source
33408         and destination registers in an extension insn are different.
33409         (combine_reaching_defs): Allow source and destination registers
33410         in extension to be different under limited circumstances.
33411         (add_removable_extension): Remove restriction that the
33412         source and destination registers in the extension are the same.
33413         (find_and_remove_re): Emit a copy from the extension's
33414         destination to its source after the defining insn if
33415         the source and destination registers are different.
33417         PR middle-end/59285
33418         * ifcvt.c (merge_if_block): If we are merging a block with more than
33419         one successor with a block with no successors, remove any BARRIER
33420         after the second block.
33422 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
33424         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
33426 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
33428         PR target/59652
33429         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
33430         for 14-bit register offsets when INT14_OK_STRICT is false.
33432 2014-01-07  Roland Stigge  <stigge@antcom.de>
33433             Michael Meissner  <meissner@linux.vnet.ibm.com>
33435         PR 57386/target
33436         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
33437         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
33439 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
33441         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
33442         -mcpu.
33444 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
33446         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
33447         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
33448         rtx is const0_rtx or not.
33450 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
33452         PR target/58115
33453         * target-globals.c (save_target_globals): Remove this_fn_optab
33454         handling.
33455         * toplev.c: Include optabs.h.
33456         (target_reinit): Temporarily restore the global options if another
33457         set of options are in force.
33459 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
33461         PR rtl-optimization/58668
33462         * cfgcleanup.c (flow_find_cross_jump): Don't count
33463         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
33464         to determine what is counted.
33465         (flow_find_head_matching_sequence): Use active_insn_p to determine
33466         what is counted.
33467         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
33468         counting change.
33469         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
33470         determine what is counted.
33472         PR tree-optimization/59643
33473         * tree-predcom.c (split_data_refs_to_components): If one dr is
33474         read and one write, determine_offset fails and the write isn't
33475         in the bad component, just put the read into the bad component.
33477 2014-01-07  Mike Stump  <mikestump@comcast.net>
33478             Jakub Jelinek  <jakub@redhat.com>
33480         PR pch/59436
33481         * tree-core.h (struct tree_optimization_option): Change optabs
33482         type from unsigned char * to void *.
33483         * optabs.c (init_tree_optimization_optabs): Adjust
33484         TREE_OPTIMIZATION_OPTABS initialization.
33486 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
33488         PR target/59644
33489         * config/i386/i386.h (struct machine_function): Add
33490         no_drap_save_restore field.
33491         * config/i386/i386.c (ix86_save_reg): Use
33492         !cfun->machine->no_drap_save_restore instead of
33493         crtl->stack_realign_needed.
33494         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
33495         this function clears frame_pointer_needed.  Set
33496         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
33497         and DRAP reg is needed.
33499 2014-01-06  Marek Polacek  <polacek@redhat.com>
33501         PR c/57773
33502         * doc/implement-c.texi: Mention that other integer types are
33503         permitted as bit-field types in strictly conforming mode.
33505 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
33507         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
33508         is newly allocated.
33510 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
33512         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
33514 2014-01-06  Martin Jambor  <mjambor@suse.cz>
33516         PR ipa/59008
33517         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
33518         to int.
33519         * ipa-prop.c (ipa_print_node_params): Fix indentation.
33521 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33523         PR debug/59350
33524         PR debug/59510
33525         * var-tracking.c (add_stores): Preserve the value of the source even if
33526         we don't record the store.
33528 2014-01-06  Terry Guo  <terry.guo@arm.com>
33530         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
33532 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
33534         PR bootstrap/59541
33535         * config/darwin.c (darwin_function_section): Adjust return values to
33536         correspond to optimisation changes made in r206070.
33538 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
33540         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
33541         from prefetch_block tune setting.
33542         (nocona_cost): Correct size of prefetch block to 64.
33544 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33546         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
33547         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
33548         used to save the static chain register in the computation of the offset
33549         from which the FP registers need to be restored.
33551 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
33553         PR tree-optimization/59519
33554         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
33555         ICE if get_current_def (current_new_name) is already non-NULL, as long
33556         as it is a phi result of some other phi in *new_exit_bb that has
33557         the same argument.
33559         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
33560         or vmovdqu* for misaligned_operand.
33561         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
33562         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
33563         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
33564         aligned_mem for AVX512F masked aligned load and store builtins and for
33565         non-temporal moves.
33567 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
33569         PR tree-optimization/59651
33570         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33571         Address range for negative step should be added by TYPE_SIZE_UNIT.
33573 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
33575         * config/m68k/m68k.c (handle_move_double): Handle pushes with
33576         overlapping registers also for registers other than the stack pointer.
33578 2014-01-03  Marek Polacek  <polacek@redhat.com>
33580         PR other/59661
33581         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
33582         __builtin_FILE.
33584 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
33586         PR target/59625
33587         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
33588         asm goto as jump.
33590         * config/i386/i386.md (MODE_SIZE): New mode attribute.
33591         (push splitter): Use <P:MODE_SIZE> instead of
33592         GET_MODE_SIZE (<P:MODE>mode).
33593         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
33594         (mov -1, reg peephole2): Likewise.
33595         * config/i386/sse.md (*mov<mode>_internal,
33596         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
33597         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
33598         *<code><mode>3, *andnot<mode>3<mask_name>,
33599         <mask_codefor><code><mode>3<mask_name>): Likewise.
33600         * config/i386/subst.md (mask_mode512bit_condition,
33601         sd_mask_mode512bit_condition): Likewise.
33603 2014-01-02  Xinliang David Li  <davidxl@google.com>
33605         PR tree-optimization/59303
33606         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
33607         (dump_predicates): Better output format.
33608         (pred_equal_p): New function.
33609         (is_neq_relop_p): Ditto.
33610         (is_neq_zero_form_p): Ditto.
33611         (pred_expr_equal_p): Ditto.
33612         (pred_neg_p): Ditto.
33613         (simplify_pred): Ditto.
33614         (simplify_preds_2): Ditto.
33615         (simplify_preds_3): Ditto.
33616         (simplify_preds_4): Ditto.
33617         (simplify_preds): Ditto.
33618         (push_pred): Ditto.
33619         (push_to_worklist): Ditto.
33620         (get_pred_info_from_cmp): Ditto.
33621         (is_degenerated_phi): Ditto.
33622         (normalize_one_pred_1): Ditto.
33623         (normalize_one_pred): Ditto.
33624         (normalize_one_pred_chain): Ditto.
33625         (normalize_preds): Ditto.
33626         (normalize_cond_1): Remove function.
33627         (normalize_cond): Ditto.
33628         (is_gcond_subset_of): Ditto.
33629         (is_subset_of_any): Ditto.
33630         (is_or_set_subset_of): Ditto.
33631         (is_and_set_subset_of): Ditto.
33632         (is_norm_cond_subset_of): Ditto.
33633         (pred_chain_length_cmp): Ditto.
33634         (convert_control_dep_chain_into_preds): Type change.
33635         (find_predicates): Ditto.
33636         (find_def_preds): Ditto.
33637         (destroy_predicates_vecs): Ditto.
33638         (find_matching_predicates_in_rest_chains): Ditto.
33639         (use_pred_not_overlap_with_undef_path_pred): Ditto.
33640         (is_pred_expr_subset): Ditto.
33641         (is_pred_chain_subset_of): Ditto.
33642         (is_included_in): Ditto.
33643         (is_superset_of): Ditto.
33645 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33647         Update copyright years.
33649 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33651         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
33652         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
33653         config/arc/arc.md, config/arc/arc.opt,
33654         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
33655         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
33656         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
33657         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
33658         config/linux-protos.h, config/linux.c, config/winnt-c.c,
33659         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
33660         vtable-verify.c, vtable-verify.h: Use the standard form for the
33661         copyright notice.
33663 2014-01-02  Tobias Burnus  <burnus@net-b.de>
33665         * gcc.c (process_command): Update copyright notice dates.
33666         * gcov-dump.c: Ditto.
33667         * gcov.c: Ditto.
33668         * doc/cpp.texi: Bump @copying's copyright year.
33669         * doc/cppinternals.texi: Ditto.
33670         * doc/gcc.texi: Ditto.
33671         * doc/gccint.texi: Ditto.
33672         * doc/gcov.texi: Ditto.
33673         * doc/install.texi: Ditto.
33674         * doc/invoke.texi: Ditto.
33676 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33678         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
33680 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
33682         * config/i386/sse.md (*mov<mode>_internal): Guard
33683         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
33685         PR rtl-optimization/59647
33686         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
33687         new_rtx into UNSIGNED_FLOAT rtxes.
33689 Copyright (C) 2014 Free Software Foundation, Inc.
33691 Copying and distribution of this file, with or without modification,
33692 are permitted in any medium without royalty provided the copyright
33693 notice and this notice are preserved.