1 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
3 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
4 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
5 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
6 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
7 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
8 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
9 * doc/gty.texi (for_user): Document new option.
10 * gengtype.c (create_user_defined_type): Don't try to get a struct for
12 (walk_type): Don't error out on for_user option.
13 (write_func_for_structure): Emit user marking routines if requested by
15 (write_local_func_for_structure): Likewise.
16 (main): Mark types with for_user option as used.
17 * ggc.h (gt_pch_nx): Add overload for unsigned int.
18 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
19 * hash-table.h (ggc_hasher): New struct.
20 (hash_table::create_ggc): New function.
21 (gt_pch_nx): New overload for hash_table.
23 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
25 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
26 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
27 * config/sh/sh.c: Likewise.
28 * config/sh/sh-mem.cc: Likewise.
29 * config/sh/sh.md: Likewise.
30 * config/sh/predicates.md: Likewise.
31 * config/sh/sync.md: Likewise.
33 2014-10-11 Martin Liska <mliska@suse.cz>
36 * cgraphunit.c (symbol_table::process_new_functions): Missing call
37 for call_cgraph_insertion_hooks added.
39 2014-10-10 Jakub Jelinek <jakub@redhat.com>
42 * stor-layout.c (min_align_of_type): Don't decrease alignment
43 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
44 TYPE_USER_ALIGN is set.
46 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
48 PR rtl-optimization/63483
49 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
50 references when alignment ANDs are involved.
51 (write_dependence_p): Ditto.
54 2014-10-10 Marek Polacek <polacek@redhat.com>
56 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
57 * doc/invoke.texi: Document -fsanitize=object-size.
58 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
59 or it into SANITIZE_UNDEFINED.
60 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
61 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
62 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
63 * opts.c (common_handle_option): Handle -fsanitize=object-size.
64 * ubsan.c: Include tree-object-size.h.
65 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
66 (ubsan_expand_bounds_ifn): Use false instead of 0.
67 (ubsan_expand_objsize_ifn): New function.
68 (instrument_object_size): New function.
69 (pass_ubsan::execute): Add object size instrumentation.
70 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
72 2014-10-10 Richard Henderson <rth@redhat.com>
75 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
76 Restrict the set of expressions we're willing to move.
78 2014-10-10 Jeff Law <law@redhat.com>
80 * ira.c (struct equivalence): Promote INIT_INSNs field to
81 an rtx_insn_list. Add comments.
82 (no_equiv): Promote LIST to an rtx_insn_list. Update
83 testing for and creating the special marker. Use methods
84 to extract the insn and next pointers. Promote INSN to an
86 (update_equiv_regs): Update test for special marker in the
89 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
91 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
92 * configure: Regenerate.
93 * config/aarch64/aarch64.c (aarch64_override_options): Handle
94 TARGET_FIX_ERR_A53_835769_DEFAULT.
95 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
97 * doc/install.texi (aarch64*-*-*): Document
98 new --enable-fix-cortex-a53-835769 option.
100 2014-10-10 Kyrylo Tkachov<kyrylo.tkachov@arm.com>
101 Ramana Radhakrishnan<ramana.radhakrishnan@arm.com>
103 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
104 (ADJUST_INSN_LENGTH): Define.
105 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
106 * config/aarch64/aarch64.c (is_mem_p): New function.
107 (is_memory_op): Likewise.
108 (aarch64_prev_real_insn): Likewise.
109 (is_madd_op): Likewise.
110 (dep_between_memop_and_curr): Likewise.
111 (aarch64_madd_needs_nop): Likewise.
112 (aarch64_final_prescan_insn): Likewise.
113 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
114 and -mno-fix-cortex-a53-835769 options.
116 2014-10-10 Jakub Jelinek <jakub@redhat.com>
118 PR tree-optimization/63464
119 * tree-switch-conversion.c (struct case_bit_test): Remove
120 hi and lo fields, add wide_int mask field.
121 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
122 hi/lo fields into wide_int mask operations, optimize by pretending
123 minval to be 0 if maxval is small enough.
124 (process_switch): Adjust caller.
126 2014-10-10 Richard Biener <rguenther@suse.de>
128 PR tree-optimization/63379
129 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
130 a neutral operand for min/max when it is not a reduction chain.
132 2014-10-10 Richard Biener <rguenther@suse.de>
134 PR tree-optimization/63476
135 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
136 (BB_LIVE_VOP_ON_EXIT): New define.
137 (create_expression_by_pieces): Assign VUSEs to stmts.
138 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
139 (pass_pre::execute): Assert virtual SSA form is up-to-date
142 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
144 * lra-assigns.c (assign_by_spills): Error out on spill failure.
146 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
148 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
151 2014-10-09 Richard Biener <rguenther@suse.de>
153 PR tree-optimization/63380
154 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
157 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
159 * config/avr/avr.opt (mmcu=): Change to have a string value.
160 (mn-flash=, mskip-bug, march=, mrmw): New options.
161 (HeaderInclude): New.
162 (mmcu=): Remove Var / Init clauses.
163 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
165 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
166 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
167 (SYMBOL_FLAG_IO_LOW): Define.
168 (avr_device_to_as, avr_device_to_ld): Don't declare.
169 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
170 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
171 (EXTRA_SPEC_FUNCTIONS): Don't define.
172 (ASM_SPEC): Translate -arch= option to -mmcu= option.
173 (LINK_SPEC): Translate -arch= option to -m= option.
174 Don't use device_to_ld / device_to_data_start.
175 (STARTFILE_SPEC): Now empty.
176 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
177 * config/avr/gen-avr-mmcu-specs.c: New file.
178 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
179 (s-device-specs): Likewise.
180 (GCC_PASSES): Add s-device-specs.
181 (install-driver): Depend on install-device-specs.
182 (install-device-specs): New rule.
183 * config/avr/avr.c (avr_option_override): Look up mcu arch by
184 avr_arch_index and provide fallback initialization for avr_n_flash.
185 (varasm.h): #include.
186 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
187 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
188 (avr_attribute_table): Add "io", "address" and "io_low".
189 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
190 Add special handling for symbols with "io" and/or "address" attributes.
191 (avr_asm_asm_output_aligned_bss): New function.
192 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
193 as appropriate. Handle io_low attribute.
194 (avr_out_sbxx_branch): Handle symbolic io addresses.
195 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
196 avr_n_flash instead of avr_current_device->n_flash.
197 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
198 (avr_emit_movmemhi): Likewise.
199 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
200 Use TARGET_RMW instead of avr_current_device->dev_attributes.
201 Don't define avr_current_device->macro (that's the specfile's job).
202 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
203 * config/avr/avr.c (avr_2word_insn_p): Likewise.
204 * config/avr/avr.md (*cpse.ne): Likewise.
205 (mov<mode>): Use avr_eval_addr_attrib.
206 (cbi): Change constraint for low_io_address_operand operand to "i".
207 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
208 * config/avr/predicates.md (io_address_operand):
209 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
210 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
211 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
213 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
214 * config/avr/genmultilib.awk: Use -march=.
215 Remove Multilib matches processing.
216 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
217 * config/avr/avr-arch.h: Add double include guard.
218 (avr_mcu_t) <library_name>: Update comment.
219 * config/avr/driver-avr.c (avr_device_to_as): Delete.
220 (avr_device_to_ld, avr_device_to_data_start): Likewise.
221 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
222 (avr_device_to_sp8): Likewise.
223 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
225 * doc/extend.texi (io, address): Document new AVR variable attributes.
228 2014-10-09 Marek Polacek <polacek@redhat.com>
230 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
232 2014-10-08 Richard Biener <rguenther@suse.de>
234 PR tree-optimization/61969
235 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
238 2014-10-09 Richard Biener <rguenther@suse.de>
240 PR tree-optimization/63445
241 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
242 overflow for non-equality compares.
244 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
246 PR rtl-optimization/57003
247 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
248 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
249 killing regs_invalidated_by_call.
251 2014-10-08 Teresa Johnson <tejohnson@google.com>
254 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
255 (ssa_fix_duplicate_block_edges): Invoke it.
256 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
258 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
261 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
262 atomic_fetch_<fetchop_name>si_hard,
263 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
264 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
265 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
266 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
268 2014-10-08 Rong Xu <xur@google.com>
270 * gcov-tool.c (profile_overlap): New driver function
271 to compute profile overlap.
272 (print_overlap_usage_message): New.
273 (overlap_usage): New.
275 (print_usage): Add calls to overlap function.
277 * doc/gcov-tool.texi: Add documentation.
279 2014-10-08 Steve Ellcey <sellcey@mips.com>
281 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
282 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
284 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
286 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
287 pattern matching of MEM_REF.
288 (check_stmt_for_type_change): Update.
290 2014-10-08 Steve Ellcey <sellcey@mips.com>
292 * config/mips/linux64.h: Remove.
293 * config/mips/gnu-user64.h: Remove.
294 * gcc.config (mips*-*-*): Remove references to linux64.h and
296 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
297 with modified version from gnu-user64.h.
298 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
299 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
300 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
302 (GNU_USER_LINK_EMULATION64): Ditto.
303 (GNU_USER_LINK_EMULATIONN32): Ditto.
304 (GLIBC_DYNAMIC_LINKER32): Ditto.
305 (GLIBC_DYNAMIC_LINKER64): Ditto.
306 (GLIBC_DYNAMIC_LINKERN32): Ditto.
307 (UCLIBC_DYNAMIC_LINKER32): Ditto.
308 (UCLIBC_DYNAMIC_LINKER64): Ditto.
309 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
310 (BIONIC_DYNAMIC_LINKERN32): Ditto.
311 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
312 (GLIBC_DYNAMIC_LINKER): Delete.
313 (UCLIBC_DYNAMIC_LINKER): Delete.
315 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
316 Richard Biener <rguenther@suse.de>
318 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
319 Get address space from operand 0 (BASE).
321 2014-10-07 Iain Sandoe <iain@codesourcery.com>
324 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
326 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
328 * dwarf2out.c: Remove current_function_has_inlines.
329 (gen_subprogram_die): Same.
330 (gen_inlined_subroutine_die): Same.
332 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
334 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
336 (_addcarry_u64): Ditto.
337 (_addcarryx_u64): Ditto.
339 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
341 * cgraph.h (cgraph_node::get_fun): Declare.
342 * cgraph.c (cgraph_node::get_fun): New method.
343 * ipa-inline.c (can_inline_edge_p): Use it.
345 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
347 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
349 * lto-wrapper.c (merge_and_complain): Likewise.
352 2014-10-06 Rong Xu <xur@google.com>
354 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
355 * tree-profile.c: (params.h): New include.
356 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
357 and __gcov_indirect_call_topn_counters for
358 indirect_call_topn_profile.
359 (gimple_init_edge_profiler): New decls for
360 __gcov_indirect_call_topn_profiler.
361 (gimple_gen_ic_profiler): Generate the correct profiler call.
362 (gimple_gen_ic_func_profiler): Fix format.
363 * value-prof.c (params.h): New include.
364 (dump_histogram_value): Hanlde indirect_call_topn counters.
365 (stream_in_histogram_value): Ditto.
366 (gimple_indirect_call_to_profile): Use indirect_call_topn
367 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
368 (gimple_find_values_to_profile): Hanlde indirect_call_topn
370 * value-prof.h (enum hist_type): Histrogram type for
371 indirect_call_topn counters.
372 * profile.c (instrument_values): Instrument
373 indirect_call_topn counters.
375 2014-10-06 Rong Xu <xur@google.com>
377 * Makefile.in: Fix dependence.
378 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
379 indirect call topn profiler.
382 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
384 * calls.c (expand_call): Do not use the target as the return slot if
385 it is not sufficiently aligned.
387 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
389 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
390 discussion of permutes and why we don't handle them.
392 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
394 * config/sparc/predicates.md (int_register_operand): Delete.
396 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
398 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
400 2014-10-06 Jakub Jelinek <jakub@redhat.com>
402 * ubsan.h (ubsan_get_source_location): New prototype.
403 * ubsan.c (ubsan_source_location_type): New variable.
404 Function renamed to ...
405 (ubsan_get_source_location_type): ... this. Cache
406 return value in ubsan_source_location_type variable.
407 (ubsan_source_location, ubsan_create_data): Use
408 ubsan_get_source_location_type instead of
409 ubsan_source_location_type.
410 * asan.c (asan_protect_global): Don't protect globals
411 with ubsan_get_source_location_type () type.
412 (asan_add_global): Provide global decl location info
415 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
417 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
420 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
422 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
424 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
426 (ipa_polymorphic_call_context::dump): Fix formating.
427 (walk_ssa_copies): Add logic avoiding loops; update uses.
428 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
430 2014-10-02 Mark Wielaard <mjw@redhat.com>
433 * dwarf2out.c (gen_subprogram_die): When a member function is
434 explicitly deleted then add a DW_AT_GNU_deleted attribute.
435 * langhooks.h (struct lang_hooks_for_decls): Add
436 function_decl_deleted_p langhook.
437 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
438 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
440 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
442 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
444 (ipa_polymorphic_call_context::get_dynamic_type): Return true
445 if type doesn't change.
446 * cgraph.h (cgraph_indirect_call_info): New flag.
447 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
448 (cgraph_node::dump): Dump it.
449 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
450 of context.get_dynamic_type.
451 (ipa_make_edge_direct_to_target): Do not speculate
452 edge that is already speuclative.
453 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
454 speculate to __builtin_unreachable
455 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
457 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
459 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
461 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
462 get_dynamic_type; drop TODO.
463 * ipa-polymorphic-call.c
464 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
465 for otr_type to be unknown.
467 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
469 * common/config/score/score-common.c: Remove.
470 * config.gcc: Remove support for score-*.
471 * config/score/constraints.md: Remove.
472 * config/score/elf.h: Remove.
473 * config/score/predicates.md: Remove.
474 * config/score/score-conv.h: Remove.
475 * config/score/score-generic.md: Remove.
476 * config/score/score-modes.def: Remove.
477 * config/score/score-protos.h: Remove.
478 * config/score/score.c: Remove.
479 * config/score/score.h: Remove.
480 * config/score/score.md: Remove.
481 * config/score/score.opt: Remove.
482 * doc/md.texi: Don't document score-*.
484 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
487 * genconditions.c: Directly include ggc.h before rtl.h.
489 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
491 * ipa-polymorphic-call.c
492 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
493 code determining speculative type.
494 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
496 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
498 * altivec.md (altivec_lvsl): New define_expand.
499 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
500 (altivec_lvsr): New define_expand.
501 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
502 * rs6000.c (rs6000_expand_builtin): Change to use
503 altivec_lvs[lr]_direct; remove commented-out code.
505 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
507 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
508 Issue a warning message when vec_lvsl or vec_lvsr is used with a
509 little endian target.
511 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
513 * tree-pretty-print.c (dump_location): Make it extern. Dump also
515 * tree-pretty-print.h (dump_location): Declare.
516 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
517 (pp_gimple_stmt_1): Likewise.
518 (dump_implicit_edges): Likewise.
519 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
523 2014-10-03 David Malcolm <dmalcolm@redhat.com>
525 * gcc.c (driver::global_initializations): Remove "const" so
526 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
527 and decoded_options_count.
529 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
531 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
533 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
534 TARGET_E500_DOUBLE case here.
536 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
541 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
543 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
545 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
546 * lto-cgraph.c (lto_output_edge, input_edge): Stream
548 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
549 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
550 * cgraphclones.c (cgraph_edge::clone): Likewise.
551 * ipa-prop.c (update_jump_functions_after_inlining,
552 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
553 to possible_dynamic_type_change.
554 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
555 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
556 IN_POLY_CDOTR argument.
558 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
559 for BASE and OUTER_TYPE being NULL.
560 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
561 in_poly_cdtor parameter.
563 2014-10-03 Jakub Jelinek <jakub@redhat.com>
565 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
566 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
568 (expand_vec_perm_1): Likewise.
570 2014-10-03 Jakub Jelinek <jakub@redhat.com>
571 Uros Bizjak <ubizjak@gmail.com>
573 PR tree-optimization/61403
574 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
575 error in comment. Also optimize 256-bit vectors for AVX2
576 or AVX (floating vectors only), provided the first permutation
577 can be performed in one insn.
579 2014-10-03 David Malcolm <dmalcolm@redhat.com>
581 * gcc.c (class driver): New class.
582 (main): Reimplement in terms of driver::main, moving most of the
583 locals to be locals within individual methods of class driver.
584 The remaining locals "explicit_link_files", "decoded_options" and
585 "decoded_options_count" are used by multiple driver:: methods, and
586 so become member data. Doing so isolates the argc/argv reads and
587 writes. Replace "goto out" with a special exit code from
588 new method driver::prepare_infiles. Split out the old
589 implementation of main into the following...
590 (driver::main): New function, corresponding to the old "main"
592 (driver::set_progname): New function, taken from the old
593 "main" implementation.
594 (driver::expand_at_files): Likewise.
595 (driver::decode_argv): Likewise.
596 (driver::global_initializations): Likewise.
597 (driver::build_multilib_strings): Likewise.
598 (driver::set_up_specs): Likewise.
599 (driver::putenv_COLLECT_GCC): Likewise.
600 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
601 (driver::handle_unrecognized_options): Likewise.
602 (driver::maybe_print_and_exit): Likewise.
603 (driver::prepare_infiles): Likewise.
604 (driver::do_spec_on_infiles): Likewise.
605 (driver::maybe_run_linker): Likewise.
606 (driver::final_actions): Likewise.
607 (driver::get_exit_code): Likewise.
609 2014-10-03 Yury Gribov <y.gribov@samsung.com>
611 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
612 don't emit empty ctors.
614 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
616 * convert.c (convert_to_integer): Do not introduce useless conversions
617 between integral types.
619 2014-10-03 David Sherwood <david.sherwood@arm.com>
621 * ira-int.h (ira_allocno): Mark hard_regno as signed.
623 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
625 * lra-constraints.c (inherit_in_ebb): Handle calls with
626 multiple return values.
627 * caller-save.c (save_call_clobbered_regs): Likewise.
629 2014-10-03 Jakub Jelinek <jakub@redhat.com>
631 * tree-vect-data-refs.c (vect_permute_load_chain,
632 vect_shift_permute_load_chain): Fix a typo in temporary var names,
636 * omp-low.c (taskreg_contexts): New variable.
637 (scan_omp_parallel): Push newly created context into taskreg_contexts
638 vector and move record layout code to finish_taskreg_scan.
639 (scan_omp_task): Likewise.
640 (finish_taskreg_scan): New function.
641 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
642 vector elements and release it.
645 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
646 of palignr arguments can't be used due to min 0 or max - min
647 too high, try also op0, op1 order of palignr arguments.
649 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
651 * cgraph.h (ipa_polymorphic_call_context):
652 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
653 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
654 * ipa-polymorphic-call.c
655 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
656 past end of dynamic types.
657 (ipa_polymorphic_call_context::stream_out,
658 speculative_outer_type): Stream dynamic flag.
659 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
660 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
662 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
664 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
665 * ipa-prop.c (update_jump_functions_after_inlining,
666 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
668 2014-10-02 Teresa Johnson <tejohnson@google.com>
670 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
671 up when synthesizing counts to avoid rounding errors.
673 2014-10-02 Teresa Johnson <tejohnson@google.com>
676 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
677 asserts to handle incoming insanities.
679 2014-10-02 Martin Jambor <mjambor@suse.cz>
681 PR tree-optimization/63375
682 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
685 2014-10-02 Olivier Hainque <hainque@adacore.com>
687 * Makefile.in (CROSS): Define, to @CROSS.
689 2014-10-02 Jakub Jelinek <jakub@redhat.com>
692 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
693 if it expands to a single insn only.
694 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
695 fail unless in_order is true. Add forward declaration.
696 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
697 is useful for one_operand_p.
698 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
700 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
702 * cgraphclones.c (build_function_type_skip_args): Do not make new
705 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
707 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
708 when speculation is added.
709 (ipa_edge_args): Add polymorphic_call_contexts.
710 (ipa_get_ith_polymorhic_call_context): New accesor.
711 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
712 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
713 (ipa_compute_jump_functions_for_edge): Compute contexts.
714 (update_jump_functions_after_inlining): Update contexts.
715 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
716 update dumping; add speculative edge creation.
717 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
719 (update_indirect_edges_after_inlining): Pass down context.
720 (ipa_edge_duplication_hook): Duplicate contexts.
721 (ipa_write_node_info): Stream out contexts.
722 (ipa_read_node_info): Stream in contexts.
723 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
725 (try_speculative_devirtualization): New function.
726 * ipa-utils.h (try_speculative_devirtualization): Declare.
728 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
730 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
733 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
735 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
738 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
740 * ipa-polymorphic-call.c
741 (ipa_polymorphic_call_context::restrict_to_inner_class):
742 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
743 use speculation_consistent_p to do so; Add CONSDER_BASES
744 and CONSIDER_PLACEMENT_NEW parameters.
745 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
746 short circuit obvious cases.
747 (ipa_polymorphic_call_context::dump): Improve formatting.
748 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
749 combine_speculation_with to record speculations; Do not ICE when
750 object is located in pointer type decl; do not ICE for methods
751 of UNION_TYPE; do not record nonpolymorphic types.
752 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
753 (ipa_polymorphic_call_context::combine_speculation_with): New method.
754 (ipa_polymorphic_call_context::combine_with): New method.
755 (ipa_polymorphic_call_context::make_speculative): Move here; use
757 * cgraph.h (ipa_polymorphic_call_context): Update
758 restrict_to_inner_class prototype; add offset_by, make_speculative,
759 combine_with, useless_p, combine_speculation_with and
760 speculation_consistent_p methods.
761 (ipa_polymorphic_call_context::offset_by): New method.
762 (ipa_polymorphic_call_context::useless_p): New method.
764 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
766 PR rtl-optimization/62151
767 * combine.c (can_combine_p): Allow the destination register of INSN
768 to be clobbered in I3.
769 (subst): Do not substitute into clobbers of registers.
771 2014-10-01 Jakub Jelinek <jakub@redhat.com>
774 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
775 offset, TARGET_MEM_REF and SSA_NAME.
777 * config/i386/i386.c (expand_vec_perm_palignr): Handle
778 256-bit vectors for TARGET_AVX2.
780 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
784 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
785 argument to avx2_permv2ti.
787 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
789 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
791 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
793 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
794 (fmod<mode>3): Ditto.
795 (fpremxf4_i387): Ditto.
796 (reminderxf3): Ditto.
797 (reminder<mode>3): Ditto.
798 (fprem1xf4_i387): Ditto.
800 2014-09-30 Teresa Johnson <tejohnson@google.com>
802 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
803 duplicate_blocks bitmap.
804 (remove_ctrl_stmt_and_useless_edges): Ditto.
805 (create_block_for_threading): Ditto.
806 (compute_path_counts): New function.
807 (update_profile): Ditto.
808 (recompute_probabilities): Ditto.
809 (update_joiner_offpath_counts): Ditto.
810 (freqs_to_counts_path): Ditto.
811 (clear_counts_path): Ditto.
812 (ssa_fix_duplicate_block_edges): Update profile info.
813 (ssa_create_duplicates): Pass new parameter.
814 (ssa_redirect_edges): Remove old profile update.
815 (thread_block_1): New duplicate_blocks bitmap,
816 remove old profile update.
817 (thread_single_edge): Pass new parameter.
819 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
822 * varasm.c (decode_reg_name_and_count): Check availability for
823 registers from ADDITIONAL_REGISTER_NAMES.
825 2014-09-30 David Malcolm <dmalcolm@redhat.com>
828 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
829 (PLUGIN_HEADERS): Add pass-instances.def.
831 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
833 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
835 * config/aarch64/aarch64-simd.md
836 (aarch64_sqdmull_laneq<mode>): Expand iterator.
837 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
838 (vqdmulls_lane_s32): Fix return type.
839 (vqdmulls_laneq_s32): New.
841 2014-09-30 Jakub Jelinek <jakub@redhat.com>
844 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
845 or invert_jump_1 if jump isn't any_condjump_p.
847 2014-09-30 Terry Guo <terry.guo@arm.com>
849 * config/arm/arm-cores.def (cortex-m7): New core name.
850 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
852 * config/arm/arm-tables.opt: Regenerated.
853 * config/arm/arm-tune.md: Regenerated.
854 * config/arm/arm.h (TARGET_VFP5): New macro.
855 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
856 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
857 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
858 * doc/invoke.texi: Document new cpu and fpu names.
860 2014-09-30 Jiong Wang <jiong.wang@arm.com>
862 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
865 2014-09-30 David Sherwood <david.sherwood@arm.com>
867 * ira-int.h (ira_allocno): Add "wmode" field.
868 * ira-build.c (create_insn_allocnos): Add new "parent" function
870 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
871 that cannot be accessed in wmode.
873 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
875 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
878 2014-09-29 Andi Kleen <ak@linux.intel.com>
880 * opts.c (print_filtered_help): Print --param min/max/default
883 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
885 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
887 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
889 * tree-vrp.c (get_single_symbol): New function.
890 (build_symbolic_expr): Likewise.
891 (symbolic_range_based_on_p): New predicate.
892 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
893 for PLUS and MINUS. Do not drop symbolic ranges at the end.
894 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
895 operand is symbolic and based on the other operand.
897 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
899 * config/microblaze/microblaze.md (call_internal1): Use VOID
900 instead of SI to fix "((void (*)(void)) 0)()" issue
902 2014-09-29 Nick Clifton <nickc@redhat.com>
904 * config/msp430/msp430.c (msp430_expand_prologue): Return a
905 CLOBBER rtx for naked functions.
906 (msp430_expand_epilogue): Likewise.
907 (msp430_use_f5_series_hwmult): Cache result.
908 (use_32bit_hwmult): Cache result.
909 (msp430_no_hwmult): New function.
910 (msp430_output_labelref): Use it.
912 2014-09-29 Jakub Jelinek <jakub@redhat.com>
915 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
916 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
917 use the alignment of avar rather than ovar.
919 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
921 * config/pa/pa.c (pa_output_function_epilogue): Only update
922 last_address when a nonnote insn is found.
924 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
927 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
929 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
932 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
933 fix pasto in checking array size.
935 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
938 * passes.def (pass_tracer): Move before last dominator pass.
940 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
942 * gcc.c (try_generate_repro): Remove argument "prog". Change all
944 (run_attempt): Handle errors of "pex_run" invocation.
946 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
948 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
950 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
951 (TARGET_ASAN_SHADOW_OFFSET): Define.
953 2014-09-26 Martin Liska <mliska@suse.cz>
955 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
957 * cgraph.h: Likewise.
958 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
959 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
960 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
961 * tree-ssa-alias.h: Likewise.
963 2014-09-26 Jakub Jelinek <jakub@redhat.com>
964 Max Ostapenko <m.ostapenko@partner.samsung.com>
966 * common.opt: New option.
967 * doc/invoke.texi: Describe new option.
968 * gcc.c (execute): Don't free first string early, but at the end
969 of the function. Call retry_ice if compiler exited with
971 (main): Factor out common code.
972 (print_configuration): New function.
973 (files_equal_p): Likewise.
974 (check_repro): Likewise.
975 (run_attempt): Likewise.
976 (do_report_bug): Likewise.
977 (append_text): Likewise.
978 (try_generate_repro): Likewise
980 2014-09-25 Andi Kleen <ak@linux.intel.com>
982 * config/i386/i386.c (x86_print_call_or_nop): New function.
983 (x86_function_profiler): Support -mnop-mcount and
985 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
986 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
988 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
990 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
991 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
992 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
995 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
997 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
998 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
999 types_odr_comparable): Declare.
1000 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
1001 * ipa-polymorphic-call.c: New file.
1002 (contains_polymorphic_type_p, possible_placement_new,
1003 ipa_polymorphic_call_context::restrict_to_inner_class,
1004 contains_type_p, decl_maybe_in_construction_p,
1005 ipa_polymorphic_call_context::stream_out,
1006 ipa_polymorphic_call_context::debug,
1007 ipa_polymorphic_call_context::stream_in,
1008 ipa_polymorphic_call_context::set_by_decl,
1009 ipa_polymorphic_call_context::set_by_invariant,
1011 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1012 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1013 extr_type_from_vtbl_ptr_store, record_known_type
1014 check_stmt_for_type_change,
1015 ipa_polymorphic_call_context::get_dynamic_type): Move here from
1017 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
1018 and streamer-hooks.h
1019 (contains_polymorphic_type_p, possible_placement_new,
1020 ipa_polymorphic_call_context::restrict_to_inner_class,
1021 contains_type_p, decl_maybe_in_construction_p,
1022 ipa_polymorphic_call_context::stream_out,
1023 ipa_polymorphic_call_context::debug,
1024 ipa_polymorphic_call_context::stream_in,
1025 ipa_polymorphic_call_context::set_by_decl,
1026 ipa_polymorphic_call_context::set_by_invariant,
1028 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1029 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1030 extr_type_from_vtbl_ptr_store, record_known_type
1031 check_stmt_for_type_change,
1032 ipa_polymorphic_call_context::get_dynamic_type): Move to
1033 ipa-polymorphic-call.c
1034 (type_all_derivations_known_p, types_odr_comparable,
1035 types_must_be_same_for_odr): Export.
1036 (type_known_to_have_no_deriavations_p): New function.
1037 * Makefile.in: Add ipa-polymorphic-call.c
1039 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
1041 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
1043 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
1044 (possible_polymorphic_call_targets): Instead of computing both
1045 speculative and non-speculative answers, do just one at a time.
1046 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
1047 (dump_targets): Break out from ...
1048 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
1049 and non-speculative lists.
1050 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
1051 * ipa-utils.h (possible_polymorphic_call_targets): Update.
1053 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
1055 PR rtl-optimization/63348
1056 * emit-rtl.c (try_split): Do not emit extra barrier.
1058 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
1060 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
1061 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
1063 (aarch64_<sur>shll2_n<mode>): Likewise.
1064 (aarch64_<sur>shr_n<mode>): Likewise.
1065 (aarch64_<sur>sra_n<mode>: Likewise.
1066 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
1067 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
1068 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
1069 * config/aarch64/iterators.md (ve_mode): New.
1070 (offsetlr): Remap to infix text for use in new predicates.
1071 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
1072 (aarch64_simd_shift_imm_hi): Likewise.
1073 (aarch64_simd_shift_imm_si): Likewise.
1074 (aarch64_simd_shift_imm_di): Likewise.
1075 (aarch64_simd_shift_imm_offset_qi): Likewise.
1076 (aarch64_simd_shift_imm_offset_hi): Likewise.
1077 (aarch64_simd_shift_imm_offset_si): Likewise.
1078 (aarch64_simd_shift_imm_offset_di): Likewise.
1079 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
1080 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
1081 (aarch64_simd_shift_imm_bitsize_si): Likewise.
1082 (aarch64_simd_shift_imm_bitsize_di): Likewise.
1084 2014-09-25 Jiong Wang <jiong.wang@arm.com>
1086 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
1087 new created BB as the intersection of live-in from "old_dest" and
1090 2014-09-25 Felix Yang <felix.yang@huawei.com>
1092 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
1093 * genautomata.c (merge_states): Ditto.
1095 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
1098 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
1099 in instruction sequence.
1101 2014-09-25 Nick Clifton <nickc@redhat.com>
1104 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
1105 in instruction sequence.
1107 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1110 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
1111 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
1113 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
1114 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1115 Anna Tikhonova <anna.tikhonova@intel.com>
1116 Ilya Tocar <ilya.tocar@intel.com>
1117 Andrey Turetskiy <andrey.turetskiy@intel.com>
1118 Ilya Verbin <ilya.verbin@intel.com>
1119 Kirill Yukhin <kirill.yukhin@intel.com>
1120 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1122 * config/i386/sse.md
1123 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
1124 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
1125 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
1126 (define_expand "<avx512>_perm<mode>_mask"): ... this.
1127 Use VI8F_256_512 mode iterator.
1128 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
1129 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
1131 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
1132 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1133 Anna Tikhonova <anna.tikhonova@intel.com>
1134 Ilya Tocar <ilya.tocar@intel.com>
1135 Andrey Turetskiy <andrey.turetskiy@intel.com>
1136 Ilya Verbin <ilya.verbin@intel.com>
1137 Kirill Yukhin <kirill.yukhin@intel.com>
1138 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1140 * config/i386/sse.md
1141 (define_insn "avx_movshdup256<mask_name>"): Add masking.
1142 (define_insn "sse3_movshdup<mask_name>"): Ditto.
1143 (define_insn "avx_movsldup256<mask_name>"): Ditto.
1144 (define_insn "sse3_movsldup<mask_name>"): Ditto.
1145 (define_insn "vec_dupv2df<mask_name>"): Ditto.
1146 (define_insn "*vec_concatv2df"): Add EVEX version.
1148 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
1149 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1150 Anna Tikhonova <anna.tikhonova@intel.com>
1151 Ilya Tocar <ilya.tocar@intel.com>
1152 Andrey Turetskiy <andrey.turetskiy@intel.com>
1153 Ilya Verbin <ilya.verbin@intel.com>
1154 Kirill Yukhin <kirill.yukhin@intel.com>
1155 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1157 * config/i386/sse.md
1158 (define_insn "vec_set<mode>_0"): Add EVEX version.
1160 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
1161 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1162 Anna Tikhonova <anna.tikhonova@intel.com>
1163 Ilya Tocar <ilya.tocar@intel.com>
1164 Andrey Turetskiy <andrey.turetskiy@intel.com>
1165 Ilya Verbin <ilya.verbin@intel.com>
1166 Kirill Yukhin <kirill.yukhin@intel.com>
1167 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1169 * config/i386/sse.md
1171 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
1173 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
1174 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
1175 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
1176 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
1177 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
1178 (define_expand "sse2_cvtpd2ps_mask): New.
1179 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
1180 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
1182 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
1183 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1184 Anna Tikhonova <anna.tikhonova@intel.com>
1185 Ilya Tocar <ilya.tocar@intel.com>
1186 Andrey Turetskiy <andrey.turetskiy@intel.com>
1187 Ilya Verbin <ilya.verbin@intel.com>
1188 Kirill Yukhin <kirill.yukhin@intel.com>
1189 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1191 * config/i386/i386.c
1192 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
1193 (ufix_notruncv8dfv8si2_mask_round): ... this.
1194 * config/i386/sse.md
1195 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
1196 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
1197 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
1198 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
1199 (define_expand "sse2_cvtpd2dq"): Delete.
1200 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
1201 make 2nd operand const0 vector.
1202 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
1204 (define_mode_attr pd2udqsuff): New.
1206 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
1207 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
1208 (define_insn "*avx_cvttpd2dq256_2"): Delete.
1209 (define_expand "sse2_cvttpd2dq"): Ditto.
1210 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
1211 make 2nd operand const0 vector.
1213 2014-09-25 Jakub Jelinek <jakub@redhat.com>
1215 PR tree-optimization/63341
1216 * tree-vectorizer.h (vect_create_data_ref_ptr,
1217 vect_create_addr_base_for_vector_ref): Add another tree argument
1218 defaulting to NULL_TREE.
1219 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
1220 argument, pass it down to vect_create_addr_base_for_vector_ref.
1221 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
1222 add that to base_offset too if non-NULL.
1223 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
1224 for dr_explicit_realign_optimized set it to vector byte size
1225 - 1 instead of setting offset, pass byte_offset down to
1226 vect_create_data_ref_ptr.
1228 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
1230 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
1231 forgotten debug output; canonicalize querries more wtih LTO.
1233 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
1235 * cgraph.h (class ipa_polymorphic_call_context): Move here from
1236 ipa-utils.h; add stream_int and stream_out methods.
1237 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
1238 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
1239 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
1241 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1242 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1243 ipa_polymorphic_call_context::clear_speculation,
1244 ipa_polymorphic_call_context::clear_outer_type): Move here from
1246 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
1247 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1248 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1249 ipa_polymorphic_call_context::clear_speculation,
1250 ipa_polymorphic_call_context::clear_outer_type): Likewise.
1251 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
1253 (ipa_polymorphic_call_context::stream_out): New method.
1254 (ipa_polymorphic_call_context::stream_in): New method.
1255 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
1256 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
1258 (ipa_analyze_call_uses): Simplify.
1259 (update_indirect_edges_after_inlining): Do not care about outer_type.
1260 (ipa_write_indirect_edge_info): Update.
1261 (ipa_write_indirect_edge_info): Likewise.
1262 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
1263 (dump_edge_flags): Break out from ...
1264 (cgraph_node::dump): ... here; dump indirect edges.
1266 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
1268 * ipa-utils.h (polymorphic_call_context): Add
1269 metdhos dump, debug and clear_outer_type.
1270 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1271 (ipa_polymorphic_call_context::clear_outer_type): New method.
1272 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
1273 * ipa-devirt.c (types_odr_comparable): New function.
1274 (types_must_be_same_for_odr): New function.
1275 (odr_subtypes_equivalent_p): Simplify.
1276 (possible_placement_new): Break out from ...
1277 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
1278 be more cuatious about returning false in cases the context may be
1279 valid in derived type or via placement new.
1280 (contains_type_p): Clear maybe_derived_type
1281 (ipa_polymorphic_call_context::dump): New method.
1282 (ipa_polymorphic_call_context::debug): New method.
1283 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
1284 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
1285 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1286 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
1287 to suceed on all valid cases; remove confused sanity check.
1288 (dump_possible_polymorphic_call_targets): Simplify.
1290 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
1292 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
1293 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
1294 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
1295 varpool.c: Rename all instances of DECL_ABSTRACT to
1298 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1300 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
1301 special handling for stores whose SET_SRC is an UNSPEC (such as
1304 2014-09-24 Jiong Wang <jiong.wang@arm.com>
1306 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
1307 !REG_P (src) to release more instruction sink opportunities.
1309 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
1311 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
1312 move costs for 128-bit types.
1314 2014-09-24 Martin Jambor <mjambor@suse.cz>
1316 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
1317 when duplicating a PASS_THROUGH jump function when creating a
1320 2014-09-24 Marek Polacek <polacek@redhat.com>
1324 * asan.c (maybe_instrument_call): Add default case.
1325 * ipa-pure-const.c (special_builtin_state): Likewise.
1326 * predict.c (expr_expected_value_1): Likewise.
1327 * lto-streamer-out.c (write_symbol): Initialize variable.
1329 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1331 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
1333 (vmuld_laneq_f64): Likewise.
1334 (vmuls_lane_f32): Likewise.
1335 (vmuls_laneq_f32): Likewise.
1337 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
1340 * varpool.c (varpool_node::add): Pass decl attributes
1341 to lookup_attribute.
1343 2014-09-24 Jakub Jelinek <jakub@redhat.com>
1346 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
1348 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
1350 PR tree-optimization/63266
1351 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
1352 marker for unknown byte value.
1353 (MARKER_MASK): New macro.
1354 (MARKER_BYTE_UNKNOWN): New macro.
1355 (HEAD_MARKER): New macro.
1356 (do_shift_rotate): Mark bytes with unknown values due to sign
1357 extension when doing an arithmetic right shift. Replace hardcoded
1358 mask for marker by new MARKER_MASK macro.
1359 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
1360 numbers accordingly.
1362 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1363 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1364 Anna Tikhonova <anna.tikhonova@intel.com>
1365 Ilya Tocar <ilya.tocar@intel.com>
1366 Andrey Turetskiy <andrey.turetskiy@intel.com>
1367 Ilya Verbin <ilya.verbin@intel.com>
1368 Kirill Yukhin <kirill.yukhin@intel.com>
1369 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1371 * config/i386/sse.md
1373 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
1375 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
1376 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
1378 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1379 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1380 Anna Tikhonova <anna.tikhonova@intel.com>
1381 Ilya Tocar <ilya.tocar@intel.com>
1382 Andrey Turetskiy <andrey.turetskiy@intel.com>
1383 Ilya Verbin <ilya.verbin@intel.com>
1384 Kirill Yukhin <kirill.yukhin@intel.com>
1385 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1387 * config/i386/sse.md
1388 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
1389 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
1390 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
1391 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
1392 (define_expand "avx512vl_pshuflw_mask"): New.
1393 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
1394 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
1395 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
1396 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
1397 (define_expand "avx512vl_pshufhw_mask"): New.
1398 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
1400 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1401 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1402 Anna Tikhonova <anna.tikhonova@intel.com>
1403 Ilya Tocar <ilya.tocar@intel.com>
1404 Andrey Turetskiy <andrey.turetskiy@intel.com>
1405 Ilya Verbin <ilya.verbin@intel.com>
1406 Kirill Yukhin <kirill.yukhin@intel.com>
1407 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1409 * config/i386/i386.c
1410 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
1411 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
1412 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
1413 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
1414 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
1415 * config/i386/sse.md
1416 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
1418 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
1419 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
1421 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
1422 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
1423 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
1424 (define_expand "avx512vl_pshufd_mask"): New.
1425 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
1427 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1428 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1429 Anna Tikhonova <anna.tikhonova@intel.com>
1430 Ilya Tocar <ilya.tocar@intel.com>
1431 Andrey Turetskiy <andrey.turetskiy@intel.com>
1432 Ilya Verbin <ilya.verbin@intel.com>
1433 Kirill Yukhin <kirill.yukhin@intel.com>
1434 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1436 * config/i386/i386.c
1437 (CODE_FOR_avx2_extracti128): Rename to ...
1438 (CODE_FOR_avx_vextractf128v4di): this.
1439 (CODE_FOR_avx2_inserti128): Rename to ...
1440 (CODE_FOR_avx_vinsertf128v4di): this.
1441 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
1442 CODE_FOR_avx_vextractf128v4di.
1443 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
1444 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
1445 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
1446 CODE_FOR_avx512vl_vinsertv8si.
1447 * config/i386/sse.md
1449 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
1450 AVX512_VEC mode iterator.
1452 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
1455 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
1456 AVX512_VEC_2 mode iterator.
1457 (define_insn "vec_set_lo_<mode><mask_name>"): New.
1458 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1459 (define_expand "avx512vl_vinsert<mode>"): Ditto.
1460 (define_insn "avx2_vec_set_lo_v4di"): Delete.
1461 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
1462 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
1463 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1464 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
1465 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1466 (define_expand "avx2_extracti128"): Delete.
1467 (define_expand "avx2_inserti128"): Ditto.
1469 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1470 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1471 Anna Tikhonova <anna.tikhonova@intel.com>
1472 Ilya Tocar <ilya.tocar@intel.com>
1473 Andrey Turetskiy <andrey.turetskiy@intel.com>
1474 Ilya Verbin <ilya.verbin@intel.com>
1475 Kirill Yukhin <kirill.yukhin@intel.com>
1476 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1478 * config/i386/sse.md
1479 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
1480 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
1481 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
1482 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
1483 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
1484 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
1485 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
1486 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
1487 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
1488 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
1489 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
1490 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
1491 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
1493 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
1495 PR rtl-optimization/63210
1496 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
1497 HARD_REGNO is not available for CONFLICT_A.
1499 2014-09-23 Andi Kleen <ak@linux.intel.com>
1501 * cgraph.h (symtab_node): Add no_reorder attribute.
1502 (symbol_table::output_asm_statements): Remove.
1503 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
1504 (cgraph_node::create_version_clone): Dito.
1505 (symbol_table::output_asm_statements): Remove.
1506 * trans-mem.c (ipa_tm_create_version_alias): Dito.
1507 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
1508 (output_in_order): Add no_reorder flag. Only handle no_reorder
1510 (symbol_table::compile): Add separate pass for no_reorder nodes.
1511 (process_common_attributes): Set no_reorder flag in symtab node.
1513 (process_function_and_variable_attributes): Pass symtab nodes to
1514 process_common_attributes.
1515 * doc/extend.texi (no_reorder): Document no_reorder attribute.
1516 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
1517 (lto_output_varpool_node): Dito.
1518 (input_overwrite_node): Dito.
1519 (input_varpool_node): Dito.
1520 * varpool.c (varpool_node::add): Set no_reorder attribute.
1521 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
1522 (symbol_table::output_variables): Dito.
1523 * symtab.c (symtab_node::dump_base): Print no_reorder.
1525 2014-09-23 Jiong Wang <jiong.wang@arm.com>
1527 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
1530 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
1532 * configure: Regenerate.
1534 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
1536 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
1537 when result_mode == shift_mode.
1539 2014-09-23 Kostya Serebryany <kcc@google.com>
1541 Update to match the changed asan API.
1542 * asan.c (asan_global_struct): Update the __asan_global definition
1543 to match the new API.
1544 (asan_add_global): Ditto.
1545 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
1548 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1550 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
1551 refine the constraints used on 32/64-bit floating point moves.
1553 (f64_vsx): Likewise.
1556 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
1557 (BOOL_REGS_OP1): Likewise.
1558 (BOOL_REGS_OP2): Likewise.
1559 (BOOL_REGS_UNARY): Likewise.
1560 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
1561 32/64-bit floating point moves. Do not use wa, instead use ww/ws
1562 for moves involving VSX registers. Do not use constraints that
1563 target VSX registers for decimal types.
1564 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
1565 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
1567 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
1569 * tree.h (int_bit_position): Turn into inline function;
1570 implement using wide int.
1571 * tree.c (int_bit_position): Remove.
1573 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
1576 * target-globals.c (target_globals::~target_globals): Fix location
1577 of ira_int destruction.
1579 2014-09-23 Renlin Li <renlin.li@arm.com>
1581 * config/aarch64/aarch64.md (return): New.
1582 (simple_return): Likewise.
1583 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
1584 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
1586 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
1588 * common/config/aarch64/aarch64-common.c:
1589 (default_options aarch_option_optimization_table):
1590 Default to -fsched-pressure.
1592 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
1594 * cfgcleanup.c (try_optimize_cfg): Do not remove label
1595 with LABEL_PRESERVE_P flag set.
1597 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1598 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1599 Anna Tikhonova <anna.tikhonova@intel.com>
1600 Ilya Tocar <ilya.tocar@intel.com>
1601 Andrey Turetskiy <andrey.turetskiy@intel.com>
1602 Ilya Verbin <ilya.verbin@intel.com>
1603 Kirill Yukhin <kirill.yukhin@intel.com>
1604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1606 * config/i386/sse.md
1607 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
1608 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
1609 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
1610 (define_insn "sse2_shufpd_v2df_mask"): New.
1612 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1613 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1614 Anna Tikhonova <anna.tikhonova@intel.com>
1615 Ilya Tocar <ilya.tocar@intel.com>
1616 Andrey Turetskiy <andrey.turetskiy@intel.com>
1617 Ilya Verbin <ilya.verbin@intel.com>
1618 Kirill Yukhin <kirill.yukhin@intel.com>
1619 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1621 * config/i386/sse.md
1622 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
1623 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
1624 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
1625 (define_insn "sse_shufps_v4sf_mask"): New.
1627 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1628 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1629 Anna Tikhonova <anna.tikhonova@intel.com>
1630 Ilya Tocar <ilya.tocar@intel.com>
1631 Andrey Turetskiy <andrey.turetskiy@intel.com>
1632 Ilya Verbin <ilya.verbin@intel.com>
1633 Kirill Yukhin <kirill.yukhin@intel.com>
1634 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1636 * config/i386/sse.md
1637 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
1638 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
1639 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
1640 (define_insn "unpcklps128_mask"): New.
1642 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1643 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1644 Anna Tikhonova <anna.tikhonova@intel.com>
1645 Ilya Tocar <ilya.tocar@intel.com>
1646 Andrey Turetskiy <andrey.turetskiy@intel.com>
1647 Ilya Verbin <ilya.verbin@intel.com>
1648 Kirill Yukhin <kirill.yukhin@intel.com>
1649 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1651 * config/i386/sse.md
1652 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
1653 (define_insn "avx512vl_unpckhpd128_mask"): New.
1654 (define_expand "avx_movddup256<mask_name>"): Add masking.
1655 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
1656 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
1657 (define_insn "avx512vl_unpcklpd128_mask"): New.
1659 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1661 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1662 * doc/tm.texi: Regenerate.
1663 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
1664 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1665 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1667 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1668 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1669 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1670 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1671 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1673 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1674 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1675 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1676 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1677 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1678 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1679 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1680 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1681 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1682 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1683 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1686 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
1688 * tree-ssa-ccp.c (prop_value_d): Rename to ...
1689 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
1690 * ipa-prop.c (struct type_change_info): Rename to ...
1691 (prop_type_change_info): ... this; update uses.
1692 * ggc-page.c (globals): Rename to ...
1693 (static struct ggc_globals): ... this; update uses.
1694 * tree-ssa-loop-im.c (mem_ref): Rename to ...
1695 (im_mem_ref): ... this; update uses.
1696 * ggc-common.c (loc_descriptor): Rename to ...
1697 (ggc_loc_descriptor): ... this; update uses.
1698 * lra-eliminations.c (elim_table): Rename to ...
1699 (lra_elim_table): ... this; update uses.
1700 * bitmap.c (output_info): Rename to ...
1701 (bitmap_output_info): ... this; update uses.
1702 * gcse.c (expr): Rename to ...
1703 (gcse_expr) ... this; update uses.
1704 (occr): Rename to ...
1705 (gcse_occr): .. this; update uses.
1706 * tree-ssa-copy.c (prop_value_d): Rename to ...
1707 (prop_value_t): ... this.
1708 * predict.c (block_info_def): Rename to ...
1709 (block_info): ... this; update uses.
1710 (edge_info_def): Rename to ...
1711 (edge_info): ... this; update uses.
1712 * profile.c (bb_info): Rename to ...
1713 (bb_profile_info): ... this; update uses.
1714 * alloc-pool.c (output_info): Rename to ...
1715 (pool_output_info): ... this; update uses.
1716 * ipa-cp.c (topo_info): Rename to ..
1717 (ipa_topo_info): ... this; update uses.
1718 * tree-nrv.c (nrv_data): Rename to ...
1719 (nrv_data_t): ... this; update uses.
1720 * ipa-split.c (bb_info): Rename to ...
1721 (split_bb_info): ... this one.
1722 * profile.h (edge_info): Rename to ...
1723 (edge_profile_info): ... this one; update uses.
1724 * dse.c (bb_info): Rename to ...
1725 (dse_bb_info): ... this one; update uses.
1726 * cprop.c (occr): Rename to ...
1727 (cprop_occr): ... this one; update uses.
1728 (expr): Rename to ...
1729 (cprop_expr): ... this one; update uses.
1731 2014-09-22 Jason Merrill <jason@redhat.com>
1733 * Makefile.in (check-parallel-%): Add @.
1735 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
1737 * config/aarch64/geniterators.sh: New.
1738 * config/aarch64/iterators.md (VDQF_DF): New.
1739 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
1740 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
1742 2014-09-22 Peter A. Bigot <pab@pabigot.com>
1744 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
1745 -lnosys when -msim absent.
1747 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
1749 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1751 2014-09-22 Richard Biener <rguenther@suse.de>
1753 * gimplify.c (gimplify_init_constructor): Do not leave
1754 non-GIMPLE vector constructors around.
1755 * tree-cfg.c (verify_gimple_assign_single): Verify that
1756 CONSTRUCTORs have gimple elements.
1758 2014-09-22 Jakub Jelinek <jakub@redhat.com>
1761 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
1762 insert a debug source bind stmt setting DEBUG_EXPR_DECL
1763 instead of a normal gimple assignment stmt.
1765 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
1767 * config/bfin/bfin.md: Fix use of constraints in define_split.
1769 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1771 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
1772 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
1774 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1776 * hard-reg-set.h: Include hash-table.h.
1777 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
1779 * target-globals.c (target_globals::~target_globals): Call
1780 hard_regs->finalize.
1781 * rtl.h (subreg_shape): New structure.
1782 (shape_of_subreg): New function.
1783 (simplifiable_subregs): Declare.
1784 * reginfo.c (simplifiable_subreg): New structure.
1785 (simplifiable_subregs_hasher): Likewise.
1786 (simplifiable_subregs): New function.
1787 (invalid_mode_changes): Delete.
1788 (alid_mode_changes, valid_mode_changes_obstack): New variables.
1789 (record_subregs_of_mode): Remove subregs_of_mode parameter.
1790 Record valid mode changes in valid_mode_changes.
1791 (find_subregs_of_mode): Remove subregs_of_mode parameter.
1792 Update calls to record_subregs_of_mode.
1793 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
1794 handling. Initialize new variables. Update call to
1795 find_subregs_of_mode.
1796 (invalid_mode_change_p): Check new variables instead of
1797 invalid_mode_changes.
1798 (finish_subregs_of_mode): Finalize new variables instead of
1799 invalid_mode_changes.
1800 (target_hard_regs::finalize): New function.
1801 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
1802 even when CLASS_CANNOT_CHANGE_MODE is undefined.
1804 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1806 * combine.c (subst): Use simplify_subreg_regno rather than
1807 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
1809 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1811 * rtl.h (subreg_info): Expand commentary
1812 * rtlanal.c (subreg_get_info): Likewise.
1814 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1816 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1817 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1818 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
1820 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
1822 * config/arm/arm.c: #include "tm-constrs.h"
1823 (thumb1_size_rtx_costs): Adjust rtx costs.
1825 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
1827 * configure.ac (target_header_dir): Move block defining
1828 this to before the block setting inhibit_libc.
1829 (inhibit_libc): When considering $with_headers, just
1830 check it it's explicitly "no". If not, also check if
1831 $target_header_dir/stdio.h is present. If not, set
1833 * configure: Regenerate.
1835 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
1837 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
1839 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1841 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
1842 insn for divides by integer powers of two.
1843 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
1844 (mod<mode>3): Fix formatting.
1845 (three anonymous define_insn and two define_split): Delete.
1847 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1849 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
1850 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
1851 (floatdisf2_internal2): Ditto.
1852 (ashrdi3_no_power): Ditto. Fix formatting.
1854 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1856 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1857 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
1860 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1862 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
1863 constant, use addsi3 directly.
1864 (three anonymous define_insn, two define_split): Delete.
1865 (sub<mode>3): Move. Do not allow constant second operand.
1866 Generate different insn for constant first operand.
1867 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
1868 (subf<mode>3_imm): New.
1869 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
1870 (*plus_ltu<mode>): Only handle registers.
1871 (*plus_ltu<mode>_1): New. Handle integer third operand.
1872 (*plus_gtu<mode>): Only handle registers.
1873 (*plus_gtu<mode>_1): New. Handle integer third operand.
1875 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1877 * config/rs6000/rs6000.md (iorxor): New code_iterator.
1878 (iorxor): New code_attr.
1879 (IORXOR): New code_attr.
1880 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
1881 (ior<mode>3, xor<mode>3): Delete.
1882 (<iorxor><mode>3): New.
1883 (splitter for "big" integer ior, xor): New.
1884 (*bool<mode>3): Move. Also handle AND.
1885 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
1886 (splitter for "big" integer ior, xor): Delete.
1888 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1890 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
1891 (two anonymous define_insn and two define_split): Delete.
1892 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
1894 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1896 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
1897 (two anonymous define_insn and two define_split): Delete.
1898 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
1900 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1902 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
1904 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1906 * config/rs6000/predicates.md (ca_operand): Allow subregs.
1907 (input_operand): Do not allow ca_operand.
1908 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
1909 carry bit, allow SImode and Pmode.
1910 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
1912 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
1914 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
1915 clobbered registers using clobber_reg. Remove UNSPEC decoration.
1916 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
1917 (*call_rex64_ms_sysv): Remove.
1918 (*call_value_rex64_ms_sysv): Ditto.
1919 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1921 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
1923 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1926 2014-09-20 Andreas Schwab <schwab@suse.de>
1928 * config/ia64/ia64.md: Remove constraints from define_split
1931 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1933 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1934 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1935 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1936 (get_dynamic_type): Remove.
1937 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1938 (clear_speculation): Bring to ipa-deivrt.h
1939 (get_class_context): Rename to ...
1940 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1941 (contains_type_p): Update.
1942 (get_dynamic_type): Rename to ...
1943 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1944 (possible_polymorphic_call_targets): UPdate.
1945 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1946 * ipa-prop.c (ipa_analyze_call_uses): Update.
1948 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1950 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1951 privatize dynamic TLS variables.
1953 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1955 * diagnostic.c (warning_n): New function.
1956 * diagnostic-core.h (warning_n): Declare.
1957 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1958 output dynamic counts when available.
1960 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1962 PR tree-optimization/63255
1963 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1964 issue in setting body_removed flag.
1966 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1969 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1970 that visibility change is possible
1971 (handle_weakref_attribute): Likewise.
1972 * cgraph.h (symtab_node): Add method get_create and
1973 field refuse_visibility_changes.
1974 (symtab_node::get_create): New method.
1975 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1976 * varasm.c (mark_weak): Verify that visibility change is
1979 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
1981 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1982 for base_reg_operand to be common between LO_SUM and PLUS.
1983 (fusion_gpr_mem_combo): New predicate to match a fused address
1984 that combines the addis and memory offset address.
1986 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1988 (emit_fusion_gpr_load): Likewise.
1990 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1991 signature to pass each argument separately, rather than
1992 using an operands array. Rewrite the insns found by peephole2 to
1993 be a single insn, rather than hoping the insns will still be
1994 together when the peephole pass is done. Drop being called via a
1996 (emit_fusion_gpr_load): Change calling signature to be called from
1997 the fusion_gpr_load_<mode> insns with a combined memory address
1998 instead of the peephole pass passing the addis and offset
2001 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
2003 (power8 fusion peephole): Drop support for doing power8 via a
2004 normal peephole that was created by the peephole2 pass.
2005 (power8 fusion peephole2): Create a new insn with the fused
2006 address, so that the fused operation is kept together after
2007 register allocation is done.
2008 (fusion_gpr_load_<mode>): Likewise.
2010 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
2013 * tree.c (need_assembler_name_p): Do not mangle variadic types.
2015 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
2017 * recog.c (scratch_operand): Do not simply allow all hard registers:
2018 only allow those that are allocatable.
2020 2014-09-19 Felix Yang <felix.yang@huawei.com>
2022 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
2023 comments and fix spacing to conform to coding style.
2025 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
2027 * genrecog.c (validate_pattern): Allow empty constraints in
2030 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
2032 * dwarf2out.c (decl_ultimate_origin): Update comment.
2033 * tree.c (block_ultimate_origin): Same.
2035 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2037 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2038 Update GCC version name to GCC 5.
2039 (rs6000_function_arg_boundary): Likewise.
2040 (rs6000_function_arg): Likewise.
2042 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
2044 * config/sh/sh.md: Fix use of constraints in define_split.
2046 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
2049 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
2051 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
2053 * doc/md.texi (Modifiers): Consistently use "read/write"
2054 nomenclature rather than "input/output".
2055 * genrecog.c (constraints_supported_in_insn_p): New.
2056 (validate_pattern): If needed, also check constraints on
2057 MATCH_SCRATCH operands.
2058 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
2059 operands with no '=' or '+' modifier.
2061 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
2063 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
2064 scratch register as written.
2066 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2068 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
2071 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2073 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
2076 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2079 * config/s390/s390.c (s390_emit_epilogue): When doing the return
2080 address load optimization force s390_optimize_prologue to leave it
2081 that way. Only do the optimization if we already decided to push
2082 r14 into a stack slot.
2084 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
2086 * asan.c (build_check_stmt): Alignment arg was added.
2087 (asan_expand_check_ifn): Optimization for alignment >= 8.
2089 2014-09-19 Olivier Hainque <hainque@adacore.com>
2091 * config/i386/vxworksae.h: Remove obsolete definitions.
2092 (STACK_CHECK_PROTECT): Define.
2093 * config/i386/vx-common.h: Remove. Merge contents within
2094 config/i386/vxworks.h.
2095 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
2098 2014-09-19 Olivier Hainque <hainque@adacore.com>
2100 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
2101 * config/rs6000/t-vxworksmils: New file.
2102 * config/rs6000/vxworksmils.h: New file.
2104 2014-09-19 Olivier Hainque <hainque@adacore.com>
2106 * varasm.c (default_section_type_flags): Flag .persistent.bss
2107 sections as SECTION_BSS.
2109 2014-09-19 Nick Clifton <nickc@redhat.com>
2111 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
2112 pop'ed registers so that DCE does not eliminate them.
2114 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
2117 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
2119 2014-09-18 Joseph Myers <joseph@codesourcery.com>
2121 * system.h (LIBGCC2_TF_CEXT): Poison.
2122 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
2123 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
2124 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
2125 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
2126 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
2127 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
2128 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
2129 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
2130 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
2132 2014-09-19 Kito Cheng <kito@0xlab.org>
2134 * except.h: Fix header guard.
2135 * addresses.h: Add missing header guard.
2136 * cfghooks.h: Likewise.
2137 * collect-utils.h: Likewise.
2138 * collect2-aix.h: Likewise.
2139 * conditions.h: Likewise.
2140 * cselib.h: Likewise.
2141 * dwarf2asm.h: Likewise.
2142 * graphds.h: Likewise.
2143 * graphite-scop-detection.h: Likewise.
2144 * gsyms.h: Likewise.
2145 * hw-doloop.h: Likewise.
2146 * incpath.h: Likewise.
2147 * ipa-inline.h: Likewise.
2148 * ipa-ref.h: Likewise.
2149 * ira-int.h: Likewise.
2151 * lra-int.h: Likewise.
2153 * lto-section-names.h: Likewise.
2154 * read-md.h: Likewise.
2155 * reload.h: Likewise.
2156 * rtl-error.h: Likewise.
2157 * sdbout.h: Likewise.
2158 * targhooks.h: Likewise.
2159 * tree-affine.h: Likewise.
2160 * xcoff.h: Likewise.
2161 * xcoffout.h: Likewise.
2163 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
2166 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
2169 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
2172 * lra.c (lra): Call recog_init.
2174 2014-09-18 Jakub Jelinek <jakub@redhat.com>
2177 * asan.c (transform_statements): Don't instrument clobber statements.
2179 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2181 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
2182 to neon_load1_1reg<q>.
2184 2014-09-17 Jakub Jelinek <jakub@redhat.com>
2187 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
2188 if there are only debug stmts after the noreturn call, instead
2189 remove the debug stmts.
2191 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
2193 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
2194 (odr_types_equivalent_p): Use pair hash.
2195 (odr_subtypes_equivalent_p): Likewise, do structural compare
2196 on ODR types that may be mismatched.
2197 (warn_odr): Support warning when only one field is given.
2198 (odr_types_equivalent_p): Strenghten comparsions made;
2200 (add_type_duplicate): Update VISITED hash set.
2202 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
2204 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
2205 Enable selection of 'posix' or no thread model.
2207 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
2209 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
2210 when architecture is older than ARMv7.
2212 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
2215 * config/pa/pa.c (pa_function_value): Directly handle aggregates
2216 that fit exactly in a word or double word.
2218 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
2220 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
2223 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
2224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2225 Anna Tikhonova <anna.tikhonova@intel.com>
2226 Ilya Tocar <ilya.tocar@intel.com>
2227 Andrey Turetskiy <andrey.turetskiy@intel.com>
2228 Ilya Verbin <ilya.verbin@intel.com>
2229 Kirill Yukhin <kirill.yukhin@intel.com>
2230 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2232 * config/i386/i386.c
2233 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
2234 * config/i386/sse.md
2235 (define_mode_iterator VI48F_256): New.
2236 (define_mode_attr extract_type): Ditto.
2237 (define_mode_attr extract_suf): Ditto.
2238 (define_mode_iterator AVX512_VEC): Ditto.
2240 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
2242 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
2244 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
2246 (define_mode_attr extract_type_2): Ditto.
2247 (define_mode_attr extract_suf_2): Ditto.
2248 (define_mode_iterator AVX512_VEC_2): Ditto.
2250 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
2251 AVX512_VEC_2 mode iterator.
2252 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
2253 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
2254 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2255 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2256 (define_split for V16FI mode): Ditto.
2257 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2258 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2259 (define_split for VI8F_256 mode): Ditto.
2260 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
2261 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2262 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2263 (define_split for VI4F_256 mode): Ditto.
2264 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
2265 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
2266 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
2267 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
2268 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
2269 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
2270 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
2271 Update `type' attribute, remove explicit `memory' attribute calculation.
2273 2014-09-16 Kito Cheng <kito@0xlab.org>
2275 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
2276 ira_spilled_reg_stack_slots_num if using lra.
2277 (do_reload): Remove release ira_spilled_reg_stack_slots part.
2278 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
2279 make sure not using lra.
2280 (ira_reuse_stack_slot): Likewise.
2281 (ira_mark_new_stack_slot): Likewise.
2283 2014-09-15 Andi Kleen <ak@linux.intel.com>
2285 * function.c (allocate_struct_function): Force
2286 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
2287 profiling is disabled.
2289 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
2291 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
2292 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
2293 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
2294 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
2295 macro with statically checked member functions.
2296 * rtl.h (rtx_insn::deleted): New method.
2297 (rtx_insn::set_deleted): Likewise.
2298 (rtx_insn::set_undeleted): Likewise.
2299 (INSN_DELETED_P): Remove.
2301 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
2303 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
2304 result of emit_jump_insn_before to a new variable.
2305 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
2306 (mark_jump_label_1): Likewise.
2307 (mark_jump_label_asm): Likewise.
2308 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
2309 * rtl.h (mark_jump_label): Adjust.
2311 2014-09-15 Jakub Jelinek <jakub@redhat.com>
2313 * Makefile.in (dg_target_exps): Remove.
2314 (check_gcc_parallelize): Change to just an upper bound number.
2315 (check-%-subtargets): Always print the non-parallelized goals.
2316 (check_p_vars, check_p_comma, check_p_subwork): Remove.
2317 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
2318 check_p_numbers3, check_p_numbers4, check_p_numbers5,
2319 check_p_numbers6): New variables.
2320 (check_p_numbers): Set to sequence from 1 to 9999.
2321 (check_p_subdirs): Set to sequence from 1 to minimum of
2322 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
2324 (check-%, check-parallel-%): Rewritten so that for parallelized
2325 testing each job runs all the *.exp files, with
2326 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
2328 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2330 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
2332 (arc_sets_cc_p): Likewise.
2333 * config/arc/arc.c (arc_print_operand): Use methods of
2334 "final_sequence" for clarity, and to enable strengthening of
2335 locals "jump" and "delay" from rtx to rtx_insn *.
2336 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
2337 rtx_insn *; use method of rtx_sequence for typesafety.
2338 (arc_get_insn_variants): Use insn method of rtx_sequence for
2340 (arc_pad_return): Likewise.
2341 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
2342 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
2343 dyn_cast to rtx_sequence *, using insn method for typesafety.
2344 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
2345 rtx_sequence * and use insn method when invoking get_attr_length.
2346 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
2347 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
2348 rtx_sequence *, introducing a local "seq", using its insn method
2349 from typesafety and clarity.
2350 (add_sched_insns_for_speculation): Strengthen local "next" from
2352 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
2353 (predicate_insn): Likewise.
2354 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
2356 * config/cris/cris.c (cris_notice_update_cc): Likewise.
2357 * config/epiphany/epiphany-protos.h
2358 (extern void epiphany_insert_mode_switch_use): Likewise for param
2360 (get_attr_sched_use_fpu): Likewise for param.
2361 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
2362 Likewise for param "insn".
2363 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
2364 param "insn" of "target_insert_mode_switch_use" callback.
2365 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
2366 (frv_issues_to_branch_unit_p): Likewise.
2367 (frv_pack_insn_p): Likewise.
2368 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
2369 const rtx * (i.e. mutable rtx_def * const *) to
2371 * config/i386/i386-protos.h (standard_sse_constant_opcode):
2372 Strengthen first param from rtx to rtx_insn *.
2373 (output_fix_trunc): Likewise.
2374 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
2375 (output_fix_trunc): Likewise.
2376 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
2378 (min_insn_size): Likewise for param "insn".
2379 (get_mem_group): Likewise.
2381 (get_insn_path): Likewise.
2382 (get_insn_group): Likewise.
2383 (count_num_restricted): Likewise.
2384 (fits_dispatch_window): Likewise.
2385 (add_insn_window): Likewise.
2386 (add_to_dispatch_window): Likewise.
2387 (debug_insn_dispatch_info_file): Likewise.
2388 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
2390 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
2391 "cmp" and local "prev".
2392 (m32c_output_compare): Likewise for param "insn".
2393 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
2394 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
2395 (define_predicate "large_insn_p"): Likewise.
2396 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
2397 param from rtx to rtx_insn *.
2398 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
2399 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
2400 (m68k_sched_attr_size): Likewise.
2401 (sched_get_opxy_mem_type): Likewise for param "insn".
2402 (m68k_sched_attr_op_mem): Likewise.
2403 (sched_mem_operand_p): Likewise.
2404 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
2405 * config/mep/mep.c (mep_multi_slot): Likewise.
2406 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
2408 (mips_sync_loop_insns): Likewise.
2409 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
2410 method of "final_sequence" for typesafety.
2411 (mips_process_sync_loop): Strengthen param "insn" from rtx to
2413 (mips_output_sync_loop): Likewise.
2414 (mips_sync_loop_insns): Likewise.
2415 (mips_74k_agen_init): Likewise.
2416 (mips_sched_init): Use NULL rather than NULL_RTX when working with
2418 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
2419 Strengthen param "insn" from rtx to rtx_insn *.
2420 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
2422 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
2424 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
2425 "insn". Use method of rtx_sequence for typesafety.
2426 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
2428 (branch_needs_nop_p): Likewise.
2429 (use_skip_p): Likewise.
2430 (pa_insn_refs_are_delayed): Likewise.
2431 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
2432 for locals "insn", "ninsn".
2433 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
2435 (is_cracked_insn): Likewise.
2436 (is_branch_slot_insn): Likewise.
2437 (is_nonpipeline_insn): Likewise.
2438 (insn_terminates_group_p): Likewise.
2439 (insn_must_be_first_in_group): Likewise.
2440 (insn_must_be_last_in_group): Likewise.
2441 (force_new_group): Likewise for param "next_insn".
2442 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
2444 (s390_sched_score): Likewise.
2445 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
2446 (rtx sfunc_uses_reg): Likewise for sole param.
2447 * config/sh/sh.c (sh_print_operand): Use insn method of
2448 final_sequence for typesafety.
2449 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
2450 Use insn method of final_sequence for typesafety.
2451 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
2452 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
2454 (eligible_for_return_delay): Likewise.
2455 (eligible_for_sibcall_delay): Likewise.
2456 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
2457 (eligible_for_return_delay): Likewise.
2458 (eligible_for_sibcall_delay): Likewise.
2459 * config/stormy16/stormy16-protos.h
2460 (xstormy16_output_cbranch_hi): Likewise for final param.
2461 (xstormy16_output_cbranch_si): Likewise.
2462 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
2463 (xstormy16_output_cbranch_si): Likewise.
2464 * config/v850/v850-protos.h (notice_update_cc): Likewise.
2465 * config/v850/v850.c (notice_update_cc): Likewise.
2467 * final.c (get_attr_length_1): Strengthen param "insn" and param
2468 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
2469 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
2470 (get_attr_min_length): Likewise.
2471 (shorten_branches): Likewise for signature of locals "length_fun"
2472 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
2473 from a checked cast and use its methods for clarity and to enable
2474 strengthening local "inner_insn" from rtx to rtx_insn *.
2475 * genattr.c (gen_attr): When writing out the prototypes of the
2476 various generated "get_attr_" functions, strengthen the params of
2477 the non-const functions from rtx to rtx_insn *.
2478 Similarly, strengthen the params of insn_default_length,
2479 insn_min_length, insn_variable_length_p, insn_current_length.
2480 (main): Similarly, strengthen the param of num_delay_slots,
2481 internal_dfa_insn_code, insn_default_latency, bypass_p,
2482 insn_latency, min_issue_delay, print_reservation,
2483 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
2484 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
2485 to hook_int_rtx_insn_unreachable.
2486 * genattrtab.c (write_attr_get): When writing out the generated
2487 "get_attr_" functions, strengthen the param "insn" from rtx to
2488 rtx_insn *, eliminating a checked cast.
2489 (make_automaton_attrs): When writing out prototypes of
2490 "internal_dfa_insn_code_", "insn_default_latency_" functions
2491 and the "internal_dfa_insn_code" and "insn_default_latency"
2492 callbacks, strengthen their params from rtx to rtx_insn *
2493 * genautomata.c (output_internal_insn_code_evaluation): When
2494 writing out code, add a checked cast from rtx to rtx_insn * when
2495 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
2496 (output_dfa_insn_code_func): Strengthen param of generated
2497 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
2498 (output_trans_func): Likewise for generated function
2500 (output_internal_insn_latency_func): When writing out generated
2501 function "internal_insn_latency", rename params from "insn" and
2502 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
2503 locals "insn" and "insn2" as rtx_insn * with checked casts once
2504 we've proven that we're not dealing with const0_rtx.
2505 (output_insn_latency_func): Strengthen param of generated
2506 function "insn_latency" from rtx to rtx_insn *.
2507 (output_print_reservation_func): Likewise for generated function
2508 "print_reservation".
2509 (output_insn_has_dfa_reservation_p): Likewise for generated
2510 function "insn_has_dfa_reservation_p".
2511 * hooks.c (hook_int_rtx_unreachable): Rename to...
2512 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
2513 from rtx to rtx_insn *.
2514 * hooks.h (hook_int_rtx_unreachable): Likewise.
2515 (extern int hook_int_rtx_insn_unreachable): Likewise.
2516 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
2517 (get_attr_min_length): Likewise.
2518 * recog.c (get_enabled_alternatives): Likewise.
2519 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
2520 * reorg.c (find_end_label): Introduce local rtx "pat" and
2521 strengthen local "insn" from rtx to rtx_insn *.
2522 (redundant_insn): Use insn method of "seq" rather than element for
2523 typesafety; strengthen local "control" from rtx to rtx_insn *.
2524 * resource.c (mark_referenced_resources): Add checked cast to
2525 rtx_insn * within INSN/JUMP_INSN case.
2526 (mark_set_resources): Likewise.
2527 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
2530 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2532 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
2533 param "label" from rtx to rtx_insn *.
2534 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
2536 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
2537 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
2538 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2539 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2540 * final.c (default_label_align_after_barrier_max_skip): Strengthen
2541 param from rtx to rtx_insn *.
2542 (default_loop_align_max_skip): Likewise.
2543 (default_label_align_max_skip): Likewise.
2544 (default_jump_align_max_skip): Likewise.
2545 * target.def (label_align_after_barrier_max_skip): Likewise.
2546 (loop_align_max_skip): Likewise.
2547 (label_align_max_skip): Likewise.
2548 (jump_align_max_skip): Likewise.
2549 * targhooks.h (default_label_align_after_barrier_max_skip):
2551 (default_loop_align_max_skip): Likewise.
2552 (default_label_align_max_skip): Likewise.
2553 (default_jump_align_max_skip): Likewise.
2555 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2557 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
2558 from const_rtx to const rtx_insn *. Update union members from rtx
2560 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
2561 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
2562 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
2563 strengthen both params from const_rtx to const rtx_insn *.
2564 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
2565 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
2566 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
2568 * target.def (can_follow_jump): Strengthen both params from
2569 const_rtx to const rtx_insn *, and update default implementation
2570 from hook_bool_const_rtx_const_rtx_true to
2571 hook_bool_const_rtx_insn_const_rtx_insn_true.
2573 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2575 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
2576 "insn" from rtx to rtx_insn *.
2577 * sched-int.h (deps_start_bb): Likewise for 2nd param.
2579 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2580 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2581 Anna Tikhonova <anna.tikhonova@intel.com>
2582 Ilya Tocar <ilya.tocar@intel.com>
2583 Andrey Turetskiy <andrey.turetskiy@intel.com>
2584 Ilya Verbin <ilya.verbin@intel.com>
2585 Kirill Yukhin <kirill.yukhin@intel.com>
2586 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2588 * config/i386/sse.md
2589 (define_insn "vcvtph2ps<mask_name>"): Add masking.
2590 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
2591 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
2592 (define_expand "vcvtps2ph_mask"): New.
2593 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
2594 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
2595 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
2597 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2598 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2599 Anna Tikhonova <anna.tikhonova@intel.com>
2600 Ilya Tocar <ilya.tocar@intel.com>
2601 Andrey Turetskiy <andrey.turetskiy@intel.com>
2602 Ilya Verbin <ilya.verbin@intel.com>
2603 Kirill Yukhin <kirill.yukhin@intel.com>
2604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2606 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
2608 (define_mode_iterator VI24_AVX512BW_1): Ditto.
2609 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
2610 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
2611 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
2612 also for TARGET_AVX512VL.
2613 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
2615 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
2617 * doc/install.texi (Options specification): add
2618 --disable-libsanitizer item.
2620 2014-09-14 James Clarke <jrtc27@jrtc27.com>
2621 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2624 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
2626 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
2627 kernel version check to avoid incrementing it after every major OS X
2629 (darwin_default_min_version): Avoid static memory buffer.
2631 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
2633 * tree.c (need_assembler_name_p): Store C++ type mangling only
2636 2014-09-13 Marek Polacek <polacek@redhat.com>
2638 * tree.c (protected_set_expr_location): Don't check whether T is
2641 2014-09-12 DJ Delorie <dj@redhat.com>
2643 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
2644 (extend_and_shift1_hipsi2): Likewise.
2645 (extend_and_shift2_hipsi2): Likewise.
2647 2014-09-12 David Malcolm <dmalcolm@redhat.com>
2649 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
2650 with NULL when dealing with an insn.
2651 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
2652 from rtx to rtx_insn *.
2653 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
2654 const_rtx to const rtx_insn *.
2655 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
2657 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
2659 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
2662 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2664 * target.def (libgcc_floating_mode_supported_p): New hook.
2665 * targhooks.c (default_libgcc_floating_mode_supported_p): New
2667 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
2668 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
2669 (LIBGCC2_HAS_TF_MODE): Remove.
2670 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
2671 * doc/tm.texi: Regenerate.
2672 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
2674 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
2675 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
2676 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
2677 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
2678 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2679 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
2680 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
2681 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
2682 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
2683 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
2685 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2686 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2687 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2688 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2689 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2690 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2691 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2692 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
2693 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
2694 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
2695 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2696 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
2697 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
2698 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
2700 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
2702 (ia64_libgcc_floating_mode_supported_p): New function.
2703 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
2704 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2705 (IA64_NO_LIBGCC_TFMODE): Define.
2706 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
2707 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
2709 (pdp11_scalar_mode_supported_p): New function.
2710 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
2711 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
2713 2014-09-12 Richard Biener <rguenther@suse.de>
2716 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
2718 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
2720 * tree.c (integer_each_onep): New function.
2721 * tree.h (integer_each_onep): Declare it.
2722 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
2723 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
2724 (X & 1) == 0 for vector and complex.
2726 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2728 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
2730 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
2731 cost to spilling from integer to FP registers.
2733 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2735 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
2737 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
2738 are now handled correctly.
2740 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2742 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
2743 handling of CALLER_SAVE_REGS and POINTER_REGS.
2745 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2747 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
2748 the number of hard registers.
2750 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2751 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2752 Anna Tikhonova <anna.tikhonova@intel.com>
2753 Ilya Tocar <ilya.tocar@intel.com>
2754 Andrey Turetskiy <andrey.turetskiy@intel.com>
2755 Ilya Verbin <ilya.verbin@intel.com>
2756 Kirill Yukhin <kirill.yukhin@intel.com>
2757 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2759 * config/i386/sse.md
2760 (define_mode_iterator VI48_AVX512VL): New.
2761 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
2762 "avx512f_vternlog<mode>_maskz" and update mode iterator.
2763 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
2764 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
2765 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
2766 "avx512f_vternlog<mode>_mask" and update mode iterator.
2767 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
2768 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
2770 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
2771 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
2772 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
2773 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
2774 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
2775 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
2777 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2778 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2779 Anna Tikhonova <anna.tikhonova@intel.com>
2780 Ilya Tocar <ilya.tocar@intel.com>
2781 Andrey Turetskiy <andrey.turetskiy@intel.com>
2782 Ilya Verbin <ilya.verbin@intel.com>
2783 Kirill Yukhin <kirill.yukhin@intel.com>
2784 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2786 * config/i386/sse.md (VI128_256): Delete.
2787 (define_mode_iterator VI124_256): New.
2788 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
2789 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
2790 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
2791 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
2792 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
2793 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
2794 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2795 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
2797 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
2798 in presence of AVX-512.
2800 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2801 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2802 Anna Tikhonova <anna.tikhonova@intel.com>
2803 Ilya Tocar <ilya.tocar@intel.com>
2804 Andrey Turetskiy <andrey.turetskiy@intel.com>
2805 Ilya Verbin <ilya.verbin@intel.com>
2806 Kirill Yukhin <kirill.yukhin@intel.com>
2807 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2809 * config/i386/sse.md
2810 (define_expand "<avx512>_gathersi<mode>"): Rename from
2811 "avx512f_gathersi<mode>".
2812 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
2813 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
2814 (define_expand "<avx512>_gatherdi<mode>"): Rename from
2815 "avx512f_gatherdi<mode>".
2816 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
2817 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
2819 (define_expand "<avx512>_scattersi<mode>"): Rename from
2820 "avx512f_scattersi<mode>".
2821 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
2822 (define_expand "<avx512>_scatterdi<mode>"): Rename from
2823 "avx512f_scatterdi<mode>".
2824 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
2826 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
2828 * ira.h (ira_finish_once): Delete.
2829 * ira-int.h (target_ira_int::~target_ira_int): Declare.
2830 (target_ira_int::free_ira_costs): Likewise.
2831 (target_ira_int::free_register_move_costs): Likewise.
2832 (ira_finish_costs_once): Delete.
2833 * ira.c (free_register_move_costs): Replace with...
2834 (target_ira_int::free_register_move_costs): ...this new function.
2835 (target_ira_int::~target_ira_int): Define.
2836 (ira_init): Call free_register_move_costs as a member function rather
2837 than a global function.
2838 (ira_finish_once): Delete.
2839 * ira-costs.c (free_ira_costs): Replace with...
2840 (target_ira_int::free_ira_costs): ...this new function.
2841 (ira_init_costs): Call free_ira_costs as a member function rather
2842 than a global function.
2843 (ira_finish_costs_once): Delete.
2844 * target-globals.c (target_globals::~target_globals): Call the
2845 target_ira_int destructor.
2846 * toplev.c: Include lra.h.
2847 (finalize): Call lra_finish_once rather than ira_finish_once.
2849 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
2851 * common.opt (flto-odr-type-merging): New flag.
2852 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
2853 (types_same_for_odr): Likewise.
2854 (odr_subtypes_equivalent_p): Likewise.
2855 (add_type_duplicate): Do not walk type variants.
2856 (register_odr_type): New function.
2857 * ipa-utils.h (register_odr_type): Declare.
2858 (odr_type_p): New function.
2859 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
2861 * doc/invoke.texi (-flto-odr-type-merging): Document.
2862 * tree.c (need_assembler_name_p): Compute ODR names when asked
2864 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
2866 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
2869 * config/i386/i386.c (ix86_option_override_internal): Also turn
2870 off OPTION_MASK_ABI_X32 for -m16.
2872 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
2874 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
2877 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2880 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2881 Directly forward to __*_DENORM_MIN__.
2883 2014-09-11 David Malcolm <dmalcolm@redhat.com>
2885 * rtl.h (LABEL_REF_LABEL): New macro.
2887 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
2888 of XEXP (, 0), where we know that we have a LABEL_REF.
2889 * cfgbuild.c (make_edges): Likewise.
2890 (purge_dead_tablejump_edges): Likewise.
2891 * cfgexpand.c (convert_debug_memory_address): Likewise.
2892 * cfgrtl.c (patch_jump_insn): Likewise.
2893 * combine.c (distribute_notes): Likewise.
2894 * cse.c (hash_rtx_cb): Likewise.
2895 (exp_equiv_p): Likewise.
2896 (fold_rtx): Likewise.
2897 (check_for_label_ref): Likewise.
2898 * cselib.c (rtx_equal_for_cselib_1): Likewise.
2899 (cselib_hash_rtx): Likewise.
2900 * emit-rtl.c (mark_label_nuses): Likewise.
2901 * explow.c (convert_memory_address_addr_space): Likewise.
2902 * final.c (output_asm_label): Likewise.
2903 (output_addr_const): Likewise.
2904 * gcse.c (add_label_notes): Likewise.
2905 * genconfig.c (walk_insn_part): Likewise.
2906 * genrecog.c (validate_pattern): Likewise.
2907 * ifcvt.c (cond_exec_get_condition): Likewise.
2908 (noce_emit_store_flag): Likewise.
2909 (noce_get_alt_condition): Likewise.
2910 (noce_get_condition): Likewise.
2911 * jump.c (maybe_propagate_label_ref): Likewise.
2912 (mark_jump_label_1): Likewise.
2913 (redirect_exp_1): Likewise.
2914 (rtx_renumbered_equal_p): Likewise.
2915 * lra-constraints.c (operands_match_p): Likewise.
2916 * reload.c (operands_match_p): Likewise.
2917 (find_reloads): Likewise.
2918 * reload1.c (set_label_offsets): Likewise.
2919 * reorg.c (get_branch_condition): Likewise.
2920 * rtl.c (rtx_equal_p_cb): Likewise.
2921 (rtx_equal_p): Likewise.
2922 * rtlanal.c (reg_mentioned_p): Likewise.
2923 (rtx_referenced_p): Likewise.
2924 (get_condition): Likewise.
2925 * sched-vis.c (print_value): Likewise.
2926 * varasm.c (const_hash_1): Likewise.
2927 (compare_constant): Likewise.
2928 (const_rtx_hash_1): Likewise.
2929 (output_constant_pool_1): Likewise.
2931 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
2933 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2934 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2936 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2937 cr6_test_for_lt_reverse): Ditto.
2939 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
2942 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2944 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2946 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2947 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2948 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2949 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2952 (aarch64_fold_builtin): Remove all reinterpret cases.
2954 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2956 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2958 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2959 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2960 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2961 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2962 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2963 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2964 aarch64_reinterpretv2df<mode>): Delete.
2966 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2968 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2969 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2970 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2971 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2972 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2973 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2974 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2975 vreinterpret_u32_f64): Use cast.
2977 * config/aarch64/iterators.md (VD_RE): Delete.
2979 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2981 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2982 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2983 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2984 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2985 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2986 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2987 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2988 Replace inline assembler with __aarch64_vset_lane_any.
2990 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
2992 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2994 (vmull_high_lane_s32): Likewise.
2995 (vmull_high_lane_u16): Likewise.
2996 (vmull_high_lane_u32): Likewise.
2998 2014-09-11 Jason Merrill <jason@redhat.com>
3001 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
3003 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
3006 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
3007 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
3008 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
3010 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3011 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3012 Anna Tikhonova <anna.tikhonova@intel.com>
3013 Ilya Tocar <ilya.tocar@intel.com>
3014 Andrey Turetskiy <andrey.turetskiy@intel.com>
3015 Ilya Verbin <ilya.verbin@intel.com>
3016 Kirill Yukhin <kirill.yukhin@intel.com>
3017 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3019 * config/i386/sse.md
3020 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
3021 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
3022 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
3024 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
3025 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
3027 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3029 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
3030 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
3031 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
3032 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
3033 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
3034 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
3035 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
3036 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
3038 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3040 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
3041 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
3042 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
3044 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
3046 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
3047 to access removed nodes.
3049 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
3051 PR tree-optimization/63186
3052 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
3053 (mark_nonssa_use): Likewise.
3054 (verify_non_ssa_vars): Verify all header blocks for label
3057 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3059 Anna Tikhonova <anna.tikhonova@intel.com>
3060 Ilya Tocar <ilya.tocar@intel.com>
3061 Andrey Turetskiy <andrey.turetskiy@intel.com>
3062 Ilya Verbin <ilya.verbin@intel.com>
3063 Kirill Yukhin <kirill.yukhin@intel.com>
3064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3066 * config/i386/sse.md
3067 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
3068 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
3069 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
3070 "<avx2_avx512f>_permvar<mode><mask_name>".
3071 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
3072 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
3073 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
3074 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
3076 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
3077 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3078 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
3079 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3081 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3083 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
3084 V2DF, V4SF, DF, and DI modes.
3085 (vsx_fmav2df2): Likewise.
3086 (vsx_float_fix_<mode>2): Likewise.
3087 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
3089 2014-09-10 Xinliang David Li <davidxl@google.com>
3092 * config/arm/arm.md (movcond_addsi): Handle case where source
3093 and target operands are the same.
3095 2014-09-10 David Malcolm <dmalcolm@redhat.com>
3097 * final.c (this_is_asm_operands): Strengthen this variable from
3098 rtx to const rtx_insn *.
3099 * output.h (this_is_asm_operands): Likewise.
3100 * rtl-error.c (location_for_asm): Strengthen param "insn" from
3101 const_rtx to const rtx_insn *.
3102 (diagnostic_for_asm): Likewise.
3103 * rtl-error.h (error_for_asm): Likewise.
3104 (warning_for_asm): Likewise.
3106 2014-09-10 David Malcolm <dmalcolm@redhat.com>
3108 * genextract.c (print_header): When writing out insn_extract to
3109 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
3110 * recog.h (insn_extract): Strengthen the param from rtx to
3113 2014-09-10 Mike Stump <mikestump@comcast.net>
3115 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
3118 2014-09-10 Martin Jambor <mjambor@suse.cz>
3120 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
3121 (analyze): Do not set analyze flag if expand_thunk returns false;.
3122 (create_wrapper): Likewise.
3123 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
3125 2014-09-10 Martin Jambor <mjambor@suse.cz>
3128 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
3129 new decl properly. Analyze the new thunk if it is expanded.
3131 2014-09-10 Andreas Schwab <schwab@suse.de>
3133 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
3134 [USED_FOR_TARGET]: Define.
3136 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
3138 * config/mips/mips.c (mips_secondary_reload_class): Handle
3141 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
3143 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
3146 2014-09-10 Jakub Jelinek <jakub@redhat.com>
3148 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
3149 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
3150 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
3151 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
3152 flag_delete_null_pointer_checks for them.
3153 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3154 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
3155 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
3156 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
3157 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
3159 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
3160 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
3161 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
3162 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
3163 * doc/invoke.texi (-fsanitize=nonnull-attribute,
3164 -fsanitize=returns-nonnull-attribute): Document.
3166 * ubsan.h (struct ubsan_mismatch_data): Removed.
3167 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3168 * ubsan.c (ubsan_source_location): For unknown locations,
3169 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
3170 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3171 Allow more than one location and arbitrary extra arguments passed
3172 in ... instead of through MISMATCH pointer.
3173 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
3174 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
3175 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
3178 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
3179 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3180 Anna Tikhonova <anna.tikhonova@intel.com>
3181 Ilya Tocar <ilya.tocar@intel.com>
3182 Andrey Turetskiy <andrey.turetskiy@intel.com>
3183 Ilya Verbin <ilya.verbin@intel.com>
3184 Kirill Yukhin <kirill.yukhin@intel.com>
3185 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3187 * config/i386/sse.md
3188 (define_mode_iterator VI48F): New.
3189 (define_insn "<avx512>_compress<mode>_mask"): Rename from
3190 "avx512f_compress<mode>_mask" and update mode iterator.
3191 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
3192 "avx512f_compressstore<mode>_mask" and update mode iterator.
3193 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
3194 "avx512f_expand<mode>_maskz" and update mode iterator.
3195 (define_insn "<avx512>_expand<mode>_mask"): Rename from
3196 "avx512f_expand<mode>_mask" and update mode iterator.
3198 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
3199 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3200 Anna Tikhonova <anna.tikhonova@intel.com>
3201 Ilya Tocar <ilya.tocar@intel.com>
3202 Andrey Turetskiy <andrey.turetskiy@intel.com>
3203 Ilya Verbin <ilya.verbin@intel.com>
3204 Kirill Yukhin <kirill.yukhin@intel.com>
3205 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3207 * config/i386/i386.c
3208 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
3209 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
3210 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
3211 avx512dq_rangepv4sf_mask.
3212 * config/i386/sse.md
3213 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
3215 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
3216 (define_insn "reduces<mode>"): Ditto.
3217 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
3219 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
3220 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
3221 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
3223 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
3224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3225 Anna Tikhonova <anna.tikhonova@intel.com>
3226 Ilya Tocar <ilya.tocar@intel.com>
3227 Andrey Turetskiy <andrey.turetskiy@intel.com>
3228 Ilya Verbin <ilya.verbin@intel.com>
3229 Kirill Yukhin <kirill.yukhin@intel.com>
3230 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3232 * config/i386/i386.c
3233 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
3234 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
3235 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
3236 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
3237 avx512vl_getmantv2df_mask.
3238 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
3239 avx512f_vgetmantv4sf_round.
3240 * config/i386/sse.md
3241 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
3242 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
3244 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
3245 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
3246 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
3247 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
3249 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
3250 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
3251 update mode iterator.
3253 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
3254 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
3257 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
3258 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
3259 update mode iterator.
3260 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
3261 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
3264 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
3265 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
3267 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
3268 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
3269 update mode iterator.
3270 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
3271 "avx512f_getmant<mode><round_saeonly_name>".
3273 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
3276 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
3278 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
3279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3280 Anna Tikhonova <anna.tikhonova@intel.com>
3281 Ilya Tocar <ilya.tocar@intel.com>
3282 Andrey Turetskiy <andrey.turetskiy@intel.com>
3283 Ilya Verbin <ilya.verbin@intel.com>
3284 Kirill Yukhin <kirill.yukhin@intel.com>
3285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3287 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
3288 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
3289 (define_mode_iterator FMAMODE_AVX512): New.
3290 (define_mode_iterator FMAMODE): Remove conditions.
3291 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
3292 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
3293 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
3295 (define_mode_iterator FMAMODE_NOVF512): Remove.
3296 (define_insn "*fma_fmadd_<mode>"): Rename from
3297 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
3298 FMAMODE mode iterator.
3299 (define_mode_iterator VF_SF_AVX512VL): New.
3300 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
3301 Use VF_SF_AVX512VL mode iterator.
3302 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
3303 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3305 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
3306 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3308 (define_insn "*fma_fmsub_<mode>"): Rename from
3309 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
3310 FMAMODE mode iterator.
3311 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
3312 Use VF_SF_AVX512VL mode iterator.
3313 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
3314 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3316 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
3317 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3319 (define_insn "*fma_fnmadd_<mode>"): Rename from
3320 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
3321 use FMAMODE mode iterator.
3322 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
3323 Use VF_SF_AVX512VL mode iterator.
3324 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
3325 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3327 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
3328 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3330 (define_insn "*fma_fnmsub_<mode>"): Rename from
3331 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
3332 FMAMODE mode iterator.
3333 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
3334 Use VF_SF_AVX512VL mode iterator.
3335 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
3336 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3338 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
3339 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3341 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
3342 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
3343 use VF_AVX512VL mode iterator.
3344 (define_insn "*fma_fmaddsub_<mode>"): Rename from
3345 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
3347 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
3348 Use VF_SF_AVX512VL mode iterator.
3349 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
3350 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3352 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
3353 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3355 (define_insn "*fma_fmsubadd_<mode>"): Rename from
3356 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
3357 remove usage of subst.
3358 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
3359 Use VF_SF_AVX512VL mode iterator.
3360 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
3361 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3363 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
3364 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3367 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
3370 * calls.c (precompute_arguments): Check
3371 promoted_for_signed_and_unsigned_p and set the promoted mode.
3372 (promoted_for_signed_and_unsigned_p): New function.
3373 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3374 and set the promoted mode.
3375 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3376 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3377 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3379 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3381 * opth-gen.awk: Generate mapping from cpp message reasons to the
3382 options that enable them.
3383 * doc/options.texi (CppReason): Document.
3385 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3387 * doc/invoke.texi (Wnormalized=): Update.
3389 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
3392 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
3393 operands. Split off the constant operand alternative to ...
3394 (*bool<mode>3_imm): New.
3396 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3398 * rtl.h (single_set_2): Strengthen first param from const_rtx to
3399 const rtx_insn *, and move prototype to above...
3400 (single_set): ...this. Convert this from a macro to an inline
3401 function, enforcing the requirement that the param is a const
3403 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
3405 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
3406 Strengthen both params from rtx to rtx_insn *.
3407 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
3408 Likewise; introduce locals "producer_set", "consumer_set", using
3409 them in place of "producer" and "consumer" when dealing with SET
3411 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
3412 when invoking single_set in region guarded by INSN_P.
3413 (avr_out_bitop): Likewise.
3414 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
3415 region guarded by GET_CODE check, using methods to strengthen
3416 local "this_insn" from rtx to rtx_insn *, and for clarity.
3417 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
3418 Strengthen local "insn" from rtx to rtx_insn *.
3419 (define_insn_and_split "xload<mode>_A"): Likewise.
3420 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
3422 (find_load): Likewise for return type.
3423 (workaround_speculation): Likewise for both locals named
3425 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
3427 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
3429 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
3431 * config/h8300/h8300.c (notice_update_cc): Likewise.
3432 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
3433 "insn" and "dep_insn".
3434 (exact_store_load_dependency): Likewise for both params.
3435 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
3436 since this now clashes with inline function. Instead, delay
3437 calling single_set until the point where its needed, and then
3438 assign the result to "compare_set" and rework the conditional that
3440 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
3441 local "last" from rtx to rtx_insn *.
3442 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
3444 (mips_store_data_bypass_p): Likewise for both params.
3445 * config/mips/mips.c (mips_load_store_insns): Likewise for second
3447 (mips_store_data_bypass_p): Likewise for both params.
3448 (mips_orphaned_high_part_p): Likewise for param "insn".
3449 * config/mn10300/mn10300.c (extract_bundle): Likewise.
3450 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
3451 Introduce local rtx "insn2_pat".
3452 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
3454 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
3455 Introduce local rtx "set", using it in place of "insn" for the
3456 result of single_set. This appears to fix a bug, since the call
3457 to find_regno_note on a SET does nothing.
3458 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
3459 params from rtx to rtx_insn *.
3460 (set_to_load_agen): Likewise.
3461 * config/s390/s390.c (s390_label_align): Likewise for local
3462 "prev_insn". Introduce new rtx locals "set" and "src", using
3463 them in place of "prev_insn" for the results of single_set
3464 and SET_SRC respectively.
3465 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
3466 Introduce new rtx local "set" using in place of "jump" for the
3467 result of single_set. Use SET_SRC (set) rather than plain
3469 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
3471 (noncall_uses_reg): Likewise.
3472 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
3473 guarded by GET_CODE check, using its methods for clarity, and to
3474 enable strengthening local "this_insn" from rtx to rtx_insn *.
3475 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
3476 "insn" from rtx to rtx_insn *.
3477 (define_expand "umulhisi3"): Likewise.
3478 (define_expand "smulsi3_highpart"): Likewise.
3479 (define_expand "umulsi3_highpart"): Likewise.
3480 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3481 local "after". Replace GET_CODE check with a dyn_cast,
3482 introducing new local rtx_sequence * "seq", using insn method for
3485 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
3486 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
3487 place of "insn" once we're dealing with patterns rather than the
3489 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
3490 (scan_trace): Likewise for local "elt", updating lookups within
3491 sequence to use insn method rather than element method.
3492 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
3494 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
3495 * ifcvt.c (noce_try_abs): Likewise for local "insn".
3496 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
3497 invoking single_set.
3498 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
3499 "insn" from rtx to rtx_insn *.
3500 (skip_usage_debug_insns): Likewise for return type, adding a
3502 (check_secondary_memory_needed_p): Likewise for local "insn".
3503 (inherit_reload_reg): Likewise.
3504 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
3505 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
3507 (store_data_bypass_p): Likewise for both params.
3508 (if_test_bypass_p): Likewise.
3509 * recog.h (store_data_bypass_p): Likewise for both params.
3510 (if_test_bypass_p): Likewise.
3511 * reload.c (find_equiv_reg): Likewise for local "where".
3512 * reorg.c (delete_jump): Likewise for param "insn".
3513 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
3514 to const rtx_insn *.
3515 * store-motion.c (replace_store_insn): Likewise for param "del".
3516 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
3517 and use its methods for clarity, and to strengthen local "del"
3518 from rtx to rtx_insn *.
3519 (build_store_vectors): Use insn method of "st" when calling
3520 replace_store_insn for typesafety and clarity.
3522 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3524 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
3525 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
3526 on how to make it legal in future.
3528 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3530 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
3532 (restinsn): Likewise.
3533 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
3535 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
3537 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
3539 (arc_hazard): Likewise for both params.
3540 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
3541 checked casts to rtx_sequence * and uses of the insn method for
3543 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
3544 (arc_adjust_insn_length): Likewise for param "insn".
3545 (struct insn_length_parameters_s): Likewise for first param of
3546 "get_variants" callback field.
3547 (arc_get_insn_variants): Likewise for first param and local
3548 "inner". Replace a check of GET_CODE with a dyn_cast to
3549 rtx_sequence *, using methods for type-safety and clarity.
3550 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
3551 rtx_sequence * and uses of the insn method for type-safety when
3552 invoking arc_adjust_insn_length.
3553 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
3555 (arm_address_offset_is_imm): Likewise.
3556 (struct tune_params): Likewise for params 1 and 3 of the
3557 "sched_adjust_cost" callback field.
3558 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
3559 params 1 and 3 ("insn" and "dep").
3560 (xscale_sched_adjust_cost): Likewise.
3561 (fa726te_sched_adjust_cost): Likewise.
3562 (cortexa7_older_only): Likewise for param "insn".
3563 (cortexa7_younger): Likewise.
3564 (arm_attr_length_move_neon): Likewise.
3565 (arm_address_offset_is_imm): Likewise.
3566 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
3567 * config/avr/avr.c (avr_notice_update_cc): Likewise.
3568 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
3569 (workaround_speculation): Likewise for local "last_condjump".
3570 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
3571 (shadow_or_blockage_p): Likewise.
3572 (get_unit_reqs): Likewise.
3573 (get_unit_operand_masks): Likewise.
3574 (c6x_registers_update): Likewise.
3575 (returning_call_p): Likewise.
3576 (can_use_callp): Likewise.
3577 (convert_to_callp): Likewise.
3578 (find_last_same_clock): Likwise for local "t".
3579 (reorg_split_calls): Likewise for local "shadow".
3580 (hwloop_pattern_reg): Likewise for param "insn".
3581 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
3582 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
3583 (frv_extract_membar): Likewise.
3584 (frv_optimize_membar_local): Strengthen param "last_membar" from
3585 rtx * to rtx_insn **.
3586 (frv_optimize_membar_global): Strengthen param "membar" from rtx
3588 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
3590 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
3591 both params from rtx to rtx_insn *.
3592 (ia64_ld_address_bypass_p): Likewise.
3593 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
3595 (ia64_safe_type): Likewise.
3596 (group_barrier_needed): Likewise.
3597 (safe_group_barrier_needed): Likewise.
3598 (ia64_single_set): Likewise.
3599 (is_load_p): Likewise.
3600 (record_memory_reference): Likewise.
3601 (get_mode_no_for_insn): Likewise.
3602 (important_for_bundling_p): Likewise.
3603 (unknown_for_bundling_p): Likewise.
3604 (ia64_st_address_bypass_p): Likewise for both params.
3605 (ia64_ld_address_bypass_p): Likewise.
3606 (expand_vselect): Introduce new local rtx_insn * "insn", using it
3607 in place of rtx "x" after the emit_insn call.
3608 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
3609 Strengthen param from rtx to rtx_insn *.
3610 (ix86_agi_dependent): Likewise for both params.
3611 (ix86_attr_length_immediate_default): Likewise for param 1.
3612 (ix86_attr_length_address_default): Likewise for param.
3613 (ix86_attr_length_vex_default): Likewise for param 1.
3614 * config/i386/i386.c (ix86_attr_length_immediate_default):
3615 Likewise for param "insn".
3616 (ix86_attr_length_address_default): Likewise.
3617 (ix86_attr_length_vex_default): Likewise.
3618 (ix86_agi_dependent): Likewise for both params.
3619 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
3620 (vselect_insn): Likewise for this variable.
3621 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
3623 (m68k_sched_attr_opy_type): Likewise.
3624 * config/m68k/m68k.c (sched_get_operand): Likewise.
3625 (sched_attr_op_type): Likewise.
3626 (m68k_sched_attr_opx_type): Likewise.
3627 (m68k_sched_attr_opy_type): Likewise.
3628 (sched_get_reg_operand): Likewise.
3629 (sched_get_mem_operand): Likewise.
3630 (m68k_sched_address_bypass_p): Likewise for both params.
3631 (sched_get_indexed_address_scale): Likewise.
3632 (m68k_sched_indexed_address_bypass_p): Likewise.
3633 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
3634 (m68k_sched_indexed_address_bypass_p): Likewise.
3635 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
3636 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
3638 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
3639 params from rtx to rtx_insn *.
3640 (mips_fmadd_bypass): Likewise.
3641 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
3642 (mips_linked_madd_p): Likewise.
3643 (mips_macc_chains_last_hilo): Likewise for this variable.
3644 (mips_macc_chains_record): Likewise for param.
3645 (vr4130_last_insn): Likewise for this variable.
3646 (vr4130_swap_insns_p): Likewise for both params.
3647 (mips_ls2_variable_issue): Likewise for param.
3648 (mips_need_noat_wrapper_p): Likewise for param "insn".
3649 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
3650 in place of "x" after the emit_insn.
3651 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
3652 params from rtx to rtx_insn *.
3653 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
3654 (pa_combine_instructions): Introduce local "par" for result of
3655 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
3657 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
3658 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
3659 (rl78_alloc_physical_registers_op1): Likewise.
3660 (rl78_alloc_physical_registers_op2): Likewise.
3661 (rl78_alloc_physical_registers_ro1): Likewise.
3662 (rl78_alloc_physical_registers_cmp): Likewise.
3663 (rl78_alloc_physical_registers_umul): Likewise.
3664 (rl78_alloc_address_registers_macax): Likewise.
3665 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
3666 * config/s390/predicates.md (execute_operation): Likewise for
3668 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
3670 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
3671 (addr_generation_dependency_p): Likewise for param "insn".
3672 (s390_agen_dep_p): Likewise for both params.
3673 (s390_fpload_toreg): Likewise for param "insn".
3674 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
3675 * config/sh/sh.c (sh_loop_align): Likewise for param and local
3677 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
3678 * config/sh/sh_treg_combine.cc
3679 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
3681 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
3682 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
3683 "and_insn", "load", "shift".
3684 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
3686 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
3687 for XEXP (note, 0) of the REG_CC_SETTER note.
3688 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
3689 rtx_insn *, eliminating a checked cast made redundant by this.
3690 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
3692 * genattr.c (main): When writing out the prototype to
3693 const_num_delay_slots, strengthen the param from rtx to
3695 * genattrtab.c (write_const_num_delay_slots): Likewise when
3696 writing out the implementation of const_num_delay_slots.
3697 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
3698 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
3699 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
3700 favor of new rtx locals "src" and "set" and new local rtx_insn *
3702 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
3704 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
3705 locals "cond", "if_then_else", "set" and new rtx_insn * locals
3707 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
3708 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
3709 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
3710 the top-level scope, replacing with new more tightly-scoped rtx
3711 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
3712 "new_insn", "copy_of_insn_b", and make local rtx "set" more
3714 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
3716 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
3718 (ira_setup_alts): Likewise for param "insn".
3719 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
3720 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
3722 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
3723 new more-tightly scoped rtx locals "add3_insn", "insn",
3724 "add2_insn" and rtx_insn * "move_insn".
3725 * postreload-gcse.c (eliminate_partially_redundant_load): Add
3726 checked cast on result of gen_move_insn when invoking
3728 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
3730 (verify_changes): Add a checked cast on "object" when invoking
3732 (extract_insn_cached): Strengthen param "insn" from rtx to
3734 (extract_constrain_insn_cached): Likewise.
3735 (extract_insn): Likewise.
3736 * recog.h (insn_invalid_p): Likewise for param 1.
3737 (recog_memoized): Likewise for param.
3738 (extract_insn): Likewise.
3739 (extract_constrain_insn_cached): Likewise.
3740 (extract_insn_cached): Likewise.
3741 * reload.c (can_reload_into): Likewise for local "test_insn".
3742 * reload.h (cleanup_subreg_operands): Likewise for param.
3743 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
3744 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
3745 result of emit_insn. Remove a checked cast made redundant by this
3747 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
3749 * sel-sched.c (get_reg_class): Likewise.
3751 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
3752 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3754 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
3755 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
3757 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
3759 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3761 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
3762 const rtx_insn *, and from rtx to rtx_insn * for the other
3764 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
3765 INSN_LOCATION, since we know INSN_P holds.
3766 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
3767 (insn_file): Likewise.
3768 (insn_scope): Likewise.
3769 (insn_location): Likewise.
3771 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
3772 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
3773 for the result of gen_load_const_gp.
3774 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
3775 param from rtx to rtx_insn *.
3776 * config/rs6000/rs6000.c (output_call): Likewise.
3777 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
3778 introducing a checked cast to rtx_sequence * and use of the insn
3780 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
3781 from rtx to rtx_insn *.
3782 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
3783 (insn_line): Likewise.
3784 (insn_file): Likewise.
3785 (insn_location): Likewise.
3786 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
3787 from rtx to rtx_insn *.
3788 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
3789 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
3790 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
3792 * reorg.c (relax_delay_slots): Strengthen locals named "after"
3793 from rtx to rtx_insn *; use methods of "pat" for type-safety.
3795 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3797 * combine.c (try_combine): Eliminate checked cast on result of
3799 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
3800 autogenerated one by strengthening the return type and params 2 and 3
3801 from rtx to rtx_insn *, and by naming the params.
3802 * gengenrtl.c (special_rtx): Add INSN to those that are
3804 * rtl.h (gen_rtx_INSN): New prototype.
3806 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3808 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
3810 (no_equiv): Likewise.
3811 (update_equiv_regs): Likewise.
3812 (setup_reg_equiv): Likewise. Strengthen locals "elem",
3813 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
3814 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
3816 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
3817 from rtx to rtx_insn_list *.
3818 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
3819 rtx_insn_list * and use methods for clarity and typesafety.
3820 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
3822 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
3823 redundant check on INSN_P (insns): this cannot hold, as "insns" is
3824 an INSN_LIST, not an insn.
3825 (reverse_equiv_p): Strengthen local "insns" from rtx to
3826 rtx_insn_list * and use methods for clarity and typesafety.
3827 (contains_reloaded_insn_p): Likewise for local "list".
3829 2014-09-09 Jiong Wang <jiong.wang@arm.com>
3831 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
3832 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
3833 (arm_builtin_vectorized_function): Likewise.
3834 * config/arm/arm_neon_builtins.def: New macro for copysignf.
3835 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
3837 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
3839 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
3840 * builtins.h (default_target_builtins): Likewise.
3841 * gcse.h (default_target_gcse): Likewise.
3842 * target-globals.h (target_globals): Add a destructor. Convert
3843 void-pointer fields back to their real type and change from
3844 GTY((atomic)) to GTY((skip)).
3845 (restore_target_globals): Remove casts accordingly.
3846 * target-globals.c (save_target_globals): Use XCNEW rather than
3847 ggc_internal_cleared_alloc to allocate non-GC structures.
3848 Use ggc_cleared_alloc to allocate the target_globals structure
3850 (target_globals::~target_globals): Define.
3852 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3854 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
3855 mnemonic instead of fldmfdd.
3856 * config/arm/arm.c (vfp_output_fstmd): Rename to...
3857 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
3858 Output vpush when address register is SP.
3859 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
3860 (vfp_output_vstmd): ... This.
3861 * config/arm/vfp.md (push_multi_vfp): Update call to
3864 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3866 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
3868 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3870 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
3871 (*sqrtdf2_vfp): Likewise.
3872 (*cmpsf_vfp): Likewise.
3873 (*cmpsf_trap_vfp): Likewise.
3874 (*cmpdf_vfp): Likewise.
3875 (*cmpdf_trap_vfp): Likewise.
3877 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3879 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
3880 (*truncdfsf2_vfp): Likewise.
3881 (*truncsisf2_vfp): Likewise.
3882 (*truncsidf2_vfp): Likewise.
3883 (fixuns_truncsfsi2): Likewise.
3884 (fixuns_truncdfsi2): Likewise.
3885 (*floatsisf2_vfp): Likewise.
3886 (*floatsidf2_vfp): Likewise.
3887 (floatunssisf2): Likewise.
3888 (floatunssidf2): Likewise.
3890 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3892 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
3893 (*muldf3_vfp): Likewise.
3894 (*mulsf3negsf_vfp): Likewise.
3895 (*muldf3negdf_vfp): Likewise.
3896 (*mulsf3addsf_vfp): Likewise.
3897 (*muldf3adddf_vfp): Likewise.
3898 (*mulsf3subsf_vfp): Likewise.
3899 (*muldf3subdf_vfp): Likewise.
3900 (*mulsf3negsfaddsf_vfp): Likewise.
3901 (*fmuldf3negdfadddf_vfp): Likewise.
3902 (*mulsf3negsfsubsf_vfp): Likewise.
3903 (*muldf3negdfsubdf_vfp): Likewise.
3905 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3907 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
3908 (*absdf2_vfp): Likewise.
3909 (*negsf2_vfp): Likewise.
3910 (*negdf2_vfp): Likewise.
3911 (*addsf3_vfp): Likewise.
3912 (*adddf3_vfp): Likewise.
3913 (*subsf3_vfp): Likewise.
3914 (*subdf3_vfp): Likewise.
3915 (*divsf3_vfp): Likewise.
3916 (*divdf3_vfp): Likewise.
3918 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3920 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3922 (arm_print_operand): Don't convert real values to decimal
3923 representation in default case.
3924 (fp_immediate_constant): Delete.
3925 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3926 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3928 (*thumb2_movsi_vfp): Likewise.
3929 (*movdi_vfp): Likewise.
3930 (*movdi_vfp_cortexa8): Likewise.
3931 (*movhf_vfp_neon): Likewise.
3932 (*movhf_vfp): Likewise.
3933 (*movsf_vfp): Likewise.
3934 (*thumb2_movsf_vfp): Likewise.
3935 (*movdf_vfp): Likewise.
3936 (*thumb2_movdf_vfp): Likewise.
3937 (*movsfcc_vfp): Likewise.
3938 (*thumb2_movsfcc_vfp): Likewise.
3939 (*movdfcc_vfp): Likewise.
3940 (*thumb2_movdfcc_vfp): Likewise.
3942 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
3944 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3948 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3951 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3952 Use qualifier_immediate for last operand. Rename to...
3953 (aarch64_types_ternop_lane_qualifiers): ... This.
3954 (TYPES_QUADOP): Rename to...
3955 (TYPES_TERNOP_LANE): ... This.
3956 (aarch64_simd_expand_args): Return const0_rtx when encountering user
3957 error. Change return of 0 to return of NULL_RTX.
3958 (aarch64_crc32_expand_builtin): Likewise.
3959 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3960 ICE when expanding unknown builtin.
3961 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3962 TERNOP_LANE qualifiers.
3963 (sqdmlsl_lane): Likewise.
3964 (sqdmlal_laneq): Likewise.
3965 (sqdmlsl_laneq): Likewise.
3966 (sqdmlal2_lane): Likewise.
3967 (sqdmlsl2_lane): Likewise.
3968 (sqdmlal2_laneq): Likewise.
3969 (sqdmlsl2_laneq): Likewise.
3971 2014-09-09 Nick Clifton <nickc@redhat.com>
3973 * doc/invoke.texi (Optimization Options): Add missing @gol to the
3975 (S/390 and zSeries Options): Remove superfluous word from the
3976 description of the -mhotpatch option.
3978 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
3980 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3981 * ira.c: #include "shrink-wrap.h"
3982 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3983 * ifcvt.c: #include "shrink-wrap.h"
3984 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3986 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
3988 * common/config/picochip/picochip-common.c: Remove.
3989 * config.gcc: Remove support for picochip.
3990 * config/picochip/constraints.md: Remove.
3991 * config/picochip/dfa_space.md: Remove.
3992 * config/picochip/dfa_speed.md: Remove.
3993 * config/picochip/picochip-protos.h: Remove.
3994 * config/picochip/picochip.c: Remove.
3995 * config/picochip/picochip.h: Remove.
3996 * config/picochip/picochip.md: Remove.
3997 * config/picochip/picochip.opt: Remove.
3998 * config/picochip/predicates.md: Remove.
3999 * config/picochip/t-picochip: Remove.
4000 * doc/md.texi: Don't document picochi.
4002 2014-09-08 David Malcolm <dmalcolm@redhat.com>
4004 * basic-block.h (control_flow_insn_p): Strengthen param from
4005 const_rtx to const rtx_insn *.
4006 * cfgbuild.c (control_flow_insn_p): Likewise.
4008 2014-09-08 David Malcolm <dmalcolm@redhat.com>
4010 * gcse.c (modify_mem_list): Strengthen this variable from
4011 vec<rtx> * to vec<rtx_insn *> *.
4012 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
4014 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
4015 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
4016 (record_last_mem_set_info): Strengthen param "insn" from rtx to
4018 (record_last_set_info): Likewise for local "last_set_insn".
4020 2014-09-08 DJ Delorie <dj@redhat.com>
4022 * doc/invoke.texi (MSP430 Options): Add -minrt.
4024 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4026 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
4027 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
4028 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
4030 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
4032 (adjust_splat): New function.
4033 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
4034 (dump_swap_insn_table): Add case for SH_SPLAT.
4036 2014-09-08 Richard Biener <rguenther@suse.de>
4039 * tree-inline.c (copy_loops): The source loop header should
4041 (tree_function_versioning): If loops need fixup after removing
4042 unreachable blocks fix them.
4043 * omp-low.c (simd_clone_adjust): Do not add incr block to
4044 loop under construction.
4046 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
4048 * config/aarch64/aarch64-builtins.c
4049 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
4051 2014-09-08 Joseph Myers <joseph@codesourcery.com>
4053 * config/i386/cygming.h (TF_SIZE): Remove.
4054 * config/i386/darwin.h (TF_SIZE): Remove.
4055 * config/i386/dragonfly.h (TF_SIZE): Remove.
4056 * config/i386/freebsd.h (TF_SIZE): Remove.
4057 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
4058 * config/i386/openbsdelf.h (TF_SIZE): Remove.
4059 * config/i386/sol2.h (TF_SIZE): Remove.
4060 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
4061 * config/ia64/linux.h (TF_SIZE): Remove.
4062 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
4063 * doc/tm.texi: Regenerate.
4064 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
4066 2014-09-08 Joseph Myers <joseph@codesourcery.com>
4068 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4070 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
4072 * doc/tm.texi: Regenerate.
4073 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4075 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
4076 * config/cris/cris.h (__make_dp): Remove.
4078 2014-09-08 Richard Biener <rguenther@suse.de>
4081 * cfgloop.c (mark_loop_for_removal): Track former header
4083 * cfgloop.h (struct loop): Add former_header member unconditionally.
4084 * loop-init.c (fix_loop_structure): Enable bogus loop removal
4085 diagnostic unconditionally.
4087 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
4090 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
4091 constraint for operand0 and remove write only modifier from operand3.
4093 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
4095 PR rtl-optimization/62208
4096 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
4097 rather than const0_rtx in eq/ne-xor simplifications.
4099 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
4101 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
4102 (arc_output_mi_thunk): Likewise.
4104 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
4105 arguments to silence bogus warning.
4107 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
4110 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
4112 2014-09-06 Tom de Vries <tom@codesourcery.com>
4114 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
4115 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
4116 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4118 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
4121 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
4122 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
4124 2014-09-05 Easwaran Raman <eraman@google.com>
4126 PR rtl-optimization/62146
4127 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
4128 hoisted instruction unconditional.
4130 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
4133 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
4134 Do not allow any_mask_operand for operands[2].
4135 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
4137 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4139 * config/arc/arc.c (arc_print_operand): Use insn method of
4140 final_sequence for type-safety.
4141 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
4142 "insn" from rtx to rtx_insn *.
4143 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
4144 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4145 Likewise for locals "branch", "label".
4146 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
4147 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
4148 (same_cmp_following_p): Likewise for locals "i2", "i3".
4149 * config/sh/sh_optimize_sett_clrt.cc
4150 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
4151 param "cbranch_insn".
4152 * function.c (convert_jumps_to_returns): Likewis for local "jump".
4153 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
4154 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
4156 (condjump_p): Likewise.
4157 (condjump_in_parallel_p): Likewise.
4159 (any_uncondjump_p): Likewise.
4160 (any_condjump_p): Likewise.
4161 (condjump_label): Likewise.
4162 (returnjump_p): Strengthen param "insn" from rtx to
4164 (onlyjump_p): Strengthen param "insn" from const_rtx to
4166 (jump_to_label_p): Likewise.
4167 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
4168 (invert_jump): Likewise.
4169 * reorg.c (simplejump_or_return_p): Add checked cast when calling
4171 (get_jump_flags): Strengthen param "insn" from rtx to
4173 (get_branch_condition): Likewise.
4174 (condition_dominates_p): Likewise.
4175 (make_return_insns): Move declaration of local "pat" earlier, to
4176 after we've handled NONJUMP_INSN_P and non-sequences, using its
4177 methods to simplify the code and for type-safety.
4178 * rtl.h (find_constant_src): Strengthen param from const_rtx to
4180 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
4181 (condjump_p): Strengthen param from const_rtx to
4183 (any_condjump_p): Likewise.
4184 (any_uncondjump_p): Likewise.
4186 (condjump_label): Likewise.
4187 (simplejump_p): Likewise.
4188 (returnjump_p): Likewise.
4189 (onlyjump_p): Likewise.
4190 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
4191 (invert_jump): Likewise.
4192 (condjump_in_parallel_p): Strengthen param from const_rtx to
4194 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
4195 to const rtx_insn *.
4196 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
4197 to const rtx_insn *.
4198 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
4200 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4202 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
4203 above the conditional, and convert the check on GET_CODE to a
4204 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
4205 the conditional. Simplify the conditional by using methods of
4208 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4210 * haifa-sched.c (check_clobbered_conditions): Strengthen local
4211 "link" from rtx to rtx_insn_list *, and use its methods for
4212 clarity and type-safety.
4213 (toggle_cancelled_flags): Likewise.
4214 (restore_last_backtrack_point): Likewise.
4215 (queue_to_ready): Use insn method of "link" in one place.
4216 (schedule_block): Strengthen local "link" from rtx to
4217 rtx_insn_list *, and use its methods for clarity and type-safety.
4219 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4221 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
4222 param "insn" from const_rtx to const rtx_insn *.
4223 (sched_get_reverse_condition_uncached): Likewise.
4224 (sched_get_condition_with_rev): Likewise.
4225 (sched_has_condition_p): Likewise.
4226 (sched_insns_conditions_mutex_p): Likewise for both params.
4227 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
4228 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
4229 (setup_insn_reg_uses): Move local "list" to be more tightly
4230 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
4231 its methods for clarity and type-safety.
4232 (sched_analyze_1): Strengthen local "pending" from rtx to
4233 rtx_insn_list *, and local "pending_mem" from rtx to
4234 rtx_expr_list *. Use methods of each for clarity and type-safety.
4235 (sched_analyze_2): Likewise.
4236 (sched_analyze_insn): Likewise.
4238 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
4239 param from const_rtx to const rtx_insn *.
4240 (sched_insns_conditions_mutex_p): Likewise for both params.
4241 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
4244 * system.h (CONST_CAST_RTX_INSN): New macro.
4246 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4248 * recog.c (peep2_attempt): Strengthen return type from rtx to
4250 (peep2_update_life): Likewise for params "last", "prev", removing
4251 a checked cast made redundant by this.
4252 (peephole2_optimize): Likewise for local "last".
4254 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4256 * basic-block.h (set_block_for_insn): Eliminate this macro in
4258 * rtl.h (set_block_for_insn): New inline function, imposing the
4259 requirement that the "insn" param is an rtx_insn *.
4261 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4263 * caller-save.c (setup_save_areas): Strengthen local "insn" from
4265 * final.c (get_call_reg_set_usage): Likewise for first param,
4266 eliminating a checked cast.
4267 * regs.h (get_call_reg_set_usage): Likewise for first param.
4268 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
4269 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
4270 cast, replacing references to "x" with "call_insn" where
4272 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
4273 rtx_insn *, adding a checked cast.
4275 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4277 * output.h (final_scan_insn): Strengthen first param from rtx to
4280 * final.c (final_scan_insn): Likewise, renaming it back from
4281 "uncast_insn" to "insn", eliminating the checked cast.
4283 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
4284 "vec" with an rtx_sequence * "seq", taking a copy of
4285 "final_sequence", and using methods of "seq" for clarity, and for
4286 type-safety in the calls to final_scan_insn.
4287 * config/mips/mips.c (mips_output_conditional_branch): Use methods
4288 of "final_sequence" for clarity, and for type-safety in the call to
4290 * config/sh/sh.c (print_slot): Strengthen param from rtx to
4291 rtx_sequence * and rename from "insn" to "seq".
4293 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4295 * jump.c (delete_related_insns): Introduce a new local "table" by
4296 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
4297 get_labels method of "table" to simplify access to the labels in
4300 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4302 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
4303 f_minmaxs, f_minmaxd types.
4305 2014-09-05 Richard Biener <rguenther@suse.de>
4307 * cfgloop.c (mark_loop_for_removal): Record former header
4308 when ENABLE_CHECKING.
4309 * cfgloop.h (strut loop): Add former_header member when
4311 * loop-init.c (fix_loop_structure): Sanity check loops
4312 marked for removal if they re-appeared.
4314 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
4316 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
4317 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
4319 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
4320 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
4321 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
4322 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
4323 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
4324 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
4325 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
4326 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
4327 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
4328 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
4329 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
4330 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
4331 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
4332 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
4333 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
4334 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
4335 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
4336 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
4337 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
4338 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
4339 with int{32,16,8}_t.
4341 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
4343 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
4344 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
4345 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
4346 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
4347 Remove temporary __asm__ and reimplement.
4349 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
4351 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
4352 handling cmge, cmgt, cmeq, cmtst.
4354 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
4355 cmlt, cmgeu, cmgtu, cmtst): Remove.
4357 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
4358 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
4359 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
4360 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
4362 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
4364 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
4366 (aarch64_fold_builtin): Update pattern for cmtst.
4368 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
4371 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
4373 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
4374 Switch operands, separate out more cases, refactor.
4376 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
4378 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
4379 argument; rename old version to...
4380 (aarch64_const_vec_all_same_in_range_p): ...this.
4381 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
4383 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
4385 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
4387 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4388 Remove qualifier_const_pointer, update comment.
4390 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
4392 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
4394 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
4396 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
4397 varargs with pointer parameter.
4398 (aarch64_simd_expand_builtin): pass pointer into previous.
4400 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4402 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
4405 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
4407 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
4408 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
4409 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
4410 Replace temporary asm with call to builtin.
4411 (vrbit_p8, vrbitq_p8): New functions.
4413 2014-09-05 Richard Biener <rguenther@suse.de>
4415 * cfgloop.c (mark_loop_for_removal): New function.
4416 * cfgloop.h (mark_loop_for_removal): Declare.
4417 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
4418 (merge_blocks): Likewise.
4419 (duplicate_block): Likewise.
4420 * except.c (sjlj_emit_dispatch_table): Likewise.
4421 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
4422 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
4423 (thread_through_loop_header): Likewise.
4425 2014-09-05 Richard Biener <rguenther@suse.de>
4428 * fold-const.c (try_move_mult_to_index): Remove.
4429 (fold_binary_loc): Do not call it.
4430 * tree-data-ref.c (dr_analyze_indices): Strip conversions
4431 from the base object again.
4433 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
4435 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
4438 2014-09-05 Bin Cheng <bin.cheng@arm.com>
4441 * config/arm/arm.md (setmem): New pattern.
4442 * config/arm/arm-protos.h (struct tune_params): New fields.
4443 (arm_gen_setmem): New prototype.
4444 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4445 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4446 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4447 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4448 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4449 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4450 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4451 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4452 (arm_const_inline_cost): New function.
4453 (arm_block_set_max_insns): New function.
4454 (arm_block_set_non_vect_profit_p): New function.
4455 (arm_block_set_vect_profit_p): New function.
4456 (arm_block_set_unaligned_vect): New function.
4457 (arm_block_set_aligned_vect): New function.
4458 (arm_block_set_unaligned_non_vect): New function.
4459 (arm_block_set_aligned_non_vect): New function.
4460 (arm_block_set_vect, arm_gen_setmem): New functions.
4462 2014-09-05 Bin Cheng <bin.cheng@arm.com>
4464 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
4466 2014-09-05 Bin Cheng <bin.cheng@arm.com>
4468 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4470 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4472 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
4474 * valtrack.h: Adjust.
4476 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4478 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
4480 (emit_jump_insn_before_noloc): Likewise.
4481 (emit_call_insn_before_noloc): Likewise.
4482 (emit_label_before): Likewise.
4483 (emit_label_after): Likewise.
4484 (emit_insn_before_setloc): Likewise.
4485 (emit_jump_insn_before_setloc): Likewise.
4486 (emit_call_insn_before_setloc): Likewise.
4487 (emit_call_insn_before): Likewise.
4490 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4492 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
4493 rtx_insn *, eliminating a checked cast.
4495 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4497 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
4498 const_rtx to const rtx_insn *.
4499 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
4502 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4504 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
4505 fixup_args_size_notes.
4506 * expr.c (fixup_args_size_notes): Strengthen first two params from
4507 rtx to rtx_insn *, eliminating a checked cast.
4508 * rtl.h (fixup_args_size_notes): Strengthen first two params from
4511 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4513 * haifa-sched.c (get_ready_element): Strengthen return type from
4515 * sched-int.h (get_ready_element): Likewise.
4517 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
4520 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
4521 indexed_or_indirect_operand instead of memory_operand.
4522 (floatsi<mode>2_lfiwzx_mem): Ditto.
4524 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4526 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
4527 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
4528 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
4530 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4532 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
4534 (get_last_nonnote_insn): Likewise.
4535 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
4536 * resource.c (find_basic_block): Likewise.
4538 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
4541 2014-09-04 David Malcolm <dmalcolm@redhat.com>
4543 * genattr.c (main): Within the prototype of insn_latency written
4544 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
4545 * genautomata.c (output_internal_maximal_insn_latency_func):
4546 Within the implementation of insn_latency written out to
4547 insn-automata.c, strengthen both params from rtx to rtx_insn *,
4548 eliminating a pair of checked casts.
4550 2014-09-04 David Malcolm <dmalcolm@redhat.com>
4552 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
4555 * rtl.h (eh_returnjump_p): Likewise.
4557 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
4559 * Makefile.in (TAGS): Handle constructs in timevar.def.
4561 2014-09-04 Guozhi Wei <carrot@google.com>
4564 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
4565 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
4566 it into two patterns.
4567 (move_lo_quad_internal_be_<mode>): Likewise.
4569 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4571 * doc/options.texi: Document that Var and Init are required if CPP
4573 * optc-gen.awk: Require Var and Init if CPP is given.
4574 * common.opt (Wpedantic): Use Init.
4576 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4578 * config/rs6000/rs6000.c (special_handling_values): Add
4580 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
4581 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
4582 as swappable with special handling SH_EXTRACT. Remove
4583 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
4585 (adjust_extract): New function.
4586 (handle_special_swappables): Add default to case statement; add
4587 case for SH_EXTRACT that calls adjust_extract.
4588 (dump_swap_insn_table): Handle SH_EXTRACT.
4590 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4592 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
4593 selection of 0th memory doubleword, regardless of endianness.
4595 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4597 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
4599 2014-09-04 Alan Modra <amodra@gmail.com>
4602 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
4605 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
4607 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
4608 * targhooks.c (default_dwarf_frame_reg_mode): New function.
4609 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
4610 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
4611 * doc/tm.texi: Regenerate.
4612 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
4613 selection logic to default_dwarf_frame_reg_mode.
4615 2014-09-03 Marek Polacek <polacek@redhat.com>
4617 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
4620 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
4622 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
4623 the automodified register.
4625 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
4627 * output.h (get_some_local_dynamic_name): Declare.
4628 * final.c (some_local_dynamic_name): New variable.
4629 (get_some_local_dynamic_name): New function.
4630 (final_end_function): Clear some_local_dynamic_name.
4631 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
4632 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4633 (print_operand): Report an error if '%&' is used inappropriately.
4634 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
4635 (get_some_local_dynamic_name_1): Delete.
4636 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
4637 (rs6000_get_some_local_dynamic_name): Delete.
4638 (rs6000_get_some_local_dynamic_name_1): Delete.
4639 (print_operand): Report an error if '%&' is used inappropriately.
4640 * config/s390/s390.c (machine_function): Remove some_ld_name.
4641 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4642 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
4643 * config/sparc/sparc.c: Include rtl-iter.h.
4644 (machine_function): Remove some_ld_name.
4645 (sparc_print_operand): Report an error if '%&' is used inappropriately.
4646 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4648 2014-09-03 Richard Henderson <rth@redhat.com>
4650 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
4651 (aarch64_popwb_pair_reg): Remove.
4652 (aarch64_set_frame_expr): Remove.
4653 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
4654 the restore ops performed by the insns generated.
4655 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
4656 insn. Perform the calls_eh_return addition later; do not attempt to
4657 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
4658 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
4659 special markup at all. Load cfun->machine->frame.hard_fp_offset
4660 into a local variable.
4661 (aarch64_frame_pointer_required): Don't check calls_alloca.
4663 2014-09-03 Richard Biener <rguenther@suse.de>
4665 * opts.c (default_options_optimization): Adjust
4666 max-combine-insns to 2 for -Og.
4668 2014-09-03 Martin Jambor <mjambor@suse.cz>
4671 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
4672 pass-trough jump functions correctly.
4674 2014-09-03 Martin Jambor <mjambor@suse.cz>
4677 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
4678 created replacements in ascending order of offsets.
4679 (known_aggs_to_agg_replacement_list): Likewise.
4681 2014-09-03 Martin Liska <mliska@suse.cz>
4683 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
4684 is set to set uninitialized value for vnresult.
4686 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4688 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
4689 for TARGET_MUST_PASS_IN_STACK.
4691 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4693 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
4694 for TARGET_ARG_PARTIAL_BYTES.
4696 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4698 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
4699 instructions for varargs implementation.
4700 (nds32_expand_epilogue): Emit stack adjustment instructions for
4701 varargs implementation.
4703 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4705 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
4706 optimization detection.
4708 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4710 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
4712 (nds32_function_arg_advance): Deal with nameless arguments.
4713 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
4714 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
4715 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
4717 2014-09-03 Richard Biener <rguenther@suse.de>
4719 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
4720 (struct bb_bitmap_sets): Remove deferred member.
4721 (BB_DEFERRED): Remove.
4722 (defer_or_phi_translate_block): Remove.
4723 (compute_antic_aux): Remove deferring of blocks, assert
4724 proper iteration order.
4725 (compute_antic): Do not set BB_DEFERRED.
4726 (eliminate): Allocate el_avail of proper size initially.
4728 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4730 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
4731 according to the value of crtl->args.pretend_args_size.
4733 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4735 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
4736 varargs information.
4738 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4740 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
4741 implementation for TARGET_SETUP_INCOMING_VARARGS.
4742 (nds32_strict_argument_naming): Refine comment.
4743 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
4744 Define for future implementation.
4746 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
4748 * config/i386/adxintrin.h (_subborrow_u32): New.
4749 (_addcarry_u32): Ditto.
4750 (_subborrow_u64): Ditto.
4751 (_addcarry_u64): Ditto.
4752 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
4754 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
4755 __builtin_ia32_sbb_u64
4757 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4759 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
4761 (nds32_function_arg_advance): Likewise.
4762 (nds32_init_cumulative_args): Likewise.
4763 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
4764 (NDS32_FIRST_GPR_REGNUM): Define.
4765 (NDS32_LAST_GPR_REGNUM): Define.
4766 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
4767 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4768 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4769 (machine_function): Use GRP-specific stuff.
4771 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4773 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
4774 (nds32_expand_epilogue): Likewise.
4775 (nds32_expand_prologue_v3push): Likewise.
4776 (nds32_expand_epilogue_v3pop): Likewise.
4778 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4780 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
4781 v3push/v3pop for variadic function.
4782 * config/nds32/nds32.md (prologue, epilogue): Likewise.
4784 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4786 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4787 Check rtx for varargs implementation.
4788 (nds32_output_stack_pop): Likewise.
4789 * config/nds32/nds32-protos.h: Have a rtx argument for
4790 nds32_output_stack_push and nds32_output_stack_pop.
4791 * config/nds32/nds32.md: Likewise.
4793 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4795 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
4796 to check if FUNC is an interrupt service routine.
4797 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
4799 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4801 * config/nds32/nds32.h (machine_function): Add some fields for variadic
4802 arguments implementation.
4804 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4806 * config/nds32/nds32-predicates.c
4807 (nds32_valid_stack_push_pop): Rename to ...
4808 (nds32_valid_stack_push_pop_p): ... this.
4809 * config/nds32/nds32-protos.h: Likewise.
4810 * config/nds32/predicates.md: Likewise.
4812 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4814 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
4815 (nds32_emit_stack_v3push): ... this.
4816 (nds32_gen_stack_v3pop): Rename to ...
4817 (nds32_emit_stack_v3pop): ... this and consider CFA restore
4820 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4822 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
4823 (nds32_emit_stack_push_multiple): ... this.
4824 (nds32_gen_stack_pop_multiple): Rename to ...
4825 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
4828 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4831 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
4832 and add a second splitter to handle the remaining cases.
4834 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4836 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
4838 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4840 * cfgexpand.c (label_rtx_for_bb): Change type to
4841 hash_map<basic_block, rtx_code_label *> *.
4842 (expand_gimple_basic_block): Adjust.
4843 (pass_expand::execute): Likewise.
4845 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4847 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
4848 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
4849 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
4850 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
4851 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
4852 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
4853 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
4856 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4858 * alloc-pool.c: Include coretypes.h.
4859 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
4860 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
4861 hash_set instead of htab.
4862 * ggc-page.c (in_gc): New variable.
4863 (ggc_free): Do nothing if a collection is taking place.
4864 (ggc_collect): Set in_gc appropriately.
4865 * ggc.h (gt_ggc_mx(const char *)): New function.
4866 (gt_pch_nx(const char *)): Likewise.
4867 (gt_ggc_mx(int)): Likewise.
4868 (gt_pch_nx(int)): Likewise.
4869 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
4870 (hash_map::hash_entry::pch_nx): Likewise.
4871 (hash_map::hash_entry::pch_nx_helper): Likewise.
4872 (hash_map::hash_map): Adjust.
4873 (hash_map::create_ggc): New function.
4874 (gt_ggc_mx): Likewise.
4875 (gt_pch_nx): Likewise.
4876 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
4877 (default_hashset_traits::pch_nx): Likewise.
4878 (hash_set::hash_entry::ggc_mx): Likewise.
4879 (hash_set::hash_entry::pch_nx): Likewise.
4880 (hash_set::hash_entry::pch_nx_helper): Likewise.
4881 (hash_set::hash_set): Adjust.
4882 (hash_set::create_ggc): New function.
4883 (hash_set::elements): Likewise.
4884 (gt_ggc_mx): Likewise.
4885 (gt_pch_nx): Likewise.
4886 * hash-table.h (hash_table::hash_table): Adjust.
4887 (hash_table::m_ggc): New member.
4888 (hash_table::~hash_table): Adjust.
4889 (hash_table::expand): Likewise.
4890 (hash_table::empty): Likewise.
4891 (gt_ggc_mx): New function.
4892 (hashtab_entry_note_pointers): Likewise.
4893 (gt_pch_nx): Likewise.
4895 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4897 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
4898 built-in definition.
4899 (XVCVUXDDP_SCALE): Likewise.
4900 (XVCVDPSXDS_SCALE): Likewise.
4901 (XVCVDPUXDS_SCALE): Likewise.
4902 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4903 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
4904 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
4905 VSX_BUILTIN_XVCVDPUXDS_SCALE.
4906 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
4908 * config/rs6000/rs6000.c (real.h): New include.
4909 (rs6000_scale_v2df): New function.
4910 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
4911 (UNSPEC_VSX_XVCVUXDDP): Likewise.
4912 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
4913 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
4914 (vsx_xvcvsxddp_scale): New define_expand.
4915 (vsx_xvcvsxddp): New define_insn.
4916 (vsx_xvcvuxddp_scale): New define_expand.
4917 (vsx_xvcvuxddp): New define_insn.
4918 (vsx_xvcvdpsxds_scale): New define_expand.
4919 (vsx_xvcvdpsxds): New define_insn.
4920 (vsx_xvcvdpuxds_scale): New define_expand.
4921 (vsx_xvcvdpuxds): New define_insn.
4922 * doc/extend.texi (vec_ctf): Add new prototypes.
4923 (vec_cts): Likewise.
4924 (vec_ctu): Likewise.
4925 (vec_splat): Likewise.
4926 (vec_div): Likewise.
4927 (vec_mul): Likewise.
4929 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4932 * config/arm/neon.md
4933 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4934 <v_cmp_result>): New pattern.
4935 * config/arm/iterators.md (NEON_VCVT): New int iterator.
4936 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4937 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4938 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4939 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4940 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4942 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4945 * config/arm/iterators.md (FIXUORS): New code iterator.
4946 (VCVT): New int iterator.
4947 (su_optab): New code attribute.
4949 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4951 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4953 * config/aarch64/predicates.md (aarch64_comparison_operation):
4954 New special predicate.
4955 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4956 aarch64_comparison_operation instead of matching an operator.
4957 Update operand numbers.
4958 (csinc3<mode>_insn): Likewise.
4959 (*csinv3<mode>_insn): Likewise.
4960 (*csneg3<mode>_insn): Likewise.
4961 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4962 * config/aarch64/aarch64.c (aarch64_get_condition_code):
4963 Return -1 instead of aborting on invalid condition codes.
4964 (aarch64_print_operand): Update aarch64_get_condition_code callsites
4965 to assert that the returned condition code is valid.
4966 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4968 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
4970 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4971 tree.def, and gimple.def
4973 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4974 Balaji V. Iyer <balaji.v.iyer@intel.com>
4975 Igor Zamyatin <igor.zamyatin@intel.com>
4977 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4978 (__cilkrts_cilk_for_64): Likewise.
4979 * cilk-common.c (declare_cilk_for_builtin): New function.
4980 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4981 __cilkrts_cilk_for_64 bultins.
4982 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4984 (cilk_for_32_fndecl): New define.
4985 (cilk_for_64_fndecl): Likewise.
4986 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4987 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4988 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4989 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4990 GF_OMP_FOR_COMBINED_INTO.
4991 * gimplify.c (gimplify_scan_omp_clauses): Added
4992 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4993 (gimplify_adjust_omp_clauses): Ditto.
4994 (gimplify_omp_for): Added CILK_FOR case.
4995 (gimplify_expr): Ditto.
4996 * omp-low.c: Include cilk.h.
4997 (extract_omp_for_data): Set appropriate kind for
4998 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4999 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
5000 (create_omp_child_function_name): Added second argument to handle
5002 (cilk_for_check_loop_diff_type): New function.
5003 (expand_cilk_for_call): Likewise.
5004 (expand_cilk_for): Likewise.
5005 (create_omp_child_function): Set cilk_for_count; handle the cases when
5006 it is true; call create_omp_child_function_name with second argument.
5007 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
5008 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
5009 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
5010 * tree-nested.c (convert_nonlocal_omp_clauses): Added
5011 OMP_CLAUSE__CILK_FOR_COUNT_ case.
5012 (convert_local_omp_clauses): Ditto.
5013 * tree-pretty-print.c (dump_omp_clause): Added
5014 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
5015 (dump_generic_node): Added CILK_FOR case.
5016 * tree.c (omp_clause_num_ops): New element
5017 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
5018 (omp_clause_code_name): New element _Cilk_for_count_.
5019 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
5020 * tree.def: Add tree code for CILK_FOR.
5022 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
5024 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
5025 (ppc403-compare): Add "exts with dot" case.
5026 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
5027 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
5028 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
5029 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
5030 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
5031 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
5032 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
5033 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5034 cell-cmp-microcoded): Similarly.
5035 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
5036 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
5037 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
5038 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
5039 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
5040 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
5041 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
5042 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
5043 (power6-compare): Add "exts with dot" case.
5044 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
5045 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
5046 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
5048 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
5049 if avoiding Cell microcode.
5050 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
5051 (is_cracked_insn): Ditto.
5052 (insn_must_be_first_in_group): Ditto.
5053 * config/rs6000/rs6000.md (dot): Adjust comment.
5054 (cell_micro): Handle exts+dot.
5055 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
5056 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
5057 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
5058 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
5059 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
5060 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
5061 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
5063 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
5065 * config/rs6000/rs6000.md (QHSI): Delete.
5066 (EXTQI, EXTHI, EXTSI): New mode iterators.
5067 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
5068 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
5069 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
5070 9 anonymous instructions, and 8 splitters): Delete.
5071 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
5072 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
5073 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
5074 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
5075 *zero_extendsi<mode>2_dot2): New.
5077 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
5079 * config/rs6000/rs6000.md (any_extend): New code iterator.
5080 (u, su): New code attributes.
5081 (dmode, DMODE): New mode attributes.
5082 (<su>mul<mode>3_highpart): New.
5083 (*<su>mul<mode>3_highpart): New.
5084 (<su>mulsi3_highpart_le): New.
5085 (<su>muldi3_highpart_le): New.
5086 (<su>mulsi3_highpart_64): New.
5087 (<u>mul<mode><dmode>3): New.
5088 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
5090 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
5093 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
5095 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
5096 *mulsi3_internal2, and two splitters): Delete.
5097 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
5099 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
5101 2014-09-02 Richard Biener <rguenther@suse.de>
5103 PR tree-optimization/62695
5104 * tree-ssa-structalias.c (find_func_clobbers): Add missing
5107 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
5110 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
5112 2014-09-01 Andi Kleen <ak@linux.intel.com>
5114 * file-find.c (add_prefix_begin): Add.
5115 (do_add_prefix): Rename from add_prefix with first argument.
5116 (add_prefix): Add new wrapper.
5117 * file-find.h (add_prefix_begin): Add.
5118 * gcc-ar.c (main): Support -B option.
5120 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5122 * genemit.c: Include dumpfile.h.
5123 (gen_split): Print name of splitter function to dump file.
5125 2014-09-01 Richard Biener <rguenther@suse.de>
5127 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
5128 Use stack auto_vecs for constraint expressions.
5129 (find_func_aliases_for_call): Likewise.
5130 (find_func_aliases): Likewise.
5131 (find_func_clobbers): Likewise.
5133 2014-09-01 Richard Biener <rguenther@suse.de>
5135 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
5136 operands vector in most cases. Remove redundant code.
5138 2014-09-01 Olivier Hainque <hainque@adacore.com>
5140 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
5141 $WIND_BASE instead of designating a harcoded arbitrary home dir.
5142 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
5144 2014-09-01 Richard Biener <rguenther@suse.de>
5146 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
5147 copy_reference_ops_from_call, vn_nary_op_compute_hash,
5148 vn_reference_compute_hash, vn_reference_insert): Remove.
5149 (vn_reference_lookup_call): New function.
5150 * tree-ssa-sccvn.c (vn_reference_compute_hash,
5151 copy_reference_ops_from_ref, copy_reference_ops_from_call,
5152 vn_reference_insert, vn_nary_op_compute_hash): Make static.
5153 (create_reference_ops_from_call): Remove.
5154 (vn_reference_lookup_3): Properly update shared_lookup_references.
5155 (vn_reference_lookup_pieces): Assert that we updated
5156 shared_lookup_references properly.
5157 (vn_reference_lookup): Likewise.
5158 (vn_reference_lookup_call): New function.
5159 (visit_reference_op_call): Use it. Avoid re-building the
5161 (visit_reference_op_load): Remove redundant lookup.
5162 (visit_reference_op_store): Perform special tail-merging work
5163 only when possibly doing tail-merging.
5164 (visit_use): Likewise.
5165 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
5167 2014-09-01 Jakub Jelinek <jakub@redhat.com>
5170 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
5171 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
5172 (find_inc): Revert 2014-08-13 change.
5174 2014-09-01 Marek Polacek <polacek@redhat.com>
5177 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
5178 Change the type of V to unsigned HOST_WIDE_INT.
5180 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
5182 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
5183 the size of byte markers.
5184 (do_shift_rotate): Fix confusion between host, target and marker byte
5186 (verify_symbolic_number_p): Likewise.
5187 (find_bswap_or_nop_1): Likewise.
5188 (find_bswap_or_nop): Likewise.
5190 2014-09-01 Olivier Hainque <hainque@adacore.com>
5192 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
5193 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
5195 2014-09-01 Jakub Jelinek <jakub@redhat.com>
5197 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
5198 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
5199 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
5201 2014-09-01 Yury Gribov <y.gribov@samsung.com>
5205 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
5206 (build_check_stmt): Likewise.
5207 (instrument_strlen_call): Likewise.
5208 (asan_expand_check_ifn): Likewise and fix types.
5209 (maybe_cast_to_ptrmode): New function.
5211 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5213 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
5215 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5217 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
5219 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
5221 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
5222 prefix to function labels when generating fast indirect calls.
5224 2014-08-30 David Malcolm <dmalcolm@redhat.com>
5228 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
5229 param back from rtx_insn * to rtx. Rename param from "label" to
5230 "label_or_return", reintroducing "label" as an rtx_insn * after
5231 we've ensured it's not a RETURN.
5232 (first_active_target_insn): Likewise for return type and param;
5233 add a checked cast to rtx_insn * once we've ensured "insn" is not
5235 (steal_delay_list_from_target): Convert param "pnew_thread" back
5236 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
5238 (own_thread_p): Convert param "thread" back from an rtx_insn * to
5239 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
5240 cast once we've established we're not dealing with a RETURN,
5241 renaming subsequent uses of "thread" to "thread_insn".
5242 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
5244 (follow_jumps): Convert return type and param "label" from
5245 rtx_insn * back to rtx. Move initialization of "value" to after
5246 the handling for ANY_RETURN_P, adding a checked cast there to
5247 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
5248 rename to "this_label_or_return", reintroducing "this_label" as
5249 an rtx_insn * once we've handled the case where it could be an
5251 (fill_slots_from_thread): Rename param "thread" to
5252 "thread_or_return", converting from an rtx_insn * back to an rtx.
5253 Reintroduce name "thread" as an rtx_insn * local with a checked
5254 cast once we've handled the case of it being an ANY_RETURN_P.
5255 Convert local "new_thread" from an rtx_insn * back to an rtx.
5256 Add a checked cast when assigning to "trial" from "new_thread".
5257 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
5258 checked cast to rtx_insn * from "new_thread" when invoking
5260 (fill_eager_delay_slots): Convert locals "target_label",
5261 "insn_at_target" from rtx_insn * back to rtx.
5262 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
5263 (relax_delay_slots): Convert locals "trial", "target_label" from
5264 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
5265 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
5266 invoking update_block.
5267 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
5268 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
5270 * resource.h (mark_target_live_regs): Undo erroneous conversion
5271 of second param of r214693, converting it back from rtx_insn * to
5272 rtx, since it could be a RETURN.
5274 * resource.c (find_dead_or_set_registers): Similarly, convert
5275 param "jump_target" back from an rtx_insn ** to an rtx *, as we
5276 could be writing back a RETURN. Rename local rtx_insn * "next" to
5277 "next_insn", and introduce "lab_or_return" as a local rtx,
5278 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
5279 (mark_target_live_regs): Undo erroneous conversion
5280 of second param of r214693, converting it back from rtx_insn * to
5281 rtx, since it could be a RETURN. Rename it from "target" to
5282 "target_maybe_return", reintroducing the name "target" as a local
5283 rtx_insn * with a checked cast, after we've handled the case of
5286 2014-08-29 DJ Delorie <dj@redhat.com>
5288 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
5289 pointer size up to a power of two.
5290 * defaults.h (DWARF2_ADDR_SIZE): Round up.
5291 (POINTER_SIZE_UNITS): New, rounded up value.
5292 * dwarf2asm.c (size_of_encoded_value): Use it.
5293 (dw2_output_indirect_constant_1): Likewise.
5294 * expmed.c (init_expmed_one_conv): We now know the sizes of
5296 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
5297 * optabs.c (expand_float): Use precision, not size.
5298 (expand_fix): Likewise.
5299 * simplify-rtx (simplify_unary_operation_1): Likewise.
5300 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5301 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
5302 (default_assemble_integer) Likewise.
5303 (dump_tm_clone_pairs): Likewise.
5304 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
5305 * var-tracking.c (adjust_mems): Allow partial-int modes also.
5306 (prepare_call_arguments): Likewise.
5307 * stor-layout.c (finalize_type_size): Preserve precision.
5308 (layout_type): Use precision, not size.
5310 * expr.c (convert_move): If the target has an explicit converter,
5313 2014-08-29 David Malcolm <dmalcolm@redhat.com>
5315 * gdbinit.in: Skip various inline functions in rtl.h when
5318 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
5321 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
5323 2014-08-29 Richard Biener <rguenther@suse.de>
5325 PR tree-optimization/62291
5326 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
5327 exactly the vector size needed and use quick_push.
5328 (phi_translate_1): Adjust comment.
5329 (valid_in_sets): Remove block argument and remove pointless
5331 (dependent_clean): Adjust for removal of block argument.
5333 (compute_antic_aux): Likewise.
5334 (compute_partial_antic_aux): Likewise.
5336 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
5337 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5338 Anna Tikhonova <anna.tikhonova@intel.com>
5339 Ilya Tocar <ilya.tocar@intel.com>
5340 Andrey Turetskiy <andrey.turetskiy@intel.com>
5341 Ilya Verbin <ilya.verbin@intel.com>
5342 Kirill Yukhin <kirill.yukhin@intel.com>
5343 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5345 * config/i386/sse.md
5346 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
5347 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
5348 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
5349 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
5351 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
5352 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5353 Anna Tikhonova <anna.tikhonova@intel.com>
5354 Ilya Tocar <ilya.tocar@intel.com>
5355 Andrey Turetskiy <andrey.turetskiy@intel.com>
5356 Ilya Verbin <ilya.verbin@intel.com>
5357 Kirill Yukhin <kirill.yukhin@intel.com>
5358 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5360 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
5361 * config/i386/sse.md
5362 (define_mode_iterator VI4_128_8_256): New.
5363 (define_mode_iterator VI2_128_4_256): Ditto.
5364 (define_mode_iterator PMOV_DST_MODE): Rename into
5365 (define_mode_iterator PMOV_DST_MODE_1): this.
5366 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
5367 Use PMOV_DST_MODE_1 mode iterator.
5368 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
5370 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
5372 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
5373 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
5374 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
5375 (define_mode_iterator PMOV_DST_MODE_2): New.
5376 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
5377 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
5378 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
5380 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
5381 (define_mode_attr pmov_dst_3): Ditto.
5382 (define_mode_attr pmov_dst_zeroed_3): Ditto.
5383 (define_mode_attr pmov_suff_3): Ditto.
5384 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
5385 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
5386 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
5387 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
5388 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
5389 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
5390 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
5391 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
5392 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
5393 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
5394 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
5395 (define_mode_attr pmov_dst_4): Ditto.
5396 (define_mode_attr pmov_dst_zeroed_4): Ditto.
5397 (define_mode_attr pmov_suff_4): Ditto.
5398 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
5399 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
5400 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
5401 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
5402 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
5403 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
5404 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
5405 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
5406 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
5407 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
5408 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
5410 2014-08-29 Richard Biener <rguenther@suse.de>
5412 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
5413 NON_LVALUE_EXPR in gimple.
5415 2014-08-29 Richard Biener <rguenther@suse.de>
5418 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
5419 from previous refactoring.
5420 (gimple_fold_builtin_strncpy): Likewise.
5422 2014-08-29 David Malcolm <dmalcolm@redhat.com>
5425 * function.c (assign_parm_setup_reg): Remove erroneous checked
5426 cast to rtx_insn * on result of gen_extend_insn in favor of
5427 introducing a new local rtx "pat".
5429 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5431 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
5433 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
5435 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5437 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
5438 (next_insn): Likewise.
5439 * emit-rtl.c (next_insn): Likewise.
5440 (previous_insn): Likewise.
5441 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
5442 "insn" and "next" from rtx to rtx_insn *.
5443 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
5444 "insn", "insn1", "vliw_start", "prologue_end_note",
5445 "last_insn_in_packet".
5447 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5449 * shrink-wrap.h (active_insn_between): Strengthen both params from
5451 * function.c (active_insn_between): Likewise.
5453 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5455 * genattr.c (main): When writing out insn-attr.h, strengthen param
5456 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
5457 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
5458 writing out the definition of dfa_clear_single_insn_cache to the
5459 generated insn-automata.c
5461 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5463 * resource.h (clear_hashed_info_for_insn): Strengthen param from
5465 (incr_ticks_for_insn): Likewise.
5466 (init_resource_info): Likewise.
5468 * resource.c (init_resource_info): Likewise.
5469 (clear_hashed_info_for_insn): Likewise.
5470 (incr_ticks_for_insn): Likewise.
5472 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
5474 (steal_delay_list_from_target): Use methods of "seq".
5475 (try_merge_delay_insns): Use methods of "merged_insns".
5476 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
5477 (reorg_redirect_jump): Likewise for param "jump".
5479 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5481 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
5483 * config/s390/s390.c (s390_split_branches): Eliminate top-level
5484 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
5486 (s390_mainpool_finish): In three places, split out a local rtx
5487 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
5488 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
5489 and split another local rtx "insn" out into rtx "pat" and
5491 * config/sh/sh.c (output_branchy_insn): Rather than working
5492 directly on operands[9], introduce local rtx_code_label *
5493 variables named "lab" in two places, working on them, and then
5494 assigning them to operands[9], so that the intervening operations
5495 are known by the type system to be on insns.
5497 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5499 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
5502 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
5503 in invocation of INSN_HAS_LOCATION.
5505 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5507 * config/rs6000/altivec.h (vec_xl): New #define.
5508 (vec_xst): Likewise.
5509 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
5510 (XXSPLTD_V2DI): Likewise.
5511 (DIV_V2DI): Likewise.
5512 (UDIV_V2DI): Likewise.
5513 (MUL_V2DI): Likewise.
5514 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5515 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
5516 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
5517 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
5518 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
5519 (UNSPEC_VSX_DIVSD): Likewise.
5520 (UNSPEC_VSX_DIVUD): Likewise.
5521 (UNSPEC_VSX_MULSD): Likewise.
5522 (vsx_mul_v2di): New insn-and-split.
5523 (vsx_div_v2di): Likewise.
5524 (vsx_udiv_v2di): Likewise.
5525 (vsx_xxspltd_<mode>): New insn.
5527 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5529 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
5531 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
5532 (NEXT_INSN): Likewise.
5533 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
5534 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
5536 (no_labels_between_p): Likewise for both params.
5538 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
5539 cast when using NEXT_INSN on operands[2].
5540 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
5541 "insn" from rtx to rtx_insn *, adding a checked cast.
5542 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
5544 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
5546 (arc_text_label): Likewise for param "insn".
5547 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
5549 (arc_ccfsm_record_condition): Likewise for param "jump".
5550 (arc_text_label): Likewise for local "label".
5551 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
5552 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
5553 a method for typesafety. Add a checked cast.
5554 * config/arc/constraints.md (Clb): Add a checked cast when getting
5555 the CODE_LABEL from a LABEL_REF.
5556 * config/arm/arm.c (require_pic_register): Strengthen locals
5557 "seq", "insn" from rtx to rtx_insn *.
5558 (create_fix_barrier): Likewise for locals "selected", "next".
5559 (thumb1_reorg): Likewise for locals "prev", "insn".
5560 (arm_expand_prologue): Likewise for local "last".
5561 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
5563 (thumb2_output_casesi): Likewise for operands[2].
5564 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
5565 strengthen local "insn" from rtx to rtx_insn *.
5566 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
5567 type and param "insn".
5568 (find_prev_insn_start): Likewise.
5569 (hwloop_optimize): Likewise for locals "insn", "last_insn",
5571 (gen_one_bundle): Likewise for loal "t".
5572 (find_load): Likewise for param "insn".
5573 (workaround_speculation): Likewise for locals "insn", "next",
5574 "target", "next_tgt".
5575 * config/c6x/c6x.c (assign_reservations): Likewise for both params
5576 and for locals "insn", "within", "last".
5577 (count_unit_reqs): Likewise for params "head", "tail" and local
5579 (try_rename_operands): Likewise for params "head", "tail".
5580 (reshuffle_units): Likewise for locals "head", "tail", "insn".
5581 (struct c6x_sched_context): Likewise for fields
5582 "last_scheduled_insn", "last_scheduled_iter0".
5583 (init_sched_state): Replace NULL_RTX with NULL.
5584 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
5586 (undo_split_delayed_nonbranch): Likewise for param and for local
5588 (conditionalize_after_sched): Likewise for local "insn".
5589 (bb_earliest_end_cycle): Likewise.
5590 (filter_insns_above): Likewise for locals "insn", "next".
5591 (hwloop_optimize): Remove redundant checked cast.
5592 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
5593 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
5595 (cris_simple_epilogue): Likewise.
5596 (cris_expand_prologue): Likewise.
5597 (cris_expand_epilogue): Likewise.
5598 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
5599 local "insn" from rtx to rtx_insn *.
5600 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
5601 (struct frv_packet_group): Likewise for the elements within array
5602 fields "insns", "sorted", and for field "nop".
5603 (frv_packet): Likewise for the elements within array field
5605 (frv_add_insn_to_packet): Likewise for param "insn".
5606 (frv_insert_nop_in_packet): Likewise for param "insn" and local
5608 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
5609 (frv_sort_insn_group_1): Likewise for local "insn".
5610 (frv_optimize_membar_local): Likewise.
5611 (frv_align_label): Likewise for locals "x", "last", "barrier",
5613 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
5615 (ia64_sched_init): Likewise for local "insn".
5616 (scheduled_good_insn): Likewise for param "last".
5617 (struct _ia64_sched_context): Likewise for field
5618 "last_scheduled_insn".
5619 (ia64_init_sched_context): Replace NULL_RTX with NULL.
5620 (struct bundle_state): Likewise for field "insn".
5621 (issue_nops_and_insn): Likewise for param "insn".
5622 (get_next_important_insn): Likewise for return type and both
5624 (ia64_add_bundle_selector_before): Likewise for param "insn".
5625 (bundling): Likewise for params "prev_head_insn", "tail" and
5626 locals "insn", "next_insn", "b". Eliminate top-level local rtx
5627 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
5628 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
5629 Strengthen final param from rtx to rtx_insn *.
5630 (iq2000_move_1word): Likewise for second param.
5631 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
5632 param "cur_insn" and local "next_insn".
5633 (iq2000_move_1word): Likewise for param "insn".
5634 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
5635 casts when using NEXT_INSN on operands[1].
5636 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
5637 "insn" from rtx to rtx_insn *.
5638 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
5639 "x", introducing local rtx_insn * "insn" for when working with the
5640 CODE_LABEL of the LABEL_REF.
5641 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
5643 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
5645 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
5647 (conditionalize_block): Likewise for return type and param.
5648 (mcore_is_dead): Likewise for param "first" and local "insn".
5649 (emit_new_cond_insn): Likewise for return type.
5650 (conditionalize_block): Likewise for return type, param, and
5651 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
5653 (conditionalize_optimization): Likewise for local "insn".
5654 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
5656 * config/microblaze/microblaze.md: Add checked casts when using
5658 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
5659 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
5660 and rtx_insn * "insn".
5661 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
5662 checked cast when using NEXT_INSN on operands[2].
5663 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
5664 local "insn" from rtx to rtx_insn *.
5665 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
5667 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
5668 Add a checked cast when using NEXT_INSN on operands[1].
5669 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
5671 (pa_output_cbranch): Likewise for final param.
5672 (pa_output_lbranch): Likewise for second param.
5673 (pa_output_bb): Likewise for third param.
5674 (pa_output_bvb): Likewise.
5675 (pa_output_dbra): Likewise for second param.
5676 (pa_output_movb): Likewise.
5677 (pa_output_parallel_movb): Likewise.
5678 (pa_output_parallel_addb): Likewise.
5679 (pa_output_millicode_call): Likewise for first param.
5680 (pa_output_mul_insn): Likewise for second param.
5681 (pa_output_div_insn): Likewise for third param.
5682 (pa_output_mod_insn): Likewise for second param.
5683 (pa_jump_in_call_delay): Likewise for param.
5684 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
5685 (pa_output_div_insn): Likewise.
5686 (pa_output_mod_insn): Likewise.
5687 (pa_output_cbranch): Likewise.
5688 (pa_output_lbranch): Likewise.
5689 (pa_output_bb): Likewise.
5690 (pa_output_bvb): Likewise.
5691 (pa_output_dbra): Likewise.
5692 (pa_output_movb): Likewise.
5693 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
5694 to simplify and for typesafety.
5695 (pa_output_call): Use method of rtx_sequence *.
5696 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
5697 (pa_jump_in_call_delay): Likewise.
5698 (pa_output_parallel_movb): Likewise.
5699 (pa_output_parallel_addb): Likewise.
5700 (pa_following_call): Likewise.
5701 (pa_combine_instructions): Likewise for locals "anchor",
5703 (pa_can_combine_p): Likewise for params "anchor", "floater" and
5704 locals "start", "end".
5705 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
5706 param "insn" and local "local_insn".
5707 (picochip_final_prescan_insn): Likewise for local "local_insn".
5708 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
5710 (uses_TOC): Likewise.
5711 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
5712 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
5713 splitting out to more tightly-scoped locals, 3 as rtx and one as
5715 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
5717 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
5719 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
5721 (fixup_addr_diff_vecs): Likewise.
5722 (reg_unused_after): Likewise for param 2.
5723 (sh_can_redirect_branch): Likewise for both params.
5724 (check_use_sfunc_addr): Likewise for param 1.
5725 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
5726 (find_barrier): Likewise for local "last_got".
5727 (gen_block_redirect): Likewise for return type, param "jump" and
5728 locals "prev", "scan", "next", "insn".
5729 (struct far_branch): Likewise for fields "near_label",
5730 "insert_place", "far_label".
5731 (gen_far_branch): Likewise for local "jump".
5732 (fixup_addr_diff_vecs): Likewise for param "first" and locals
5734 (barrier_align): Likewise for param and for locals "prev", "x".
5735 Introduce local rtx_sequence * "prev_seq" and use insn method for
5736 typesafety and clarity.
5737 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
5738 (get_dest_uid): Likewise for local "dest".
5739 (split_branches): Likewise for locals "next", "beyond", "label",
5740 "block", "far_label". Add checked casts when assigning to
5741 bp->far_label and "far_label".
5742 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
5743 (sequence_insn_p): Likewise.
5744 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
5745 more loop-scoped rtx "insn" when walking LABEL_REFS.
5746 (sh_can_redirect_branch): Strengthen both params from rtx to
5748 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
5749 new local rtx_sequence * "seq" via a dyn_cast, and use a method
5750 for clarity and typesafety.
5751 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
5752 "insn" from rtx to rtx_insn *.
5753 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
5754 when using NEXT_INSN on the CODE_LABEL in operands[2].
5755 (define_insn "casesi_worker_2"): Likewise.
5756 (define_insn "casesi_shift_media"): Likewise.
5757 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
5759 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
5760 Strengthen field "insn" from rtx to rtx_insn *.
5761 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
5762 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
5763 param "start_insn" and local "start_insn".
5764 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
5766 (find_set_of_reg_bb): Likewise for param "insn".
5767 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
5768 (trace_reg_uses): Likewise for param "start_insn".
5769 (sh_treg_combine::cbranch_trace): Likewise for field
5771 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
5773 (sh_treg_combine::record_set_of_reg): Likewise for param
5774 "start_insn" and local "i".
5775 (sh_treg_combine::can_remove_cstore): Likewise for local
5777 (sh_treg_combine::try_optimize_cbranch): Likewise for param
5779 (sh_treg_combine::execute): Likewise for local "i".
5780 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
5782 (sparc_check_64): Likewise for second param.
5783 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5784 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
5785 dyn_cast, using its insn method for typesafety and clarity.
5786 (empty_delay_slot): Strengthen param "insn" from rtx to
5788 (set_extends): Likewise.
5789 (sparc_check_64): Likewise.
5790 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
5791 for locals "seq", "last_insn".
5792 (combine_bnp): Likewise for param "insn".
5793 (xstormy16_reorg): Likewise for local "insn".
5794 * config/v850/v850.c (substitute_ep_register): Likewise for params
5795 "first_insn", "last_insn" and local "insn".
5796 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
5797 elements of "regs" array, and local "insn".
5798 * except.c (emit_note_eh_region_end): Likewise for param "insn".
5799 * final.c (final_sequence): Strengthen this global from rtx to
5801 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
5803 (final_scan_insn): Update assignment to "final_sequence" to be
5804 from "seq", the cast version of "body", for type-safety.
5805 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
5806 "insns" from rtx to rtx_insn *.
5807 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
5808 * genattr.c (main): When writing out generated insn-attr.h,
5809 strengthen params 1 and 3 of eligible_for_delay,
5810 eligible_for_annul_true, eligible_for_annul_false from rtx to
5812 * genattrtab.c (write_eligible_delay): Likewise when writing out
5813 generated insn-attrtab.c; also local "insn" the generated
5815 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
5817 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
5818 "start_label" from rtx to rtx_insn *.
5819 * ira.c (decrease_live_ranges_number): Likewise for local "p".
5820 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
5821 "insns" and local "insn".
5822 (validate_equiv_mem): Likewise for param "start" and local "insn".
5823 (memref_used_between_p): Likewise for params "start", "end" and
5825 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
5827 * loop-doloop.c (doloop_optimize): Within region guarded by
5828 INSN_P (doloop_pat), introduce a new local rtx_insn *
5829 "doloop_insn" via a checked cast, and use it for typesafety,
5830 eventually writing the value back into doloop_pat.
5831 * output.h (final_sequence): Strengthen this global from rtx to
5833 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
5834 reintroducing "insn" as an rtx_insn * via a checked cast.
5835 Strengthen param "attempt" and local "new_insn"from rtx to
5837 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
5839 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
5840 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
5841 "p" in favor of more tightly-scoped replacements, sometimes rtx
5842 and sometimes rtx_insn *, as appropriate.
5843 (delete_output_reload): Eliminate top-level rtx "i1", splitting
5844 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
5845 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
5846 local "trial" from rtx to rtx_insn *.
5847 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
5848 rtx to rtx_insn *. Strenghten local "pat" from rtx to
5849 rtx_sequence * and use methods for clarity and typesafety.
5850 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
5851 rtx to rtx_insn *. Strenghten local "li" from rtx to
5852 rtx_insn_list * and use its methods for clarity and typesafety.
5853 (steal_delay_list_from_target): Strengthen param "insn" from rtx
5855 (steal_delay_list_from_fallthrough): Likewise.
5856 (try_merge_delay_insns): Likewise for param "thread" and locals
5857 "trial", "next_trial", "delay_insn".
5858 (redundant_insn): Likewise for param "target" and local "trial".
5859 (own_thread_p): Likewise for param "thread" and locals
5860 "active_insn", "insn".
5861 (get_label_before): Likewise for param "insn".
5862 (fill_simple_delay_slots): Likewise for local "new_label"; use
5863 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
5864 (label_before_next_insn): Strengthen return type and local "insn"
5865 from rtx to rtx_insn *.
5866 (relax_delay_slots): Likewise for locals "other", "tmp".
5867 (make_return_insns): Likewise for param "first" and locals "insn",
5868 "jump_insn", "prev". Move declaration of "pat" to its assignment
5869 and strengthen from rtx to rtx_sequence *. Use its methods for
5870 clarity and typesafety.
5871 * rtlanal.c (no_labels_between_p): Strengthen params from
5872 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
5874 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
5875 from const_rtx to const rtx_insn *.
5876 (reg_set_between_p): Rename param "from_insn" to
5877 "uncast_from_insn", and reintroduce "from_insn" as a
5878 const rtx_insn * via a checked cast.
5879 (modified_between_p): Likewise for param "start" as "uncast_start".
5880 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
5881 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
5882 "tmp", head" from rtx to rtx_insn *.
5883 (recompute_rev_top_order): Likewise for local "insn".
5884 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
5885 * store-motion.c (build_store_vectors): Likewise for local "insn".
5886 Strengthen local "st" from rtx to rtx_insn_list * and use methods
5887 for clarity and typesafety.
5888 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
5890 (computation_cost): Likewise for local "seq".
5891 (get_address_cost): Likewise.
5893 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5895 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
5897 (label_is_jump_target_p): Likewise for second param.
5899 * rtlanal.c (tablejump_p): Likewise for param "insn".
5900 (label_is_jump_target_p): Likewise for param "jump_insn".
5902 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5904 * rtl.h (find_first_parameter_load): Strengthen return type and
5905 both params from rtx to rtx_insn *.
5906 * rtlanal.c (find_first_parameter_load): Strengthen return type,
5907 both params and locals "before", "first_set" from rtx to
5908 rtx_insn *. Remove now-redundant cast.
5909 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
5911 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5913 * rtl.h (find_last_value): Delete.
5914 * rtlanal.c (find_last_value): Delete.
5916 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5918 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5919 from rtx to rtx_insn *.
5920 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5921 rtx "note" with new local rtx_insn * "new_head" when calculating
5922 head insn of new basic block.
5923 * combine.c (combine_split_insns): Strengthen return type and local
5924 "ret" from rtx to rtx_insn *.
5925 (likely_spilled_retval_p): Likewise for locals "use" and "p".
5926 (try_combine): Eliminate local "m_split", splitting into new
5927 locals "m_split_insn" and "m_split_pat".
5928 (find_split_point): Strengthen local "seq" from rtx into
5930 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5931 locals "label", "branch".
5932 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5934 (define_expand "umulsi3_highpart"): Likewise for local "insn".
5935 * dse.c (note_add_store_info): Likewise for fields "first",
5937 (note_add_store): Likewise for local "insn".
5938 (emit_inc_dec_insn_before): Likewise for locals "insn",
5940 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5941 (replace_read): Likewise for locals "insns", "this_insn".
5942 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5943 (notice_eh_throw): Likewise for param "insn".
5944 (before_next_cfi_note): Likewise for return type, param, and local
5946 (connect_traces): Likewise for local "note".
5947 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5948 (verify_rtl_sharing): Likewise.
5949 (unshare_all_rtl_in_chain): Likewise for param "insn".
5950 (get_first_nonnote_insn): Likewise for local "insn".
5951 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
5952 "seq" and use its methods to clarify things.
5953 (next_insn): Strengthen return type from rtx to rtx_insn *.
5954 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5955 local rtx_insn * using a checked cast, dropping a checked cast
5956 made redundant by this change. Use a cast to and method of
5957 rtx_sequence to clarify the code.
5958 (previous_insn): Rename param "insn" to "uncast_insn" and
5959 reintroduce "insn" as a local rtx_insn * using a checked cast,
5960 dropping a checked cast made redundant by this change. Use a cast
5961 to and method of rtx_sequence to clarify the code.
5962 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5963 reintroduce "insn" as a local rtx_insn * using a checked cast,
5964 dropping a checked cast made redundant by this change.
5965 (next_nonnote_insn_bb): Likewise.
5966 (prev_nonnote_insn): Likewise.
5967 (prev_nonnote_insn_bb): Likewise.
5968 (next_nondebug_insn): Likewise.
5969 (prev_nondebug_insn): Likewise.
5970 (next_nonnote_nondebug_insn): Likewise.
5971 (prev_nonnote_nondebug_insn): Likewise.
5972 (next_real_insn): Likewise.
5973 (prev_real_insn): Likewise.
5974 (next_active_insn): Likewise.
5975 (prev_active_insn): Likewise.
5976 (next_cc0_user): Likewise. Use rtx_sequence and a method for
5978 (prev_cc0_setter): Likewise.
5979 (try_split): Rename param "trial" to "uncast_trial" and
5980 reintroduce "insn" as a local rtx_insn * using a checked cast,
5981 dropping checked casts made redundant by this change.
5982 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5984 (remove_insn): Rename param "insn" to "uncast_insn" and
5985 reintroduce "insn" as a local rtx_insn * using a checked cast.
5986 (emit_pattern_after_setloc): Likewise for param "after", as
5988 (emit_pattern_after): Likewise. Strengthen local "prev" from
5990 (emit_pattern_before_setloc): Rename param "before" to
5991 "uncast_before" and reintroduce "before" as a local rtx_insn *
5992 using a checked cast. Strengthen locals "first", "last" from
5994 (emit_pattern_before): Likewise rename/cast param "before" to
5995 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5996 * except.c (copy_reg_eh_region_note_forward): Strengthen param
5997 "first" and local "insn" from rtx to rtx_insn *.
5998 (copy_reg_eh_region_note_backward): Likewise for param "last"
6000 * expr.c (fixup_args_size_notes): Rename param "last" to
6001 "uncast_last" and reintroduce "last" as a local rtx_insn *
6002 using a checked cast. Strengthen local "insn" from rtx to
6004 * function.c (set_insn_locations): Strengthen param "insn" from
6006 (record_insns): Likewise for param "insns" and local "tmp".
6007 (active_insn_between): Rename param "tail" to
6008 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
6009 using a checked cast.
6010 (thread_prologue_and_epilogue_insns): Split out top-level local
6011 rtx "seq" into three different rtx_insn * locals. Strengthen
6012 local "prologue_seq" from rtx to rtx_insn *.
6013 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
6014 from rtx to rtx_insn *.
6015 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
6016 (priority): Likewise for locals "prev_first", "twin".
6017 (setup_insn_max_reg_pressure): Likewise for param "after".
6018 (sched_setup_bb_reg_pressure_info): Likewise.
6019 (no_real_insns_p): Strengthen params from const_rtx to
6021 (schedule_block): Strengthen local "next_tail" from rtx to
6023 * ifcvt.c (find_active_insn_before): Strengthen return type and
6024 param "insn" from rtx to rtx_insn *.
6025 (find_active_insn_after): Likewise.
6026 (cond_exec_process_insns): Likewise for param "start" and local "insn".
6027 (cond_exec_process_if_block): Likewise for locals "then_start",
6028 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
6029 (noce_process_if_block): Likewise for local "jump".
6030 (merge_if_block): Likewise for two locals named "end".
6031 (cond_exec_find_if_block): Likewise for local "last_insn".
6032 * jump.c (delete_related_insns): Rename param "insn" to
6033 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
6034 checked cast. Strengthen local "p" from rtx to rtx_insn *.
6035 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
6037 (split_reg): Likewise.
6038 * lra.c (lra_process_new_insns): Likewise.
6039 * modulo-sched.c (permute_partial_schedule): Strengthen param
6040 "last" from rtx to rtx_insn *.
6041 * optabs.c (add_equal_note): Likewise for param "insns" and local
6043 (expand_binop_directly): Add checked casts to rtx_insn * within
6044 NEXT_INSN (pat) uses.
6045 (expand_unop_direct): Likewise.
6046 (maybe_emit_unop_insn): Likewise.
6047 * recog.c (peep2_attempt): Strengthen locals "last",
6048 "before_try", "x" from rtx to rtx_insn *.
6049 * reorg.c (optimize_skip): Strengthen return type and local
6050 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
6051 and locals "trial", "next_trial" from rtx to rtx_insn *.
6052 * resource.c (next_insn_no_annul): Strengthen return type and
6053 param "insn" from rtx to rtx_insn *. Use a cast to and method of
6054 rtx_sequence to clarify the code.
6055 (mark_referenced_resources): Add a checked cast to rtx_insn *
6056 within PREV_INSN (x).
6057 (find_dead_or_set_registers): Strengthen return type, param
6058 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
6059 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
6061 (mark_target_live_regs): Strengthen params "insns" and "target",
6062 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
6063 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
6065 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
6066 from rtx to rtx_insn *.
6067 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
6068 from rtx to rtx_insn *.
6069 (copy_reg_eh_region_note_backward): Likewise.
6070 (unshare_all_rtl_in_chain): Likewise for sole param.
6071 (dump_rtl_slim): Strengthen second and third params from const_rtx
6072 to const rtx_insn *.
6073 * sched-deps.c (sched_free_deps): Strengthen params "head" and
6074 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
6075 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
6076 "next_tail" from rtx to rtx_insn *.
6077 (begin_move_insn): Likewise for local "next".
6078 * sched-int.h (sched_free_deps): Likewise for first and second
6080 (no_real_insns_p): Strengthen both params from const_rtx to
6082 (sched_setup_bb_reg_pressure_info): Strengthen second params from
6084 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
6086 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
6087 and locals "insn", "tail" from const_rtx to const rtx_insn *.
6088 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
6090 (debug_rtl_slim): Strengthen params "first" and "last" from
6091 const_rtx to const rtx_insn *.
6092 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
6093 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
6094 (convert_to_simple_return): Likewise for param "returnjump".
6095 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
6097 (convert_to_simple_return): Likewise for param "returnjump".
6098 * valtrack.c (propagate_for_debug): Likewise for params
6100 * valtrack.h (propagate_for_debug): Likewise for second param.
6102 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6104 * output.h (insn_current_reference_address): Strengthen param
6105 from rtx to rtx_insn *.
6106 * final.c (insn_current_reference_address): Likewise.
6108 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6110 * basic-block.h (inside_basic_block_p): Strengthen param from
6111 const_rtx to const rtx_insn *.
6112 * cfgbuild.c (inside_basic_block_p): Likewise.
6114 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6116 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
6118 (get_trace_info): Likewise for param "insn".
6119 (save_point_p): Likewise.
6120 (maybe_record_trace_start): Likewise for both params.
6121 (maybe_record_trace_start_abnormal): Likewise.
6122 (create_trace_edges): Likewise for sole param and for three of the
6124 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
6125 to rtx_insn *, and update a call to pat->element to pat->insn.
6127 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6129 * function.h (struct expr_status): Convert field "x_forced_labels"
6130 from rtx_expr_list * to rtx_insn_list *.
6132 * cfgbuild.c (make_edges): Convert local "x" from an
6133 rtx_expr_list * to an rtx_insn_list *, replacing use of
6134 "element" method with "insn" method.
6135 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6136 * except.c (sjlj_emit_dispatch_table): Replace use of
6137 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
6139 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
6140 rtx_expr_list * to an rtx_insn_list *, replacing use of
6141 "element" method with "insn" method.
6142 * reload1.c (set_initial_label_offsets): Likewise for local "x".
6143 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
6144 rtx_insn *, adding a checked cast. Replace use of
6145 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
6147 (expand_label): Likewise for local "label_r".
6149 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6151 * function.h (struct rtl_data): Convert field
6152 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
6154 * rtl.h (remove_node_from_insn_list): New prototype.
6156 * builtins.c (expand_builtin): When prepending to
6157 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6159 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
6160 to rtx_insn_list *, and use its "insn" method rather than
6162 * cfgrtl.c (delete_insn): Use new function
6163 remove_node_from_insn_list rather than
6164 remove_node_from_expr_list.
6165 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
6166 to rtx_insn_list *, and use its "insn" method rather than
6168 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6169 * reload1.c (set_initial_label_offsets): Likewise for local "x".
6170 * rtlanal.c (remove_node_from_insn_list): New function, adapted
6171 from remove_node_from_expr_list.
6172 * stmt.c (expand_label): When prepending to
6173 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6176 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6178 * function.h (struct rtl_data): Strengthen fields "x_return_label"
6179 and "x_naked_return_label" from rtx to rtx_code_label *.
6181 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6183 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
6184 (SET_NEXT_INSN): Likewise.
6185 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
6187 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
6188 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
6189 to split out the SEQUENCE from local "bundle", strengthening the
6190 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
6191 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
6192 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
6193 and the type of the elements of the "slot" array from rtx to
6195 (reorg_split_calls): Likewise for locals "insn" and "next", and
6196 the type of the elements of the "slot" array.
6198 * config/frv/frv.c (frv_nops): Likewise for the elements of this
6200 (frv_function_prologue): Likewise for locals "insn", "next",
6202 (frv_register_nop): Introduce a local "nop_insn" to be the
6203 rtx_insn * containing rtx "nop".
6205 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
6206 used as an insn and sometimes as a pattern, so rename it to
6207 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
6208 using it where dealing with the core insn.
6210 * config/picochip/picochip.c (reorder_var_tracking_notes):
6211 Strengthen locals "insn", "next", "last_insn", "queue",
6212 "next_queue", "prev" from rtx to rtx_insn *.
6214 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
6215 the second param is an rtx_insn ** rather than an rtx **.
6216 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
6217 from rtx to rtx_sequence *, and introduce local named "sequence",
6218 using methods of rtx_sequence to clarify the code.
6219 (remove_insn): Introduce local rtx_sequence * named "sequence" and
6221 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
6222 Rename param "after" to "uncast_after", reintroducing "after" as a
6223 local rtx_insn * with a checked cast.
6224 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
6225 reintroducing "after" as a local rtx_insn * with a checked cast.
6226 Strengthen local "last" from rtx to rtx_insn * and remove the
6227 now-redundant checked casts.
6228 (copy_delay_slot_insn): Strengthen return type and param from rtx
6231 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
6232 "last" from rtx to rtx_insn *.
6234 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6236 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
6237 param from rtx to rtx_insn *.
6239 * emit-rtl.c (copy_delay_slot_insn): Likewise.
6241 * reorg.c (skip_consecutive_labels): Strengthen return type, param
6242 and local "insn" from rtx to rtx_insn *.
6243 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
6244 (unfilled_slots_next): Likewise.
6245 (function_return_label): Strengthen from rtx to rtx_code_label *.
6246 (function_simple_return_label): Likewise.
6247 (first_active_target_insn): Strengthen return type and param from
6249 (find_end_label): Strengthen return type from rtx to
6250 rtx_code_label *; strengthen locals as appropriate.
6251 (emit_delay_sequence): Strengthen return type, param "insn" and
6252 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
6253 and local "li" from rtx to rtx_insn_list *, using methods of
6254 rtx_insn_list for clarity and typesafety.
6255 (add_to_delay_list): Strengthen return type and param "insn" from
6256 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
6257 rtx_insn_list * and use methods of rtx_insn_list.
6258 (delete_from_delay_slot): Strengthen return type, param "insn",
6259 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
6260 Strengthen local "seq" from rtx to rtx_sequence *, and local
6261 "delay_list" from rtx to rtx_insn_list *, using methods of
6262 rtx_sequence for clarity and type-safety.
6263 (delete_scheduled_jump): Add checked cast when invoking
6264 delete_from_delay_slot. Strengthen local "trial" from rtx to
6266 (optimize_skip): Strengthen return type and local "delay_list"
6267 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
6269 (steal_delay_list_from_target): Strengthen return type, param
6270 "delay_list" and local "new_delay_list" from rtx to
6271 rtx_insn_list *. Strengthen param "seq" from rtx to
6272 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
6274 Split out local "temp" into multiple more-tightly scoped locals:
6275 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
6276 of rtx_insn_list and rtx_sequence for clarity and typesafety.
6277 Strengthen locals named "trial" from rtx to rtx_insn *.
6278 (steal_delay_list_from_fallthrough): Strengthen return type and
6279 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
6280 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
6281 Strengthen local "trial" from rtx to rtx_insn *.
6282 (try_merge_delay_insns): Strength local "merged_insns" from rtx
6283 to rtx_insn_list * and use its methods. Strengthen local "pat"
6284 from rtx to rtx_sequence * and use its methods. Strengthen locals
6285 "dtrial" and "new_rtx" from rtx to rtx_insn *.
6286 (get_label_before): Strengthen return type and local "label" from
6288 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
6289 "next_trial", "next", prev". Strengthen local "delay_list" from
6290 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
6292 (follow_jumps): Strengthen return type, param "label" and locals
6293 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
6294 (fill_slots_from_thread): Strengthen return type, param
6295 "delay_list" from rtx to rtx_insn_list *. Strengthen params
6296 "insn", "thread", "opposite_thread" and locals "new_thread",
6297 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
6298 "sequence" from a checked cast to rtx_sequence so that we can call
6299 steal_delay_list_from_target and steal_delay_list_from_fallthrough
6300 with an rtx_sequence *.
6301 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
6302 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
6303 Strengthen local "delay_list" from rtx to rtx_insn_list *.
6304 (relax_delay_slots): Strengthen param "first" and locals "insn",
6305 "next", "trial", "delay_insn", "target_label" from rtx to
6306 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
6307 Introduce a local "trial_seq" for PATTERN (trial) of type
6308 rtx_sequence *, in both cases using methods of rtx_sequence.
6309 (dbr_schedule): Strengthen param "first" and locals "insn",
6310 "next", "epilogue_insn" from rtx to rtx_insn *.
6312 2014-08-28 Richard Biener <rguenther@suse.de>
6314 PR tree-optimization/62283
6315 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6316 Do not peel loops for alignment where the vector loop likely
6317 doesn't run at least VF times.
6319 2014-08-28 Bin Cheng <bin.cheng@arm.com>
6321 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
6322 important_candidates. Consider all important candidates if
6323 IVS doesn't give any result. Remove check on ivs->upto.
6324 (try_add_cand_for): Call iv_ca_add_use only once.
6326 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6327 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6328 Anna Tikhonova <anna.tikhonova@intel.com>
6329 Ilya Tocar <ilya.tocar@intel.com>
6330 Andrey Turetskiy <andrey.turetskiy@intel.com>
6331 Ilya Verbin <ilya.verbin@intel.com>
6332 Kirill Yukhin <kirill.yukhin@intel.com>
6333 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6335 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
6336 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
6338 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
6339 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6340 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6341 (define_insn "*mul<mode>3"): Add EVEX version.
6343 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6344 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6345 Anna Tikhonova <anna.tikhonova@intel.com>
6346 Ilya Tocar <ilya.tocar@intel.com>
6347 Andrey Turetskiy <andrey.turetskiy@intel.com>
6348 Ilya Verbin <ilya.verbin@intel.com>
6349 Kirill Yukhin <kirill.yukhin@intel.com>
6350 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6352 * config/i386/sse.md
6353 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
6354 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
6355 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
6356 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
6357 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
6358 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
6359 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
6360 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
6361 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
6362 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
6363 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
6364 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
6365 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
6366 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
6367 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
6368 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
6370 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6371 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6372 Anna Tikhonova <anna.tikhonova@intel.com>
6373 Ilya Tocar <ilya.tocar@intel.com>
6374 Andrey Turetskiy <andrey.turetskiy@intel.com>
6375 Ilya Verbin <ilya.verbin@intel.com>
6376 Kirill Yukhin <kirill.yukhin@intel.com>
6377 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6379 * config/i386/sse.md
6380 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
6381 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
6382 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
6384 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6385 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6386 Anna Tikhonova <anna.tikhonova@intel.com>
6387 Ilya Tocar <ilya.tocar@intel.com>
6388 Andrey Turetskiy <andrey.turetskiy@intel.com>
6389 Ilya Verbin <ilya.verbin@intel.com>
6390 Kirill Yukhin <kirill.yukhin@intel.com>
6391 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6393 * config/i386/sse.md
6394 (define_mode_iterator VI128_256): New.
6395 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
6397 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6399 Anna Tikhonova <anna.tikhonova@intel.com>
6400 Ilya Tocar <ilya.tocar@intel.com>
6401 Andrey Turetskiy <andrey.turetskiy@intel.com>
6402 Ilya Verbin <ilya.verbin@intel.com>
6403 Kirill Yukhin <kirill.yukhin@intel.com>
6404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6406 * config/i386/sse.md
6407 (define_mode_iterator VI8_256_512): New.
6408 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
6410 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
6411 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
6413 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
6415 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6417 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
6418 pointer to the cumulative reloc value and return the value for
6420 (compute_reloc_for_rtx): Take a const_rtx. Call
6421 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
6422 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
6423 for_each_rtx for the CONST case.
6425 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6427 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
6428 (mark_constants_in_pattern): ...this new function to iterate over
6430 (mark_constants): Update accordingly.
6432 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6434 * varasm.c: Include rtl-iter.h.
6435 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
6436 Remove the pointer to the cumulative hashval_t and just return
6437 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
6438 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6439 Accumulate the hashval_ts here instead of const_rtx_hash_1.
6441 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6443 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
6444 Give real type of data parameter. Remove return value.
6445 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
6446 to iterate over subrtxes.
6448 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6450 * var-tracking.c (use_narrower_mode_test): Turn from being a
6451 for_each_rtx callback to being a function that examines each
6453 (adjust_mems): Update accordingly.
6455 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6457 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
6458 callback to being a function that examines each subrtx itself.
6459 Remove handling of null rtxes.
6460 (add_uses): Update accordingly.
6462 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6464 * var-tracking.c: Include rtl-iter.h.
6465 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
6466 to being a function that examines each subrtx itself.
6467 (use_type): Update accordingly.
6469 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6471 * store-motion.c: Include rtl-iter.h.
6472 (extract_mentioned_regs_1): Delete.
6473 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
6474 for_each_rtx to iterate over subrtxes.
6476 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6478 * sel-sched.c: Include rtl-iter.h
6479 (count_occurrences_1): Delete.
6480 (count_occurrences_equiv): Turn rtxes into const_rtxes.
6481 Use FOR_EACH_SUBRTX rather than for_each_rtx.
6483 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6485 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
6486 * rtlanal.c (tls_referenced_p_1): Delete.
6487 (tls_referenced_p): Take a const_rtx rather than an rtx.
6488 Use FOR_EACH_SUBRTX rather than for_each_rtx.
6490 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6492 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
6493 (for_each_inc_dec): Take an rtx rather than an rtx *.
6494 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
6495 (cselib_record_sets): Likewise.
6496 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
6497 (check_for_inc_dec): Likewise.
6498 * rtlanal.c (for_each_inc_dec_ops): Delete.
6499 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
6500 rather than a pointer to the memory address. Replace
6501 for_each_inc_dec_ops argument with separate function and data
6502 arguments. Abort on non-autoinc addresses.
6503 (for_each_inc_dec_find_mem): Delete.
6504 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
6505 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
6507 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6509 * rtl.h (find_all_hard_regs): Declare.
6510 * rtlanal.c (find_all_hard_regs): New function.
6511 (record_hard_reg_uses_1): Delete.
6512 (record_hard_reg_uses): Use find_all_hard_regs.
6514 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6516 * rtl.h (replace_label_data): Delete.
6517 (replace_label): Take the old label, new label and update-nuses flag
6518 as direct arguments. Return void.
6519 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
6520 * rtlanal.c (replace_label): Update interface as above. Handle
6521 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
6522 iterator. Use FOR_EACH_SUBRTX_PTR.
6524 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6526 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
6527 with const_rtx parameters.
6528 * varasm.c (get_pool_constant): Likewise.
6529 * rtlanal.c (rtx_referenced_p_1): Delete.
6530 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6531 Assert that the rtx we're looking for is nonnull. Allow searches
6532 for constant pool SYMBOL_REFs.
6534 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6536 * reload1.c: Include rtl-iter.h.
6537 (note_reg_elim_costly): Turn from being a for_each_rtx callback
6538 to being a function that examines each subrtx itself.
6539 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
6541 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6543 * regcprop.c (cprop_find_used_regs_1): Delete.
6544 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6546 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6548 * regcprop.c: Include rtl-iter.h.
6549 (kill_value): Take a const_rtx.
6550 (kill_autoinc_value): Turn from being a for_each_rtx callback
6551 to being a function that examines each subrtx itself.
6552 (copyprop_hardreg_forward_1): Update accordingly.
6554 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6556 * reg-stack.c: Include rtl-iter.h.
6557 (subst_stack_regs_in_debug_insn): Delete.
6558 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
6559 instead of for_each_rtx.
6561 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6563 * lower-subreg.c (find_decomposable_subregs): Turn from being
6564 a for_each_rtx callback to being a function that examines each
6565 subrtx itself. Remove handling of null rtxes.
6566 (decompose_multiword_subregs): Update accordingly.
6568 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6570 * lower-subreg.c (adjust_decomposed_uses): Delete.
6571 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
6572 Remove handling of null rtxes.
6574 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6576 * lower-subreg.c: Include rtl-iter.h.
6577 (resolve_subreg_use): Turn from being a for_each_rtx callback
6578 to being a function that examines each subrtx itself. Remove
6579 handling of null rtxes.
6580 (resolve_reg_notes, resolve_simple_move): Update accordingly.
6581 (decompose_multiword_subregs): Likewise.
6583 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6585 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
6586 to being a function that examines each subrtx itself.
6587 (simplify_using_condition, simplify_using_initial_values): Update
6590 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6592 * loop-iv.c: Include rtl-iter.h.
6593 (find_single_def_src): New function.
6594 (replace_single_def_regs): Turn from being a for_each_rtx callback
6595 to being a function that examines each subrtx itself.
6596 (replace_in_expr, simplify_using_initial_values): Update accordingly.
6598 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6600 * jump.c (eh_returnjump_p_1): Delete.
6601 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6602 Remove handling of null rtxes.
6604 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6606 * jump.c: Include rtl-iter.h.
6607 (returnjump_p_1): Delete.
6608 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6609 Remove handling of null rtxes.
6611 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6613 * ira.c: Include rtl-iter.h.
6614 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
6615 to being a function that examines each subrtx itself. Remove
6616 handling of null rtxes.
6617 (update_equiv_regs): Update call accordingly.
6619 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6621 * fwprop.c: Include rtl-iter.h.
6622 (varying_mem_p): Turn from being a for_each_rtx callback to being
6623 a function that examines each subrtx itself.
6624 (propagate_rtx): Update accordingly.
6626 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6628 * function.c: Include rtl-iter.h
6629 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
6630 callback to being a function that examines each subrtx itself.
6631 Return the changed flag.
6632 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
6633 (instantiate_virtual_regs): Update calls accordingly.
6635 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6637 * final.c: Include rtl-iter.h.
6638 (mark_symbol_ref_as_used): Delete.
6639 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
6642 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6644 * emit-rtl.c: Include rtl-iter.h.
6645 (find_auto_inc): Turn from being a for_each_rtx callback to being
6646 a function that examines each subrtx itself. Assume the first operand
6647 to an RTX_AUTOINC is the automodified register.
6648 (try_split): Update call accordingly.
6650 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6652 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
6653 Return a bool, inverting the result so that 0/false means "not ok".
6654 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
6655 subrtxes of a CONST.
6656 (mem_loc_descriptor, add_const_value_attribute)
6657 (resolve_addr_in_expr): Update calls accordingly.
6659 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6661 * dwarf2out.c: Include rtl-iter.h.
6662 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
6663 Remove unused data parameter. Return a bool, inverting the result
6664 so that 0/false means "not ok".
6665 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
6666 instead of for_each_rtx.
6668 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6670 * dse.c: Include rtl-iter.h.
6671 (check_mem_read_rtx): Change void * parameter to real type.
6672 Remove return value.
6673 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
6674 for_each_rtx. Don't handle null rtxes.
6676 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6678 * df-problems.c: Include rtl-iter.h.
6679 (find_memory): Turn from being a for_each_rtx callback to being
6680 a function that examines each subrtx itself. Continue to look for
6681 volatile references even after a nonvolatile one has been found.
6682 (can_move_insns_across): Update calls accordingly.
6684 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6686 * ddg.c (walk_mems_2, walk_mems_1): Delete.
6687 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
6688 to iterate over subrtxes. Return a bool rather than an int.
6690 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6692 * ddg.c: Include rtl-iter.h.
6693 (mark_mem_use_1): Rename to...
6694 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
6695 instead of for_each_rtx.
6696 (mem_read_insn_p): Update accordingly.
6698 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6700 * cse.c (change_cc_mode_args): Delete.
6701 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
6702 a function that examines each subrtx itself. Take the fields of
6703 change_cc_mode_args as argument and return void.
6704 (cse_change_cc_mode_insn): Update calls accordingly.
6706 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6708 * cse.c (is_dead_reg): Change argument to const_rtx.
6709 (dead_debug_insn_data): Delete.
6710 (is_dead_debug_insn): Expand commentary. Turn from being a
6711 for_each_rtx callback to being a function that examines
6712 each subrtx itself. Take the fields of dead_debug_insn_data
6714 (delete_trivially_dead_insns): Update call accordingly.
6716 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6718 * cse.c (check_for_label_ref): Move earlier in file. Turn from
6719 being a for_each_rtx callback to being a function that examines
6721 (cse_extended_basic_block): Update call accordingly.
6723 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6725 * cse.c (check_dependence_data): Delete.
6726 (check_dependence): Change from being a for_each_rtx callback to being
6727 a function that examines all subrtxes itself. Don't handle null rtxes.
6728 (invalidate): Update call accordingly.
6730 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6732 * cse.c: Include rtl-iter.h.
6733 (approx_reg_cost_1): Delete.
6734 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6735 Don't handle null rtxes.
6737 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6739 * cfgcleanup.c: Include rtl-iter.h.
6740 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
6741 to being a function that examines each subrtx itself.
6742 (thread_jump): Update accordingly.
6744 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6746 * combine-stack-adj.c: Include rtl-iter.h.
6747 (record_stack_refs_data): Delete.
6748 (record_stack_refs): Turn from being a for_each_rtx callback
6749 to being a function that examines each subrtx itself.
6750 Take a pointer to the reflist. Invert sense of return value
6751 so that true means success and false means failure. Don't
6753 (combine_stack_adjustments_for_block): Update accordingly.
6755 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6757 * combine.c (record_truncated_value): Turn from being a for_each_rtx
6758 callback to a function that takes an rtx and returns a bool
6759 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
6762 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6764 * combine.c: Include rtl-iter.h.
6765 (unmentioned_reg_p_1): Delete.
6766 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6767 Don't handle null rtxes.
6769 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6771 * calls.c: Include rtl-iter.h.
6772 (internal_arg_pointer_based_exp_1): Delete.
6773 (internal_arg_pointer_based_exp): Take a const_rtx.
6774 Use FOR_EACH_SUBRTX to iterate over subrtxes.
6776 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6778 * caller-save.c: Include rtl-iter.h.
6779 (add_used_regs_1): Delete.
6780 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
6781 to iterate over subrtxes. Assert that any remaining pseudos
6784 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6786 * bt-load.c: Include rtl-iter.h.
6787 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
6788 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
6789 to iterate over subrtxes.
6790 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
6791 find_btr_use rather than btr_referenced_p.
6793 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6795 * alias.c: Include rtl-iter.h.
6796 (refs_newer_value_cb): Delete.
6797 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6799 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6801 * rtl-iter.h: New file.
6802 * rtlanal.c: Include it.
6803 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
6804 (generic_subrtx_iterator <T>::add_single_to_queue)
6805 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
6806 (generic_subrtx_iterator <T>::free_array): New functions.
6807 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
6808 (generic_subrtx_iterator <const_rtx_accessor>)
6809 (generic_subrtx_iterator <rtx_var_accessor>
6810 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
6811 (setup_reg_subrtx_bounds): New function.
6812 (init_rtlanal): Call it.
6814 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6817 * config/sh/sh.md (ashlsi3): Handle negative shift count for
6819 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
6821 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
6823 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
6825 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6827 * rtl.h (JUMP_LABEL_AS_INSN): New.
6829 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6831 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
6833 (alloc_EXPR_LIST): Strengthen return type from rtx to
6835 (remove_free_EXPR_LIST_node): Likewise for param.
6836 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
6837 from rtx to rtx_expr_list *.
6838 * sched-int.h (struct deps_desc): Strengthen fields
6839 "pending_read_mems" and "pending_write_mems" from rtx to
6842 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
6843 rtx to rtx_expr_list *.
6844 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
6845 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
6847 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
6848 from rtx to rtx_expr_list *.
6849 * loop-iv.c (simplify_using_initial_values): Strengthen local
6850 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
6851 "pnote_next" from rtx * to rtx_expr_list **.
6852 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
6853 param "exprp" from rtx * to rtx_expr_list **.
6854 (add_insn_mem_dependence): Strengthen local "mem_list" from
6855 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
6857 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
6858 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
6859 param "old_mems_p" from rtx * to rtx_expr_list **.
6860 * var-tracking.c (struct adjust_mem_data): Strengthen field
6861 "side_effects" from rtx to rtx_expr_list *.
6862 (adjust_insn): Replace NULL_RTX with NULL when assigning to
6864 (prepare_call_arguments): Likewise.
6866 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6868 * function.h (struct rtl_data): Strengthen field
6869 "x_stack_slot_list" from rtx to rtx_expr_list *.
6871 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
6872 when assigning to stack_slot_list.
6874 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6876 * function.h (struct rtl_data): Strengthen field
6877 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
6878 * rtl.h (remove_node_from_expr_list): Strengthen second param from
6879 rtx * to rtx_expr_list **.
6881 * cfgbuild.c (make_edges): In loop over
6882 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
6883 rtx_expr_list *, and use methods of the latter class to clarify
6885 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
6886 rtx_expr_list *, and use methods of the latter class to clarify
6888 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6889 * reload1.c (set_initial_label_offsets): Likewise for local "x".
6890 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
6891 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
6892 to rtx_expr_list *. Use methods of the latter class to clarify
6895 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6897 * function.h (struct expr_status): Strengthen field
6898 "x_forced_labels" from rtx to rtx_expr_list *.
6900 * cfgbuild.c (make_edges): Split local "x" into two locals,
6901 strengthening one from rtx to rtx_expr_list *, and using methods
6903 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
6904 loop over forced_labels, introduce strengthen it from rtx to
6905 rtx_expr_list *, using methods to clarify the code.
6906 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
6907 to rtx_expr_list *, using methods of said class to clarify the
6909 * reload1.c (set_initial_label_offsets): Split local "x" into two
6910 per-loop variables, strengthening the first from rtx to
6911 rtx_expr_list * and using methods.
6913 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6915 * coretypes.h (class rtx_expr_list): Add forward declaration.
6916 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
6917 * gengenrtl.c (special_rtx): Add EXPR_LIST.
6918 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6919 invariant: GET_CODE (X) == EXPR_LIST.
6920 (is_a_helper <rtx_expr_list *>::test): New.
6921 (rtx_expr_list::next): New.
6922 (rtx_expr_list::element): New.
6923 (gen_rtx_EXPR_LIST): New.
6925 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6927 * varasm.c (mark_constants): Convert a GET_CODE check into a
6928 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6929 Use methods of rtx_sequence to clarify the code.
6931 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6933 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6934 local "seq" via a checked cast, and use methods of rtx_sequence
6935 to simplify the code.
6937 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6939 * resource.c (mark_referenced_resources): Strengthen local
6940 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6941 using methods of rtx_sequence to clarify the code.
6942 (find_dead_or_set_registers): Within the switch statement, convert
6943 a GET_CODE check to a dyn_cast, introducing local "seq". Within
6944 the JUMP_P handling, introduce another local "seq", adding a
6945 checked cast to rtx_sequence *. In both cases, use methods of
6946 rtx_sequence to clarify the code.
6947 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6948 via a checked cast, and use methods of rtx_sequence to simplify
6951 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6953 * reorg.c (redundant_insn): In two places in the function, replace
6954 a check of GET_CODE with a dyn_cast, introducing local "seq", and
6955 usings methods of rtx_sequence to clarify the code.
6957 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6959 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6960 local "seq" with a checked cast, and use methods of rtx_sequence
6961 to clarify the code.
6963 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6965 * function.c (contains): Introduce local "seq" for PATTERN (insn),
6966 with a checked cast, in the region for where we know it's a
6967 SEQUENCE. Use methods of rtx_sequence.
6969 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6971 * final.c (get_attr_length_1): Replace GET_CODE check with a
6972 dyn_cast, introducing local "seq" and the use of methods of
6974 (shorten_branches): Likewise, introducing local "body_seq".
6975 Strengthen local "inner_insn" from rtx to rtx_insn *.
6976 (reemit_insn_block_notes): Replace GET_CODE check with a
6977 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6978 Use methods of rtx_sequence.
6979 (final_scan_insn): Likewise, introducing local "seq" for when
6980 "body" is known to be a SEQUENCE, using its methods.
6982 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6984 * except.c (can_throw_external): Strengthen local "seq" from rtx
6985 to rtx_sequence *. Use methods of rtx_sequence.
6986 (insn_nothrow_p): Likewise.
6988 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6990 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6991 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6992 Use methods of rtx_sequence.
6993 (scan_trace): Likewise for local "pat".
6995 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6997 * coretypes.h (class rtx_sequence): Add forward declaration.
6998 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6999 invariant: GET_CODE (X) == SEQUENCE.
7000 (is_a_helper <rtx_sequence *>::test): New.
7001 (is_a_helper <const rtx_sequence *>::test): New.
7002 (rtx_sequence::len): New.
7003 (rtx_sequence::element): New.
7004 (rtx_sequence::insn): New.
7006 2014-08-27 David Malcolm <dmalcolm@redhat.com>
7008 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
7010 (alloc_INSN_LIST): Strengthen return type from rtx to
7012 (copy_INSN_LIST): Likewise for return type and param.
7013 (concat_INSN_LIST): Likewise for both params and return type.
7014 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
7015 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
7016 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
7017 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
7019 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
7020 "implicit_sets", "control_uses", "clobbers" from rtx to
7022 (struct deps_desc): Likewise for fields "pending_read_insns",
7023 "pending_write_insns", "pending_jump_insns",
7024 "last_pending_memory_flush", "last_function_call",
7025 "last_function_call_may_noreturn", "sched_before_next_call",
7026 "sched_before_next_jump".
7027 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
7028 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
7030 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
7031 from rtx to rtx_insn_list *.
7032 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
7035 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
7036 to rtx_insn_list **.
7037 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
7039 (queue_insn): Likewise for local "link".
7040 (struct haifa_saved_data): Strengthen field "insn_queue" from
7041 rtx * to rtx_insn_list **.
7042 (save_backtrack_point): Update allocation of save->insn_queue to
7043 reflect the strengthening of elements from rtx to rtx_insn_list *.
7044 (queue_to_ready): Strengthen local "link" from rtx to
7045 rtx_insn_list *; use methods "next" and "insn" when traversing the
7047 (early_queue_to_ready): Likewise for locals "link", "next_link",
7049 (schedule_block): Update allocation of insn_queue to reflect the
7050 strengthening of elements from rtx to rtx_insn_list *. Strengthen
7051 local "link" from rtx to rtx_insn_list *, and use methods when
7053 (add_to_speculative_block): Strengthen locals "twins" and
7054 "next_node" from rtx to rtx_insn_list *, and use methods when
7055 working with them. Strengthen local "twin" from rtx to
7056 rtx_insn *, eliminating a checked cast.
7057 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
7058 from rtx to rtx_insn_list *, and use methods when working with
7061 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
7062 from rtx to rtx_insn_list *, adding a checked cast.
7063 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
7065 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
7066 "newlink" from rtx to rtx_insn_list *. Strengthen local
7067 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
7068 from rtx to rtx_insn *.
7069 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
7070 from rtx to rtx_insn_list *. Use methods of the latter class.
7071 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
7072 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
7073 (remove_free_INSN_LIST_node): Strengthen return type and local
7074 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
7075 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
7076 rtx_insn_list *, using "insn" method.
7078 * sched-deps.c (add_dependence_list): Strengthen param "list"
7079 from rtx to rtx_insn_list *, and use methods when working with it.
7080 (add_dependence_list_and_free): Strengthen param "listp" from
7081 rtx * to rtx_insn_list **.
7082 (remove_from_dependence_list): Strenghten param "listp" from rtx *
7083 to rtx_insn_list **, and use methods when working with *listp.
7084 (remove_from_both_dependence_lists): Strengthen param "listp" from
7085 rtx * to rtx_insn_list **
7086 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
7087 to rtx_insn_list **. Eliminate local "link", in favor of two new
7088 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
7090 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
7091 by introducing local "cond_deps".
7092 (remove_from_deps): Strengthen param "insn" from rtx to
7095 * sched-rgn.c (concat_insn_mem_list): Strengthen param
7096 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
7097 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
7098 Use methods of rtx_insn_list.
7100 * store-motion.c (struct st_expr): Strengthen fields
7101 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
7102 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
7104 (find_moveable_store): Split out "tmp" into multiple more-tightly
7105 scoped locals. Use methods of rtx_insn_list *.
7106 (compute_store_table): Strengthen local "tmp" from rtx to
7107 rtx_insn *. Use methods of rtx_insn_list *.
7109 2014-08-27 David Malcolm <dmalcolm@redhat.com>
7111 * coretypes.h (class rtx_insn_list): Add forward declaration.
7112 * rtl.h (class rtx_insn_list): New subclass of rtx_def
7113 (is_a_helper <rtx_insn_list *>::test): New.
7114 (rtx_insn_list::next): New.
7115 (rtx_insn_list::insn): New.
7116 (gen_rtx_INSN_LIST): Add prototype.
7117 * emit-rtl.c (gen_rtx_INSN_LIST): New.
7118 * gengenrtl.c (special_rtx): Add INSN_LIST.
7120 2014-08-27 David Malcolm <dmalcolm@redhat.com>
7122 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
7123 "prev" from rtx to rtx_insn *.
7125 2014-08-27 David Malcolm <dmalcolm@redhat.com>
7127 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
7128 functions. Require merely an rtx for now, not an rtx_insn *.
7129 (BLOCK_FOR_INSN): Likewise.
7130 (INSN_LOCATION): Likewise.
7131 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
7133 2014-08-27 David Malcolm <dmalcolm@redhat.com>
7135 * rtl.h (PATTERN): Convert this macro into a pair of inline
7136 functions, for now, requiring const_rtx and rtx.
7138 2014-08-27 David Malcolm <dmalcolm@redhat.com>
7140 * target.def (unwind_emit): Strengthen param "insn" from rtx to
7142 (final_postscan_insn): Likewise.
7143 (adjust_cost): Likewise.
7144 (adjust_priority): Likewise.
7145 (variable_issue): Likewise.
7146 (macro_fusion_pair_p): Likewise.
7147 (dfa_post_cycle_insn): Likewise.
7148 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
7149 (first_cycle_multipass_issue): Likewise.
7150 (dfa_new_cycle): Likewise.
7151 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
7152 (speculate_insn): Likewise for param "insn".
7153 (gen_spec_check): Likewise for params "insn" and "label".
7154 (get_insn_spec_ds): Likewise for param "insn".
7155 (get_insn_checked_ds): Likewise.
7156 (dispatch_do): Likewise.
7157 (dispatch): Likewise.
7158 (cannot_copy_insn_p): Likewise.
7159 (invalid_within_doloop): Likewise.
7160 (legitimate_combined_insn): Likewise.
7164 * doc/tm.texi: Automatically updated to reflect changes to
7167 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
7169 (schedule_block): Likewise.
7170 (sched_init): Likewise.
7171 (sched_speculate_insn): Strengthen param "insn" from rtx to
7173 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
7175 * hooks.c (hook_bool_rtx_true): Rename to...
7176 hook_bool_rtx_insn_true): ...this, and strengthen first param from
7178 (hook_constcharptr_const_rtx_null): Rename to...
7179 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7180 first param from const_rtx to const rtx_insn *.
7181 (hook_bool_rtx_int_false): Rename to...
7182 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7183 param from rtx to rtx_insn *.
7184 (hook_void_rtx_int): Rename to...
7185 (hook_void_rtx_insn_int): ...this, and strengthen first param from
7188 * hooks.h (hook_bool_rtx_true): Rename to...
7189 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
7191 (hook_bool_rtx_int_false): Rename to...
7192 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7193 param from rtx to rtx_insn *.
7194 (hook_void_rtx_int): Rename to...
7195 (hook_void_rtx_insn_int): ...this, and strengthen first param from
7197 (hook_constcharptr_const_rtx_null): Rename to...
7198 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7199 first param from const_rtx to const rtx_insn *.
7201 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
7202 and local "prev" from rtx to rtx_insn *.
7204 * sched-int.h (sched_speculate_insn): Strengthen first param from
7207 * sel-sched.c (create_speculation_check): Likewise for local "label".
7208 * targhooks.c (default_invalid_within_doloop): Strengthen param
7209 "insn" from const_rtx to const rtx_insn *.
7210 * targhooks.h (default_invalid_within_doloop): Strengthen param
7211 from const_rtx to const rtx_insn *.
7213 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
7214 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
7216 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
7218 (arc_invalid_within_doloop): Likewise, with const.
7220 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
7221 (arm_cannot_copy_insn_p): Likewise for param "insn".
7222 (arm_unwind_emit): Likewise.
7224 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
7227 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
7228 (c6x_variable_issue): Likewise. Removed now-redundant checked
7230 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
7232 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
7233 Likewise for param "insn".
7234 (epiphany_mode_after): Likewise.
7235 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
7236 params "insn", "dep_insn".
7237 (epiphany_mode_needed): Likewise for param "insn".
7238 (epiphany_mode_after): Likewise.
7240 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
7241 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
7242 (ix86_avx_u128_mode_needed): Likewise.
7243 (ix86_i387_mode_needed): Likewise.
7244 (ix86_mode_needed): Likewise.
7245 (ix86_avx_u128_mode_after): Likewise.
7246 (ix86_mode_after): Likewise.
7247 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
7248 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
7249 (ix86_adjust_priority): Likewise for param "insn".
7250 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
7251 (do_dispatch): Likewise.
7252 (has_dispatch): Likewise.
7253 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
7255 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
7256 reflect renaming of default hook implementation from
7257 hook_constcharptr_const_rtx_null to
7258 hook_constcharptr_const_rtx_insn_null.
7259 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
7261 (ia64_variable_issue): Likewise for param "insn".
7262 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
7263 (ia64_dfa_new_cycle): Likewise.
7264 (ia64_get_insn_spec_ds): Likewise.
7265 (ia64_get_insn_checked_ds): Likewise.
7266 (ia64_speculate_insn): Likewise.
7267 (ia64_gen_spec_check): Likewise for params "insn", "label".
7268 (ia64_asm_unwind_emit): Likewise for param "insn".
7270 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
7272 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
7274 (m68k_sched_variable_issue): Likewise for param "insn".
7276 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
7279 * config/microblaze/microblaze.c (microblaze_adjust_cost):
7280 Likewise for params "insn", "dep".
7282 * config/mips/mips.c (mips_adjust_cost): Likewise.
7283 (mips_variable_issue): Likewise for param "insn".
7284 (mips_final_postscan_insn): Likewise.
7286 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
7287 for params "insn", "dep".
7289 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
7291 (pa_adjust_priority): Likewise for param "insn".
7293 * config/picochip/picochip.c (picochip_sched_adjust_cost):
7294 Likewise for params "insn", "dep_insn".
7296 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
7298 (rs6000_variable_issue): Likewise.
7299 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
7300 (rs6000_debug_adjust_cost): Likewise.
7301 (rs6000_adjust_priority): Likewise for param "insn".
7302 (rs6000_use_sched_lookahead_guard): Likewise.
7303 (get_next_active_insn): Likewise for return type and both params.
7304 (redefine_groups): Likewise for params "prev_head_insn", "tail"
7305 and locals "insn", "next_insn".
7306 (pad_groups): Likewise.
7308 * config/s390/s390.c (s390_adjust_priority): Likewise for param
7310 (s390_cannot_copy_insn_p): Likewise.
7311 (s390_sched_variable_issue): Likewise for third param, eliminating
7313 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
7314 default hook implementation from hook_constcharptr_const_rtx_null
7315 to hook_constcharptr_const_rtx_insn_null.
7317 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
7318 from rtx to rtx_insn *.
7319 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
7320 (sh_variable_issue): Likewise for param "insn".
7321 (sh_dfa_new_cycle): Likewise.
7322 (sh_mode_needed): Likewise.
7323 (sh_mode_after): Likewise.
7325 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
7326 params "insn", "dep_insn".
7327 (hypersparc_adjust_cost): Likewise.
7328 (sparc_adjust_cost): Likewise.
7330 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
7331 param, eliminated checked cast.
7332 (spu_sched_adjust_cost): Likewise for first and third params.
7334 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
7335 params "insn" and "dep_insn" from rtx to rtx_insn *.
7337 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
7339 2014-08-27 David Malcolm <dmalcolm@redhat.com>
7341 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
7342 (set_is_load_p): ...this, updating to work on a SET pattern rather
7344 (is_store_insn): Rename to...
7345 (set_is_store_p): ...this, updating to work on a SET pattern
7346 rather than an insn.
7347 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
7348 top of function to where it is needed. Rewrite the bogus
7349 condition that checks for "insn" and "dep" being PARALLEL to
7350 instead use single_set, introducing locals "insn_set" and
7351 "dep_set". Given that we only ever returned "cost" for a non-pair
7352 of SETs, bail out early if we don't have a pair of SET.
7353 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
7354 use the new locals "insn_set" and "dep_set", and update calls to
7355 is_load_insn and is_store_insn to be calls to set_is_load_p and
7358 2014-08-27 Guozhi Wei <carrot@google.com>
7361 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
7362 amount before using it.
7364 2014-08-27 Richard Biener <rguenther@suse.de>
7366 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
7367 get_maxval_strlen inside a more useful API.
7368 (gimple_fold_builtin_with_strlen): Remove and fold into ...
7369 (gimple_fold_builtin): ... caller.
7370 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
7371 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
7372 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
7373 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
7374 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
7375 gimple_fold_builtin_sprintf): Adjust to compute maxval
7378 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
7381 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
7383 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7384 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7385 Anna Tikhonova <anna.tikhonova@intel.com>
7386 Ilya Tocar <ilya.tocar@intel.com>
7387 Andrey Turetskiy <andrey.turetskiy@intel.com>
7388 Ilya Verbin <ilya.verbin@intel.com>
7389 Kirill Yukhin <kirill.yukhin@intel.com>
7390 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7392 * config/i386/sse.md
7393 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
7394 Use `concat_tg_mode' attribute to determine asm register size.
7396 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7397 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7398 Anna Tikhonova <anna.tikhonova@intel.com>
7399 Ilya Tocar <ilya.tocar@intel.com>
7400 Andrey Turetskiy <andrey.turetskiy@intel.com>
7401 Ilya Verbin <ilya.verbin@intel.com>
7402 Kirill Yukhin <kirill.yukhin@intel.com>
7403 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7405 * config/i386/sse.md
7406 (define_mode_iterator VI48_AVX512VL): New.
7407 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
7408 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
7409 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
7410 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7411 with VI1): Change mode iterator.
7412 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7413 with VI_ULOADSTORE_BW_AVX512VL): New.
7414 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7415 with VI_ULOADSTORE_F_AVX512VL): Ditto.
7416 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7417 with VI1): Change mode iterator.
7418 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7419 with VI_ULOADSTORE_BW_AVX512VL): New.
7420 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7421 with VI_ULOADSTORE_F_AVX512VL): Ditto.
7422 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7423 with VI1): Change mode iterator.
7424 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7425 with VI_ULOADSTORE_BW_AVX512VL): New.
7426 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7427 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
7428 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
7429 (define_insn "<avx512>_storedqu<mode>_mask" with
7430 VI48_AVX512VL): New.
7431 (define_insn "<avx512>_storedqu<mode>_mask" with
7432 VI12_AVX512VL): Ditto.
7434 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7436 Anna Tikhonova <anna.tikhonova@intel.com>
7437 Ilya Tocar <ilya.tocar@intel.com>
7438 Andrey Turetskiy <andrey.turetskiy@intel.com>
7439 Ilya Verbin <ilya.verbin@intel.com>
7440 Kirill Yukhin <kirill.yukhin@intel.com>
7441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7443 * config/i386/sse.md
7444 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
7445 (define_mode_iterator VI48_AVX512BW): New.
7446 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
7447 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7448 with VI48_AVX2_48_AVX512F): New.
7449 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7450 with VI2_AVX512VL): Ditto.
7452 2014-08-27 Richard Biener <rguenther@suse.de>
7455 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
7456 (fold_builtin_3): Do not fold strcat_chk here.
7457 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
7459 (gimple_fold_builtin): Fold strcat_chk here.
7461 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
7463 * dwarf2out.h (dwarf2out_decl): Remove prototype.
7464 * dwarf2out.c (dwarf2out_decl): Make static.
7466 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
7468 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
7470 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7472 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
7473 from rtx to rtx_insn *.
7474 (cselib_lookup_from_insn): Likewise for final param.
7475 (cselib_subst_to_values_from_insn): Likewise.
7476 (cselib_add_permanent_equiv): Likewise.
7478 * cselib.c (cselib_current_insn): Likewise for this variable.
7479 (cselib_subst_to_values_from_insn): Likewise for param "insn".
7480 (cselib_lookup_from_insn): Likewise.
7481 (cselib_add_permanent_equiv): Likewise for param "insn" and local
7482 "save_cselib_current_insn".
7483 (cselib_process_insn): Replace use of NULL_RTX with NULL.
7485 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
7486 from rtx to rtx_insn *.
7488 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7490 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
7493 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7495 * df.h (df_dump_insn_problem_function): Strengthen first param of
7496 this callback from const_rtx to const rtx_insn *.
7497 (struct df_insn_info): Strengthen field "insn" from rtx to
7499 (DF_REF_INSN): Eliminate this function, reinstating the older
7501 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
7502 (df_reg_defined): Likewise.
7503 (df_find_use): Likewise.
7504 (df_reg_used): Likewise.
7505 (df_dump_insn_top): Strengthen param 1 from const_rtx to
7507 (df_dump_insn_bottom): Likewise.
7508 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
7509 (df_insn_debug_regno): Likewise.
7510 (debug_df_insn): Likewise.
7511 (df_rd_simulate_one_insn): Likewise for param 2.
7512 (df_word_lr_simulate_defs): Likewise for param 1.
7513 (df_word_lr_simulate_uses): Likewise.
7514 (df_md_simulate_one_insn): Likewise for param 2.
7515 (df_simulate_find_noclobber_defs): Likewise for param 1.
7516 (df_simulate_find_defs): Likewise.
7517 (df_simulate_defs): Likewise.
7518 (df_simulate_uses): Likewise.
7519 (df_simulate_one_insn_backwards): Likewise for param 2.
7520 (df_simulate_one_insn_forwards): Likewise.
7521 (df_uses_create): Likewise for param 2.
7522 (df_insn_create_insn_record): Likewise for param 1.
7523 (df_insn_delete): Likewise.
7524 (df_insn_rescan): Likewise.
7525 (df_insn_rescan_debug_internal): Likewise.
7526 (df_insn_change_bb): Likewise.
7527 (df_notes_rescan): Likewise.
7528 * rtl.h (remove_death): Likewise for param 2.
7529 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
7531 * sched-int.h (reemit_notes): Strengthen param from rtx to
7533 * valtrack.h (propagate_for_debug): Likewise for param 1.
7535 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
7536 local "tmp_rtx" from const_rtx to const rtx_insn *.
7537 * combine.c (remove_death): Strengthen param "insn" from rtx to
7539 (move_deaths): Likewise for local "where_dead".
7540 * cse.c (delete_trivially_dead_insns): Introduce local
7541 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
7542 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
7544 (df_reg_defined): Likewise.
7545 (df_find_use): Likewise.
7546 (df_reg_used): Likewise.
7547 (df_dump_insn_problem_data): Strengthen param "insn" from
7548 const_rtx to const rtx_insn *.
7549 (df_dump_insn_top): Likewise.
7550 (df_dump_insn_bottom): Likewise.
7551 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
7552 (df_insn_debug_regno): Likewise.
7553 (debug_df_insn): Likewise.
7554 (DF_REF_INSN): Delete.
7555 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
7556 from rtx to rtx_insn *.
7557 (df_chain_insn_top_dump): Strengthen param "insn" from
7558 const_rtx to const rtx_insn *.
7559 (df_chain_insn_bottom_dump): Likewise.
7560 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
7562 (df_word_lr_simulate_uses): Likewise.
7563 (df_print_note): Likewise.
7564 (df_remove_dead_and_unused_notes): Likewise.
7565 (df_set_unused_notes_for_mw): Likewise.
7566 (df_set_dead_notes_for_mw): Likewise.
7567 (df_create_unused_note): Likewise.
7568 (df_simulate_find_defs): Likewise.
7569 (df_simulate_find_uses): Likewise.
7570 (df_simulate_find_noclobber_defs): Likewise.
7571 (df_simulate_defs): Likewise.
7572 (df_simulate_uses): Likewise.
7573 (df_simulate_one_insn_backwards): Likewise.
7574 (df_simulate_one_insn_forwards): Likewise.
7575 (df_md_simulate_one_insn): Likewise.
7576 * df-scan.c (df_uses_create): Likewise.
7577 (df_insn_create_insn_record): Likewise.
7578 (df_insn_delete): Likewise.
7579 (df_insn_rescan): Likewise.
7580 (df_insn_rescan_debug_internal): Likewise.
7581 (df_insn_change_bb): Likewise.
7582 (df_notes_rescan): Likewise.
7583 (df_refs_add_to_chains): Likewise.
7584 (df_insn_refs_verify): Likewise.
7585 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
7586 when invoking df_insn_delete.
7587 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
7588 (set_unique_reg_note): Add checked cast.
7589 * final.c (cleanup_subreg_operands): Likewise.
7590 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
7591 "insn" from rtx to rtx_insn *.
7592 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
7593 "last" from rtx to rtx_insn *.
7594 * ira-emit.c (change_regs_in_insn): New function.
7595 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
7596 Invoke change_regs_in_insn rather than change_regs.
7597 * ira.c (update_equiv_regs): Strengthen locals "insn",
7598 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
7599 for_each_rtx_in_insn rather than for_each_rtx.
7600 * recog.c (confirm_change_group): Add checked casts.
7601 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
7603 (peep2_fill_buffer): Add checked cast.
7604 * rtlanal.c (remove_note): Likewise.
7605 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
7606 locals "next" "end" from rtx to rtx_insn *.
7608 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7610 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
7612 (struct reg_use_data): Likewise for field "insn".
7613 (insn_cost): Likewise for param.
7614 (real_insn_for_shadow): Likewise for return type and param.
7615 (increase_insn_priority): Likewise for param 1.
7616 (debug_dependencies): Likewise for both params.
7618 * haifa-sched.c (insn_delay): Likewise for param "insn".
7619 (real_insn_for_shadow): Likewise for return type and param "insn".
7620 (update_insn_after_change): Likewise for param "insn".
7621 (recompute_todo_spec): Likewise for param "next" and locals "pro",
7623 (insn_cost): Likewise for param "insn".
7624 (increase_insn_priority): Likewise.
7625 (calculate_reg_deaths): Likewise.
7626 (setup_insn_reg_pressure_info): Likewise.
7627 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
7628 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
7629 (model_recompute): Likewise.
7630 (must_restore_pattern_p): Likewise for param "next".
7631 (model_excess_cost): Likewise for param "insn".
7632 (queue_remove): Likewise.
7633 (adjust_priority): Likewise for param "prev".
7634 (update_register_pressure): Likewise for param "insn".
7635 (setup_insn_max_reg_pressure): Likewise for local "insn".
7636 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
7637 (model_add_to_schedule): Likewise.
7638 (model_reset_queue_indices): Likewise for local "insn".
7639 (unschedule_insns_until): Strengthen local "recompute_vec" from
7640 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
7641 "con" from rtx to rtx_insn *.
7642 (restore_last_backtrack_point): Likewise for both locals "x". Add
7644 (estimate_insn_tick): Likewise for param "insn".
7645 (commit_schedule): Likewise for params "prev_head", "tail" and
7647 (verify_shadows): Likewise for locals "i1", "i2".
7648 (dump_insn_stream): Likewise for params "head", "tail" and locals
7649 "next_tail", "insn".
7650 (schedule_block): Likewise for locals "insn", "x". Add a checked
7652 (fix_inter_tick): Likewise for params "head", "tail".
7653 (create_check_block_twin): Likewise for local "jump".
7654 (haifa_change_pattern): Likewise for param "insn".
7655 (haifa_speculate_insn): Likewise.
7656 (dump_new_block_header): Likewise for params "head", "tail".
7657 (fix_jump_move): Likewise for param "jump".
7658 (move_block_after_check): Likewise.
7659 (sched_init_insn_luid): Likewise for param "insn".
7660 (sched_init_luids): Likewise for local "insn".
7661 (insn_luid): Likewise for param "insn".
7662 (init_h_i_d): Likewise.
7663 (haifa_init_h_i_d): Likewise for local "insn".
7664 (haifa_init_insn): Likewise for param "insn".
7665 * sched-deps.c (add_dependence): Likewise for local "real_pro",
7667 (create_insn_reg_use): Likewise for param "insn".
7668 (setup_insn_reg_uses): Likewise. Add a checked cast.
7669 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
7670 "tail" from rtx to rtx_insn *.
7671 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
7672 "insn", "next_tail".
7674 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7676 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
7677 from rtx to rtx_insn *.
7678 (model_add_to_schedule): Likewise for locals "start", "end",
7681 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7683 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
7685 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
7686 "to" and locals "insn", "next", "copy". Remove now-redundant
7689 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7691 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
7692 rtx_insn * and param 4 from rtx * to rtx_insn **.
7693 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
7694 param 2 from rtx * to rtx_insn **.
7696 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
7697 rtx_insn * and final param from rtx * to rtx_insn **.
7699 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
7700 from rtx to rtx_insn *.
7701 (try_head_merge_bb): Likewise for both locals named "move_upto".
7702 * df-problems.c (can_move_insns_across): Likewise for params
7703 "from", "to", "across_from", "across_to" and locals "insn",
7704 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
7706 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
7707 from rtx to rtx_insn *.
7708 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
7709 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
7710 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
7712 (noce_try_abs): Likewise.
7713 (noce_get_condition): Likewise for param "jump". Strengthen param
7714 "earliest" from rtx * to rtx_insn **.
7715 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
7717 (find_cond_trap): Likewise.
7718 (dead_or_predicable): Likewise for local "earliest".
7719 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
7721 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
7722 and local "prev". Strengthen param "earliest" from rtx * to
7724 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
7725 Strengthen param "earliest" from rtx * to rtx_insn **.
7727 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7729 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
7730 "to" and local "insn" from rtx to rtx_insn *.
7732 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7734 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
7735 from rtx to rtx_insn *.
7736 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
7737 (code_motion_path_driver): Likewise for local "last_insn".
7738 (simplify_changed_insns): Likewise for local "insn".
7740 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7742 * rtl.h (push_to_sequence): Strengthen param from rtx to
7744 (push_to_sequence2): Likewise for both params.
7745 (delete_insns_since): Likewise for param.
7746 (reorder_insns_nobb): Likewise for all three params.
7747 (set_new_first_and_last_insn): Likewise for both params.
7749 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
7750 rtx_insn *. Remove now-redundant cast.
7751 (set_last_insn): Likewise.
7753 * builtins.c (expand_builtin_return): Strengthen local
7754 "call_fusage" from rtx to rtx_insn *.
7755 * cfgrtl.c (create_basic_block_structure): Likewise for local
7757 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
7758 "first", "last" and local "insn".
7759 (delete_insns_since): Likewise for param "from".
7760 (reorder_insns_nobb): Likewise for params "from", "to", "after"
7762 (push_to_sequence): Likewise for param "first" and local "last".
7763 (push_to_sequence2): Likewise for params "first" and "last".
7764 * lra.c (emit_add3_insn): Likewise for local "last".
7765 (lra_emit_add): Likewise.
7766 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
7768 (process_address_1): Likewise for locals "insn", last".
7769 * modulo-sched.c (ps_first_note): Likewise for return type.
7770 * optabs.c (expand_binop_directly): Likewise for param "last".
7772 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7774 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
7776 * emit-rtl.c (get_last_insn_anywhere): Likewise.
7778 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7780 * function.h (struct sequence_stack): Strengthen fields "first"
7781 and "last" from rtx to rtx_insn *.
7782 (struct emit_status): Likewise for fields "x_first_insn" and
7785 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
7786 (set_first_insn): Add checked cast.
7787 (get_last_insn): Remove now-redundant checked cast.
7788 (set_last_insn): Add checked cast.
7790 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
7791 "saved_first" and "saved_last" from rtx to rtx_insn *.
7793 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7795 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
7796 (unlink_insn_chain): Strengthen both params from rtx to
7799 * cfgrtl.c (cfg_layout_function_header): Likewise for this
7801 (unlink_insn_chain): Likewise for params "first" and "last".
7802 Remove now-redundant checked cast.
7803 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
7804 (fixup_reorder_chain): Strengthen local "insn" from rtx to
7806 * emit-rtl.c (link_insn_into_chain): Likewise for all three
7808 (add_insn): Likewise for param "insn" and local "prev".
7809 (add_insn_after_nobb): Likewise for both params and local "next".
7810 (add_insn_before_nobb): Likewise for both params and local "prev".
7811 (add_insn_after): Rename param "after" to "uncast_after",
7812 introducing local "after" with another checked cast.
7813 (add_insn_before): Rename params "insn" and "before", giving them
7814 "uncast_" prefixes, adding the old names back using checked casts.
7815 (emit_note_after): Likewise for param "after".
7816 (emit_note_before): Likewise for param "before".
7817 (emit_label): Add a checked cast.
7819 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7821 * cselib.h (cselib_record_sets_hook): Strengthen initial param
7822 "insn" from rtx to rtx_insn *.
7824 * cselib.c (cselib_record_sets_hook): Likewise.
7826 * var-tracking.c (add_with_sets): Likewise, renaming back from
7827 "uncast_insn" to "insn" and eliminating the checked cast from rtx
7830 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7832 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
7833 and "header_" from rtx to rtx_insn *.
7834 (struct basic_block_d): Likewise for field "head_" within "x"
7835 field of union basic_block_il_dependent.
7836 (BB_HEAD): Drop function...
7837 (SET_BB_HEAD): ...and this function in favor of...
7838 (BB_HEAD): ...reinstate macro.
7839 (BB_END): Drop function...
7840 (SET_BB_END): ...and this function in favor of...
7841 (BB_END): ...reinstate macro.
7842 (BB_HEADER): Drop function...
7843 (SET_BB_HEADER): ...and this function in favor of...
7844 (BB_HEADER): ...reinstate macro.
7846 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
7847 (fix_crossing_unconditional_branches): Likewise.
7848 * caller-save.c (save_call_clobbered_regs): Likewise.
7849 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
7850 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
7851 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7852 (merge_blocks_move_successor_nojumps): Likewise.
7853 (outgoing_edges_match): Update use of for_each_rtx to
7854 for_each_rtx_in_insn.
7855 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
7856 (expand_gimple_cond): Likewise.
7857 (expand_gimple_tailcall): Likewise.
7858 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
7860 (construct_exit_block): Drop use of SET_BB_END.
7861 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
7863 (delete_insn): Rename param "insn" to "uncast_insn", introducing
7864 a new local "insn" with a checked cast to rtx_insn *. Drop use of
7865 SET_BB_HEAD and SET_BB_END.
7866 (create_basic_block_structure): Drop use of SET_BB_HEAD and
7868 (rtl_delete_block): Drop use of SET_BB_HEAD.
7869 (rtl_split_block): Drop use of SET_BB_END.
7870 (emit_nop_for_unique_locus_between): Likewise.
7871 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
7872 (block_label): Drop use of SET_BB_HEAD.
7873 (fixup_abnormal_edges): Drop use of SET_BB_END.
7874 (record_effective_endpoints): Drop use of SET_BB_HEADER.
7875 (relink_block_chain): Likewise.
7876 (fixup_reorder_chain): Drop use of SET_BB_END.
7877 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
7878 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
7879 rtx_insn **. Drop use of SET_BB_HEADER.
7880 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
7882 (BB_HEAD): Delete this function.
7883 (SET_BB_HEAD): Likewise.
7885 (SET_BB_END): Likewise.
7886 (BB_HEADER): Likewise.
7887 (SET_BB_HEADER): Likewise.
7888 * emit-rtl.c (add_insn_after): Rename param "insn" to
7889 "uncast_insn", adding a new local "insn" and a checked cast to
7890 rtx_insn *. Drop use of SET_BB_END.
7891 (remove_insn): Strengthen locals "next" and "prev" from rtx to
7892 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
7893 (reorder_insns): Drop use of SET_BB_END.
7894 (emit_insn_after_1): Strengthen param "first" and locals "last",
7895 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
7896 (emit_pattern_after_noloc): Add checked cast.
7897 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
7898 (restore_other_notes): Likewise.
7899 (move_insn): Likewise.
7900 (sched_extend_bb): Likewise.
7901 (fix_jump_move): Likewise.
7902 * ifcvt.c (noce_process_if_block): Likewise.
7903 (dead_or_predicable): Likewise.
7904 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
7905 * reg-stack.c (change_stack): Drop use of SET_BB_END.
7906 * sel-sched-ir.c (sel_move_insn): Likewise.
7907 * sel-sched.c (move_nop_to_previous_block): Likewise.
7909 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
7911 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7913 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7915 * basic-block.h (create_basic_block_structure): Strengthen params
7916 1 "head" and 2 "end" from rtx to rtx_insn *.
7917 * cfgrtl.c (create_basic_block_structure): Likewise.
7918 (rtl_create_basic_block): Update casts from void * to rtx to
7919 rtx_insn *, so that we can pass them as rtx_insn * to
7920 create_basic_block_structure.
7921 * sel-sched-ir.c (sel_create_basic_block): Likewise.
7923 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7925 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7927 (check_for_inc_dec): Strengthen param "insn" from rtx to
7930 * cselib.h (cselib_process_insn): Likewise.
7932 * cselib.c (cselib_record_sets): Likewise.
7933 (cselib_process_insn): Likewise.
7935 * dse.c (struct insn_info): Likewise for field "insn".
7936 (check_for_inc_dec_1): Likewise for local "insn".
7937 (check_for_inc_dec): Likewise for param "insn".
7938 (scan_insn): Likewise.
7939 (dse_step1): Likewise for local "insn".
7941 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7942 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
7944 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7946 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7947 from rtx to rtx_insn *.
7948 (DEP_PRO): Delete this function and...
7949 (SET_DEP_PRO): ...this function in favor of...
7950 (DEP_PRO): ...reinstate this macro.
7951 (DEP_CON): Delete this function and...
7952 (SET_DEP_CON): ...this function in favor of...
7953 (DEP_CON): ...reinstate this old macro.
7954 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7955 (init_dep): Likewise.
7956 (set_priorities): Likewise for both params.
7957 (sd_copy_back_deps): Likewise for params 1 and 2.
7959 * haifa-sched.c (priority): Likewise for param "insn" and local
7961 (set_priorities): Likewise for params "head" and "tail" and local
7963 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7965 (add_to_speculative_block): Add a checked cast.
7966 (create_check_block_twin): Drop use of SET_DEP_CON.
7967 (add_jump_dependencies): Strengthen params "insn" and "jump" from
7970 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7971 Drop use of SET_DEP_PRO
7972 (init_dep): Strengthen params "pro" and "con" from rtx to
7974 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
7978 (SET_DEP_PRO): Delete.
7979 (SET_DEP_CON): Delete.
7981 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7983 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7984 from rtx to rtx_insn *.
7985 (VINSN_INSN_RTX): Eliminate rvalue function and...
7986 (SET_VINSN_INSN): ...lvalue function in favor of...
7987 (VINSN_INSN_RTX): reinstate this old macro.
7989 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7990 in favor of VINSN_INSN_RTX.
7991 (VINSN_INSN_RTX): Delete this function.
7992 (SET_VINSN_INSN_RTX): Likewise.
7994 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7996 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7997 (BND_TO): Delete this function and...
7998 (SET_BND_TO): ...this functions in favor of...
7999 (BND_TO): ...reinstating this macro.
8000 (struct _fence): Strengthen field "executing_insns" from
8001 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
8002 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
8003 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
8004 and param "insn" from rtx to insn_t.
8005 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
8008 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
8010 (rtx_vec_t): Likewise.
8011 (struct sched_deps_info_def): Strengthen param of "start_insn"
8012 callback from rtx to rtx_insn *. Likewise for param "insn2" of
8013 "note_mem_dep" callback and first param of "note_dep" callback.
8015 * haifa-sched.c (add_to_speculative_block): Strengthen param
8016 "insn" from rtx to rtx_insn *.
8017 (clear_priorities): Likewise.
8018 (calc_priorities): Likewise for local "insn".
8020 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
8021 Remove redundant checked cast.
8022 (haifa_note_mem_dep): Likewise for param "pending_insn".
8023 (haifa_note_dep): Likewise for param "elem".
8024 (note_mem_dep): Likewise for param "e".
8025 (sched_analyze_1): Add checked casts.
8026 (sched_analyze_2): Likewise.
8028 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
8029 from rtx to rtx_insn *.
8030 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
8031 from vec<rtx> * to vec<rtx_insn *> *.
8033 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
8035 (flist_add): Strengthen param "executing_insns" from
8036 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8037 (advance_deps_context): Remove now-redundant checked cast.
8038 (init_fences): Replace uses of NULL_RTX with NULL.
8039 (merge_fences): Strengthen params "last_scheduled_insn" and
8040 "sched_next" from rtx to rtx_insn * and "executing_insns" from
8041 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8042 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
8043 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
8044 an instruction, rather than doing double-duty as a pattern.
8045 (return_nop_to_pool): Update for change of insn_t.
8046 (deps_init_id): Remove now-redundant checked cast.
8047 (struct sched_scan_info_def): Strengthen param of "init_insn"
8048 callback from rtx to insn_t.
8049 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
8050 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
8052 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
8053 "end" from rtx to rtx_insn *.
8054 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
8055 (rtx insn_rtx, bool force_unique_p)
8056 (BND_TO): Delete function.
8057 (SET_BND_TO): Delete function.
8059 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
8061 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
8062 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
8064 (undo_transformations): Likewise for param "insn".
8065 (update_liveness_on_insn): Likewise.
8066 (compute_live_below_insn): Likewise for param "insn" and local
8068 (update_data_sets): Likewise for param "insn".
8069 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
8070 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
8071 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
8073 (move_cond_jump): Likewise for param "insn".
8074 (move_cond_jump): Drop use of SET_BND_TO.
8075 (compute_av_set_on_boundaries): Likewise.
8076 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
8077 (update_and_record_unavailable_insns): Strengthen local "bb_end"
8078 from rtx to rtx_insn *.
8079 (maybe_emit_renaming_copy): Likewise for param "insn".
8080 (maybe_emit_speculative_check): Likewise.
8081 (handle_emitting_transformations): Likewise.
8082 (remove_insn_from_stream): Likewise.
8083 (code_motion_process_successors): Strengthen local "succ" from rtx
8086 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8088 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
8089 ilist_t, not _xlist_t;
8090 (ILIST_INSN): Define in terms of new union field "insn".
8091 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
8093 (struct _list_node): Add new field "insn" to the union, of type
8095 (ilist_add): Replace macro with an inline function, requiring an
8097 (ilist_remove): Define this macro directly in terms of
8098 _list_remove, rather than indirectly via _xlist_remove.
8099 (ilist_clear): Likewise, in terms of _list_clear rather than
8101 (ilist_is_in_p): Replace macro with an inline function, requiring
8103 (_list_iter_cond_insn): New function.
8104 (ilist_iter_remove): Define this macro directly in terms of
8105 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
8106 (ilist_iterator): Define directly in terms of _list_iterator
8107 rather than indirectly through _xlist_iterator.
8108 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
8109 than in terms of _FOR_EACH_X.
8110 (FOR_EACH_INSN_1): Likewise.
8112 2014-08-26 Joseph Myers <joseph@codesourcery.com>
8116 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
8117 DECL_HARD_REGISTER and return for invalid register specifications.
8118 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
8119 DECL_HARD_REGISTER, call expand_one_error_var.
8120 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
8121 CC_REGNUM with non-MODE_CC modes.
8122 (arm_regno_class): Return NO_REGS for PC_REGNUM.
8124 2014-08-26 Marek Polacek <polacek@redhat.com>
8127 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
8129 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
8131 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
8132 qi cost; add di cost.
8133 (cortexa57_addrcost_table): Likewise.
8135 2014-08-26 Marek Polacek <polacek@redhat.com>
8138 * expr.c (is_aligning_offset): Remove logical not.
8140 2014-08-26 Marek Polacek <polacek@redhat.com>
8143 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
8144 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
8146 2014-08-26 Richard Biener <rguenther@suse.de>
8148 PR tree-optimization/62175
8149 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8150 expand possibly trapping operations.
8152 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8154 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
8155 "insn" from rtx to rtx_insn *.
8156 (permute_load): Likewise for param "insn".
8157 (permute_store): Likewise.
8158 (handle_special_swappables): Likewise for local "insn".
8159 (replace_swap_with_copy): Likewise for locals "insn" and
8161 (rs6000_analyze_swaps): Likewise for local "insn".
8163 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8165 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
8168 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8170 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
8171 "note_list" from rtx to rtx_insn *.
8172 (BB_NOTE_LIST): Replace this function and...
8173 (SET_BB_NOTE_LIST): ...this function with...
8174 (BB_NOTE_LIST): ...the former macro implementation.
8176 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
8177 local "from_start" from rtx to rtx_insn *. Strengthen param
8178 "to_endp" from rtx * to rtx_insn **.
8180 * haifa-sched.c (concat_note_lists): Likewise.
8181 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
8183 (sel_restore_notes): Likewise.
8184 (move_bb_info): Likewise.
8185 (BB_NOTE_LIST): Delete this function.
8186 (SET_BB_NOTE_LIST): Delete this function.
8187 * sel-sched.c (create_block_for_bookkeeping): Eliminate
8188 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
8190 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8192 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
8193 from rtx * to rtx_insn **.
8194 (reorder2): Likewise.
8195 (dependencies_evaluation_hook): Strengthen params "head", "tail"
8196 from rtx to rtx_insn *.
8198 * doc/tm.texi: Update mechanically for above change to target.def.
8200 * sched-int.h (note_list): Strengthen this variable from rtx to
8202 (remove_notes): Likewise for both params.
8203 (restore_other_notes): Likewise for return type and first param.
8204 (struct ready_list): Strengthen field "vec" from rtx * to
8206 (struct dep_replacement): Strenghten field "insn" from rtx to
8208 (struct deps_desc): Likewise for fields "last_debug_insn",
8210 (struct haifa_sched_info): Likewise for callback field
8211 "can_schedule_ready_p"'s param, for first param of "new_ready"
8212 callback field, for both params of "rank" callback field, for
8213 first field of "print_insn" callback field (with a const), for
8214 both params of "contributes_to_priority" callback, for param
8215 of "insn_finishes_block_p" callback, for fields "prev_head",
8216 "next_tail", "head", "tail", for first param of "add_remove_insn"
8217 callback, for first param of "begin_schedule_ready" callback, for
8218 both params of "begin_move_insn" callback, and for second param
8219 of "advance_target_bb" callback.
8220 (add_dependence): Likewise for params 1 and 2.
8221 (sched_analyze): Likewise for params 2 and 3.
8222 (deps_analyze_insn): Likewise for param 2.
8223 (ready_element): Likewise for return type.
8224 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
8225 (try_ready): Strenghten param from rtx to rtx_insn *.
8226 (sched_emit_insn): Likewise for return type.
8227 (record_delay_slot_pair): Likewise for params 1 and 2.
8228 (add_delay_dependencies): Likewise for param.
8229 (contributes_to_priority): Likewise for both params.
8230 (find_modifiable_mems): Likewise.
8232 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
8233 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
8234 "first_older_only_insn" from rtx to rtx_insn *.
8235 (arm_sched_reorder): Strengthen param "ready" from rtx * to
8238 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
8239 "last_scheduled_iter0" from rtx to rtx_insn *.
8240 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
8241 (c6x_sched_reorder_1): Strengthen param "ready" and locals
8242 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
8243 "insn" from rtx to rtx_insn *.
8244 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
8246 (c6x_sched_reorder2): Strengthen param "ready" and locals
8247 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
8248 "insn" from rtx to rtx_insn *.
8249 (c6x_variable_issue): Add a checked cast when assigning from insn
8250 to ss.last_scheduled_iter0.
8251 (split_delayed_branch): Strengthen param "insn" and local "i1"
8252 from rtx to rtx_insn *.
8253 (split_delayed_nonbranch): Likewise.
8254 (undo_split_delayed_nonbranch): Likewise for local "insn".
8255 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
8256 "entry_after", "end_packet", "head_insn", "tail_insn",
8257 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
8258 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
8259 to rtx_insn **. Remove now-redundant checked cast on last_insn,
8260 but add a checked cast on loop->start_label. Consolidate calls to
8261 avoid assigning result of gen_spkernel to "insn", now an
8264 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
8265 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
8267 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
8268 rtx_insn **. Strengthen locals "top", "next" from rtx to
8270 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
8271 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
8272 (add_parameter_dependencies): Strengthen params "call", "head" and
8273 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
8274 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
8275 (add_dependee_for_func_arg): Likewise for param "arg" and local
8277 (ix86_dependencies_evaluation_hook): Likewise for params "head",
8278 "tail" and locals "insn", "first_arg".
8280 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
8281 for params "head", "tail" and locals "insn", "next", "next_tail".
8282 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
8283 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
8284 "insn", "lowest", "highest" from rtx to rtx_insn *.
8285 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
8287 (ia64_sched_reorder2): Likewise.
8289 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
8290 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
8291 from rtx * to rtx_insn **.
8292 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
8294 (mep_print_sched_insn): Strengthen param "insn" from rtx to
8296 (mep_sched_reorder): Strengthen param "ready" from rtx * to
8297 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
8300 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
8301 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
8303 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
8304 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
8305 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
8307 (vr4130_reorder): Likewise.
8308 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
8310 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
8312 (mips_sched_reorder): Likewise.
8313 (mips_sched_reorder2): Likewise.
8315 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
8317 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
8318 Strengthen local "tmp" from rtx to rtx_insn *.
8319 (rs6000_sched_reorder2): Likewise.
8321 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
8322 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
8323 (s390_sched_reorder): Strengthen param "ready" from rtx * to
8324 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
8326 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
8327 "tmp2" from rtx to rtx_insn *.
8328 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
8329 Strengthen local "insn" from rtx to rtx_insn *.
8330 (ready_reorder): Strengthen param "ready" from rtx * to
8331 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
8332 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
8333 (sh_reorder2): Likewise.
8335 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
8336 local "insn" from rtx to rtx_insn *.
8338 * haifa-sched.c (note_list): Strengthen this variable from rtx to
8340 (scheduled_insns): Strengthen this variable from vec<rtx> to
8342 (set_modulo_params): Likewise for locals "i1", "i2".
8343 (record_delay_slot_pair): Likewise for params "i1", "i2".
8344 (add_delay_dependencies): Likewise for param "insn".
8345 (cond_clobbered_p): Likewise.
8346 (recompute_todo_spec): Likewise for local "prev".
8347 (last_scheduled_insn): Likewise for this variable.
8348 (nonscheduled_insns_begin): Likewise.
8349 (model_set_excess_costs): Strengthen param "insns" from rtx * to
8351 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
8353 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
8354 Strengthen local "insn" from rtx to rtx_insn *.
8355 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
8356 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
8357 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
8358 (ready_remove_first): Likewise for return type and local "t".
8359 (ready_element): Likewise for return type.
8360 (ready_remove): Likewise for return type and local "t".
8361 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
8362 (check_clobbered_conditions): Strengthen local "x" from rtx to
8363 rtx_insn *, adding a checked cast.
8364 (schedule_insn): Likewise for param "insn".
8365 (remove_notes): Likewise for params "head", "tail" and locals
8366 "next_tail", "insn", "next".
8367 (struct haifa_saved_data): Likewise for fields
8368 "last_scheduled_insn", "nonscheduled_insns_begin".
8369 (save_backtrack_point): Update for change to field "vec" of
8371 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
8373 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
8374 from rtx to rtx_insn *
8375 (resolve_dependencies): Strengthen param "insn" from rtx to
8377 (restore_other_notes): Likewise for return type, for param "head"
8378 and local "note_head".
8379 (undo_all_replacements): Likewise for local "insn".
8380 (first_nonscheduled_insn): Likewise for return type and local "insn".
8381 (queue_to_ready): Likewise for local "insn", adding checked casts.
8382 (early_queue_to_ready): Likewise for local "insn".
8383 (debug_ready_list_1): Strengthen local "p" from rtx * to
8385 (move_insn): Strengthen param "insn" and local "note" from rtx to
8387 (insn_finishes_cycle_p): Likewise for param "insn".
8388 (max_issue): Likewise for local "insn".
8389 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
8391 (commit_schedule): Strengthen param "prev_head" and local "insn"
8392 from rtx to rtx_insn *
8393 (prune_ready_list): Likewise for local "insn".
8394 (schedule_block): Likewise for locals "prev_head", "head", "tail",
8395 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
8396 (set_priorities): Likewise for local "prev_head".
8397 (try_ready): Likewise for param "next".
8398 (fix_tick_ready): Likewise.
8399 (change_queue_index): Likewise.
8400 (sched_extend_ready_list): Update for change to field "vec" of
8402 (generate_recovery_code): Strengthen param "insn" from rtx to
8404 (begin_speculative_block): Likewise.
8405 (create_check_block_twin): Likewise for param "insn" and locals
8406 "label", "check", "twin". Introduce local "check_pat" to avoid
8407 "check" being used as a plain rtx before being used as an insn.
8408 (fix_recovery_deps): Add a checked cast to rtx_insn * when
8409 extracting elements from ready_list.
8410 (sched_remove_insn): Strengthen param "insn" from rtx to
8412 (sched_emit_insn): Likewise for return type.
8413 (ready_remove_first_dispatch): Likewise for return type and local
8416 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
8418 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
8421 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
8422 from rtx to rtx_insn *.
8423 (add_dependence_list): Likewise for param "insn". Add a checked
8425 (add_dependence_list_and_free): Strengthen param "insn" from rtx
8426 to rtx_insn *. Strengthen param "list_p" from rtx * to
8428 (chain_to_prev_insn): Strengthen param "insn" and locals
8429 "prec_nonnote", "i" from rtx to rtx_insn *.
8430 (flush_pending_lists): Likewise for param "insn".
8431 (cur_insn): Likewise for this variable.
8432 (haifa_start_insn): Add a checked cast.
8433 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
8434 (sched_analyze_reg): Likewise for param "insn".
8435 (sched_analyze_1): Likewise.
8436 (sched_analyze_2): Likewise. Add checked casts.
8437 (sched_analyze_insn): Likewise. Also for local "prev".
8438 (deps_analyze_insn): Likewise for param "insn".
8439 (sched_analyze): Likewise for params "head", "tail" and local "insn".
8440 (add_dependence_1): Likewise for params "insn", "elem".
8441 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
8442 (parse_add_or_inc): Likewise for param "insn".
8443 (find_inc): Likewise for local "inc_cand".
8444 (find_modifiable_mems): Likewise for params "head", "tail" and
8445 locals "insn", "next_tail".
8447 * sched-ebb.c (init_ready_list): Likewise for local "insn".
8448 (begin_schedule_ready): Likewise for param "insn".
8449 (begin_move_insn): Likewise for params "insn" and "last".
8450 (ebb_print_insn): Strengthen param "insn" from const_rtx to
8452 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
8453 (ebb_contributes_to_priority): Likewise for params "next", "insn".
8454 (ebb_add_remove_insn): Likewise for param "insn".
8455 (advance_target_bb): Likewise.
8457 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
8459 (check_live): Likewise for param "insn".
8460 (init_ready_list): Likewise for local "insn".
8461 (can_schedule_ready_p): Likewise for param "insn".
8462 (begin_schedule_ready): Likewise.
8463 (new_ready): Likewise for param "next".
8464 (rgn_print_insn): Likewise for param "insn".
8465 (rgn_rank): Likewise for params "insn1", "insn2".
8466 (contributes_to_priority): Likewise for params "next", "insn".
8467 (rgn_insn_finishes_block_p): Likewise for param "insn".
8468 (add_branch_dependences): Likewise for params "head", "tail" and
8469 locals "insn", "last".
8470 (rgn_add_remove_insn): Likewise for param "insn".
8471 (advance_target_bb): Likewise.
8473 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
8474 const_rtx to const rtx_insn *.
8476 * sel-sched-dump.h (sel_print_insn): Likewise.
8478 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
8479 (deps_init_id): Likewise.
8481 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
8482 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
8485 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8487 * output.h (final_start_function): Strengthen param 1 from rtx to
8490 * final.c (final_start_function): Likewise, renaming back from
8491 "uncast_first" to "first", and dropping the checked cast from rtx
8494 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8496 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
8497 * final.c (final): Likewise. Rename param back from
8498 "uncast_first" to "first" and eliminate the checked cast from rtx
8501 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8503 * output.h (shorten_branches): Strengthen param from rtx to
8506 * final.c (shorten_branches): Likewise, renaming param back from
8507 "uncast_first" to "first", and dropping the checked cast from rtx
8510 * genattr.c (gen_attr): Likewise when writing out the prototype of
8513 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8515 * sched-int.h (struct haifa_sched_info): Strengthen fields
8516 "prev_head" and "next_tail" from rtx to rtx_insn *.
8518 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8520 * rtl.h (rtx_jump_table_data::get_labels): New method.
8521 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
8522 with use of the new rtx_jump_table_data::get_labels method.
8523 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
8524 to rtx_jump_table_data *. Simplify by using get_labels method.
8525 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
8526 a dyn_cast, introducing local "table", using it to replace
8527 label-lookup logic with a get_labels method call.
8528 (patch_jump_insn): Simplify using get_labels method.
8529 * dwarf2cfi.c (create_trace_edges): Likewise.
8530 * rtlanal.c (label_is_jump_target_p): Likewise.
8532 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8534 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
8537 * emit-rtl.c (unshare_all_rtl_1): Likewise.
8538 (unshare_all_rtl_again): Likewise, also for local "p".
8540 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8542 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
8544 * cfgrtl.c (delete_insn_and_edges): Likewise.
8546 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8548 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
8549 from rtx to rtx_insn *.
8551 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
8553 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8555 * function.c (thread_prologue_and_epilogue_insns): Likewise for
8556 locals "returnjump", "epilogue_end", "insn", "next".
8558 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
8559 "returnjump" from rtx * to rtx_insn **.
8560 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
8562 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8564 * basic-block.h (struct edge_def). Strengthen "r" within
8565 union edge_def_insns from rtx to rtx_insn *.
8567 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
8568 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
8570 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
8571 from rtx to rtx_insn *.
8572 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
8574 * postreload-gcse.c (reg_killed_on_edge): Likewise.
8575 (reg_used_on_edge): Likewise.
8576 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
8577 (gt_pch_nx): New overload for rtx_insn *&.
8578 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
8579 from rtx to rtx_insn *.
8581 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8583 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
8584 from rtx to rtx_insn *.
8585 (BB_FOOTER): Replace function with access macro.
8586 (SET_BB_FOOTER): Delete.
8588 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
8590 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8591 (emit_barrier_after_bb): Likewise.
8592 (record_effective_endpoints): Likewise.
8593 (relink_block_chain): Likewise.
8594 (fixup_fallthru_exit_predecessor): Likewise.
8595 (cfg_layout_duplicate_bb): Likewise.
8596 (cfg_layout_split_block): Likewise.
8597 (cfg_layout_delete_block): Likewise.
8598 (cfg_layout_merge_blocks): Likewise.
8599 (BB_FOOTER): Delete function.
8600 (SET_BB_FOOTER): Delete function.
8601 * combine.c (update_cfg_for_uncondjump): Replace uses of
8602 SET_BB_FOOTER with BB_FOOTER.
8604 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8606 * except.h (struct eh_landing_pad_d): Strengthen field
8607 "landing_pad" from rtx to rtx_code_label *.
8609 * except.c (sjlj_emit_dispatch_table): Likewise for param
8611 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
8613 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8615 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
8616 first param from rtx to rtx_insn *.
8617 * config/xtensa/xtensa.c (struct machine_function): Likewise for
8618 field "set_frame_ptr_insn".
8619 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
8620 "csend" from rtx to rtx_code_label *.
8621 (xtensa_expand_atomic): Likewise for local "csloop".
8622 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
8624 (xtensa_call_tls_desc): Likewise for return type and locals
8625 "call_insn", "insns".
8626 (xtensa_legitimize_tls_address): Likewise for local "insns".
8627 (xtensa_expand_prologue): Likewise for locals "insn", "first".
8629 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8631 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
8632 first param from rtx to rtx_insn *.
8633 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
8636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8638 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
8639 Strengthen param 1 from rtx to rtx_insn *.
8640 (tilepro_output_cbranch): Likewise.
8641 (tilepro_adjust_insn_length): Likewise.
8642 (tilepro_final_prescan_insn): Likewise for sole param.
8644 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
8645 Likewise for local "last".
8646 (cbranch_predicted_p): Likewise for param "insn".
8647 (tilepro_output_simple_cbranch_with_opcode): Likewise.
8648 (tilepro_output_cbranch_with_opcode): Likewise.
8649 (tilepro_output_cbranch): Likewise.
8650 (frame_emit_load): Likewise for return type and locals "seq",
8652 (emit_sp_adjust): Likewise for return type and local "insn".
8653 (tilepro_expand_epilogue): Likewise for locals "last_insn",
8655 (tilepro_adjust_insn_length): Likewise for param "insn".
8656 (next_insn_to_bundle): Likewise for return type and params
8658 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
8659 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
8661 (match_addli_pcrel): Likewise for param "insn".
8662 (replace_addli_pcrel): Likewise.
8663 (match_auli_pcrel): Likewise.
8664 (replace_auli_pcrel): Likewise.
8665 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
8667 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8668 "queue", "next_queue", "prev".
8669 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
8670 (tilepro_final_prescan_insn): Likewise for param "insn".
8672 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8674 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
8675 Strengthen param 1 from rtx to rtx_insn *.
8676 (tilegx_output_cbranch): Likewise.
8677 (tilegx_adjust_insn_length): Likewise.
8678 (tilegx_final_prescan_insn): Likewise for sole param.
8680 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
8682 (cbranch_predicted_p): Likewise for param "insn".
8683 (tilegx_output_simple_cbranch_with_opcode): Likewise.
8684 (tilegx_output_cbranch_with_opcode): Likewise.
8685 (tilegx_output_cbranch): Likewise.
8686 (frame_emit_load): Likewise for return type.
8687 (set_frame_related_p): Likewise for locals "seq", "insn".
8688 (emit_sp_adjust): Likewise for return type, and for local "insn".
8689 Introduce local "pat" for use in place of "insn" where the latter
8690 isn't an instruction.
8691 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
8692 from rtx to rtx_insn *.
8693 (tilegx_adjust_insn_length): Likewise for param "insn".
8694 (next_insn_to_bundle): Likewise for return type and params "r" and
8696 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
8698 (replace_insns): Likewise for params "old_insn", "new_insns".
8699 (replace_mov_pcrel_step1): Likewise for param "insn" and local
8701 (replace_mov_pcrel_step2): Likewise.
8702 (replace_mov_pcrel_step3): Likewise.
8703 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
8705 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8706 "queue", "next_queue", "prev".
8707 (tilegx_output_mi_thunk): Likewise for local "insn".
8708 (tilegx_final_prescan_insn): Likewise for param "insn".
8710 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8712 * config/spu/spu.c (frame_emit_store): Strengthen return type from
8714 (frame_emit_load): Likewise.
8715 (frame_emit_add_imm): Likewise, also for local "insn".
8716 (spu_expand_prologue): Likewise for local "insn".
8717 (struct spu_bb_info): Likewise for field "prop_jump".
8718 (emit_nop_for_insn): Likewise for param "insn" and local
8720 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
8722 (spu_emit_branch_hint): Likewise for params "before", "branch" and
8723 locals "hint", "insn".
8724 (get_branch_target): Likewise for param "branch".
8725 (insn_clobbers_hbr): Likewise for param "insn".
8726 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
8727 locals "insn", "before_4", "before_16".
8728 (insert_hbrp): Likewise for local "insn".
8729 (spu_machine_dependent_reorg): Likewise for locals "branch",
8730 "insn", "next", "bbend".
8731 (uses_ls_unit): Likewise for param "insn".
8732 (get_pipe): Likewise.
8733 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
8734 introducing a checked cast.
8735 (spu_sched_adjust_cost): Likewise for params "insn" and
8737 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
8738 (spu_sms_res_mii): Likewise.
8740 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8742 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
8743 from rtx to rtx_insn *.
8744 (output_cbranch): Likewise for param 6.
8745 (output_return): Likewise for param 1.
8746 (output_sibcall): Likewise.
8747 (output_v8plus_shift): Likewise.
8748 (output_v8plus_mult): Likewise.
8749 (output_v9branch): Likewise for param 7.
8750 (output_cbcond): Likewise for param 3.
8752 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
8754 (sparc_legitimize_pic_address): Likewise.
8755 (sparc_emit_call_insn): Likewise.
8756 (emit_save_or_restore_regs): Likewise.
8757 (emit_window_save): Likewise for return type and local "insn".
8758 (sparc_expand_prologue): Likewise for local "insn".
8759 (sparc_flat_expand_prologue): Likewise.
8760 (output_return): Likewise for param "insn".
8761 (output_sibcall): Likewise for param "insn" and local "delay".
8762 (output_ubranch): Likewise for param "insn".
8763 (output_cbranch): Likewise.
8764 (output_cbcond): Likewise.
8765 (output_v9branch): Likewise.
8766 (output_v8plus_shift): Likewise.
8767 (sparc_output_mi_thunk): Likewise for local "insn".
8768 (get_some_local_dynamic_name): Likewise.
8769 (output_v8plus_mult): Likewise for param "insn".
8771 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8773 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
8774 from rtx to rtx_insn *.
8775 (output_branchy_insn): Likewise for param 3.
8776 (output_far_jump): Likewise for param 1.
8777 (final_prescan_insn): Likewise.
8778 (sh_insn_length_adjustment): Likewise for sole param.
8780 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
8781 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
8783 (sh_emit_compare_and_set): Likewise for local "lab".
8784 (output_far_jump): Strengthen param "insn" and local "prev" from
8786 (output_branchy_insn): Likewise for param "insn" and local
8788 (output_ieee_ccmpeq): Likewise for param "insn".
8789 (struct label_ref_list_d): Strengthen field "label" from rtx to
8791 (pool_node): Likewise.
8792 (pool_window_label): Likewise for this global.
8793 (add_constant): Likewise for return type and locals "lab", "new_rtx".
8794 (dump_table): Strengthen params "start", "barrier" and local
8795 "scan" from rtx to rtx_insn *.
8796 (broken_move): Likewise for param "insn".
8797 (untangle_mova): Likewise for params "first_mova" and "new_mova".
8798 Strengthen param "first_mova" from rtx * to rtx_insn **.
8799 (mova_p): Likewise for param "insn".
8800 (fixup_mova): Likewise for param "mova".
8801 (find_barrier): Likewise for return type, params "mova" and
8802 "from", and locals "barrier_before_mova", "found_barrier",
8803 "good_barrier", "orig", "last_symoff", "next". Strengthen local
8804 "label" from rtx to rtx_code_label *.
8805 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
8807 (sh_reorg): Likewise for locals "link", "scan", "barrier".
8808 (split_branches): Likewise for param "first" and local "insn".
8809 (final_prescan_insn): Likewise for param "insn".
8810 (sequence_insn_p): Likewise for locals "prev", "next".
8811 (sh_insn_length_adjustment): Likewise for param "insn".
8812 (sh_can_redirect_branch): Likewise for local "insn".
8813 (find_r0_life_regions): Likewise for locals "end", "insn".
8814 (sh_output_mi_thunk): Likewise for local "insns".
8816 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8818 * config/score/score.c (score_output_mi_thunk): Strengthen local
8819 "insn" from rtx to rtx_insn *.
8820 (score_prologue): Likewise.
8822 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8824 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
8825 1 from rtx to rtx_insn *.
8826 (s390_emit_jump): Likewise for return type.
8827 (s390_emit_call): Likewise.
8828 (s390_load_got): Likewise.
8830 * config/s390/s390.c (last_scheduled_insn): Likewise for this
8832 (s390_match_ccmode): Likewise for param "insn".
8833 (s390_emit_jump): Likewise for return type.
8834 (s390_split_branches): Likewise for local "label".
8835 (struct constant): Strengthen field "label" from rtx to
8837 (struct constant_pool): Likewise for field "label". Strengthen
8838 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
8840 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
8842 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
8843 (s390_end_pool): Likewise.
8844 (s390_dump_pool): Likewise for local "insn".
8845 (s390_mainpool_start): Likewise.
8846 (s390_chunkify_start): Likewise.
8847 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
8848 with insns. Strengthen locals "label", "jump", "barrier", "next",
8849 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
8850 (s390_chunkify_finish): Strengthen local "insn" from rtx to
8852 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
8853 "jump", "label", "next_insn".
8854 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
8855 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
8857 (s390_load_got): Likewise for return type and local "insns".
8858 (s390_save_gprs_to_fprs): Likewise for local "insn".
8859 (s390_restore_gprs_from_fprs): Likewise.
8860 (pass_s390_early_mach::execute): Likewise.
8861 (s390_emit_prologue): Likewise for local "insns".
8862 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
8864 (s390_emit_call): Strengthen return type and local "insn" from
8866 (s390_emit_tpf_eh_return): Likewise for local "insn".
8867 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
8868 "next_insn", introducing locals "s_pat", "rpat" to allow this.
8869 (s390_fix_long_loop_prediction): Likewise for param "insn" and
8871 (s390_non_addr_reg_read_p): Likewise for param "insn".
8872 (find_cond_jump): Likewise for return type and param "insn".
8873 (s390_swap_cmp): Likewise for param "insn".
8874 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
8875 "prev_insn", "next_insn".
8876 (s390_reorg): Likewise for locals "insn", "target".
8877 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
8878 (s390_sched_variable_issue): For now, rename param "insn" to
8879 "uncast_insn", introducing a checked cast.
8880 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
8882 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
8883 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
8885 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8887 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
8888 param from rtx to rtx_insn *.
8889 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
8891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8893 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
8894 4 from rtx to rtx_insn *.
8895 (rs6000_final_prescan_insn): Likewise for first param.
8896 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
8898 (rs6000_get_some_local_dynamic_name): Likewise.
8899 (output_cbranch): Likewise for param "insn".
8900 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
8901 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
8902 (rs6000_emit_allocate_stack): Likewise for local "insn".
8903 (load_cr_save): Likewise.
8904 (restore_saved_cr): Likewise.
8905 (restore_saved_lr): Likewise.
8906 (emit_cfa_restores): Likewise.
8907 (rs6000_output_function_epilogue): Likewise for locals "insn" and
8908 "deleted_debug_label".
8909 (rs6000_output_mi_thunk): Likewise for local "insn".
8910 (rs6000_final_prescan_insn): Likewise for param "insn".
8912 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8914 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
8915 Strengthen param "insn" from rtx to rtx_insn *.
8916 * config/picochip/picochip.c (picochip_current_prescan_insn):
8917 Likewise for this variable.
8918 (picochip_final_prescan_insn): Likewise for param "insn".
8920 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8922 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8923 from rtx to rtx_insn *.
8924 (pa_output_indirect_call): Likewise.
8925 (pa_adjust_insn_length): Likewise.
8926 (pa_attr_length_millicode_call): Likewise.
8927 (pa_attr_length_call): Likewise.
8928 (pa_attr_length_indirect_call): Likewise.
8930 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8932 (pa_attr_length_millicode_call): Likewise.
8933 (pa_attr_length_call): Likewise.
8934 (pa_output_call): Likewise.
8935 (pa_attr_length_indirect_call): Likewise.
8936 (pa_output_indirect_call): Likewise.
8938 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8940 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8941 Strengthen first param from rtx to rtx_insn *.
8942 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8945 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8947 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8948 type from rtx to rtx_insn *.
8949 (mips_expand_call): Likewise.
8950 (mips_adjust_insn_length): Likewise for first param.
8951 (mips_output_conditional_branch): Likewise.
8952 (mips_output_order_conditional_branch): Likewise.
8953 (mips_final_prescan_insn): Likewise.
8955 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8956 rtx_insn * for the SEQUENCE case.
8957 (SEQ_END): Likewise.
8958 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8959 (mips_emit_call_insn): Likewise, also for local "insn".
8960 (mips16_gp_pseudo_reg): Likewise for local "scan".
8961 (mips16_build_call_stub): Likewise for return type and for local
8962 "insn". Introduce a new local "pattern" so that "insn" can indeed
8964 (mips_expand_call): Strengthen return type and local "insn" from
8966 (mips_block_move_loop): Strengthen local "label" from rtx to
8968 (mips_expand_synci_loop): Likewise for locals "label",
8970 (mips_set_frame_expr): Strengthen local "insn" from rtx to
8972 (mips16e_collect_argument_saves): Likewise for locals "insn",
8974 (mips_find_gp_ref): Likewise for param of callback for "pred"
8975 param, and for local "insn".
8976 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8977 (mips_insn_has_flexible_gp_ref_p): Likewise.
8978 (mips_epilogue_emit_cfa_restores): Likewise for return type and
8980 (mips_epilogue_set_cfa): Likewise for local "insn".
8981 (mips_expand_epilogue): Likewise.
8982 (mips_adjust_insn_length): Likewise for param "insn".
8983 (mips_output_conditional_branch): Likewise.
8984 (mips_output_order_conditional_branch): Likewise.
8985 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8986 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8987 "falu2_turn_enabled_insn".
8988 (mips_builtin_branch_and_move): Strengthen locals "true_label",
8989 "done_label" from rtx to rtx_code_label *.
8990 (struct mips16_constant): Likewise for field "label".
8991 (mips16_add_constant): Likewise for return type.
8992 (mips16_emit_constants_1): Strengthen return type and param "insn"
8993 from rtx to rtx_insn *.
8994 (mips16_emit_constants): Likewise for param "insn".
8995 (mips16_insn_length): Likewise.
8996 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8997 to rtx_code_label *.
8998 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8999 from rtx to rtx_insn *.
9000 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
9001 "jump". Strengthen local "label" from rtx to rtx_code_label *.
9002 (r10k_simplify_address): Strengthen param "insn" and local
9003 "def_insn" from rtx to rtx_insn *.
9004 (r10k_safe_address_p): Strengthen param "insn" from rtx to
9006 (r10k_needs_protection_p_1): Update target type of cast of data
9007 from to rtx to rtx_insn *.
9008 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
9009 rtx * to rtx_insn **.
9010 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
9012 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
9013 (mips_call_expr_from_insn): Likewise for param "insn".
9014 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
9015 (mips_find_pic_call_symbol): Likewise for param "insn".
9016 (mips_annotate_pic_calls): Likewise for local "insn".
9017 (mips_sim_insn): Likewise for this variable.
9018 (struct mips_sim): Likewise for field "insn" within elements of
9020 (mips_sim_wait_reg): Likewise for param "insn".
9021 (mips_sim_wait_regs): Likewise.
9022 (mips_sim_wait_units): Likewise.
9023 (mips_sim_wait_insn): Likewise.
9024 (mips_sim_issue_insn): Likewise.
9025 (mips_sim_finish_insn): Likewise.
9026 (mips_seq_time): Likewise for param "seq" and local "insn".
9027 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
9028 locals "first", "second".
9029 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
9030 "last", "last2", "next".
9031 (mips_avoid_hazard): Likewise for params "after", "insn".
9032 (mips_reorg_process_insns): Likewise for locals "insn",
9033 "last_insn", "subinsn", "next_insn".
9034 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
9035 (mips16_split_long_branches): Likewise for locals "insn" "jump",
9037 (mips_output_mi_thunk): Likewise for local "insn".
9038 (mips_final_prescan_insn): Likewise for param "insn".
9040 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9042 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
9043 Strengthen return type and local "insns" from rtx to rtx_insn *.
9044 (microblaze_legitimize_tls_address): Likewise for local "insns".
9045 (microblaze_block_move_loop): Strengthen local "label" from rtx
9046 to rtx_code_label *.
9047 (microblaze_expand_prologue): Strengthen two locals named "insn"
9048 from rtx to rtx_insn *.
9049 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
9050 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
9051 "insn". Strengthen locals "div_label", "div_end_label" from rtx
9052 to rtx_code_label *.
9054 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9056 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
9057 param from rtx to rtx_insn *.
9058 (mep_reuse_lo): Likewise for third param.
9059 (mep_use_post_modify_p): Likewise for first param.
9060 (mep_core_address_length): Likewise.
9061 (mep_cop_address_length): Likewise.
9062 (mep_final_prescan_insn): Likewise.
9063 (mep_store_data_bypass_p): Likewise for both params.
9064 (mep_mul_hilo_bypass_p): Likewise.
9065 (mep_ipipe_ldc_p): Likewise for param.
9067 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
9068 (mep_rewrite_mult): Likewise.
9069 (mep_rewrite_mulsi3): Likewise.
9070 (mep_rewrite_maddsi3): Likewise.
9071 (mep_reuse_lo_p_1): Likewise.
9072 (mep_reuse_lo_p): Likewise.
9073 (mep_frame_expr): Likewise.
9074 (mep_make_parallel): Likewise for both params.
9075 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
9077 (mep_use_post_modify_p): Likewise for param "insn".
9078 (mep_core_address_length): Likewise.
9079 (mep_cop_address_length): Likewise.
9080 (mep_reg_set_in_function): Likewise for local "insn".
9081 (mep_asm_without_operands_p): Likewise.
9082 (F): Likewise for return type and param "x".
9083 (add_constant): Likewise for local "insn".
9084 (maybe_dead_move): Likewise for return type and local "insn".
9085 (mep_expand_prologue): Likewise for local "insn".
9086 (mep_final_prescan_insn): Likewise for param "insn".
9087 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
9088 "next", "follow", "x".
9089 (mep_insert_repeat_label_last): Likewise for return type, param
9090 "last_insn", and locals "next", "prev". Strengthen param "label"
9091 from rtx to rtx_code_label *.
9092 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
9094 (struct mep_doloop_end): Likewise for fields "insn" and
9096 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
9097 Strengthen local "repeat_label" from rtx to rtx_code_label *.
9098 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
9100 (mep_invert_branch): Likewise for params "insn" and "after".
9101 (mep_reorg_erepeat): Likewise for param "insns" and locals
9102 "insn", "prev", "new_last", "barrier", "user". Strengthen local
9103 "l" from rtx to rtx_code_label *.
9104 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
9105 from rtx to rtx_insn *.
9106 (mep_reorg_addcombine): Likewise for param "insns" and locals
9108 (add_sp_insn_p): Likewise for param "insn".
9109 (mep_reorg_noframe): Likewise for param "insns" and locals
9110 "start_frame_insn", "end_frame_insn", "next".
9111 (mep_reorg): Likewise for local "insns".
9112 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
9114 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
9115 (mep_mul_hilo_bypass_p): Likewise.
9116 (mep_ipipe_ldc_p): Likewise for param "insn".
9117 (mep_make_bundle): Likewise for return type, param "cop" and local
9118 "insn", splitting out the latter into a new local "seq" for when it
9119 is a SEQUENCE rather than an insn.
9120 (core_insn_p): Likewise for param "insn".
9121 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
9122 "last", "first", "note", "prev", "core_insn".
9124 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9126 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
9128 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
9129 (m68k_final_prescan_insn): Likewise for first param.
9131 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
9132 (m68k_set_frame_related): Likewise for param "insn".
9133 (output_btst): Likewise for param "insn".
9134 (m68k_final_prescan_insn): Likewise.
9135 (m68k_move_to_reg): Likewise for local "insn".
9136 (m68k_call_tls_get_addr): Likewise for local "insns".
9137 (m68k_call_m68k_read_tp): Likewise.
9138 (strict_low_part_peephole_ok): Likewise for param "first_insn".
9139 (m68k_output_mi_thunk): Likewise for local "insn".
9141 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9143 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
9144 first param from rtx to rtx_insn *.
9145 (iq2000_adjust_insn_length): Likewise.
9146 (iq2000_output_conditional_branch): Likewise.
9147 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
9148 "insn" and local "nop_insn".
9149 (iq2000_annotate_frame_insn): Likewise for param "insn".
9150 (iq2000_expand_prologue): Likewise for both locals "insn".
9151 (iq2000_adjust_insn_length): Likewise for param "insn".
9152 (iq2000_output_conditional_branch): Likewise.
9154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9156 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
9157 "insns" from rtx to rtx_insn *.
9158 (ia64_emit_cond_move): Likewise for locals "insn", "first".
9159 (struct spill_fill_data): Likewise for field "init_after" and for
9160 elements of array field "prev_insn".
9161 (spill_restore_mem): Likewise for locals "insn", "first".
9162 (do_spill): Likewise for local "insn".
9163 (do_restore): Likewise.
9164 (ia64_expand_prologue): Likewise.
9165 (ia64_expand_epilogue): Likewise.
9166 (emit_insn_group_barriers): Likewise for locals "insn",
9168 (emit_all_insn_group_barriers): Likewise for locals "insn",
9170 (dfa_stop_insn): Likewise for this global.
9171 (dfa_pre_cycle_insn): Likewise.
9172 (ia64_nop): Likewise.
9173 (final_emit_insn_group_barriers): Likewise for locals "insn",
9175 (emit_predicate_relation_info): Likewise for locals "head", "n",
9177 (ia64_reorg): Likewise for local "insn".
9178 (ia64_output_mi_thunk): Likewise.
9179 (expand_vec_perm_interleave_2): Likewise for local "seq".
9181 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9183 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
9184 param 1 "insn" from rtx to rtx_insn *.
9185 (ix86_use_lea_for_mov): Likewise.
9186 (ix86_avoid_lea_for_addr): Likewise.
9187 (ix86_split_lea_for_addr): Likewise.
9188 (ix86_lea_for_add_ok): Likewise.
9189 (ix86_output_call_insn): Likewise.
9191 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
9192 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
9193 (ix86_output_function_epilogue): Likewise for locals "insn",
9194 "deleted_debug_label".
9195 (legitimize_tls_address): Likewise for local "insn".
9196 (get_some_local_dynamic_name): Likewise.
9197 (increase_distance): Likewise for params "prev", "next".
9198 (distance_non_agu_define_in_bb): Likewise for params "insn",
9199 "start" and locals "prev", "next".
9200 (distance_non_agu_define): Likewise for param "insn".
9201 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
9202 locals "next", "prev".
9203 (distance_agu_use): Likewise for param "insn".
9204 (ix86_lea_outperforms): Likewise.
9205 (ix86_ok_to_clobber_flags): Likewise.
9206 (ix86_avoid_lea_for_add): Likewise.
9207 (ix86_use_lea_for_mov): Likewise.
9208 (ix86_avoid_lea_for_addr): Likewise.
9209 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
9210 (ix86_split_lea_for_addr): Likewise for param "insn".
9211 (ix86_lea_for_add_ok): Likewise for param "insn".
9212 (ix86_expand_carry_flag_compare): Likewise for local
9214 (ix86_expand_int_movcc): Likewise.
9215 (ix86_output_call_insn): Likewise for param "insn".
9216 (ix86_output_call_insn): Likewise for local "i".
9217 (x86_output_mi_thunk): Introduce local "insn", using it in place
9218 of "tmp" when dealing with insns.
9219 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
9221 (ix86_pad_returns): Likewise for locals "ret", "prev".
9222 (ix86_count_insn_bb): Likewise for local "insn".
9223 (ix86_pad_short_function): Likewise for locals "ret", "insn".
9224 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
9225 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
9226 (expand_vec_perm_interleave2): Likewise for local "seq".
9227 (expand_vec_perm_vperm2f128_vblend): Likewise.
9228 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
9229 call to for_each_rtx with for_each_rtx_in_insn.
9231 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9233 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
9234 "label" from rtx to rtx_code_label *.
9235 (ix86_expand_prologue): Likewise.
9236 (ix86_expand_split_stack_prologue): Likewise for locals "label",
9238 (ix86_split_idivmod): Likewise for locals "end_label" and
9240 (ix86_expand_branch): Likewise for local "label2".
9241 (ix86_expand_aligntest): Likewise for return type and local "label".
9242 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
9244 (expand_movmem_epilogue): Likewise for the various locals named
9246 (expand_setmem_epilogue): Likewise.
9247 (expand_small_movmem_or_setmem): Likewise for local "label".
9248 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
9249 Strengthen param "done_label" from rtx * to rtx_code_label **.
9250 Strengthen locals "loop_label" and "label" from rtx to
9252 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
9253 Likewise for locals "loop_label", "label".
9254 (ix86_expand_set_or_movmem): Likewise for locals "label",
9255 "jump_around_label", "hot_label".
9256 (ix86_expand_strlensi_unroll_1): Likewise for locals
9257 "align_2_label", align_3_label", "align_4_label", "end_0_label",
9259 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
9260 (void ix86_emit_i387_log1p): Likewise for locals "label1",
9261 "label2", "jump_label".
9262 (ix86_expand_sse_compare_and_jump): Likewise for return type and
9264 (ix86_expand_lfloorceil): Likewise for local "label".
9265 (ix86_expand_rint): Likewise.
9266 (ix86_expand_floorceildf_32): Likewise.
9267 (ix86_expand_floorceil): Likewise.
9268 (ix86_expand_rounddf_32): Likewise.
9269 (ix86_expand_trunc): Likewise.
9270 (ix86_expand_truncdf_32): Likewise.
9271 (ix86_expand_round): Likewise.
9273 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9275 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
9276 first param from rtx to rtx_insn *.
9277 (h8300_insn_length_from_table): Likewise.
9278 * config/h8300/h8300.c (F): Likewise for return type and param
9280 (Fpa): Add a checked cast to rtx_insn *.
9281 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
9283 (final_prescan_insn): Likewise for param "insn".
9284 (h8300_binary_length): Likewise.
9285 (h8300_insn_length_from_table): Likewise.
9287 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9289 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
9290 Strengthen first param "insn" from rtx to rtx_insn *.
9292 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
9294 (frame_insn): Likewise for return type. Introduce local "insn"
9295 for use in place of local "x" for use as an rtx_insn *.
9296 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
9297 (epiphany_expand_prologue): Likewise for local "insn".
9298 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
9299 * config/epiphany/resolve-sw-modes.c
9300 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
9303 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9305 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
9306 param from rtx to rtx_insn *.
9307 (c6x_final_prescan_insn): Likewise for first param.
9309 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
9310 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
9311 (c6x_expand_compare): Strengthen local "insns" from rtx to
9313 (c6x_get_unit_specifier): Likewise for param "insn".
9314 (c6x_print_unit_specifier_field): Likewise.
9315 (c6x_final_prescan_insn): Likewise.
9316 (emit_add_sp_const): Likewise for local "insn".
9317 (c6x_expand_prologue): Likewise.
9319 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9321 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
9322 param 1 from rtx to rtx_insn *.
9323 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
9324 the various locals named "insn".
9325 (expand_epilogue_reg_restore): Likewise.
9326 (frame_related_constant_load): Likewise.
9327 (add_to_reg): Likewise.
9328 (emit_link_insn): Likewise.
9329 (do_link): Likewise.
9330 (expand_interrupt_handler_prologue): Likewise.
9331 (branch_dest): Likewise for param "branch".
9332 (asm_conditional_branch): Likewise for param "insn".
9333 (gen_one_bundle): Likewise for elements of param "slot" and local
9335 (bfin_gen_bundles): Likewise for locals "insn", "next" and
9336 elements of local "slot".
9337 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9338 "queue", "next_queue", "prev".
9339 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
9340 (add_sched_insns_for_speculation): Likewise for local "insn".
9342 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9344 * config/avr/avr-protos.h (output_movqi): Strengthen first param
9345 from rtx to rtx_insn *.
9346 (output_movhi): Likewise.
9347 (output_movsisf): Likewise.
9348 (avr_out_tstsi): Likewise.
9349 (avr_out_tsthi): Likewise.
9350 (avr_out_tstpsi): Likewise.
9351 (avr_out_compare): Likewise.
9352 (avr_out_compare64): Likewise.
9353 (avr_out_movpsi): Likewise.
9354 (ashlqi3_out): Likewise.
9355 (ashlhi3_out): Likewise.
9356 (ashlsi3_out): Likewise.
9357 (ashrqi3_out): Likewise.
9358 (ashrhi3_out): Likewise.
9359 (ashrsi3_out): Likewise.
9360 (lshrqi3_out): Likewise.
9361 (lshrhi3_out): Likewise.
9362 (lshrsi3_out): Likewise.
9363 (avr_out_ashlpsi3): Likewise.
9364 (avr_out_ashrpsi3): Likewise.
9365 (avr_out_lshrpsi3): Likewise.
9366 (avr_out_fract): Likewise.
9367 (avr_out_sbxx_branch): Likewise.
9368 (avr_out_round): Likewise.
9369 (avr_out_xload): Likewise.
9370 (avr_out_movmem): Likewise.
9371 (adjust_insn_length): Likewise.
9372 (avr_out_lpm): Likewise.
9373 (reg_unused_after): Likewise.
9374 (_reg_unused_after): Likewise.
9375 (avr_jump_mode): Likewise for second param.
9376 (jump_over_one_insn): Likewise for first param.
9377 (avr_final_prescan_insn): Likewise.
9378 (out_shift_with_cnt): Likewise for second param.
9380 * config/avr/avr.c (get_sequence_length): Likewise for param
9381 "insns" and local "insn".
9382 (emit_push_byte): Likewise for local "insn".
9383 (emit_push_sfr): Likewise.
9384 (avr_prologue_setup_frame): Likewise for locals "insn",
9385 "fp_plus_insns", "sp_plus_insns".
9386 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
9388 (avr_jump_mode): Likewise for param "insn".
9389 (avr_final_prescan_insn): Likewise.
9390 (avr_find_unused_d_reg): Likewise.
9391 (avr_out_lpm_no_lpmx): Likewise.
9392 (avr_out_lpm): Likewise.
9393 (avr_out_xload): Likewise.
9394 (output_movqi): Likewise.
9395 (output_movhi): Likewise.
9396 (out_movqi_r_mr): Likewise.
9397 (out_movhi_r_mr): Likewise.
9398 (out_movsi_r_mr): Likewise.
9399 (out_movsi_mr_r): Likewise.
9400 (output_movsisf): Likewise.
9401 (avr_out_load_psi): Likewise.
9402 (avr_out_store_psi): Likewise.
9403 (avr_out_movpsi): Likewise.
9404 (out_movqi_mr_r): Likewise.
9405 (avr_out_movhi_mr_r_xmega): Likewise.
9406 (out_movhi_mr_r): Likewise.
9407 (compare_condition): Likewise for param "insn" and local "next".
9408 (compare_sign_p): Likewise for param "insn".
9409 (compare_diff_p): Likewise.
9410 (compare_eq_p): Likewise.
9411 (avr_out_compare): Likewise.
9412 (avr_out_compare64): Likewise.
9413 (avr_out_tsthi): Likewise.
9414 (avr_out_tstpsi): Likewise.
9415 (avr_out_tstsi): Likewise.
9416 (out_shift_with_cnt): Likewise.
9417 (ashlqi3_out): Likewise.
9418 (ashlhi3_out): Likewise.
9419 (avr_out_ashlpsi3): Likewise.
9420 (ashlsi3_out): Likewise.
9421 (ashrqi3_out): Likewise.
9422 (ashrhi3_out): Likewise.
9423 (avr_out_ashrpsi3): Likewise.
9424 (ashrsi3_out): Likewise.
9425 (lshrqi3_out): Likewise.
9426 (lshrhi3_out): Likewise.
9427 (avr_out_lshrpsi3): Likewise.
9428 (lshrsi3_out): Likewise.
9429 (avr_out_fract): Likewise.
9430 (avr_out_round): Likewise.
9431 (avr_adjust_insn_length): Likewise.
9432 (reg_unused_after): Likewise.
9433 (_reg_unused_after): Likewise.
9434 (avr_compare_pattern): Likewise.
9435 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
9436 and locals "branch1", "branch2", "insn2", "jump".
9437 (avr_reorg): Likewise for local "insn".
9438 (avr_2word_insn_p): Likewise for param "insn".
9439 (jump_over_one_insn_p): Likewise.
9440 (avr_out_sbxx_branch): Likewise.
9441 (avr_out_movmem): Likewise.
9443 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9445 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
9446 param from rtx to rtx_insn *.
9447 (thumb1_final_prescan_insn): Likewise.
9448 (thumb2_final_prescan_insn): Likewise.
9450 * config/arm/arm.c (emit_set_insn): Strengthen return type from
9452 (struct minipool_node): Likewise for field "insn".
9453 (dump_minipool): Likewise for param "scan".
9454 (create_fix_barrier): Likewise for local "from". Strengthen local
9455 "label" from rtx to rtx_code_label *.
9456 (push_minipool_barrier): Strengthen param "insn" from rtx to
9458 (push_minipool_fix): Likewise.
9459 (note_invalid_constants): Likewise.
9460 (thumb2_reorg): Likewise for local "insn".
9461 (arm_reorg): Likewise.
9462 (thumb2_final_prescan_insn): Likewise for param
9463 "insn" and local "first_insn".
9464 (arm_final_prescan_insn): Likewise for param "insn" and locals
9465 "start_insn", "this_insn".
9466 (arm_debugger_arg_offset): Likewise for param "insn".
9467 (thumb1_emit_multi_reg_push): Likewise for return type and local
9469 (thumb1_final_prescan_insn): Likewise for param "insn".
9470 (thumb_far_jump_used_p): Likewise for local "insn".
9471 (thumb1_expand_prologue): Likewise.
9472 (arm_expand_epilogue_apcs_frame): Likewise.
9473 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
9474 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
9475 from rtx to rtx_code_label *.
9476 (arm_split_atomic_op): Likewise for local "label".
9477 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
9479 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9481 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
9482 first param from rtx to rtx_insn *.
9483 (arc_verify_short): Likewise.
9484 (arc_short_long): Likewise.
9485 (arc_need_delay): Likewise.
9487 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
9489 (arc_ccfsm_advance): Likewise for param "insn" and locals
9490 "start_insn", "this_insn".
9491 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
9492 (arc_ccfsm_post_advance): Likewise for param "insn".
9493 (arc_next_active_insn): Likewise for return type and param "insn".
9494 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
9495 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
9496 (output_short_suffix): Likewise for local "insn".
9497 (arc_final_prescan_insn): Likewise for param "insn". Remove
9498 now-redundant checked cast.
9499 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
9500 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
9501 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
9502 for use where lc_set became an insn.
9503 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
9505 (arc_get_insn_variants): Likewise for local "prev".
9506 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
9508 (arc_predicate_delay_insns): Likewise for local "insn".
9509 (arc_pad_return): Likewise for local "prev". For now, add a
9510 checked cast when extracting the insn from "final_sequence".
9511 (arc_short_long): Likewise for param "insn".
9512 (arc_need_delay): Likewise for param "insn" and local "next".
9513 (arc_label_align): Likewise for locals "prev", "next".
9515 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9517 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
9518 "insn" from rtx to rtx_insn *.
9519 (alpha_gp_save_rtx): Likewise for local "seq".
9520 (alpha_instantiate_decls): Likewise for local "top".
9521 (get_some_local_dynamic_name): Likewise for local "insn".
9522 (alpha_does_function_need_gp): Likewise.
9523 (set_frame_related_p): Likewise for return type and for locals
9525 (emit_frame_store_1): Likewise for local "insn".
9526 (alpha_expand_prologue): Likewise for locals "insn", "seq".
9527 (alpha_end_function): Likewise for local "insn".
9528 (alpha_output_mi_thunk_osf): Likewise.
9529 (alphaev4_insn_pipe): Likewise for param "insn".
9530 (alphaev5_insn_pipe): Likewise.
9531 (alphaev4_next_group): Likewise for return type and param 1
9533 (alphaev5_next_group): Likewise.
9534 (alpha_align_insns_1): Likewise for return type and param 1 of
9535 callback param "next_group", and for locals "i", "next", "prev",
9536 "where", "where2", "insn".
9538 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
9540 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
9541 rather than modifying the stmt.
9543 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9545 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
9546 cgraph_state conversion.
9548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9550 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9551 Strengthen local "insns" from rtx to rtx_insn *.
9552 (aarch64_set_frame_expr): Likewise for local "insn".
9553 (aarch64_save_or_restore_fprs): Likewise.
9554 (aarch64_save_or_restore_callee_save_registers): Likewise.
9555 (aarch64_expand_prologue): Likewise.
9556 (aarch64_expand_epilogue): Likewise.
9557 (aarch64_output_mi_thunk): Likewise.
9558 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
9559 "label2" from rtx to rtx_code_label *.
9560 (aarch64_split_atomic_op): Likewise for local "label".
9562 2014-08-25 Martin Liska <mliska@suse.cz>
9564 * cgraph.h (symtab_node):
9565 (bool needed_p (void)): created from decide_is_symbol_needed
9566 (bool referred_to_p (void)): created from referred_to_p
9567 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
9568 * cgraph.h (cgraph_node):
9569 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
9570 (void expand (void)): created from expand_function
9571 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
9572 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
9573 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
9574 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
9575 * cgraph.h (varpool_node):
9576 (static void add (tree decl): created from varpool_add_new_variable
9577 * cgraph.h (cgraph_edge):
9579 (void remove_caller (void)): created from cgraph_edge_remove_caller
9580 (void remove_callee (void)): created from cgraph_edge_remove_callee
9581 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
9582 created from cgraph_set_call_stmt
9583 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
9584 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
9585 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
9586 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
9587 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
9588 created from cgraph_speculative_call_info
9589 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
9590 int freq_scale, bool update_original)): created from cgraph_clone_edge
9591 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
9592 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
9593 (bool recursive_p (void)): created from cgraph_edge_recursive_p
9594 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
9595 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
9596 (static void rebuild_references (void)): created from cgraph_rebuild_references
9597 * cgraph.h (symbol_table):
9598 (create_reference): renamed from add_reference
9599 (maybe_create_reference): renamed from maybe_add_reference
9600 (void register_symbol (symtab_node *node)): new function
9601 (void clear_asm_symbols (void)): new function
9602 (void unregister (symtab_node *node)): new function
9603 (void release_symbol (cgraph_node *node, int uid)): new function
9604 (cgraph_node * allocate_cgraph_symbol (void)): new function
9605 (void initialize (void)): created from cgraph_init
9606 (symtab_node *first_symbol (void)):new function
9607 (asm_node *first_asm_symbol (void)):new function
9608 (symtab_node *first_defined_symbol (void)):new function
9609 (varpool_node *first_variable (void)):new function
9610 (varpool_node *next_variable (varpool_node *node)):new function
9611 (varpool_node *first_static_initializer (void)):new function
9612 (varpool_node *next_static_initializer (varpool_node *node)):new function
9613 (varpool_node *first_defined_variable (void)):new function
9614 (varpool_node *next_defined_variable (varpool_node *node)):new function
9615 (cgraph_node *first_defined_function (void)):new function
9616 (cgraph_node *next_defined_function (cgraph_node *node)):new function
9617 (cgraph_node *first_function (void)):new function
9618 (cgraph_node *next_function (cgraph_node *node)):new function
9619 (cgraph_node *first_function_with_gimple_body (void)):new function
9620 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
9621 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
9622 created from symtab_remove_unreachable_nodes
9623 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
9624 (void process_new_functions (void)): created from cgraph_process_new_functions
9625 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
9626 (bool output_variables (void)): created from varpool_node::output_variables
9627 (void output_asm_statements (void)): created from output_asm_statements
9628 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
9629 (void compile (void)): created from compile
9630 (void output_weakrefs (void)): created from output_weakrefs
9631 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
9632 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
9633 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
9634 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
9635 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
9636 created from cgraph_next_function_with_gimple_body
9637 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
9638 created from cgraph_remove_edge_removal_hook
9639 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
9640 created from cgraph_add_node_removal_hook
9641 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
9642 created from cgraph_remove_node_removal_hook
9643 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
9644 created from varpool_add_node_removal_hook
9645 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
9646 created from varpool_remove_node_removal_hook
9647 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
9648 created from cgraph_add_function_insertion_hook
9649 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
9650 created from cgraph_remove_function_insertion_hook
9651 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
9652 created from varpool_add_variable_insertion_hook
9653 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
9654 created from varpool_remove_variable_insertion_hook
9655 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
9656 created from cgraph_add_edge_duplication_hook
9657 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
9658 created from cgraph_remove_edge_duplication_hook
9659 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
9660 created from cgraph_add_node_duplication_hook
9661 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
9662 created from cgraph_remove_node_duplication_hook
9663 (void call_edge_removal_hooks (cgraph_edge *e)):
9664 created from cgraph_call_edge_removal_hooks
9665 (void call_cgraph_insertion_hooks (cgraph_node *node)):
9666 created from call_function_insertion_hooks
9667 (void call_cgraph_removal_hooks (cgraph_node *node)):
9668 created from cgraph_call_node_removal_hooks
9669 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
9670 created from cgraph_node::call_duplication_hooks
9671 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
9672 created from cgraph_call_edge_duplication_hooks
9673 (void call_varpool_removal_hooks (varpool_node *node)):
9674 created from varpool_call_node_removal_hooks
9675 (void call_varpool_insertion_hooks (varpool_node *node)):
9676 created from varpool_call_variable_insertion_hooks
9677 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
9678 created from insert_to_assembler_name_hash
9679 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
9680 created from unlink_from_assembler_name_hash
9681 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
9682 created from symtab_prevail_in_asm_name_hash
9683 (void symtab_initialize_asm_name_hash (void)):
9684 created from symtab_initialize_asm_name_hash
9685 (void change_decl_assembler_name (tree decl, tree name)):
9686 created from change_decl_assembler_name
9687 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
9688 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
9689 created from decl_assembler_name_hash
9690 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
9691 created from decl_assembler_name_equal
9692 (static hashval_t hash_node_by_assembler_name (const void *p)):
9693 created from hash_node_by_assembler_name
9694 (static int eq_assembler_name (const void *p1, const void *p2)):
9695 created from eq_assembler_name
9697 2014-08-25 Marek Polacek <polacek@redhat.com>
9699 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
9701 2014-08-25 Petr Murzin <petr.murzin@intel.com>
9703 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
9704 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
9705 SWI1248_AVX512BW mode iterator.
9707 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
9710 * config/sh/predicates.md (general_extend_operand): Disable
9711 TRUNCATE before reload completes.
9713 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
9715 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
9717 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
9720 * config/sh/sh.opt (musermode): Allow negative form.
9721 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
9722 targets that don't support it.
9723 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
9724 Document -mno-usermode option.
9726 2014-08-24 Kito Cheng <kito@0xlab.org>
9728 * system.h (CALLER_SAVE_PROFITABLE): Poison.
9729 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
9730 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
9731 * doc/tm.texi: Regenerate.
9733 2014-08-24 Kito Cheng <kito@0xlab.org>
9735 * ira.c: Fix typo in comment.
9737 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
9739 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
9740 Deprecate c++1y. Change language to reflect greater confidence in C++14.
9742 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
9745 * config/pa/pa.c (pa_output_function_epilogue): Don't set
9746 last_address when the current function is a thunk.
9747 (pa_asm_output_mi_thunk): When we don't have named sections or they
9748 are not being used, check that thunk can reach the stub table with a
9751 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9753 * web.c (union_match_dups): Strengthen param "insn" from rtx to
9755 (pass_web::execute): Likewise for local "insn".
9757 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9759 * var-tracking.c (struct micro_operation_def): Strengthen field
9760 "insn" from rtx to rtx_insn *.
9761 (struct emit_note_data_def): Likewise.
9762 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
9763 (vt_stack_adjustments): Likewise for local "insn".
9764 (adjust_insn): Likewise for param "insn".
9765 (val_store): Likewise.
9766 (val_resolve): Likewise.
9767 (struct count_use_info): Likewise for field "insn".
9768 (log_op_type): Likewise for param "insn".
9769 (reverse_op): Likewise.
9770 (prepare_call_arguments): Likewise.
9771 (add_with_sets): The initial param takes an insn, but we can't
9772 yet strengthen it from rtx to rtx_insn * since it's used as a
9773 cselib_record_sets_hook callback. For now rename initial param
9774 from "insn" to "uncast_insn", and introduce a local "insn" of
9775 the stronger rtx_insn * type, with a checked cast.
9776 (compute_bb_dataflow): Strengthen local "insn" from rtx to
9778 (emit_note_insn_var_location): Likewise.
9779 (emit_notes_for_changes): Likewise.
9780 (emit_notes_for_differences): Likewise.
9781 (next_non_note_insn_var_location): Likewise for return type and
9783 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
9784 (vt_initialize): Likewise for local "insn".
9785 (delete_debug_insns): Likewise for locals "insn" and "next".
9787 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9789 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
9791 (mark_constant_pool): Likewise for local "insn".
9793 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9795 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
9797 (dead_debug_promote_uses): Likewise.
9798 (dead_debug_insert_temp): Likewise.
9800 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9802 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
9803 from const_rtx to const rtx_insn *.
9804 (store_killed_after): Likewise. Strengthen locals "last", "act"
9805 from rtx to rtx_insn *.
9806 (store_killed_before): Strengthen param "insn" from const_rtx to
9807 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
9808 (find_moveable_store): Strengthen param "insn" from rtx to
9810 (compute_store_table): Likewise for local "insn".
9811 (insert_insn_start_basic_block): Likewise for param "insn" and
9812 locals "prev", "before", "insn".
9813 (insert_store): For now, add a checked cast to rtx_insn * on the
9814 result of gen_move_insn.
9815 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
9817 (replace_store_insn): Likewise. For now, add a checked cast to
9818 rtx_insn * on the result of gen_move_insn.
9820 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9822 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
9824 (expand_sjlj_dispatch_table): Likewise.
9826 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9828 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
9829 "insn" from rtx to rtx_insn *.
9831 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9833 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
9834 "insn" from rtx to rtx_insn *.
9835 (dup_block_and_redirect): Likewise for param 3 "before".
9837 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
9838 from rtx to rtx_insn *.
9839 (move_insn_for_shrink_wrap): Likewise.
9840 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
9841 (dup_block_and_redirect): Likewise for param "before" and local
9843 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
9845 (convert_to_simple_return): Likewise for local "start".
9847 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
9848 Strengthen local "insn" from rtx to rtx_insn *, for use when
9849 invoking requires_stack_frame_p.
9851 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9853 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
9855 (speculate_expr): Likewise for locals "orig_insn_rtx",
9857 (eq_transformed_insns): Likewise for locals "i1", "i2".
9858 (check_for_new_jump): Likewise for return type and local "end".
9859 (find_new_jump): Likewise for return type and local "jump".
9860 (sel_split_edge): Likewise for local "jump".
9861 (sel_create_recovery_block): Likewise.
9862 (sel_redirect_edge_and_branch_force): Likewise.
9863 (sel_redirect_edge_and_branch): Likewise.
9865 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9867 * sel-sched.c (substitute_reg_in_expr): Strengthen local
9868 "new_insn" from rtx to rtx_insn *.
9869 (create_insn_rtx_with_rhs): Likewise for return type and for local
9871 (create_insn_rtx_with_lhs): Likewise.
9872 (create_speculation_check): Likewise for local "insn_rtx".
9873 (implicit_clobber_conflict_p): Likewise for local "insn".
9874 (get_expr_cost): Likewise.
9875 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
9876 (move_cond_jump): Likewise for locals "next", "prev", "link",
9877 "head", "from", "to".
9879 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9881 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
9882 "next" from rtx to rtx_insn *.
9883 (find_conditional_protection): Likewise for local "next".
9884 (is_conditionally_protected): Likewise for local "insn1".
9885 (is_pfree): Likewise for locals "insn1", "insn2".
9887 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9889 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
9890 from rtx to rtx_insn *.
9892 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
9893 locals "insn1", "insn2" from rtx to rtx_insn *.
9894 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
9895 locals "insn", "prev", "last_jump", "next_tail".
9896 (schedule_ebb): Likewise for params "head", "tail".
9897 (schedule_ebbs): Likewise for locals "tail", "head".
9899 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
9900 to rtx_insn on "last_insn" in one of the invocations of
9903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9905 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
9906 "elem", "insn" from rtx to rtx_insn *.
9907 (change_spec_dep_to_hard): Likewise.
9908 (get_back_and_forw_lists): Likewise for local "con".
9909 (sd_add_dep): Likewise for locals "elem", "insn".
9910 (sd_resolve_dep): Likewise for locals "pro", "con".
9911 (sd_unresolve_dep): Likewise.
9912 (sd_delete_dep): Likewise.
9913 (chain_to_prev_insn): Likewise for local "pro".
9914 (find_inc): Likewise for locals "pro", "con".
9916 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9918 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9920 (reg_set_between_p): Strengthen local "insn" from const_rtx to
9922 (modified_between_p): Strengthen local "insn" from rtx to
9924 (remove_reg_equal_equiv_notes_for_regno): Likewise.
9925 (keep_with_call_p): Strengthen local "i2" from const_rtx to
9928 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9930 * resource.c (next_insn_no_annul): Strengthen local "next" from
9932 (mark_referenced_resources): Likewise for local "insn".
9934 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9936 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9938 (find_reloads): Likewise for param 1.
9939 (subst_reloads): Likewise for sole param.
9940 (find_equiv_reg): Likwise for param 2.
9941 (regno_clobbered_p): Likwise for param 2.
9942 (reload): Likewise for param 1.
9944 * caller-save.c (save_call_clobbered_regs): Strengthen local
9945 "insn" from rtx to rtx_insn *.
9946 (insert_one_insn): Likewise for local "insn".
9948 * reload.c (this_insn): Likewise for this global.
9949 (find_reloads): Likewise for param "insn".
9950 (find_reloads_toplev): Likewise.
9951 (find_reloads_address): Likewise.
9952 (subst_reg_equivs): Likewise.
9953 (update_auto_inc_notes): Likewise.
9954 (find_reloads_address_1): Likewise.
9955 (find_reloads_subreg_address): Likewise.
9956 (subst_reloads): Likewise.
9957 (find_equiv_reg): Likewise, also for local "p".
9958 (regno_clobbered_p): Likewise for param "insn".
9960 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9962 (spill_reg_store): Likewise for the elements of this array.
9963 (remove_init_insns): Likewise for local "equiv_insn".
9964 (will_delete_init_insn_p): Likewise for param "insn".
9965 (reload): Likewise for param ""first" and local "insn".
9966 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9968 (calculate_elim_costs_all_insns): Likewise.
9969 (delete_caller_save_insns): Likewise.
9970 (spill_failure): Likewise for param "insn".
9971 (delete_dead_insn): Likewise.
9972 (set_label_offsets): Likewise.
9973 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9975 (elimination_costs_in_insn): Likewise for param "insn".
9976 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9977 when referring to an insn.
9978 (set_initial_label_offsets): Likewise.
9979 (set_offsets_for_label): Strengthen param "insn" from rtx to
9981 (init_eliminable_invariants): Likewise for param "first" and local
9983 (fixup_eh_region_note): Likewise for param "insn".
9984 (reload_as_needed): Likewise for locals "prev", "insn",
9985 "old_next", "old_prev", "next".
9986 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9988 (reload_inheritance_insn): Strengthen elements of this array from
9990 (failed_reload): Likewise for param "insn".
9991 (choose_reload_regs): Likewise for local "insn". Replace use of
9992 NULL_RTX with NULL when referring to an insn.
9993 (input_reload_insns): Strengthen elements of this array from rtx
9995 (other_input_address_reload_insns): Likewise for this global.
9996 (other_input_reload_insns): Likewise for this global.
9997 (input_address_reload_insns): Likwise for the elements of this
9999 (inpaddr_address_reload_insns): Likwise for the elements of this
10001 (output_reload_insns): Likewise for the elements of this array.
10002 (output_address_reload_insns): Likewise for the elements of this
10004 (outaddr_address_reload_insns): Likewise for the elements of this
10006 (operand_reload_insns): Likewise for this global.
10007 (other_operand_reload_insns): Likewise for this global.
10008 (other_output_reload_insns): Likewise for the elements of this
10010 (new_spill_reg_store): Likewise for the elements of this
10012 (emit_input_reload_insns): Likewise for locals "insn", "temp".
10013 Strengthen local "where" from rtx * to rtx_insn **.
10014 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
10015 from rtx to rtx_insn *.
10016 (do_input_reload): Likewise for local "insn".
10017 (do_output_reload): Likewise for local "insn".
10018 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
10019 (emit_insn_if_valid_for_reload): Likewise for return type and local
10020 "last". Add checked cast to rtx_insn when returning "insn" since
10021 this has been through emit_insn.
10022 (gen_reload): Strengthen return type and locals "last", "insn", "set"
10023 from rtx to rtx_insn *. Add checked cast to rtx_insn when
10024 returning "insn" since it's been through
10025 emit_insn_if_valid_for_reload at this point.
10026 (delete_output_reload): Strengthen param "insn" and locals
10027 "output_reload_insn", "i2" from rtx to rtx_insn *.
10028 (delete_address_reloads): Likewise for params "dead_insn",
10029 "current_insn" and locals "prev", "next".
10030 (delete_address_reloads_1): Likewise for params "dead_insn",
10031 "current_insn" and locals "prev", "i2".
10032 (inc_for_reload): Likewise for locals "last", "add_insn".
10033 (add_auto_inc_notes): Strengthen param "insn" from rtx to
10036 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
10037 param of this duplicate of the prototype from reload.h
10039 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10041 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
10043 (regstat_bb_compute_calls_crossed): Likewise.
10045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10047 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
10049 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
10051 (regrename_analyze): Strengthen local "insn" from rtx to
10053 (scan_rtx_reg): Likewise for param "insn".
10054 (scan_rtx_address): Likewise.
10055 (scan_rtx): Likewise.
10056 (restore_operands): Likewise.
10057 (record_out_operands): Likewise.
10058 (build_def_use): Likewise for local "insn". Replace use of
10059 NULL_RTX with NULL when dealing with an insn.
10061 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10063 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
10064 * reginfo.c (reg_scan): Likewise, also for local "insn".
10065 (reg_scan_mark_refs): Likewise for param "insn".
10066 (init_subregs_of_mode): Likewise for local "insn".
10068 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10070 * regcprop.c (struct queued_debug_insn_change): Strengthen field
10071 "insn" from rtx to rtx_insn *.
10072 (replace_oldest_value_reg): Likewise for param "insn".
10073 (replace_oldest_value_addr): Likewise.
10074 (replace_oldest_value_mem): Likewise.
10075 (apply_debug_insn_changes): Likewise for local "last_insn".
10076 (copyprop_hardreg_forward_1): Likewise for local "insn".
10078 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10080 * reg-stack.c (next_flags_user): Strengthen return type and param
10081 "insn" from rtx to rtx_insn *.
10082 (straighten_stack): Likewise for param "insn".
10083 (check_asm_stack_operands): Likewise.
10084 (remove_regno_note): Likewise.
10085 (emit_pop_insn): Likewise for return type, param "insn", local
10087 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
10088 "limit" from rtx to rtx_insn *.
10089 (swap_to_top): Likewise for param "insn".
10090 (move_for_stack_reg): Likewise.
10091 (move_nan_for_stack_reg): Likewise.
10092 (swap_rtx_condition): Likewise.
10093 (compare_for_stack_reg): Likewise.
10094 (subst_all_stack_regs_in_debug_insn): Likewise.
10095 (subst_stack_regs_pat): Likewise, and local "insn2".
10096 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
10098 (subst_stack_regs): Likewise.
10099 (change_stack): Likewise.
10100 (convert_regs_1): Likewise for locals "insn", "next".
10102 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10104 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
10106 (combine_set_extension): Likewise for param "curr_insn".
10107 (transform_ifelse): Likewise for param "def_insn".
10108 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
10109 from vec<rtx> * to vec<rtx_insn *> *.
10110 (is_cond_copy_insn): Likewise for param "insn".
10111 (struct ext_state): Strengthen the four vec fields from vec<rtx>
10112 to vec<rtx_insn *>.
10113 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
10114 local "def_insn" from rtx to rtx_insn *.
10115 (get_sub_rtx): Likewise for param "def_insn".
10116 (merge_def_and_ext): Likewise.
10117 (combine_reaching_defs): Likewise.
10118 (add_removable_extension): Likewise for param "insn".
10119 (find_removable_extensions): Likewise for local "insn".
10120 (find_and_remove_re): Likewise for locals "curr_insn" and
10121 "def_insn". Strengthen locals "reinsn_del_list" and
10122 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
10124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10126 * recog.c (split_insn): Strengthen param "insn" and locals
10127 "first", "last" from rtx to rtx_insn *.
10128 (split_all_insns): Likewise for locals "insn", "next".
10129 (split_all_insns_noflow): Likewise.
10131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10133 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
10135 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10136 (debug_rtx_find): Likewise for param 1 "x".
10138 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
10139 const_rtx to const rtx_insn *. Likewise for local "insn".
10140 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10141 (debug_rtx_find): Likewise for param 1 "x".
10142 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
10143 from const_rtx to const rtx_insn * within the appropriate cases of
10144 the switch statement.
10146 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
10147 Strengthen local "insns" from rtx to rtx_insn * since this is
10148 passed to a call to debug_rtx_list.
10150 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10152 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
10155 * function.c (stack_protect_epilogue): Add checked cast to
10156 rtx_insn for now when invoking predict_insn_def.
10158 * predict.c (predict_insn): Strengthen param "insn" from rtx to
10160 (predict_insn_def): Likewise.
10161 (rtl_predict_edge): Likewise for local "last_insn".
10162 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
10164 (combine_predictions_for_insn): Strengthen param "insn" from rtx
10166 (bb_estimate_probability_locally): Likewise for local "last_insn".
10167 (expensive_function_p): Likewise for local "insn".
10169 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
10170 local "jmp", since this is used when invoking predict_insn_def.
10172 2014-08-22 Marek Polacek <polacek@redhat.com>
10175 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
10177 2014-08-22 Marek Polacek <polacek@redhat.com>
10180 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
10181 a comparison in parens.
10182 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
10185 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10187 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
10190 * cprop.c (fis_get_condition): Likewise.
10192 * postreload.c (reload_cse_regs): Likewise for param "first".
10193 (reload_cse_simplify): Likewise for param "insn".
10194 (reload_cse_regs_1): Likewise for local "insn".
10195 (reload_cse_simplify_set): Likewise for param "insn".
10196 (reload_cse_simplify_operands): Likewise.
10197 (struct reg_use): Likewise for field "insn".
10198 (reload_combine_purge_insn_uses): Likewise for param "insn".
10199 (fixup_debug_insns): Likewise for params "from", "to" and local
10201 (try_replace_in_use): Likewise for local "use_insn".
10202 (reload_combine_recognize_const_pattern): Likewise for param
10203 "insn" and locals "add_moved_after_insn", "use_insn".
10204 (reload_combine_recognize_pattern): Likewise for param "insn" and
10206 (reload_combine): Likewise for locals "insn", "prev".
10207 (reload_combine_note_use): Likewise for param "insn".
10208 (move2add_use_add2_insn): Likewise.
10209 (move2add_use_add3_insn): Likewise.
10210 (reload_cse_move2add): Likewise, also for local "next".
10211 (move2add_note_store): Likewise for local "insn".
10213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10215 * postreload-gcse.c (struct occr): Strengthen field "insn" from
10217 (struct unoccr): Likewise.
10218 (struct modifies_mem): Likewise.
10219 (alloc_mem): Likewise for local "insn".
10220 (insert_expr_in_table): Likewise for param "insn".
10221 (dump_expr_hash_table_entry): Likewise for local "insn".
10222 (oprs_unchanged_p): Likewise for param "insn".
10223 (load_killed_in_block_p): Likewise for local "setter".
10224 (record_last_reg_set_info): Likewise for param "insn".
10225 (record_last_reg_set_info_regno): Likewise.
10226 (record_last_mem_set_info): Likewise.
10227 (record_last_set_info): Likewise for local "last_set_insn".
10228 (record_opr_changes): Likewise for param "insn".
10229 (hash_scan_set): Likewise.
10230 (compute_hash_table): Likewise for local "insn".
10231 (get_avail_load_store_reg): Likewise for param "insn".
10232 (eliminate_partially_redundant_load): Likewise, also for locals
10233 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
10235 (eliminate_partially_redundant_loads): Likewise for local "insn".
10237 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10239 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
10241 (expand_binop): Likewise for locals "entry_last", "last", "insns"
10242 (expand_twoval_unop): Likewise for locals entry_last", "last".
10243 (expand_twoval_binop): Likewise.
10244 (expand_twoval_binop_libfunc): Likewise for local "insns".
10245 (widen_leading): Likewise for local "last".
10246 (expand_doubleword_clz): Likewise for local "seq". Strengthen
10247 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
10248 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
10249 (expand_parity): Likewise for locals "last" and "seq".
10250 (expand_ffs): Likewise for local "seq". Strengthen local
10251 "nonzero_label" from rtx to rtx_code_label *.
10252 (expand_absneg_bit): Strengthen local "insns" from rtx to
10254 (expand_unop_direct): Likewise for local "last".
10255 (expand_unop): Likewise for locals "last", "insns".
10256 (expand_abs_nojump): Likewise for local "last".
10257 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
10258 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
10260 (expand_copysign_absneg): Strengthen local "label" from rtx to
10262 (expand_copysign_bit): Strengthen local "insns" from rtx to
10264 (struct no_conflict_data): Likewise for fields "first", "insn".
10265 (emit_libcall_block_1): Likewise for param "insns" and locals
10266 "next", "last", "insn".
10267 (emit_libcall_block): For now, add a checked cast to rtx_insn *
10268 on "insns" when invoking emit_libcall_block_1. Ultimately we
10269 want to strengthen insns itself.
10270 (prepare_cmp_insn): Strengthen local "last" from rtx to
10272 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
10273 (prepare_float_lib_cmp): Likewise for local "insns".
10274 (emit_conditional_move): Likewise for local "last".
10275 (emit_conditional_add): Likewise.
10276 (have_sub2_insn): Likewise for local "seq".
10277 (expand_float): Likewise for local "insns". Strengthen locals
10278 "label", "neglabel" from rtx to rtx_code_label *.
10279 (expand_fix): Likewise for locals "last", "insn", "insns" (to
10280 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
10281 (expand_fixed_convert): Likewise for local "insns" (to
10283 (expand_sfix_optab): Likewise for local "last".
10284 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
10285 to rtx_code_label *.
10286 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
10287 from rtx to rtx_insn *.
10288 (expand_atomic_fetch_op): Likewise for local "insn".
10289 (maybe_legitimize_operand_same_code): Likewise for local "last".
10290 (maybe_legitimize_operands): Likewise.
10292 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10294 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
10295 "insn" from rtx to rtx_insn *.
10296 (ps_rtl_insn): Likewise for return type.
10297 (doloop_register_get): Likewise for params "head", "tail" and
10298 locals "insn", "first_insn_not_to_check".
10299 (schedule_reg_move): Likewise for local "this_insn".
10300 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
10301 of gen_move_insn for now.
10302 (reset_sched_times): Strengthen local "insn" from rtx to
10304 (permute_partial_schedule): Likewise.
10305 (duplicate_insns_of_cycles): Likewise for local "u_insn".
10306 (dump_insn_location): Likewise for param "insn".
10307 (loop_canon_p): Likewise for local "insn".
10308 (sms_schedule): Likewise.
10309 (print_partial_schedule): Likewise.
10310 (ps_has_conflicts): Likewise.
10312 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10314 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
10315 "tailp" from rtx * to rtx_insn **.
10317 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
10318 from rtx to rtx_insn *.
10319 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
10320 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
10321 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
10323 * modulo-sched.c (const_iteration_count): Strengthen return type
10324 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
10325 use of NULL_RTX with NULL when working with insns.
10326 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
10328 (sms_schedule): Likewise.
10329 * sched-rgn.c (init_ready_list): Likewise, also for locals
10330 "src_head" and "src_next_tail".
10331 (compute_block_dependences): Likewise.
10332 (free_block_dependencies): Likewise.
10333 (debug_rgn_dependencies): Likewise.
10334 (free_rgn_deps): Likewise.
10335 (compute_priorities): Likewise.
10336 (schedule_region): Likewise.
10337 * sel-sched.c (find_ebb_boundaries): Likewise.
10339 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
10340 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
10342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10344 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
10345 from rtx to rtx_insn *.
10346 (new_seginfo): Likewise for param "insn".
10347 (create_pre_exit): Likewise for locals "last_insn",
10348 "before_return_copy", "return_copy".
10349 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
10352 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10354 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
10355 from rtx to rtx_insn *.
10356 (lra_push_insn): Likewise for 1st param.
10357 (lra_push_insn_and_update_insn_regno_info): Likewise.
10358 (lra_pop_insn): Likewise for return type.
10359 (lra_invalidate_insn_data): Likewise for 1st param.
10360 (lra_set_insn_deleted): Likewise.
10361 (lra_delete_dead_insn): Likewise.
10362 (lra_process_new_insns): Likewise for first 3 params.
10363 (lra_set_insn_recog_data): Likewise for 1st param.
10364 (lra_update_insn_recog_data): Likewise.
10365 (lra_set_used_insn_alternative): Likewise.
10366 (lra_invalidate_insn_regno_info): Likewise.
10367 (lra_update_insn_regno_info): Likewise.
10368 (lra_former_scratch_operand_p): Likewise.
10369 (lra_eliminate_regs_1): Likewise.
10370 (lra_get_insn_recog_data): Likewise.
10372 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
10375 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
10377 (substitute_within_insn): New.
10378 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
10379 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
10380 Replace call to "substitute" with call to substitute_within_insn.
10382 * lra-constraints.c (curr_insn): Strengthen from rtx to
10384 (get_equiv_with_elimination): Likewise for param "insn".
10385 (match_reload): Strengthen params "before" and "after" from rtx *
10387 (emit_spill_move): Likewise for return type. Add a checked cast
10388 to rtx_insn * on result of gen_move_insn for now.
10389 (check_and_process_move): Likewise for local "before". Replace
10390 NULL_RTX with NULL when referring to insns.
10391 (process_addr_reg): Strengthen params "before" and "after" from
10392 rtx * to rtx_insn **.
10393 (insert_move_for_subreg): Likewise.
10394 (simplify_operand_subreg): Strengthen locals "before" and "after"
10395 from rtx to rtx_insn *.
10396 (process_address_1): Strengthen params "before" and "after" from
10397 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
10399 (process_address): Strengthen params "before" and "after" from
10400 rtx * to rtx_insn **.
10401 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
10402 (curr_insn_transform): Strengthen locals "before" and "after"
10403 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
10405 (loc_equivalence_callback): Update cast of "data", changing
10406 resulting type from rtx to rtx_insn *.
10407 (substitute_pseudo_within_insn): New.
10408 (inherit_reload_reg): Strengthen param "insn" from rtx to
10409 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
10410 NULL when referring to insns. Add a checked cast to rtx_insn *
10411 when using usage_insn to invoke lra_update_insn_regno_info.
10412 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
10413 likewise for locals "restore", "save". Add checked casts to
10414 rtx_insn * when using usage_insn to invoke
10415 lra_update_insn_regno_info and lra_process_new_insns. Replace
10416 NULL_RTX with NULL when referring to insns.
10417 (split_if_necessary): Strengthen param "insn" from rtx to
10419 (update_ebb_live_info): Likewise for params "head", "tail" and local
10421 (get_last_insertion_point): Likewise for return type and local "insn".
10422 (get_live_on_other_edges): Likewise for local "last".
10423 (inherit_in_ebb): Likewise for params "head", "tail" and locals
10424 "prev_insn", "next_insn", "restore".
10425 (remove_inheritance_pseudos): Likewise for local "prev_insn".
10426 (undo_optional_reloads): Likewise for local "insn".
10428 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
10430 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
10432 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
10434 (spill_pseudos): Likewise for local "insn".
10435 (init_elimination): Likewise.
10436 (process_insn_for_elimination): Likewise for param "insn".
10438 * lra-lives.c (curr_insn): Likewise.;
10440 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
10441 (remove_pseudos): Likewise for param "insn".
10442 (spill_pseudos): Likewise for local "insn".
10443 (lra_final_code_change): Likewise for locals "insn", "curr".
10445 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
10446 (lra_set_insn_deleted): Likewise.
10447 (lra_delete_dead_insn): Likewise, and for local "prev".
10448 (new_insn_reg): Likewise for param "insn".
10449 (lra_set_insn_recog_data): Likewise.
10450 (lra_update_insn_recog_data): Likewise.
10451 (lra_set_used_insn_alternative): Likewise.
10452 (get_insn_freq): Likewise.
10453 (invalidate_insn_data_regno_info): Likewise.
10454 (lra_invalidate_insn_regno_info): Likewise.
10455 (lra_update_insn_regno_info): Likewise.
10456 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
10458 (lra_push_insn_1): Strengthen param "insn" from rtx to
10460 (lra_push_insn): Likewise.
10461 (lra_push_insn_and_update_insn_regno_info): Likewise.
10462 (lra_pop_insn): Likewise for return type and local "insn".
10463 (push_insns): Likewise for params "from", "to", and local "insn".
10464 (setup_sp_offset): Likewise for params "from", "last" and locals
10466 (lra_process_new_insns): Likewise for params "insn", "before",
10467 "after" and local "last".
10468 (struct sloc): Likewise for field "insn".
10469 (lra_former_scratch_operand_p): Likewise for param "insn".
10470 (remove_scratches): Likewise for locals "insn", "last".
10471 (check_rtl): Likewise for local "insn".
10472 (add_auto_inc_notes): Likewise for param "insn".
10473 (update_inc_notes): Likewise for local "insn".
10474 (lra): Replace NULL_RTX with NULL when referring to insn.
10476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10478 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
10480 (resolve_reg_notes): Likewise.
10481 (resolve_simple_move): Likewise for return type, param "insn", and
10482 locals "insns", "minsn".
10483 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
10484 (resolve_use): Likewise.
10485 (resolve_debug): Likewise.
10486 (find_decomposable_shift_zext): Likewise.
10487 (resolve_shift_zext): Likewise for return type, param "insn", and
10488 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
10489 (decompose_multiword_subregs): Likewise for local "insn",
10490 "orig_insn", "decomposed_shift", "end".
10492 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10494 * basic-block.h (basic_block split_edge_and_insert): Strengthen
10495 param "insns" from rtx to rtx_insn *.
10497 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
10499 (struct iv_to_split): Likewise.
10500 (loop_exit_at_end_p): Likewise for local "insn".
10501 (split_edge_and_insert): Likewise for param "insns".
10502 (compare_and_jump_seq): Likewise for return type, param "cinsn",
10503 and locals "seq", "jump".
10504 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
10505 "branch_code"; update invocations of compare_and_jump_seq to
10506 eliminate NULL_RTX in favor of NULL.
10507 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
10509 (reset_debug_uses_in_loop): Likewise.
10510 (analyze_insn_to_expand_var): Likewise for param "insn".
10511 (analyze_iv_to_split_insn): Likewise.
10512 (analyze_insns_in_loop): Likewise for local "insn".
10513 (insert_base_initialization): Likewise for param
10514 "insn" and local "seq".
10515 (split_iv): Likewise for param "insn" and local "seq".
10516 (expand_var_during_unrolling): Likewise for param "insn".
10517 (insert_var_expansion_initialization): Likewise for local "seq".
10518 (combine_var_copies_in_loop_exit): Likewise.
10519 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
10521 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
10522 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
10525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10527 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
10529 (iv_analyze_result): Likewise.
10530 (iv_analyze_expr): Likewise.
10533 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
10534 local "def_insn" from rtx to rtx_insn *.
10535 (get_biv_step_1): Likewise for local "insn".
10536 (iv_analyze_expr): Likewise for param "insn".
10537 (iv_analyze_def): Likewise for local "insn".
10538 (iv_analyze_op): Likewise for param "insn".
10539 (iv_analyze): Likewise.
10540 (iv_analyze_result): Likewise.
10542 (suitable_set_for_replacement): Likewise.
10543 (simplify_using_initial_values): Likewise for local "insn".
10544 (iv_number_of_iterations): Likewise for param "insn".
10545 (check_simple_exit): Add checked cast to rtx_insn when invoking
10546 iv_number_of_iterations for now (until get_condition is
10549 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
10550 "insn" from rtx to rtx_insn *.
10551 (analyze_insns_in_loop): Likewise for local "insn".
10553 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10555 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
10557 (struct invariant): Likewise.
10558 (hash_invariant_expr_1): Likewise for param "insn".
10559 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
10560 (find_exits): Likewise for local "insn".
10561 (create_new_invariant): Likewise for param "insn".
10562 (check_dependencies): Likewise.
10563 (find_invariant_insn): Likewise.
10564 (record_uses): Likewise.
10565 (find_invariants_insn): Likewise.
10566 (find_invariants_bb): Likewise for local "insn".
10567 (get_pressure_class_and_nregs): Likewise for param "insn".
10568 (calculate_loop_reg_pressure): Likewise for local "insn".
10570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10572 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
10574 (add_test): Likewise for locals "seq", "jump".
10575 (doloop_modify): Likewise for locals "sequence", "jump_insn".
10577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10579 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
10581 (rebuild_jump_labels_chain): Likewise for param "chain".
10583 * cfgexpand.c (pass_expand::execute): Add checked cast to
10584 rtx_insn * when calling rebuild_jump_labels_chain in region where
10585 we know e->insns.r is non-NULL.
10587 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
10589 (rebuild_jump_labels): Likewise.
10590 (rebuild_jump_labels_chain): Likewise for param "chain".
10591 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
10592 (init_label_info): Likewise for param "f".
10593 (maybe_propagate_label_ref): Likewise for params "jump_insn",
10594 "prev_nonjump_insn".
10595 (mark_all_labels): Likewise for param "f" and locals "insn",
10596 "prev_nonjump_insn".
10598 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10600 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
10601 from rtx to rtx_insn *insn.
10602 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
10603 (ira_add_allocno_copy): Likewise.
10604 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
10606 (ira_create_copy): Likewise.
10607 (ira_add_allocno_copy): Likewise.
10608 (create_bb_allocnos): Likewise for local "insn".
10609 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
10610 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
10611 process_regs_for_copy for rtx_insn * param.
10612 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
10613 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
10614 process_regs_for_copy for rtx_insn * param.
10615 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
10616 * ira-costs.c (record_reg_classes): Likewise for param "insn".
10617 (record_operand_costs): Likewise.
10618 (scan_one_insn): Likewise for return type, and for param "insn".
10619 (process_bb_for_costs): Likewise for local "insn".
10620 (process_bb_node_for_hard_reg_moves): Likewise.
10621 * ira-emit.c (struct move): Likewise for field "insn".
10622 (create_move): Eliminate use of NULL_RTX when dealing with an
10624 (emit_move_list): Strengthen return type and locals "result",
10625 "insn" from rtx to rtx_insn *insn.
10626 (emit_moves): Likewise for locals "insns", "tmp".
10627 (ira_emit): Likewise for local "insn".
10628 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
10630 (find_call_crossed_cheap_reg): Likewise.
10631 (process_bb_node_lives): Likewise for local "insn".
10632 * ira.c (decrease_live_ranges_number): Likewise.
10633 (compute_regs_asm_clobbered): Likewise.
10634 (build_insn_chain): Likewise.
10635 (find_moveable_pseudos): Likewise, also locals "def_insn",
10636 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
10637 to rtx_insn **. Add a checked cast when assigning from
10638 "closest_use" into closest_uses array in a region where we know
10639 it's a non-NULL insn.
10640 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
10642 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
10643 "last_interesting_insn", "uin".
10644 (move_unallocated_pseudos): Likewise for locals "def_insn",
10645 "move_insn", "newinsn".
10647 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10649 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
10650 Strengthen locals "done_label", "do_error" from rtx to
10652 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
10653 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
10655 (ubsan_expand_si_overflow_neg_check): Likewise for locals
10656 "done_label", "do_error" to rtx_code_label * and local "last" to
10658 (ubsan_expand_si_overflow_mul_check): Likewise for locals
10659 "done_label", "do_error", "large_op0", "small_op0_large_op1",
10660 "one_small_one_large", "both_ops_large", "after_hipart_neg",
10661 "after_lopart_neg", "do_overflow", "hipart_different" to
10662 rtx_code_label * and local "last" to rtx_insn *.
10664 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10666 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
10667 "insn" and "move_insn" from rtx to rtx_insn *.
10669 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10671 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
10673 (cheap_bb_rtx_cost_p): Likewise.
10674 (first_active_insn): Likewise for return type and local "insn".
10675 (last_active_insn): Likewise for return type and locals "insn",
10677 (struct noce_if_info): Likewise for fields "jump", "insn_a",
10679 (end_ifcvt_sequence): Likewise for return type and locals "insn",
10681 (noce_try_move): Likewise for local "seq".
10682 (noce_try_store_flag): Likewise.
10683 (noce_try_store_flag_constants): Likewise.
10684 (noce_try_addcc): Likewise.
10685 (noce_try_store_flag_mask): Likewise.
10686 (noce_try_cmove): Likewise.
10687 (noce_try_minmax): Likewise.
10688 (noce_try_abs): Likewise.
10689 (noce_try_sign_mask): Likewise.
10690 (noce_try_bitop): Likewise.
10691 (noce_can_store_speculate_p): Likewise for local "insn".
10692 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
10694 (check_cond_move_block): Likewise for local "insn".
10695 (cond_move_convert_if_block): Likewise.
10696 (cond_move_process_if_block): Likewise for locals "seq",
10698 (noce_find_if_block): Likewise for local "jump".
10699 (merge_if_block): Likewise for local "last".
10700 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
10701 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
10702 (block_has_only_trap): Likewise for return type and local "trap".
10703 (find_if_case_1): Likewise for local "jump".
10704 (dead_or_predicable): Likewise for locals "head", "end", "jump",
10707 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10709 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
10710 "last_insn", "loop_end" from rtx to rtx_insn *.
10712 * hw-doloop.c (scan_loop): Likewise for local "insn".
10713 (discover_loop): Likewise for param "tail_insn".
10714 (discover_loops): Likewise for local "tail".
10716 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
10717 cast to rtx_insn * when assigning from an rtx local to a
10718 hwloop_info's "last_insn" field.
10720 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10722 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
10723 (add_delay_dependencies): Strengthen local "pro" from rtx to
10725 (recompute_todo_spec): Likewise.
10726 (dep_cost_1): Likewise for locals "insn", "used".
10727 (schedule_insn): Likewise for local "dbg".
10728 (schedule_insn): Likewise for locals "pro", "next".
10729 (unschedule_insns_until): Likewise for local "con".
10730 (restore_pattern): Likewise for local "next".
10731 (estimate_insn_tick): Likewise for local "pro".
10732 (resolve_dependencies): Likewise for local "next".
10733 (fix_inter_tick): Likewise.
10734 (fix_tick_ready): Likewise for local "pro".
10735 (add_to_speculative_block): Likewise for locals "check", "twin",
10737 (sched_extend_bb): Likewise for locals "end", "insn".
10738 (init_before_recovery): Likewise for local "x".
10739 (sched_create_recovery_block): Likewise for local "barrier".
10740 (create_check_block_twin): Likewise for local "pro".
10741 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
10743 (unlink_bb_notes): Update for change to type of bb_header.
10744 Strengthen locals "prev", "label", "note", "next" from rtx to
10746 (clear_priorities): Likewise for local "pro".
10748 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10750 * gcse.c (struct occr): Strengthen field "insn" from rtx to
10752 (test_insn): Likewise for this global.
10753 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
10755 (oprs_anticipatable_p): Likewise.
10756 (oprs_available_p): Likewise.
10757 (insert_expr_in_table): Strengthen param "insn" from rtx to
10759 (hash_scan_set): Likewise.
10760 (hash_scan_clobber): Likewise.
10761 (hash_scan_call): Likewise.
10762 (hash_scan_insn): Likewise.
10763 (compute_hash_table_work): Likewise for local "insn".
10764 (process_insert_insn): Likewise for return type and local "pat".
10765 (insert_insn_end_basic_block): Likewise for locals "new_insn",
10766 "pat", "pat_end", "maybe_cc0_setter".
10767 (pre_edge_insert): Likewise for local "insn".
10768 (pre_insert_copy_insn): Likewise for param "insn".
10769 (pre_insert_copies): Likewise for local "insn".
10770 (struct set_data): Likewise for field "insn".
10771 (single_set_gcse): Likewise for param "insn".
10772 (gcse_emit_move_after): Likewise.
10773 (pre_delete): Likewise for local "insn".
10774 (update_bb_reg_pressure): Likewise for param "from" and local
10776 (should_hoist_expr_to_dom): Likewise for param "from".
10777 (hoist_code): Likewise for local "insn".
10778 (get_pressure_class_and_nregs): Likewise for param "insn".
10779 (calculate_bb_reg_pressure): Likewise for local "insn".
10780 (compute_ld_motion_mems): Likewise.
10782 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10784 * genpeep.c (main): Rename param back from "uncast_ins1" to
10785 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
10788 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
10790 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10793 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
10794 documentation to state it is only for VSX operations.
10796 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
10797 constraint only active if VSX.
10799 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
10800 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
10801 (lfiwzx): Likewise.
10803 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10805 * fwprop.c (single_def_use_dom_walker::before_dom_children):
10806 Strengthen local "insn" from rtx to rtx_insn *.
10807 (use_killed_between): Likewise for param "target_insn".
10808 (all_uses_available_at): Likewise for param "target_insn" and
10810 (update_df_init): Likewise for params "def_insn", "insn".
10811 (update_df): Likewise for param "insn".
10812 (try_fwprop_subst): Likewise for param "def_insn" and local
10814 (free_load_extend): Likewise for param "insn".
10815 (forward_propagate_subreg): Likewise for param "def_insn" and
10817 (forward_propagate_asm): Likewise for param "def_insn" and local
10819 (forward_propagate_and_simplify): Likewise for param "def_insn"
10820 and local "use_insn".
10821 (forward_propagate_into): Likewise for locals "def_insn" and
10824 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10826 * function.c (emit_initial_value_sets): Strengthen local "seq"
10827 from rtx to rtx_insn *.
10828 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
10830 (instantiate_virtual_regs): Likewise for local "insn".
10831 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
10832 (reorder_blocks_1): Likewise for param "insns" and local "insn".
10833 (expand_function_end): Likewise for locals "insn" and "seq".
10834 (epilogue_done): Likewise for local "insn".
10835 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
10837 (reposition_prologue_and_epilogue_notes): Likewise for locals
10838 "insn", "last", "note", "first".
10839 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
10840 (pass_match_asm_constraints::execute): Likewise for local "insn".
10842 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10844 * output.h (final_scan_insn): Strengthen return type from rtx to
10846 (final_forward_branch_p): Likewise for param.
10847 (current_output_insn): Likewise for this global.
10849 * final.c (rtx debug_insn): Likewise for this variable.
10850 (current_output_insn): Likewise.
10851 (get_attr_length_1): Rename param "insn" to "uncast_insn",
10852 adding "insn" back in as an rtx_insn * with a checked cast, so
10853 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
10855 (compute_alignments): Strengthen local "label" from rtx to
10857 (shorten_branches): Rename param from "first" to "uncast_first",
10858 introducing a new local rtx_insn * "first" using a checked cast to
10859 effectively strengthen "first" from rtx to rtx_insn * without
10860 affecting the type signature. Strengthen locals "insn", "seq",
10861 "next", "label" from rtx to rtx_insn *.
10862 (change_scope): Strengthen param "orig_insn" and local "insn" from
10864 (final_start_function): Rename param from "first" to "uncast_first",
10865 introducing a new local rtx_insn * "first" using a checked cast to
10866 effectively strengthen "first" from rtx to rtx_insn * without
10867 affecting the type signature. Strengthen local "insn" from rtx to
10869 (dump_basic_block_info): Strengthen param "insn" from rtx to
10871 (final): Rename param from "first" to "uncast_first",
10872 introducing a new local rtx_insn * "first" using a checked cast to
10873 effectively strengthen "first" from rtx to rtx_insn * without
10874 affecting the type signature. Strengthen locals "insn", "next"
10875 from rtx to rtx_insn *.
10876 (output_alternate_entry_point): Strengthen param "insn" from rtx to
10878 (call_from_call_insn): Strengthen param "insn" from rtx to
10880 (final_scan_insn): Rename param from "insn" to "uncast_insn",
10881 introducing a new local rtx_insn * "insn" using a checked cast to
10882 effectively strengthen "insn" from rtx to rtx_insn * without
10883 affecting the type signature. Strengthen return type and locals
10884 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
10885 now-redundant checked cast to rtx_insn * from both invocations of
10886 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
10887 introducing a local "call_insn" for use when invoking
10888 call_from_call_insn.
10889 (notice_source_line): Strengthen param "insn" from rtx to
10891 (leaf_function_p): Likewise for local "insn".
10892 (final_forward_branch_p): Likewise.
10893 (leaf_renumber_regs): Likewise for param "first".
10894 (rest_of_clean_state): Likewise for locals "insn" and "next".
10895 (self_recursive_call_p): Likewise for param "insn".
10896 (collect_fn_hard_reg_usage): Likewise for local "insn".
10897 (get_call_fndecl): Likewise for param "insn".
10898 (get_call_cgraph_rtl_info): Likewise.
10899 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
10900 introducing a new local rtx_insn * "insn" using a checked cast to
10901 effectively strengthen "insn" from rtx to rtx_insn * without
10902 affecting the type signature.
10904 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
10905 cast when assigning from param "insn" to current_output_insn.
10906 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
10907 so that we can assign it back to current_output_insn.
10909 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10911 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
10912 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
10913 atmxt540s and atmxt540sreva devices.
10914 * config/avr/avr-tables.opt: Regenerate.
10915 * config/avr/t-multilib: Regenerate.
10916 * doc/avr-mmcu.texi: Regenerate.
10918 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10920 * expr.c (convert_move): Strengthen local "insns" from rtx to
10922 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10923 "top_label" from rtx to rtx_code_label *.
10924 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10926 (emit_single_push_insn): Likewise for locals "prev", "last".
10927 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10928 to rtx_code_label *.
10929 (store_constructor): Likewise for locals "loop_start", "loop_end".
10930 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10932 (expand_expr_real_2): Likewise.
10933 (expand_expr_real_1): Strengthen local "label" from rtx to
10936 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10938 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10939 from rtx to rtx_insn *.
10940 (store_bit_field_1): Likewise.
10941 (extract_bit_field_1): Likewise.
10942 (expand_mult_const): Likewise for local "insns".
10943 (expmed_mult_highpart): Strengthen local "label" from rtx to
10945 (expand_smod_pow2): Likewise.
10946 (expand_sdiv_pow2): Likewise.
10947 (expand_divmod): Strengthen locals "last", "insn" from rtx to
10948 rtx_insn *. Strengthen locals "label", "label1", "label2",
10949 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10950 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10951 (emit_store_flag): Likewise.
10952 (emit_store_flag_force): Strengthen local "label" from rtx to
10954 (do_cmp_and_jump): Likewise for param "label".
10956 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10958 * explow.c (force_reg): Strengthen local "insn" from rtx to
10960 (adjust_stack_1): Likewise.
10961 (allocate_dynamic_stack_space): Likewise. Strengthen locals
10962 "final_label", "available_label", "space_available" from rtx to
10964 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10965 (anti_adjust_stack_and_probe): Likewise.
10967 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10969 * except.h (sjlj_emit_function_exit_after): Strengthen param
10970 "after" from rtx to rtx_insn *. This is only called with
10971 result of get_last_insn (in function.c) so type-change should be
10974 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10975 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10976 to rtx_insn *. These fields are only used from except.c so this
10977 type-change should be self-contained to this patch.
10979 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10980 local "last" from rtx to rtx_insn *.
10981 (dw2_build_landing_pads): Likewise for local "seq".
10982 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10983 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10984 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
10986 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10988 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10989 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10990 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10991 referring to an insn. Strengthen local "dispatch_label" from
10992 rtx to rtx_code_label *.
10993 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10995 (expand_eh_return): Strengthen local "around_label" from
10996 rtx to rtx_code_label *.
10997 (convert_to_eh_region_ranges): Strengthen locals "iter",
10998 "last_action_insn", "first_no_action_insn",
10999 "first_no_action_insn_before_switch",
11000 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
11002 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11004 * dwarf2out.c (last_var_location_insn): Strengthen this variable
11005 from rtx to rtx_insn *.
11006 (cached_next_real_insn): Likewise.
11007 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
11008 working with insns.
11009 (dwarf2out_var_location): Strengthen locals "next_real",
11010 "next_note", "expected_next_loc_note", "last_start", "insn" from
11013 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11015 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
11016 from rtx to rtx_insn *.
11017 (create_pseudo_cfg): Likewise for local "insn".
11019 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11021 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
11022 from rtx to rtx_insn *.
11023 (df_bb_regno_last_def_find): Likewise.
11025 * df-problems.c (df_rd_bb_local_compute): Likewise.
11026 (df_lr_bb_local_compute): Likewise.
11027 (df_live_bb_local_compute): Likewise.
11028 (df_chain_remove_problem): Likewise.
11029 (df_chain_create_bb): Likewise.
11030 (df_word_lr_bb_local_compute): Likewise.
11031 (df_remove_dead_eq_notes): Likewise for param "insn".
11032 (df_note_bb_compute): Likewise for local "insn".
11033 (simulate_backwards_to_point): Likewise.
11034 (df_md_bb_local_compute): Likewise.
11036 * df-scan.c (df_scan_free_bb_info): Likewise.
11037 (df_scan_start_dump): Likewise.
11038 (df_scan_start_block): Likewise.
11039 (df_install_ref_incremental): Likewise for local "insn".
11040 (df_insn_rescan_all): Likewise.
11041 (df_reorganize_refs_by_reg_by_insn): Likewise.
11042 (df_reorganize_refs_by_insn_bb): Likewise.
11043 (df_recompute_luids): Likewise.
11044 (df_bb_refs_record): Likewise.
11045 (df_update_entry_exit_and_calls): Likewise.
11046 (df_bb_verify): Likewise.
11048 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11050 * ddg.h (struct ddg_node): Strengthen fields "insn" and
11051 "first_note" from rtx to rtx_insn *.
11052 (get_node_of_insn): Likewise for param 2 "insn".
11053 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11055 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
11057 (mem_write_insn_p): Likewise.
11058 (mem_access_insn_p): Likewise.
11059 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11060 (def_has_ccmode_p): Likewise for param "insn".
11061 (add_cross_iteration_register_deps): Likewise for locals
11062 "def_insn" and "use_insn".
11063 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
11064 (build_intra_loop_deps): Likewise for local "src_insn".
11065 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
11067 (get_node_of_insn): Likewise for param "insn".
11069 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11071 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
11072 (deletable_insn_p): Strengthen param "insn" from rtx to
11073 rtx_insn *. Add checked cast to rtx_call_insn when invoking
11074 find_call_stack_args, since this is guarded by CALL_P (insn).
11075 (marked_insn_p): Strengthen param "insn" from rtx to
11077 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
11078 invoking find_call_stack_args, since this is guarded by
11080 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
11081 rtx_insn *; we know this is an insn since this was called by
11082 mark_nonreg_stores.
11083 (mark_nonreg_stores_2): Likewise.
11084 (mark_nonreg_stores): Strengthen param "insn" from rtx to
11086 (find_call_stack_args): Strengthen param "call_insn" from rtx to
11087 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
11089 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
11090 from rtx to rtx_insn *.
11091 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
11092 "next", "ref_insn".
11093 (delete_unmarked_insns): Likewise for locals "insn", "next".
11094 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
11095 (mark_reg_dependencies): Likewise for param "insn".
11096 (rest_of_handle_ud_dce): Likewise for local "insn".
11097 (word_dce_process_block): Likewise.
11098 (dce_process_block): Likewise.
11100 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11102 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
11103 from rtx to rtx_insn *.
11104 (struct change_cc_mode_args): Likewise for field "insn".
11105 (this_insn): Strengthen from rtx to rtx_insn *.
11106 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
11108 (validate_canon_reg): Strengthen param "insn" from rtx to
11110 (canon_reg): Likewise.
11111 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
11113 (record_jump_equiv): Strengthen param "insn" from rtx to
11115 (try_back_substitute_reg): Likewise, also for locals "prev",
11117 (find_sets_in_insn): Likewise for param "insn".
11118 (canonicalize_insn): Likewise.
11119 (cse_insn): Likewise. Add a checked cast.
11120 (invalidate_from_clobbers): Likewise for param "insn".
11121 (invalidate_from_sets_and_clobbers): Likewise.
11122 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
11124 (cse_prescan_path): Strengthen local "insn" from rtx to
11126 (cse_extended_basic_block): Likewise for locals "insn" and
11128 (cse_main): Likewise for param "f".
11129 (check_for_label_ref): Likewise for local "insn".
11130 (set_live_p): Likewise for second param ("insn").
11131 (insn_live_p): Likewise for first param ("insn") and for local
11133 (cse_change_cc_mode_insn): Likewise for first param "insn".
11134 (cse_change_cc_mode_insns): Likewise for first and second params
11136 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
11138 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
11141 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
11142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11143 Anna Tikhonova <anna.tikhonova@intel.com>
11144 Ilya Tocar <ilya.tocar@intel.com>
11145 Andrey Turetskiy <andrey.turetskiy@intel.com>
11146 Ilya Verbin <ilya.verbin@intel.com>
11147 Kirill Yukhin <kirill.yukhin@intel.com>
11148 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11150 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
11152 * config/i386/sse.md
11153 (define_mode_iterator VI248_AVX2): Delete.
11154 (define_mode_iterator VI2_AVX2_AVX512BW): New.
11155 (define_mode_iterator VI48_AVX2): Ditto.
11156 (define_insn <shift_insn><mode>3): Delete.
11157 (define_insn "<shift_insn><mode>3<mask_name>" with
11158 VI2_AVX2_AVX512BW): New.
11159 (define_insn "<shift_insn><mode>3<mask_name>" with
11162 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
11163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11164 Anna Tikhonova <anna.tikhonova@intel.com>
11165 Ilya Tocar <ilya.tocar@intel.com>
11166 Andrey Turetskiy <andrey.turetskiy@intel.com>
11167 Ilya Verbin <ilya.verbin@intel.com>
11168 Kirill Yukhin <kirill.yukhin@intel.com>
11169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11171 * config/i386/sse.md
11172 (define_mode_iterator VI4F_BRCST32x2): New.
11173 (define_mode_attr 64x2_mode): Ditto.
11174 (define_mode_attr 32x2mode): Ditto.
11175 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
11176 with VI4F_BRCST32x2): Ditto.
11177 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
11178 with V16FI mode iterator): Ditto.
11179 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11180 with V16FI): Ditto.
11181 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11182 with VI8F_BRCST64x2): Ditto.
11184 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
11185 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11186 Anna Tikhonova <anna.tikhonova@intel.com>
11187 Ilya Tocar <ilya.tocar@intel.com>
11188 Andrey Turetskiy <andrey.turetskiy@intel.com>
11189 Ilya Verbin <ilya.verbin@intel.com>
11190 Kirill Yukhin <kirill.yukhin@intel.com>
11191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11193 * config/i386/sse.md
11194 (define_mode_iterator VI8_AVX512VL): New.
11195 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
11197 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
11199 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
11200 (define_mode_iterator V48_AVX512VL): New.
11201 (define_mode_iterator V12_AVX512VL): Ditto.
11202 (define_insn <avx512>_load<mode>_mask): Split into two similar
11203 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
11204 Refactor output template.
11205 (define_insn "<avx512>_store<mode>_mask"): Ditto.
11207 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11209 * cprop.c (struct occr): Strengthen field "insn" from rtx to
11211 (reg_available_p): Likewise for param "insn".
11212 (insert_set_in_table): Likewise.
11213 (hash_scan_set): Likewise.
11214 (hash_scan_insn): Likewise.
11215 (make_set_regs_unavailable): Likewise.
11216 (compute_hash_table_work): Likewise for local "insn".
11217 (reg_not_set_p): Strengthen param "insn" from const_rtx to
11219 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
11220 (try_replace_reg): Likewise.
11221 (find_avail_set): Likewise.
11222 (cprop_jump): Likewise for params "setcc", "jump".
11223 (constprop_register): Likewise for param "insn".
11224 (cprop_insn): Likewise.
11225 (do_local_cprop): Likewise.
11226 (local_cprop_pass): Likewise for local "insn".
11227 (bypass_block): Likewise for params "setcc" and "jump".
11228 (bypass_conditional_jumps): Likewise for locals "setcc" and
11230 (one_cprop_pass): Likewise for local "insn".
11232 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11234 * compare-elim.c (struct comparison_use): Strengthen field "insn"
11235 from rtx to rtx_insn *.
11236 (struct comparison): Likewise, also for field "prev_clobber".
11237 (conforming_compare): Likewise for param "insn".
11238 (arithmetic_flags_clobber_p): Likewise.
11239 (find_flags_uses_in_insn): Likewise.
11240 (find_comparison_dom_walker::before_dom_children): Likewise for
11241 locals "insn", "next", "last_clobber".
11242 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
11244 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11246 * combine-stack-adj.c (struct csa_reflist): Strengthen field
11247 "insn" from rtx to rtx_insn *.
11248 (single_set_for_csa): Likewise for param "insn".
11249 (record_one_stack_ref): Likewise.
11250 (try_apply_stack_adjustment): Likewise.
11251 (struct record_stack_refs_data): Likewise for field "insn".
11252 (maybe_move_args_size_note): Likewise for params "last" and "insn".
11253 (prev_active_insn_bb): Likewise for return type and param "insn".
11254 (next_active_insn_bb): Likewise.
11255 (force_move_args_size_note): Likewise for params "prev" and "last"
11256 and locals "test", "next_candidate", "prev_candidate".
11257 (combine_stack_adjustments_for_block): Strengthen locals
11258 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
11261 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11263 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
11264 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
11265 (subst_insn): Likewise for this variable.
11266 (added_links_insn): Likewise.
11267 (struct insn_link): Likewise for field "insn".
11268 (alloc_insn_link): Likewise for param "insn".
11269 (struct undobuf): Likewise for field "other_insn".
11270 (find_single_use): Likewise for param "insn" and local "next".
11271 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
11272 (delete_noop_moves): Likewise for locals "insn", "next".
11273 (create_log_links): Likewise for locals "insn", "use_insn".
11274 Strengthen local "next_use" from rtx * to rtx_insn **.
11275 (insn_a_feeds_b): Likewise for params "a", "b".
11276 (combine_instructions): Likewise for param "f" and locals "insn",
11277 "next", "prev", "first", "last_combined_insn", "link", "link1",
11278 "temp". Replace use of NULL_RTX with NULL when referring to
11280 (setup_incoming_promotions): Likewise for param "first"
11281 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
11282 (can_combine_p): Likewise for params "insn", "i3", "pred",
11283 "pred2", "succ", "succ2" and for local "p".
11284 (combinable_i3pat): Likewise for param "i3".
11285 (cant_combine_insn_p): Likewise for param "insn".
11286 (likely_spilled_retval_p): Likewise.
11287 (adjust_for_new_dest): Likewise.
11288 (update_cfg_for_uncondjump): Likewise, also for local "insn".
11289 (try_combine): Likewise for return type and for params "i3", "i2",
11290 "i1", "i0", "last_combined_insn", and for locals "insn",
11291 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
11292 "i0_insn". Eliminate local "tem" in favor of new locals
11293 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
11294 checked cast for now to rtx_insn * on the return type of
11295 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
11297 (find_split_point): Strengthen param "insn" from rtx to
11299 (simplify_set): Likewise for local "other_insn".
11300 (recog_for_combine): Likewise for param "insn".
11301 (record_value_for_reg): Likewise.
11302 (record_dead_and_set_regs_1): Likewise for local
11303 "record_dead_insn".
11304 (record_dead_and_set_regs): Likewise for param "insn".
11305 (record_promoted_value): Likewise.
11306 (check_promoted_subreg): Likewise.
11307 (get_last_value_validate): Likewise.
11308 (reg_dead_at_p): Likewise.
11309 (move_deaths): Likewise for param "to_insn".
11310 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
11311 and locals "place", "place2", "cc0_setter". Eliminate local "tem
11312 in favor of new locals "tem_note" and "tem_insn", the latter being
11314 (distribute_links): Strengthen locals "place", "insn" from rtx to
11317 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11319 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
11321 (can_delete_label_p): Require a const rtx_code_label * rather than
11323 (delete_insn): Add checked cast to rtx_code_label * when we know
11324 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
11326 (delete_insn_chain): Strengthen locals "prev" and "current" from
11327 rtx to rtx_insn *. Add a checked cast when assigning from
11328 "finish" (strengthening the params will come later). Add a
11329 checked cast to rtx_note * in region where we know
11331 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
11333 (compute_bb_for_insn): Likewise.
11334 (free_bb_for_insn): Likewise for local "insn".
11335 (compute_bb_for_insn): Likewise.
11336 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
11337 local "insn" from rtx to rtx_insn *
11338 (flow_active_insn_p): Require a const rtx_insn * rather than a
11340 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
11342 (can_fallthru): Likewise for locals "insn" and "insn2".
11343 (bb_note): Likewise for local "note".
11344 (first_insn_after_basic_block_note): Likewise for local "note" and
11346 (rtl_split_block): Likewise for locals "insn" and "next".
11347 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
11349 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
11350 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
11352 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
11353 them), "kill_from", "barrier", "new_insn".
11354 (patch_jump_insn): Likewise for params "insn", "old_label".
11355 (redirect_branch_edge): Likewise for locals "old_label", "insn".
11356 (force_nonfallthru_and_redirect): Likewise for locals "insn",
11357 "old_label", "new_label".
11358 (rtl_tidy_fallthru_edge): Likewise for local "q".
11359 (rtl_split_edge): Likewise for locals "before", "last".
11360 (commit_one_edge_insertion): Likewise for locals "before",
11361 "after", "insns", "tmp", "last", adding a checked cast where
11362 currently necessary.
11363 (commit_edge_insertions): Likewise.
11364 (rtl_dump_bb): Likewise for locals "insn", "last".
11365 (print_rtl_with_bb): Likewise for local "x".
11366 (rtl_verify_bb_insns): Likewise for local "x".
11367 (rtl_verify_bb_pointers): Likewise for local "insn".
11368 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
11370 (rtl_verify_fallthru): Likewise for local "insn".
11371 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
11372 (purge_dead_edges): Likewise for local "insn".
11373 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
11374 (skip_insns_after_block): Likewise for return type and for locals
11375 "insn", "last_insn", "next_head", "prev".
11376 (record_effective_endpoints): Likewise for locals "next_insn",
11378 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
11379 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
11380 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
11381 (duplicate_insn_chain): For now, add checked cast from rtx to
11382 rtx_insn * when returning insn.
11383 (cfg_layout_duplicate_bb): Likewise for local "insn".
11384 (cfg_layout_delete_block): Likewise for locals "insn", "next",
11385 "prev", "remaints".
11386 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
11387 (rtl_block_empty_p): Likewise.
11388 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
11389 "split_point", "last".
11390 (rtl_block_ends_with_call_p): Likewise for local "insn".
11391 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
11393 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
11394 "split_at_insn" from rtx to rtx_insn *.
11395 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
11396 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
11397 to const rtx_insn *.
11398 (rtl_account_profile_record): Likewise.
11400 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11402 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
11404 (average_num_loop_insns): Likewise.
11405 (init_set_costs): Likewise for local "seq".
11406 (seq_cost): Likewise for param "seq", from const_rtx to const
11409 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11411 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
11414 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11416 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
11417 "f1" and "f2" from rtx * to rtx_insn **.
11418 (flow_find_head_matching_sequence): Likewise.
11420 * cfgcleanup.c (try_simplify_condjump): Strengthen local
11421 "cbranch_insn" from rtx to rtx_insn *.
11422 (thread_jump): Likewise for local "insn".
11423 (try_forward_edges): Likewise for local "last".
11424 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
11425 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
11427 (can_replace_by): Likewise for params "i1", "i2".
11428 (old_insns_match_p): Likewise.
11429 (merge_notes): Likewise.
11430 (walk_to_nondebug_insn): Likewise for param "i1".
11431 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
11432 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
11433 "afterlast1", "afterlast2" from rtx to rtx_insn *.
11434 (flow_find_head_matching_sequence): Strengthen params "f1" and
11435 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
11436 "last1", "last2", "beforelast1", "beforelast2" from rtx to
11438 (outgoing_edges_match): Likewise for locals "last1", "last2".
11439 (try_crossjump_to_edge): Likewise for local "insn".
11440 Replace call to for_each_rtx with for_each_rtx_in_insn.
11442 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
11443 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
11444 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
11445 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
11446 (try_optimize_cfg): Strengthen local "last" from rtx to
11448 (delete_dead_jumptables): Likewise for locals "insn", "next",
11451 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
11452 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
11453 "rtx else_first_tail", to reflect the basic-block.h changes above.
11455 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11457 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
11459 (purge_dead_tablejump_edges): Likewise.
11460 (find_bb_boundaries): Likewise for locals "insn", "end",
11461 "flow_transfer_insn".
11463 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11465 * caller-save.c (save_call_clobbered_regs): Strengthen locals
11466 "ins" and "prev" from rtx to rtx_insn *.
11468 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11470 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
11472 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
11473 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
11475 (load_register_parameters): Likewise for local "before_arg".
11476 (check_sibcall_argument_overlap): Likewise for param "insn".
11477 (expand_call): Likewise for locals "normal_call_insns",
11478 "tail_call_insns", "insns", "before_call", "after_args",
11479 "before_arg", "last", "prev". Strengthen one of the "last" from
11480 rtx to rtx_call_insn *.
11481 (fixup_tail_calls): Strengthen local "insn" from rtx to
11483 (emit_library_call_value_1): Likewise for locals "before_call" and
11486 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11488 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
11489 and "last" from rtx to rtx_insn *.
11490 (expand_builtin_nonlocal_goto): Likewise for local "insn".
11491 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
11493 (expand_errno_check): Strengthen local "lab" from rtx to
11495 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
11497 (expand_builtin_mathfn_2): Likewise.
11498 (expand_builtin_mathfn_ternary): Likewise.
11499 (expand_builtin_mathfn_3): Likewise.
11500 (expand_builtin_interclass_mathfn): Likewise for local "last".
11501 (expand_builtin_int_roundingfn): Likewise for local "insns".
11502 (expand_builtin_int_roundingfn_2): Likewise.
11503 (expand_builtin_strlen): Likewise for local "before_strlen".
11504 (expand_builtin_strncmp): Likewise for local "seq".
11505 (expand_builtin_signbit): Likewise for local "last".
11506 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
11507 from rtx to rtx_code_label *.
11508 (expand_stack_restore): Strengthen local "prev" from rtx to
11511 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11513 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
11515 (struct btr_def_s): Likewise.
11516 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
11518 (add_btr_def): Likewise.
11519 (new_btr_user): Likewise.
11520 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
11522 (link_btr_uses): Likewise.
11523 (move_btr_def): Likewise for locals "insp", "old_insn",
11524 "new_insn". Add checked cast to rtx_insn * for now on result of
11526 (can_move_up): Strengthen param "insn" from const_rtx to
11529 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11531 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
11533 (get_uncond_jump_length): Likewise for locals "label", "jump".
11534 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
11536 (add_labels_and_missing_jumps): Likewise for local "new_jump".
11537 (fix_up_fall_thru_edges): Likewise for local "old_jump".
11538 (find_jump_block): Likewise for local "insn".
11539 (fix_crossing_conditional_branches): Likewise for locals
11540 "old_jump", "new_jump".
11541 (fix_crossing_unconditional_branches): Likewise for locals
11542 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
11543 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
11545 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11547 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
11549 (struct mem_insn): Likewise for field "insn".
11550 (reg_next_use): Strengthen from rtx * to rtx_insn **.
11551 (reg_next_inc_use): Likewise.
11552 (reg_next_def): Likewise.
11553 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
11554 from rtx to rtx_insn *.
11555 (move_insn_before): Likewise for param "next_insn" and local "insns".
11556 (attempt_change): Likewise for local "mov_insn".
11557 (try_merge): Likewise for param "last_insn".
11558 (get_next_ref): Likewise for return type and local "insn".
11559 Strengthen param "next_array" from rtx * to rtx_insn **.
11560 (parse_add_or_inc): Strengthen param "insn" from rtx to
11562 (find_inc): Likewise for locals "insn" and "other_insn" (three of
11564 (merge_in_block): Likewise for locals "insn", "curr",
11566 (pass_inc_dec::execute): Update allocations of the arrays to
11567 reflect the stronger types.
11569 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11571 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
11572 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
11573 from rtx to rtx_code_label *.
11575 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11577 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
11580 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11582 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
11583 generated a warning and prevented bootstrapping the compiler.
11585 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11587 * rtl.h (delete_related_insns): Strengthen return type from rtx to
11590 * jump.c (delete_related_insns): Likewise, also for locals "next"
11593 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11595 * genautomata.c (output_internal_insn_latency_func): When writing
11596 the function "internal_insn_latency" to insn-automata.c,
11597 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
11598 allowing the optional guard function of (define_bypass) clauses to
11599 expect a pair of rtx_insn *, rather than a pair of rtx.
11600 (output_insn_latency_func): When writing the function
11601 "insn_latency", add an "uncast_" prefix to params "insn" and
11602 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
11603 using checked casts from the params, thus enabling the above
11604 change to the generated "internal_insn_latency" function.
11606 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
11608 PR tree-optimization/62091
11609 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
11610 handle correctly arrays.
11611 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
11612 inheritance binfos.
11613 (record_known_type): Walk into inner type.
11614 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
11615 condition on no type changes.
11617 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11619 * genattrtab.c (write_attr_get): Within the generated get_attr_
11620 functions, rename param "insn" to "uncast_insn" and reintroduce
11621 "insn" as an local rtx_insn * using a checked cast, so that "insn"
11622 is an rtx_insn * within insn-attrtab.c
11624 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11626 * output.h (peephole): Strengthen return type from rtx to
11628 * rtl.h (delete_for_peephole): Likewise for both params.
11629 * genpeep.c (main): In generated "peephole" function, strengthen
11630 return type and local "insn" from rtx to rtx_insn *. For now,
11631 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
11632 rtx_insn *, with a checked cast.
11633 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
11634 locals "insn", "next", "prev" from rtx to rtx_insn *.
11636 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
11638 PR tree-optimization/62112
11639 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
11640 * gimple-iterator.h (gsi_replace): Return bool.
11641 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
11642 moved from ref_may_alias_global_p.
11643 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
11645 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
11646 (stmt_kills_ref_p_1): Rename...
11647 (stmt_kills_ref_p): ... to this.
11648 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
11649 stmt_kills_ref_p): Declare.
11650 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
11651 Move the self-assignment case...
11652 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
11654 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11656 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
11658 * emit-rtl.c (try_split): Likewise, also for locals "before" and
11659 "after". For now, don't strengthen param "trial", which requires
11660 adding checked casts when returning it.
11662 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11664 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
11665 "label" from rtx to rtx_code_label *. Strengthen param 1 of
11666 "var_location" hook from rtx to rtx_insn *.
11667 (debug_nothing_rtx): Delete in favor of...
11668 (debug_nothing_rtx_code_label): New prototype.
11669 (debug_nothing_rtx_rtx): Delete unused prototype.
11670 (debug_nothing_rtx_insn): New prototype.
11672 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
11673 invoking debug_hooks->var_location (in two places, one in a NOTE
11674 case of a switch statement, the other guarded by a CALL_P
11675 conditional. Add checked cast to rtx_code_label * when invoking
11676 debug_hooks->label (within CODE_LABEL case of switch statement).
11678 * dbxout.c (dbx_debug_hooks): Update "label" hook from
11679 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
11680 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
11681 (xcoff_debug_hooks): Likewise.
11682 * debug.c (do_nothing_debug_hooks): Likewise.
11683 (debug_nothing_rtx): Delete in favor of...
11684 (debug_nothing_rtx_insn): New function.
11685 (debug_nothing_rtx_rtx): Delete unused function.
11686 (debug_nothing_rtx_code_label): New function.
11687 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
11688 debug_nothing_rtx to debug_nothing_rtx_code_label.
11689 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
11691 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
11692 debug_nothing_rtx to debug_nothing_rtx_insn.
11693 (sdbout_label): Strengthen param "insn" from rtx to
11695 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
11696 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
11697 "var_location" hook from debug_nothing_rtx to
11698 debug_nothing_rtx_insn.
11700 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11702 * recog.h (insn_output_fn): Update this function typedef to match
11703 the changes below to the generated output functions, strengthening
11704 the 2nd param from rtx to rtx_insn *.
11706 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
11707 insn when invoking an output function, to match the new signature
11708 of insn_output_fn with a stronger second param.
11710 * genconditions.c (write_header): In the generated code for
11711 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
11712 to match the other changes in this patch.
11714 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
11715 the generated "gen_" functions from rtx to rtx_insn * within their
11718 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
11719 the subfunctions within the generated "recog_", "split", "peephole2"
11720 function trees from rtx to rtx_insn *. For now, the top-level
11721 generated functions ("recog", "split", "peephole2") continue to
11722 take a plain rtx for "insn", to avoid introducing dependencies on
11723 other patches. Rename this 2nd param from "insn" to
11724 "uncast_insn", and reintroduce "insn" as a local variable of type
11725 rtx_insn *, initialized at the top of the generated function with
11726 a checked cast on "uncast_insn".
11727 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
11728 the generated "gen_" functions from rtx to rtx_insn * within their
11731 * genoutput.c (process_template): Strengthen the 2nd param within
11732 the generated "output_" functions "insn" from rtx to rtx_insn *.
11734 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11736 * tree-profile.c (tree_profiling): Skip external functions
11737 when doing coverage instrumentation.
11738 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
11740 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11742 * config/rs6000/altivec.h (vec_cpsgn): New #define.
11743 (vec_mergee): Likewise.
11744 (vec_mergeo): Likewise.
11745 (vec_cntlz): Likewise.
11746 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
11747 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
11748 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
11749 VMRGEW, and VMRGOW.
11750 * doc/extend.texi: Document various forms of vec_cpsgn,
11751 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
11752 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
11753 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
11754 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
11755 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
11757 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11759 * config/rs6000/rs6000.c (context.h): New include.
11760 (tree-pass.h): Likewise.
11761 (make_pass_analyze_swaps): New decl.
11762 (rs6000_option_override): Register pass_analyze_swaps.
11763 (swap_web_entry): New subsclass of web_entry_base (df.h).
11764 (special_handling_values): New enum.
11765 (union_defs): New function.
11766 (union_uses): Likewise.
11767 (insn_is_load_p): Likewise.
11768 (insn_is_store_p): Likewise.
11769 (insn_is_swap_p): Likewise.
11770 (rtx_is_swappable_p): Likewise.
11771 (insn_is_swappable_p): Likewise.
11772 (chain_purpose): New enum.
11773 (chain_contains_only_swaps): New function.
11774 (mark_swaps_for_removal): Likewise.
11775 (swap_const_vector_halves): Likewise.
11776 (adjust_subreg_index): Likewise.
11777 (permute_load): Likewise.
11778 (permute_store): Likewise.
11779 (handle_special_swappables): Likewise.
11780 (replace_swap_with_copy): Likewise.
11781 (dump_swap_insn_table): Likewise.
11782 (rs6000_analyze_swaps): Likewise.
11783 (pass_data_analyze_swaps): New pass_data.
11784 (pass_analyze_swaps): New rtl_opt_pass.
11785 (make_pass_analyze_swaps): New function.
11786 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
11788 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11790 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
11791 type from rtx to rtx_insn *.
11792 (create_copy_of_insn_rtx): Likewise.
11793 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
11794 (create_copy_of_insn_rtx): Likewise, also for local "res".
11796 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11798 * rtl.h (find_first_parameter_load): Strengthen return type from
11800 * rtlanal.c (find_first_parameter_load): Strengthen return type
11801 from rtx to rtx_insn *. Add checked cast for now, to postpone
11802 strengthening the params.
11804 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11807 * diagnostic.c: Set default caret.
11808 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
11810 * diagnostic.h (struct diagnostic_context):
11812 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11814 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
11815 (sel_bb_head): Strengthen return type insn_t (currently just an
11816 rtx) to rtx_insn *.
11817 (sel_bb_end): Likewise.
11819 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
11820 (sel_bb_head): Strengthen return type and local "head" from
11821 insn_t (currently just an rtx) to rtx_insn *.
11822 (sel_bb_end): Likewise for return type.
11823 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
11826 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11828 * basic-block.h (get_last_bb_insn): Strengthen return type from
11830 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
11833 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11836 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
11838 (diagnostic_report_diagnostic): ... from here.
11839 * toplev.c (general_init): Move code to c-family.
11841 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11843 * df.h (web_entry_base): Replace existing struct web_entry with a
11844 new class web_entry_base with only the predecessor member.
11845 (unionfind_root): Remove declaration and move to class member.
11846 (unionfind_union): Remove declaration and move to friend
11848 (union_defs): Remove declaration.
11849 * web.c (web_entry_base::unionfind_root): Modify to be member
11850 function and adjust accessors.
11851 (unionfind_union): Modify to be friend function and adjust
11853 (web_entry): New subclass of web_entry_base containing the reg
11855 (union_match_dups): Modify for struct -> class changes.
11856 (union_defs): Likewise.
11857 (entry_register): Likewise.
11858 (pass_web::execute): Likewise.
11860 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
11862 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
11863 builtin define __VEC_ELEMENT_REG_ORDER__.
11865 2014-08-20 Martin Jambor <mjambor@suse.cz>
11866 Wei Mi <wmi@google.com>
11869 PR middle-end/61776
11870 * tree-ssa-operands.c (update_stmt_operands): Remove
11871 MODIFIED_NORETURN_CALLS.
11872 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
11873 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
11874 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
11875 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
11876 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
11877 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
11878 (gimple_call_set_ctrl_altering): New func.
11879 (gimple_call_ctrl_altering_p): Ditto.
11880 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
11881 (make_blocks): Use gimple_call_initialize_ctrl_altering.
11882 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
11883 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
11884 remove MODIFIED_NORETURN_CALLS.
11886 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11888 * coverage.c (coverage_compute_profile_id): Return non-0;
11889 also handle symbols with unique name.
11890 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
11892 2014-08-20 Steve Ellcey <sellcey@mips.com>
11894 PR middle-end/49191
11895 * doc/sourcebuild.texi (non_strict_align): New.
11897 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11899 * cgraphunit.c (ipa_passes, compile): Reshedule
11900 symtab_remove_unreachable_nodes passes; update comments.
11901 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
11902 TODO_remove_functions before the pass; the functions ought to be
11904 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
11905 TODO_remove_functions.
11906 * passes.c (pass_data_early_local_passes): Do not schedule function
11908 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
11910 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11913 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
11914 before setting the option.
11915 * diagnostic.c (diagnostic_classify_diagnostic): Record
11916 command-line status.
11918 2014-08-20 Richard Biener <rguenther@suse.de>
11921 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11922 to build uint{16,32,64}_type_node.
11924 2014-08-20 Terry Guo <terry.guo@arm.com>
11926 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11927 with immediate_operand.
11929 2014-08-20 David Malcolm <dmalcolm@redhat.com>
11931 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11932 "insn" from an as_a to a safe_as_a, for the case when "insn" is
11935 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11937 PR preprocessor/51303
11938 * incpath.c (remove_duplicates): Use cpp_warning.
11940 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11944 * doc/options.texi (CPP): Document it.
11945 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11946 * optc-gen.awk: Handle CPP.
11947 * opth-gen.awk: Likewise.
11949 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11951 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11953 (duplicate_insn_chain): Likewise.
11954 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11955 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
11956 checked cast for now (until we can strengthen the params in the
11958 (duplicate_insn_chain): Likewise.
11960 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11962 * rtl.h (next_cc0_user): Strengthen return type from rtx to
11964 (prev_cc0_setter): Likewise.
11966 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11967 rtx_insn *, adding checked casts for now as necessary.
11968 (prev_cc0_setter): Likewise.
11970 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11972 * expr.h (emit_move_insn): Strengthen return type from rtx to
11974 (emit_move_insn_1): Likewise.
11975 (emit_move_complex_push): Likewise.
11976 (emit_move_complex_parts): Likewise.
11978 * expr.c (emit_move_via_integer): Strengthen return type from rtx
11979 to rtx_insn *. Replace use of NULL_RTX with NULL when working
11981 (emit_move_complex_push): Strengthen return type from rtx to
11983 (emit_move_complex): Likewise, also for local "ret".
11984 (emit_move_ccmode): Likewise.
11985 (emit_move_multi_word): Likewise for return type and locals
11986 "last_insn", "seq".
11987 (emit_move_insn_1): Likewise for return type and locals "result",
11989 (emit_move_insn): Likewise for return type and local "last_insn".
11990 (compress_float_constant): Likewise.
11992 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11994 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11995 from rtx to rtx_insn *.
11997 * rtl.h (emit_insn_before): Likewise.
11998 (emit_insn_before_noloc): Likewise.
11999 (emit_insn_before_setloc): Likewise.
12000 (emit_jump_insn_before): Likewise.
12001 (emit_jump_insn_before_noloc): Likewise.
12002 (emit_jump_insn_before_setloc): Likewise.
12003 (emit_call_insn_before): Likewise.
12004 (emit_call_insn_before_noloc): Likewise.
12005 (emit_call_insn_before_setloc): Likewise.
12006 (emit_debug_insn_before): Likewise.
12007 (emit_debug_insn_before_noloc): Likewise.
12008 (emit_debug_insn_before_setloc): Likewise.
12009 (emit_label_before): Likewise.
12010 (emit_insn_after): Likewise.
12011 (emit_insn_after_noloc): Likewise.
12012 (emit_insn_after_setloc): Likewise.
12013 (emit_jump_insn_after): Likewise.
12014 (emit_jump_insn_after_noloc): Likewise.
12015 (emit_jump_insn_after_setloc): Likewise.
12016 (emit_call_insn_after): Likewise.
12017 (emit_call_insn_after_noloc): Likewise.
12018 (emit_call_insn_after_setloc): Likewise.
12019 (emit_debug_insn_after): Likewise.
12020 (emit_debug_insn_after_noloc): Likewise.
12021 (emit_debug_insn_after_setloc): Likewise.
12022 (emit_label_after): Likewise.
12023 (emit_insn): Likewise.
12024 (emit_debug_insn): Likewise.
12025 (emit_jump_insn): Likewise.
12026 (emit_call_insn): Likewise.
12027 (emit_label): Likewise.
12028 (gen_clobber): Likewise.
12029 (emit_clobber): Likewise.
12030 (gen_use): Likewise.
12031 (emit_use): Likewise.
12034 (emit_barrier_before): Strengthen return type from rtx to
12036 (emit_barrier_after): Likewise.
12037 (emit_barrier): Likewise.
12039 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
12040 from rtx to rtx_insn *. Add checked casts for now when converting
12041 "last" from rtx to rtx_insn *.
12042 (emit_insn_before_noloc): Likewise for return type.
12043 (emit_jump_insn_before_noloc): Likewise.
12044 (emit_call_insn_before_noloc): Likewise.
12045 (emit_debug_insn_before_noloc): Likewise.
12046 (emit_barrier_before): Strengthen return type and local "insn"
12047 from rtx to rtx_barrier *.
12048 (emit_label_before): Strengthen return type from rtx to
12049 rtx_insn *. Add checked cast for now when returning param
12050 (emit_pattern_after_noloc): Strengthen return type from rtx to
12051 rtx_insn *. Add checked casts for now when converting "last" from
12053 (emit_insn_after_noloc): Strengthen return type from rtx to
12055 (emit_jump_insn_after_noloc): Likewise.
12056 (emit_call_insn_after_noloc): Likewise.
12057 (emit_debug_insn_after_noloc): Likewise.
12058 (emit_barrier_after): Strengthen return type from rtx to
12060 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
12061 Add checked cast for now when converting "label" from rtx to
12063 (emit_pattern_after_setloc): Strengthen return type from rtx to
12064 rtx_insn *. Add checked casts for now when converting "last" from
12066 (emit_pattern_after): Strengthen return type from rtx to
12068 (emit_insn_after_setloc): Likewise.
12069 (emit_insn_after): Likewise.
12070 (emit_jump_insn_after_setloc): Likewise.
12071 (emit_jump_insn_after): Likewise.
12072 (emit_call_insn_after_setloc): Likewise.
12073 (emit_call_insn_after): Likewise.
12074 (emit_debug_insn_after_setloc): Likewise.
12075 (emit_debug_insn_after): Likewise.
12076 (emit_pattern_before_setloc): Likewise. Add checked casts for now
12077 when converting "last" from rtx to rtx_insn *.
12078 (emit_pattern_before): Strengthen return type from rtx to
12080 (emit_insn_before_setloc): Likewise.
12081 (emit_insn_before): Likewise.
12082 (emit_jump_insn_before_setloc): Likewise.
12083 (emit_jump_insn_before): Likewise.
12084 (emit_call_insn_before_setloc): Likewise.
12085 (emit_call_insn_before): Likewise.
12086 (emit_debug_insn_before_setloc): Likewise.
12087 (emit_debug_insn_before): Likewise.
12088 (emit_insn): Strengthen return type and locals "last", "insn",
12089 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
12090 within cases where we know we have an insn.
12091 (emit_debug_insn): Likewise.
12092 (emit_jump_insn): Likewise.
12093 (emit_call_insn): Strengthen return type and local "insn" from rtx
12095 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
12096 a checked cast to rtx_insn * for now on "label".
12097 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
12098 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
12099 (emit_use): Likewise.
12100 (gen_use): Likewise, also for local "seq".
12101 (emit): Likewise for return type and local "insn".
12102 (rtx_insn): Likewise for return type and local "new_rtx".
12104 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
12105 from rtx to rtx_barrier *.
12107 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
12108 changed return type from rtx to rtx_insn *, we must update
12109 "emit_fn" type, and this in turn means updating...
12110 (frame_insn): ...this. Strengthen return type from rtx to
12111 rtx_insn *. Introduce a new local "insn" of the appropriate type.
12113 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12115 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
12116 rtx to rtx_jump_table_data *. Also for local.
12117 * rtl.h (emit_jump_table_data): Likewise.
12119 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12121 * basic-block.h (create_basic_block_structure): Strengthen third
12122 param "bb_note" from rtx to rtx_note *.
12123 * rtl.h (emit_note_before): Strengthen return type from rtx to
12125 (emit_note_after): Likewise.
12126 (emit_note): Likewise.
12127 (emit_note_copy): Likewise. Also, strengthen param similarly.
12128 * function.h (struct rtl_data): Strengthen field
12129 "x_stack_check_probe_note" from rtx to rtx_note *.
12131 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
12132 from rtx to rtx_note *.
12133 * cfgrtl.c (create_basic_block_structure): Strengthen third param
12134 "bb_note" from rtx to rtx_note *.
12135 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
12136 when calling emit_note_copy.
12137 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
12139 (emit_note_after): Likewise.
12140 (emit_note_before): Likewise.
12141 (emit_note_copy): Likewise. Also, strengthen param similarly.
12142 (emit_note): Likewise.
12143 * except.c (emit_note_eh_region_end): Likewise for return type.
12144 Strengthen local "next" from rtx to rtx_insn *.
12145 (convert_to_eh_region_ranges): Strengthen local "note"
12146 from rtx to rtx_note *.
12147 * final.c (change_scope): Likewise.
12148 (reemit_insn_block_notes): Likewise, for both locals named "note".
12149 Also, strengthen local "insn" from rtx to rtx_insn *.
12150 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
12152 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
12153 strengthen local "seq" from rtx to rtx_insn *.
12154 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
12156 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
12158 (get_bb_note_from_pool): Strengthen return type from rtx to
12160 (sel_create_basic_block): Strengthen local "new_bb_note" from
12161 insn_t to rtx_note *.
12162 * var-tracking.c (emit_note_insn_var_location): Strengthen local
12163 "note" from rtx to rtx_note *.
12164 (emit_notes_in_bb): Likewise.
12166 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12168 * function.h (struct rtl_data): Strengthen field
12169 "x_parm_birth_insn" from rtx to rtx_insn *.
12170 * function.c (struct assign_parm_data_all): Strengthen fields
12171 "first_conversion_insn" and "last_conversion_insn" from rtx to
12174 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12176 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
12177 to rtx_insn *; also for local "var_end_seq".
12178 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
12179 (maybe_cleanup_end_of_block): Likewise for param "last" and local
12181 (expand_gimple_cond): Likewise for locals "last2" and "last".
12182 (mark_transaction_restart_calls): Likewise for local "insn".
12183 (expand_gimple_stmt): Likewise for return type and locals "last"
12185 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
12186 (avoid_complex_debug_insns): Likewise for param "insn".
12187 (expand_debug_locations): Likewise for locals "insn", "last",
12188 "prev_insn" and "insn2".
12189 (expand_gimple_basic_block): Likewise for local "last".
12190 (construct_exit_block): Likewise for locals "head", "end",
12192 (pass_expand::execute): Likewise for locals "var_seq",
12193 "var_ret_seq", "next".
12195 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12197 * asan.h (asan_emit_stack_protection): Strengthen return type from
12199 * asan.c (asan_emit_stack_protection): Likewise. Add local
12200 "insns" to hold the return value.
12202 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12204 * basic-block.h (bb_note): Strengthen return type from rtx to
12206 * sched-int.h (bb_note): Likewise.
12207 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
12209 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12211 * rtl.h (make_insn_raw): Strengthen return type from rtx to
12214 * emit-rtl.c (make_insn_raw): Strengthen return type and local
12215 "insn" from rtx to rtx_insn *.
12216 (make_debug_insn_raw): Strengthen return type from rtx to
12217 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
12218 (make_jump_insn_raw): Strengthen return type from rtx to
12219 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
12220 (make_call_insn_raw): Strengthen return type from rtx to
12221 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
12222 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
12223 callback from rtx to rtx_insn *; likewise for local "insn" and
12224 "next", adding a checked cast to rtx_insn in the relevant cases of
12225 the switch statement.
12226 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
12227 callback from rtx to rtx_insn *.
12228 (emit_pattern_after_setloc): Likewise.
12229 (emit_pattern_after): Likewise.
12230 (emit_pattern_before_setloc): Likewise.
12231 (emit_pattern_before): Likewise.
12233 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12235 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
12237 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
12238 accepting an rtx_insn *.
12239 (last_call_insn): Strengthen return type from rtx to
12242 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12244 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
12245 "insns" from rtx to rtx_insn *.
12246 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
12247 locals "insn" and "prev".
12249 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12251 * rtl.h (tablejump_p): Strengthen third param from rtx * to
12252 rtx_jump_table_data **.
12254 * cfgbuild.c (make_edges): Introduce local "table", using it in
12255 place of "tmp" for jump table data.
12256 (find_bb_boundaries): Strengthen local "table" from rtx to
12257 rtx_jump_table_data *.
12258 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12259 (outgoing_edges_match): Likewise for locals "table1" and "table2".
12260 (try_crossjump_to_edge): Likewise.
12261 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
12263 (patch_jump_insn): Introduce local "table", using it in place of
12264 "tmp" for jump table data.
12265 (force_nonfallthru_and_redirect): Introduce local "table", so that
12266 call to tablejump_p can receive an rtx_jump_table_data **. Update
12267 logic around the call to overwrite "note" appropriately if
12268 tablejump_p returns non-zero.
12269 (get_last_bb_insn): Introduce local "table", using it in place of
12270 "tmp" for jump table data.
12271 * dwarf2cfi.c (create_trace_edges): Likewise.
12273 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
12274 from rtx to rtx_jump_table_data *.
12275 (create_fix_barrier): Strengthen local "tmp" from rtx to
12276 rtx_jump_table_data *.
12277 (arm_reorg): Likewise for local "table".
12279 * config/s390/s390.c (s390_chunkify_start): Likewise.
12281 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
12283 * jump.c (delete_related_insns): Strengthen local "lab_next" from
12284 rtx to rtx_jump_table_data *.
12286 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
12287 rtx_jump_table_data **. Add a checked cast when writing through
12288 the pointer: we know there that local "table" is non-NULL and that
12289 JUMP_TABLE_DATA_P (table) holds.
12290 (label_is_jump_target_p): Introduce local "table", using it in
12291 place of "tmp" for jump table data.
12293 2014-08-19 Marek Polacek <polacek@redhat.com>
12296 * doc/invoke.texi: Document -Wbool-compare.
12298 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12300 * rtl.h (entry_of_function): Strengthen return type from rtx to
12302 * cfgrtl.c (entry_of_function): Likewise.
12304 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12306 * emit-rtl.h (get_insns): Strengthen return type from rtx to
12307 rtx_insn *, adding a checked cast for now.
12308 (get_last_insn): Likewise.
12310 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12312 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
12315 * emit-rtl.c (gen_label_rtx): Likewise.
12317 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12319 * rtl.h (previous_insn): Strengthen return type from rtx to
12321 (next_insn): Likewise.
12322 (prev_nonnote_insn): Likewise.
12323 (prev_nonnote_insn_bb): Likewise.
12324 (next_nonnote_insn): Likewise.
12325 (next_nonnote_insn_bb): Likewise.
12326 (prev_nondebug_insn): Likewise.
12327 (next_nondebug_insn): Likewise.
12328 (prev_nonnote_nondebug_insn): Likewise.
12329 (next_nonnote_nondebug_insn): Likewise.
12330 (prev_real_insn): Likewise.
12331 (next_real_insn): Likewise.
12332 (prev_active_insn): Likewise.
12333 (next_active_insn): Likewise.
12335 * emit-rtl.c (next_insn): Strengthen return type from rtx to
12336 rtx_insn *, adding a checked cast.
12337 (previous_insn): Likewise.
12338 (next_nonnote_insn): Likewise.
12339 (next_nonnote_insn_bb): Likewise.
12340 (prev_nonnote_insn): Likewise.
12341 (prev_nonnote_insn_bb): Likewise.
12342 (next_nondebug_insn): Likewise.
12343 (prev_nondebug_insn): Likewise.
12344 (next_nonnote_nondebug_insn): Likewise.
12345 (prev_nonnote_nondebug_insn): Likewise.
12346 (next_real_insn): Likewise.
12347 (prev_real_insn): Likewise.
12348 (next_active_insn): Likewise.
12349 (prev_active_insn): Likewise.
12351 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
12352 param "stepfunc" so that it returns an rtx_insn * rather than an
12353 rtx, to track the change to prev_nonnote_insn_bb, which is the
12354 only function this is called with.
12355 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
12357 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
12359 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
12362 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12364 * coretypes.h (class rtx_debug_insn): Add forward declaration.
12365 (class rtx_nonjump_insn): Likewise.
12366 (class rtx_jump_insn): Likewise.
12367 (class rtx_call_insn): Likewise.
12368 (class rtx_jump_table_data): Likewise.
12369 (class rtx_barrier): Likewise.
12370 (class rtx_code_label): Likewise.
12371 (class rtx_note): Likewise.
12373 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
12374 adding the invariant DEBUG_INSN_P (X).
12375 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
12376 the invariant NONJUMP_INSN_P (X).
12377 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
12378 the invariant JUMP_P (X).
12379 (class rtx_call_insn): New, a subclass of rtx_insn, adding
12380 the invariant CALL_P (X).
12381 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
12382 invariant JUMP_TABLE_DATA_P (X).
12383 (class rtx_barrier): New, a subclass of rtx_insn, adding the
12384 invariant BARRIER_P (X).
12385 (class rtx_code_label): New, a subclass of rtx_insn, adding
12386 the invariant LABEL_P (X).
12387 (class rtx_note): New, a subclass of rtx_insn, adding
12388 the invariant NOTE_P(X).
12389 (is_a_helper <rtx_debug_insn *>::test): New.
12390 (is_a_helper <rtx_nonjump_insn *>::test): New.
12391 (is_a_helper <rtx_jump_insn *>::test): New.
12392 (is_a_helper <rtx_call_insn *>::test): New.
12393 (is_a_helper <rtx_jump_table_data *>::test): New functions,
12394 overloaded for both rtx and rtx_insn *.
12395 (is_a_helper <rtx_barrier *>::test): New.
12396 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
12397 for both rtx and rtx_insn *.
12398 (is_a_helper <rtx_note *>::test): New.
12400 2014-08-19 Marek Polacek <polacek@redhat.com>
12402 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
12403 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
12404 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
12405 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
12407 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12409 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
12410 rtx_insn *. To help with transition, for now, convert from an
12411 access macro into a pair of functions: BND_TO, returning an
12413 (SET_BND_TO): New function, for use where BND_TO is used as an
12416 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
12418 (BND_TO): New function, adding a checked cast.
12419 (SET_BND_TO): New function.
12421 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
12423 (compute_av_set_on_boundaries): Likewise.
12425 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
12427 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
12428 destination if it is used in source.
12429 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
12430 (*popcount<mode>2_falsedep_1): Likewise.
12432 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
12435 * configure.ac: Set install_gold_as_default to no first.
12436 * configure: Regenerated.
12438 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12440 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
12441 "note_list" field will eventually be an rtx_insn *. To help with
12442 transition, for now, convert from an access macro into a pair of
12443 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
12444 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
12447 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
12448 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
12450 * sel-sched-ir.c (init_bb): Likewise.
12451 (sel_restore_notes): Likewise.
12452 (move_bb_info): Likewise.
12453 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
12454 (SET_BB_NOTE_LIST): New function.
12456 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12458 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
12459 field will eventually be an rtx_insn *. To help with transition,
12460 for now, convert from an access macro into a pair of functions:
12461 VINSN_INSN_RTX, returning an rtx_insn *, and...
12462 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
12463 is used as an lvalue.
12465 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
12466 SET_VINSN_INSN_RTX where it's used as an lvalue.
12467 (VINSN_INSN_RTX): New function.
12468 (SET_VINSN_INSN_RTX): New function.
12470 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12472 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
12473 eventually be rtx_insn *, but to help with transition, for now,
12474 convert from an access macro into a pair of functions: DEP_PRO
12475 returning an rtx_insn * and...
12476 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
12477 lvalue, returning an rtx&.
12478 (DEP_CON): Analogous changes to DEP_PRO above.
12479 (SET_DEP_CON): Likewise.
12481 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
12482 an lvalue to SET_DEP_CON.
12483 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
12484 (sd_copy_back_deps): Likewise for DEP_CON.
12485 (DEP_PRO): New function, adding a checked cast for now.
12486 (DEP_CON): Likewise.
12487 (SET_DEP_PRO): New function.
12488 (SET_DEP_CON): Likewise.
12490 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
12492 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
12493 (extra_options): Add i386/cygwin.opt.
12494 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
12495 (CPP_SPEC): Accept -pthread.
12496 (LINK_SPEC): Ditto.
12497 (GOMP_SELF_SPECS): Update comment.
12498 * config/i386/cygwin.opt: New file for -pthread flag.
12500 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12502 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
12503 * df.h (DF_REF_INSN): Convert from a macro to a function, so
12504 that we can return an rtx_insn *.
12506 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
12508 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
12509 when building executables, not DLLs. Add --large-address-aware
12510 under the same conditions.
12511 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
12512 when building executables, not DLLs. Add --large-address-aware
12513 under the same conditions when using -m32.
12515 * config/i386/cygwin-stdint.h: Throughout, make type
12516 definitions dependent on target architecture, not host.
12518 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12520 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
12521 the return type from rtx to rtx_insn *, which will enable various
12522 conversions in followup patches. For now this is is done by a
12524 (NEXT_INSN): Likewise.
12525 (SET_PREV_INSN): Convert to an inline function. This is intended
12526 for use as an lvalue, and so returns an rtx& to allow in-place
12528 (SET_NEXT_INSN): Likewise.
12530 2014-07-08 Mark Wielaard <mjw@redhat.com>
12533 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
12535 2014-08-19 Marek Polacek <polacek@redhat.com>
12538 * cgraphunit.c (handle_alias_pairs): Fix condition.
12540 2014-08-19 Richard Biener <rguenther@suse.de>
12542 * gimple-fold.c (fold_gimple_assign): Properly build a
12543 null-pointer constant when devirtualizing addresses.
12545 2014-07-07 Mark Wielaard <mjw@redhat.com>
12547 * dwarf2out.c (decl_quals): New function.
12548 (modified_type_die): Take one cv_quals argument instead of two,
12549 one for const and one for volatile.
12550 (add_type_attribute): Likewise.
12551 (generic_parameter_die): Call add_type_attribute with one modifier
12553 (base_type_for_mode): Likewise.
12554 (add_bounds_info): Likewise.
12555 (add_subscript_info): Likewise.
12556 (gen_array_type_die): Likewise.
12557 (gen_descr_array_type_die): Likewise.
12558 (gen_entry_point_die): Likewise.
12559 (gen_enumeration_type_die): Likewise.
12560 (gen_formal_parameter_die): Likewise.
12561 (gen_subprogram_die): Likewise.
12562 (gen_variable_die): Likewise.
12563 (gen_const_die): Likewise.
12564 (gen_field_die): Likewise.
12565 (gen_pointer_type_die): Likewise.
12566 (gen_reference_type_die): Likewise.
12567 (gen_ptr_to_mbr_type_die): Likewise.
12568 (gen_inheritance_die): Likewise.
12569 (gen_subroutine_type_die): Likewise.
12570 (gen_typedef_die): Likewise.
12571 (force_type_die): Likewise.
12573 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12575 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
12577 * configure: Regenerate.
12579 2014-08-19 Richard Biener <rguenther@suse.de>
12581 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
12582 DECL_EXTERNALs in BLOCKs as non-references.
12583 * tree-streamer-out.c (streamer_write_chain): Likewise.
12585 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
12586 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12587 Anna Tikhonova <anna.tikhonova@intel.com>
12588 Ilya Tocar <ilya.tocar@intel.com>
12589 Andrey Turetskiy <andrey.turetskiy@intel.com>
12590 Ilya Verbin <ilya.verbin@intel.com>
12591 Kirill Yukhin <kirill.yukhin@intel.com>
12592 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12594 * config/i386/sse.md
12595 (define_mode_iterator VI48_AVX512F): Delete.
12596 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
12597 (define_mode_iterator VI2_AVX512VL): Ditto.
12598 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
12601 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
12603 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
12604 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
12605 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12606 with VI48_AVX512F_AVX512VL): New.
12607 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12608 with VI2_AVX512VL): Ditto.
12610 2014-08-19 Marek Polacek <polacek@redhat.com>
12612 * doc/invoke.texi: Document -Wc99-c11-compat.
12614 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12616 * rtl.h (PREV_INSN): Split macro in two: the existing one,
12617 for rvalues, and...
12618 (SET_PREV_INSN): New macro, for use as an lvalue.
12619 (NEXT_INSN, SET_NEXT_INSN): Likewise.
12621 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
12622 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
12623 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
12624 (fixup_abnormal_edges): Likewise.
12625 (unlink_insn_chain): Likewise.
12626 (fixup_reorder_chain): Likewise.
12627 (cfg_layout_delete_block): Likewise.
12628 (cfg_layout_merge_blocks): Likewise.
12629 * combine.c (update_cfg_for_uncondjump): Likewise.
12630 * emit-rtl.c (link_insn_into_chain): Likewise.
12631 (remove_insn): Likewise.
12632 (delete_insns_since): Likewise.
12633 (reorder_insns_nobb): Likewise.
12634 (emit_insn_after_1): Likewise.
12635 * final.c (rest_of_clean_state): Likewise.
12636 (final_scan_insn): Likewise.
12637 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
12638 * haifa-sched.c (concat_note_lists): Likewise.
12639 (remove_notes): Likewise.
12640 (restore_other_notes): Likewise.
12641 (move_insn): Likewise.
12642 (unlink_bb_notes): Likewise.
12643 (restore_bb_notes): Likewise.
12644 * jump.c (delete_for_peephole): Likewise.
12645 * optabs.c (emit_libcall_block_1): Likewise.
12646 * reorg.c (emit_delay_sequence): Likewise.
12647 (fill_simple_delay_slots): Likewise.
12648 * sel-sched-ir.c (sel_move_insn): Likewise.
12649 (sel_remove_insn): Likewise.
12650 (get_bb_note_from_pool): Likewise.
12651 * sel-sched.c (move_nop_to_previous_block): Likewise.
12653 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
12654 * config/c6x/c6x.c (gen_one_bundle): Likewise.
12655 (c6x_gen_bundles): Likewise.
12656 (hwloop_optimize): Likewise.
12657 * config/frv/frv.c (frv_function_prologue): Likewise.
12658 (frv_register_nop): Likewise.
12659 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
12660 (ia64_reorg): Likewise.
12661 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
12662 (mep_make_bundle): Likewise.
12663 (mep_bundle_insns): Likewise.
12664 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
12665 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
12666 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
12668 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12670 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
12671 return type from rtx to rtx_insn *.
12672 (BB_END): Likewise.
12673 (BB_HEADER): Likewise.
12674 (BB_FOOTER): Likewise.
12675 (SET_BB_HEAD): Convert to a function.
12676 (SET_BB_END): Likewise.
12677 (SET_BB_HEADER): Likewise.
12678 (SET_BB_FOOTER): Likewise.
12680 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
12681 Strengthen the return type from rtx to rtx_insn *. For now, this
12682 is done by adding a checked cast, but this will eventually
12683 become a field lookup.
12684 (BB_END): Likewise.
12685 (BB_HEADER): Likewise.
12686 (BB_FOOTER): Likewise.
12687 (SET_BB_HEAD): New function, from macro of same name. This is
12688 intended for use as an lvalue, and so returns an rtx& to allow
12689 in-place modification.
12690 (SET_BB_END): Likewise.
12691 (SET_BB_HEADER): Likewise.
12692 (SET_BB_FOOTER): Likewise.
12694 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12696 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
12697 for rvalues, and...
12698 (SET_BB_HEAD): New macro, for use as a lvalue.
12699 (BB_END, SET_BB_END): Likewise.
12700 (BB_HEADER, SET_BB_HEADER): Likewise.
12701 (BB_FOOTER, SET_BB_FOOTER): Likewise.
12703 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
12704 of BB_* macros into SET_BB_* macros.
12705 (fix_crossing_unconditional_branches): Likewise.
12706 * caller-save.c (save_call_clobbered_regs): Likewise.
12707 (insert_one_insn): Likewise.
12708 * cfgbuild.c (find_bb_boundaries): Likewise.
12709 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12710 (outgoing_edges_match): Likewise.
12711 (try_optimize_cfg): Likewise.
12712 * cfgexpand.c (expand_gimple_cond): Likewise.
12713 (expand_gimple_tailcall): Likewise.
12714 (expand_gimple_basic_block): Likewise.
12715 (construct_exit_block): Likewise.
12716 * cfgrtl.c (delete_insn): Likewise.
12717 (create_basic_block_structure): Likewise.
12718 (rtl_delete_block): Likewise.
12719 (rtl_split_block): Likewise.
12720 (emit_nop_for_unique_locus_between): Likewise.
12721 (rtl_merge_blocks): Likewise.
12722 (block_label): Likewise.
12723 (try_redirect_by_replacing_jump): Likewise.
12724 (emit_barrier_after_bb): Likewise.
12725 (fixup_abnormal_edges): Likewise.
12726 (record_effective_endpoints): Likewise.
12727 (relink_block_chain): Likewise.
12728 (fixup_reorder_chain): Likewise.
12729 (fixup_fallthru_exit_predecessor): Likewise.
12730 (cfg_layout_duplicate_bb): Likewise.
12731 (cfg_layout_split_block): Likewise.
12732 (cfg_layout_delete_block): Likewise.
12733 (cfg_layout_merge_blocks): Likewise.
12734 * combine.c (update_cfg_for_uncondjump): Likewise.
12735 * emit-rtl.c (add_insn_after): Likewise.
12736 (remove_insn): Likewise.
12737 (reorder_insns): Likewise.
12738 (emit_insn_after_1): Likewise.
12739 * haifa-sched.c (get_ebb_head_tail): Likewise.
12740 (restore_other_notes): Likewise.
12741 (move_insn): Likewise.
12742 (sched_extend_bb): Likewise.
12743 (fix_jump_move): Likewise.
12744 * ifcvt.c (noce_process_if_block): Likewise.
12745 (dead_or_predicable): Likewise.
12746 * ira.c (update_equiv_regs): Likewise.
12747 * reg-stack.c (change_stack): Likewise.
12748 * sel-sched-ir.c (sel_move_insn): Likewise.
12749 * sel-sched.c (move_nop_to_previous_block): Likewise.
12751 * config/c6x/c6x.c (hwloop_optimize): Likewise.
12752 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12754 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12756 * rtl.h (for_each_rtx_in_insn): New function.
12757 * rtlanal.c (for_each_rtx_in_insn): Likewise.
12759 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12761 * coretypes.h (class rtx_insn): Add forward declaration.
12763 * rtl.h: Include is-a.h.
12764 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
12765 workaround to ensure gengtype knows inheritance is occurring,
12766 whilst continuing to use the pre-existing special-casing for
12768 (class rtx_insn): New subclass of rtx_def, adding the
12769 invariant that we're dealing with something we can sanely use
12770 INSN_UID, NEXT_INSN, PREV_INSN on.
12771 (is_a_helper <rtx_insn *>::test): New.
12772 (is_a_helper <const rtx_insn *>::test): New.
12774 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12776 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
12778 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
12780 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
12783 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
12785 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
12786 to BUILT_IN_UNREACHABLE.
12788 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
12791 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
12793 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
12794 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
12795 (ffs<mode>2): Do not expand with tzcnt for
12796 TARGET_AVOID_FALSE_DEP_FOR_BMI.
12797 (ffssi2_no_cmove): Ditto.
12798 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
12799 (ctz<mode>2): New expander.
12800 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
12801 (*ctz<mode>2_falsedep): New insn.
12802 (*ctz<mode>2): Rename from ctz<mode>2.
12803 (clz<mode>2_lzcnt): New expander.
12804 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
12805 (*clz<mode>2_lzcnt_falsedep): New insn.
12806 (*clz<mode>2): Rename from ctz<mode>2.
12807 (popcount<mode>2): New expander.
12808 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
12809 (*popcount<mode>2_falsedep): New insn.
12810 (*popcount<mode>2): Rename from ctz<mode>2.
12811 (*popcount<mode>2_cmp): Remove.
12812 (*popcountsi2_cmp_zext): Ditto.
12814 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
12816 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
12817 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
12818 * config/microblaze/microblaze.h
12819 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
12821 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
12824 * configure.ac: Set install_gold_as_default to no for
12826 * configure: Regenerated.
12828 2014-08-18 Roman Gareev <gareevroman@gmail.com>
12830 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
12831 * config.in: Add undef of HAVE_isl.
12832 * configure: Regenerate.
12833 * configure.ac: Add definition of HAVE_isl.
12834 * graphite-blocking.c: Add checking of HAVE_isl.
12835 * graphite-dependences.c: Likewise.
12836 * graphite-interchange.c: Likewise.
12837 * graphite-isl-ast-to-gimple.c: Likewise.
12838 * graphite-optimize-isl.c: Likewise.
12839 * graphite-poly.c: Likewise.
12840 * graphite-scop-detection.c: Likewise.
12841 * graphite-sese-to-poly.c: Likewise.
12842 * graphite.c: Likewise.
12843 * toplev.c: Replace the checking of HAVE_cloog with the checking
12846 2014-08-18 Richard Biener <rguenther@suse.de>
12848 PR tree-optimization/62090
12849 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
12850 (fold_builtin_3): Do not fold snprintf.
12851 (fold_builtin_4): Likewise.
12852 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
12853 moved from builtins.c.
12854 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
12855 (gimple_fold_builtin): Do not fold sprintf here.
12857 2014-08-18 Richard Biener <rguenther@suse.de>
12859 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
12861 (maybe_canonicalize_mem_ref_addr): ... this function.
12862 (fold_stmt_1): Apply it here before all simplification.
12864 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
12867 * cgraph.h (cgraph_node::create_indirect_edge): Add
12868 compute_indirect_info param.
12869 * cgraph.c (cgraph_node::create_indirect_edge): Compute
12870 indirect_info only when it is required.
12871 * cgraphclones.c (cgraph_clone_edge): Do not recompute
12872 indirect_info fore cloned indirect edge.
12874 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12875 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12876 Anna Tikhonova <anna.tikhonova@intel.com>
12877 Ilya Tocar <ilya.tocar@intel.com>
12878 Andrey Turetskiy <andrey.turetskiy@intel.com>
12879 Ilya Verbin <ilya.verbin@intel.com>
12880 Kirill Yukhin <kirill.yukhin@intel.com>
12881 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12883 * config/i386/sse.md
12884 (define_mode_iterator VI8_AVX2_AVX512BW): New.
12885 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
12887 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12889 Anna Tikhonova <anna.tikhonova@intel.com>
12890 Ilya Tocar <ilya.tocar@intel.com>
12891 Andrey Turetskiy <andrey.turetskiy@intel.com>
12892 Ilya Verbin <ilya.verbin@intel.com>
12893 Kirill Yukhin <kirill.yukhin@intel.com>
12894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12896 * config/i386/sse.md
12897 (define_mode_iterator VF1_AVX512VL): New.
12898 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
12899 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
12902 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12903 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12904 Anna Tikhonova <anna.tikhonova@intel.com>
12905 Ilya Tocar <ilya.tocar@intel.com>
12906 Andrey Turetskiy <andrey.turetskiy@intel.com>
12907 Ilya Verbin <ilya.verbin@intel.com>
12908 Kirill Yukhin <kirill.yukhin@intel.com>
12909 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12911 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
12912 * config/i386/i386.md
12913 (define_code_iterator any_float): New.
12914 (define_code_attr floatsuffix): New.
12915 * config/i386/sse.md
12916 (define_mode_iterator VF1_128_256VL): New.
12917 (define_mode_iterator VF2_512_256VL): New.
12918 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12920 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12921 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12923 (define_mode_attr qq2pssuff): New.
12924 (define_mode_attr sselongvecmode): New.
12925 (define_mode_attr sselongvecmodelower): New.
12926 (define_mode_attr sseintvecmode3): New.
12927 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12929 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12930 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12931 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12932 (define_insn "ufloatv2siv2df2<mask_name>"): New.
12934 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12935 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12936 Anna Tikhonova <anna.tikhonova@intel.com>
12937 Ilya Tocar <ilya.tocar@intel.com>
12938 Andrey Turetskiy <andrey.turetskiy@intel.com>
12939 Ilya Verbin <ilya.verbin@intel.com>
12940 Kirill Yukhin <kirill.yukhin@intel.com>
12941 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12943 * config/i386/sse.md
12944 (define_mode_iterator VF2_AVX512VL): New.
12945 (define_mode_attr sseintvecmode2): New.
12946 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12947 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12948 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12950 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12952 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12954 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12957 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12958 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12959 Anna Tikhonova <anna.tikhonova@intel.com>
12960 Ilya Tocar <ilya.tocar@intel.com>
12961 Andrey Turetskiy <andrey.turetskiy@intel.com>
12962 Ilya Verbin <ilya.verbin@intel.com>
12963 Kirill Yukhin <kirill.yukhin@intel.com>
12964 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12966 * config/i386/i386.md
12967 (define_insn "*movoi_internal_avx"): Add evex version.
12968 (define_insn "*movti_internal"): Ditto.
12970 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12971 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12972 Anna Tikhonova <anna.tikhonova@intel.com>
12973 Ilya Tocar <ilya.tocar@intel.com>
12974 Andrey Turetskiy <andrey.turetskiy@intel.com>
12975 Ilya Verbin <ilya.verbin@intel.com>
12976 Kirill Yukhin <kirill.yukhin@intel.com>
12977 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12979 * config/i386/i386.md
12980 (define_attr "isa"): Add avx512dq, noavx512dq.
12981 (define_attr "enabled"): Ditto.
12982 * config/i386/sse.md
12983 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12985 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12986 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12987 Anna Tikhonova <anna.tikhonova@intel.com>
12988 Ilya Tocar <ilya.tocar@intel.com>
12989 Andrey Turetskiy <andrey.turetskiy@intel.com>
12990 Ilya Verbin <ilya.verbin@intel.com>
12991 Kirill Yukhin <kirill.yukhin@intel.com>
12992 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12994 * config/i386/i386.c
12995 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12996 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12997 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12998 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12999 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
13000 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
13001 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
13002 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
13003 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
13004 * config/i386/sse.md
13005 (define_mode_iterator VMOVE): Allow V4TI mode.
13006 (define_mode_iterator V_AVX512VL): New.
13007 (define_mode_iterator V): New handling for AVX512VL.
13008 (define_insn "avx512f_load<mode>_mask"): Delete.
13009 (define_insn "<avx512>_load<mode>_mask"): New.
13010 (define_insn "avx512f_store<mode>_mask"): Delete.
13011 (define_insn "<avx512>_store<mode>_mask"): New.
13014 2014-08-18 Yury Gribov <y.gribov@samsung.com>
13017 * asan.c (instrument_derefs): Fix bitfield check.
13019 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
13021 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
13022 * config/rs6000/htm.md (ttest): Remove clobber.
13023 * config/rs6000/predicates.md (any_mask_operand): New predicate.
13024 (and_operand): Reformat.
13025 (and_2rld_operand): New predicate.
13026 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
13028 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
13029 parameter. Handle AND directly.
13030 (rs6000_split_logical_di): Remove last parameter.
13031 (rs6000_split_logical): Remove last parameter. Remove obsolete
13033 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
13034 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
13035 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
13036 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
13037 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
13038 and 5 anonymous splitters): Delete.
13039 (and<mode>3): New expander.
13040 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
13041 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
13042 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
13043 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
13044 (floatdisf2_internal1): Remove clobbers.
13045 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
13046 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
13047 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
13048 (and<mode>3 for BOOL_128): Remove clobber.
13049 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
13050 rs6000_split_logical.
13051 (*bool<mode>3_internal for BOOL_128): Adjust call of
13052 rs6000_split_logical.
13053 (*boolc<mode>3_internal1 for BOOL_128,
13054 *boolc<mode>3_internal2 for BOOL_128,
13055 *boolcc<mode>3_internal1 for BOOL_128,
13056 *boolcc<mode>3_internal2 for BOOL_128,
13057 *eqv<mode>3_internal1 for BOOL_128,
13058 *eqv<mode>3_internal2 for BOOL_128,
13059 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
13060 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
13062 (*vec_reload_and_reg_<mptrsize>): Delete.
13064 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
13066 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
13067 and split, *boolccsi3_internal3 and split): Delete.
13068 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
13069 *boolccdi3_internal3 and split): Delete.
13070 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
13071 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
13073 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
13075 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
13076 and split, *boolcsi3_internal3 and split): Delete.
13077 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
13078 *boolcdi3_internal3 and split): Delete.
13079 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
13081 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
13083 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
13084 <'u'>: Also support printing the low-order 16 bits.
13085 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
13086 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
13087 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
13088 *booldi3_internal3 and split): Delete.
13089 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
13090 *bool<mode>3_dot2): New.
13091 (two anonymous define_splits for non_logical_cint_operand): Merge.
13093 2014-08-17 Marek Polacek <polacek@redhat.com>
13094 Manuel López-Ibáñez <manu@gcc.gnu.org>
13097 * diagnostic.c (adjust_line): Add gcc_checking_assert.
13098 (diagnostic_show_locus): Don't print caret diagnostic
13099 if a column is larger than the line_width.
13101 2014-08-17 Roman Gareev <gareevroman@gmail.com>
13103 * common.opt: Make the ISL AST generator to be the main code generator
13106 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
13108 * wide-int.h (generic_wide_int): Declare as class instead of struct.
13110 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
13113 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
13115 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
13116 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
13117 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
13119 * config/pa/pa.md (begin_brtab): Delete insn.
13120 (end_brtab): Likewise.
13122 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13124 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
13126 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
13128 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
13129 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
13130 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
13131 (get_dynamic_type): Remove.
13132 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
13133 (clear_speculation): Bring to ipa-deivrt.h
13134 (get_class_context): Rename to ...
13135 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
13136 (contains_type_p): Update.
13137 (get_dynamic_type): Rename to ...
13138 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
13139 (possible_polymorphic_call_targets): UPdate.
13140 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
13141 * ipa-prop.c (ipa_analyze_call_uses): Update.
13143 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
13145 * doc/invoke.texi (SH options): Document missing processor variant
13146 options. Remove references to Hitachi. Undocument deprecated mspace
13149 2014-08-15 Jason Merrill <jason@redhat.com>
13151 * tree.c (type_hash_canon): Uncomment assert.
13153 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
13155 * input.h (in_system_header_at): Add comment.
13157 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
13160 * diagnostic.c (build_message_string): Make it extern.
13161 * diagnostic.h (build_message_string): Make it extern.
13163 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
13165 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
13166 load/store from/to non-floating class pseudo.
13168 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
13170 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
13172 2014-08-15 Richard Biener <rguenther@suse.de>
13174 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
13175 (get_constraint_for_ssa_var): Remove dead code.
13176 (get_constraint_for_1): Adjust.
13177 (find_what_var_points_to): Likewise.
13178 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
13180 2014-08-15 Ilya Tocar <tocarip@gmail.com>
13183 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
13184 (_mm512_mask_cmpge_epu32_mask): Ditto.
13185 (_mm512_cmpge_epu32_mask): Ditto.
13186 (_mm512_mask_cmpge_epi64_mask): Ditto.
13187 (_mm512_cmpge_epi64_mask): Ditto.
13188 (_mm512_mask_cmpge_epu64_mask): Ditto.
13189 (_mm512_cmpge_epu64_mask): Ditto.
13190 (_mm512_mask_cmple_epi32_mask): Ditto.
13191 (_mm512_cmple_epi32_mask): Ditto.
13192 (_mm512_mask_cmple_epu32_mask): Ditto.
13193 (_mm512_cmple_epu32_mask): Ditto.
13194 (_mm512_mask_cmple_epi64_mask): Ditto.
13195 (_mm512_cmple_epi64_mask): Ditto.
13196 (_mm512_mask_cmple_epu64_mask): Ditto.
13197 (_mm512_cmple_epu64_mask): Ditto.
13198 (_mm512_mask_cmplt_epi32_mask): Ditto.
13199 (_mm512_cmplt_epi32_mask): Ditto.
13200 (_mm512_mask_cmplt_epu32_mask): Ditto.
13201 (_mm512_cmplt_epu32_mask): Ditto.
13202 (_mm512_mask_cmplt_epi64_mask): Ditto.
13203 (_mm512_cmplt_epi64_mask): Ditto.
13204 (_mm512_mask_cmplt_epu64_mask): Ditto.
13205 (_mm512_cmplt_epu64_mask): Ditto.
13206 (_mm512_mask_cmpneq_epi32_mask): Ditto.
13207 (_mm512_mask_cmpneq_epu32_mask): Ditto.
13208 (_mm512_cmpneq_epu32_mask): Ditto.
13209 (_mm512_mask_cmpneq_epi64_mask): Ditto.
13210 (_mm512_cmpneq_epi64_mask): Ditto.
13211 (_mm512_mask_cmpneq_epu64_mask): Ditto.
13212 (_mm512_cmpneq_epu64_mask): Ditto.
13213 (_mm512_castpd_ps): Ditto.
13214 (_mm512_castpd_si512): Ditto.
13215 (_mm512_castps_pd): Ditto.
13216 (_mm512_castps_si512): Ditto.
13217 (_mm512_castsi512_ps): Ditto.
13218 (_mm512_castsi512_pd): Ditto.
13219 (_mm512_castpd512_pd128): Ditto.
13220 (_mm512_castps512_ps128): Ditto.
13221 (_mm512_castsi512_si128): Ditto.
13222 (_mm512_castpd512_pd256): Ditto.
13223 (_mm512_castps512_ps256): Ditto.
13224 (_mm512_castsi512_si256): Ditto.
13225 (_mm512_castpd128_pd512): Ditto.
13226 (_mm512_castps128_ps512): Ditto.
13227 (_mm512_castsi128_si512): Ditto.
13228 (_mm512_castpd256_pd512): Ditto.
13229 (_mm512_castps256_ps512): Ditto.
13230 (_mm512_castsi256_si512): Ditto.
13231 (_mm512_cmpeq_epu32_mask): Ditto.
13232 (_mm512_mask_cmpeq_epu32_mask): Ditto.
13233 (_mm512_mask_cmpeq_epu64_mask): Ditto.
13234 (_mm512_cmpeq_epu64_mask): Ditto.
13235 (_mm512_cmpgt_epu32_mask): Ditto.
13236 (_mm512_mask_cmpgt_epu32_mask): Ditto.
13237 (_mm512_mask_cmpgt_epu64_mask): Ditto.
13238 (_mm512_cmpgt_epu64_mask): Ditto.
13239 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
13240 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
13241 * config/i386/i386.c (enum ix86_builtins): Add
13242 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
13243 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
13244 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
13245 (bdesc_args): Add __builtin_ia32_si512_256si,
13246 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
13247 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
13248 __builtin_ia32_pd512_pd.
13249 (ix86_expand_args_builtin): Handle new FTYPEs.
13250 * config/i386/sse.md (castmode): Add 512-bit modes.
13251 (AVX512MODE2P): New.
13252 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
13253 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
13255 2014-08-15 Richard Biener <rguenther@suse.de>
13257 * fold-const.c (tree_swap_operands_p): Put all constants
13258 last, also strip sign-changing NOPs when considering further
13259 canonicalization. Canonicalize also when optimizing for size.
13261 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13263 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
13264 one_match > zero_match case to just before simple_sequence.
13266 2014-08-15 Richard Biener <rguenther@suse.de>
13268 * data-streamer.h (streamer_string_index, string_for_index):
13270 * data-streamer-out.c (streamer_string_index): Make static.
13271 * data-streamer-in.c (string_for_index): Likewise.
13272 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
13273 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
13275 2014-08-15 Richard Biener <rguenther@suse.de>
13277 PR tree-optimization/62031
13278 * tree-data-ref.c (dr_analyze_indices): Do not set
13279 DR_UNCONSTRAINED_BASE.
13280 (dr_may_alias_p): All indirect accesses have to go the
13281 formerly DR_UNCONSTRAINED_BASE path.
13282 * tree-data-ref.h (struct indices): Remove
13283 unconstrained_base member.
13284 (DR_UNCONSTRAINED_BASE): Remove.
13286 2014-08-15 Jakub Jelinek <jakub@redhat.com>
13288 PR middle-end/62092
13289 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
13290 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
13291 in OMP_CLAUSE_MAP in some outer target region.
13293 2014-08-15 Bin Cheng <bin.cheng@arm.com>
13295 * tree-ssa-loop-ivopts.c (ivopts_data): New field
13296 name_expansion_cache.
13297 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
13298 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
13299 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
13300 (difference_cannot_overflow_p): New parameter. Use affine
13301 expansion for equality check.
13302 (iv_elimination_compare_lt): Pass new argument.
13304 2014-08-14 DJ Delorie <dj@redhat.com>
13306 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
13307 variables to the accumulator.
13309 * config/rl78/predicates.md (rl78_near_mem_operand): New.
13310 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
13311 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
13312 with far-far moves.
13314 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
13315 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
13316 (umulqihi3_virt): Likewise.
13317 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
13318 (umulqihi3_real): Likewise.
13320 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
13322 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
13324 PR tree-optimization/62091
13325 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
13326 function_entry_reached.
13327 (walk_aliased_vdefs): Clear it here.
13328 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
13330 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
13332 * ipa-utils.h (compare_virtual_tables): Declare.
13333 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
13335 2014-08-14 Marek Polacek <polacek@redhat.com>
13338 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
13339 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
13341 2014-08-14 Tom de Vries <tom@codesourcery.com>
13343 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
13345 2014-08-14 Tom de Vries <tom@codesourcery.com>
13347 PR rtl-optimization/62004
13348 PR rtl-optimization/62030
13349 * ifcvt.c (rtx_interchangeable_p): New function.
13350 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
13351 * emit-rtl.h (mem_attrs_eq_p): Declare.
13353 2014-08-14 Roman Gareev <gareevroman@gmail.com>
13355 * graphite-scop-detection.c:
13356 Add inclusion of cp-tree.h.
13357 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
13358 in case they are pointers to object types
13360 2014-08-14 Richard Biener <rguenther@suse.de>
13362 * BASE-VER: Change to 5.0.0
13364 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13365 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13366 Anna Tikhonova <anna.tikhonova@intel.com>
13367 Ilya Tocar <ilya.tocar@intel.com>
13368 Andrey Turetskiy <andrey.turetskiy@intel.com>
13369 Ilya Verbin <ilya.verbin@intel.com>
13370 Kirill Yukhin <kirill.yukhin@intel.com>
13371 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13373 * config/i386/sse.md (define_mode_attr avx512): New.
13374 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
13376 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
13377 (define_mode_attr ssse3_avx2): Ditto.
13378 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
13379 (define_mode_attr avx2_avx512bw): New.
13380 (define_mode_attr ssedoublemodelower): New.
13381 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
13382 V32HI, V64QI modes.
13383 (define_mode_attr ssebytemode): Allow V8DI modes.
13384 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
13385 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
13386 (define_mode_attr ssePSmode2): New.
13387 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
13388 V16HI, V32HI modes.
13389 (define_mode_attr dbpsadbwmode): New.
13390 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
13391 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
13392 (vi8_sse4_1_avx2_avx512): New.
13393 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
13395 (define_mode_attr blendbits): Move before its immediate use.
13397 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13399 Anna Tikhonova <anna.tikhonova@intel.com>
13400 Ilya Tocar <ilya.tocar@intel.com>
13401 Andrey Turetskiy <andrey.turetskiy@intel.com>
13402 Ilya Verbin <ilya.verbin@intel.com>
13403 Kirill Yukhin <kirill.yukhin@intel.com>
13404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13406 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
13407 * config/i386/subst.md
13408 (define_mode_iterator SUBST_V): Update.
13409 (define_mode_iterator SUBST_A): Ditto.
13410 (define_subst_attr "mask_operand7"): New.
13411 (define_subst_attr "mask_operand10"): New.
13412 (define_subst_attr "mask_operand_arg34") : New.
13413 (define_subst_attr "mask_expand_op3"): New.
13414 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
13415 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
13416 (define_subst_attr "mask_avx512vl_condition"): New.
13417 (define_subst_attr "round_mask_operand4"): Ditto.
13418 (define_subst_attr "round_mask_scalar_op3"): Delete.
13419 (define_subst_attr "round_mask_op4"): New.
13420 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
13422 (define_subst_attr "round_modev8sf_condition"): New.
13423 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
13425 (define_subst_attr "round_saeonly_mask_operand4"): New.
13426 (define_subst_attr "round_saeonly_mask_op4"): New.
13427 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
13428 V8DImode, V16SImode.
13429 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
13430 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
13431 (define_subst_attr "mask_expand4_args"): New.
13432 (define_subst "mask_expand4"): New.
13434 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13436 Anna Tikhonova <anna.tikhonova@intel.com>
13437 Ilya Tocar <ilya.tocar@intel.com>
13438 Andrey Turetskiy <andrey.turetskiy@intel.com>
13439 Ilya Verbin <ilya.verbin@intel.com>
13440 Kirill Yukhin <kirill.yukhin@intel.com>
13441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13443 * config/i386/i386.md
13444 (define_attr "isa"): Add avx512bw,noavx512bw.
13445 (define_attr "enabled"): Ditto.
13446 (define_split): Add 32/64-bit mask logic.
13447 (define_insn "*k<logic>qi"): New.
13448 (define_insn "*k<logic>hi"): New.
13449 (define_insn "*anddi_1"): Add mask version.
13450 (define_insn "*andsi_1"): Ditto.
13451 (define_insn "*<code><mode>_1"): Ditto.
13452 (define_insn "*<code>hi_1"): Ditto.
13453 (define_insn "kxnor<mode>"): New.
13454 (define_insn "kunpcksi"): New.
13455 (define_insn "kunpckdi"): New.
13456 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
13457 (define_insn "*one_cmplhi2_1"): Ditto.
13459 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13460 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13461 Anna Tikhonova <anna.tikhonova@intel.com>
13462 Ilya Tocar <ilya.tocar@intel.com>
13463 Andrey Turetskiy <andrey.turetskiy@intel.com>
13464 Ilya Verbin <ilya.verbin@intel.com>
13465 Kirill Yukhin <kirill.yukhin@intel.com>
13466 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13468 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
13471 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13472 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13473 Anna Tikhonova <anna.tikhonova@intel.com>
13474 Ilya Tocar <ilya.tocar@intel.com>
13475 Andrey Turetskiy <andrey.turetskiy@intel.com>
13476 Ilya Verbin <ilya.verbin@intel.com>
13477 Kirill Yukhin <kirill.yukhin@intel.com>
13478 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13480 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
13482 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
13483 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
13484 xmm/ymm16+ when availble.
13485 * config/i386/i386.h
13486 (HARD_REGNO_NREGS): Add mask regs.
13487 (VALID_AVX512F_REG_MODE): Ditto.
13488 (VALID_AVX512F_REG_MODE) : Define.
13489 (VALID_MASK_AVX512BW_MODE): Ditto.
13490 (reg_class) (MASK_REG_P(X)): Define.
13491 * config/i386/i386.md: Do not split long moves with mask register,
13492 use kmovb if avx512bw is availible.
13493 (movdi_internal): Handle mask registers.
13495 2014-08-14 Richard Biener <rguenther@suse.de>
13497 PR tree-optimization/62081
13498 * tree-ssa-loop.c (pass_fix_loops): New pass.
13499 (pass_tree_loop::gate): Do not fixup loops here.
13500 * tree-pass.h (make_pass_fix_loops): Declare.
13501 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
13503 2014-08-14 Richard Biener <rguenther@suse.de>
13505 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
13506 (type_hash_canon): ... this and avoid 2nd lookup for the add.
13508 2014-08-14 Richard Biener <rguenther@suse.de>
13510 PR tree-optimization/62090
13511 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
13512 (fold_builtin_2): Do not fold sprintf.
13513 (fold_builtin_3): Likewise.
13514 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
13515 moved from builtins.c.
13516 (gimple_fold_builtin): Fold sprintf.
13518 2014-08-14 Richard Biener <rguenther@suse.de>
13520 PR rtl-optimization/62079
13521 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
13524 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
13526 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
13527 current_function_decl.
13529 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
13531 * cgraph.c (cgraph_node::function_symbol): Fix wrong
13532 cgraph_function_node to cgraph_node::function_symbol
13535 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
13537 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
13538 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
13540 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
13542 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
13545 2014-08-13 Roman Gareev <gareevroman@gmail.com>
13547 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
13550 2014-08-12 Jakub Jelinek <jakub@redhat.com>
13553 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
13554 any registers that are used in mem_insn.
13556 2014-08-12 Steve Ellcey <sellcey@mips.com>
13558 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
13560 2014-08-12 Steve Ellcey <sellcey@mips.com>
13562 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
13563 (MULTILIB_DIRNAMES): Ditto.
13564 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
13565 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
13566 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
13567 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
13568 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
13569 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
13571 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13574 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
13575 of __ARM_SIZEOF_WCHAR_T.
13577 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13580 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
13581 Remove unnecessary attributes.
13583 2014-08-12 Yury Gribov <y.gribov@samsung.com>
13585 * internal-fn.c (init_internal_fns): Fix off-by-one.
13587 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
13588 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13589 Anna Tikhonova <anna.tikhonova@intel.com>
13590 Ilya Tocar <ilya.tocar@intel.com>
13591 Andrey Turetskiy <andrey.turetskiy@intel.com>
13592 Ilya Verbin <ilya.verbin@intel.com>
13593 Kirill Yukhin <kirill.yukhin@intel.com>
13594 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13596 * config/i386/i386.c (standard_sse_constant_opcode): Use
13597 vpxord/vpternlog if avx512 is availible.
13599 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
13601 PR middle-end/62103
13602 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
13603 bitfields, that is when size doesn't match the size of type or the
13604 size of the constructor.
13606 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13608 * config/rs6000/constraints.md (wh constraint): New constraint,
13609 for FP registers if direct move is available.
13610 (wi constraint): New constraint, for VSX/FP registers that can
13611 handle 64-bit integers.
13612 (wj constraint): New constraint for VSX/FP registers that can
13613 handle 64-bit integers for direct moves.
13614 (wk constraint): New constraint for VSX/FP registers that can
13615 handle 64-bit doubles for direct moves.
13616 (wy constraint): Make documentation match implementation.
13618 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
13619 scalar_in_vmx_p field to simplify tests of whether SFmode or
13620 DFmode can go in the Altivec registers.
13621 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
13622 (rs6000_setup_reg_addr_masks): Likewise.
13623 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
13624 field, and wh/wi/wj/wk constraints.
13625 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
13626 the wh/wi/wj/wk constraints.
13627 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
13628 upper registers, prefer VSX registers unless the operation is a
13629 memory operation with REG+OFFSET addressing.
13631 * config/rs6000/vsx.md (VSr mode attribute): Add support for
13632 DImode. Change SFmode to use ww constraint instead of d to allow
13633 SF registers in the upper registers.
13636 (VSr5): Fix thinko in comment.
13637 (VSa): New mode attribute that is an alternative to wa, that
13638 returns the VSX register class that a mode can go in, but may not
13639 be the preferred register class.
13640 (VS_64dm): New mode attribute for appropriate register classes for
13641 referencing 64-bit elements of vectors for direct moves and normal
13643 (VS_64reg): Likewise.
13644 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
13645 register allocator to only registers the data type can handle.
13646 (vsx_le_perm_load_<mode>): Likewise.
13647 (vsx_le_perm_store_<mode>): Likewise.
13648 (vsx_xxpermdi2_le_<mode>): Likewise.
13649 (vsx_xxpermdi4_le_<mode>): Likewise.
13650 (vsx_lxvd2x2_le_<mode>): Likewise.
13651 (vsx_lxvd2x4_le_<mode>): Likewise.
13652 (vsx_stxvd2x2_le_<mode>): Likewise.
13653 (vsx_add<mode>3): Likewise.
13654 (vsx_sub<mode>3): Likewise.
13655 (vsx_mul<mode>3): Likewise.
13656 (vsx_div<mode>3): Likewise.
13657 (vsx_tdiv<mode>3_internal): Likewise.
13658 (vsx_fre<mode>2): Likewise.
13659 (vsx_neg<mode>2): Likewise.
13660 (vsx_abs<mode>2): Likewise.
13661 (vsx_nabs<mode>2): Likewise.
13662 (vsx_smax<mode>3): Likewise.
13663 (vsx_smin<mode>3): Likewise.
13664 (vsx_sqrt<mode>2): Likewise.
13665 (vsx_rsqrte<mode>2): Likewise.
13666 (vsx_tsqrt<mode>2_internal): Likewise.
13667 (vsx_fms<mode>4): Likewise.
13668 (vsx_nfma<mode>4): Likewise.
13669 (vsx_eq<mode>): Likewise.
13670 (vsx_gt<mode>): Likewise.
13671 (vsx_ge<mode>): Likewise.
13672 (vsx_eq<mode>_p): Likewise.
13673 (vsx_gt<mode>_p): Likewise.
13674 (vsx_ge<mode>_p): Likewise.
13675 (vsx_xxsel<mode>): Likewise.
13676 (vsx_xxsel<mode>_uns): Likewise.
13677 (vsx_copysign<mode>3): Likewise.
13678 (vsx_float<VSi><mode>2): Likewise.
13679 (vsx_floatuns<VSi><mode>2): Likewise.
13680 (vsx_fix_trunc<mode><VSi>2): Likewise.
13681 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
13682 (vsx_x<VSv>r<VSs>i): Likewise.
13683 (vsx_x<VSv>r<VSs>ic): Likewise.
13684 (vsx_btrunc<mode>2): Likewise.
13685 (vsx_b2trunc<mode>2): Likewise.
13686 (vsx_floor<mode>2): Likewise.
13687 (vsx_ceil<mode>2): Likewise.
13688 (vsx_<VS_spdp_insn>): Likewise.
13689 (vsx_xscvspdp): Likewise.
13690 (vsx_xvcvspuxds): Likewise.
13691 (vsx_float_fix_<mode>2): Likewise.
13692 (vsx_set_<mode>): Likewise.
13693 (vsx_extract_<mode>_internal1): Likewise.
13694 (vsx_extract_<mode>_internal2): Likewise.
13695 (vsx_extract_<mode>_load): Likewise.
13696 (vsx_extract_<mode>_store): Likewise.
13697 (vsx_splat_<mode>): Likewise.
13698 (vsx_xxspltw_<mode>): Likewise.
13699 (vsx_xxspltw_<mode>_direct): Likewise.
13700 (vsx_xxmrghw_<mode>): Likewise.
13701 (vsx_xxmrglw_<mode>): Likewise.
13702 (vsx_xxsldwi_<mode>): Likewise.
13703 (vsx_xscvdpspn): Tighten constraints to only use register classes
13705 (vsx_xscvspdpn): Likewise.
13706 (vsx_xscvdpspn_scalar): Likewise.
13708 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
13709 wj, and wk constraints.
13710 (GPR_REG_CLASS_P): New helper macro for register classes targeting
13711 general purpose registers.
13713 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
13715 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
13716 DImode instead of wm. Use wk constraint for direct move of DFmode
13718 (extendsidi2_lfiwax): Likewise.
13719 (lfiwax): Likewise.
13720 (lfiwzx): Likewise.
13721 (movdi_internal64): Likewise.
13723 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
13724 wk constraints. Make the wy constraint documentation match them
13727 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
13729 Replacement of isl_int by isl_val
13730 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
13731 (compute_bounds_for_param): use isl_val instead of isl_int
13732 (compute_bounds_for_loop): likewise
13733 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
13734 (build_linearized_memory_access): use isl_val instead of isl_int
13735 (pdr_stride_in_loop): likewise
13736 * graphite-optimize-isl.c:
13737 (getPrevectorMap): use isl_val instead of isl_int
13739 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
13740 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
13741 (extern the_isl_ctx): declare
13742 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
13743 (extract_affine_gmp): likewise
13745 (build_loop_iteration_domains): likewise
13746 (add_param_constraints): likewise
13748 2014-08-11 Richard Biener <rguenther@suse.de>
13750 PR tree-optimization/62075
13751 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
13752 handle uses in patterns.
13754 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13755 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13756 Anna Tikhonova <anna.tikhonova@intel.com>
13757 Ilya Tocar <ilya.tocar@intel.com>
13758 Andrey Turetskiy <andrey.turetskiy@intel.com>
13759 Ilya Verbin <ilya.verbin@intel.com>
13760 Kirill Yukhin <kirill.yukhin@intel.com>
13761 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13763 * common/config/i386/i386-common.c
13764 (OPTION_MASK_ISA_AVX512VL_SET): Define.
13765 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
13766 (ix86_handle_option): Handle OPT_mavx512vl.
13767 * config/i386/cpuid.h (bit_AVX512VL): Define.
13768 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
13769 set -mavx512vl accordingly.
13770 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13771 OPTION_MASK_ISA_AVX512VL.
13772 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
13773 (ix86_option_override_internal): Define PTA_AVX512VL, handle
13774 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
13775 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
13776 * config/i386/i386.h (TARGET_AVX512VL): Define.
13777 (TARGET_AVX512VL_P(x)): Ditto.
13778 * config/i386/i386.opt: Add mavx512vl.
13780 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
13782 PR tree-optimization/62073
13783 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
13786 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13787 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13788 Anna Tikhonova <anna.tikhonova@intel.com>
13789 Ilya Tocar <ilya.tocar@intel.com>
13790 Andrey Turetskiy <andrey.turetskiy@intel.com>
13791 Ilya Verbin <ilya.verbin@intel.com>
13792 Kirill Yukhin <kirill.yukhin@intel.com>
13793 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13795 * common/config/i386/i386-common.c
13796 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
13797 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
13798 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
13799 (ix86_handle_option): Handle OPT_mavx512bw.
13800 * config/i386/cpuid.h (bit_AVX512BW): Define.
13801 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
13802 set -mavx512bw accordingly.
13803 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13804 OPTION_MASK_ISA_AVX512BW.
13805 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
13806 (ix86_option_override_internal): Define PTA_AVX512BW, handle
13807 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
13808 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
13809 * config/i386/i386.h (TARGET_AVX512BW): Define.
13810 (TARGET_AVX512BW_P(x)): Ditto.
13811 * config/i386/i386.opt: Add mavx512bw.
13813 2014-08-11 Richard Biener <rguenther@suse.de>
13815 PR tree-optimization/62070
13816 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
13817 Remove SSA checking.
13819 2014-08-11 Yury Gribov <y.gribov@samsung.com>
13821 * asan.c (asan_check_flags): New enum.
13822 (build_check_stmt_with_calls): Removed function.
13823 (build_check_stmt): Split inlining logic to
13824 asan_expand_check_ifn.
13825 (instrument_derefs): Rename parameter.
13826 (instrument_mem_region_access): Rename parameter.
13827 (instrument_strlen_call): Likewise.
13828 (asan_expand_check_ifn): New function.
13829 (asan_instrument): Remove old code.
13830 (pass_sanopt::execute): Change handling of
13831 asan-instrumentation-with-call-threshold.
13832 (asan_clear_shadow): Fix formatting.
13833 (asan_function_start): Likewise.
13834 (asan_emit_stack_protection): Likewise.
13835 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
13836 Update description.
13837 * internal-fn.c (expand_ASAN_CHECK): New function.
13838 * internal-fn.def (ASAN_CHECK): New internal function.
13839 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
13840 Update description.
13841 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
13842 * tree.c: Small comment fix.
13844 2014-08-11 Yury Gribov <y.gribov@samsung.com>
13846 * gimple.c (gimple_call_fnspec): Support internal functions.
13847 (gimple_call_return_flags): Use const.
13848 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
13849 * internal-fn.def: Add fnspec information.
13850 * internal-fn.h (internal_fn_fnspec): New function.
13851 (init_internal_fns): Declare new function.
13852 * internal-fn.c (internal_fn_fnspec_array): New global variable.
13853 (init_internal_fns): New function.
13854 * tree-core.h: Update macro call.
13855 * tree.c (build_common_builtin_nodes): Initialize internal fns.
13857 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
13859 * lto-streamer.h (struct output_block::symbol): Change from
13860 struct symtab_node to plain symtab_node.
13861 (referenced_from_this_partition_p): Change first parameter
13862 from struct symtab_node to plain symtab_node.
13864 2014-08-10 Marek Polacek <polacek@redhat.com>
13867 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
13869 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
13871 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
13872 DECL correctly; do not give up on types in static storage.
13874 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
13876 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
13878 2014-08-09 Roman Gareev <gareevroman@gmail.com>
13880 * graphite-isl-ast-to-gimple.c:
13881 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
13883 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
13885 2014-08-08 Guozhi Wei <carrot@google.com>
13887 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
13889 2014-08-08 Cary Coutant <ccoutant@google.com>
13891 * dwarf2out.c (get_skeleton_type_unit): Remove.
13892 (output_skeleton_debug_sections): Remove skeleton type units.
13893 (output_comdat_type_unit): Likewise.
13894 (dwarf2out_finish): Likewise.
13896 2014-08-07 Yi Yang <ahyangyi@google.com>
13898 * predict.c (expr_expected_value_1): Remove the redundant assignment.
13900 2014-08-08 Richard Biener <rguenther@suse.de>
13902 * lto-streamer.h (struct lto_input_block): Make it a class
13903 with a constructor.
13904 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
13905 (struct lto_function_header, struct lto_simple_header,
13906 struct lto_simple_header_with_strings,
13907 struct lto_decl_header, struct lto_function_header): Make
13908 a simple inheritance hieararchy. Remove unused fields.
13909 (struct lto_asm_header): Remove.
13910 * lto-streamer-out.c (produce_asm): Adjust.
13911 (lto_output_toplevel_asms): Likewise.
13912 (produce_asm_for_decls): Likewise.
13913 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13914 * data-streamer-in.c (string_for_index): Likewise.
13915 * ipa-inline-analysis.c (inline_read_section): Likewise.
13916 * ipa-prop.c (ipa_prop_read_section): Likewise.
13917 (read_replacements_section): Likewise.
13918 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13919 * lto-section-in.c (lto_create_simple_input_block): Likewise.
13920 (lto_destroy_simple_input_block): Likewise.
13921 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13922 (lto_input_toplevel_asms): Likewise.
13924 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
13925 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13926 Anna Tikhonova <anna.tikhonova@intel.com>
13927 Ilya Tocar <ilya.tocar@intel.com>
13928 Andrey Turetskiy <andrey.turetskiy@intel.com>
13929 Ilya Verbin <ilya.verbin@intel.com>
13930 Kirill Yukhin <kirill.yukhin@intel.com>
13931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13933 * common/config/i386/i386-common.c
13934 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13935 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13936 (ix86_handle_option): Handle OPT_mavx512dq.
13937 * config/i386/cpuid.h (bit_AVX512DQ): Define.
13938 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13939 set -mavx512dq accordingly.
13940 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13941 OPTION_MASK_ISA_AVX512DQ.
13942 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13943 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13944 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13945 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13946 * config/i386/i386.h (TARGET_AVX512DQ): Define.
13947 (TARGET_AVX512DQ_P(x)): Ditto.
13948 * config/i386/i386.opt: Add mavx512dq.
13950 2014-08-08 Richard Biener <rguenther@suse.de>
13952 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13953 target_percent, target_percent_s): Export.
13954 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13955 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13956 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13957 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13958 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13959 Move to gimple-fold.c.
13960 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13962 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13963 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13964 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13965 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13966 (rewrite_call_expr_array): Remove.
13967 (fold_builtin_sprintf_chk): Likewise.
13968 (fold_builtin_snprintf_chk): Likewise.
13969 (fold_builtin_varargs): Remove handling of sprintf_chk,
13970 vsprintf_chk, snprintf_chk and vsnprintf_chk.
13971 (gimple_fold_builtin_sprintf_chk): Remove.
13972 (gimple_fold_builtin_snprintf_chk): Likewise.
13973 (gimple_fold_builtin_varargs): Likewise.
13974 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13975 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13976 * gimple.c (gimple_seq_add_seq_without_update): New function.
13977 * gimple.h (gimple_seq_add_seq_without_update): Declare.
13978 * gimple-fold.c: Include output.h.
13979 (gsi_replace_with_seq_vops): New function, split out from ...
13980 (gimplify_and_update_call_from_tree): ... here.
13981 (replace_call_with_value): New function.
13982 (replace_call_with_call_and_fold): Likewise.
13983 (var_decl_component_p): Moved from builtins.c.
13984 (gimple_fold_builtin_memory_op): Moved from builtins.c
13985 fold_builtin_memory_op and rewritten to GIMPLE.
13986 (gimple_fold_builtin_memset): Likewise.
13987 (gimple_fold_builtin_strcpy): Likewise.
13988 (gimple_fold_builtin_strncpy): Likewise.
13989 (gimple_fold_builtin_strcat): Likewise.
13990 (gimple_fold_builtin_fputs): Likewise.
13991 (gimple_fold_builtin_memory_chk): Likewise.
13992 (gimple_fold_builtin_stxcpy_chk): Likewise.
13993 (gimple_fold_builtin_stxncpy_chk): Likewise.
13994 (gimple_fold_builtin_snprintf_chk): Likewise.
13995 (gimple_fold_builtin_sprintf_chk): Likewise.
13996 (gimple_fold_builtin_strlen): New function.
13997 (gimple_fold_builtin_with_strlen): New function split out from
13998 gimple_fold_builtin.
13999 (gimple_fold_builtin): Change signature and handle
14000 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
14001 here. Call gimple_fold_builtin_with_strlen.
14002 (gimple_fold_call): Adjust.
14004 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
14006 * calls.c (precompute_arguments): Check
14007 promoted_for_signed_and_unsigned_p and set the promoted mode.
14008 (promoted_for_signed_and_unsigned_p): New function.
14009 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
14010 and set the promoted mode.
14011 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
14012 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
14013 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
14016 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
14018 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
14019 instead of SUBREG_PROMOTED_UNSIGNED_SET.
14020 (expand_call): Likewise.
14021 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
14022 to get promoted mode.
14023 * combine.c (record_promoted_value): Skip > 0 comparison with
14024 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
14025 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
14026 of SUBREG_PROMOTED_UNSIGNED_P.
14027 (convert_modes): Likewise.
14028 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
14029 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
14030 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
14031 SUBREG_PROMOTED_UNSIGNED_SET.
14032 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
14033 instead of SUBREG_PROMOTED_UNSIGNED_SET.
14034 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
14035 SUBREG_PROMOTED_SET.
14036 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
14037 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
14038 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
14039 of SUBREG_PROMOTED_UNSIGNED_P.
14040 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
14041 (SUBREG_PROMOTED_SET): New define.
14042 (SUBREG_PROMOTED_GET): Likewise.
14043 (SUBREG_PROMOTED_SIGN): Likewise.
14044 (SUBREG_PROMOTED_SIGNED_P): Likewise.
14045 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
14046 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
14047 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
14048 instead of SUBREG_PROMOTED_UNSIGNED_GET.
14049 (nonzero_bits1): Skip > 0 comparison with the results as
14050 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
14051 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
14052 of !SUBREG_PROMOTED_UNSIGNED_P.
14053 * simplify-rtx.c (simplify_unary_operation_1): Use new
14054 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
14055 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
14056 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
14057 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
14059 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
14061 * ipa-devirt.c: Include gimple-pretty-print.h
14062 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
14064 (decl_maybe_in_construction_p): Fix conditional on cdtor check
14065 (get_polymorphic_call_info): Fix return value
14066 (type_change_info): New sturcture based on ipa-prop
14068 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
14069 based on ipa-prop variant.
14070 (extr_type_from_vtbl_ptr_store): New function
14071 based on ipa-prop variant.
14072 (record_known_type): New function.
14073 (check_stmt_for_type_change): New function.
14074 (get_dynamic_type): New function.
14075 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
14076 * tree-ssa-pre.c: ipa-utils.h
14077 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
14078 machinery; sanity check with ipa-prop devirtualization.
14079 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
14082 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
14084 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
14085 * alias.c, cfgexpand.c, cgraphbuild.c,
14086 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
14087 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
14088 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
14089 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
14090 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
14091 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14092 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
14093 dse.c, except.c, gengtype.c, gimple-expr.c,
14094 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
14095 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
14096 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
14097 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
14098 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
14099 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
14101 * pointer-set.c: Remove file.
14102 * pointer-set.h: Remove file.
14104 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14106 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
14107 * config/arm/types.md (f_sels, f_seld): Delete.
14109 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14111 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
14112 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
14113 (aarch64_movdi_<mode>high): Likewise.
14114 (aarch64_mov<mode>high_di): Likewise.
14115 (aarch64_movdi_<mode>low): Likewise.
14116 (aarch64_mov<mode>low_di): Likewise.
14117 (aarch64_movtilow_tilow): Likewise.
14118 Add comment explaining usage of fp,simd attributes and of
14119 TARGET_FLOAT and TARGET_SIMD.
14121 2014-08-07 Ian Bolton <ian.bolton@arm.com>
14122 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14124 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
14125 Use MOVN when one of the half-words is 0xffff.
14127 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
14129 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
14131 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14133 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
14134 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
14135 (rfs_str): String corresponding to RFS_* constants.
14136 (rank_for_schedule_stats_t): New typedef.
14137 (rank_for_schedule_stats): New static variable.
14138 (rfs_result): New static function.
14139 (rank_for_schedule): Track statistics for deciding heuristics.
14140 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
14142 (ready_sort): Use them for debug printouts.
14143 (schedule_block): Init statistics state. Print statistics on
14144 rank_for_schedule decisions.
14146 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14148 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
14150 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
14152 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
14155 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
14157 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
14158 function to not conflict.
14159 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
14160 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
14161 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
14162 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
14163 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
14166 2014-08-07 Marek Polacek <polacek@redhat.com>
14168 * fold-const.c (fold_binary_loc): Add folding of
14169 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
14171 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
14173 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
14174 instead of type size.
14175 (ASM_FINISH_DECLARE_OBJECT): Likewise.
14177 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
14179 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
14180 (*thumb1_movqi_insn): Likewise.
14181 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
14183 2014-08-07 Tom de Vries <tom@codesourcery.com>
14185 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14186 (glibc_2_11_or_earlier): Remove effective-target keywords.
14188 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14190 * config/arm/arm.c (bdesc_2arg): Fix typo.
14191 (arm_atomic_assign_expand_fenv): Remove The default implementation.
14193 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
14195 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
14197 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
14200 * haifa-sched.c (advance_one_cycle): Fix dump.
14201 (schedule_block): Don't advance cycle if we are already at the
14202 beginning of the cycle.
14204 2014-08-06 Martin Jambor <mjambor@suse.cz>
14207 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
14209 2014-08-06 Richard Biener <rguenther@suse.de>
14212 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
14214 (lto_input_tree): Pop SCCs here.
14216 2014-08-06 Richard Biener <rguenther@suse.de>
14218 PR tree-optimization/61320
14219 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
14220 handle misaligned loads.
14222 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
14224 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
14225 (aarch64_expand_vec_perm_const): Check for dup before zip.
14227 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14229 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
14230 CONST_INT_P instead of GET_CODE and compare.
14231 (aarch64_select_cc_mode): Likewise.
14232 (aarch64_print_operand): Likewise.
14233 (aarch64_rtx_costs): Likewise.
14234 (aarch64_simd_valid_immediate): Likewise.
14235 (aarch64_simd_check_vect_par_cnst_half): Likewise.
14236 (aarch64_simd_emit_pair_result_insn): Likewise.
14238 2014-08-05 David Malcolm <dmalcolm@redhat.com>
14240 * gdbhooks.py (find_gcc_source_dir): New helper function.
14241 (class PassNames): New class, locating and parsing passes.def.
14242 (class BreakOnPass): New command "break-on-pass".
14244 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
14246 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
14249 2014-08-05 Richard Biener <rguenther@suse.de>
14251 PR rtl-optimization/61672
14252 * emit-rtl.h (mem_attrs_eq_p): Declare.
14253 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
14254 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
14255 * cfgcleanup.c (merge_memattrs): Likewise.
14256 Include emit-rtl.h.
14258 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14260 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
14261 rather than singleton vectors.
14262 (vqdmlsls_lane_s32): Likewise.
14264 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14266 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
14267 Use VSDQ_HSI mode iterator.
14268 (aarch64_sqrdmulh_laneq<mode>): Likewise.
14269 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
14270 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
14271 Use BUILTIN_VDQHS macro.
14272 (sqrdmulh_laneq): Likewise.
14273 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
14274 (vqdmlals_laneq_s32): Likewise.
14275 (vqdmlslh_laneq_s16): Likewise.
14276 (vqdmlsls_laneq_s32): Likewise.
14277 (vqdmulhh_laneq_s16): Likewise.
14278 (vqdmulhs_laneq_s32): Likewise.
14279 (vqrdmulhh_laneq_s16): Likewise.
14280 (vqrdmulhs_laneq_s32): Likewise.
14282 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14284 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
14285 (vmuld_laneq_f64): Likewise.
14286 (vmuls_laneq_f32): Likewise.
14287 (vmul_n_f64): Likewise.
14288 (vmuld_lane_f64): Reimplement in C.
14289 (vmuls_lane_f32): Likewise.
14291 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14293 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
14295 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
14297 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14299 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
14300 (rbitsi2): Likewise.
14301 (*arm_rev): Set predicable and predicable_short_it attributes.
14303 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14305 * convert.c (convert_to_integer): Guard transformation to lrint by
14308 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
14310 * config/aarch64/aarch64-builtins.c
14311 (aarch64_simd_builtin_type_mode): Delete.
14312 (v8qi_UP): Remap to V8QImode.
14313 (v4hi_UP): Remap to V4HImode.
14314 (v2si_UP): Remap to V2SImode.
14315 (v2sf_UP): Remap to V2SFmode.
14316 (v1df_UP): Remap to V1DFmode.
14317 (di_UP): Remap to DImode.
14318 (df_UP): Remap to DFmode.
14319 (v16qi_UP):V16QImode.
14320 (v8hi_UP): Remap to V8HImode.
14321 (v4si_UP): Remap to V4SImode.
14322 (v4sf_UP): Remap to V4SFmode.
14323 (v2di_UP): Remap to V2DImode.
14324 (v2df_UP): Remap to V2DFmode.
14325 (ti_UP): Remap to TImode.
14326 (ei_UP): Remap to EImode.
14327 (oi_UP): Remap to OImode.
14328 (ci_UP): Map to CImode.
14329 (xi_UP): Remap to XImode.
14330 (si_UP): Remap to SImode.
14331 (sf_UP): Remap to SFmode.
14332 (hi_UP): Remap to HImode.
14333 (qi_UP): Remap to QImode.
14334 (aarch64_simd_builtin_datum): Make mode a machine_mode.
14335 (VAR1): Build builtin name.
14336 (aarch64_init_simd_builtins): Remove dead code.
14338 2014-08-05 Roman Gareev <gareevroman@gmail.com>
14340 * graphite-isl-ast-to-gimple.c:
14341 (set_options): New function.
14342 (scop_to_isl_ast): Add calling of set_options.
14344 2014-08-05 Jakub Jelinek <jakub@redhat.com>
14346 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
14347 (analyze_iv_to_split_insn): Don't initialize them.
14348 (get_ivts_expr): Removed.
14349 (allocate_basic_variable, insert_base_initialization): Use
14350 SET_SRC instead of *get_ivts_expr.
14351 (split_iv): Use &SET_SRC instead of get_ivts_expr.
14353 2014-08-05 Roman Gareev <gareevroman@gmail.com>
14355 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
14356 (translate_isl_ast_for_loop): Add checking of the
14357 flag_loop_parallelize_all.
14358 (ast_build_before_for): New function.
14359 (scop_to_isl_ast): Add checking of the
14360 flag_loop_parallelize_all.
14361 * graphite-dependences.c: Move the defenition of the
14362 scop_get_dependences from graphite-optimize-isl.c to this file.
14363 (apply_schedule_on_deps): Add checking of the ux's emptiness.
14364 (carries_deps): Add checking of the x's value.
14365 * graphite-optimize-isl.c: Move the defenition of the
14366 scop_get_dependences to graphite-dependences.c.
14367 * graphite-poly.h: Add declarations of scop_get_dependences
14370 2014-08-04 Rohit <rohitarulraj@freescale.com>
14373 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
14375 (alt_reg_names): Likewise.
14376 (rs6000_dwarf_register_span): For SPE high registers, replace
14377 dwarf register numbers with GCC hard register numbers.
14378 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
14379 (rs6000_dbx_register_number): For SPE high registers, return dwarf
14380 register number for the corresponding GCC hard register number.
14381 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
14382 newly added GCC hard register numbers for SPE high registers.
14383 (DWARF_FRAME_REGISTERS): Likewise.
14384 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
14385 (DWARF_FRAME_REGNUM): Likewise.
14386 (FIXED_REGISTERS): Likewise.
14387 (CALL_USED_REGISTERS): Likewise.
14388 (CALL_REALLY_USED_REGISTERS): Likewise.
14389 (REG_ALLOC_ORDER): Likewise.
14390 (enum reg_class): Likewise.
14391 (REG_CLASS_NAMES): Likewise.
14392 (REG_CLASS_CONTENTS): Likewise.
14393 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
14395 2014-08-04 Richard Biener <rguenther@suse.de>
14397 * gimple-fold.h (gimple_fold_builtin): Remove.
14398 * gimple-fold.c (gimple_fold_builtin): Make static.
14399 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
14400 fold_stmt, not gimple_fold_builtin.
14402 2014-08-04 Martin Liska <mliska@suse.cz>
14404 * cgraph.h (csi_end_p): Removed.
14405 (csi_next): Likewise.
14406 (csi_node): Likewise.
14407 (csi_start): Likewise.
14408 (cgraph_node_in_set_p): Likewise.
14409 (cgraph_node_set_size): Likewise.
14410 (vsi_end_p): Likewise.
14411 (vsi_next): Likewise.
14412 (vsi_node): Likewise.
14413 (vsi_start): Likewise.
14414 (varpool_node_set_size): Likewise.
14415 (cgraph_node_set_nonempty_p): Likewise.
14416 (varpool_node_set_nonempty_p): Likewise.
14417 * cgraphunit.c (cgraph_process_new_functions): vec replaces
14419 * ipa-inline-transform.c: Likewise.
14420 * ipa-utils.c (cgraph_node_set_new): Removed.
14421 (cgraph_node_set_add): Likewise.
14422 (cgraph_node_set_remove): Likewise.
14423 (cgraph_node_set_find): Likewise.
14424 (dump_cgraph_node_set): Likewise.
14425 (debug_cgraph_node_set): Likewise.
14426 (free_cgraph_node_set): Likewise.
14427 (varpool_node_set_new): Likewise.
14428 (varpool_node_set_add): Likewise.
14429 (varpool_node_set_remove): Likewise.
14430 (varpool_node_set_find): Likewise.
14431 (dump_varpool_node_set): Likewise.
14432 (free_varpool_node_set): Likewise.
14433 (debug_varpool_node_set): Likewise.
14434 * tree-emutls.c (struct tls_var_data):
14435 (emutls_index): Removed.
14436 (emutls_decl): Likewise.
14437 (gen_emutls_addr): Function implementation uses newly added
14438 hash_map<varpool_node *, tls_var_data>.
14439 (clear_access_vars): Likewise.
14440 (create_emultls_var): Likewise.
14441 (ipa_lower_emutls): Likewise.
14442 (reset_access): New function.
14444 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14446 * config/i386/i386.c (ix86_option_override_internal): Add
14447 PTA_RDRND and PTA_MOVBE for bdver4.
14449 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14450 James Greenhalgh <james.greenhalgh@arm.com>
14452 * doc/md.texi (clrsb): Document.
14453 (clz): Change reference to x into operand 1.
14455 (popcount): Likewise.
14457 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14460 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
14461 move to subtarget in serial version if result is ignored.
14463 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14464 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14466 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
14467 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
14468 (sched_analyze_insn): Update use of try_group_insn to
14469 sched_macro_fuse_insns.
14470 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
14471 arguments that are not conditional jumps.
14473 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14475 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
14476 family information. Handle BTVER2 cpu with cpuid family value.
14478 2014-08-04 Tom de Vries <tom@codesourcery.com>
14480 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14481 (glibc_2_11_or_earlier): Document effective-target keywords.
14483 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
14485 * ipa-devirt.c (odr_type_warn_count): Add type.
14486 (possible_polymorphic_call_targets): Set it.
14487 (ipa_devirt): Use it.
14489 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
14491 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
14493 * ipa-devirt.c: Include hash-map.h
14494 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
14495 (clear_speculation): Break out of ...
14496 (get_class_context): ... here; speed up handling obviously useless
14498 (odr_type_warn_count, decl_warn_count): New structures.
14499 (final_warning_record): New structure.
14500 (final_warning_records): New static variable.
14501 (possible_polymorphic_call_targets): Cleanup handling of
14502 speculative info; do not build speculation when user do not care;
14503 record info about warnings when asked for.
14504 (add_decl_warning): New function.
14505 (type_warning_cmp): New function.
14506 (decl_warning_cmp): New function.
14507 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
14508 (gate): Enable pass when warnings are requested.
14509 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
14512 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
14514 * hash-map.h (default_hashmap_traits::mark_key_deleted):
14516 (hash_map::remove): New method.
14517 (hash_map::traverse): New method.
14518 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
14519 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
14520 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
14521 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
14522 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
14523 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
14526 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
14528 * hash-set.h: new File.
14529 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
14530 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
14531 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
14532 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
14533 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
14534 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
14535 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
14536 varpool.c: Use hash_set instead of pointer_set.
14538 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
14540 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
14542 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14544 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
14545 for frame access when strict_p is false.
14547 2014-08-01 Renlin Li <renlin.li@arm.com>
14548 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14550 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
14551 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
14552 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
14554 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
14556 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
14557 aarch64_mem_pair_offset.
14559 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14561 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
14563 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
14564 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
14566 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
14568 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
14570 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
14572 PR regression/61510
14573 * cgraphunit.c (analyze_functions): Use get_create rather than get
14574 for decls which are clones of abstract functions.
14576 2014-08-01 Martin Liska <mliska@suse.cz>
14578 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
14579 * ipa-prop.h (count_formal_params): Global function created from static.
14580 * ipa-prop.c (count_formal_params): Likewise.
14581 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
14582 profiles for semantically equivalent functions.
14583 * passes.c (do_per_function): If we load body of a function
14584 during WPA, this condition should behave same.
14585 * varpool.c (ctor_for_folding): More tolerant assert for variable
14586 aliases created during WPA.
14588 2014-08-01 Martin Liska <mliska@suse.cz>
14590 * doc/invoke.texi (Options That Control Optimization): Documentation
14591 for -foptimize-strlen introduced. Optimization levels default options
14594 2014-08-01 Jakub Jelinek <jakub@redhat.com>
14596 * opts.c (common_handle_option): Handle -fsanitize=alignment.
14597 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
14598 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
14600 * stor-layout.h (min_align_of_type): New prototype.
14601 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
14602 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
14604 * ubsan.c: Include builtins.h.
14605 (ubsan_expand_bounds_ifn): Change return type to bool,
14606 always return true.
14607 (ubsan_expand_null_ifn): Change return type to bool, change
14608 argument to gimple_stmt_iterator *. Handle both null and alignment
14609 sanitization, take type from ckind argument's type rather than
14611 (instrument_member_call): Removed.
14612 (instrument_mem_ref): Remove t argument, add mem and base arguments.
14613 Handle both null and alignment sanitization, don't say whole
14614 struct access is member access. Build 3 argument IFN_UBSAN_NULL
14615 call instead of 2 argument.
14616 (instrument_null): Adjust instrument_mem_ref caller. Don't
14617 instrument calls here.
14618 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
14619 like SANITIZE_NULL.
14620 * stor-layout.c (min_align_of_type): New function.
14621 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
14622 Or it into SANITIZE_UNDEFINED.
14623 * doc/invoke.texi (-fsanitize=alignment): Document.
14625 2014-07-31 Andi Kleen <ak@linux.intel.com>
14627 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
14629 2014-07-31 Andi Kleen <ak@linux.intel.com>
14631 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
14633 (vn_reference_compute_hash): Dito.
14634 (vn_nary_op_compute_hash): Dito.
14635 (vn_phi_compute_hash): Dito.
14636 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
14638 2014-07-31 Andi Kleen <ak@linux.intel.com>
14640 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
14641 Rename to inchash:add_expr_commutative. Convert to inchash.
14642 (iterative_hash_hashable_expr): Rename to
14643 inchash:add_hashable_expr. Convert to inchash.
14644 (avail_expr_hash): Dito.
14646 2014-07-31 Andi Kleen <ak@linux.intel.com>
14648 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
14649 Convert to inchash.
14651 2014-07-31 Andi Kleen <ak@linux.intel.com>
14653 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
14655 2014-07-31 Andi Kleen <ak@linux.intel.com>
14657 * Makefile.in (OBJS): Add rtlhash.o
14658 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
14659 (loc_checksum): Dito.
14660 (loc_checksum_ordered): Dito.
14661 (hash_loc_operands): Dito.
14663 (hash_loc_list): Dito.
14664 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
14665 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
14666 * rtlhash.c: New file.
14667 * rtlhash.h: New file.
14669 2014-07-31 Andi Kleen <ak@linux.intel.com>
14671 * inchash.h (inchash): Change inchash class to namespace.
14672 (class hash): ... Rename from inchash.
14673 (add_object): Move from macro to class template.
14674 * lto-streamer-out.c (hash_tree): Change inchash
14676 * tree.c (build_type_attribute_qual_variant): Dito.
14677 (type_hash_list): Dito.
14678 (attribute_hash_list): Dito.
14679 (iterative_hstate_expr): Rename to inchash::add_expr
14680 (build_range_type_1): Change inchash to inchash::hash
14681 and use hash::add_expr.
14682 (build_array_type_1): Dito.
14683 (build_function_type): Dito
14684 (build_method_type_directly): Dito.
14685 (build_offset_type): Dito.
14686 (build_complex_type): Dito.
14687 (make_vector_type): Dito.
14688 * tree.h (iterative_hash_expr): Dito.
14690 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
14692 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
14694 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14696 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
14697 correct alphabetical position.
14698 (vpaddd_f64): Rewrite using builtins.
14699 (vpaddd_s64): Move to correct alphabetical position.
14702 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
14705 * config/sh/sh.c (sh_legitimate_address_p,
14706 sh_legitimize_reload_address): Handle reg+reg address modes when
14707 ALLOW_INDEXED_ADDRESS is false.
14708 * config/sh/predicates.md (general_movsrc_operand,
14709 general_movdst_operand): Likewise.
14711 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14713 * config/aarch64/aarch64-builtins.c
14714 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
14717 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14719 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
14720 the generated mask based on BYTES_BIG_ENDIAN.
14721 (aarch64_simd_check_vect_par_cnst_half): New.
14722 * config/aarch64/aarch64-protos.h
14723 (aarch64_simd_check_vect_par_cnst_half): New.
14724 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
14725 the check out to aarch64_simd_check_vect_par_cnst_half.
14726 (vect_par_cnst_lo_half): Likewise.
14727 * config/aarch64/aarch64-simd.md
14728 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
14729 (move_hi_quad_<mode>): Always generate a low mask.
14731 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14733 * doc/invoke.texi (AVR Options): Add documentation about
14734 __AVR_DEVICE_NAME__ built-in macro.
14736 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
14739 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
14740 constraints are satisfied.
14741 (<shift>di3_neon): Likewise.
14743 2014-07-31 Richard Biener <rguenther@suse.de>
14745 PR tree-optimization/61964
14746 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
14747 by structural equality.
14749 2014-07-31 Yury Gribov <y.gribov@samsung.com>
14751 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
14752 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
14753 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
14755 * gcc.c (sanitize_spec_function): Support new option.
14756 (SANITIZER_SPEC): Remove now redundant check.
14757 * opts.c (common_handle_option): Support new option.
14758 (finish_options): Check for incompatibilities.
14759 * toplev.c (process_options): Split userspace-specific checks.
14761 2014-07-31 Richard Biener <rguenther@suse.de>
14763 * lto-streamer.h (struct output_block): Remove global.
14764 (struct data_in): Remove labels, num_named_labels and
14765 num_unnamed_labels.
14766 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
14767 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
14769 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
14772 * common.opt (-Wreturn-local-addr): Moved from c.opt.
14773 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
14774 (isolate_path): New argument to avoid inserting a trap.
14775 (find_implicit_erroneous_behaviour): Handle returning the address
14776 of a local variable.
14777 (find_explicit_erroneous_behaviour): Likewise.
14779 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
14782 * toplev.c (init_random_seed): Move piece of code never called to
14784 (set_random_seed): see above.
14786 2014-07-31 Tom de Vries <tom@codesourcery.com>
14788 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
14790 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
14792 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
14793 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
14795 2014-07-31 Richard Biener <rguenther@suse.de>
14797 * data-streamer.h (streamer_write_data_stream): Declare here,
14799 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
14800 * lto-cgraph.c (lto_output_node): Adjust.
14801 (lto_output_varpool_node): Likewise.
14802 * data-streamer-out.c (streamer_string_index): Likewise.
14803 (streamer_write_data_stream, lto_append_block): Move from ...
14804 * lto-section-out.c (lto_output_data_stream,
14805 lto_append_block): ... here.
14807 2014-07-30 Mike Stump <mikestump@comcast.net>
14809 * configure.ac: Also check for popen.
14810 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
14811 * configure: Regenerate.
14812 * config.in: Regenerate.
14814 2014-07-30 Martin Jambor <mjambor@suse.cz>
14816 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
14817 parameter to gimple.
14819 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14821 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
14822 address as second parameter to __tpf_eh_return routine.
14824 2014-07-30 Jiong Wang <jiong.wang@arm.com>
14826 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
14829 2014-07-30 Tom Tromey <tromey@redhat.com>
14832 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
14833 * doc/extend.texi (Type Attributes): Document designated_init
14836 2014-07-30 Roman Gareev <gareevroman@gmail.com>
14838 * graphite-isl-ast-to-gimple.c:
14839 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
14840 (gcc_expression_from_isl_expression): Pass type to
14841 gcc_expression_from_isl_ast_expr_id.
14843 2014-07-30 Richard Biener <rguenther@suse.de>
14845 * lto-streamer.h (lto_write_data): New function.
14846 * langhooks.c (lhd_append_data): Do not free block.
14847 * lto-section-out.c (lto_write_data): New function writing
14848 raw data to the current section.
14849 (lto_write_stream): Adjust for langhook semantic change.
14850 (lto_destroy_simple_output_block): Write header directly.
14851 * lto-opts.c (lto_write_options): Write options directly.
14852 * lto-streamer-out.c (produce_asm): Write heaeder directly.
14853 (lto_output_toplevel_asms): Likewise.
14854 (copy_function_or_variable): Copy data directly.
14855 (write_global_references): Output index table directly.
14856 (lto_output_decl_state_refs): Likewise.
14857 (write_symbol): Write data directly.
14858 (produce_symtab): Adjust.
14859 (produce_asm_for_decls): Output header and refs directly.
14861 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
14863 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
14864 to speculative_targets
14865 (get_class_context): Fix handling of contextes without outer type;
14866 avoid matching non-polymorphic types in LTO.
14867 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
14868 parameter to speculative_targetsp; handle speculation.
14869 (dump_possible_polymorphic_call_targets): Update dumping.
14871 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
14873 * common.opt (Wodr): Enable by default.
14875 2014-07-29 Olivier Hainque <hainque@adacore.com>
14877 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
14879 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
14882 * gengtype.c (strtoken): New function.
14883 (create_user_defined_type): Replace strtok with strtoken.
14885 2014-07-29 Nathan Sidwell <nathan@acm.org>
14887 * gcov-io.c (gcov_var): Make hidden.
14888 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
14889 (gcov_do_dump): Declare.
14890 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
14892 2014-07-29 Martin Jambor <mjambor@suse.cz>
14894 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
14895 parameter to gimple.
14896 (sra_modify_assign): Likewise.
14898 2014-07-29 Richard Biener <rguenther@suse.de>
14900 PR middle-end/52478
14901 * expr.c (expand_expr_real_2): Revert last change.
14903 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
14905 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
14906 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
14907 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
14909 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
14910 (contains_type_p): Forward declare.
14911 (polymorphic_call_target_hasher::hash): Hash speculative info.
14912 (polymorphic_call_target_hasher::equal): Compare speculative info.
14913 (get_class_context): Handle speuclation.
14914 (contains_type_p): Update.
14915 (get_polymorphic_call_info_for_decl): Update.
14916 (walk_ssa_copies): Break out from ...
14917 (get_polymorphic_call_info): ... here; set speculative context
14919 * ipa-prop.c (ipa_write_indirect_edge_info,
14920 ipa_read_indirect_edge_info): Stream speculative context.
14921 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14922 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14923 SPECULATIVE_MAYBE_DERIVED_TYPE).
14924 (possible_polymorphic_call_targets overriders): Update.
14925 (dump_possible_polymorphic_call_targets overriders): Update.
14926 (dump_possible_polymorphic_call_target_p overriders): Update.
14928 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
14930 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14931 ipa-devirt path; fix thinko there.
14933 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
14935 * config/i386/i386.c (ix86_return_in_memory): Replace one
14936 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14938 2014-07-28 Marek Polacek <polacek@redhat.com>
14940 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
14942 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
14944 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14945 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14946 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14947 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14948 (USE_LD_AS_NEEDED): Likewise.
14949 (ASM_APP_ON): Likewise.
14950 (ASM_APP_OFF): Likewise.
14951 (TARGET_POSIX_IO): Likewise.
14952 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14953 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14954 (USE_LD_AS_NEEDED): Likewise.
14955 (ASM_APP_ON): Likewise.
14956 (ASM_APP_OFF): Likewise.
14957 (TARGET_POSIX_IO): Likewise.
14959 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
14961 PR middle-end/61734
14962 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14963 operators other than the equality operators.
14965 2014-07-28 Richard Biener <rguenther@suse.de>
14967 PR middle-end/52478
14968 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14969 sure to register SImode ones, not only >= word_mode ones.
14970 * expr.c (expand_expr_real_2): When expanding -ftrapv
14971 binops do not use OPTAB_LIB_WIDEN.
14973 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
14975 PR middle-end/61919
14976 * tree-outof-ssa.c (insert_partition_copy_on_edge)
14977 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14978 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14979 inserting them in the insn stream.
14981 2014-07-28 Marek Polacek <polacek@redhat.com>
14983 PR middle-end/61913
14984 * common.opt (Wodr): Add Var.
14986 2014-07-28 Richard Biener <rguenther@suse.de>
14988 PR tree-optimization/61921
14989 * tree-ssa-structalias.c (create_variable_info_for_1): Check
14990 if there is a varpool node before dereferencing it.
14992 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14994 * graphite-sese-to-poly.c:
14995 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14996 id of the pbb), which contains pointer to the pbb1.
14998 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
15000 2014-07-28 Roman Gareev <gareevroman@gmail.com>
15002 * graphite-isl-ast-to-gimple.c:
15003 (graphite_create_new_guard): New function.
15004 (translate_isl_ast_node_if): New function.
15005 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
15007 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
15009 2014-07-27 Anthony Green <green@moxielogic.com>
15011 * config.gcc: Add moxie-*-moxiebox* configuration.
15012 * config/moxie/moxiebox.h: New file.
15014 2014-07-26 Andrew Pinski <apinski@cavium.com>
15016 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
15017 from the read only register.
15019 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
15021 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
15022 as the allocation class if it isn't likely to be spilled.
15024 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
15026 * rtl.h (tls_referenced_p): Declare.
15027 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
15028 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
15029 (mips_cannot_force_const_mem): Use tls_referenced_p.
15030 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
15031 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
15032 instead of pa_tls_referenced_p.
15033 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
15034 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
15035 (pa_legitimate_constant_p): Likewise.
15036 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
15037 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
15038 (rs6000_cannot_force_const_mem, rs6000_emit_move)
15039 (rs6000_address_for_altivec): Use tls_referenced_p instead of
15040 rs6000_tls_referenced_p.
15041 (rs6000_tls_symbol_ref_1): Delete.
15043 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
15046 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
15047 Optimize inverse of a VEC_CONCAT.
15049 2014-07-25 Xinliang David Li <davidxl@google.com>
15051 * params.def: New parameter.
15052 * coverage.c (get_coverage_counts): Check new flag.
15053 (coverage_compute_profile_id): Check new flag.
15054 (coverage_begin_function): Check new flag.
15055 (coverage_end_function): Check new flag.
15056 * value-prof.c (coverage_node_map_initialized_p): New function.
15057 (init_node_map): Populate map with all functions.
15058 * doc/invoke.texi: Document new parameter.
15060 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
15061 Richard Biener <rguenther@suse.de>
15063 * lto-streamer-out.c (struct sccs): Turn to ...
15064 (class DFS): ... this one; refactor the DFS walk so it can
15065 be re-done on per-SCC basis.
15066 (DFS::DFS): New constructor.
15067 (DFS::~DFS): New destructor.
15068 (hash_tree): Add new MAP argument holding in-SCC hash values;
15069 remove POINTER_TYPE hashing hack.
15070 (scc_entry_compare): Rename to ...
15071 (DFS::scc_entry_compare): ... this one.
15072 (hash_scc): Rename to ...
15073 (DFS::hash_scc): ... this one; pass output_block instead
15074 of streamer_cache; work harder to get unique and stable SCC
15076 (DFS_write_tree): Rename to ...
15077 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
15078 (lto_output_tree): Update.
15080 2014-07-25 Andi Kleen <ak@linux.intel.com>
15082 * lto-streamer-out.c (hash_tree): Convert to inchash.
15084 2014-07-25 Andi Kleen <ak@linux.intel.com>
15086 * tree.c (build_type_attribute_qual_variant): Use inchash.
15087 (type_hash_list): Dito.
15088 (attribute_hash_list): Dito
15089 (iterative_hstate_expr): Dito.
15090 (iterative_hash_expr): Dito.
15091 (build_range_type_1): Dito.
15092 (build_array_type_1): Dito.
15093 (build_function_type): Dito.
15094 (build_method_type_directly): Dito.
15095 (build_offset_type): Dito.
15096 (build_complex_type): Dito.
15097 (make_vector_type): Dito.
15098 * tree.h (iterative_hash_expr): Add compat wrapper.
15099 (iterative_hstate_expr): Add.
15101 2014-07-25 Andi Kleen <ak@linux.intel.com>
15103 * Makefile.in (OBJS): Add inchash.o.
15104 (PLUGIN_HEADERS): Add inchash.h.
15105 * ipa-devirt.c: Include inchash.h.
15106 * lto-streamer-out.c: Dito.
15107 * tree-ssa-dom.c: Dito.
15108 * tree-ssa-pre.c: Dito.
15109 * tree-ssa-sccvn.c: Dito.
15110 * tree-ssa-tail-merge.c: Dito.
15112 * tree.c (iterative_hash_hashval_t): Move to ...
15113 (iterative_hash_host_wide_int): Move to ...
15114 * inchash.c: Here. New file.
15115 * tree.h (iterative_hash_hashval_t): Move to ...
15116 (iterative_hash_host_wide_int): Move to ...
15117 * inchash.h: Here. New file.
15119 2014-07-25 Richard Biener <rguenther@suse.de>
15121 PR middle-end/61762
15122 PR middle-end/61894
15123 * fold-const.c (native_encode_int): Add and handle offset
15124 parameter to do partial encodings of expr.
15125 (native_encode_fixed): Likewise.
15126 (native_encode_real): Likewise.
15127 (native_encode_complex): Likewise.
15128 (native_encode_vector): Likewise.
15129 (native_encode_string): Likewise.
15130 (native_encode_expr): Likewise.
15131 * fold-const.c (native_encode_expr): Add offset parameter
15133 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
15134 (fold_ctor_reference): Handle all reads from tcc_constant
15137 2014-07-25 Richard Biener <rguenther@suse.de>
15139 * tree-inline.c (estimate_move_cost): Mark speed_p argument
15140 as possibly unused.
15142 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15144 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
15146 2014-07-24 Kyle McMartin <kyle@redhat.com>
15148 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
15150 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15152 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
15154 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
15156 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
15157 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15158 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
15160 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15162 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
15163 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
15164 aggregate types. Instead, *all* aggregate types, except for single-
15165 element or homogeneous float/vector aggregates, are quadword-aligned
15166 if required by their type alignment. Issue -Wpsabi note when a type
15167 is now treated differently than before.
15169 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15171 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
15172 does not fit fully into floating-point registers, and there is still
15173 space in the register parameter area, use GPRs to pass those parts
15174 of the argument. Issue -Wpsabi note if any parameter is now treated
15175 differently than before.
15176 (rs6000_arg_partial_bytes): Update.
15178 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
15180 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
15182 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
15184 * rtl.h (target_rtl): Remove lang_dependent_initialized.
15185 * toplev.c (initialize_rtl): Don't use it. Move previously
15186 "language-dependent" calls to...
15187 (backend_init): ...here.
15188 (lang_dependent_init_target): Don't set lang_dependent_initialized.
15189 Assert that RTL initialization hasn't happend yet.
15191 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
15193 PR rtl-optimization/61629
15194 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
15195 they have already been initialized.
15197 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
15199 PR middle-end/61268
15200 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
15201 DECL_INCOMING_RTL and entry_parm.
15202 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
15203 * calls.c (load_register_parameters): Likewise argument values.
15204 (emit_library_call_value_1, store_one_arg): Likewise argument
15206 * config/i386/i386.c (assign_386_stack_local): Likewise the local
15208 * explow.c (validize_mem): Modify the argument in-place.
15210 2014-07-24 Jiong Wang <jiong.wang@arm.com>
15212 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
15213 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
15215 2014-07-24 Jiong Wang <jiong.wang@arm.com>
15217 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
15218 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
15220 2014-07-24 Jiong Wang <jiong.wang@arm.com>
15222 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
15223 (aarch64_save_callee_saves): New parameter "skip_wb".
15224 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
15226 2014-07-24 Jiong Wang <jiong.wang@arm.com>
15228 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
15230 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
15232 2014-07-24 Roman Gareev <gareevroman@gmail.com>
15234 * graphite-isl-ast-to-gimple.c:
15235 (graphite_create_new_loop): Add calling of isl_id_free to properly
15236 decrement reference counts.
15238 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
15240 2014-07-24 Martin Liska <mliska@suse.cz>
15241 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
15243 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
15244 (rs6000_code_end): Likewise.
15246 2014-07-24 Martin Liska <mliska@suse.cz>
15248 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
15249 symtab_node funtion used.
15250 (rs6000_xcoff_declare_object_name): Likewise.
15252 2014-07-24 Martin Liska <mliska@suse.cz>
15254 * cgraphunit.c (compile): Correct function used.
15256 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
15258 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
15261 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
15264 * varasm.c (bss_initializer_p): Handle offlined ctors.
15265 (align_variable, get_variable_align): Likewise.
15266 (make_decl_one_only): Likewise.
15267 (default_binds_local_p_1): Likewise.
15268 (decl_binds_to_current_def_p): Likewise.
15269 (get_variable_section): Get constructor if it is offlined.
15270 (assemble_variable_contents): Sanity check that the caller
15271 streamed in the ctor in LTO.
15273 2014-07-24 Roman Gareev <gareevroman@gmail.com>
15275 * graphite-isl-ast-to-gimple.c:
15276 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
15277 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
15278 isl_ast_op_pdiv_r to the different case.
15280 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
15282 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15284 PR middle-end/61876
15285 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
15286 when flag_errno_math is on.
15288 2014-07-24 Martin Liska <mliska@suse.cz>
15290 * cgraph.h (varpool_node):
15291 (availability get_availability (void)):
15292 created from cgraph_variable_initializer_availability
15293 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
15294 created from: cgraph_variable_initializer_availability
15295 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
15296 (void finalize_named_section_flags (void)):
15297 created from varpool_finalize_named_section_flags
15298 (bool assemble_decl (void)): created from varpool_assemble_decl
15299 (void analyze (void)): created from varpool_analyze_node
15300 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
15301 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
15302 (void remove_initializer (void)): created from varpool_remove_initializer
15303 (tree get_constructor (void)): created from varpool_get_constructor
15304 (bool externally_visible_p (void)): created from varpool_externally_visible_p
15305 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
15306 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
15307 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
15308 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
15309 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
15310 (static bool output_variables (void)): created from varpool_output_variables
15311 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
15312 created from varpool_extra_name_alias
15313 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
15314 (static void dump_varpool (FILE *f)): created from dump_varpool
15315 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
15316 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
15317 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
15318 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
15319 (void assemble_aliases (void)): created from assemble_aliases
15321 2014-07-24 Martin Liska <mliska@suse.cz>
15323 * cgraph.h (symtab_node):
15324 (void register_symbol (void)): created from symtab_register_node
15325 (void remove (void)): created from symtab_remove_node
15326 (void dump (FILE *f)): created from dump_symtab_node
15327 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
15328 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
15329 (struct ipa_ref *add_reference (symtab_node *referred_node,
15330 enum ipa_ref_use use_type)): created from add_reference
15331 (struct ipa_ref *add_reference (symtab_node *referred_node,
15332 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
15333 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
15334 gimple stmt)): created from maybe_add_reference
15335 (bool semantically_equivalent_p (symtab_node *target)): created from
15336 symtab_semantically_equivalent_p
15337 (void remove_from_same_comdat_group (void)): created from
15338 remove_from_same_comdat_group
15339 (void add_to_same_comdat_group (symtab_node *old_node)): created from
15340 symtab_add_to_same_comdat_group
15341 (void dissolve_same_comdat_group_list (void)): created from
15342 symtab_dissolve_same_comdat_group_list
15343 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
15344 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
15345 created from symtab_alias_ultimate_target
15346 (inline symtab_node *next_defined_symbol (void)): created from
15347 symtab_next_defined_symbol
15348 (bool resolve_alias (symtab_node *target)): created from
15349 symtab_resolve_alias
15350 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
15351 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
15352 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
15353 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
15354 (void set_section (const char *section)): created from set_section_1
15355 (enum availability get_availability (void)): created from symtab_node_availability
15356 (void make_decl_local (void)): created from symtab_make_decl_local
15357 (bool real_symbol_p (void)): created from symtab_read_node
15358 (can_be_discarded_p (void)): created from symtab_can_be_discarded
15359 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
15360 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
15361 symtab_in_same_comdat_p;
15362 (bool address_taken_from_non_vtable_p (void)): created from
15363 address_taken_from_non_vtable_p
15364 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
15365 (static void dump_table (FILE *)): created from dump_symtab
15366 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
15367 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
15368 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
15369 symtab_used_from_object_file_p
15370 (void dump_base (FILE *)): created from dump_symtab_base
15371 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
15372 (void unregister (void)): created from symtab_unregister_node
15373 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
15374 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
15375 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
15376 symtab_nonoverwritable_alias_1
15377 * cgraph.h (cgraph_node):
15378 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
15379 created from cgraph_remove_node_and_inline_clones
15380 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
15381 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
15382 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
15383 (cgraph_node *function_symbol (enum availability *avail = NULL)):
15384 created from cgraph_function_node
15385 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
15386 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
15387 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
15388 created from cgraph_create_clone
15389 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
15390 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
15391 created from cgraph_create_virtual_clone
15392 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
15393 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
15394 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
15395 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
15396 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
15397 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
15398 created from cgraph_function_version_info
15399 (struct cgraph_function_version_info *insert_new_function_version (void)):
15400 created from insert_new_cgraph_node_version
15401 (struct cgraph_function_version_info *function_version (void)): created from
15402 get_cgraph_node_version
15403 (void analyze (void)): created from analyze_function
15404 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
15405 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
15406 tree real_alias) cgraph_add_thunk
15407 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
15408 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
15409 created from cgraph_function_or_thunk_node
15410 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
15411 created from expand_thunk
15412 (void reset (void)): created from cgraph_reset_node
15413 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
15414 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
15415 (void remove (void)): created from cgraph_remove_node
15416 (void dump (FILE *f)): created from dump_cgraph_node
15417 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
15418 (bool get_body (void)): created from cgraph_get_body
15419 (void release_body (void)): created from cgraph_release_function_body
15420 (void unnest (void)): created from cgraph_unnest_node
15421 (void make_local (void)): created from cgraph_make_node_local
15422 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
15423 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
15424 gcov_type count, int freq)): created from cgraph_create_edge
15425 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
15426 gcov_type count, int freq)): created from cgraph_create_indirect_edge
15427 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
15428 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
15429 created from cgraph_create_edge_including_clones
15430 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
15431 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
15432 (void remove_callers (void)): created from cgraph_node_remove_callers
15433 (void remove_callees (void)): created from cgraph_node_remove_callees
15434 (enum availability get_availability (void)): created from cgraph_function_body_availability
15435 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
15436 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
15437 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
15438 (void call_duplication_hooks (cgraph_node *node2)): created from
15439 cgraph_call_node_duplication_hooks
15440 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
15441 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
15442 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
15443 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
15444 (void call_function_insertion_hooks (void)):
15445 created from cgraph_call_function_insertion_hooks
15446 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
15447 (bool local_p (void)): created from cgraph_local_node
15448 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
15449 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
15450 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
15451 (inline bool only_called_directly_or_aliased_p (void)):
15452 created from cgraph_only_called_directly_or_aliased_p
15453 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
15454 created from cgraph_will_be_removed_from_program_if_no_direct_calls
15455 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
15456 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
15457 (bool can_remove_if_no_direct_calls_p (void)):
15458 created from cgraph_can_remove_if_no_direct_calls_p
15459 (inline bool has_gimple_body_p (void)):
15460 created from cgraph_function_with_gimple_body_p
15461 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
15462 (static void dump_cgraph (FILE *f)): created from dump_cgraph
15463 (static inline void debug_cgraph (void)): created from debug_cgraph
15464 (static void record_function_versions (tree decl1, tree decl2)):
15465 created from record_function_versions
15466 (static void delete_function_version (tree decl)):
15467 created from delete_function_version
15468 (static void add_new_function (tree fndecl, bool lowered)):
15469 created from cgraph_add_new_function
15470 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
15471 (static cgraph_node * create (tree decl)): created from cgraph_create_node
15472 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
15473 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
15474 (static cgraph_node *get_for_asmname (tree asmname)):
15475 created from cgraph_node_for_asm
15476 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
15477 created from cgraph_same_body_alias
15478 (static bool used_from_object_file_p_worker (cgraph_node *node,
15479 void *): new function
15480 (static bool non_local_p (cgraph_node *node, void *)):
15481 created from cgraph_non_local_node_p_1
15482 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
15483 created from verify_cgraph
15484 (static bool make_local (cgraph_node *node, void *)):
15485 created from cgraph_make_node_local
15486 (static cgraph_node *create_alias (tree alias, tree target)):
15487 created from cgraph_create_function_alias
15488 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
15489 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
15490 created from cgraph_create_edge_1
15491 * cgraph.h (varpool_node):
15492 (void remove (void)): created from varpool_remove_node
15493 (void dump (FILE *f)): created from dump_varpool_node
15495 2014-07-24 Richard Biener <rguenther@suse.de>
15498 * tree-ssa-structalias.c (create_variable_info_for_1):
15499 Use varpool_get_constructor.
15500 (create_variable_info_for): Likewise.
15502 2014-07-24 Jiong Wang <jiong.wang@arm.com>
15504 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
15505 subtract outgoing area size when restoring stack_pointer_rtx.
15507 2014-07-24 Nick Clifton <nickc@redhat.com>
15509 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
15510 that operations are taking place in parallel.
15511 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
15513 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
15515 * omp-low.c (extract_omp_for_data): Add missing break statement.
15517 2014-07-24 Richard Biener <rguenther@suse.de>
15519 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
15520 * tree-inline.c (estimate_move_cost): Add speed_p parameter
15521 and adjust MOVE_RATIO query accordingly.
15522 (estimate_num_insns): Adjust callers.
15523 * ipa-prop.c (ipa_populate_param_decls): Likewise.
15524 * ipa-cp.c (gather_context_independent_values,
15525 estimate_local_effects): Likewise.
15526 * ipa-split.c (consider_split): Likewise.
15528 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
15530 * config/i386/driver-i386.c: Remove names of unused arguments and
15531 unnecessary unused attributes.
15532 * config/i386/host-mingw32.c: Likewise.
15533 * config/i386/i386.c: Likewise.
15534 * config/i386/winnt-stubs.c: Likewise.
15535 * config/i386/winnt.c: Likewise.
15537 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15539 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
15540 (aarch64_gen_loadwb_pair): New helper function.
15541 (aarch64_expand_epilogue): Simplify code using new helper functions.
15542 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
15544 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15546 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
15547 (aarch64_gen_storewb_pair): New helper function.
15548 (aarch64_expand_prologue): Simplify code using new helper functions.
15549 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
15551 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15553 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
15554 Rename to aarch64_save_callee_saves, remove restore code.
15555 (aarch64_restore_callee_saves): New function.
15557 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15559 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
15560 (aarch64_save_callee_saves): New function to handle reg save
15561 for both core and vectore regs.
15563 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15565 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
15566 (aarch64_gen_store_pair): New helper function.
15567 (aarch64_save_or_restore_callee_save_registers)
15568 (aarch64_save_or_restore_fprs): Use new helper functions.
15570 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15572 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
15573 (aarch64_save_or_restore_callee_save_registers)
15574 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
15576 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15578 * config/aarch64/aarch64.c
15579 (aarch64_save_or_restore_callee_save_registers)
15580 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
15582 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15584 * config/aarch64/aarch64.c
15585 (aarch64_save_or_restore_callee_save_registers)
15586 (aarch64_save_or_restore_fprs): Remove 'increment'.
15588 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15590 * config/aarch64/aarch64.c
15591 (aarch64_save_or_restore_callee_save_registers)
15592 (aarch64_save_or_restore_fprs): Use register offset in
15593 cfun->machine->frame.reg_offset.
15595 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15597 * config/aarch64/aarch64.c
15598 (aarch64_save_or_restore_callee_save_registers)
15599 (aarch64_save_or_restore_fprs): Remove base_rtx.
15601 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15603 * config/aarch64/aarch64.c
15604 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
15605 to 'start_offset'. Remove local variable 'start_offset'.
15607 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15609 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
15610 type to HOST_WIDE_INT.
15612 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15614 * config/aarch64/aarch64.c (aarch64_expand_prologue)
15615 (aarch64_save_or_restore_fprs)
15616 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
15618 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
15620 * config/arm/t-rtems-eabi: Add
15621 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
15622 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
15623 mbig-endian/mthumb/march=armv7-r, and
15624 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
15627 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
15628 Chris Johns <chrisj@rtems.org>
15629 Joel Sherrill <joel.sherrill@oarcorp.com>
15631 * config.gcc: Add nios2-*-rtems*.
15632 * config/nios2/rtems.h: New file.
15633 * gcc/config/nios2/t-rtems: New file.
15635 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
15638 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
15639 constant numbers, not general constants.
15640 (rs6000_expand_vector_init): Ditto.
15642 2014-07-23 Nathan Sidwell <nathan@acm.org>
15644 * gcov-tool.c (gcov_list): Declare here.
15645 (set_gcov_list): Remove.
15646 (gcov_output_files): Set gcov_list directly.
15648 2014-07-23 Host Schirmeier <horst@schirmeier.com>
15650 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
15652 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15654 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
15655 callee-saved registers are available for padding purpose
15656 and r3 is not mandatory, then prefer use those callee-saved
15659 2014-07-23 Richard Biener <rguenther@suse.de>
15661 * params.def (PARAM_MAX_COMBINE_INSNS): New.
15662 * combine.c: Include statistics.h and params.h.
15663 (combine_instructions): Guard three and four insn combines
15664 with max-combine-insns value. Record statistics for combines
15666 * doc/invoke.texi (max-combine-insns): Document new param.
15668 2014-07-23 Roman Gareev <gareevroman@gmail.com>
15670 * graphite-isl-ast-to-gimple.c:
15671 (translate_isl_ast_node_block): New function.
15672 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
15674 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
15675 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
15677 2014-07-23 Roman Gareev <gareevroman@gmail.com>
15679 * graphite-isl-ast-to-gimple.c:
15680 (get_max_schedule_dimensions): New function.
15681 (extend_schedule): Likewise.
15682 (generate_isl_schedule): Add calling of extend_schedule and
15683 get_max_schedule_dimensions.
15685 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15687 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
15688 (case UNSPEC): Handle UNSPEC_RBIT.
15690 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15692 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
15693 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
15695 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15697 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
15699 2014-07-22 Roman Gareev <gareevroman@gmail.com>
15701 * graphite-isl-ast-to-gimple.c:
15702 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
15703 (ivs_params_clear):
15704 (build_iv_mapping): New function.
15705 (translate_isl_ast_node_user): Likewise.
15706 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
15708 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
15709 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
15710 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
15712 2014-07-21 Bin Cheng <bin.cheng@arm.com>
15715 * config/arm/arm.md (setmem): New pattern.
15716 * config/arm/arm-protos.h (struct tune_params): New fields.
15717 (arm_gen_setmem): New prototype.
15718 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
15719 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
15720 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
15721 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
15722 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
15723 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
15724 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
15725 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
15726 (arm_const_inline_cost): New function.
15727 (arm_block_set_max_insns): New function.
15728 (arm_block_set_non_vect_profit_p): New function.
15729 (arm_block_set_vect_profit_p): New function.
15730 (arm_block_set_unaligned_vect): New function.
15731 (arm_block_set_aligned_vect): New function.
15732 (arm_block_set_unaligned_non_vect): New function.
15733 (arm_block_set_aligned_non_vect): New function.
15734 (arm_block_set_vect, arm_gen_setmem): New functions.
15736 2014-07-21 Bin Cheng <bin.cheng@arm.com>
15738 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
15740 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
15743 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
15744 out of #ifdef __OPTIMIZE__.
15746 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
15748 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
15749 different trapping status if -fnon-call-exceptions is enabled.
15751 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
15753 * expr.c (store_field): Handle VOIDmode for calls that return values
15754 in multiple locations.
15756 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15758 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
15759 (altivec_vsldoi_<mode>): Likewise.
15761 2014-07-20 Roman Gareev <gareevroman@gmail.com>
15763 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
15764 to the number of characters in the line.
15766 2014-07-20 Roman Gareev <gareevroman@gmail.com>
15768 * graphite-isl-ast-to-gimple.c: Add using of
15769 build_nonstandard_integer_type instead of int128_integer_type_node.
15771 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
15773 * toplev.c (output_stack_usage): Adjust the location of the warning.
15775 2014-07-19 Daniel Cederman <cederman@gaisler.com>
15777 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
15778 (*membar_storeload): Disable for LEON3.
15780 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15782 PR rtl-optimization/61461
15783 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
15785 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
15788 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
15789 Fix instruction constraint.
15790 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
15792 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
15794 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
15796 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
15798 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
15799 GNU coding standards.
15800 (nds32_register_move_cost): Likewise.
15801 (nds32_memory_move_cost): Likewise.
15802 (nds32_address_cost): Likewise.
15804 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15806 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
15808 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
15810 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
15811 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15812 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15813 (HAVE_sync_compare_and_swapqi): Define.
15814 (HAVE_sync_compare_and_swaphi): Likewise.
15815 (HAVE_sync_compare_and_swapsi): Likewise.
15817 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
15819 * config/mips/p5600.md: Add missing cpu tests.
15821 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15823 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
15824 (vmla_f64): Likewise.
15825 (vfms_f64): Likewise.
15826 (vmls_f64): Likewise.
15828 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15830 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
15831 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
15833 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15835 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
15836 (vmlal_high_lane_s32): Likewise.
15837 (vmlal_high_lane_u16): Likewise.
15838 (vmlal_high_lane_u32): Likewise.
15839 (vmlsl_high_lane_s16): Likewise.
15840 (vmlsl_high_lane_s32): Likewise.
15841 (vmlsl_high_lane_u16): Likewise.
15842 (vmlsl_high_lane_u32): Likewise.
15844 2014-07-17 Terry Guo <terry.guo@arm.com>
15846 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
15847 (alus_reg): Renamed to alus_sreg.
15848 * config/arm/arm-fixed.md: Change type of non-dsp instructions
15849 from alu_reg to alu_sreg. Change type of dsp instructions from
15850 alu_reg to alu_dsp_reg.
15851 * config/arm/thumb1.md: Likewise.
15852 * config/arm/thumb2.md: Likewise.
15853 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
15854 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
15855 with alu_sreg and alus_sreg.
15856 * config/arm/arm1026ejs.md (alu_op): Likewise.
15857 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
15858 * config/arm/arm926ejs.md (9_alu_op): Likewise.
15859 * config/arm/fa526.md (526_alu_op): Likewise.
15860 * config/arm/fa606te.md (606te_alu_op): Likewise.
15861 * config/arm/fa626te.md (626te_alu_op): Likewise.
15862 * config/arm/fa726te.md (726te_alu_op): Likewise.
15863 * config/arm/fmp626.md (mp626_alu_op): Likewise.
15864 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
15865 alu_sreg, alu_dsp_reg and alus_sreg.
15866 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
15867 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15868 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15869 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
15870 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
15871 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15872 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15873 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15874 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
15875 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
15876 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
15877 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
15878 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
15879 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
15880 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
15881 alus_reg to alus_sreg.
15883 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
15885 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
15888 2014-07-17 Richard Biener <rguenther@suse.de>
15890 PR rtl-optimization/61801
15891 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
15892 don't set reg_pending_barrier if it appears in a debug-insn.
15894 2014-07-16 DJ Delorie <dj@redhat.com>
15896 * config/rx/rx.c (rx_option_override): Fix alignment values.
15897 (rx_align_for_label): Likewise.
15899 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
15902 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
15903 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15904 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
15906 (cris_print_index, cris_print_operand, cris_constant_index_p)
15907 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
15908 (cris_address_cost): Ditto last CONSTANT_P.
15909 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
15910 callers changed. Yield cris_offsettable_symbol for non-PIC
15911 constant symbolic expressions including labels. Yield cris_unspec
15913 (cris_expand_pic_call_address): New parameter MARKERP. Set its
15914 target to pic_offset_table_rtx for calls that will likely go
15915 through PLT, const0_rtx when they can't. All callers changed.
15916 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
15917 symbolic expressions to be PICified. Remove second, redundant,
15918 assert on can_create_pseudo_p returning non-zero. Use
15919 replace_equiv_address_nv, not replace_equiv_address, for final
15921 * config/cris/cris.md ("movsi"): Move variable t to pattern
15922 toplevel. Adjust assert for new cris_symbol_type member. Use
15923 CONSTANT_P instead of CONSTANT_ADDRESS_P.
15924 ("*movsi_internal") <case 9>: Make check for valid unspec operands
15926 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15927 ("call", "call_value"): Use second incoming operand as a marker
15928 for pic-offset-table-register being used.
15929 ("*expanded_call_non_v32", "*expanded_call_v32")
15930 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15931 second incoming operand to CALL, match cris_call_type_marker.
15932 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
15933 ("*expanded_call_side"): Ditto. Fix typo in comment.
15934 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15936 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15937 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15938 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
15939 users changed. Add members cris_offsettable_symbol and cris_unspec.
15940 (cris_symbol_type): Rename from cris_pic_symbol_type.
15941 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15943 * config/cris/cris-protos.h (cris_symbol_type_of,
15944 cris_expand_pic_call_address): Adjust prototypes.
15945 (cris_legitimate_constant_p): New prototype.
15947 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15948 an existing tmake_file. Don't add t-slibgcc and t-linux.
15950 2014-07-17 Jason Merrill <jason@redhat.com>
15953 * symtab.c (symtab_remove_from_same_comdat_group): Also
15954 set_comdat_group to NULL_TREE.
15955 (verify_symtab): Fix diagnostic.
15957 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
15960 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15962 2014-07-16 Dodji Seketeli <dodji@redhat.com>
15964 Support location tracking for built-in macro tokens
15965 * input.h (is_location_from_builtin_token): New function declaration.
15966 * input.c (is_location_from_builtin_token): New function definition.
15967 * toplev.c (general_init): Tell libcpp what the pre-defined
15968 spelling location for built-in tokens is.
15970 2014-07-16 Jakub Jelinek <jakub@redhat.com>
15972 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15973 on the FUNCTION_DECL.
15975 2014-07-16 Richard Biener <rguenther@suse.de>
15978 * doc/extend.texi (always_inline): Clarify.
15980 2014-07-15 Eric Christopher <echristo@gmail.com>
15982 * doc/invoke.texi (Link Options): Document -z option.
15984 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
15986 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15987 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15989 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
15991 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15993 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
15995 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15996 varpool_assemble_decl.
15997 * varpool.c (varpool_assemble_decl): Assert that node->definition is
16000 2014-07-15 Michael Matz <matz@suse.de>
16002 PR rtl-optimization/61772
16003 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
16005 2014-07-15 Richard Biener <rguenther@suse.de>
16007 * opts.c (default_options_table): Disable bit-ccp at -Og.
16009 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
16011 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
16013 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
16015 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
16016 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
16017 call langhook for unknown declaration.
16018 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
16019 * tree.h (DECL_ARGUMENTS): Update.
16020 * print-tree.c (print_node): Update.
16021 * tree-core.h (tree_decl_non_common): Remove arguments.
16022 (tree_function_decl): Add arguments.
16024 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
16026 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
16028 2014-07-14 Richard Biener <rguenther@suse.de>
16030 PR tree-optimization/61779
16031 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
16032 simplifying a condition.
16034 2014-07-14 Richard Biener <rguenther@suse.de>
16036 * builtins.c (c_strlen): Make only_value == 2 really only
16037 affect warning generation.
16039 2014-07-14 Richard Biener <rguenther@suse.de>
16041 PR tree-optimization/61757
16042 PR tree-optimization/61783
16043 PR tree-optimization/61787
16044 * tree-ssa-dom.c (record_equality): Revert canonicalization
16045 change and add comment.
16046 (propagate_rhs_into_lhs): Revert previous fix, removing
16047 loop depth restriction again.
16049 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16051 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
16052 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
16053 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
16054 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
16055 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
16056 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
16057 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
16059 2014-07-14 Richard Biener <rguenther@suse.de>
16061 * cgraph.h (decl_in_symtab_p): Make inline.
16063 2014-07-14 Jakub Jelinek <jakub@redhat.com>
16065 PR middle-end/61294
16066 * doc/invoke.texi (-Wmemset-transposed-args): Document.
16069 * config/i386/i386.c (classify_argument): Don't merge classes above
16072 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
16074 * cgraph.h (symtab_node): Add nonzero_address.
16075 (decl_in_symtab_p): Break out from ...
16076 (symtab_get_node): ... here.
16077 * fold-const.c: Include cgraph.h
16078 (tree_single_nonzero_warnv_p): Use symtab to determine
16079 if symbol is non-zero.
16080 * symtab.c (symtab_node::nonzero_address): New method.
16082 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
16084 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
16085 forgotten in previous commit.
16087 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
16089 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
16091 * ipa-devirt.c: Include stor-layout.h and intl.h
16092 (odr_subtypes_equivalent_p): New function.
16093 (warn_odr): New function.
16094 (warn_type_mismatch): New function.
16095 (odr_types_equivalent_p): New function.
16096 (add_type_duplicate): Use it.
16097 * common.opt (Wodr): New flag.
16098 * doc/invoke.texi (Wodr): Document new warning.
16100 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
16102 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
16103 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
16104 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
16105 (varpool_get_constructor): Push CTORS_IN timevar.
16106 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
16108 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
16110 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
16111 Remove VOID_FTYPE_PUSHORT.
16112 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
16113 Change code to USHORT_FTYPE_VOID.
16114 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
16115 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
16116 (ix86_atomic_assign_expand_fenv): Update for
16117 __builtin_ia32_fnstsw changes.
16118 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
16119 (fnstsw): Change operand 0 to nonimmediate operand.
16121 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
16123 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
16124 (varpool_get_constructor): New function.
16125 (varpool_ctor_useable_for_folding_p): Break out from ...
16126 (ctor_for_folding): ... here; use varpool_get_constructor.
16127 (varpool_assemble_decl): Likewise.
16128 * lto-streamer.h (struct output_block): Turn cgraph_node
16130 (lto_input_variable_constructor): Declare.
16131 * ipa-visibility.c (function_and_variable_visibility): Use
16132 varpool_get_constructor.
16133 * cgraph.h (varpool_get_constructor): Declare.
16134 (varpool_ctor_useable_for_folding_p): New function.
16135 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
16136 parameter; return error_mark_node for non-trivial constructors.
16137 (lto_write_tree_1, DFS_write_tree): Update use of
16138 get_symbol_initial_value.
16139 (output_function): Update initialization of symbol.
16140 (output_constructor): New function.
16141 (copy_function): Rename to ..
16142 (copy_function_or_variable): ... this one; handle vars too.
16143 (lto_output): Output variable sections.
16144 * lto-streamer-in.c (input_constructor): New function.
16145 (lto_read_body): Rename from ...
16146 (lto_read_body_or_constructor): ... this one; handle vars too.
16147 (lto_input_variable_constructor): New function.
16148 * ipa-prop.c (ipa_prop_write_jump_functions,
16149 ipa_prop_write_all_agg_replacement): Update.
16150 * lto-cgraph.c (compute_ltrans_boundary): Use it.
16151 (output_cgraph_opt_summary): Set symbol to NULL.
16153 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
16155 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
16156 non-polymorphic types.
16157 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
16158 * ipa-devirt.c (types_same_for_odr): Do not explode when one
16159 of types is not polymorphic.
16161 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
16163 * lra-constraints.c (remove_inheritance_pseudos): Process
16164 destination pseudo too.
16166 2014-07-11 Rong Xu <xur@google.com>
16168 * gcov-tool.c (gcov_output_files): Fix build error introduced in
16171 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16173 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
16174 * config/avr/avr-devices.c (AVR_MCU): Same.
16175 (avr_mcu_types): add text start value to end of device list.
16176 * config/avr/avr-mcus.def: Add text section start for all devices.
16177 (ata5782): Add new avr5 device.
16179 * config/avr/avr-tables.opt: Regenerate.
16180 * config/avr/avr.h: Add declaration for text section start handler.
16181 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
16183 (LINK_SPEC): Include text section start handler to linker spec.
16184 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
16185 pass -Ttext option to linker if the text section start for the device
16187 * config/avr/t-multilib: Regenerate.
16188 * doc/avr-mmcu.texi: Regenerate.
16190 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
16192 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
16193 * config/rs6000/aix52.h (LINK_SPEC): Same.
16194 * config/rs6000/aix53.h (LINK_SPEC): Same.
16195 * config/rs6000/aix61.h (LINK_SPEC): Same.
16196 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
16198 2014-07-11 Roman Gareev <gareevroman@gmail.com>
16200 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
16201 (graphite_verify): New function.
16202 (ivs_params_clear): New function.
16203 (gcc_expression_from_isl_ast_expr_id): New function.
16204 (gcc_expression_from_isl_expr_int): New function.
16205 (binary_op_to_tree): New function.
16206 (ternary_op_to_tree): New function.
16207 (unary_op_to_tree): New function.
16208 (nary_op_to_tree): New function.
16209 (gcc_expression_from_isl_expr_op): New function.
16210 (gcc_expression_from_isl_expression): New function.
16211 (graphite_create_new_loop): New function.
16212 (translate_isl_ast_for_loop): New function.
16213 (get_upper_bound): New function.
16214 (graphite_create_new_loop_guard): New function.
16215 (translate_isl_ast_node_for): New function.
16216 (translate_isl_ast): New function.
16217 (add_parameters_to_ivs_params): New function.
16218 (scop_to_isl_ast): New parameter ip.
16219 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
16221 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
16223 * config/xtensa/predicates.md (call expander): Update for
16224 DECL_SECTION_NAME being string.
16226 2014-07-11 Richard Biener <rguenther@suse.de>
16228 PR middle-end/61473
16229 * builtins.c (fold_builtin_memory_op): Inline memory moves that
16230 can be implemented with a single load followed by a single store.
16231 (c_strlen): Only warn when only_value is not 2.
16233 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
16235 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
16237 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
16240 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
16241 (*movhi_bytes): Likewise.
16242 (*arm_movqi_insn): Likewise.
16244 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
16247 * config/alpha/alpha.c: Include tree-pass.h, context.h
16248 and pass_manager.h.
16249 (pass_data_handle_trap_shadows): New pass.
16250 (pass_handle_trap_shadows::gate): New pass gate function.
16251 (make_pass_handle_trap_shadows): New function.
16252 (rest_of_handle_trap_shadows): Ditto.
16254 (alpha_align_insns_1): Rename from alpha_align_insns.
16255 (pass_data_align_insns): New pass.
16256 (pass_align_insns::gate): New pass gate function.
16257 (make_pass_aling_insns): New function.
16258 (rest_of_align_insns): Ditto.
16259 (alpha_align_insns): Ditto.
16261 (alpha_option_override): Declare handle_trap_shadows info
16262 and align_insns_info. Register handle_trap_shadows and align_insns
16264 (alpha_reorg): Do not call alpha_trap_shadows and
16265 alpha_align_insn from here.
16267 (alpha_pad_function_end): Do not skip BARRIERs.
16269 2014-07-10 Rong Xu <xur@google.com>
16271 Add gcov-tool: an offline gcda profile processing tool support.
16272 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
16273 (gcov_is_error): Ditto.
16274 (gcov_read_string): Ditto.
16275 (gcov_read_sync): Ditto.
16276 * gcov-io.h: Move counter defines to gcov-counter.def.
16277 * gcov-dump.c (tag_counters): Use gcov-counter.def.
16278 * coverage.c: Ditto.
16279 * gcov-tool.c: Offline gcda profile processing tool.
16280 (unlink_gcda_file): Remove one gcda file.
16281 (unlink_profile_dir): Remove gcda files from the profile path.
16282 (gcov_output_files): Output gcda files to an output dir.
16283 (profile_merge): Merge two profiles in directory.
16284 (print_merge_usage_message): Print merge usage.
16285 (merge_usage): Print merge usage and exit.
16286 (do_merge): Driver for profile merge sub-command.
16287 (profile_rewrite): Rewrite profile.
16288 (print_rewrite_usage_message): Print rewrite usage.
16289 (rewrite_usage): Print rewrite usage and exit.
16290 (do_rewrite): Driver for profile rewrite sub-command.
16291 (print_usage): Print gcov-info usage and exit.
16292 (print_version): Print gcov-info version.
16293 (process_args): Process arguments.
16294 (main): Main routine for gcov-tool.
16295 * Makefile.in: Build and install gcov-tool.
16296 * gcov-counter.def: New file split from gcov-io.h.
16297 * doc/gcc.texi: Include gcov-tool.texi.
16298 * doc/gcov-tool.texi: Document for gcov-tool.
16300 2014-07-10 Richard Biener <rguenther@suse.de>
16302 PR tree-optimization/61757
16303 * tree-ssa-dom.c (loop_depth_of_name): Restore.
16304 (propagate_rhs_into_lhs): Revert part of last change.
16306 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
16308 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
16311 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
16313 PR middle-end/53590
16314 * function.c (allocate_struct_function): Revert r188667 change.
16316 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
16318 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
16320 * doc/install.texi: Remove links to defunct package providers for
16323 2014-07-09 Tom de Vries <tom@codesourcery.com>
16325 * final.c (get_call_fndecl): Declare.
16326 (self_recursive_call_p): New function.
16327 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
16329 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16331 * ipa-devirt.c (record_node): Walk through aliases.
16333 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16335 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
16337 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16340 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16342 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16344 * ipa-visibility.c (function_and_variable_visibility): Remove
16345 temporary hack disabling local aliases on AIX.
16347 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16349 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
16350 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
16352 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16354 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
16355 * rs6000/rs6000.c: Inline output of .set instruction.
16356 (declare_alias_data): New struct.
16357 (rs6000_declare_alias): New function.
16358 (rs6000_xcoff_declare_function_name): Use it.
16359 (rs6000_xcoff_declare_object_name): New function.
16360 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
16361 (ASM_OUTPUT_DEF): Turn to empty definition.
16363 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
16366 * hash-table.h: use hash_table::value_type instead of
16367 Descriptor::value_type in the return types of several methods.
16369 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
16371 * tree-pass.h (pass_data): Remove has_execute member.
16372 * passes.c (execute_one_pass): Don't check pass->has_execute.
16373 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16374 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16375 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16376 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16377 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16378 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
16379 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
16380 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
16381 gimple-low.c, gimple-ssa-isolate-paths.c,
16382 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
16383 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
16384 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
16385 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
16386 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
16387 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
16388 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
16389 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
16390 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
16391 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
16392 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
16393 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
16394 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16395 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16396 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16397 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16398 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16399 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16400 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16401 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16402 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16403 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16404 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
16405 web.c: Remove initializer for pass_data::has_execute.
16407 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
16409 * graphite-htab.h: Use hash_map instead of hash_table.
16410 * graphite-clast-to-gimple.c: Adjust.
16411 * passes.c: Use hash_map instead of hash_table.
16412 * sese.c: Likewise.
16413 * sese.h: Remove now unused code.
16415 2014-07-08 Sriraman Tallam <tmsriram@google.com>
16418 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
16421 2014-07-08 Jakub Jelinek <jakub@redhat.com>
16423 PR rtl-optimization/61673
16424 * combine.c (simplify_comparison): Test just mode's sign bit
16425 in tmode rather than the sign bit and any bits above it.
16427 2014-07-08 Roman Gareev <gareevroman@gmail.com>
16429 * graphite-isl-ast-to-gimple.c (generate_isl_context):
16430 Add __isl_give to the declaration.
16431 (generate_isl_schedule): Likewise.
16432 (scop_to_isl_ast): Likewise.
16434 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16436 * config/arm/arm.c (cortexa5_extra_costs): New table.
16437 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
16439 2014-07-08 Jakub Jelinek <jakub@redhat.com>
16441 PR tree-optimization/61725
16442 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
16443 range, use range_includes_zerop_p instead of integer_zerop on
16444 vr0->min, only use log2 of max if min is not negative.
16446 2014-07-08 Richard Biener <rguenther@suse.de>
16448 * tree-ssa-dom.h (loop_depth_of_name): Remove.
16449 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
16450 restriction on loop depth difference.
16451 (record_equality): Likewise.
16452 (propagate_rhs_into_lhs): Likewise. Simplify condition.
16453 (loop_depth_of_name): Remove.
16454 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
16455 restriction on loop depth difference.
16456 (init_copy_prop): Likewise.
16458 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16460 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
16462 (walk_aliased_vdefs): Likewise.
16463 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
16464 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
16465 (detect_type_change_from_memory_writes): Check if entry was reached.
16467 2014-07-08 Richard Biener <rguenther@suse.de>
16469 PR tree-optimization/61681
16470 * tree-ssa-structalias.c (find_what_var_points_to): Expand
16471 NONLOCAL inside ESCAPED.
16473 2014-07-08 Richard Biener <rguenther@suse.de>
16475 PR tree-optimization/61680
16476 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16477 Handle properly all read-write dependences with group accesses.
16479 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
16481 PR tree-optimization/61576
16482 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
16483 block containing reduction statement is predecessor of phi basi block.
16485 2014-07-08 Marek Polacek <polacek@redhat.com>
16488 * fold-const.c (round_up_loc): Change the parameter type.
16490 * fold-const.h (round_up_loc): Adjust declaration.
16491 * stor-layout.c (finalize_record_size): Check for too large types.
16493 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
16495 * symtab.c: Include calls.h.
16496 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
16498 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
16500 * config/rs6000/rs6000.c (output_vec_const_move): Handle
16501 little-endian code generation.
16502 * config/rs6000/spe.md (spe_evmergehi): Rename to...
16503 (vec_perm00_v2si): ... this. Handle little-endian code generation.
16504 (spe_evmergehilo): Rename to...
16505 (vec_perm01_v2si): ... this. Handle little-endian code generation.
16506 (spe_evmergelo): Rename to...
16507 (vec_perm11_v2si): ... this. Handle little-endian code generation.
16508 (spe_evmergelohi): Rename to...
16509 (vec_perm10_v2si): ... this. Handle little-endian code generation.
16510 (spe_evmergehi, spe_evmergehilo): New expanders.
16511 (spe_evmergelo, spe_evmergelohi): Likewise.
16512 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
16513 (*frob_tf_ti): Likewise.
16514 (*frob_<mode>_di_2): Likewise.
16515 (*frob_tf_di_8_2): Likewise.
16516 (*frob_di_<mode>): Likewise.
16517 (*frob_ti_tf): Likewise.
16518 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
16519 (*frob_ti_<mode>_8_2): Likewise.
16520 (*frob_ti_tf_2): Likewise.
16521 (mov_si<mode>_e500_subreg0): Rename to...
16522 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
16524 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
16525 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
16526 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
16527 the big endianness only.
16528 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
16529 (*mov_si<mode>_e500_subreg0_2): Rename to...
16530 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
16531 big big endianness only.
16532 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
16533 (*mov_si<mode>_e500_subreg4): Rename to...
16534 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
16536 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
16537 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
16538 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
16539 the big endianness only.
16540 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
16542 (*mov_si<mode>_e500_subreg4_2): Rename to...
16543 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
16545 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
16546 (*mov_sitf_e500_subreg8): Rename to...
16547 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
16549 (*mov_sitf_e500_subreg8_le): New instruction pattern.
16550 (*mov_sitf_e500_subreg8_2): Rename to...
16551 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
16553 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
16554 (*mov_sitf_e500_subreg12): Rename to...
16555 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
16557 (*mov_sitf_e500_subreg12_le): New instruction pattern.
16558 (*mov_sitf_e500_subreg12_2): Rename to...
16559 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
16561 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
16563 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
16565 * asan.c (instrument_strlen_call): Do not instrument first byte
16566 in strlen if already instrumented.
16568 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16570 * config/arm/arm.opt (mwords-little-endian): Delete.
16571 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
16572 of TARGET_LITTLE_WORDS.
16573 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
16574 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
16576 * doc/invoke.texi: Remove references to -mwords-little-endian.
16578 2014-07-07 Jakub Jelinek <jakub@redhat.com>
16580 * expmed.c (struct init_expmed_rtl): Change all fields but
16581 pow2 and cint from struct rtx_def to rtx.
16582 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
16583 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
16586 2014-07-06 Marek Polacek <polacek@redhat.com>
16589 * doc/invoke.texi: Document -Wsizeof-array-argument.
16591 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16593 * wide-int.h (wide_int_storage): Change declaration from struct
16596 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
16598 * cgraph.c (cgraph_create_indirect_edge): Update call of
16599 get_polymorphic_call_info.
16600 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
16601 (possible_polymorphic_call_targets): Add parameter call.
16602 (decl_maybe_in_construction_p): New predicate.
16603 (get_polymorphic_call_info): Add parameter call;
16604 use decl_maybe_in_construction_p.
16605 * gimple-fold.c (fold_gimple_assign): Update use of
16606 possible_polymorphic_call_targets.
16607 (gimple_fold_call): Likewise.
16608 * ipa-prop.c: Inlcude calls.h
16609 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
16610 (param_type_may_change_p): New predicate.
16611 (detect_type_change_from_memory_writes): Break out from ...
16612 (detect_type_change): ... this one; use param_type_may_change_p.
16613 (detect_type_change_ssa): Use param_type_may_change_p.
16614 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
16616 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
16619 * config/arm/arm-protos.h (arm_legitimate_address_p,
16620 arm_is_constant_pool_ref): Add prototypes.
16621 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
16622 (arm_is_constant_pool_ref) New function.
16623 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
16624 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
16625 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
16626 operand. Remove pool_range and neg_pool_range attributes.
16627 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
16628 pool_range and neg_pool_range attributes.
16629 * config/arm/constraints.md (Uh): New constraint.
16630 (Uq): Don't allow constant pool references.
16632 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
16634 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
16635 (move_lo_quad_internal_be_<mode>): Likewise.
16636 (move_lo_quad_<mode>): Convert to define_expand.
16637 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
16638 (aarch64_simd_move_hi_quad_be_<mode>): New.
16639 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
16640 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
16641 (aarch64_combinez_be<mode>): New.
16642 (aarch64_combine<mode>): Convert to define_expand.
16643 (aarch64_combine_internal<mode>): New.
16644 (aarch64_simd_combine<mode>): Remove bogus RTL description.
16646 2014-07-04 Tom de Vries <tom@codesourcery.com>
16648 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
16649 combination of earlyclobber and read/write modifiers.
16651 2014-07-04 Tom de Vries <tom@codesourcery.com>
16653 * config/aarch64/aarch64-simd.md
16654 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
16656 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
16659 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
16661 2014-07-04 Jakub Jelinek <jakub@redhat.com>
16663 PR middle-end/61654
16664 * cgraphunit.c (expand_thunk): Call free_dominance_info.
16666 PR tree-optimization/61684
16667 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
16668 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
16670 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16671 Kito Cheng <kito@0xlab.org>
16672 Monk Chiang <sh.chiang04@gmail.com>
16674 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
16675 (nds32_symbol_load_store_p): Move to ...
16676 (nds32_fp_as_gp_check_available): Move to ...
16677 * config/nds32/nds32-fp-as-gp.c: ... here.
16678 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
16679 extern declaration.
16681 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16682 Kito Cheng <kito@0xlab.org>
16683 Monk Chiang <sh.chiang04@gmail.com>
16685 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
16686 (nds32_expand_store_multiple): Move to ...
16687 (nds32_expand_movmemqi): Move to ...
16688 * config/nds32/nds32-memory-manipulation.c: ... here.
16690 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16691 Kito Cheng <kito@0xlab.org>
16692 Monk Chiang <sh.chiang04@gmail.com>
16694 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
16695 (nds32_output_casesi_pc_relative): Move to ...
16696 (nds32_output_casesi): Move to ...
16697 (nds32_mem_format): Move to ...
16698 (nds32_output_16bit_store): Move to ...
16699 (nds32_output_16bit_load): Move to ...
16700 (nds32_output_32bit_store): Move to ...
16701 (nds32_output_32bit_load): Move to ...
16702 (nds32_output_32bit_load_s): Move to ...
16703 (nds32_output_stack_push): Move to ...
16704 (nds32_output_stack_pop): Move to ...
16705 * config/nds32/nds32-md-auxiliary.c: ... here.
16707 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16708 Ling-Hua Tseng <uranus@tinlans.org>
16710 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
16711 the purpose of this file.
16713 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16714 Kito Cheng <kito@0xlab.org>
16715 Monk Chiang <sh.chiang04@gmail.com>
16717 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
16718 (nds32_address_cost): Move implementation to ...
16719 * config/nds32/nds32-cost.c: ... here.
16720 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
16721 (nds32_address_cost_impl): Declare.
16723 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16724 Kito Cheng <kito@0xlab.org>
16725 Monk Chiang <sh.chiang04@gmail.com>
16727 * config/nds32/nds32.c
16728 (nds32_consecutive_registers_load_store_p): Move to ...
16729 (nds32_valid_multiple_load_store): Move to ...
16730 (nds32_valid_stack_push_pop): Move to ...
16731 (nds32_can_use_bclr_p): Move to ...
16732 (nds32_can_use_bset_p): Move to ...
16733 (nds32_can_use_btgl_p): Move to ...
16734 (nds32_can_use_bitci_p): Move to ...
16735 * config/nds32/nds32-predicates.c: ... here.
16737 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16738 Kito Cheng <kito@0xlab.org>
16739 Monk Chiang <sh.chiang04@gmail.com>
16741 * config/nds32/nds32.c
16742 (nds32_expand_builtin_null_ftype_reg): Move to ...
16743 (nds32_expand_builtin_reg_ftype_imm): Move to ...
16744 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
16745 (nds32_init_builtins): Move implementation to ...
16746 (nds32_expand_builtin): Move implementation to ...
16747 * config/nds32/nds32-intrinsic.c: ... here.
16748 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
16749 (nds32_expand_builtin_impl): Declare.
16751 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16752 Kito Cheng <kito@0xlab.org>
16753 Monk Chiang <sh.chiang04@gmail.com>
16755 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
16756 (nds32_emit_section_tail_template): Move to ...
16757 (nds32_emit_isr_jmptbl_section): Move to ...
16758 (nds32_emit_isr_vector_section): Move to ...
16759 (nds32_emit_isr_reset_conten): Move to ...
16760 (nds32_check_isr_attrs_conflict): Move to ...
16761 (nds32_construct_isr_vectors_information): Move to ...
16762 (nds32_asm_file_start): Move implementation to ...
16763 (nds32_asm_file_end): Move implementation to ...
16764 * config/nds32/nds32-isr.c: ... here.
16765 * config/nds32/nds32-protos.h
16766 (nds32_check_isr_attrs_conflict): Declare.
16767 (nds32_construct_isr_vectors_information): Declare.
16768 (nds32_asm_file_start_for_isr): Declare.
16769 (nds32_asm_file_end_for_isr): Declare.
16771 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16772 Kito Cheng <kito@0xlab.org>
16773 Monk Chiang <sh.chiang04@gmail.com>
16775 * config.gcc (nds32*): Add new modules to extra_objs.
16776 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
16777 (nds32be-*-*): Likewise.
16778 * config/nds32/nds32-cost.c: New file.
16779 * config/nds32/nds32-fp-as-gp.c: New file.
16780 * config/nds32/nds32-intrinsic.c: New file.
16781 * config/nds32/nds32-isr.c: New file.
16782 * config/nds32/nds32-md-auxiliary.c: New file.
16783 * config/nds32/nds32-memory-manipulation.c: New file.
16784 * config/nds32/nds32-pipelines-auxiliary.c: New file.
16785 * config/nds32/nds32-predicates.c: New file.
16786 * config/nds32/t-nds32: New file.
16788 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16790 PR tree-optimization/61682
16791 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
16792 using cases and when one of the operands is equal to 1.
16794 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
16796 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
16797 ashr<mode>3): Correct mode of operands[2].
16798 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
16799 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
16800 Correct mode of operands[2]. Fix split condition.
16802 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
16804 * arm.md (arch): Add armv6_or_vfpv3.
16805 (arch_enabled): Add test for the above.
16806 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
16808 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
16810 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16812 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
16813 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
16814 HWI 1 and negate the unsigned value.
16815 * expmed.c (expand_sdiv_pow2): For modes wider than word always
16816 use AND instead of shift.
16817 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
16819 2014-07-03 Marek Polacek <polacek@redhat.com>
16821 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
16822 (-fsanitize=float-divide-by-zero): Move to the table with
16823 -fsanitize=undefined suboptions.
16824 (-fsanitize=float-cast-overflow): Likewise.
16826 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
16828 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
16829 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
16832 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16834 * loop-invariant.c (struct invariant): Add a new member: eqno;
16835 (find_identical_invariants): Update eqno;
16836 (create_new_invariant): Init eqno;
16837 (get_inv_cost): Compute comp_cost with eqno;
16839 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16841 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
16842 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
16843 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
16844 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
16845 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
16847 2014-07-02 Christian Bruel <christian.bruel@st.com>
16851 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
16852 (make_preds_opaque): Delete.
16853 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
16854 (commit_mode_sets): New function.
16855 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
16856 Process all modes at once.
16857 * basic-block.h (pre_edge_lcm_avs): Declare.
16858 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
16859 Call clear_aux_for_edges. Fix comments.
16860 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
16861 (pre_edge_rev_lcm): Idem.
16862 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
16864 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
16865 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
16867 * config/i386/i386.c (x96_emit_mode_set): Idem.
16868 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
16869 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
16870 (fpscr_toggle) Disallow from delay slot.
16871 * target.def (emit_mode_set): Add prev_mode parameter.
16872 * doc/tm.texi: Regenerate.
16874 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16876 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
16879 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
16881 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
16882 vtable_pointer_value_to_vtable): Constify.
16883 (contains_polymorphic_type_p): Declare.
16884 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
16885 vtable_pointer_value_to_vtable): Constify.
16886 (contains_polymorphic_type_p): New predicate.
16887 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
16889 (ipa_set_ancestor_jf): Likewise.
16890 (detect_type_change): Return false in easy cases.
16891 (compute_complex_assign_jump_func): Require type to contain
16893 (compute_known_type_jump_func): Likewise.
16895 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
16897 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
16899 (type_in_anonymous_namespace_p): Constify argument.
16900 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
16901 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
16902 (main_odr_variant): New function.
16903 (hash_type_name): Make static; update assert; do not ICE on
16905 (types_same_for_odr): Bring here from tree.c; simplify and remove
16906 old structural comparing code that doesn't work for templates.
16907 (odr_hasher::equal): Update assert.
16908 (add_type_duplicate): Return true when bases should be computed;
16909 replace incomplete loader by complete; do not output duplicated
16910 warnings; do not ICE on non-records; set odr_violated flag.
16911 (get_odr_type): Be ready to replace incomplete type by complete
16912 one; work on ODR variants instead of main variants; reorder item
16913 in array so bases have still smaller indexes.
16914 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
16915 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
16917 2014-07-01 Cary Coutant <ccoutant@google.com>
16919 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16921 (resolve_addr_in_expr): When replacing the rtx in a location list
16922 entry, get a new address table entry.
16923 (dwarf2out_finish): Call index_location_lists even if there are no
16924 addr_index_table entries yet.
16926 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
16928 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16929 change for not being obvious.
16931 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
16933 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16936 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16938 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16939 (vcagt_f64): Likewise.
16940 (vcale_f64): Likewise.
16941 (vcaled_f64): Likewise.
16942 (vcales_f32): Likewise.
16943 (vcalt_f64): Likewise.
16944 (vcaltd_f64): Likewise.
16945 (vcalts_f32): Likewise.
16947 2014-07-01 Marek Polacek <polacek@redhat.com>
16949 * doc/invoke.texi: Document -Wint-conversion.
16951 2014-07-01 Marek Polacek <polacek@redhat.com>
16954 * doc/invoke.texi: Document -Wincompatible-pointer-types.
16956 2014-07-01 Martin Liska <mliska@suse.cz>
16958 IPA REF alias refactoring
16959 * cgraph.h (iterate_direct_aliases): New function.
16960 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16961 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16962 FOR_EACH_ALIAS added.
16963 (cgraph_for_node_and_aliases): Likewise.
16964 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16965 * ipa-inline.c (reset_edge_caches): Likewise.
16966 (update_caller_keys): Likewise.
16967 * trans-mem.c (ipa_tm_execute): Likewise.
16968 *varpool.c (varpool_analyze_node): Likewise.
16969 (varpool_for_node_and_aliases): Likewise.
16970 * ipa-ref.h (first_alias): New function.
16971 (last_alias): Likewise.
16972 (has_aliases_p): Likewise.
16973 * ipa-ref.c (ipa_ref::remove_reference): Removal function
16974 is sensitive to IPA_REF_ALIASes.
16975 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16976 are put at the beginning of the list.
16977 (symtab_node::iterate_direct_aliases): New function.
16979 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16982 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16984 (write_ts_type_common_tree_pointers): Do not stream fields not set
16985 for incomplete types; do not stream duplicated fields for variants;
16986 sanity check that variant and type match.
16987 (write_ts_type_non_common_tree_pointers): Likewise.
16988 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16989 TYPE_SIZE whether type is complete.
16990 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16991 write_ts_type_common_tree_pointers
16992 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16994 2014-06-30 Joseph Myers <joseph@codesourcery.com>
16996 * var-tracking.c (add_stores): Return instead of asserting if old
16997 and new values for conditional store are the same.
16999 2014-06-30 Richard Henderson <rth@redhat.com>
17003 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
17004 the cfg if there were any changes.
17005 * passes.def: Revert move of peephole2 after reorder_blocks;
17006 move duplicate_computed_gotos before peephole2.
17008 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
17010 * except.c (emit_note_eh_region_end): New helper function.
17011 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
17012 emit EH_REGION_END note.
17013 * jump.c (cleanup_barriers): Do not split a call and its
17014 corresponding CALL_ARG_LOCATION note.
17016 2014-06-30 Jeff Law <law@redhat.com>
17018 PR tree-optimization/61607
17019 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
17020 deeper into the SSA_NAME_VALUE chain.
17022 2014-06-30 Marek Polacek <polacek@redhat.com>
17024 * convert.c (convert_to_integer): Don't instrument conversions if the
17025 function has no_sanitize_undefined attribute.
17026 * ubsan.c: Don't run the ubsan pass if the function has
17027 no_sanitize_undefined attribute.
17029 2014-06-30 Jakub Jelinek <jakub@redhat.com>
17031 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
17032 -fsanitize=undefined suboptions.
17034 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
17036 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
17037 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
17038 against bigendian and adjust indices.
17040 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
17042 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
17044 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
17047 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
17048 Add alternative; make early clobber. Adjust both split patterns
17049 to use operand 0 as the working register.
17051 2014-06-30 Jakub Jelinek <jakub@redhat.com>
17053 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
17054 as ira_object_id_map might be NULL, or 1.
17056 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17058 * loop-invariant.c (get_inv_cost): Handle register class.
17059 (gain_for_invariant): Check the register pressure of the inv
17060 and its overlapped register class, other than all.
17062 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
17064 * doc/invoke.texi (Optimize Options): Fix descriptions of
17065 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
17067 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
17069 * doc/extend.texi (Function Attributes): Update 'naked' attribute
17072 2014-06-29 Tobias Grosser <tobias@grosser.es>
17075 * graphite-isl-ast-to-gimple.c: Add missing guards.
17077 2014-06-29 Roman Gareev <gareevroman@gmail.com>
17079 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
17080 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
17081 * flag-types.h: Add new enum fgraphite_generator.
17082 * graphite-isl-ast-to-gimple.c: New.
17083 * graphite-isl-ast-to-gimple.h: New.
17084 * graphite.c (graphite_transform_loops): Add choice of Graphite
17085 code generator, which depends on flag_graphite_code_gen.
17087 2014-06-29 Roman Gareev <gareevroman@gmail.com>
17089 * graphite-dependences.c (subtract_commutative_associative_deps):
17090 Add NULL checking of the following variables: must_raw_no_source,
17091 may_raw_no_source, must_war_no_source, may_war_no_source,
17092 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
17093 must_war, may_war, must_waw, may_waw.
17095 2014-06-29 Roman Gareev <gareevroman@gmail.com>
17097 * graphite-clast-to-gimple.c: gloog is renamed to
17098 graphite_regenerate_ast_cloog. gloog_error is renamed to
17099 graphite_regenerate_error.
17100 * graphite-clast-to-gimple.h: The definition of the struct
17101 bb_pbb_def is moved to graphite-htab.h.
17102 Add inclusion of the hash-table.h.
17103 * graphite-htab.h: The declaration of the function gloog is moved
17104 to graphite-clast-to-gimple.h and renamed to
17105 graphite_regenerate_ast_cloog.
17106 * graphite.c (graphite_transform_loops): gloog is renamed
17107 to graphite_regenerate_ast_cloog.
17109 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
17111 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
17113 (write_ts_type_common_tree_pointers): Do not stream fields not set
17114 for incomplete types; do not stream duplicated fields for variants;
17115 sanity check that variant and type match.
17116 (write_ts_type_non_common_tree_pointers): Likewise.
17117 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
17118 TYPE_SIZE whether type is complete.
17119 (lto_input_ts_type_common_tree_pointers): Do same changes as in
17120 write_ts_type_common_tree_pointers
17121 (lto_input_ts_type_non_common_tree_pointers): Likewise.
17123 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
17125 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
17127 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
17129 * tree-inline.c (remap_type_1): Do not duplicate fields
17130 that are shared in between type and its main variant.
17132 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
17134 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
17136 (ipa_set_ancestor_jf) Likewise.
17137 (check_stmt_for_type_change): Check that we work on main variant.
17138 (detect_type_change): Look into main variant.
17139 (compute_known_type_jump_func): Check that main variant has BINFO.
17141 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
17143 * ipa-devirt.c (set_type_binfo): New function.
17144 (add_type_duplicate): Use it.
17145 (get_odr_type): Sanity check that binfos points to main variants.
17146 (get_class_context): Be sure the context's outer_type is main variant.
17147 (contains_type_p): Walk main variant.
17148 (get_polymorphic_call_info_for_decl): Set outer_type to be
17150 (get_polymorphic_call_info): Likewise.
17151 (possible_polymorphic_call_targets): Sanity check that we operate
17154 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
17156 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17158 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17160 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
17161 accidental change due to wide-int branch merge.
17163 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17165 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
17166 compressed debug support.
17167 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
17168 * configure: Regenerate.
17169 * config.in: Regenerate.
17170 * common.opt (compressed_debug_sections): New enum.
17171 (gz, gz=): New options.
17172 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
17173 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
17174 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
17175 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
17176 LINK_COMPRESS_DEBUG_SPEC.
17177 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
17178 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
17179 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
17180 (Debugging Options): Document -gz[=type].
17182 2014-06-27 Martin Jambor <mjambor@suse.cz>
17185 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
17186 args_to_skip, use those from node instead. Copy args_to_skip and
17187 combined_args_to_skip from node to the new thunk.
17188 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
17189 (cgraph_create_virtual_clone): Moved computation of
17190 combined_args_to_skip...
17191 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
17193 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
17195 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
17196 redundant diagnostic machinary.
17198 2014-06-27 Richard Biener <rguenther@suse.de>
17200 * tree-ssa-math-opts.c (bswap_replace): Fix
17201 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
17203 2014-06-27 Martin Liska <mliska@suse.cz>
17205 * gimple.h (gimple_location_safe): New function introduced.
17206 * cgraphunit.c (walk_polymorphic_call_targets): Usage
17207 of gimple_location_safe replaces gimple_location.
17208 (gimple_fold_call): Likewise.
17209 * ipa-devirt.c (ipa_devirt): Likewise.
17210 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17211 * ipa.c (walk_polymorphic_call_targets): Likewise.
17212 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
17214 2014-06-27 Jakub Jelinek <jakub@redhat.com>
17216 PR tree-optimization/57233
17217 PR tree-optimization/61299
17218 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
17220 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
17221 would be lowered to scalar shifts, check if corresponding
17222 shifts and vector BIT_IOR_EXPR are supported and don't lower
17223 or lower just to narrower vector type in that case.
17224 * expmed.c (expand_shift_1): Fix up handling of vector
17225 shifts and rotates.
17227 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
17230 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
17232 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
17234 * doc/invoke.texi (-fsemantic-interposition): Document.
17235 * common.opt (fsemantic-interposition): New flag.
17236 * varasm.c (decl_replaceable_p): Use it.
17238 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17241 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
17242 extraction other than index 3.
17244 2014-06-26 Teresa Johnson <tejohnson@google.com>
17246 * doc/invoke.texi: Fix typo.
17247 * dumpfile.c: Add support for documented -fdump-* options
17248 optimized/missed/note/optall.
17250 2014-06-26 Martin Jambor <mjambor@suse.cz>
17252 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
17253 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
17254 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
17255 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
17256 * opts.c (default_options_optimization): Set
17257 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
17258 * doc/invoke.texi (allow-load-data-races)
17259 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
17260 (allow-store-data-races): Document the new default.
17262 2014-06-26 Martin Jambor <mjambor@suse.cz>
17264 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
17265 renamed to ipa_impossible_devirt_target. Fix typo.
17266 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
17267 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
17268 ipa_impossible_devirt_target.
17270 2014-06-26 Richard Biener <rguenther@suse.de>
17272 PR tree-optimization/61607
17273 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
17274 explaining why we restrict copies on loop depth.
17275 * tree-ssa-dom.c (cprop_operand): Remove restriction on
17277 (record_equivalences_from_phis): Instead add it here.
17279 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
17281 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
17282 (LTO_WRAPPER_OBJS): New variable.
17283 (lto-wrapper$(exeext)): Use it.
17284 * collect2.c: Include "collect-utils.h".
17285 (verbose, debug): Remove variables.
17286 (at_file_supplied): No longer static.
17287 (tool_name): New variable.
17288 (do_wait, fork_execute, maybe_unlink): Don't declare.
17289 (tool_cleanup): No longer static.
17290 (notice): Remove function.
17291 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
17292 fork_execute calls.
17293 (collect_wait, do_wait, collect_execute): Remove functions.
17294 (maybe_unlink): No longer static.
17295 * collect2.h (verbose, debug): Don't declare.
17296 (at_file_supplied): Declare.
17297 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
17299 (collect_execute): Replace with implementation from collect2, plus a
17300 new arg use_atfile. All callers changed.
17301 (collect_wait): Replace with implementation from collect2.
17302 (maybe_unlink_file): Remove function.
17303 (fork_execute): Replace with implementation from collect2, plus a
17304 new arg use_atfile. All callers changed.
17305 (do_wait): Add call to utils_cleanup to the error path.
17306 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
17307 (tool_cleanup): Adjust declarations.
17308 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
17309 * tlink.c: Include "collect-utils.h".
17310 (tlink_execute): New arg use_atfile. All callers changed.
17311 (tlink_init, tlink_execute): Remove declarations.
17313 * collect-utils.c (save_temps): New variable.
17314 (do_wait): Use it instead of debug. Use fatal_error.
17315 * collect-utils.h (save_temps): Declare.
17316 * collect2.c (verbose): Rename from vflag. All uses changed.
17317 (tool_cleanup): New function, copied from collect_atexit.
17318 (collect_atexit, handler): Just call it.
17319 * collect2.h (verbose): Declaration renamed from vflag.
17320 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
17323 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
17324 (lto-wrapper$(exeext)): Link with collect-utils.o.
17325 * collect-utils.c: New file.
17326 * collect-utils.h: New file.
17327 * lto-wrapper.c: Include "collect-utils.h".
17328 (args_name): Delete variable.
17329 (tool_name): New variable.
17330 (tool_cleanup): New function.
17331 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
17332 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
17333 (fork_execute): Remove functions.
17335 2014-06-26 Nick Clifton <nickc@redhat.com>
17337 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
17339 * doc/extend.texi (Function Attributes): Fix typo in description
17340 of RX vector attribute.
17342 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17344 * config.gcc (supported_defaults): Error when passing either
17345 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
17347 2014-06-26 Richard Biener <rguenther@suse.de>
17349 * tree-ssa-dom.c (cprop_operand): Remove restriction on
17350 propagating volatile pointers.
17352 2014-06-26 Richard Biener <rguenther@suse.de>
17354 PR tree-optimization/61607
17355 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
17356 loop if we redirected its latch edge.
17357 (thread_block_1): Do not cancel loops prematurely.
17359 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
17361 * toplev.c (backend_init_target): Move init_emit_regs and
17363 (backend_init) ... here; skip ira_init_once and backend_init_target.
17364 (target_reinit) ... and here; clear
17365 this_target_rtl->lang_dependent_initialized.
17366 (lang_dependent_init_target): Clear
17367 this_target_rtl->lang_dependent_initialized;
17368 break out rtl initialization to ...
17369 (initialize_rtl): ... here; call also backend_init_target
17371 * toplev.h (initialize_rtl): New function.
17372 * function.c: Include toplev.h
17373 (init_function_start): Call initialize_rtl.
17374 * rtl.h (target_rtl): Add target_specific_initialized,
17375 lang_dependent_initialized.
17377 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
17378 Jakub Jelinek <jakub@redhat.com>
17380 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
17382 2014-06-25 Tom de Vries <tom@codesourcery.com>
17384 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
17386 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
17388 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
17389 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
17390 Issue a strict overflow warning if appropriate.
17392 2014-06-25 Martin Liska <mliska@suse.cz>
17394 IPA REF refactoring
17395 * Makefile.in: Removed header file (ipa-ref-inline.h).
17396 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
17398 (cgraph_speculative_call_info): Likewise.
17399 (cgraph_for_node_thunks_and_aliases): Likewise.
17400 (cgraph_for_node_and_aliases): Likewise.
17401 (verify_cgraph_node): Likewise.
17402 * cgraph.h: Batch of IPA REF functions become member functions of
17403 symtab_node: add_reference, maybe_add_reference, clone_references,
17404 clone_referring, clone_reference, find_reference,
17405 remove_stmt_references, remove_all_references,
17406 remove_all_referring, dump_references, dump_referring,
17407 has_alias_p, iterate_reference, iterate_referring.
17408 * cgraphbuild.c (record_reference): New IPA REF function used.
17409 (record_type_list): Likewise.
17410 (record_eh_tables): Likewise.
17411 (mark_address): Likewise.
17412 (mark_load): Likewise.
17413 (mark_store): Likewise.
17414 (pass_build_cgraph_edges): Likewise.
17415 (rebuild_cgraph_edge): Likewise.
17416 (cgraph_rebuild_references): Likewise.
17417 (pass_remove_cgraph_callee_edges): Likewise.
17418 * cgraphclones.c (cgraph_clone_node): Likewise.
17419 (cgraph_create_virtual_clone): Likewise.
17420 (cgraph_materialize_clone): Likewise.
17421 (cgraph_materialize_all_clones): Likewise.
17422 * cgraphunit.c (cgraph_reset_node): Likewise.
17423 (cgraph_reset_node): Likewise.
17424 (analyze_function): Likewise.
17425 (assemble_thunks_and_aliases): Likewise.
17426 (expand_function): Likewise.
17427 * ipa-comdats.c (propagate_comdat_group): Likewise.
17428 (enqueue_references): Likewise.
17429 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
17430 (create_specialized_node): Likewise.
17431 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
17432 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
17433 * ipa-inline.c (reset_edge_caches): Likewise.
17434 (update_caller_keys): Likewise.
17435 (execute): Likewise.
17436 * ipa-prop.c (remove_described_reference): Likewise.
17437 (propagate_controlled_uses): Likewise.
17438 (ipa_edge_duplication_hook): Likewise.
17439 (ipa_modify_call_arguments): Likewise.
17440 * ipa-pure-const.c (propagate_pure_const): Likewise.
17441 * ipa-ref-inline.h: Header file removed, functions moved
17442 to symtab_node class.
17443 * ipa-ref.c (remove_reference): New class member function.
17444 (cannot_lead_to_return): New class member function.
17445 (referring_ref_list): Likewise.
17446 (referred_ref_list): Likewise.
17447 Rest of functions moved to symtab_node class.
17448 * ipa-ref.h: New member functions remove_reference,
17449 cannot_lead_to_return, referring_ref_list, referred_ref_list added
17451 ipa_ref_list class has new member functions: first_reference,
17452 first_referring, clear, nreferences.
17453 * ipa-reference.c (analyze_function): New IPA REF function used.
17454 (write_node_summary_p): Likewise.
17455 (ipa_reference_write_optimization_summary): Likewise.
17456 * ipa-split.c (split_function): Likewise.
17457 * ipa-utils.c (ipa_reverse_postorder): Likewise.
17458 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
17459 (function_and_variable_visibility): Likewise.
17460 * ipa.c (has_addr_references_p): Likewise.
17461 (process_references): Argument type changed.
17462 (symtab_remove_unreachable_nodes): New IPA REF function used.
17463 (process_references): Likewise.
17464 (set_writeonly_bit): Likewise.
17465 * lto-cgraph.c: Implementation of new symtab_node member functions
17466 that uses new IPA REF functions.
17467 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
17469 * lto-streamer-out.c (output_symbol_p): Likewise.
17470 * lto-streamer.h (referenced_from_this_partition_p): Argument type
17472 * symtab.c: Implementation of new IPA REF API.
17473 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
17474 (ipa_tm_create_version): Likewise.
17475 (ipa_tm_execute): Likewise.
17476 * tree-emutls.c (gen_emutls_addr): Likewise.
17477 * tree-inline.c (copy_bb): Likewise.
17478 (delete_unreachable_blocks_update_callgraph): Likewise.
17479 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
17480 (varpool_for_node_and_aliases): Likewise.
17482 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
17484 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
17486 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
17489 * fold-const.c (fold_checksum_tree): Use a hash_table of const
17490 tree_node * instead of tree_node *.
17492 (print_fold_checksum): Likewise.
17493 (fold_check_failed): Likewise.
17494 (debug_fold_checksum): Likewise.
17495 (fold_build1_stat_loc): Likewise.
17496 (fold_build2_stat_loc): Likewise.
17497 (fold_build3_stat_loc): Likewise.
17498 (fold_build_call_array_loc): Likewise.
17500 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
17502 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
17503 implementation with call to...
17504 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
17506 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
17509 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
17511 PR tree-optimization/57742
17512 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
17513 after replacing the statement.
17515 2014-06-25 Nick Clifton <nickc@redhat.com>
17517 * config/v850/v850.c (GHS_default_section_names): Change to const
17519 (GHS_current_section_names): Likewise.
17520 (v850_insert_attributes): Do not build strings, just assign the
17521 names directly. Change the type of 'chosen_section' to const
17523 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
17524 directly to the array entry.
17525 * config/v850/v850.h (GHS_default_section_names): Change to const
17527 (GHS_current_section_names): Likewise.
17529 2014-06-25 Jakub Jelinek <jakub@redhat.com>
17531 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
17532 (LANG_HOOKS_DECLS): Add it.
17533 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
17535 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
17536 * langhooks.h (struct lang_hooks_for_decls): Add
17537 omp_clause_linear_ctor hook.
17538 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
17539 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
17540 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
17541 combined simd loop use omp_clause_linear_ctor hook.
17543 2014-06-24 Cong Hou <congh@google.com>
17545 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
17546 pattern recognition.
17547 (type_conversion_p): PROMOTION is true if it's a type promotion
17548 conversion, and false otherwise. Return true if the given expression
17549 is a type conversion one.
17550 * tree-vectorizer.h: Adjust the number of patterns.
17551 * tree.def: Add SAD_EXPR.
17552 * optabs.def: Add sad_optab.
17553 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
17554 * expr.c (expand_expr_real_2): Likewise.
17555 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
17556 * gimple.c (get_gimple_rhs_num_ops): Likewise.
17557 * optabs.c (optab_for_tree_code): Likewise.
17558 * tree-cfg.c (estimate_operator_cost): Likewise.
17559 * tree-ssa-operands.c (get_expr_operands): Likewise.
17560 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
17561 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
17562 * doc/generic.texi: Add document for SAD_EXPR.
17563 * doc/md.texi: Add document for ssad and usad.
17565 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17567 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
17568 qualification in cast.
17570 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
17572 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
17573 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
17574 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
17575 (tree_function_decl): ... here.
17576 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
17577 streaming of vindex to ...
17578 (write_ts_function_decl_tree_pointers): ... here.
17579 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17580 Do not stream DECL_VINDEX.
17581 (lto_input_ts_function_decl_tree_pointers): Stream it here.
17583 2014-06-24 Catherine Moore <clm@codesourcery.com>
17584 Sandra Loosemore <sandra@codesourcery.com>
17586 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
17587 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
17588 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
17590 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
17592 * doc/invoke.texi (Warning Options): Remove duplicated
17593 -Wmaybe-uninitialized.
17595 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
17597 PR tree-optimization/57742
17598 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
17599 (handle_builtin_malloc, handle_builtin_memset): New functions.
17600 (strlen_optimize_stmt): Call them.
17601 * passes.def: Move strlen after loop+dom but before vrp.
17603 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17606 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
17607 model family 6 CPU with has_longmode never use a CPU without
17610 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
17613 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
17616 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17618 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
17619 * dominance.c (iterate_fix_dominators): Use hash_map instead of
17621 * hash-map.h: New file.
17622 * ipa-comdats.c: Use hash_map instead of pointer_map.
17624 * lto-section-out.c: Adjust.
17625 * lto-streamer.h: Replace pointer_map with hash_map.
17626 * symtab.c (verify_symtab): Likewise.
17627 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
17628 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
17629 * tree-streamer.h: Likewise.
17630 * tree-streamer.c: Adjust.
17631 * pointer-set.h: Remove pointer_map.
17633 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17635 * hash-table.h: Add a template arg to choose between storing values
17636 and storing pointers to values, and then provide partial
17637 specializations for both.
17638 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
17639 should store, not the type values should point to.
17640 * tree-into-ssa.c (var_info_hasher): Likewise.
17641 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17642 * tree-complex.c: Adjust.
17643 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
17644 table instead of int_tree_map *.
17645 * tree-parloops.c: Adjust.
17646 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
17647 type is being stored.
17648 * tree-vectorizer.c: Adjust.
17650 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17652 * hash-table.h: Remove a layer of indirection from hash_table so that
17653 it contains the hash table's data instead of a pointer to the data.
17654 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
17655 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
17656 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
17657 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
17658 fold-const.c, gcse.c, ggc-common.c,
17659 gimple-ssa-strength-reduction.c, gimplify.c,
17660 graphite-clast-to-gimple.c, graphite-dependences.c,
17661 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
17662 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
17663 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
17664 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
17665 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
17666 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
17667 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
17668 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
17669 tree-ssa-live.c, tree-ssa-loop-im.c,
17670 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
17671 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
17672 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
17673 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
17674 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
17675 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
17676 vtable-verify.c, vtable-verify.h: Adjust.
17678 2014-06-24 Richard Biener <rguenther@suse.de>
17680 PR tree-optimization/61572
17681 * tree-ssa-sink.c (statement_sink_location): Do not sink
17682 loads from hard registers.
17684 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17686 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
17687 not mentioned in clauses use private clause if the iterator is
17688 declared in #pragma omp for simd, and when adding lastprivate
17689 instead, add it to the outer #pragma omp for too. Diagnose
17690 if the variable is private in outer context. For simd collapse > 1
17691 loops, replace all iterators with temporaries.
17692 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
17693 same even in collapse > 1 loops.
17695 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
17696 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
17698 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
17699 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
17701 (gimplify_adjust_omp_clauses): Likewise.
17702 * omp-low.c (lower_rec_simd_input_clauses,
17703 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
17704 safelen the same as safelen(1).
17705 * tree-nested.c (convert_nonlocal_omp_clauses,
17706 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
17707 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
17708 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
17709 Fixup handling of GIMPLE_OMP_TARGET.
17710 (convert_tramp_reference_stmt, convert_gimple_call): Handle
17713 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
17715 PR tree-optimization/61554
17716 * tree-ssa-propagate.c: Include "bitmap.h".
17717 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
17718 properly update constructor/destructor.
17719 (substitute_and_fold_dom_walker::before_dom_children):
17720 Remove call to gimple_purge_dead_eh_edges, add bb->index to
17721 need_eh_cleaup instead.
17722 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
17725 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
17727 * varpool.c (dump_varpool_node): Dump used_by_single_function.
17728 * tree-pass.h (make_pass_ipa_single_use): New pass.
17729 * cgraph.h (used_by_single_function): New flag.
17730 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
17732 * passes.def (pass_ipa_single_use): Scedule.
17733 * ipa.c (BOTTOM): New macro.
17734 (meet): New function
17735 (propagate_single_user): New function.
17736 (ipa_single_use): New function.
17737 (pass_data_ipa_single_use): New pass.
17738 (pass_ipa_single_use): New pass.
17739 (pass_ipa_single_use::gate): New gate.
17740 (make_pass_ipa_single_use): New function.
17742 2014-06-23 Kai Tietz <ktietz@redhat.com>
17745 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
17746 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
17748 2014-06-23 Richard Biener <rguenther@suse.de>
17750 * tree-ssa-loop.c (gate_loop): New function.
17751 (pass_tree_loop::gate): Call it.
17752 (pass_data_tree_no_loop, pass_tree_no_loop,
17753 make_pass_tree_no_loop): New.
17754 * tree-vectorizer.c: Include tree-scalar-evolution.c
17755 (pass_slp_vectorize::execute): Initialize loops and SCEV if
17757 (pass_slp_vectorize::clone): New method.
17758 * timevar.def (TV_TREE_NOLOOP): New.
17759 * tree-pass.h (make_pass_tree_no_loop): Declare.
17760 * passes.def (pass_tree_no_loop): New pass group with
17763 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
17766 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
17767 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
17769 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
17771 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
17772 "yes" where needed.
17774 2014-06-23 Alan Modra <amodra@gmail.com>
17777 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
17778 to zero on debug statements.
17780 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
17783 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
17784 Ignore third operand if present by marking qualifier_internal.
17786 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
17788 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
17790 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
17791 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
17792 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
17793 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
17794 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
17795 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
17796 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
17797 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
17798 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
17799 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
17800 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
17801 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
17802 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
17803 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
17804 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
17805 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
17806 logic in GCC vector extensions
17808 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
17809 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
17810 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
17811 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
17812 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
17813 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
17814 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
17815 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
17816 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
17817 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
17819 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
17821 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
17824 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
17825 (vget_low_s64): Use __GET_LOW macro.
17826 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
17827 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
17828 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
17829 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
17830 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
17832 (vcombine_s64): Use GCC vector extensions; remove cast.
17833 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
17834 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
17835 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
17836 Fix type signature; remove cast.
17838 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
17841 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
17843 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
17845 (BUILTIN_VD1): New.
17846 (BUILTIN_VD_RE): Remove.
17847 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
17848 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
17849 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
17850 variant but not df.
17851 (vreinterpretv1df*, vreinterpret*v1df): New.
17852 (vreinterpretdf*, vreinterpret*df): Remove.
17853 * config/aarch64/aarch64-simd.md (aarch64_create,
17854 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
17855 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
17857 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
17858 (vcreate_f64): Remove cast, use v1df builtin.
17859 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
17860 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
17861 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
17862 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
17863 vmov_n_f64, vst1_f64): Use gcc vector extensions.
17864 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
17865 add range check using __builtin_aarch64_im_lane_boundsi.
17866 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
17867 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
17868 type signature, use gcc vector extensions.
17869 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
17870 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
17871 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
17872 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
17873 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
17874 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
17875 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
17876 vreinterpret_u64_f64): Use v1df builtin not df.
17878 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
17880 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
17883 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
17885 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
17888 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17890 * loop-invariant.c (pre_check_invariant_p): New function.
17891 (find_invariant_insn): Call pre_check_invariant_p.
17893 2014-06-22 Richard Henderson <rth@redhat.com>
17896 * compare-elim.c (struct comparison): Add eh_note.
17897 (find_comparison_dom_walker::before_dom_children): Don't eliminate
17898 a redundant comparison in a different EH region. Purge EH edges if
17901 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17903 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
17904 (var_shift): Use it.
17905 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
17906 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17907 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17908 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17909 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17910 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
17911 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
17912 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
17913 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
17914 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
17915 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
17916 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
17917 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17918 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17919 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17920 *rotldi3_internal15be): Use the new attribute. Merge register and
17921 integer alternatives.
17923 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17925 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17926 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17927 split, *ashrdi3_internal3 and split): Delete, merge into...
17928 (ashr<mode>3): New expander.
17929 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17930 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
17932 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17934 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17935 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17936 *rotldi3_internal3 and split): Delete, merge into...
17937 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17938 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
17939 Use "rotlw" extended mnemonic.
17941 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17943 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17944 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17945 and split, *ashldi3_internal3 and split): Delete, merge into...
17946 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17947 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
17949 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17951 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17952 (lshrsi3, two anonymous define_insns and define_splits,
17953 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17954 *lshrdi3_internal3 and split): Delete, merge into...
17955 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17956 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
17958 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17960 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17961 Remove "O" alternative.
17963 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
17965 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17966 (mips_move_from_gpr_cost): Likewise.
17967 (mips_register_move_cost): Update accordingly.
17968 (mips_secondary_reload_class): Remove name of in_p.
17970 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
17973 * config/i386/i386.md (x86_64_shrd, x86_shrd,
17974 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17976 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17978 * config/nios2/nios2.c: Include "builtins.h".
17980 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17982 * cgraph.h (tls_model_names): New variable.
17983 * print-tree.c (print_node): Simplify.
17984 * varpool.c (tls_model_names): New variable.
17985 (dump_varpool_node): Output tls model.
17987 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17989 * ipa-visibility.c (function_and_variable_visibility): Disable
17990 temporarily local aliases for some targets.
17992 2014-06-20 Marek Polacek <polacek@redhat.com>
17994 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17995 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17996 into SANITIZE_UNDEFINED.
17997 * doc/invoke.texi: Describe -fsanitize=bounds.
17998 * gimplify.c (gimplify_call_expr): Add gimplification of internal
17999 functions created in the FEs.
18000 * internal-fn.c: Move "internal-fn.h" after "tree.h".
18001 (expand_UBSAN_BOUNDS): New function.
18002 * internal-fn.def (UBSAN_BOUNDS): New internal function.
18003 * internal-fn.h: Don't define internal functions here.
18004 * opts.c (common_handle_option): Add -fsanitize=bounds.
18005 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
18006 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
18007 * tree-core.h: Define internal functions here.
18008 (struct tree_base): Add ifn field.
18009 * tree-pretty-print.c: Include "internal-fn.h".
18010 (dump_generic_node): Handle functions without CALL_EXPR_FN.
18011 * tree.c (get_callee_fndecl): Likewise.
18012 (build_call_expr_internal_loc): New function.
18013 * tree.def (CALL_EXPR): Update description.
18014 * tree.h (CALL_EXPR_IFN): Define.
18015 (build_call_expr_internal_loc): Declare.
18016 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
18018 (ubsan_type_descriptor): Change bool parameter to enum
18019 ubsan_print_style. Adjust the code. Add handling of
18021 (ubsan_expand_bounds_ifn): New function.
18022 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
18023 (ubsan_build_overflow_builtin): Likewise.
18024 (instrument_bool_enum_load): Likewise.
18025 (ubsan_instrument_float_cast): Likewise.
18026 * ubsan.h (enum ubsan_print_style): New enum.
18027 (ubsan_expand_bounds_ifn): Declare.
18028 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
18030 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
18032 * config/rs6000/rs6000.md: Append `DONE' to preparation
18033 statements of `bswap' pattern splitters.
18035 2014-06-20 Tom de Vries <tom@codesourcery.com>
18037 * target.def (call_fusage_contains_non_callee_clobbers): Update
18039 * doc/tm.texi: Regenerate.
18041 2014-06-20 Yury Gribov <y.gribov@samsung.com>
18042 Max Ostapenko <m.ostapenko@partner.samsung.com>
18045 * asan.c (instrument_strlen_call): Fixed instrumentation of
18048 2014-06-20 Martin Jambor <mjambor@suse.cz>
18051 * ipa-prop.c (impossible_devirt_target): New function.
18052 (try_make_edge_direct_virtual_call): Use it, also instead of
18055 2014-06-20 Yury Gribov <y.gribov@samsung.com>
18056 Max Ostapenko <m.ostapenko@partner.samsung.com>
18059 * asan.c (build_check_stmt): Add condition.
18061 2014-06-20 Martin Jambor <mjambor@suse.cz>
18064 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
18067 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18069 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
18071 (VCONQ): Make comment more helpful.
18073 * config/aarch64/aarch64-simd.md
18074 (aarch64_sqdmulh_lane<mode>):
18075 Use VCOND for operands 2. Update lane checking and flipping logic.
18076 (aarch64_sqrdmulh_lane<mode>): Likewise.
18077 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
18078 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
18079 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
18080 attribute of operand 3 to VCOND.
18081 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
18082 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
18083 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
18084 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
18085 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
18086 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
18088 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
18089 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
18090 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
18091 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
18092 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
18093 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
18094 operand to VCOND. Update lane flipping and bounds checking logic.
18095 (aarch64_sqdmlal2_lane<mode>): Likewise.
18096 (aarch64_sqdmlsl_lane<mode>): Likewise.
18097 (aarch64_sqdmull_lane<mode>): Likewise.
18098 (aarch64_sqdmull2_lane<mode>): Likewise.
18099 (aarch64_sqdmlal_laneq<mode>):
18100 Replace VCON usage with VCONQ.
18101 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
18102 (aarch64_sqdmlal2_laneq<mode>): Emit
18103 aarch64_sqdmlal2_laneq<mode>_internal insn.
18104 Replace VCON with VCONQ.
18105 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
18106 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18107 (aarch64_sqdmull_laneq<mode>): Emit
18108 aarch64_sqdmull_laneq<mode>_internal insn.
18109 Replace VCON with VCONQ.
18110 (aarch64_sqdmull2_laneq<mode>): Emit
18111 aarch64_sqdmull2_laneq<mode>_internal insn.
18112 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
18113 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
18114 of 3rd argument to int16x4_t.
18115 (vqdmlalh_lane_s16): Likewise.
18116 (vqdmlslh_lane_s16): Likewise.
18117 (vqdmull_high_lane_s16): Likewise.
18118 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
18119 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
18120 (vqdmlsl_lane_s16): Likewise.
18121 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
18122 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
18123 (vqdmlals_lane_s32): Likewise.
18124 (vqdmlsls_lane_s32): Likewise.
18125 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
18126 (vqdmulls_lane_s32): Likewise.
18127 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
18128 (vqdmlsl_lane_s32): Likewise.
18129 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
18130 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
18131 (vqrdmulhh_lane_s16): Likewise.
18132 (vqdmlsl_high_lane_s16): Likewise.
18133 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
18134 (vqdmlsl_high_lane_s32): Likewise.
18135 (vqrdmulhs_lane_s32): Likewise.
18137 2014-06-20 Tom de Vries <tom@codesourcery.com>
18139 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
18140 get_call_reg_set_usage.
18142 2014-06-20 Tom de Vries <tom@codesourcery.com>
18144 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
18145 it contains all call_used_regs.
18147 2014-06-20 Tom de Vries <tom@codesourcery.com>
18149 * final.c (collect_fn_hard_reg_usage): Add and use variable
18150 function_used_regs.
18152 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
18154 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
18155 (set_init_priority, get_init_priority, set_fini_priority,
18156 get_fini_priority): New methods.
18157 * tree.c (init_priority_for_decl): Remove.
18158 (init_ttree): Do not initialize init priority.
18159 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
18160 (decl_priority_info): Remove.
18161 (decl_init_priority_insert): Rewrite.
18162 (decl_fini_priority_insert): Rewrite.
18163 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
18164 tree_priority_map_marked_p): Remove.
18165 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
18166 * lto-streamer-out.c (hash_tree): Do not hash priorities.
18167 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
18168 not output priorities.
18169 (pack_ts_function_decl_value_fields): Likewise.
18170 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18171 not input priorities.
18172 (unpack_ts_function_decl_value_fields): Likewise.
18173 * symtab.c (symbol_priority_map): Declare.
18174 (init_priority_hash): Declare.
18175 (symtab_unregister_node): Unregister from priority hash, too.
18176 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
18178 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
18179 (symbol_priority_info): New function.
18180 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
18182 * tree-core.h (tree_priority_map): Remove.
18184 2014-06-20 Jakub Jelinek <jakub@redhat.com>
18186 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
18187 0xff to uint64_t before shifting it up.
18189 2014-06-20 Julian Brown <julian@codesourcery.com>
18190 Chung-Lin Tang <cltang@codesourcery.com>
18192 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
18193 TARGET_THUMB1_ONLY. Add comments.
18195 2014-06-19 Tom de Vries <tom@codesourcery.com>
18197 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
18198 return type to void.
18199 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
18201 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18203 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
18204 as "move", from depends_on.
18206 2014-06-19 Terry Guo <terry.guo@arm.com>
18208 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
18211 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
18213 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
18215 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
18217 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
18220 * config/sh/sh.c (prepare_move_operands): Don't process TLS
18221 addresses here if reload in progress or completed.
18223 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
18225 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
18226 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
18227 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
18228 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
18229 (mips_register_priority): New function that implements the target
18230 hook TARGET_REGISTER_PRIORITY.
18231 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
18232 (mips_lra_p): Likewise for TARGET_LRA_P.
18233 (TARGET_REGISTER_PRIORITY): Define macro.
18234 (TARGET_SPILL_CLASS): Likewise.
18235 (TARGET_LRA_P): Likewise.
18236 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
18238 (REG_CLASS_NAMES): Likewise.
18239 (REG_CLASS_CONTENTS): Likewise.
18240 (BASE_REG_CLASS): Use M16_SP_REGS.
18241 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
18242 New set attribute to enable alternatives depending on the register
18244 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
18245 (*lea64): Disable pattern for MIPS16.
18246 * config/mips/mips.opt (mlra): New option.
18248 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
18250 * lra-constraints.c (base_to_reg): New function.
18251 (process_address): Use new function.
18253 2014-06-18 Tom de Vries <tom@codesourcery.com>
18255 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
18256 * config/aarch64/aarch64.c
18257 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
18258 (aarch64_emit_call_insn): New function.
18259 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
18261 * config/aarch64/aarch64.md (define_expand "call_internal")
18262 (define_expand "call_value_internal", define_expand "sibcall_internal")
18263 (define_expand "sibcall_value_internal"): New.
18264 (define_expand "call", define_expand "call_value")
18265 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
18266 expand variant and aarch64_emit_call_insn.
18268 2014-06-18 Radovan Obradovic <robradovic@mips.com>
18269 Tom de Vries <tom@codesourcery.com>
18271 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
18272 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18274 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
18275 clobbers to CALL_INSN_FUNCTION_USAGE.
18276 (define_expand "sibcall_internal")
18277 (define_expand "sibcall_value_internal"): New.
18278 (define_expand "call", define_expand "call_value"): Add argument to
18279 arm_emit_call_insn.
18280 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
18281 (define_expand "sibcall_value"): Use sibcall_value_internal and
18282 arm_emit_call_insn.
18284 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18286 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
18288 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18290 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
18293 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18295 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
18296 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
18297 annotations. Fix DWARF information.
18299 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18301 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
18302 __udivmoddi4, and fixups for negative operands.
18304 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18306 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
18308 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18310 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
18313 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18315 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
18318 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18320 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
18321 describing register usage on function entry and exit.
18323 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18325 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
18326 (__aeabi_ldivmod): Fix whitespace.
18328 2014-06-18 Andreas Schwab <schwab@suse.de>
18330 * doc/md.texi (Standard Names): Use @itemx for grouped items.
18331 Remove blank line after @item.
18333 2014-06-18 Richard Henderson <rth@redhat.com>
18336 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
18338 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
18340 * config/arm/arm.c (neon_vector_mem_operand): Allow register
18341 POST_MODIFY for neon loads and stores.
18342 (arm_print_operand): Output post-index register for neon loads and
18345 2014-06-18 Richard Biener <rguenther@suse.de>
18347 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
18349 2014-06-18 Richard Biener <rguenther@suse.de>
18351 * tree-pass.h (make_pass_dce_loop): Remove.
18352 * passes.def: Replace pass_dce_loop with pass_dce.
18353 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
18354 changed free niter estimates and reset the scev cache.
18355 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
18356 make_pass_dce_loop): Remove.
18357 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
18358 (fini_copy_prop): Return whether something changed. Always
18359 let substitute_and_fold perform DCE and free niter estimates
18360 and reset the scev cache if so.
18361 (execute_copy_prop): If sth changed schedule cleanup-cfg.
18362 (pass_data_copy_prop): Do not unconditionally schedule
18363 cleanup-cfg or update-ssa.
18365 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
18367 PR tree-optimization/61518
18368 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
18369 reduction var is used in reduction stmt or phi-function only.
18371 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18373 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
18375 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
18377 PR tree-optimization/61517
18378 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
18379 whose rhs's first tree is the source expression instead of the
18381 (find_bswap_or_nop): Likewise.
18382 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
18383 gimple stmt whose rhs's first tree is the source. In the memory source
18384 case, move the stmt to be replaced close to one of the original load to
18385 avoid the problem of a store between the load and the stmt's original
18387 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
18390 2014-06-18 Andreas Schwab <schwab@suse.de>
18392 PR rtl-optimization/54555
18393 * postreload.c (move2add_use_add2_insn): Substitute
18394 STRICT_LOW_PART only if it is cheaper.
18396 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
18398 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
18399 Do not use unspec as call operand. Use memory_operand instead of
18400 memory_nox32_operand and add "m" operand constraint. Disable
18401 pattern for TARGET_X32.
18402 (*sibcall_pop_memory): Ditto.
18403 (*sibcall_value_memory): Ditto.
18404 (*sibcall_value_pop_memory): Ditto.
18405 (sibcall peepholes): Merge SImode and DImode patterns using
18406 W mode iterator. Use memory_operand instead of memory_nox32_operand.
18407 Disable pattern for TARGET_X32. Check if eliminated register is
18408 really dead after call insn. Generate call RTX without unspec operand.
18409 (sibcall_value peepholes): Ditto.
18410 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
18411 instead of memory_nox32_operand. Check if eliminated register is
18412 really dead after call insn. Generate call RTX without unspec operand.
18413 (sibcall_value_pop peepholes): Ditto.
18414 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
18416 2014-06-18 Terry Guo <terry.guo@arm.com>
18419 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
18422 2014-06-18 Olivier Hainque <hainque@adacore.com>
18424 * tree-core.h (tree_block): Add an "end_locus" field, allowing
18425 memorization of the end of block source location.
18426 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
18427 * gimplify.c (gimplify_bind_expr): Propagate the block start and
18428 end source location info we have on the block entry/exit code we
18431 2014-06-18 Richard Biener <rguenther@suse.de>
18433 * common.opt (fssa-phiopt): New option.
18434 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
18436 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
18437 * doc/invoke.texi (-fssa-phiopt): Document.
18439 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18441 * genattrtab.c (n_bypassed): New variable.
18442 (process_bypasses): Initialise n_bypassed.
18443 Count number of bypassed reservations.
18444 (make_automaton_attrs): Allocate space for bypassed reservations
18445 rather than number of bypasses.
18447 2014-06-18 Richard Biener <rguenther@suse.de>
18449 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
18450 we propagated anything.
18451 (substitute_and_fold_dom_walker::before_dom_children): Something
18452 changed if we propagated into PHI arguments.
18453 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
18456 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
18458 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
18460 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
18461 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
18462 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
18463 Introduces alternative way of loads group permutaions.
18464 (vect_transform_grouped_load): Try alternative way of permutations.
18466 2014-06-18 Jakub Jelinek <jakub@redhat.com>
18468 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
18469 changed in ORT_TARGET region, don't jump to do_outer.
18470 (struct gimplify_adjust_omp_clauses_data): New type.
18471 (gimplify_adjust_omp_clauses_1): Adjust for data being
18472 a struct gimplify_adjust_omp_clauses_data pointer instead
18473 of tree *. Pass pre_p as a new argument to
18474 lang_hooks.decls.omp_finish_clause hook.
18475 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
18476 splay_tree_foreach to pass both list_p and pre_p.
18477 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
18478 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
18479 gimplify_adjust_omp_clauses callers.
18480 * langhooks.c (lhd_omp_finish_clause): New function.
18481 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
18482 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
18483 * langhooks.h (struct lang_hooks_for_decls): Add a new
18484 gimple_seq * argument to omp_finish_clause hook.
18485 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
18486 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
18487 (scan_omp_parallel, lower_omp_for): When adding
18488 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
18489 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
18490 * tree-nested.c (convert_nonlocal_omp_clauses,
18491 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
18492 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
18494 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
18496 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
18497 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
18499 2014-06-17 Xinliang David Li <davidxl@google.com>
18501 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
18502 * passes.c (pass_init_dump_file): Do not set initialize
18503 flag to false unconditionally.
18505 2014-06-17 Richard Biener <rguenther@suse.de>
18507 * genopinit.c (main): Use vec<>::qsort method.
18508 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18510 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
18512 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
18514 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
18515 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
18516 (mips_move_to_gpr_cost): Remove ST_REGS case.
18517 (mips_move_from_gpr_cost): Likewise.
18518 (mips_register_move_cost): Likewise.
18519 (mips_secondary_reload_class): Likewise.
18521 2014-06-17 Richard Biener <rguenther@suse.de>
18523 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
18524 (pass_all_optimizations): Move 3rd copy-prop pass from after
18525 fre to before ifcombine/phiopt.
18527 2014-06-17 Richard Biener <rguenther@suse.de>
18529 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
18530 and allow all blocks to be forwarders.
18532 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
18535 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
18536 variable 'size'; calculate 'size' right in the front; use
18537 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
18538 pcum->aapcs_stack_words.
18540 2014-06-17 Nick Clifton <nickc@redhat.com>
18542 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
18543 (umulhi3, mulsidi3, umulsidi3): Likewise.
18545 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
18547 PR middle-end/61508
18548 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
18549 check for section name.
18551 2014-06-17 Richard Biener <rguenther@suse.de>
18553 * tree-ssa-propagate.c: Include domwalk.h.
18554 (substitute_and_fold): Outline main worker into a domwalker ...
18555 (substitute_and_fold_dom_walker::before_dom_children): ... here.
18556 Schedule stmts we can fully propagate for removal. Remove
18558 (substitute_and_fold): Apply a dominator walk to perform
18559 substitution. Process stmts scheduled for removal here.
18561 2014-06-17 Richard Biener <rguenther@suse.de>
18563 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
18564 of PHI node moving.
18566 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
18568 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
18569 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
18570 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18571 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
18572 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
18574 (get_fpscr) : Likewise.
18576 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
18578 PR rtl-optimization/61325
18579 * lra-constraints.c (valid_address_p): Add forward declaration.
18580 (simplify_operand_subreg): Check address validity before and after
18581 alter_reg of memory subreg.
18583 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
18585 * config/i386/i386.c (decide_alg): Correctly handle
18586 maximum size of stringop algorithm.
18588 2014-06-16 Yury Gribov <y.gribov@samsung.com>
18590 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
18592 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
18594 PR rtl-optimization/61522
18595 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
18597 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
18600 * symtab.c (symtab_node::reset_section): New method.
18601 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18603 * cgraph.h (reset_section): Declare.
18604 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18605 do not consider comdat locals.
18606 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18608 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18609 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18610 reset sections of symbols dragged out of the comdats.
18611 (function_and_variable_visibility): Reset sections of
18614 2014-06-16 Richard Biener <rguenther@suse.de>
18616 PR tree-optimization/61482
18617 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
18618 [-INF(OVF), +INF(OVF)] range.
18620 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
18622 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
18623 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
18624 handling 32-bit multiplication.
18626 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
18628 PR middle-end/61430
18629 * lra-lives.c (process_bb_lives): Skip creating copy during
18630 insn scan when src/dest has constrained to same regno.
18632 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
18634 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
18635 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
18637 2014-06-16 Yury Gribov <y.gribov@samsung.com>
18639 * asan.c (check_func): New function.
18640 (maybe_create_ssa_name): Likewise.
18641 (build_check_stmt_with_calls): Likewise.
18642 (use_calls_p): Likewise.
18643 (report_error_func): Change interface.
18644 (build_check_stmt): Allow non-integer lengths; add support
18646 (asan_instrument): Likewise.
18647 (instrument_mem_region_access): Moved code to build_check_stmt.
18648 (instrument_derefs): Likewise.
18649 (instrument_strlen_call): Likewise.
18650 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
18651 * doc/invoke.texi: Describe new parameter.
18652 * params.def: Define new parameter.
18653 * params.h: Likewise.
18654 * sanitizer.def: Describe new builtins.
18656 2014-06-16 Richard Biener <rguenther@suse.de>
18658 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18659 Make all defs available at the end.
18660 (eliminate): If we remove a PHI node schedule cfg-cleanup.
18662 2014-06-18 Jakub Jelinek <jakub@redhat.com>
18665 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
18667 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
18670 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
18671 initialization. Replace remaining use of uid.
18673 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
18675 * c-family/c-common.c (handle_tls_model_attribute): Use
18676 set_decl_tls_model.
18677 * c-family/c-common.c (handle_tls_model_attribute): Use
18678 set_decl_tls_model.
18679 * cgraph.h (struct varpool_node): Add tls_model.
18680 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
18681 * tree.h (DECL_TLS_MODEL): Update.
18682 (DECL_THREAD_LOCAL_P): Check that variable is static.
18683 (decl_tls_model): Declare.
18684 (set_decl_tls_model): Declare.
18685 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
18686 set symbol prorperties.
18687 (get_emutls_init_templ_addr): Cleanup.
18688 (new_emutls_decl): Update.
18689 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
18690 (lto_input_varpool_node): Likewise.
18691 * lto-streamer-out.c (hash_tree): Likewise.
18692 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18693 not stream DECL_TLS_MODEL.
18694 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
18695 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
18697 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18699 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
18701 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18703 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
18704 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
18706 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
18707 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
18708 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
18709 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
18710 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
18711 (df_get_artificial_defs, df_get_artificial_uses)
18712 (df_single_def, df_single_use): Update accordingly.
18713 (df_refs_chain_dump): Take the first element in a linked list as
18714 parameter, rather than a pointer to an array of pointers.
18715 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
18716 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
18717 (df_chain_create_bb_process_use): Likewise.
18718 (df_md_bb_local_compute_process_def): Likewise.
18719 * fwprop.c (process_defs, process_uses): Likewise.
18720 (register_active_defs, update_uses): Likewise.
18721 (forward_propagate_asm): Update for new df_ref linking.
18722 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
18723 (df_null_ref_rec, df_null_mw_rec): Likewise.
18724 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
18726 (df_scan_free_bb_info): Remove check for null artificial_defs.
18727 (df_install_ref_incremental): Adjust for new df_ref linking.
18728 Use a single-element insertion rather than a full sort.
18729 (df_ref_chain_delete_du_chain): Take the first element
18730 in a linked list as parameter, rather than a pointer to an array of
18732 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
18733 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
18734 (df_insn_info_delete): Remove check for null defs and call to
18735 df_scan_free_mws_vec.
18736 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
18737 null rather than df_null_*_rec.
18738 (df_insn_rescan_debug_internal): Likewise, and update null
18739 checks in the same way. Remove check for null defs.
18740 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
18741 Move a single element rather doing a full sort.
18742 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
18744 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
18745 Initialize df_ref and df_mw_hardreg lists to null rather than
18747 (df_ref_compare): Take df_refs as parameter, transferring the
18748 old interface to...
18749 (df_ref_ptr_compare): ...this new function.
18750 (df_sort_and_compress_refs): Update accordingly.
18751 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
18752 old interface to...
18753 (df_mw_ptr_compare): ...this new function.
18754 (df_sort_and_compress_mws): Update accordingly.
18755 (df_install_refs, df_install_mws): Return a linked list rather than
18756 an array of pointers.
18757 (df_refs_add_to_chains): Assert that old lists are empty rather
18759 (df_insn_refs_verify): Don't handle null defs speciailly.
18760 * web.c (union_match_dups): Update for new df_ref linking.
18762 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18764 * df.h (df_ref_create, df_ref_remove): Delete.
18765 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
18766 (df_ref_remove): Likewise.
18768 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18770 * df.h (df_single_def, df_single_use): New functions.
18771 * ira.c (find_moveable_pseudos): Use them.
18773 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18775 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
18776 * df-problems.c (df_note_bb_compute): Use it.
18777 * regstat.c (regstat_bb_compute_ri): Likewise.
18779 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18781 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
18782 * cse.c (cse_extended_basic_block): Use them.
18783 * dce.c (mark_artificial_use): Likewise.
18784 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
18785 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18786 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
18787 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
18788 (df_simulate_initialize_backwards): Likewise.
18789 (df_simulate_finalize_backwards): Likewise.
18790 (df_simulate_initialize_forwards): Likewise.
18791 (df_md_simulate_artificial_defs_at_top): Likewise.
18792 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18793 * regrename.c (init_rename_info): Likewise.
18794 * regstat.c (regstat_bb_compute_ri): Likewise.
18795 (regstat_bb_compute_calls_crossed): Likewise.
18797 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18799 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
18800 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
18801 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
18802 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
18803 * combine.c (create_log_links): Likewise.
18804 * compare-elim.c (find_flags_uses_in_insn): Likewise.
18805 (try_eliminate_compare): Likewise.
18806 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
18807 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
18808 (remove_reg_equal_equiv_notes_for_defs): Likewise.
18809 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
18810 (word_dce_process_block, dce_process_block): Likewise.
18811 * ddg.c (def_has_ccmode_p): Likewise.
18812 * df-core.c (df_bb_regno_first_def_find): Likewise.
18813 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
18814 * df-problems.c (df_rd_simulate_one_insn): Likewise.
18815 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18816 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
18817 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
18818 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
18819 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
18820 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
18821 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
18822 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
18823 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18824 * fwprop.c (local_ref_killed_between_p): Likewise.
18825 (all_uses_available_at, free_load_extend): Likewise.
18826 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
18827 * hw-doloop.c (scan_loop): Likewise.
18828 * ifcvt.c (dead_or_predicable): Likewise.
18829 * init-regs.c (initialize_uninitialized_regs): Likewise.
18830 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
18831 (process_bb_node_lives): Likewise.
18832 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
18833 (find_moveable_pseudos): Likewise.
18834 * loop-invariant.c (check_dependencies, record_uses): Likewise.
18835 * recog.c (peep2_find_free_register): Likewise.
18836 * ree.c (get_defs): Likewise.
18837 * regstat.c (regstat_bb_compute_ri): Likewise.
18838 (regstat_bb_compute_calls_crossed): Likewise.
18839 * sched-deps.c (find_inc, find_mem): Likewise.
18840 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
18841 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
18842 * shrink-wrap.c (requires_stack_frame_p): Likewise.
18843 (prepare_shrink_wrap): Likewise.
18844 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
18845 * web.c (union_defs, pass_web::execute): Likewise.
18846 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
18847 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
18849 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
18851 * lra-assign.c (assign_by_spills): Add code to assign vector regs
18852 to inheritance pseudos.
18853 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
18855 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
18858 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
18859 (BU_MISC_2): Rename to ...
18860 (BU_LDBL128_2): ... this.
18861 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
18862 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
18863 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18864 RS6000_BTM_LDBL128.
18865 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
18866 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
18867 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
18868 (unpacktf_1): Likewise.
18869 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
18870 (__builtin_longdouble_dw1): Likewise.
18871 * doc/sourcebuild.texi (longdouble128): Document.
18873 2014-06-13 Jeff Law <law@redhat.com>
18875 PR rtl-optimization/61094
18876 PR rtl-optimization/61446
18877 * ree.c (combine_reaching_defs): Get the mode for the copy from
18878 the extension insn rather than the defining insn.
18880 2014-06-13 Dehao Chen <dehao@google.com>
18882 * dwarf2out.c (add_linkage_name): Emit more linkage name.
18884 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
18886 * doc/install.texi (--enable-linker-plugin-configure-flags)
18887 (--enable-linker-plugin-flags): Document new flags.
18889 2014-06-13 Martin Jambor <mjambor@suse.cz>
18892 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
18893 cache_token if returning early.
18895 2014-06-13 Nick Clifton <nickc@redhat.com>
18897 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
18898 requested alignment is active.
18899 (LABEL_ALIGN): Likewise.
18900 (LOOP_ALIGN): Likewise.
18902 2014-06-13 Richard Biener <rguenther@suse.de>
18904 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18905 Rewrite to propagate the VN result into all uses where
18906 possible and to remove stmts becoming dead because of that.
18907 (eliminate): Generalize stmt removal handling, remove in
18908 reverse dominator order to support proper debug stmt
18909 generation. Update stmts before removing stmts.
18910 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
18912 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18914 PR tree-optimization/61375
18915 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
18916 symbolic number cannot be represented in an uint64_t.
18917 (find_bswap_or_nop_1): Likewise.
18919 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
18921 * symtab.c (symtab_node::reset_section): New method.
18922 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18924 * cgraph.h (reset_section): Declare.
18925 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18926 do not consider comdat locals.
18927 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18929 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18930 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18931 reset sections of symbols dragged out of the comdats.
18932 (function_and_variable_visibility): Reset sections of
18935 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
18937 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18938 to use symtab and decl_binds_to_current_def_p
18939 * tree-vectorizer.c (increase_alignment): Increase alignment
18940 of alias target, too.
18942 2014-06-12 Jakub Jelinek <jakub@redhat.com>
18944 PR middle-end/61486
18945 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18946 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18947 if outer combined construct is distribute.
18948 (gimplify_omp_for): For OMP_DISTRIBUTE set
18949 gimplify_omp_ctxp->distribute.
18950 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18951 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18952 mapping into decl map.
18954 2014-06-12 Jason Merrill <jason@redhat.com>
18956 * common.opt (fabi-version): Change default to 0.
18958 2014-06-12 Jason Merrill <jason@redhat.com>
18960 * toplev.c (process_options): Reject -fabi-version=1.
18962 2014-06-12 Jeff Law <law@redhat.com>
18964 PR tree-optimization/61009
18965 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18966 value when we stop processing a block due to problematic PHIs.
18968 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
18970 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18971 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18972 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18973 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18974 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18975 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18976 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18977 are not in the spec.
18979 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
18982 * config/aarch64/aarch64-modes.def: Add V1DFmode.
18983 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18986 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
18988 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18990 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
18993 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18994 loading from address spaces.
18996 2014-06-12 Martin Liska <mliska@suse.cz>
18999 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
19000 statement is reachable.
19002 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
19004 * symtab.c (section_hash): New hash.
19005 (symtab_unregister_node): Clear section before freeing.
19006 (hash_section_hash_entry): New haser.
19007 (eq_sections): New function.
19008 (symtab_node::set_section_for_node): New method.
19009 (set_section_1): Update.
19010 (symtab_node::set_section): Take string instead of tree as parameter.
19011 (symtab_resolve_alias): Update.
19012 * cgraph.h (section_hash_entry_d): New structure.
19013 (section_hash_entry): New typedef.
19014 (cgraph_node): Change comdat_group_ to x_comdat_group,
19015 change section_ to x_section and turn into section_hash_entry;
19016 update accestors; put set_section_for_node offline.
19017 * tree.c (decl_section_name): Turn into string.
19018 (set_decl_section_name): Change parameter to be string.
19019 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
19020 * sdbout.c (sdbout_one_type): Update.
19021 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
19022 * varasm.c (IN_NAMED_SECTION, get_named_section,
19023 resolve_unique_section, hot_function_section, get_named_text_section,
19024 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
19025 make_decl_rtl, default_unique_section): Update.
19026 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
19027 (c6x_elf_unique_section): Update.
19028 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
19029 * config/pa/pa.c (pa_function_section): Update.
19030 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
19031 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
19032 * config/arc/arc.c (arc_in_small_data_p): Update.
19033 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
19034 * config/mcore/mcore.c (mcore_unique_section): Update.
19035 * config/mips/mips.c (mips16_build_function_stub): Update.
19036 (mips16_build_call_stub): Update.
19037 (mips_function_rodata_section): Update.
19038 (mips_in_small_data_p): Update.
19039 * config/score/score.c (score_in_small_data_p): Update.
19040 * config/rx/rx.c (rx_in_small_data): Update.
19041 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
19042 (rs6000_xcoff_asm_named_section): Update.
19043 (rs6000_xcoff_unique_section): Update.
19044 * config/frv/frv.c (frv_string_begins_with): Update.
19045 (frv_in_small_data_p): Update.
19046 * config/v850/v850.c (v850_encode_data_area): Update.
19047 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
19048 (bfin_handle_l1_data_attribute): Update.
19049 (bfin_handle_l2_attribute): Update.
19050 * config/mep/mep.c (mep_unique_section): Update.
19051 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
19053 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
19054 (h8300_handle_tiny_data_attribute): Update.
19055 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
19056 (m32r_in_small_data_p): Update.
19057 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
19058 * config/i386/i386.c (ix86_in_large_data_p): Update.
19059 * config/i386/winnt.c (i386_pe_unique_section): Update.
19060 * config/darwin.c (darwin_function_section): Update.
19061 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
19062 * tree-emutls.c (get_emutls_init_templ_addr): Update.
19063 (new_emutls_decl): Update.
19064 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
19065 input_varpool_node): Update.
19066 (ead_string_cst): Turn to ...
19067 (read_string): ... this one.
19068 * dwarf2out.c (secname_for_decl): Update.
19069 * asan.c (asan_protect_global): Update.
19071 2014-06-11 DJ Delorie <dj@redhat.com>
19073 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
19075 * config/rx/rx.c (rx_option_override): Likewise.
19076 (rx_align_for_label): Likewise.
19078 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
19080 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
19082 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
19085 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
19087 * common.md: New file.
19088 * doc/md.texi: Update description of generic, machine-independent
19090 * config/s390/constraints.md (e): Delete.
19091 * Makefile.in (md_file): Include common.md.
19092 * config/m32c/t-m32c (md_file): Likewise.
19093 * genpreds.c (general_mem): New array.
19094 (generic_constraint_letters): Remove constraints now defined by
19096 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19097 Allow the first character to be '<' or '>' as well.
19098 * genoutput.c (general_mem): New array.
19099 (indep_constraints): Remove constraints now defined by common.md.
19100 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19101 Remove special handling of 'm'.
19102 * ira-costs.c (record_reg_classes): Remove special handling of
19103 constraints now defined by common.md.
19104 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19105 * ira-lives.c (single_reg_class): Likewise.
19106 (ira_implicitly_set_insn_hard_regs): Likewise.
19107 * lra-constraints.c (reg_class_from_constraints): Likewise.
19108 (process_alt_operands, process_address, curr_insn_transform): Likewise.
19109 * postreload.c (reload_cse_simplify_operands): Likewise.
19110 * reload.c (push_secondary_reload, scratch_reload_class)
19111 (find_reloads, alternative_allows_const_pool_ref): Likewise.
19112 * reload1.c (maybe_fix_stack_asms): Likewise.
19113 * targhooks.c (default_secondary_reload): Likewise.
19114 * stmt.c (parse_output_constraint): Likewise.
19115 * recog.c (preprocess_constraints): Likewise.
19116 (constrain_operands, peep2_find_free_register): Likewise.
19117 (asm_operand_ok): Likewise, but add a comment saying why 'o'
19118 must be handled specially.
19120 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
19122 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
19123 * genpreds.c (have_const_dbl_constraints): Delete.
19124 (add_constraint): Don't set it.
19125 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
19126 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
19127 constraints using the lookup_constraint logic.
19128 * ira-lives.c (single_reg_class): Likewise.
19129 * ira.c (ira_setup_alts): Likewise.
19130 * lra-constraints.c (process_alt_operands): Likewise.
19131 * recog.c (asm_operand_ok, constrain_operands): Likewise.
19132 * reload.c (find_reloads): Likewise.
19134 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
19136 * genpreds.c (const_int_start, const_int_end): New variables.
19137 (choose_enum_order): Output CONST_INT constraints before memory
19139 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
19141 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
19142 * ira.c (ira_setup_alts): Likewise.
19143 * lra-constraints.c (process_alt_operands): Likewise.
19144 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19145 * reload.c (find_reloads): Likewise.
19147 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
19149 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
19150 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
19151 * recog.c (preprocess_constraints): Update accordingly.
19153 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
19155 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
19156 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
19157 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
19158 * genpreds.c (print_type_tree): New function.
19159 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
19160 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
19161 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
19162 Write out enum constraint_type and get_constraint_type.
19163 * lra-constraints.c (satisfies_memory_constraint_p): Take a
19164 constraint_num rather than a constraint string.
19165 (satisfies_address_constraint_p): Likewise.
19166 (reg_class_from_constraints): Avoid old constraint macros.
19167 (process_alt_operands, process_address_1): Likewise.
19168 (curr_insn_transform): Likewise.
19169 * ira-costs.c (record_reg_classes): Likewise.
19170 (record_operand_costs): Likewise.
19171 * ira-lives.c (single_reg_class): Likewise.
19172 (ira_implicitly_set_insn_hard_regs): Likewise.
19173 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19174 * postreload.c (reload_cse_simplify_operands): Likewise.
19175 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19176 (constrain_operands, peep2_find_free_register): Likewise.
19177 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
19178 (find_reloads, alternative_allows_const_pool_ref): Likewise.
19179 * reload1.c (maybe_fix_stack_asms): Likewise.
19180 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
19181 * targhooks.c (default_secondary_reload): Likewise.
19182 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
19183 to EXTRA_CONSTRAINT_STR.
19184 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
19186 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
19188 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
19189 (write_constraint_satisfied_p_array): ...this new function.
19190 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
19192 (write_insn_preds_c): Update accordingly.
19194 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
19196 * genpreds.c (write_lookup_constraint): Rename to...
19197 (write_lookup_constraint_1): ...this.
19198 (write_lookup_constraint_array): New function.
19199 (write_tm_preds_h): Define lookup_constraint as an inline function
19200 that uses write_lookup_constraint_array where possible.
19201 (write_insn_preds_c): Update for the changes above.
19203 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
19205 * doc/md.texi (regclass_for_constraint): Rename to...
19206 (reg_class_for_constraint): ...this.
19207 * genpreds.c (num_constraints, enum_order, register_start)
19208 (register_end, satisfied_start, memory_start, memory_end)
19209 (address_start, address_end): New variables.
19210 (add_constraint): Count the number of constraints.
19211 (choose_enum_order): New function.
19212 (write_enum_constraint_num): Iterate over enum_order.
19213 (write_regclass_for_constraint): Rename to...
19214 (write_reg_class_for_constraint_1): ...this and update output
19216 (write_constraint_satisfied_p): Rename to...
19217 (write_constraint_satisfied_p_1): ...this and update output
19218 accordingly. Do nothing if all extra constraints are register
19220 (write_insn_extra_memory_constraint): Delete.
19221 (write_insn_extra_address_constraint): Delete.
19222 (write_range_function): New function.
19223 (write_tm_preds_h): Define constraint_satisfied_p and
19224 reg_class_for_constraint as inline functions that do a range check
19225 before calling the out-of-line function. Use write_range_function
19226 to implement insn_extra_{register,memory,address}_constraint,
19227 the first of which is new.
19228 (write_insn_preds_c): Update after above changes to write_* functions.
19229 (main): Call choose_enum_order.
19231 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
19233 PR tree-optimization/61306
19234 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
19235 expression instead of its size.
19236 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
19237 false to prevent optimization when the result is unpredictable due to
19238 arithmetic right shift of signed type with highest byte is set.
19239 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
19240 (init_symbolic_number): Likewise.
19241 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
19242 when the result is unpredictable due to sign extension.
19244 2014-06-11 Terry Guo <terry.guo@arm.com>
19246 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
19247 (*thumb1_addsi3): Ditto.
19248 (*thumb_subdi3): Ditto.
19249 (thumb1_subsi3_insn): Ditto.
19250 (*thumb_mulsi3): Ditto.
19251 (*thumb_mulsi3_v6): Ditto.
19252 (*thumb1_andsi3_insn): Ditto.
19253 (thumb1_bicsi3): Ditto.
19254 (*thumb1_iorsi3_insn): Ditto.
19255 (*thumb1_xorsi3_insn): Ditto.
19256 (*thumb1_ashlsi3): Ditto.
19257 (*thumb1_ashrsi3): Ditto.
19258 (*thumb1_lshrsi3): Ditto.
19259 (*thumb1_rotrsi3): Ditto.
19260 (*thumb1_negdi2): Ditto.
19261 (*thumb1_negsi2): Ditto.
19262 (*thumb1_abssi2): Ditto.
19263 (*thumb1_neg_abssi2): Ditto.
19264 (*thumb1_one_cmplsi2): Ditto.
19265 (*thumb1_zero_extendhisi2): Ditto.
19266 (*thumb1_zero_extendqisi2): Ditto.
19267 (*thumb1_zero_extendqisi2_v6): Ditto.
19268 (thumb1_extendhisi2): Ditto.
19269 (thumb1_extendqisi2): Ditto.
19270 (*thumb1_movdi_insn): Ditto.
19271 (*thumb1_movsi_insn): Ditto.
19272 (*thumb1_movhi_insn): Ditto.
19273 (thumb_movhi_clobber): Ditto.
19274 (*thumb1_movqi_insn): Ditto.
19275 (*thumb1_movhf): Ditto.
19276 (*thumb1_movsf_insn): Ditto.
19277 (*thumb_movdf_insn): Ditto.
19278 (movmem12b): Ditto.
19280 (cbranchqi4): Ditto.
19281 (cbranchsi4_insn): Ditto.
19282 (cbranchsi4_scratch): Ditto.
19283 (*negated_cbranchsi4): Ditto.
19284 (*tbit_cbranch): Ditto.
19285 (*tlobits_cbranch): Ditto.
19286 (*tstsi3_cbranch): Ditto.
19287 (*cbranchne_decr1): Ditto.
19288 (*addsi3_cbranch): Ditto.
19289 (*addsi3_cbranch_scratch): Ditto.
19290 (*thumb_cmpdi_zero): Ditto.
19291 (cstoresi_eq0_thumb1): Ditto.
19292 (cstoresi_ne0_thumb1): Ditto.
19293 (*cstoresi_eq0_thumb1_insn): Ditto.
19294 (*cstoresi_ne0_thumb1_insn): Ditto.
19295 (cstoresi_nltu_thumb1): Ditto.
19296 (cstoresi_ltu_thumb1): Ditto.
19297 (thumb1_addsi3_addgeu): Ditto.
19298 (*thumb_jump): Ditto.
19299 (*call_reg_thumb1_v5): Ditto.
19300 (*call_reg_thumb1): Ditto.
19301 (*call_value_reg_thumb1_v5): Ditto.
19302 (*call_value_reg_thumb1): Ditto.
19303 (*call_insn): Ditto.
19304 (*call_value_insn): Ditto.
19305 (thumb1_casesi_internal_pic): Ditto.
19306 (thumb1_casesi_dispatch): Ditto.
19307 (*thumb1_indirect_jump): Ditto.
19308 (prologue_thumb1_interwork): Ditto.
19309 (*epilogue_insns): Ditto.
19310 (consttable_1): Ditto.
19311 (consttable_2): Ditto.
19312 (tablejump): Ditto.
19313 (*thumb1_tablejump): Ditto.
19314 (thumb_eh_return): Ditto.
19315 (define_peephole2): Two of them are thumb1 only and got moved into
19316 new file thumb1.md.
19317 (define_split): Six of them are thumb1 only and got moved into new
19319 * config/arm/thumb1.md: New file comprised of above thumb1 only
19322 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19324 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
19325 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
19327 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
19328 (aarch64_crc_builtin_datum): New struct.
19329 (aarch64_crc_builtin_data): New.
19330 (aarch64_init_crc32_builtins): New function.
19331 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
19332 (aarch64_crc32_expand_builtin): New.
19333 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
19334 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19335 __ARM_FEATURE_CRC32 when appropriate.
19336 (TARGET_CRC32): Define.
19337 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
19338 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
19339 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
19340 (aarch64_<crc_variant>): New pattern.
19341 * config/aarch64/arm_acle.h: New file.
19342 * config/aarch64/iterators.md (CRC): New int iterator.
19343 (crc_variant, crc_mode): New int attributes.
19344 * doc/aarch64-acle-intrinsics.texi: New file.
19345 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
19346 Include aarch64-acle-intrinsics.texi.
19348 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
19350 * tree-vect-data-refs.c (vect_grouped_store_supported): New
19351 check for stores group of length 3.
19352 (vect_permute_store_chain): New permutations for stores group of
19354 * tree-vect-stmts.c (vect_model_store_cost): Change cost
19355 of vec_perm_shuffle for the new permutations.
19357 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
19359 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
19360 table rewriting temporarily on targets not supporting ONE_ONLY.
19362 2014-06-11 Richard Biener <rguenther@suse.de>
19364 PR middle-end/61437
19366 2014-06-04 Richard Biener <rguenther@suse.de>
19368 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19369 TREE_PUBLIC and DECL_EXTERNAL decls.
19371 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
19373 * varasm.c (set_implicit_section): New function.
19374 (resolve_unique_section): Use it to set implicit section
19376 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
19377 (default_function_section): Likewise.
19378 (decl_binds_to_current_def_p): Constify argument.
19379 * varasm.h (decl_binds_to_current_def_p): Update prototype.
19380 * asan.c (asan_protect_global): Use
19381 symtab_get_node (decl)->implicit_section.
19382 * symtab.c (dump_symtab_base): Dump implicit sections.
19383 (verify_symtab_base): Verify sanity of sectoins and comdats.
19384 (symtab_resolve_alias): Alias share the section of its target.
19385 (set_section_1): New function.
19386 (symtab_node::set_section): Move here, recurse to aliases.
19387 (verify_symtab): Check for duplicated symtab lists.
19388 * tree-core.h (implicit_section_name_p): Remove.
19389 * tree-vect-data-refs.c: Include varasm.h.
19390 (vect_can_force_dr_alignment_p): Fix conditional on when
19391 decl bints to current definition; use
19392 symtab_get_node (decl)->implicit_section.
19393 * cgraph.c (cgraph_make_node_local_1): Fix section set.
19394 * cgraph.h (struct symtab_node): Add implicit_section.
19395 (set_section): Rename to ...
19396 (set_section_for_node): ... this one.
19397 (set_section): Declare.
19398 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
19399 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
19400 input_overwrite_node, input_varpool_node): Stream implicit_section.
19401 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
19402 removal; it will fail in LTO.
19404 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19406 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
19407 Change second alternative type to f_mcr.
19408 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
19409 and 12th alternatives' types to f_mcr and f_mrc.
19410 (*movdi_aarch64): Same for 12th and 13th alternatives.
19411 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
19412 (aarch64_movtilow_tilow): Change type to fmov.
19414 2014-06-10 Jiong Wang <jiong.wang@arm.com>
19416 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
19417 (aarch64_save_or_restore_callee_save_registers): Fix layout.
19419 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19421 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
19423 (aarch64_sqrdmulh_lane<mode>): Likewise.
19424 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
19425 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
19426 (aarch64_sqdmulh_laneq<mode>): New expander.
19427 (aarch64_sqrdmulh_laneq<mode>): Likewise.
19428 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
19429 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
19430 (aarch64_sqdmulh_lane<mode>): New expander.
19431 (aarch64_sqrdmulh_lane<mode>): Likewise.
19432 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
19433 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
19434 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
19435 (aarch64_sqdmlal_laneq<mode>): Likewise.
19436 (aarch64_sqdmlsl_lane<mode>): Likewise.
19437 (aarch64_sqdmlsl_laneq<mode>): Likewise.
19438 (aarch64_sqdmlal2_lane<mode>): Likewise.
19439 (aarch64_sqdmlal2_laneq<mode>): Likewise.
19440 (aarch64_sqdmlsl2_lane<mode>): Likewise.
19441 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19442 (aarch64_sqdmull_lane<mode>): Likewise.
19443 (aarch64_sqdmull_laneq<mode>): Likewise.
19444 (aarch64_sqdmull2_lane<mode>): Likewise.
19445 (aarch64_sqdmull2_laneq<mode>): Likewise.
19447 2014-06-10 Richard Biener <rguenther@suse.de>
19449 PR tree-optimization/61438
19450 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
19451 (eliminate_dom_walker::before_dom_children): Only try to inhibit
19452 insertion of IVs if running PRE.
19453 (eliminate): Adjust.
19454 (pass_pre::execute): Likewise.
19455 (pass_fre::execute): Likewise.
19457 2014-06-10 Richard Biener <rguenther@suse.de>
19459 PR middle-end/61456
19460 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19461 Do not use the main variant for the type comparison.
19462 (ncr_compar): Likewise.
19463 (nonoverlapping_component_refs_p): Likewise.
19465 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
19467 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
19468 REG_CFA_RESTORE mode.
19470 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
19472 * config/i386/i386.c (expand_vec_perm_pblendv): New.
19473 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
19474 expand_vec_perm_pblendv.
19476 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19478 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
19480 Simplify description of __crc32d and __crc32cd intrinsics.
19481 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
19484 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
19487 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
19488 * config.in: Regenerate.
19489 * configure: Likewise.
19491 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
19493 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
19495 (intersect_static_var_sets): Remove.
19496 (propagate): Do not prune local statics.
19498 2014-06-10 Jakub Jelinek <jakub@redhat.com>
19501 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
19502 Set lastprivate_firstprivate even if omp_private_outer_ref
19503 langhook returns true.
19504 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
19505 langhook, call unshare_expr on new_var and call
19506 build_outer_var_ref to get the last argument.
19508 2014-06-10 Marek Polacek <polacek@redhat.com>
19511 * doc/extend.texi: Add cindex for transparent_union.
19513 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
19515 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
19516 init_symbolic_number ().
19518 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
19520 PR middle-end/61141
19521 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
19522 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
19523 (verify_rtl_sharing): Likewise.
19525 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
19528 * tree.c (build_qualified_type): Use a canonical type for
19531 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19533 * config/arm/arm-modes.def: Remove XFmode.
19535 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
19538 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
19539 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
19540 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
19541 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
19542 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
19543 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
19544 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
19545 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
19546 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
19548 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
19550 * tree-core.h (tree_decl_with_vis): Remove section_name.
19552 2014-06-09 Kito Cheng <kito@0xlab.org>
19554 * ira.c (ira): Don't call init_caller_save if LRA enabled
19555 since LRA use its own infrastructure to handle that.
19557 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19559 * symtab.c (dump_symtab_base): Update dumping.
19560 (symtab_make_decl_local): Clear only DECL_COMDAT.
19561 * tree-vect-data-refs.c (Check that variable is static before
19562 tampering with sections.
19563 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
19564 (cgraph_create_virtual_clone): Likewise.
19565 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
19566 (decl_section_name, set_decl_section_name): New accessors.
19567 (find_decls_types_r): Do not walk section name
19568 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
19569 (decl_comdat_group, decl_comdat_group_id): Constify.
19570 (decl_section_name, set_decl_section_name): Update.
19571 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
19572 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
19573 (cgraph_make_node_local_1): Clear section and comdat group.
19574 * cgraph.h (set_comdat_group): Sanity check.
19575 (get_section, set_section): New.
19576 * ipa-comdats.c (ipa_comdats): Use get_section.
19577 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
19578 * lto-streamer-out.c: Do not follow section names.
19579 * c-family/c-common.c (handle_section_attribute): Update.
19580 * lto-cgraph.c (lto_output_node): Output section.
19581 (lto_output_varpool_node): Likewise.
19582 (read_comdat_group): Rename to ...
19583 (read_identifier): ... this one.
19584 (read_string_cst): New function.
19585 (input_node, input_varpool_node): Input section names.
19586 * tree-emutls.c (get_emutls_init_templ_addr): Update.
19587 (new_emutls_decl): Update.
19588 (secname_for_decl): Check section names only of static vars.
19589 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
19590 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
19591 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19592 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19593 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
19594 * config/mcore/mcore.c (mcore_unique_section): Likewise.
19595 * config/mips/mips.c (mips16_build_function_stub): Likewise.
19596 * config/v850/v850.c (v850_insert_attributes): Likewise.
19597 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
19599 (h8300_handle_tiny_data_attribute): Likewise.
19600 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
19601 (bfin_handle_l2_attribute): Likewise.
19603 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19605 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
19606 remove static initializer.
19608 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19610 * varasm.c (use_blocks_for_decl_p): Check symbol table
19611 instead of alias attribute.
19612 (place_block_symbol): Recurse on aliases.
19614 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19616 * ipa-visibility.c: Include varasm.h
19617 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
19619 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19621 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
19622 outputting aliases.
19624 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
19626 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
19627 from test_insn into GGC space escape via SET_SRC.
19629 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
19631 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
19632 call statement, if any.
19633 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
19634 statements, if any. Tidy up.
19636 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19639 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
19640 iterators, VSX_D that handles 64-bit types, and VSX_LE that
19641 handles swapping the two 64-bit double words on little endian
19642 systems. Include V1TImode and optionally TImode in VSX_LE so that
19643 these types are properly swapped. Change all of the insns and
19644 splits that do the 64-bit swaps to use VSX_LE.
19645 (vsx_le_perm_load_<mode>): Likewise.
19646 (vsx_le_perm_store_<mode>): Likewise.
19647 (splitters for little endian memory operations): Likewise.
19648 (vsx_xxpermdi2_le_<mode>): Likewise.
19649 (vsx_lxvd2x2_le_<mode>): Likewise.
19650 (vsx_stxvd2x2_le_<mode>): Likewise.
19652 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
19655 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
19656 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
19657 and corresponding splitters. Zero extend general register
19658 or memory input operand to XMM temporary. Enable for
19659 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
19660 (floatunssi<mode>2): Update expander predicate.
19662 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
19664 PR rtl-optimization/61325
19665 * lra-constraints.c (process_address_1): Check scale equal to one
19666 to prevent transformation: base + scale * index => base + new_reg.
19668 2014-06-06 Richard Biener <rguenther@suse.de>
19670 PR tree-optimization/59299
19671 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
19673 (nearest_common_dominator_of_uses): Likewise.
19674 (statement_sink_location): Adjust. Support sinking loads.
19676 2014-06-06 Martin Jambor <mjambor@suse.cz>
19678 * ipa-prop.c (get_place_in_agg_contents_list): New function.
19679 (build_agg_jump_func_from_list): Likewise.
19680 (determine_known_aggregate_parts): Renamed to
19681 determine_locally_known_aggregate_parts. Moved some functionality
19682 to the two functions above, removed bound checks.
19684 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
19686 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
19687 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
19688 (aarch64_progress_pointer): Likewise.
19689 (aarch64_copy_one_part_and_move_pointers): Likewise.
19690 (aarch64_expand_movmen): Likewise.
19691 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
19692 * config/aarch64/aarch64.md (movmem<mode>): New.
19694 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
19696 * targhooks.c (default_add_stmt_cost): Call target specific
19697 hook instead of default one.
19699 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
19701 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
19702 endianness instead of host endianness.
19703 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
19706 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19709 * function.c (instantiate_decls): Process the saved static chain.
19710 (expand_function_start): If not optimizing, save the static chain
19712 * tree-nested.c (convert_all_function_calls): Always create the static
19713 chain for nested functions if not optimizing.
19715 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19717 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
19719 2014-06-06 Richard Biener <rguenther@suse.de>
19721 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
19722 (construct_init_block): Likewise.
19723 (construct_exit_block): Likewise.
19724 (pass_expand::execute): Likewise.
19725 * graphite.c (graphite_transforms): Replace check for current_loops
19726 with a check for > 1 loops.
19727 (pass_graphite_transforms::execute): Adjust.
19728 * ipa-split.c (split_function): Remove check for current_loops.
19729 * omp-low.c (expand_parallel_call): Likewise.
19730 (expand_omp_for_init_counts): Likewise.
19731 (extract_omp_for_update_vars): Likewise.
19732 (expand_omp_for_generic): Likewise.
19733 (expand_omp_sections): Likewise.
19734 (expand_omp_target): Likewise.
19735 * tracer.c (tail_duplicate): Likewise.
19736 (pass_tracer::execute): Likewise.
19737 * trans-mem.c (expand_transaction): Likewise.
19738 * tree-complex.c (expand_complex_div_wide): Likewise.
19739 * tree-eh.c (lower_resx): Likewise.
19740 (cleanup_empty_eh_merge_phis): Likewise.
19741 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
19742 current_loops with a check for > 1 loops.
19743 (pass_predcom::execute): Adjust.
19744 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
19745 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
19746 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
19747 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
19748 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
19749 * tree-switch-conversion.c (process_switch): Likewise.
19750 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
19751 * tree-vrp.c (vrp_visit_phi_node): Likewise.
19752 (execute_vrp): Likewise.
19753 * ubsan.c (ubsan_expand_null_ifn): Likewise.
19755 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19757 * rtl.h (insn_location): Declare.
19758 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
19759 with UNKNOWN_LOCATION.
19760 * emit-rtl.c (insn_location): New function.
19761 * final.c (notice_source_line): Check that the instruction has a
19762 location before retrieving it and use insn_location.
19763 * modulo-sched.c (loop_single_full_bb_p): Likewise.
19764 * print-rtl.c (print_rtx): Likewise.
19766 2014-06-06 Richard Biener <rguenther@suse.de>
19768 * passes.def: Move 2nd VRP pass before phi-only-cprop.
19770 2014-06-06 Christian Bruel <christian.bruel@st.com>
19772 PR tree-optimization/43934
19773 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
19776 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
19778 * ira-lives.c (single_reg_class): Add missing break. Explicitly
19779 return NO_REGS for extra address and memory constraints. Handle
19780 operands that match (or are equivalent to something that matches)
19781 extra constant constraints. Ignore other non-register operands.
19783 2014-06-06 Alan Modra <amodra@gmail.com>
19786 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
19787 * doc/tm.texi: Regenerate.
19788 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
19789 Use throughout in place of REG_PARM_STACK_SPACE.
19790 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
19791 "incoming" param. Pass to rs6000_function_parms_need_stack.
19792 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
19793 prototype_p when incoming. Use function decl when incoming
19794 to handle K&R style functions.
19795 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
19796 (INCOMING_REG_PARM_STACK_SPACE): Define.
19798 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19801 * cfgexpand.c (expand_debug_expr): Use address space of nested
19802 TREE_TYPE for ADDR_EXPR and MEM_REF.
19804 2014-06-05 Jeff Law <law@redhat.com>
19806 PR tree-optimization/61289
19807 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
19808 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
19809 looking for those which match LHS. All callers changed.
19810 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
19811 parameters and code which manipulated them. All callers changed.
19812 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
19813 and DST_MAP parameters. Simplify invalidation code by just calling
19814 invalidate_equivalences. All callers changed.
19815 (thread_across_edge): Simplify now that we don't need to maintain
19816 the map of equivalences to invalidate.
19818 2014-06-05 Kai Tietz <ktietz@redhat.com>
19819 Richard Henderson <rth@redhat.com>
19822 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
19823 checking for !TARGET_X32.
19824 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
19825 (sibcall_intern): New define_insn, plus required peepholes.
19826 (sibcall_pop_intern): Likewise.
19827 (sibcall_value_intern): Likewise.
19828 (sibcall_value_pop_intern): Likewise.
19830 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
19832 * tree-inline.c (tree_function_versioning): Check DF info existence
19833 before accessing it.
19835 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19837 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
19839 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
19840 aarch64_frame hard_fp_offset and frame_size.
19841 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
19842 frame_size; remove original_frame_size.
19843 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
19844 (aarch64_initial_elimination_offset): Remove frame_size and
19845 offset. Use aarch64_frame frame_size.
19847 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19848 Jiong Wang <jiong.wang@arm.com>
19849 Renlin <renlin.li@arm.com>
19851 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
19852 initialization of R30 offset. Update offset. Iterate core
19853 regisers upto X30. Remove X29, X30 specific code.
19855 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19856 Jiong Wang <jiong.wang@arm.com>
19858 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
19859 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
19860 (aarch64_register_saved_on_entry): Adjust test.
19862 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19864 * config/aarch64/aarch64.h (machine_function): Move
19865 saved_varargs_size from here...
19866 (aarch64_frame): ... to here.
19868 * config/aarch64/aarch64.c (aarch64_expand_prologue)
19869 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
19870 (aarch64_initial_elimination_offset)
19871 (aarch64_setup_incoming_varargs): Adjust location of
19872 saved_varargs_size.
19874 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19876 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
19879 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
19880 Prachi Godbole <Prachi.Godbole@imgtec.com>
19882 * config/mips/mips-cpus.def: Add definition for p5600. Updated
19883 mips32r5 entry to use PROCESSOR_P5600.
19884 * config/mips/mips-tables.opt: Regenerate.
19885 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
19886 * config/mips/mips.c (mips_fmadd_bypass): New function.
19887 (mips_rtx_cost_data): Add costs for p5600.
19888 (mips_issue_rate): Add support for p5600.
19889 (mips_multipass_dfa_lookahead): Likewise.
19890 * config/mips/mips.h (TUNE_P5600): New define.
19891 (TUNE_MACC_CHAINS): Add TUNE_P5600.
19892 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
19893 * config/mips/mips.md: Include p5600.md.
19894 (processor): Add p5600.
19895 * config/mips/p5600.md: New file.
19897 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
19899 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
19900 * config/i386/predicates.md (palignr_operand): New.
19901 Indicates if permutation is suitable for palignr instruction.
19903 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
19905 PR tree-optimization/61319
19906 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19907 stmt belongs to loop.
19909 2014-06-05 Richard Biener <rguenther@suse.de>
19911 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
19912 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
19913 (lookup_tmp_var): Adjust.
19914 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
19916 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19918 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19920 2014-06-05 Marek Polacek <polacek@redhat.com>
19923 * doc/invoke.texi: Document -Wlogical-not-parentheses.
19925 2014-06-04 Tom de Vries <tom@codesourcery.com>
19927 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19930 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
19932 PR tree-optimization/61385
19933 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19935 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
19937 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
19938 changed to use fatal_error.
19939 (main): Ensure lto_wrapper_cleanup is run atexit.
19941 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19943 * lra-constraints.c (valid_address_p): Move earlier in file.
19944 (address_eliminator): New structure.
19945 (satisfies_memory_constraint_p): New function.
19946 (satisfies_address_constraint_p): Likewise.
19947 (process_alt_operands, process_address, curr_insn_transform): Use them.
19949 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19951 * lra-int.h (lra_static_insn_data): Make operand_alternative a
19953 (target_lra_int, default_target_lra_int, this_target_lra_int)
19954 (op_alt_data): Delete.
19955 * lra.h (lra_init): Delete.
19956 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19957 (init_insn_code_data_once): Remove op_alt_data handling.
19958 (finish_insn_code_data_once): Likewise.
19959 (init_op_alt_data): Delete.
19960 (get_static_insn_data): Initialize operand_alternative to null.
19961 (free_insn_recog_data): Cast operand_alternative before freeing it.
19962 (setup_operand_alternative): Take the operand_alternative as
19963 parameter and assume it isn't already cached in the static
19965 (lra_set_insn_recog_data): Update accordingly.
19966 (lra_init): Delete.
19967 * ira.c (ira_init): Don't call lra_init.
19968 * target-globals.h (this_target_lra_int): Declare.
19969 (target_globals): Remove lra_int.
19970 (restore_target_globals): Update accordingly.
19971 * target-globals.c: Don't include lra-int.h.
19972 (default_target_globals, save_target_globals): Remove lra_int.
19974 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19976 * recog.h (operand_alternative): Convert reg_class, reject,
19977 matched and matches into bitfields.
19978 (preprocess_constraints): New overload.
19979 (preprocess_insn_constraints): New function.
19980 (preprocess_constraints): Take the insn as parameter.
19981 (recog_op_alt): Change into a pointer.
19982 (target_recog): Add x_op_alt.
19983 * recog.c (asm_op_alt): New variable.
19984 (recog_op_alt): Change into a pointer.
19985 (preprocess_constraints): New overload, replacing the old function
19986 definition with one that doesn't use global state.
19987 (preprocess_insn_constraints): New function.
19988 (preprocess_constraints): Use them. Take the insn as parameter.
19989 Use asm_op_alt for asms.
19990 (recog_init): Free existing x_op_alt entries.
19991 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19993 (make_early_clobber_and_input_conflicts): Likewise.
19994 (process_bb_node_lives): Pass the insn to process_constraints.
19995 * reg-stack.c (check_asm_stack_operands): Likewise.
19996 (subst_asm_stack_regs): Likewise.
19997 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19998 * regrename.c (build_def_use): Likewise.
19999 * sched-deps.c (sched_analyze_insn): Likewise.
20000 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
20001 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
20002 (note_invalid_constants): Likewise.
20003 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20004 (ix86_legitimate_combined_insn): Make operand_alternative pointer
20007 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
20009 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
20010 * ira-lives.c (check_and_make_def_conflict): Check for disabled
20012 (make_early_clobber_and_input_conflicts): Likewise.
20013 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20015 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
20017 * recog.h (alternative_class): New function.
20018 (which_op_alt): Return a const recog_op_alt.
20019 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
20020 (subst_asm_stack_regs): Likewise.
20021 * config/arm/arm.c (note_invalid_constants): Likewise.
20022 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
20023 the operand_alternative; use alternative class instead.
20024 * sel-sched.c (get_reg_class): Likewise.
20025 * regrename.c (build_def_use): Likewise.
20026 (hide_operands, restore_operands, record_out_operands): Update type
20029 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
20031 * recog.h (recog_op_alt): Convert to a flat array.
20032 (which_op_alt): New function.
20033 * recog.c (recog_op_alt): Convert to a flat array.
20034 (preprocess_constraints): Update accordingly, grouping all
20035 operands of the same alternative together, rather than the
20037 * ira-lives.c (check_and_make_def_conflict): Likewise.
20038 (make_early_clobber_and_input_conflicts): Likewise.
20039 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20040 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
20041 (subst_asm_stack_regs): Likewise.
20042 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
20043 * regrename.c (hide_operands, record_out_operands): Likewise.
20044 (build_def_use): Likewise.
20045 * sel-sched.c (get_reg_class): Likewise.
20046 * config/arm/arm.c (note_invalid_constants): Likewise.
20048 2014-06-04 Jason Merrill <jason@redhat.com>
20052 * gimplify.c (gimplify_arg): Non-static.
20053 * gimplify.h: Declare it.
20055 2014-06-04 Richard Biener <rguenther@suse.de>
20057 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20058 TREE_PUBLIC and DECL_EXTERNAL decls.
20060 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
20062 * regcprop.c (copyprop_hardreg_forward_1): Account for
20063 HARD_REGNO_CALL_PART_CLOBBERED.
20065 2014-06-04 Richard Biener <rguenther@suse.de>
20067 * configure.ac: Check whether the underlying type of int64_t
20068 is long or long long.
20069 * configure: Regenerate.
20070 * config.in: Likewise.
20071 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
20072 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20074 2014-06-04 Richard Biener <rguenther@suse.de>
20076 PR tree-optimization/60098
20077 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
20079 (dse_optimize_stmt): Simplify, now that we found a kill
20082 2014-06-04 Richard Biener <rguenther@suse.de>
20084 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
20085 of accesses with non-invariant address.
20087 2014-06-04 Martin Liska <mliska@suse.cz>
20089 * cgraph.h (cgraph_make_wrapper): New function introduced.
20090 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
20091 * ipa-inline.h (inline_analyze_function): The function is global.
20092 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
20094 2014-06-04 Martin Liska <mliska@suse.cz>
20096 * tree.h (private_lookup_attribute_starting): New function.
20097 (lookup_attribute_starting): Likewise.
20098 * tree.c (private_lookup_attribute_starting): Likewise.
20100 2014-06-04 Martin Liska <mliska@suse.cz>
20102 * cgraph.h (expand_thunk): New argument added.
20103 (address_taken_from_non_vtable_p): New global function.
20104 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
20105 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
20106 * cgraphunit.c (analyze_function): Likewise.
20107 (assemble_thunks_and_aliases): Argument added to call.
20108 (expand_thunk): New argument forces to produce GIMPLE thunk.
20110 2014-06-04 Martin Liska <mliska@suse.cz>
20112 * coverage.h (coverage_compute_cfg_checksum): Argument added.
20113 * coverage.c (coverage_compute_cfg_checksum): Likewise.
20114 * profile.c (branch_prob): Likewise.
20116 2014-06-04 Martin Jambor <mjambor@suse.cz>
20119 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
20120 handler for switch on an ipa_ref_use enum.
20121 * ipa-reference.c (analyze_function): Likewise.
20123 2014-06-04 Kai Tietz <ktietz@redhat.com>
20125 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
20126 from old call-instruction.
20128 2014-06-04 Bin Cheng <bin.cheng@arm.com>
20130 * config/aarch64/aarch64.c (aarch64_classify_address)
20131 (aarch64_legitimize_reload_address): Support full addressing modes
20133 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
20134 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
20136 2014-06-03 Andrew Pinski <apinski@cavium.com>
20138 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
20141 2014-06-03 Andrew Pinski <apinski@cavium.com>
20143 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
20144 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
20146 2014-06-03 Kai Tietz <ktietz@redhat.com>
20148 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
20151 2014-06-03 Dehao Chen <dehao@google.com>
20153 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
20156 2014-06-03 Marek Polacek <polacek@redhat.com>
20159 * doc/invoke.texi: Document -Wswitch-bool.
20160 * function.c (stack_protect_epilogue): Cast controlling expression of
20162 * gengtype.c (walk_type): Generate switch expression with its
20163 controlling expression cast to int.
20165 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
20167 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
20169 * config/avr/avr-tables.opt: Regenerate.
20170 * config/avr/t-multilib: Regenerate.
20171 * doc/avr-mmcu.texi: Regenerate.
20173 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
20174 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20176 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
20177 (ata6617c, ata664251): Add new avr35 devices.
20178 (ata6612c): Add new avr4 device.
20179 (ata6613c, ata6614q): Add new avr5 devices.
20180 * config/avr/avr-tables.opt: Regenerate.
20181 * config/avr/t-multilib: Regenerate.
20182 * doc/avr-mmcu.texi: Regenerate.
20184 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
20186 * gcc/config/aarch64/aarch64-builtins.c
20187 (aarch64_types_binop_ssu_qualifiers): New static data.
20188 (TYPES_BINOP_SSU): Define.
20189 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
20190 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
20191 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
20192 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
20193 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
20194 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
20195 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
20196 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
20197 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
20198 suffix to builtin function name, remove cast.
20199 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
20200 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
20201 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
20203 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
20205 * gcc/config/aarch64/aarch64-builtins.c
20206 (aarch64_types_binop_uus_qualifiers,
20207 aarch64_types_shift_to_unsigned_qualifiers,
20208 aarch64_types_unsigned_shiftacc_qualifiers): Define.
20209 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
20210 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
20211 sqshlu_n, uqshl_n): Update qualifiers.
20212 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
20213 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
20214 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
20215 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
20216 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
20217 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
20218 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
20219 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
20220 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
20221 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
20222 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
20223 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
20224 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
20225 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
20226 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
20227 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
20228 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
20229 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
20230 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
20231 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
20232 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
20233 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
20234 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
20235 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
20236 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
20237 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
20238 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
20240 2014-06-03 Teresa Johnson <tejohnson@google.com>
20242 * tree-sra.c (modify_function): Record caller nodes after rebuild.
20244 2014-06-02 Jason Merrill <jason@redhat.com>
20247 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
20249 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
20251 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
20254 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
20256 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
20258 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
20259 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
20260 * config/aarch64/iterators.md (REVERSE): New iterator.
20261 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
20262 (rev_op): New int_attribute.
20263 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
20264 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
20265 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
20266 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
20267 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
20268 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
20269 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
20270 Replace temporary __asm__ with __builtin_shuffle.
20272 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
20274 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
20276 * config/mips/mips-tables.opt: Regenerate.
20277 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
20278 to use mips_isa_rev rather than ISA_MIPS32R2.
20279 * config/mips/mips.h (ISA_MIPS32R3): New define.
20280 (ISA_MIPS32R5): New define.
20281 (ISA_MIPS64R3): New define.
20282 (ISA_MIPS64R5): New define.
20283 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
20284 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
20285 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
20287 (MIPS_ISA_SYNCI_SPEC): Likewise.
20288 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
20289 (LINK_SPEC): Added mips32r3 and mips32r5.
20290 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
20291 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
20292 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
20293 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
20294 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
20295 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
20296 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
20298 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
20300 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
20302 * config/mips/mips.opt (mxpa): New option.
20303 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
20306 2014-06-03 Martin Jambor <mjambor@suse.cz>
20309 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
20312 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
20314 PR tree-optimization/61328
20315 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
20316 initialization from find_bswap_or_nop_1.
20317 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
20318 in source_expr2 before using the size value the function sets. Also
20319 make use of init_symbolic_number () in both the old place and
20320 find_bswap_or_nop_load () to avoid reading uninitialized memory when
20321 doing recursion in the GIMPLE_BINARY_RHS case.
20323 2014-06-03 Richard Biener <rguenther@suse.de>
20325 PR tree-optimization/61383
20326 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
20329 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
20331 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
20332 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
20333 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
20334 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
20336 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
20337 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
20338 * system.h: ...here and make it unconditional.
20339 * target.def (conditional_register_usage): Mention
20340 define_register_constraint instead of old-style constraint macros.
20341 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
20342 * doc/tm.texi: Regenerate.
20343 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
20344 protected by !USE_MD_CONSTRAINTS.
20345 * config/frv/frv.md: Remove quote from old version of documentation.
20346 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
20347 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
20348 CONST_DOUBLE_OK_FOR_LETTER.
20349 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
20351 2014-06-02 Andrew Pinski <apinski@cavium.com>
20353 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
20354 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
20355 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
20356 file whose name depends on -mabi= and -mbig-endian.
20357 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
20358 Handle LP64 better and handle ilp32 too.
20359 (MULTILIB_OPTIONS): Delete.
20360 (MULTILIB_DIRNAMES): Delete.
20362 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
20364 * expr.h: Remove prototypes of functions defined in builtins.c.
20365 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
20366 Remove prototypes of functions defined in builtins.c.
20367 * builtins.h: Update prototype list to include all exported functions.
20368 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
20369 no_c99_libc_has_function): Move to targhooks.c
20370 (build_string_literal, build_call_expr_loc_array,
20371 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
20373 (expand_builtin_object_size, fold_builtin_object_size): Make static.
20374 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
20375 no_c99_libc_has_function): Relocate from builtins.c.
20376 * tree.c: Include builtins.h.
20377 (build_call_expr_loc_array, build_call_expr_loc_vec,
20378 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
20380 * fold-const.h (fold_fma): Move prototype to builtins.h.
20381 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
20382 * asan.c: Include builtins.h.
20383 * cfgexpand.c: Likewise.
20384 * convert.c: Likewise.
20385 * emit-rtl.c: Likewise.
20386 * except.c: Likewise.
20387 * expr.c: Likewise.
20388 * fold-const.c: Likewise.
20389 * gimple-fold.c: Likewise.
20390 * gimple-ssa-strength-reduction.c: Likewise.
20391 * gimplify.c: Likewise.
20392 * ipa-inline.c: Likewise.
20393 * ipa-prop.c: Likewise.
20394 * lto-streamer-out.c: Likewise.
20395 * stmt.c: Likewise.
20396 * tree-inline.c: Likewise.
20397 * tree-object-size.c: Likewise.
20398 * tree-sra.c: Likewise.
20399 * tree-ssa-ccp.c: Likewise.
20400 * tree-ssa-forwprop.c: Likewise.
20401 * tree-ssa-loop-ivcanon.c: Likewise.
20402 * tree-ssa-loop-ivopts.c: Likewise.
20403 * tree-ssa-math-opts.c: Likewise.
20404 * tree-ssa-reassoc.c: Likewise.
20405 * tree-ssa-threadedge.c: Likewise.
20406 * tree-streamer-in.c: Likewise.
20407 * tree-vect-data-refs.c: Likewise.
20408 * tree-vect-patterns.c: Likewise.
20409 * tree-vect-stmts.c: Likewise.
20410 * config/aarch64/aarch64.c: Likewise.
20411 * config/alpha/alpha.c: Likewise.
20412 * config/arc/arc.c: Likewise.
20413 * config/arm/arm.c: Likewise.
20414 * config/avr/avr.c: Likewise.
20415 * config/bfin/bfin.c: Likewise.
20416 * config/c6x/c6x.c: Likewise.
20417 * config/cr16/cr16.c: Likewise.
20418 * config/cris/cris.c: Likewise.
20419 * config/epiphany/epiphany.c: Likewise.
20420 * config/fr30/fr30.c: Likewise.
20421 * config/frv/frv.c: Likewise.
20422 * config/h8300/h8300.c: Likewise.
20423 * config/i386/i386.c: Likewise.
20424 * config/i386/winnt.c: Likewise.
20425 * config/ia64/ia64.c: Likewise.
20426 * config/iq2000/iq2000.c: Likewise.
20427 * config/lm32/lm32.c: Likewise.
20428 * config/m32c/m32c.c: Likewise.
20429 * config/m32r/m32r.c: Likewise.
20430 * config/m68k/m68k.c: Likewise.
20431 * config/mcore/mcore.c: Likewise.
20432 * config/mep/mep.c: Likewise.
20433 * config/microblaze/microblaze.c: Likewise.
20434 * config/mips/mips.c: Likewise.
20435 * config/mmix/mmix.c: Likewise.
20436 * config/mn10300/mn10300.c: Likewise.
20437 * config/moxie/moxie.c: Likewise.
20438 * config/msp430/msp430.c: Likewise.
20439 * config/nds32/nds32.c: Likewise.
20440 * config/pa/pa.c: Likewise.
20441 * config/pdp11/pdp11.c: Likewise.
20442 * config/picochip/picochip.c: Likewise.
20443 * config/rl78/rl78.c: Likewise.
20444 * config/rs6000/rs6000.c: Likewise.
20445 * config/rx/rx.c: Likewise.
20446 * config/s390/s390.c: Likewise.
20447 * config/score/score.c: Likewise.
20448 * config/sh/sh.c: Likewise.
20449 * config/sparc/sparc.c: Likewise.
20450 * config/spu/spu.c: Likewise.
20451 * config/stormy16/stormy16.c: Likewise.
20452 * config/tilegx/tilegx.c: Likewise.
20453 * config/tilepro/tilepro.c: Likewise.
20454 * config/v850/v850.c: Likewise.
20455 * config/vax/vax.c: Likewise.
20456 * config/xtensa/xtensa.c: Likewise.
20458 2014-06-02 Jeff Law <law@redhat.com>
20460 PR rtl-optimization/61094
20461 * ree.c (combine_reaching_defs): Do not reextend an insn if it
20462 was marked as do_no_reextend. If a copy is needed to eliminate
20463 an extension, then mark it as do_not_reextend.
20465 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
20467 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
20469 2014-06-02 Richard Henderson <rth@redhat.com>
20472 * config/alpha/alpha.c (print_operand_address): Allow symbolic
20473 addresses inside asms. Use output_operand_lossage instead of
20476 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
20479 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
20480 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
20482 2014-06-02 Tom de Vries <tom@codesourcery.com>
20484 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
20485 case that x has VOIDmode.
20487 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
20489 * varasm.c (copy_constant): Delete function.
20490 (build_constant_desc): Don't call it.
20492 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20495 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
20496 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
20497 with immediate_operand.
20499 2014-06-02 Andreas Schwab <schwab@suse.de>
20501 * config/ia64/ia64.c
20502 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
20503 pending_data_specs first.
20505 2014-06-02 Richard Biener <rguenther@suse.de>
20507 PR tree-optimization/61378
20508 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
20509 valueized_anything.
20511 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
20513 * config/i386/constraints.md (Bw): Rename from 'w'.
20514 (Bz): Rename from 'z'.
20515 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
20517 2014-06-01 Kai Tietz <ktietz@redhat.com>
20520 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
20521 * config/i386/i386.md (sibcall_insn_operand): Use Bs
20522 instead of m constraint.
20524 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
20526 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
20527 a separate alternative where the scratch operand 2 is marked as
20530 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20532 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
20533 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
20534 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
20535 and __builtins_arm_get_fpscr.
20536 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20537 __builtins_arm_get_fpscr.
20538 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
20539 __builtins_arm_ldfpscr.
20540 (arm_atomic_assign_expand_fenv): New function.
20541 * config/arm/vfp.md (set_fpscr): New pattern.
20542 (get_fpscr) : Likewise.
20543 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
20545 * doc/extend.texi (AARCH64 Built-in Functions) : Document
20546 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
20548 2014-05-30 Jakub Jelinek <jakub@redhat.com>
20550 * asan.c (report_error_func): Add SLOW_P argument, use
20551 BUILT_IN_ASAN_*_N if set.
20552 (build_check_stmt): Likewise.
20553 (instrument_derefs): If T has insufficient alignment,
20554 force same handling as for odd sizes.
20556 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
20557 BUILT_IN_ASAN_REPORT_STORE_N): New.
20558 * asan.c (struct asan_mem_ref): Change access_size type to
20560 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
20561 update_mem_ref_hash_table): Likewise.
20562 (asan_mem_ref_hasher::hash): Hash in a HWI.
20563 (report_error_func): Change size_in_bytes argument to HWI.
20564 Use *_N builtins if size_in_bytes is larger than 16 or not power of
20566 (build_shadow_mem_access): New function.
20567 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
20568 Handle size_in_bytes not power of two or larger than 16.
20569 (instrument_derefs): Don't give up if size_in_bytes is not
20570 power of two or is larger than 16.
20572 2014-05-30 Kai Tietz <ktietz@redhat.com>
20575 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
20576 for sibling-tail-calls.
20577 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
20579 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
20580 (sibcall_insn_operand): Add check for sibcall_memory_operand.
20582 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20584 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
20585 * config/avr/avr-tables.opt: Regenerate.
20586 * config/avr/t-multilib: Regenerate.
20587 * doc/avr-mmcu.texi: Regenerate.
20589 2014-05-30 Ian Lance Taylor <iant@google.com>
20591 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
20594 2014-05-30 Tom de Vries <tom@codesourcery.com>
20596 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20599 2014-05-30 Tom de Vries <tom@codesourcery.com>
20601 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20602 * lra.c (initialize_lra_reg_info_element): Add init of
20603 actual_call_used_reg_set field.
20604 (lra): Call lra_create_live_ranges before lra_inheritance for
20606 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20608 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
20609 instead of call_used_reg_set for -fuse-caller-save.
20610 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20612 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20614 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
20616 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
20618 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
20620 * ira.c (ira_get_dup_out_num): Check for output operands at
20621 the start of the loop. Handle cases where an included alternative
20622 follows an excluded one.
20624 2014-05-29 Mike Stump <mikestump@comcast.net>
20627 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
20628 post ld passes when lto is used.
20630 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
20632 PR rtl-optimization/61325
20633 * lra-constraints.c (process_address): Rename to process_address_1.
20634 (process_address): New function.
20636 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
20638 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
20639 TYPES_BINOPV): New static data.
20640 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
20642 * config/aarch64/aarch64-simd.md (aarch64_ext,
20643 aarch64_im_lane_boundsi): New patterns.
20644 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
20646 (aarch64_evpc_ext): New function.
20648 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
20650 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
20651 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
20652 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
20653 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
20654 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
20656 2014-05-29 Tom de Vries <tom@codesourcery.com>
20658 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
20660 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
20661 Richard Sandiford <rdsandiford@googlemail.com>
20663 * arm/iterators.md (shiftable_ops): New code iterator.
20664 (t2_binop0, arith_shift_insn): New code attributes.
20665 * arm/predicates.md (shift_nomul_operator): New predicate.
20666 * arm/arm.md (insn_enabled): Delete.
20667 (enabled): Remove insn_enabled test.
20668 (*arith_shiftsi): Delete. Replace with ...
20669 (*<arith_shift_insn>_multsi): ... new pattern.
20670 (*<arith_shift_insn>_shiftsi): ... new pattern.
20671 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
20673 2014-05-29 Radovan Obradovic <robradovic@mips.com>
20674 Tom de Vries <tom@codesourcery.com>
20676 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
20677 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
20679 (mips_split_call): Use POST_CALL_TMP_REG.
20680 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
20682 2014-05-29 Tom de Vries <tom@codesourcery.com>
20684 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
20685 with #ifdef STACK_REGS.
20687 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
20689 * varasm.c (get_variable_section): Walk aliases.
20690 (place_block_symbol): Walk aliases.
20692 2014-05-28 Tom de Vries <tom@codesourcery.com>
20695 2014-05-28 Tom de Vries <tom@codesourcery.com>
20697 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20698 * lra.c (initialize_lra_reg_info_element): Add init of
20699 actual_call_used_reg_set field.
20700 (lra): Call lra_create_live_ranges before lra_inheritance for
20702 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20704 * lra-constraints.c (need_for_call_save_p): Use
20705 actual_call_used_reg_set instead of call_used_reg_set for
20707 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20709 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20711 * doc/md.texi: Document that the % constraint character must
20712 be at the beginning of the string.
20713 * genoutput.c (validate_insn_alternatives): Check that '=',
20714 '+' and '%' only appear at the beginning of a constraint.
20715 * ira.c (commutative_constraint_p): Delete.
20716 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
20717 at the start of the string.
20718 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
20720 * config/arm/neon.md (bicdi3_neon): Likewise.
20721 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
20722 (slt_si, sltu_si): Likewise.
20723 * config/vax/vax.md (sbcdi3): Likewise.
20724 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
20725 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
20726 (mul64): Move '%' to beginning of constraint.
20727 * config/arm/arm.md (*xordi3_insn): Likewise.
20728 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
20729 (xorsi3): Likewise.
20731 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20733 * doc/md.texi: Document the restrictions on the "enabled" attribute.
20735 2014-05-28 Jason Merrill <jason@redhat.com>
20738 * cgraph.h (symtab_node::get_comdat_group_id): New.
20739 * cgraphunit.c (analyze_functions): Call it.
20740 * symtab.c (dump_symtab_node): Likewise.
20741 * tree.c (decl_comdat_group_id): New.
20742 * tree.h: Declare it.
20743 * lto-streamer-out.c (write_symbol): Use it.
20744 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
20746 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
20748 PR bootstrap/PR61146
20749 * wide-int.cc: Do not include longlong.h when compiling with clang.
20751 2014-05-28 Richard Biener <rguenther@suse.de>
20753 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
20754 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
20755 (vrp_visit_assignment_or_call): Print less vertical space.
20756 (vrp_visit_stmt): Likewise.
20757 (vrp_visit_phi_node): Likewise. For a PHI argument with
20758 VR_VARYING range consider recording it as copy.
20760 2014-05-28 Richard Biener <rguenther@suse.de>
20763 2014-05-28 Richard Biener <rguenther@suse.de>
20765 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20767 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
20769 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
20770 sufficiently aligned and an offset is used at the same time.
20771 (expand_expr_real_1): Likewise.
20773 2014-05-28 Richard Biener <rguenther@suse.de>
20775 PR middle-end/61045
20776 * fold-const.c (fold_comparison): When folding
20777 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
20778 the sign of the remaining constant operand stays the same.
20780 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
20782 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
20783 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
20784 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
20786 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
20787 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
20788 (m32bit-doubles) Likewise.
20789 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
20790 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
20793 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20795 * configure.ac ($gcc_cv_ld_clearcap): New test.
20796 * configure: Regenerate.
20797 * config.in: Regenerate.
20798 * config/sol2.opt (mclear-hwcap): New option.
20799 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
20800 * config/sol2-clearcap.map: Moved here from
20801 testsuite/gcc.target/i386/clearcap.map.
20802 * config/sol2-clearcapv2.map: Move here from
20803 gcc.target/i386/clearcapv2.map.
20804 * config/t-sol2 (install): Depend on install-clearcap-map.
20805 (install-clearcap-map): New target.
20806 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
20809 2014-05-28 Richard Biener <rguenther@suse.de>
20811 * hwint.h (*_HALF_WIDE_INT*): Move to ...
20812 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
20813 ... here and remove the rest.
20814 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20816 2014-05-28 Richard Biener <rguenther@suse.de>
20818 PR tree-optimization/61335
20819 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
20820 new range fails, drop to varying.
20822 2014-05-28 Olivier Hainque <hainque@adacore.com>
20824 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
20825 (CPP_SPEC): Add entry for -mcpu=8548.
20826 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
20827 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
20829 2014-05-28 Tom de Vries <tom@codesourcery.com>
20831 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20832 * lra.c (initialize_lra_reg_info_element): Add init of
20833 actual_call_used_reg_set field.
20834 (lra): Call lra_create_live_ranges before lra_inheritance for
20836 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20838 * lra-constraints.c (need_for_call_save_p): Use
20839 actual_call_used_reg_set instead of call_used_reg_set for
20841 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20843 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20844 Tom de Vries <tom@codesourcery.com>
20846 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
20848 (@item -fuse-caller-save): New item.
20850 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20851 Tom de Vries <tom@codesourcery.com>
20853 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
20854 OPT_fuse_caller_save.
20856 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20857 Tom de Vries <tom@codesourcery.com>
20859 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
20860 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
20861 get_call_reg_set_usage.
20862 * resource.c (mark_set_resources, mark_target_live_regs): Use
20863 get_call_reg_set_usage.
20864 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
20866 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
20867 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
20868 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20869 * ira-build.c (ira_create_allocno): Init
20870 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20871 (create_cap_allocno, propagate_allocno_info)
20872 (propagate_some_info_from_allocno)
20873 (copy_info_to_removed_store_destinations): Handle
20874 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20875 * ira-costs.c (ira_tune_allocno_costs): Use
20876 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
20878 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20879 Tom de Vries <tom@codesourcery.com>
20881 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
20882 and function_used_regs_valid fields.
20883 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
20884 find_all_hard_reg_sets.
20885 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
20886 (get_call_reg_set_usage): New function.
20887 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
20888 * regs.h (get_call_reg_set_usage): Declare.
20890 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
20893 * config/dbx.h (License): Add Runtime Library Exception.
20894 * config/newlib-stdint.h (License): Same.
20895 * config/rtems.h (License): Same
20896 * config/initfini-array.h (License): Same
20897 * config/v850/v850.h (License): Same.
20898 * config/v850/v850-opts.h (License): Same
20899 * config/v850/rtems.h (License): Same.
20901 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
20904 * doc/extend.texi (Local Labels): Note that label differences are
20905 not supported for AVR.
20907 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20908 Olivier Hainque <hainque@adacore.com>
20910 * rtl.h (set_for_reg_notes): Declare.
20911 * emit-rtl.c (set_for_reg_notes): New function.
20912 (set_unique_reg_note): Use it.
20913 * optabs.c (add_equal_note): Likewise
20915 2014-05-27 Andrew Pinski <apinski@cavium.com>
20917 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20918 Use <w> for the register in assembly template.
20919 (stack_protect_test): Use the mode of operands[0] for the result.
20920 (stack_protect_test_<mode>): Use <w> for the register
20921 in assembly template.
20923 2014-05-27 DJ Delorie <dj@redhat.com>
20925 * config/rx/rx.c (add_vector_labels): New.
20926 (rx_output_function_prologue): Call it.
20927 (rx_handle_func_attribute): Don't require empty arguments.
20928 (rx_handle_vector_attribute): New.
20929 (rx_attribute_table): Add "vector" attribute.
20930 * doc/extend.texi (interrupt, vector): Document new/changed
20931 RX-specific attributes.
20933 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20935 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20937 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20938 predicate to detect a negative quotient.
20940 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20942 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20943 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20944 Add X - Y CMP 0 to X CMP Y transformation.
20945 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20947 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
20949 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20952 2014-05-27 Steve Ellcey <sellcey@mips.com>
20954 * config/mips/mips.c: Add include of cgraph.h.
20956 2014-05-27 Richard Biener <rguenther@suse.de>
20958 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20960 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20963 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20964 * config/arm/arm-cores.def (License): Same.
20965 * config/arm/arm-opts.h (License): Same.
20966 * config/arm/aout.h (License): Same.
20967 * config/arm/bpabi.h (License): Same.
20968 * config/arm/elf.h (License): Same.
20969 * config/arm/linux-elf.h (License): Same.
20970 * config/arm/linux-gas.h (License): Same.
20971 * config/arm/netbsd-elf.h (License): Same.
20972 * config/arm/uclinux-eabi.h (License): Same.
20973 * config/arm/uclinux-elf.h (License): Same.
20974 * config/arm/vxworks.h (License): Same.
20976 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20978 * config/arm/neon.md (neon_bswap<mode>): New pattern.
20979 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20980 (arm_init_neon_builtins): Handle NEON_BSWAP.
20981 Define required type nodes.
20982 (arm_expand_neon_builtin): Handle NEON_BSWAP.
20983 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20984 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20985 * config/arm/iterators.md (VDQHSD): New mode iterator.
20987 2014-05-27 Richard Biener <rguenther@suse.de>
20989 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20990 Try using literal operands when comparing value-ranges failed.
20992 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20994 * ira.c (commutative_operand): Adjust for change to recog_data.
20995 [Missing from previous commit.]
20997 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20999 * system.h (TEST_BIT): New macro.
21000 * recog.h (alternative_mask): New type.
21001 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
21002 (recog_data_d): Replace alternative_enabled_p array with
21003 enabled_alternatives.
21004 (target_recog): New structure.
21005 (default_target_recog, this_target_recog): Declare.
21006 (get_enabled_alternatives, recog_init): Likewise.
21007 * recog.c (default_target_recog, this_target_recog): New variables.
21008 (get_enabled_alternatives): New function.
21009 (extract_insn): Use it.
21010 (recog_init): New function.
21011 (preprocess_constraints, constrain_operands): Adjust for change to
21013 * postreload.c (reload_cse_simplify_operands): Likewise.
21014 * reload.c (find_reloads): Likewise.
21015 * ira-costs.c (record_reg_classes): Likewise.
21016 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
21017 all alternatives after a disabled one would be skipped.
21018 (ira_implicitly_set_insn_hard_regs): Likewise.
21019 * ira.c (ira_setup_alts): Adjust for change to recog_data.
21020 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
21021 with enabled_alternatives.
21022 * lra.c (free_insn_recog_data): Update accordingly.
21023 (lra_update_insn_recog_data): Likewise.
21024 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
21025 * lra-constraints.c (process_alt_operands): Likewise. Handle
21026 only_alternative as part of the enabled mask.
21027 * target-globals.h (this_target_recog): Declare.
21028 (target_globals): Add a recog field.
21029 (restore_target_globals): Restore this_target_recog.
21030 * target-globals.c: Include recog.h.
21031 (default_target_globals): Initialize recog field.
21032 (save_target_globals): Likewise.
21033 * reginfo.c (reinit_regs): Call recog_init.
21034 * toplev.c (backend_init_target): Likewise.
21036 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
21038 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
21039 rather than any named insn's code.
21041 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
21044 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
21045 * config/arm/arm-cores.def (License): Same.
21047 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
21049 * tree.h (decl_comdat_group): Declare.
21050 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
21051 * tree.c (decl_comdat_group): Here.
21053 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
21055 PR rtl-optimization/61222
21056 * combine.c (simplify_shift_const_1): When moving a PLUS outside
21057 the shift, truncate the PLUS operand to the result mode.
21059 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
21062 * config/i386/i386.c (ix86_rtx_costs)
21063 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
21066 2014-05-26 Martin Jambor <mjambor@suse.cz>
21068 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
21071 2014-05-26 Richard Biener <rguenther@suse.de>
21073 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
21074 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
21075 Provide specializations.
21076 (wi::int_traits <HOST_WIDE_INT>,
21077 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
21079 2014-05-26 Alan Modra <amodra@gmail.com>
21082 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
21083 params and return a bool. Remove dead code. Update comment.
21084 Assert we have a const_int source. Remove bogus code from
21085 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
21086 handling of constants > 2G and reg_equal note, from..
21087 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
21088 return value. Update comment. If we can, use a new pseudo
21089 for intermediate calculations.
21090 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
21092 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
21093 call to rs6000_emit_set_const in splitter.
21094 (movdi_internal64+2, +3): Likewise.
21096 2014-05-26 Richard Biener <rguenther@suse.de>
21098 * system.h: Define __STDC_FORMAT_MACROS before
21099 including inttypes.h.
21100 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
21101 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
21102 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
21103 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
21104 HOST_WIDEST_INT_C): Remove.
21105 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
21106 if C99 inttypes.h is not available.
21107 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
21108 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
21109 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
21110 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
21111 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
21112 (struct output_info): Likewise.
21113 (print_statistics): Adjust.
21114 (dump_bitmap_statistics): Likewise.
21115 * bt-load.c (migrate_btr_defs): Print with PRId64.
21116 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
21117 (MAX_SAFE_MULTIPLIER): Adjust.
21118 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
21119 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
21120 dump_cgraph_node): Likewise.
21121 * final.c (dump_basic_block_info): Likewise.
21122 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
21123 * gcov.c (format_gcov): Likewise.
21124 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
21126 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
21127 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
21128 (inline_small_functions, dump_overall_stats, dump_inline_stats):
21129 Use PRId64 for dumping.
21130 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
21131 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
21132 (add_allocno_hard_regs): Adjust.
21133 * loop-doloop.c (doloop_modify): Print using PRId64.
21134 * loop-iv.c (inverse): Compute in uint64_t.
21135 (determine_max_iter, iv_number_of_iterations): Likewise.
21136 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
21137 Print using PRId64.
21138 * lto-streamer-out.c (write_symbol): Use uint64_t.
21139 * mcf.c (CAP_INFINITY): Use int64_t maximum.
21140 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
21141 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
21142 * modulo-sched.c (const_iteration_count): Use int64_t.
21143 (sms_schedule): Dump using PRId64.
21144 * predict.c (dump_prediction): Likewise.
21145 * pretty-print.h (pp_widest_integer): Remove.
21146 * profile.c (get_working_sets, is_edge_inconsistent,
21147 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
21148 * tree-pretty-print.c (pp_double_int): Remove case handling
21149 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
21150 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
21152 (pass_optimize_bswap::execute): Remove restriction on hosts.
21153 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
21154 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
21155 * tree.c (widest_int_cst_value): Remove.
21156 * tree.h (widest_int_cst_value): Likewise.
21157 * value-prof.c (dump_histogram_value): Print using PRId64.
21158 * gengtype.c (main): Also inject int64_t.
21159 * ggc-page.c (struct max_alignment): Use int64_t.
21160 * alloc-pool.c (struct allocation_object_def): Likewise.
21161 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
21163 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
21164 * doc/tm.texi: Regenerated.
21165 * gengtype-lex.l (IWORD): Handle [u]int64_t.
21166 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
21167 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
21168 mmix_output_register_setting): Use [u]int64_t in prototypes.
21169 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
21170 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
21171 mmix_output_octa, mmix_output_shifted_value): Adjust.
21172 (mmix_intval): Adjust. Remove unreachable case.
21173 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
21175 2014-05-26 Richard Biener <rguenther@suse.de>
21177 * configure.ac: Drop __int64 type check. Insist that we
21178 found uint64_t and int64_t.
21179 * hwint.h (HOST_BITS_PER___INT64): Remove.
21180 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
21181 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
21182 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
21183 (HOST_WIDEST_FAST_INT): Remove __int64 case.
21184 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
21185 for dst_q_src_df_rms_cdt.
21186 * configure: Regenerate.
21187 * config.in: Likewise.
21189 2014-05-26 Michael Tautschnig <mt@debian.org>
21192 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
21193 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
21195 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21197 PR rtl-optimization/61278
21198 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
21200 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21202 PR rtl-optimization/61220
21203 Part of PR rtl-optimization/61225
21204 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
21205 insn; skip split_edge for a block with only one successor.
21207 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
21209 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
21212 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
21214 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
21215 (update_vtable_references): New function.
21216 (function_and_variable_visibility): Rewrite also vtable initializers.
21217 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
21219 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
21221 * ggc.h (ggc_grow): New function.
21222 * ggc-none.c (ggc_grow): New function.
21223 * ggc-page.c (ggc_grow): Likewise.
21225 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
21227 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
21228 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
21229 comdat_can_be_unshared_p, cgraph_externally_visible_p,
21230 varpool_externally_visible_p, can_replace_by_local_alias,
21231 update_visibility_by_resolution_info, function_and_variable_visibility,
21232 pass_data_ipa_function_and_variable_visibility,
21233 make_pass_ipa_function_and_variable_visibility,
21234 whole_program_function_and_variable_visibility,
21235 pass_data_ipa_whole_program_visibility,
21236 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
21237 * cgraph.h (cgraph_local_node_p): Declare.
21238 * ipa-visibility.c: New file.
21239 * Makefile.in (OBJS): Add ipa-visiblity.o
21241 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
21243 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
21244 that var decl is available.
21246 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
21248 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
21249 symtab_node pointer.
21250 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
21251 (find_decls_types_r): Do not walk COMDAT_GROUP.
21252 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
21253 * varasm.c (make_decl_one_only): Use set_comdat_group;
21254 create node if needed.
21255 * ipa-inline-transform.c (save_inline_function_body): Update
21256 way we decl->symtab mapping.
21257 * symtab.c (symtab_hash, hash_node, eq_node
21258 symtab_insert_node_to_hashtable): Remove.
21259 (symtab_register_node): Update.
21260 (symtab_unregister_node): Update.
21261 (symtab_get_node): Reimplement as inline function.
21262 (symtab_add_to_same_comdat_group): Update.
21263 (symtab_dissolve_same_comdat_group_list): Update.
21264 (dump_symtab_base): Update.
21265 (verify_symtab_base): Update.
21266 (symtab_make_decl_local): Update.
21267 (fixup_same_cpp_alias_visibility): Update.
21268 (symtab_nonoverwritable_alias): Update.
21269 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
21270 * ipa.c (update_visibility_by_resolution_info): UPdate.
21271 * bb-reorder.c: Include cgraph.h
21272 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
21273 with comdat groups.
21274 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
21275 * cgraph.c (cgraph_get_create_node): Update.
21276 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
21278 (symtab_get_node): Make inline.
21279 (symtab_insert_node_to_hashtable): Remove.
21280 (symtab_can_be_discarded): Update.
21281 (decl_comdat_group): New function.
21282 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
21284 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
21286 (read_comdat_group): New function.
21287 (input_node, input_varpool_node): Use it.
21288 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
21290 * mips.c (mips_start_unique_function): Likewise.
21291 (ix86_code_end): Likewise.
21292 (rs6000_code_end): Likweise.
21293 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
21295 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
21297 * gengtype-state.c (fatal_reading_state): Bring offline.
21298 * optabs.c (widening_optab_handler): Bring offline.
21299 * optabs.h (widening_optab_handler): Likewise.
21300 * final.c (get_attr_length_1): Likewise.
21302 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
21304 * sched-int.h (sd_iterator_cond): Manually tail recurse.
21306 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21308 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
21309 (ppc440-compare): Include shift with dot.
21310 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
21311 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
21313 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
21315 (e6500_sfx2): Include it.
21316 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
21317 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
21318 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
21319 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
21320 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
21321 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
21322 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
21323 *lshiftrt_internal1le, *lshiftrt_internal1be,
21324 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
21325 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
21326 *rotldi3_internal10le, *rotldi3_internal10be,
21327 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
21328 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
21329 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
21330 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
21331 define_insns): Use type "shift" in the appropriate alternatives.
21333 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21335 * config/rs6000/rs6000.md (type): Add "logical". Delete
21337 (dot): Adjust comment.
21338 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
21339 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
21340 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
21341 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
21342 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
21343 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
21344 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
21345 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21347 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21348 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21349 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21350 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21351 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21352 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21353 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21354 * config/rs6000/8540.md (ppc8540_su): Adjust.
21355 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21356 cell-cmp-microcoded): Adjust.
21357 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
21358 * config/rs6000/e500mc.md (e500mc_su): Adjust.
21359 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
21360 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
21361 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
21362 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21363 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
21364 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
21365 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
21367 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
21368 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
21369 Adjust. Adjust comment.
21370 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21371 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
21373 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21375 * config/rs6000/rs6000.md (type): Add "add".
21376 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
21377 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
21378 define_insns): Use it.
21379 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21381 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21382 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21383 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21384 * config/rs6000/601.md (ppc601-integer): Adjust.
21385 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21386 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21387 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21388 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21389 * config/rs6000/8540.md (ppc8540_su): Adjust.
21390 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21391 cell-cmp-microcoded): Adjust.
21392 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
21393 * config/rs6000/e500mc.md (e500mc_su): Adjust.
21394 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
21395 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
21396 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
21397 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21398 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
21399 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
21400 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
21402 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
21403 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
21404 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21405 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
21407 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21409 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
21410 "delayed_compare", "var_delayed_compare".
21411 (var_shift): New attribute.
21412 (cell_micro): Adjust.
21413 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
21414 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
21415 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
21416 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
21417 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
21418 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
21419 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
21420 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
21421 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
21422 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21423 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
21424 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
21425 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
21426 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
21427 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
21428 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
21429 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
21430 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
21431 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
21432 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
21433 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
21434 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
21435 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
21436 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21437 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21439 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21440 * config/rs6000/440.md (ppc440-integer): Adjust.
21441 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21442 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
21443 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21444 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21445 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21446 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21447 * config/rs6000/8540.md (ppc8540_su): Adjust.
21448 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21449 cell-cmp-microcoded): Adjust.
21450 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
21451 * config/rs6000/e500mc.md (e500mc_su): Adjust.
21452 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
21453 e500mc64_delayed): Adjust.
21454 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
21455 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
21456 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21457 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
21458 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
21459 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
21460 power6-delayed-compare, power6-var-delayed-compare): Adjust.
21461 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
21462 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
21464 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21465 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21467 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21469 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
21470 (bits): New mode_attr.
21471 (idiv_ldiv): Delete mode_attr.
21472 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
21473 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21474 rs6000_adjust_priority, is_nonpipeline_insn,
21475 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21477 * config/rs6000/40x.md (ppc403-idiv): Adjust.
21478 * config/rs6000/440.md (ppc440-idiv): Adjust.
21479 * config/rs6000/476.md (ppc476-idiv): Adjust.
21480 * config/rs6000/601.md (ppc601-idiv): Adjust.
21481 * config/rs6000/603.md (ppc603-idiv): Adjust.
21482 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
21483 ppc620-ldiv): Adjust.
21484 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
21485 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
21486 * config/rs6000/8540.md (ppc8540_divide): Adjust.
21487 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
21488 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
21489 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
21490 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
21491 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
21492 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
21493 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
21494 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
21495 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
21496 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
21497 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
21498 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
21499 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
21500 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
21501 * config/rs6000/titan.md (titan_fxu_div): Adjust.
21503 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21505 * config/rs6000/rs6000.md (type): Delete "insert_word",
21506 "insert_dword". Add "insert".
21507 (size): Update comment.
21508 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21509 insn_must_be_first_in_group): Adjust.
21510 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21511 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21512 *insvsi_internal6, insvdi_internal): Adjust.
21514 * config/rs6000/40x.md (ppc403-integer): Adjust.
21515 * config/rs6000/440.md (ppc440-integer): Adjust.
21516 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
21517 * config/rs6000/601.md (ppc601-integer): Adjust.
21518 * config/rs6000/603.md (ppc603-integer): Adjust.
21519 * config/rs6000/6xx.md (ppc604-integer): Adjust.
21520 * config/rs6000/7450.md (ppc7450-integer): Adjust.
21521 * config/rs6000/7xx.md (ppc750-integer): Adjust.
21522 * config/rs6000/8540.md (ppc8540_su): Adjust.
21523 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
21524 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
21525 * config/rs6000/e500mc.md (e500mc_su): Adjust.
21526 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
21527 * config/rs6000/e5500.md (e5500_sfx): Adjust.
21528 * config/rs6000/e6500.md (e6500_sfx): Adjust.
21529 * config/rs6000/mpc.md (mpccore-integer): Adjust.
21530 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
21531 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
21532 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
21533 * config/rs6000/power7.md (power7-integer): Adjust.
21534 * config/rs6000/power8.md (power8-1cyc): Adjust.
21535 * config/rs6000/rs64.md (rs64a-integer): Adjust.
21536 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21538 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21540 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
21541 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
21542 (size): New attribute.
21543 (dot): New attribute.
21544 (cell_micro): Adjust.
21545 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
21546 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
21547 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
21548 umuldi3_highpart): Adjust.
21549 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21550 rs6000_adjust_priority, is_nonpipeline_insn,
21551 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21553 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
21554 ppc405-imul3): Adjust.
21555 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
21556 * config/rs6000/476.md (ppc476-imul): Adjust.
21557 * config/rs6000/601.md (ppc601-imul): Adjust.
21558 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
21559 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
21560 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
21561 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
21562 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
21564 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
21565 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
21566 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
21567 cell-imul): Adjust.
21568 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
21569 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
21570 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
21571 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
21572 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
21573 * config/rs6000/mpc.md (mpccore-imul): Adjust.
21574 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
21575 power4-lmul, power4-imul, power4-imul3): Adjust.
21576 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
21577 power5-lmul, power5-imul, power5-imul3): Adjust.
21578 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
21579 power6-lmul, power6-imul, power6-imul3): Adjust.
21580 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
21581 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
21583 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
21584 rs64a-lmul): Adjust.
21585 * config/rs6000/titan.md (titan_imul): Adjust.
21587 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21589 * config/rs6000/rs6000.md (type): Add new value "halfmul".
21590 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
21591 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
21592 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
21593 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
21594 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
21595 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
21596 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
21597 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
21598 * config/rs6000/titan.md: Delete nonsensical comment.
21599 (titan_imul): Add type imul3.
21600 (titan_mulhw): Remove type imul3; add type halfmul.
21602 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21604 * config/rs6000/rs6000.md (type): Reorder, reformat.
21606 2014-05-23 Martin Jambor <mjambor@suse.cz>
21608 PR tree-optimization/53787
21609 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
21610 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
21611 analysis_done, update all uses.
21612 * ipa-prop.c: Include domwalk.h
21613 (param_analysis_info): Removed.
21614 (param_aa_status): New type.
21615 (ipa_bb_info): Likewise.
21616 (func_body_info): Likewise.
21617 (ipa_get_bb_info): New function.
21618 (aa_overwalked): Likewise.
21619 (find_dominating_aa_status): Likewise.
21620 (parm_bb_aa_status_for_bb): Likewise.
21621 (parm_preserved_before_stmt_p): Changed to use new param AA info.
21622 (load_from_unmodified_param): Accept func_body_info as a parameter
21623 instead of parms_ainfo.
21624 (parm_ref_data_preserved_p): Changed to use new param AA info.
21625 (parm_ref_data_pass_through_p): Likewise.
21626 (ipa_load_from_parm_agg_1): Likewise. Update callers.
21627 (compute_complex_assign_jump_func): Changed to use new param AA info.
21628 (compute_complex_ancestor_jump_func): Likewise.
21629 (ipa_compute_jump_functions_for_edge): Likewise.
21630 (ipa_compute_jump_functions): Removed.
21631 (ipa_compute_jump_functions_for_bb): New function.
21632 (ipa_analyze_indirect_call_uses): Likewise, moved variable
21634 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
21635 and info, moved variable declarations down.
21636 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
21638 (ipa_analyze_stmt_uses): Likewise.
21639 (ipa_analyze_params_uses): Removed.
21640 (ipa_analyze_params_uses_in_bb): New function.
21641 (ipa_analyze_controlled_uses): Likewise.
21642 (free_ipa_bb_info): Likewise.
21643 (analysis_dom_walker): New class.
21644 (ipa_analyze_node): Handle node-specific forbidden analysis,
21645 initialize and free func_body_info, use dominator walker.
21646 (ipcp_modif_dom_walker): New class.
21647 (ipcp_transform_function): Create and free func_body_info, use
21648 ipcp_modif_dom_walker, moved a lot of functionality there.
21650 2014-05-23 Marek Polacek <polacek@redhat.com>
21651 Jakub Jelinek <jakub@redhat.com>
21653 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
21654 * gcc.c (sanitize_spec_function): Likewise.
21655 * convert.c (convert_to_integer): Include "ubsan.h". Add
21656 floating-point to integer instrumentation.
21657 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
21658 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
21659 SANITIZE_NONDEFAULT.
21660 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
21661 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
21662 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
21663 * ubsan.c: Include "realmpfr.h" and "dfp.h".
21664 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
21665 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
21666 float/double/long double.
21667 (ubsan_instrument_float_cast): New function.
21668 * ubsan.h (ubsan_instrument_float_cast): Declare.
21670 2014-05-23 Jiong Wang <jiong.wang@arm.com>
21672 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
21674 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
21675 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
21676 Adjust for tailcalling through registers.
21677 * config/aarch64/aarch64.h (enum reg_class): New caller save
21679 (REG_CLASS_NAMES): Likewise.
21680 (REG_CLASS_CONTENTS): Likewise.
21681 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
21682 Allow tailcalling without decls.
21684 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
21686 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21687 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
21689 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
21690 gsi, and variables v_* to v*.
21692 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
21694 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
21696 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
21698 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
21699 * omp-low.c: Update accordingly.
21701 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
21702 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
21703 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
21704 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
21705 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
21706 GF_OMP_TARGET_KIND_UPDATE.
21708 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21709 Explicitly enumerate the expected region types.
21711 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
21714 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
21715 documentation; the old documentation didn't clearly state the
21716 constraints on the contents of the pointed-to storage.
21718 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21720 Fix bootstrap error on ia64
21721 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
21722 Return default value.
21724 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
21726 PR tree-optimization/54733
21727 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
21729 (find_bswap_or_nop_load): New.
21730 (find_bswap_1): Renamed to ...
21731 (find_bswap_or_nop_1): This. Also add support for memory source.
21732 (find_bswap): Renamed to ...
21733 (find_bswap_or_nop): This. Also add support for memory source and
21734 detection of bitwise operations equivalent to load in target
21736 (execute_optimize_bswap): Likewise. Also move its leading comment back
21737 in place and split statement transformation into ...
21738 (bswap_replace): This.
21740 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
21742 PR rtl-optimization/61215
21743 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
21744 simplify_gen_subreg until final substitution.
21746 2014-05-23 Alan Modra <amodra@gmail.com>
21749 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
21750 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
21751 Use "Y" constraint rather than "m".
21753 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21755 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
21757 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
21758 New function declaration.
21759 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
21760 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
21761 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
21762 (aarch64_init_builtins) : Initialize builtins
21763 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21764 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21765 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
21766 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
21767 and __builtins_aarch64_set_fpsr.
21768 (aarch64_atomic_assign_expand_fenv): New function.
21769 * config/aarch64/aarch64.md (set_fpcr): New pattern.
21770 (get_fpcr) : Likewise.
21771 (set_fpsr) : Likewise.
21772 (get_fpsr) : Likewise.
21773 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
21774 and UNSPECV_SET_FPSR.
21775 * doc/extend.texi (AARCH64 Built-in Functions) : Document
21776 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21777 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21779 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
21781 PR rtl-optimization/60969
21782 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
21783 constraints. Set up mem cost for NO_REGS case.
21785 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
21787 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
21789 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
21791 * config/darwin.c: Include "lto-section-names.h".
21792 (LTO_SEGMENT_NAME): Don't define.
21793 * config/i386/winnt.c: Include "lto-section-names.h".
21794 * lto-streamer.c: Include "lto-section-names.h".
21795 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
21796 * lto-wrapper.c: Include "lto-section-names.h".
21797 (LTO_SECTION_NAME_PREFIX): Don't define.
21798 * lto-section-names.h: New file.
21799 * cgraphunit.c: Include "lto-section-names.h".
21801 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
21803 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
21805 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
21808 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
21810 2014-05-22 Nick Clifton <nickc@redhat.com>
21812 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
21814 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
21816 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
21817 -> (T)A transformation to integer types.
21819 2014-05-22 Teresa Johnson <tejohnson@google.com>
21821 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
21822 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
21823 (gcov_rewrite): Use gcov_nonruntime_assert.
21824 (gcov_open): Ditto.
21825 (gcov_write_words): Ditto.
21826 (gcov_write_length): Ditto.
21827 (gcov_read_words): Use gcov_nonruntime_assert, and remove
21828 gcc_assert from IN_LIBGCOV code.
21829 (gcov_read_summary): Use gcov_error to flag profile corruption.
21830 (gcov_sync): Use gcov_nonruntime_assert.
21831 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
21832 (gcov_histo_index): Use gcov_nonruntime_assert.
21833 (static void gcov_histogram_merge): Ditto.
21834 (compute_working_sets): Ditto.
21835 * gcov-io.h (gcov_nonruntime_assert): Define.
21836 (gcov_error): Define for !IN_LIBGCOV
21838 2014-05-22 Richard Biener <rguenther@suse.de>
21840 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21841 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
21842 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
21843 and deallocation site.
21844 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21845 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
21846 passing through the incoming points-to set.
21847 (handle_lhs_call): Use flags argument instead of recomputing it.
21848 (find_func_aliases_for_call): Call handle_lhs_call with proper
21851 2014-05-22 Jakub Jelinek <jakub@redhat.com>
21853 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
21854 all padding bits in REAL_VALUE_TYPE are cleared.
21856 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21858 Cleanup and improve multipass_dfa_lookahead_guard
21859 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
21860 (core2i7_first_cycle_multipass_begin,)
21861 (core2i7_first_cycle_multipass_issue,)
21862 (core2i7_first_cycle_multipass_backtrack): Update signature.
21863 * config/ia64/ia64.c
21864 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
21865 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
21866 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
21868 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
21869 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
21871 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
21873 * doc/tm.texi: Regenerate.
21875 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
21876 * haifa-sched.c (ready_try): Make signed to allow negative values.
21877 (rebug_ready_list_1): Update.
21878 (choose_ready): Simplify.
21879 (sched_extend_ready_list): Update.
21881 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21883 Remove IA64 speculation tweaking flags
21884 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
21885 speculation tuning flags.
21886 (msched-prefer-non-data-spec-insns,)
21887 (msched-prefer-non-control-spec-insns): Obsolete options.
21888 * haifa-sched.c (choose_ready): Remove handling of
21889 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21890 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
21891 and PREFER_NON_DATA_SPEC.
21892 * sel-sched.c (process_spec_exprs): Remove handling of
21893 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21895 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21897 Improve scheduling debug output
21898 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
21899 (advance_one_cycle): Update.
21900 (schedule_insn, queue_to_ready): Add debug printouts.
21901 (debug_ready_list_1): New static function.
21902 (debug_ready_list): Update.
21903 (max_issue): Add debug printouts.
21904 (dump_insn_stream): New static function.
21905 (schedule_block): Use it. Also better indent printouts.
21907 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21909 Fix sched_insn debug counter
21910 * haifa-sched.c (schedule_insn): Update.
21911 (struct haifa_saved_data): Add nonscheduled_insns_begin.
21912 (save_backtrack_point, restore_backtrack_point): Update.
21913 (first_nonscheduled_insn): New static function.
21914 (queue_to_ready, choose_ready): Use it.
21915 (schedule_block): Init nonscheduled_insns_begin.
21916 (sched_emit_insn): Update.
21919 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
21921 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21923 (aarch64_secondary_reload) : LikeWise.
21924 (aarch64_class_max_nregs) : Remove CORE_REGS.
21925 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21926 (REG_CLASS_NAMES) : Likewise.
21927 (REG_CLASS_CONTENTS) : LikeWise.
21928 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21930 2014-05-21 Guozhi Wei <carrot@google.com>
21933 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21935 (vqdmulhq_n_s16): Likewise.
21937 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21939 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21941 2014-05-21 Marek Polacek <polacek@redhat.com>
21944 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21946 2014-05-21 Martin Jambor <mjambor@suse.cz>
21948 * doc/invoke.texi (Optimize Options): Document parameters
21949 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21950 ipa-cp-array-index-hint-bonus.
21952 2014-05-21 Mark Wielaard <mjw@redhat.com>
21955 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21956 version >= 3 or not strict DWARF.
21957 * langhooks.h (struct lang_hooks_for_types): Add
21958 enum_underlying_base_type.
21959 * langhooks.c (lhd_enum_underlying_base_type): New function.
21960 * gcc/langhooks.h (struct lang_hooks_for_types): Add
21961 enum_underlying_base_type.
21962 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21963 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21964 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21966 2014-05-21 Richard Biener <rguenther@suse.de>
21968 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21970 2014-05-21 John Marino <gnugcc@marino.st>
21972 * config.gcc (*-*-dragonfly*): New target.
21973 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21974 * configure: Regenerate.
21975 * config/dragonfly-stdint.h: New.
21976 * config/dragonfly.h: New.
21977 * config/dragonfly.opt: New.
21978 * config/i386/dragonfly.h: New.
21979 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21981 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21983 * tree.def (VOID_CST): New.
21984 * tree-core.h (TI_VOID): New.
21985 * tree.h (void_node): New.
21986 * tree.c (tree_node_structure_for_code, tree_code_size)
21987 (iterative_hash_expr): Handle VOID_CST.
21988 (build_common_tree_nodes): Initialize void_node.
21990 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
21992 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21994 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21996 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21999 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
22000 flag_reorder_blocks_and_partition.
22001 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
22003 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
22006 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
22008 (*addc_r_t): Add new insn_and_split.
22010 2014-05-21 Jakub Jelinek <jakub@redhat.com>
22012 PR middle-end/61252
22013 * omp-low.c (handle_simd_reference): New function.
22014 (lower_rec_input_clauses): Use it. Defer adding reference
22015 initialization even for reduction without placeholder if in simd,
22016 handle it properly later on.
22018 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
22020 PR tree-optimization/60899
22021 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
22022 assume all static symbols will have definition wile parsing and
22023 check the do have definition later in compilation; check that
22024 variable referring symbol will be output before concluding that
22025 reference is safe; be conservative for referring local statics;
22026 be more precise about when comdat is output in other partition.
22028 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
22031 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
22033 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
22034 (ipa_inline): Loop inline_to_all_callers until no more aliases
22037 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
22039 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
22040 set writeonly flag only for vars actually written to.
22042 2014-05-20 Dehao Chen <dehao@google.com>
22044 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
22045 and callee count to get clone count.
22046 * tree-inline.c (expand_call_inline): Use callee count instead of bb
22047 count in copy_body.
22049 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
22051 PR rtl-optimization/61243
22052 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
22054 2014-05-20 Xinliang David Li <davidxl@google.com>
22056 * cgraphunit.c (walk_polymorphic_call_targets): Add
22057 dbgcnt and fopt-info support.
22058 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
22059 * ipa-devirt.c (ipa_devirt): Ditto.
22060 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
22061 * ipa.c (walk_polymorphic_call_targets): Ditto.
22062 * gimple-fold.c (fold_gimple_assign): Ditto.
22063 (gimple_fold_call): Ditto.
22064 * dbgcnt.def: New counter.
22066 2014-05-20 DJ Delorie <dj@redhat.com>
22068 * config/msp430/msp430.md (split): Don't allow subregs when
22069 splitting SImode adds.
22070 (andneghi): Fix subtraction logic.
22071 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
22073 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
22075 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
22077 * except.c (switch_to_exception_section, resolve_unique_section,
22078 get_named_text_section, default_function_rodata_section,
22079 align_variable, get_block_for_decl, default_section_type_flags):
22080 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
22081 * symtab.c (symtab_add_to_same_comdat_group,
22082 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
22083 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
22085 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
22086 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
22087 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22088 (c6x_function_in_section_p): Likewise.
22089 * config/darwin.c (machopic_select_section): Likewise.
22090 * config/arm/arm.c (arm_function_in_section_p): Likewise.
22091 * config/mips/mips.c (mips_function_rodata_section): Likewise.
22092 * config/mep/mep.c (mep_select_section): LIkewise.
22093 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22095 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
22097 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
22098 EH region of calls to pure functions that can throw an exception.
22099 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
22100 (copy_reference_ops_from_call): Also copy the EH region of the call if
22101 it can throw an exception.
22103 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22105 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
22106 nested VEC_SELECTs that are inverses of each other.
22108 2014-05-20 Richard Biener <rguenther@suse.de>
22110 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
22111 (extract_and_process_scc_for_name): not here.
22112 (cond_dom_walker::before_dom_children): Only process
22113 stmts that end the BB in interesting ways.
22114 (run_scc_vn): Mark param uses as visited.
22116 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22118 * config/arm/arm.md (arith_shiftsi): Do not predicate for
22121 2014-05-20 Nick Clifton <nickc@redhat.com>
22123 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22124 (msp430_gimplify_va_arg_expr): New function.
22125 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
22127 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
22128 operand 0 in order to prevent confusion about the number of
22129 registers involved.
22131 2014-05-20 Richard Biener <rguenther@suse.de>
22133 PR tree-optimization/61221
22134 * tree-ssa-pre.c (el_to_update): Remove.
22135 (eliminate_dom_walker::before_dom_children): Handle released
22136 VDEFs by value-numbering them to the associated VUSE. Update
22137 stmt immediately for substituted call address.
22138 (eliminate): Remove delayed stmt updating code.
22139 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
22140 possibly late re-numbered vuses.
22141 (vn_reference_lookup_2): Adjust.
22142 (vn_reference_lookup_pieces): Likewise.
22143 (vn_reference_lookup): Likewise.
22145 2014-05-20 Richard Biener <rguenther@suse.de>
22147 * config.gcc: Remove need_64bit_hwint.
22148 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
22149 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
22151 * config.in: Regenerate.
22152 * configure: Likewise.
22154 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
22156 * doc/extend.texi: Create Label Attributes section,
22157 move all label attributes into it and reference it.
22159 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
22161 * arm.c (thumb1_reorg): When scanning backwards skip anything
22162 that's not a proper insn.
22164 2014-05-19 Richard Biener <rguenther@suse.de>
22166 PR tree-optimization/61221
22167 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22168 Do nothing for unreachable blocks.
22169 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
22170 Improve unreachability detection.
22172 2014-05-19 Richard Biener <rguenther@suse.de>
22174 PR tree-optimization/61209
22175 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
22177 2014-05-19 Nick Clifton <nickc@redhat.com>
22179 * except.c (init_eh): Fix computation of builtin setjmp buffer
22180 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
22182 2014-05-19 Richard Biener <rguenther@suse.de>
22184 PR tree-optimization/61184
22185 * tree-vrp.c (is_negative_overflow_infinity): Use
22186 TREE_OVERFLOW_P and do that check first.
22187 (is_positive_overflow_infinity): Likewise.
22188 (is_overflow_infinity): Likewise.
22189 (vrp_operand_equal_p): Properly treat operands with
22190 differing overflow as not equal.
22192 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
22194 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
22195 shift simplification where it was intended.
22197 2014-05-19 Christian Bruel <christian.bruel@st.com>
22200 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
22202 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
22205 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
22208 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
22210 * reg-notes.def (CROSSING_JUMP): Likewise.
22211 * rtl.h (rtx_def): Update comment for jump flag.
22212 (CROSSING_JUMP_P): Define.
22213 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
22214 of a REG_CROSSING_JUMP note.
22215 * cfghooks.c (tidy_fallthru_edges): Likewise.
22216 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
22217 * emit-rtl.c (try_split): Likewise.
22218 * haifa-sched.c (sched_create_recovery_edges): Likewise.
22219 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
22220 * jump.c (redirect_jump_2): Likewise.
22221 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
22222 (relax_delay_slots): Likewise.
22223 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
22224 (bbit_di): Likewise.
22225 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
22226 * config/sh/sh.md (jump_compact): Likewise.
22227 * bb-reorder.c (rotate_loop): Likewise.
22228 (pass_duplicate_computed_gotos::execute): Likewise.
22229 (add_reg_crossing_jump_notes): Rename to...
22230 (update_crossing_jump_flags): ...this.
22231 (pass_partition_blocks::execute): Update accordingly.
22233 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
22235 * tree.h: Remove extraneous template <>.
22237 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
22239 * ipa.c (symtab_remove_unreachable_nodes): Remove
22240 symbol from comdat group if its body was eliminated.
22241 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
22242 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
22243 (symtab_unregister_node): ... this one.
22244 (verify_symtab_base): More strict checking of comdats.
22245 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
22247 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
22249 * tree-pass.h (make_pass_ipa_comdats): New pass.
22250 * timevar.def (TV_IPA_COMDATS): New timevar.
22251 * passes.def (pass_ipa_comdats): Add.
22252 * Makefile.in (OBJS): Add ipa-comdats.o
22253 * ipa-comdats.c: New file.
22255 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
22257 * ipa.c (update_visibility_by_resolution_info): New function.
22258 (function_and_variable_visibility): Use it.
22260 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
22262 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
22264 (FOR_EACH_DEFINED_SYMBOL): New macro.
22265 (varpool_first_static_initializer, varpool_next_static_initializer,
22266 varpool_first_defined_variable, varpool_next_defined_variable):
22268 (symtab_in_same_comdat_p): Correctly deal with inline functions.
22270 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
22272 * ggc-page.c (ggc_handle_finalizers): Add comment.
22274 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
22276 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
22277 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
22278 (ggc_internal_cleared_alloc): Likewise.
22279 * ggc-page.c (finalizer): New class.
22280 (vec_finalizer): Likewise.
22281 (globals::finalizers): New member.
22282 (globals::vec_finalizers): Likewise.
22283 (ggc_internal_alloc): Record the finalizer if any for the block being
22285 (ggc_handle_finalizers): New function.
22286 (ggc_collect): Call ggc_handle_finalizers.
22287 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
22289 (ggc_internal_cleared_alloc): Likewise.
22290 (finalize): New function.
22291 (need_finalization_p): Likewise.
22292 (ggc_alloc): Install the type's destructor as the finalizer if it
22293 might do something.
22294 (ggc_cleared_alloc): Likewise.
22295 (ggc_vec_alloc): Likewise.
22296 (ggc_cleared_vec_alloc): Likewise.
22298 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
22300 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
22302 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
22304 * alias.c (record_alias_subset): Adjust.
22305 * bitmap.c (bitmap_element_allocate): Likewise.
22306 (bitmap_gc_alloc_stat): Likewise.
22307 * cfg.c (init_flow): Likewise.
22308 (alloc_block): Likewise.
22309 (unchecked_make_edge): Likewise.
22310 * cfgloop.c (alloc_loop): Likewise.
22311 (flow_loops_find): Likewise.
22312 (rescan_loop_exit): Likewise.
22313 * cfgrtl.c (init_rtl_bb_info): Likewise.
22314 * cgraph.c (insert_new_cgraph_node_version): Likewise.
22315 (cgraph_allocate_node): Likewise.
22316 (cgraph_create_edge_1): Likewise.
22317 (cgraph_allocate_init_indirect_info): Likewise.
22318 * cgraphclones.c (cgraph_clone_edge): Likewise.
22319 * cgraphunit.c (add_asm_node): Likewise.
22320 (init_lowered_empty_function): Likewise.
22321 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
22322 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22323 (alpha_use_linkage): Likewise.
22324 * config/arc/arc.c (arc_init_machine_status): Likewise.
22325 * config/arm/arm.c (arm_init_machine_status): Likewise.
22326 * config/avr/avr.c (avr_init_machine_status): Likewise.
22327 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22328 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
22329 * config/cris/cris.c (cris_init_machine_status): Likewise.
22330 * config/darwin.c (machopic_indirection_name): Likewise.
22331 (darwin_build_constant_cfstring): Likewise.
22332 (darwin_enter_string_into_cfstring_table): Likewise.
22333 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
22334 * config/frv/frv.c (frv_init_machine_status): Likewise.
22335 * config/i386/i386.c (get_dllimport_decl): Likewise.
22336 (ix86_init_machine_status): Likewise.
22337 (assign_386_stack_local): Likewise.
22338 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22339 (i386_pe_maybe_record_exported_symbol): Likewise.
22340 (i386_pe_record_stub): Likewise.
22341 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22342 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22343 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22344 (m32c_note_pragma_address): Likewise.
22345 * config/mep/mep.c (mep_init_machine_status): Likewise.
22346 (mep_note_pragma_flag): Likewise.
22347 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22348 (mips16_local_alias): Likewise.
22349 (mips_init_machine_status): Likewise.
22350 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
22351 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
22352 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
22353 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
22354 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
22355 * config/pa/pa.c (pa_init_machine_status): Likewise.
22356 (pa_get_deferred_plabel): Likewise.
22357 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
22358 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
22359 (rs6000_init_machine_status): Likewise.
22360 (output_toc): Likewise.
22361 * config/s390/s390.c (s390_init_machine_status): Likewise.
22362 * config/score/score.c (score_output_external): Likewise.
22363 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
22364 * config/spu/spu.c (spu_init_machine_status): Likewise.
22365 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
22366 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
22367 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
22368 * coverage.c (coverage_end_function): Likewise.
22369 * dbxout.c (dbxout_init): Likewise.
22370 * doc/gty.texi: Don't mention variable_size attribute.
22371 * dwarf2cfi.c (new_cfi): Adjust.
22372 (new_cfi_row): Likewise.
22373 (copy_cfi_row): Likewise.
22374 (create_cie_data): Likewise.
22375 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
22376 (new_loc_descr): Likewise.
22377 (find_AT_string_in_table): Likewise.
22378 (add_addr_table_entry): Likewise.
22379 (new_die): Likewise.
22380 (add_var_loc_to_decl): Likewise.
22381 (clone_die): Likewise.
22382 (clone_as_declaration): Likewise.
22383 (break_out_comdat_types): Likewise.
22384 (new_loc_list): Likewise.
22385 (add_loc_descr_to_each): Likewise.
22386 (add_location_or_const_value_attribute): Likewise.
22387 (add_linkage_name): Likewise.
22388 (lookup_filename): Likewise.
22389 (dwarf2out_var_location): Likewise.
22390 (new_line_info_table): Likewise.
22391 (dwarf2out_init): Likewise.
22392 (mem_loc_descriptor): Likewise.
22393 (loc_descriptor): Likewise.
22394 (add_const_value_attribute): Likewise.
22395 (tree_add_const_value_attribute): Likewise.
22396 (comp_dir_string): Likewise.
22397 (dwarf2out_vms_debug_main_pointer): Likewise.
22398 (string_cst_pool_decl): Likewise.
22399 * emit-rtl.c (set_mem_attrs): Likewise.
22400 (get_reg_attrs): Likewise.
22401 (start_sequence): Likewise.
22402 (init_emit): Likewise.
22403 (init_emit_regs): Likewise.
22404 * except.c (init_eh_for_function): Likewise.
22405 (gen_eh_region): Likewise.
22406 (gen_eh_region_catch): Likewise.
22407 (gen_eh_landing_pad): Likewise.
22408 (add_call_site): Likewise.
22409 * function.c (add_frame_space): Likewise.
22410 (insert_temp_slot_address): Likewise.
22411 (assign_stack_temp_for_type): Likewise.
22412 (get_hard_reg_initial_val): Likewise.
22413 (allocate_struct_function): Likewise.
22414 (prepare_function_start): Likewise.
22415 (types_used_by_var_decl_insert): Likewise.
22416 * gengtype.c (variable_size_p): Remove function.
22417 (enum alloc_quantity): Remove enum.
22418 (write_typed_alloc_def): Remove function.
22419 (write_typed_struct_alloc_def): Likewise.
22420 (write_typed_typedef_alloc_def): Likewise.
22421 (write_typed_alloc_defns): Likewise.
22423 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
22424 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
22425 * ggc.h (ggc_alloc): new function.
22426 (ggc_cleared_alloc): Likewise.
22427 (ggc_vec_alloc): Template on type of vector element, and remove
22428 element size argument.
22429 (ggc_cleared_vec_alloc): Likewise.
22430 * gimple.c (gimple_build_omp_for): Adjust.
22431 (gimple_copy): Likewise.
22432 * ipa-cp.c (get_replacement_map): Likewise.
22433 (find_aggregate_values_for_callers_subset): Likewise.
22434 (known_aggs_to_agg_replacement_list): Likewise.
22435 * ipa-devirt.c (get_odr_type): Likewise.
22436 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
22437 (read_agg_replacement_chain): Likewise.
22438 * loop-iv.c (get_simple_loop_desc): Likewise.
22439 * lto-cgraph.c (input_node_opt_summary): Likewise.
22440 * lto-section-in.c (lto_new_in_decl_state): Likewise.
22441 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
22442 (input_eh_region): Likewise.
22443 (input_eh_lp): Likewise.
22444 (input_cfg): Likewise.
22445 * optabs.c (set_optab_libfunc): Likewise.
22446 (init_tree_optimization_optabs): Likewise.
22447 (set_conv_libfunc): Likewise.
22448 * passes.c (do_per_function_toporder): Likewise.
22449 * rtl.h: Don't use variable_size gty attribute.
22450 * sese.c (if_region_set_false_region): Adjust.
22451 * stringpool.c (gt_pch_save_stringpool): Likewise.
22452 * target-globals.c (save_target_globals): Likewise.
22453 * toplev.c (general_init): Likewise.
22454 * trans-mem.c (record_tm_replacement): Likewise.
22455 (split_bb_make_tm_edge): Likewise.
22456 * tree-cfg.c (move_sese_region_to_fn): Likewise.
22457 * tree-data-ref.h (lambda_vector_new): Likewise.
22458 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22459 * tree-iterator.c (tsi_link_before): Likewise.
22460 (tsi_link_after): Likewise.
22461 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22462 * tree-ssa-loop-niter.c (record_estimate): Likewise.
22463 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22464 * tree-ssa-operands.h: Don't use variable_size gty attribute.
22465 * tree-ssa.c (init_tree_ssa): Adjust.
22466 * tree-ssanames.c (set_range_info): Likewise.
22467 (get_ptr_info): Likewise.
22468 (duplicate_ssa_name_ptr_info): Likewise.
22469 (duplicate_ssa_name_range_info): Likewise.
22470 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
22471 (unpack_ts_fixed_cst_value_fields): Likewise.
22472 * tree.c (build_fixed): Likewise.
22473 (build_real): Likewise.
22474 (build_string): Likewise.
22475 (decl_priority_info): Likewise.
22476 (decl_debug_expr_insert): Likewise.
22477 (decl_value_expr_insert): Likewise.
22478 (decl_debug_args_insert): Likewise.
22479 (type_hash_add): Likewise.
22480 (build_omp_clause): Likewise.
22481 * ubsan.c (decl_for_type_insert): Likewise.
22482 * varasm.c (get_unnamed_section): Likewise.
22483 (get_noswitch_section): Likewise.
22484 (get_section): Likewise.
22485 (get_block_for_section): Likewise.
22486 (create_block_symbol): Likewise.
22487 (build_constant_desc): Likewise.
22488 (create_constant_pool): Likewise.
22489 (force_const_mem): Likewise.
22490 (record_tm_clone_pair): Likewise.
22491 * varpool.c (varpool_create_empty_node): Likewise.
22493 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
22495 * dwarf2out.c (tree_add_const_value_attribute): Call
22496 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
22497 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
22498 instead of ggc_internal_<x>alloc_stat.
22499 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
22500 (ggc_realloc): Likewise.
22501 * ggc-none.c (ggc_internal_alloc): Likewise.
22502 (ggc_internal_cleared_alloc): Likewise.
22503 * ggc-page.c: Likewise.
22504 * ggc.h (ggc_internal_alloc_stat): Likewise.
22505 (ggc_internal_alloc): Remove macro.
22506 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
22507 (ggc_internal_cleared_alloc): Remove macro.
22508 (GGC_RESIZEVEC): Adjust.
22509 (ggc_resizevar): Remove macro.
22510 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
22511 (ggc_internal_cleared_vec_alloc_stat): Likewise.
22512 (ggc_internal_vec_cleared_alloc): Remove macro.
22513 (ggc_alloc_atomic_stat): Drop _stat suffix.
22514 (ggc_alloc_atomic): Remove macro.
22515 (ggc_alloc_cleared_atomic): Remove macro.
22516 (ggc_alloc_string_stat): Drop _stat suffix.
22517 (ggc_alloc_string): Remove macro.
22518 (ggc_alloc_rtx_def_stat): Adjust.
22519 (ggc_alloc_tree_node_stat): Likewise.
22520 (ggc_alloc_cleared_tree_node_stat): Likewise.
22521 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
22522 (ggc_alloc_cleared_simd_clone_stat): Likewise.
22523 * gimple.c (gimple_build_omp_for): Likewise.
22524 (gimple_copy): Likewise.
22525 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
22526 * toplev.c (realloc_for_line_map): Adjust.
22527 * tree-data-ref.h (lambda_vector_new): Likewise.
22528 * tree-phinodes.c (allocate_phi_node): Likewise.
22529 * tree.c (grow_tree_vec_stat): Likewise.
22530 * vec.h (va_gc::reserve): Adjust.
22532 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
22534 * config/microblaze/microblaze.c (break_handler): New Declaration.
22535 (microblaze_break_function_p,microblaze_is_break_handler): New.
22536 (compute_frame_size): Use microblaze_break_function_p.
22537 Add the test of break_handler.
22538 (microblaze_function_prologue) : Add the test of variable
22539 break_handler. Check the fnname by BREAK_HANDLER_NAME.
22540 (microblaze_function_epilogue) : Add the test of break_handler.
22541 (microblaze_globalize_label) : Add the test of break_handler.
22542 Check the name by BREAK_HANDLER_NAME.
22544 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
22546 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
22547 microblaze_is_break_handler test.
22548 (call_internal1,call_value_intern): Use microblaze_break_function_p.
22549 Use SYMBOL_REF_DECL.
22551 * config/microblaze/microblaze-protos.h
22552 (microblaze_break_function_p,microblaze_is_break_handler):
22555 * doc/extend.texi (MicroBlaze break_handler Functions): Document
22556 new MicroBlaze break_handler functions.
22558 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
22560 * doc/extend.texi (Size of an asm): Move node text according
22561 to its @menu entry position.
22563 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
22565 PR tree-optimization/61140
22566 PR tree-optimization/61150
22567 PR tree-optimization/61197
22568 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
22570 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
22572 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
22574 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
22576 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
22577 __SIZEOF_INT128__ is defined.
22579 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
22581 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
22582 (rs6000_delegitimize_address): Use it.
22584 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
22586 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
22587 inplace argument. Store the new address in the original MEM when true.
22588 * emit-rtl.c (change_address_1): Likewise.
22589 (adjust_address_1, adjust_automodify_address_1, offset_address):
22590 Update accordingly.
22591 * rtl.h (plus_constant): Add an inplace argument.
22592 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
22593 when true. Avoid generating (plus X (const_int 0)).
22594 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
22595 in-place. Pass true to plus_constant.
22596 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
22598 2014-05-16 Dehao Chen <dehao@google.com>
22600 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
22602 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22605 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
22607 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
22609 2014-05-16 Dehao Chen <dehao@google.com>
22611 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
22612 optimize_function_for_size_p.
22613 * regs.h (REG_FREQ_FROM_BB): Likewise.
22615 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22618 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
22619 negt_reg_operand cases.
22620 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
22622 * config/sh/predicates.md (cbranch_treg_value): Simplify.
22624 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22626 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
22629 2014-05-16 David Malcolm <dmalcolm@redhat.com>
22632 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22634 * tree-cfg.c (dump_function_to_file): Dump the return type of
22635 functions, in a line to itself before the function body, mimicking
22636 the layout of a C function.
22638 2014-05-16 Dehao Chen <dehao@google.com>
22640 * cfghooks.c (make_forwarder_block): Use direct computation to
22641 get fall-through edge's count and frequency.
22643 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
22645 * config/arc/arc.c (arc_init): Fix typo in error message.
22646 * config/i386/i386.c (ix86_expand_builtin): Likewise.
22647 (split_stack_prologue_scratch_regno): Likewise.
22648 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
22649 word from error message.
22651 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22653 * ira-costs.c: Fix typo in comment.
22655 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
22657 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
22659 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
22661 * varpool.c (dump_varpool_node): Dump write-only flag.
22662 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
22664 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
22665 write-only variables.
22666 * ipa.c (process_references): New function.
22667 (set_readonly_bit): New function.
22668 (set_writeonly_bit): New function.
22669 (clear_addressable_bit): New function.
22670 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
22671 fix handling of aliases.
22672 * cgraph.h (struct varpool_node): Add writeonly flag.
22674 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
22676 PR rtl-optimization/60969
22677 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
22678 Calculate costs for this case.
22680 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
22682 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
22683 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
22685 2014-05-16 Richard Biener <rguenther@suse.de>
22687 PR tree-optimization/61194
22688 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
22689 bool patterns ending in a COND_EXPR.
22691 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22693 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
22695 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22697 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
22698 where we were unable to cost an RTX.
22700 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22702 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
22705 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22706 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22708 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
22710 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22711 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22713 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
22714 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
22716 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22717 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22719 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
22722 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22723 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22725 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22728 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22729 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22731 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
22732 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
22734 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22735 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22737 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22738 rotates and shifts.
22740 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22741 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22743 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
22744 ZERO_EXTEND and SIGN_EXTEND better.
22746 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22747 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22749 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
22750 logical operations.
22752 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22753 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22755 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
22756 costs when costing loads and stores to memory.
22758 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22759 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
22761 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
22764 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22766 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
22768 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22769 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22771 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
22773 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
22775 (aarch64_rtx_mult_cost): New.
22776 (aarch64_rtx_costs): Use it, refactor as appropriate.
22778 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22779 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22781 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
22782 emit instructions, return number of instructions which would
22784 (aarch64_add_constant): Update call to aarch64_build_constant.
22785 (aarch64_output_mi_thunk): Likewise.
22786 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
22789 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22791 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
22792 (TARGET_RTX_COSTS): Call it.
22794 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22796 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
22797 (cortexa57_vector_cost): Likewise.
22798 (cortexa57_tunings): Use them.
22800 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22802 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
22803 (cpu_addrcost_table): Use it.
22804 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
22805 (aarch64_address_cost): Rewrite using aarch64_classify_address,
22808 2014-05-16 Richard Biener <rguenther@suse.de>
22810 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
22811 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
22812 (visit_phi): Ignore edges marked as not executable.
22813 (class cond_dom_walker): New.
22814 (cond_dom_walker::before_dom_children): Value-number
22815 control statements and mark successor edges as not
22816 executable if possible.
22817 (run_scc_vn): First walk all control statements in
22818 dominator order, marking edges as not executable.
22819 * tree-inline.c (copy_edges_for_bb): Be not confused
22820 about random edge flags.
22822 2014-05-16 Richard Biener <rguenther@suse.de>
22824 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
22826 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
22829 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
22830 (__TM_simple_begin): Use it.
22831 (__TM_begin): Likewise.
22833 2014-05-15 Martin Jambor <mjambor@suse.cz>
22836 * ipa-prop.c (update_indirect_edges_after_inlining): Check
22837 type_preserved flag when the indirect edge is polymorphic.
22839 2014-05-15 Martin Jambor <mjambor@suse.cz>
22841 PR tree-optimization/61090
22842 * tree-sra.c (sra_modify_expr): Pass the current gsi to
22843 build_ref_for_model.
22845 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22847 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
22848 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
22850 2014-05-15 Jakub Jelinek <jakub@redhat.com>
22852 PR tree-optimization/61158
22853 * fold-const.c (fold_binary_loc): If X is zero-extended and
22854 shiftc >= prec, make sure zerobits is all ones instead of
22855 invoking undefined behavior.
22857 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22859 * regcprop.h: New file.
22860 * regcprop.c (skip_debug_insn_p): New decl.
22861 (replace_oldest_value_reg): Check skip_debug_insn_p.
22862 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
22863 * shrink-wrap.c: Include regcprop.h.
22864 (prepare_shrink_wrap): Call
22865 copyprop_hardreg_forward_bb_without_debug_insn.
22867 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22869 * shrink-wrap.h: Update comment.
22870 * shrink-wrap.c: Update comment.
22871 (next_block_for_reg): Rename to live_edge_for_reg.
22872 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
22873 (move_insn_for_shrink_wrap): Split live_edge.
22874 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
22876 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
22878 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
22880 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
22881 * config/sparc/sparc.md (fptype_ut699): New attribute.
22882 (in_branch_delay): Return false if -mfix-ut699 is specified and
22883 fptype_ut699 is set to single.
22884 (truncdfsf2): Add fptype_ut699 attribute.
22885 (fix_truncdfsi2): Likewise.
22886 (floatsisf2): Change fptype attribute.
22887 (fix_truncsfsi2): Likewise.
22888 (negtf2_notv9): Delete.
22889 (negtf2_v9): Likewise.
22890 (negtf2_hq): New instruction.
22891 (negtf2): New instruction and splitter.
22892 (negdf2_notv9): Rewrite.
22893 (abstf2_notv9): Delete.
22894 (abstf2_hq_v9): Likewise.
22895 (abstf2_v9): Likewise.
22896 (abstf2_hq): New instruction.
22897 (abstf2): New instruction and splitter.
22898 (absdf2_notv9): Rewrite.
22900 2014-05-14 Cary Coutant <ccoutant@google.com>
22903 * opts.c (common_handle_option): Don't special-case "-g".
22904 (set_debug_level): Default to at least level 2 with "-g".
22906 2014-05-14 DJ Delorie <dj@redhat.com>
22908 * config/msp430/msp430.c (msp430_builtin): Add
22909 MSP430_BUILTIN_DELAY_CYCLES.
22910 (msp430_init_builtins): Register void __delay_cycles(long long).
22911 (msp430_builtin_decl): Add it.
22912 (cg_magic_constant): New.
22913 (msp430_expand_delay_cycles): New.
22914 (msp430_expand_builtin): Call it.
22915 (msp430_print_operand_raw): Change integer printing from "int" to
22917 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22918 (delay_cycles_start): New.
22919 (delay_cycles_end): New.
22920 (delay_cycles_32): New.
22921 (delay_cycles_32x): New.
22922 (delay_cycles_16): New.
22923 (delay_cycles_16x): New.
22924 (delay_cycles_2): New.
22925 (delay_cycles_1): New.
22926 * doc/extend.texi: Document __delay_cycles().
22928 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
22930 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22931 length attribute computation.
22933 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
22936 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22938 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
22941 * config/sparc/sparc.md: Fix types of low and high in DI constant
22942 splitter. Use gen_int_mode in some other splitters.
22944 2014-05-14 Martin Jambor <mjambor@suse.cz>
22947 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22949 2014-05-14 James Norris <jnorris@codesourcery.com>
22951 * omp-low.c (expand_parallel_call): Remove shadow variable.
22952 (expand_omp_taskreg): Likewise.
22954 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
22956 * common/config/i386/i386-common.c
22957 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22958 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22959 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22960 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22961 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22962 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22963 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22964 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22965 xsavecintrin.h, xsavesintrin.h.
22966 (x86_64-*-*): Ditto.
22967 * config/i386/clflushoptintrin.h: New.
22968 * config/i386/xsavecintrin.h: Ditto.
22969 * config/i386/xsavesintrin.h: Ditto.
22970 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22971 (bit_XSAVES): Ditto.
22972 (bit_XSAVES): Ditto.
22973 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22974 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22976 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22977 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22978 OPTION_MASK_ISA_XSAVES.
22979 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22980 -mxsavec, -mxsaves.
22981 (PTA_CLFLUSHOPT) Define.
22982 (PTA_XSAVEC): Ditto.
22983 (PTA_XSAVES): Ditto.
22984 (ix86_option_override_internal): Handle new options.
22985 (ix86_valid_target_attribute_inner_p): Ditto.
22986 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22987 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22988 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22989 (bdesc_special_args): Add __builtin_ia32_xsaves,
22990 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22991 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22992 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22993 (ix86_expand_builtin): Handle new builtins.
22994 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22995 (TARGET_CLFLUSHOPT_P): Ditto.
22996 (TARGET_XSAVEC): Ditto.
22997 (TARGET_XSAVEC_P): Ditto.
22998 (TARGET_XSAVES): Ditto.
22999 (TARGET_XSAVES_P): Ditto.
23000 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
23001 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
23002 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
23004 (ANY_XRSTOR64): Ditto.
23006 (xrstor): Change into <xrstor>.
23007 (xrstor_rex64): Change into <xrstor>_rex64.
23008 (xrstor64): Change into <xrstor>64
23010 * config/i386/i386.opt (mclflushopt): New.
23013 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
23015 * doc/invoke.texi: Document new options.
23017 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
23019 PR rtl-optimization/60866
23020 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
23021 Default it to -1. Pass it down to init_simplejump_data.
23022 (init_simplejump_data): New parameter old_seqno. Pass it down
23023 to get_seqno_for_a_jump.
23024 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
23025 initializing new jump seqno as a last resort. Add comment.
23026 (sel_redirect_edge_and_branch): Save old seqno of the conditional
23027 jump and pass it down to sel_init_new_insn.
23028 (sel_redirect_edge_and_branch_force): Likewise.
23030 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
23032 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
23033 shifted values to avoid build warning.
23035 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
23037 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
23038 * cfgrtl.c (rtl_merge_blocks): Fix comment.
23039 (cfg_layout_merge_blocks): Likewise.
23040 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
23042 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
23044 PR rtl-optimization/60901
23045 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
23046 bb predecessor belongs to the same scheduling region. Adjust comment.
23048 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
23050 * doc/sourcebuild.texi: (dfp_hw): Document.
23051 (p8vector_hw): Likewise.
23052 (powerpc_eabi_ok): Likewise.
23053 (powerpc_elfv2): Likewise.
23054 (powerpc_htm_ok): Likewise.
23055 (ppc_recip_hw): Likewise.
23056 (vsx_hw): Likewise.
23058 2014-05-13 Cary Coutant <ccoutant@google.com>
23060 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
23062 2014-05-13 David Malcolm <dmalcolm@redhat.com>
23064 * gengtype-parse.c (require3): Eliminate in favor of...
23066 (require_template_declaration): Update to support optional single *
23069 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
23070 (create_user_defined_type): Handle a single level of explicit
23071 pointerness within template arguments.
23072 (struct write_types_data): Add field "kind".
23073 (filter_type_name): Handle "*" character.
23074 (write_user_func_for_structure_ptr): Require a write_types_data
23075 rather than just a prefix string, so that we can look up the kind
23076 of the wtd and use it as an index into wrote_user_func_for_ptr,
23077 ensuring that such functions are written at most once. Support
23078 subclasses by invoking the marking function of the ultimate base class.
23079 (write_user_func_for_structure_body): Require a write_types_data
23080 rather than just a prefix string, so that we can pass this to
23081 write_user_func_for_structure_ptr.
23082 (write_func_for_structure): Likewise.
23083 (ggc_wtd): Add initializer of new "kind" field.
23084 (pch_wtd): Likewise.
23086 * gengtype.h (enum write_types_kinds): New.
23087 (struct type): Add field wrote_user_func_for_ptr to the "s"
23090 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
23092 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
23093 instead of const_binop.
23094 (fold_binary_loc): Likewise.
23096 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
23098 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
23099 calculation to match get_ref_base_and_extent.
23101 2014-05-13 Catherine Moore <clm@codesourcery.com>
23102 Sandra Loosemore <sandra@codesourcery.com>
23104 * configure.ac: Fix assembly for explicit JALR relocation check.
23105 * configure: Regenerate.
23107 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23109 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
23110 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
23111 Remove associated type declarations and initialisations.
23112 (arm_expand_neon_builtin): Likewise.
23113 (neon_emit_pair_result_insn): Delete.
23114 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
23115 * config/arm/neon.md (neon_vtrn<mode>): Delete.
23116 (neon_vzip<mode>): Likewise.
23117 (neon_vuzp<mode>): Likewise.
23119 2014-05-13 Richard Biener <rguenther@suse.de>
23122 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
23123 it needs revisiting whether the call still may be tail-called.
23125 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
23127 * rtl.def (SYMBOL_REF): Remove middle "0" field.
23128 * rtl.h (block_symbol): Reduce number of fields to 2.
23129 (rtx_def): Add u2.symbol_ref_flags.
23130 (SYMBOL_REF_FLAGS): Use it.
23131 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
23132 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
23133 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
23134 Lower index of SYMBOL_REF_DATA.
23135 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
23136 Print SYMBOL_REF_FLAGS at the same time.
23137 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
23139 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
23141 * rtl.def (VAR_LOCATION): Remove "i" field.
23142 * rtl.h (rtx_def): Add u2.var_location_status.
23143 (PAT_VAR_LOCATION_STATUS): Use it.
23144 (gen_rtx_VAR_LOCATION): Declare.
23145 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
23146 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
23147 * var-tracking.c (emit_note_insn_var_location): Remove casts.
23149 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
23151 * rtl.def (scratch): Fix outdated comment and remove "0" field.
23152 * gengtype.c (adjust_field_rtx_def): Update accordingly.
23154 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
23156 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
23157 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
23158 * rtl.h (rtx_def): Add insn_uid to u2 field.
23159 (RTX_FLAG_CHECK8): Delete in favor of...
23160 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
23161 (INSN_DELETED_P): Update accordingly.
23162 (INSN_UID): Use u2.insn_uid.
23163 (INSN_CHAIN_CODE_P): Define.
23164 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
23165 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
23166 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
23167 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
23168 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
23169 indices accordingly.
23170 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
23171 Update indices for insn-chain rtxes.
23172 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
23173 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
23174 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
23175 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
23176 * combine.c (try_combine): Likewise.
23177 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23179 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
23181 * rtl.def (REG): Remove middle field.
23182 * rtl.h (rtx_def): Add orignal_regno to u2.
23183 (ORIGINAL_REGNO): Use it instead of field 1.
23184 (REG_ATTRS): Lower field index accordingly.
23185 * gengtype.c (adjust_field_rtx_def): Remove handling of
23186 ORIGINAL_REGNO. Move REG_ATTRS index down.
23187 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
23188 code that prints the REGNO.
23190 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
23192 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
23195 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
23197 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
23199 2014-05-13 Bin Cheng <bin.cheng@arm.com>
23201 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
23202 (alloc_iv): Lower base expressions containing ADDR_EXPR.
23204 2014-05-13 Ian Bolton <ian.bolton@arm.com>
23206 * config/aarch64/aarch64-protos.h
23207 (aarch64_hard_regno_caller_save_mode): New prototype.
23208 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
23210 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
23212 2014-05-13 Christian Bruel <christian.bruel@st.com>
23214 * target.def (mode_switching): New hook vector.
23215 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
23216 (mode_exit, modepriority_to_mode): Likewise.
23217 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
23218 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23219 * target.h: Include tm.h and hard-reg-set.h.
23220 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
23221 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
23222 * doc/tm.texi Regenerate.
23223 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
23224 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23225 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
23226 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
23227 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
23228 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23229 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
23230 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
23231 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
23232 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
23233 (ix86_emit_mode_set): Hookify.
23234 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
23236 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23237 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
23238 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
23239 (epiphany_mode_priority_to_mode): Remove declaration.
23240 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
23241 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
23242 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
23244 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
23245 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
23246 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
23248 2014-05-13 Jakub Jelinek <jakub@redhat.com>
23251 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
23252 is const0_rtx, return immediately. Don't test count == 0 when
23255 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23257 * Makefile.in: add shrink-wrap.o.
23258 * config/i386/i386.c: include "shrink-wrap.h"
23259 * function.c: Likewise.
23260 (requires_stack_frame_p, next_block_for_reg,
23261 move_insn_for_shrink_wrap, prepare_shrink_wrap,
23262 dup_block_and_redirect): Move to shrink-wrap.c
23263 (thread_prologue_and_epilogue_insns): Extract three code segments
23264 as functions in shrink-wrap.c
23265 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
23267 * shrink-wrap.c: New file.
23268 * shrink-wrap.h: New file.
23270 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
23272 * doc/extend.texi: Reflect current numbers of pragmas. Remove
23273 reference to Solaris.
23275 2014-05-12 Mike Stump <mikestump@comcast.net>
23278 * genattrtab.c (filename): Add.
23279 (convert_set_attr_alternative): Improve error message.
23280 (check_defs): Restore read_md_filename for error messages.
23281 (gen_insn): Save filename.
23283 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
23285 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
23286 -fno-local-ivars and -fivar-visibility.
23287 * c-family/c.opt: Make -Wshadow also implicitly enable
23290 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
23292 * doc/tm.texi: Remove reference to deleted macro.
23293 * doc/tm.texi.in: Likewise.
23295 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23298 * config/avr/avr.c (avr_out_store_psi): Use correct constant
23301 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
23304 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
23305 * config/arm/aout.h (License): Same.
23306 * config/arm/bpabi.h (License): Same.
23307 * config/arm/elf.h (License): Same.
23308 * config/arm/linux-elf.h (License): Same.
23309 * config/arm/linux-gas.h (License): Same.
23310 * config/arm/netbsd-elf.h (License): Same.
23311 * config/arm/uclinux-eabi.h (License): Same.
23312 * config/arm/uclinux-elf.h (License): Same.
23313 * config/arm/vxworks.h (License): Same.
23315 2014-05-11 Jakub Jelinek <jakub@redhat.com>
23317 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
23318 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
23319 number of operands to 3.
23320 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
23321 * tree-nested.c (convert_nonlocal_omp_clauses,
23322 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
23323 * gimplify.c (gimplify_scan_omp_clauses): Handle
23324 OMP_CLAUSE_LINEAR_STMT.
23325 * omp-low.c (lower_rec_input_clauses): Fix typo.
23326 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
23327 cast between Fortran boolean_type_node and C _Bool if
23330 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
23332 PR tree-optimization/61136
23333 * wide-int.h (multiple_of_p): Define a version that doesn't return
23335 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
23336 integer_zerop/const_binop pair.
23337 (multiple_of_p): Likewise, converting both operands to widest_int
23340 2014-05-09 Teresa Johnson <tejohnson@google.com>
23342 * cgraphunit.c (analyze_functions): Use correct dump file.
23344 2014-05-09 Florian Weimer <fweimer@redhat.com>
23346 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
23348 (stack_protect_return_slot_p): New function.
23349 (expand_used_vars): Call stack_protect_decl_p and
23350 stack_protect_return_slot_p for -fstack-protector-strong.
23352 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
23353 Andrew Haley <aph@redhat.com>
23354 Richard Sandiford <rdsandiford@googlemail.com>
23356 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
23359 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
23361 PR middle-end/61111
23362 * fold-const.c (fold_binary_loc): Changed width of mask.
23364 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
23366 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
23367 unsigned int initializers for regno_in, regno_out.
23369 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
23372 * config/avr/avr.md (cc): Add new attribute set_vzn.
23373 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
23374 Set cc insn attribute to set_vzn instead of set_zn for alternatives
23375 with INC, DEC or NEG.
23376 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
23377 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
23378 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
23380 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23383 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23385 * wide-int.cc (UTItype): Define.
23386 (UDWtype): Define for appropriate W_TYPE_SIZE.
23388 2014-05-09 Richard Biener <rguenther@suse.de>
23390 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
23391 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
23392 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
23393 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
23394 ssa_propagate): Adjust.
23396 2014-05-08 Jeff Law <law@redhat.com>
23398 PR tree-optimization/61009
23399 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
23400 tri-state rather than a boolean. When a block is too big to
23401 thread through, inform caller via negative return value.
23402 (thread_across_edge): If a block was too big for normal threading,
23403 then it's too big for a joiner too, so remove temporary equivalences
23404 and return immediately.
23406 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
23407 Matthias Klose <doko@ubuntu.com>
23410 * optc-gen.awk: Fix option handling for -Wunused-parameter.
23412 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
23415 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
23417 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
23420 * config/alpha/alpha.c: Include gimple-iterator.h.
23421 (alpha_gimple_fold_builtin): New function. Move
23422 ALPHA_BUILTIN_UMULH folding from ...
23423 (alpha_fold_builtin): ... here.
23424 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
23426 2014-05-08 Wei Mi <wmi@google.com>
23429 * config/i386/i386.c (ix86_compute_frame_layout): Update
23430 preferred_stack_boundary for call, expanded from tls descriptor.
23431 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
23432 to depend on SP register.
23433 (*tls_local_dynamic_base_32_gnu): Ditto.
23434 (*tls_local_dynamic_32_once): Ditto.
23435 (tls_global_dynamic_64_<mode>): Set
23436 ix86_tls_descriptor_calls_expanded_in_cfun.
23437 (tls_local_dynamic_base_64_<mode>): Ditto.
23438 (tls_global_dynamic_32): Set
23439 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
23440 to depend on SP register.
23441 (tls_local_dynamic_base_32): Ditto.
23443 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23445 * config/arm/arm_neon.h: Update comment.
23446 * config/arm/neon-docgen.ml: Delete.
23447 * config/arm/neon-gen.ml: Delete.
23448 * doc/arm-neon-intrinsics.texi: Update comment.
23450 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23452 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
23454 (vand, vorr, veor, vorn, vbic): Remove.
23455 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
23457 (neon_vsub_unspec): Likewise.
23458 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
23460 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23462 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
23463 (vadd_s16): Likewise.
23464 (vadd_s32): Likewise.
23465 (vadd_f32): Likewise.
23466 (vadd_u8): Likewise.
23467 (vadd_u16): Likewise.
23468 (vadd_u32): Likewise.
23469 (vadd_s64): Likewise.
23470 (vadd_u64): Likewise.
23471 (vaddq_s8): Likewise.
23472 (vaddq_s16): Likewise.
23473 (vaddq_s32): Likewise.
23474 (vaddq_s64): Likewise.
23475 (vaddq_f32): Likewise.
23476 (vaddq_u8): Likewise.
23477 (vaddq_u16): Likewise.
23478 (vaddq_u32): Likewise.
23479 (vaddq_u64): Likewise.
23480 (vmul_s8): Likewise.
23481 (vmul_s16): Likewise.
23482 (vmul_s32): Likewise.
23483 (vmul_f32): Likewise.
23484 (vmul_u8): Likewise.
23485 (vmul_u16): Likewise.
23486 (vmul_u32): Likewise.
23487 (vmul_p8): Likewise.
23488 (vmulq_s8): Likewise.
23489 (vmulq_s16): Likewise.
23490 (vmulq_s32): Likewise.
23491 (vmulq_f32): Likewise.
23492 (vmulq_u8): Likewise.
23493 (vmulq_u16): Likewise.
23494 (vmulq_u32): Likewise.
23495 (vsub_s8): Likewise.
23496 (vsub_s16): Likewise.
23497 (vsub_s32): Likewise.
23498 (vsub_f32): Likewise.
23499 (vsub_u8): Likewise.
23500 (vsub_u16): Likewise.
23501 (vsub_u32): Likewise.
23502 (vsub_s64): Likewise.
23503 (vsub_u64): Likewise.
23504 (vsubq_s8): Likewise.
23505 (vsubq_s16): Likewise.
23506 (vsubq_s32): Likewise.
23507 (vsubq_s64): Likewise.
23508 (vsubq_f32): Likewise.
23509 (vsubq_u8): Likewise.
23510 (vsubq_u16): Likewise.
23511 (vsubq_u32): Likewise.
23512 (vsubq_u64): Likewise.
23513 (vand_s8): Likewise.
23514 (vand_s16): Likewise.
23515 (vand_s32): Likewise.
23516 (vand_u8): Likewise.
23517 (vand_u16): Likewise.
23518 (vand_u32): Likewise.
23519 (vand_s64): Likewise.
23520 (vand_u64): Likewise.
23521 (vandq_s8): Likewise.
23522 (vandq_s16): Likewise.
23523 (vandq_s32): Likewise.
23524 (vandq_s64): Likewise.
23525 (vandq_u8): Likewise.
23526 (vandq_u16): Likewise.
23527 (vandq_u32): Likewise.
23528 (vandq_u64): Likewise.
23529 (vorr_s8): Likewise.
23530 (vorr_s16): Likewise.
23531 (vorr_s32): Likewise.
23532 (vorr_u8): Likewise.
23533 (vorr_u16): Likewise.
23534 (vorr_u32): Likewise.
23535 (vorr_s64): Likewise.
23536 (vorr_u64): Likewise.
23537 (vorrq_s8): Likewise.
23538 (vorrq_s16): Likewise.
23539 (vorrq_s32): Likewise.
23540 (vorrq_s64): Likewise.
23541 (vorrq_u8): Likewise.
23542 (vorrq_u16): Likewise.
23543 (vorrq_u32): Likewise.
23544 (vorrq_u64): Likewise.
23545 (veor_s8): Likewise.
23546 (veor_s16): Likewise.
23547 (veor_s32): Likewise.
23548 (veor_u8): Likewise.
23549 (veor_u16): Likewise.
23550 (veor_u32): Likewise.
23551 (veor_s64): Likewise.
23552 (veor_u64): Likewise.
23553 (veorq_s8): Likewise.
23554 (veorq_s16): Likewise.
23555 (veorq_s32): Likewise.
23556 (veorq_s64): Likewise.
23557 (veorq_u8): Likewise.
23558 (veorq_u16): Likewise.
23559 (veorq_u32): Likewise.
23560 (veorq_u64): Likewise.
23561 (vbic_s8): Likewise.
23562 (vbic_s16): Likewise.
23563 (vbic_s32): Likewise.
23564 (vbic_u8): Likewise.
23565 (vbic_u16): Likewise.
23566 (vbic_u32): Likewise.
23567 (vbic_s64): Likewise.
23568 (vbic_u64): Likewise.
23569 (vbicq_s8): Likewise.
23570 (vbicq_s16): Likewise.
23571 (vbicq_s32): Likewise.
23572 (vbicq_s64): Likewise.
23573 (vbicq_u8): Likewise.
23574 (vbicq_u16): Likewise.
23575 (vbicq_u32): Likewise.
23576 (vbicq_u64): Likewise.
23577 (vorn_s8): Likewise.
23578 (vorn_s16): Likewise.
23579 (vorn_s32): Likewise.
23580 (vorn_u8): Likewise.
23581 (vorn_u16): Likewise.
23582 (vorn_u32): Likewise.
23583 (vorn_s64): Likewise.
23584 (vorn_u64): Likewise.
23585 (vornq_s8): Likewise.
23586 (vornq_s16): Likewise.
23587 (vornq_s32): Likewise.
23588 (vornq_s64): Likewise.
23589 (vornq_u8): Likewise.
23590 (vornq_u16): Likewise.
23591 (vornq_u32): Likewise.
23592 (vornq_u64): Likewise.
23594 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23596 * wide-int.cc (UTItype): Define.
23597 (UDWtype): Define for appropriate W_TYPE_SIZE.
23599 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
23601 PR tree-optimization/59100
23602 * tree-ssa-phiopt.c: Include tree-inline.h.
23603 (neutral_element_p, absorbing_element_p): New functions.
23604 (value_replacement): Handle conditional binary operations with a
23605 neutral or absorbing element.
23607 2014-05-08 Richard Biener <rguenther@suse.de>
23609 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
23610 folding the expression.
23611 (valueize_expr): Remove.
23612 (visit_reference_op_load): Do not valueize the result of
23614 (simplify_binary_expression): Likewise.
23615 (simplify_unary_expression): Likewise.
23617 2014-05-08 Richard Biener <rguenther@suse.de>
23619 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
23620 looking at TYPE_ARG_TYPES.
23622 2014-05-08 Richard Biener <rguenther@suse.de>
23624 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
23625 pointer propagation special-case.
23627 2014-05-08 Bin Cheng <bin.cheng@arm.com>
23629 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
23630 core part of address expressions.
23632 2014-05-08 Alan Modra <amodra@gmail.com>
23635 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
23636 loads and stores when -mno-strict-align at any alignment.
23637 (expand_block_clear): Similarly. Also correct calculation of
23640 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
23642 PR middle-end/39246
23643 * tree-complex.c (expand_complex_move): Keep line info when expanding
23645 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
23646 of complex expression. Use new argument to display correct location
23647 for values coming from phi statement.
23648 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
23649 (warn_uninitialized_phi): Pass location of phi argument to
23651 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
23652 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
23654 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23656 * config/rs6000/predicates.md (indexed_address_mem): New.
23657 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
23658 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
23659 fpstore_ux, fpstore_u.
23660 (sign_extend, indexed, update): New.
23661 (cell_micro): Adjust.
23662 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
23663 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
23664 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
23665 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
23666 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
23667 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
23668 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
23669 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
23670 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
23671 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
23672 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
23673 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
23674 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
23675 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
23676 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
23678 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
23679 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
23680 *vsx_extract_<mode>_store): Adjust.
23681 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
23682 is_cracked_insn, insn_must_be_first_in_group,
23683 insn_must_be_last_in_group): Adjust.
23685 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
23687 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
23688 ppc440-fpstore): Adjust.
23689 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
23690 ppc476-fpstore): Adjust.
23691 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
23692 ppc601-fpstore): Adjust.
23693 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
23695 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
23697 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
23698 ppc7450-fpstore): Adjust.
23699 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
23700 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
23701 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
23703 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
23704 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
23705 cell-fpstore, cell-fpstore-update): Adjust.
23706 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
23707 ppce300c3_store, ppce300c3_fpstore): Adjust.
23708 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
23709 e500mc_fpstore): Adjust.
23710 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
23711 e500mc64_store, e500mc64_fpstore): Adjust.
23712 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
23713 e5500_fpstore): Adjust.
23714 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
23715 e6500_fpstore): Adjust.
23716 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
23718 * config/rs6000/power4.md (power4-load, power4-load-ext,
23719 power4-load-ext-update, power4-load-ext-update-indexed,
23720 power4-load-update-indexed, power4-load-update, power4-fpload,
23721 power4-fpload-update, power4-store, power4-store-update,
23722 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
23724 * config/rs6000/power5.md (power5-load, power5-load-ext,
23725 power5-load-ext-update, power5-load-ext-update-indexed,
23726 power5-load-update-indexed, power5-load-update, power5-fpload,
23727 power5-fpload-update, power5-store, power5-store-update,
23728 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
23730 * config/rs6000/power6.md (power6-load, power6-load-ext,
23731 power6-load-update, power6-load-update-indexed,
23732 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
23733 power6-fpload-update, power6-store, power6-store-update,
23734 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
23736 * config/rs6000/power7.md (power7-load, power7-load-ext,
23737 power7-load-update, power7-load-update-indexed,
23738 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
23739 power7-fpload-update, power7-store, power7-store-update,
23740 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
23742 * config/rs6000/power8.md (power8-load, power8-load-update,
23743 power8-load-ext, power8-load-ext-update, power8-fpload,
23744 power8-fpload-update, power8-store, power8-store-update-indexed,
23745 power8-fpstore, power8-fpstore-update): Adjust.
23746 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
23748 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
23749 titan_lsu_store, titan_lsu_fpstore): Adjust.
23750 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
23752 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
23755 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
23756 unrolled byte insns. Emit address increments after move insns.
23758 2014-05-07 David Malcolm <dmalcolm@redhat.com>
23760 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
23761 const_gimple, rather than a gimple.
23762 (gimple_call_builtin_p): Likewise, for the three variants.
23764 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
23765 (gimple_call_builtin_p): Likewise, for the three variants.
23767 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23769 PR tree-optimization/61095
23770 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
23772 2014-05-07 Richard Biener <rguenther@suse.de>
23774 PR tree-optimization/61034
23775 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
23776 (maybe_skip_until): Use translate to take into account
23777 lattices when trying to do disambiguations.
23778 (get_continuation_for_phi_1): Likewise.
23779 (get_continuation_for_phi): Adjust for added translate arguments.
23780 (walk_non_aliased_vuses): Likewise.
23781 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
23782 (walk_non_aliased_vuses): Likewise.
23783 (call_may_clobber_ref_p_1): Declare.
23784 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
23785 calls. Stop early if we are only supposed to disambiguate.
23786 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
23788 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
23790 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
23791 Emit an error when the function has arguments.
23793 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
23795 * cfgloop.h (unswitch_loops): Remove.
23796 * doc/passes.texi: Remove references to loop-unswitch.c
23797 * timevar.def (TV_LOOP_UNSWITCH): Remove.
23799 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
23801 * tree-vect-data-refs.c (vect_grouped_load_supported): New
23802 check for loads group of length 3.
23803 (vect_permute_load_chain): New permutations for loads group of
23805 * tree-vect-stmts.c (vect_model_load_cost): Change cost
23806 of vec_perm_shuffle for the new permutations.
23808 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
23810 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
23811 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
23812 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
23813 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
23814 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
23815 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
23816 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
23817 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
23819 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
23821 * loop-unswitch.c: Delete.
23823 2014-05-07 Richard Biener <rguenther@suse.de>
23825 * config.gcc: Always set need_64bit_hwint to yes.
23827 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
23829 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
23830 of using optimize_size.
23832 2014-05-06 Mike Stump <mikestump@comcast.net>
23834 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
23836 2014-05-06 Joseph Myers <joseph@codesourcery.com>
23838 * config/i386/sse.md (*mov<mode>_internal)
23839 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
23840 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
23841 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
23842 (*<code><mode>3, *andnot<mode>3<mask_name>)
23843 (<mask_codefor><code><mode>3<mask_name>): Only consider
23844 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
23846 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
23849 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23851 * lra-constraints.c (valid_address_p): Move earlier in file.
23852 Add a constraint argument to the address_info version.
23853 (satisfies_memory_constraint_p): New function.
23854 (satisfies_address_constraint_p): Likewise.
23855 (process_alt_operands, curr_insn_transform): Use them.
23856 (process_address): Pass the constraint to valid_address_p when
23857 checking address operands.
23859 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
23861 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
23862 to their respective blocks. Fix inadvertent use of "node".
23864 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
23866 * emit-rtl.c (init_derived_machine_modes): New functionm, split
23868 (init_emit_once): ...here.
23869 * rtl.h (init_derived_machine_modes): Declare.
23870 * toplev.c (do_compile): Call it even if no_backend.
23872 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
23873 Mike Stump <mikestump@comcast.net>
23874 Richard Sandiford <rdsandiford@googlemail.com>
23875 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23877 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
23878 (rtx_equal_for_memref_p): Update comment.
23879 (adjust_offset_for_component_ref): Use wide-int interfaces.
23880 * builtins.c (get_object_alignment_2): Likewise.
23881 (c_readstr): Likewise.
23882 (target_char_cast): Add comment.
23883 (determine_block_size): Use wide-int interfaces.
23884 (expand_builtin_signbit): Likewise.
23885 (fold_builtin_int_roundingfn): Likewise.
23886 (fold_builtin_bitop): Likewise.
23887 (fold_builtin_bswap): Likewise.
23888 (fold_builtin_logarithm): Use signop.
23889 (fold_builtin_pow): Likewise.
23890 (fold_builtin_memory_op): Use wide-int interfaces.
23891 (fold_builtin_object_size): Likewise.
23892 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
23893 nb_iterations_estimate.
23894 (record_niter_bound): Use wide-int interfaces.
23895 (get_estimated_loop_iterations_int): Likewise.
23896 (get_estimated_loop_iterations): Likewise.
23897 (get_max_loop_iterations): Likewise.
23898 * cfgloop.h: Include wide-int.h.
23899 (struct nb_iter_bound): Change bound to widest_int.
23900 (struct loop): Change nb_iterations_upper_bound and
23901 nb_iterations_estimate to widest_int.
23902 (record_niter_bound): Switch to use widest_int.
23903 (get_estimated_loop_iterations): Likewise.
23904 (get_max_loop_iterations): Likewise.
23905 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
23906 update for wide-int.
23907 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
23908 * combine.c (try_combine): Likewise.
23909 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
23910 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
23912 (aarch64_float_const_representable_p): Likewise.
23913 * config/arc/arc.c: Include wide-int.h.
23914 (arc_can_use_doloop_p): Use wide-int interfaces.
23915 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
23916 (vfp3_const_double_index): Likewise.
23917 * config/avr/avr.c (avr_out_round): Likewise.
23918 (avr_fold_builtin): Likewise.
23919 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23920 (bfin_can_use_doloop_p): Likewise.
23921 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23922 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23923 * config/i386/i386.c: Include wide-int.h.
23924 (ix86_data_alignment): Use wide-int interfaces.
23925 (ix86_local_alignment): Likewise.
23926 (ix86_emit_swsqrtsf): Update real_from_integer.
23927 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23928 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23929 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23930 (zero_constant): Likewise.
23931 (input_operand): Likewise.
23932 (splat_input_operand): Likewise.
23933 (non_logical_cint_operand): Change const_double to const_wide_int.
23934 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23935 (easy_altivec_constant): Remove comment.
23936 (paired_expand_vector_init): Use CONSTANT_P.
23937 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23938 (rs6000_emit_move): Update checks.
23939 (rs6000_aggregate_candidate): Use wide-int interfaces.
23940 (rs6000_expand_ternop_builtin): Likewise.
23941 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23942 (rs6000_assemble_integer): Likewise.
23943 (rs6000_hash_constant): Likewise.
23944 (output_toc): Likewise.
23945 (rs6000_rtx_costs): Likewise.
23946 (rs6000_emit_swrsqrt); Update call to real_from_integer.
23947 * config/rs6000/rs6000-c.c: Include wide-int.h.
23948 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23949 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23950 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23951 Handle CONST_WIDE_INT.
23952 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23953 Use tree_fits_uhwi_p.
23954 * config/sparc/sparc.c: Include wide-int.h.
23955 (sparc_fold_builtin): Use wide-int interfaces.
23956 * config/vax/vax.c: Include wide-int.h.
23957 (vax_float_literal): Use real_from_integer.
23958 * coretypes.h (struct hwivec_def): New.
23960 (const_hwivec): New.
23961 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23962 (equiv_constant): Handle CONST_WIDE_INT.
23963 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23964 (cselib_hash_rtx): Handle CONST_WIDE_INT.
23965 * dbxout.c (stabstr_U): Use wide-int interfaces.
23966 (dbxout_type): Update to use cst_fits_shwi_p.
23967 * defaults.h (LOG2_BITS_PER_UNIT): Define.
23968 (TARGET_SUPPORTS_WIDE_INT): Add default.
23969 * dfp.c: Include wide-int.h.
23970 (decimal_real_to_integer2): Use wide-int interfaces and rename to
23971 decimal_real_to_integer.
23972 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23973 decimal_real_to_integer.
23974 * doc/generic.texi (Constant expressions): Update for wide_int.
23975 * doc/rtl.texi (const_double): Likewise.
23976 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23977 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23978 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23979 (REAL_VALUE_FROM_INT): Remove.
23980 (TARGET_SUPPORTS_WIDE_INT): New.
23981 * doc/tm.texi: Regenerate.
23982 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23983 * double-int.h: Include wide-int.h.
23984 (struct wi::int_traits): New.
23985 * dwarf2out.c (get_full_len): New.
23986 (dw_val_equal_p): Add case dw_val_class_wide_int.
23987 (size_of_loc_descr): Likewise.
23988 (output_loc_operands): Likewise.
23989 (insert_double): Remove.
23990 (insert_wide_int): New.
23991 (add_AT_wide): New.
23992 (print_die): Add case dw_val_class_wide_int.
23993 (attr_checksum): Likewise.
23994 (attr_checksum_ordered): Likewise.
23995 (same_dw_val_p): Likewise.
23996 (size_of_die): Likewise.
23997 (value_format): Likewise.
23998 (output_die): Likewise.
23999 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
24001 (clz_loc_descriptor): Use wide-int interfaces.
24002 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
24003 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
24004 (round_up_to_align): Use wide-int interfaces.
24005 (field_byte_offset): Likewise.
24006 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
24007 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
24008 CONST_DOUBLE handling. Use wide-int interfaces.
24009 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
24010 (gen_enumeration_type_die): Use add_AT_wide.
24011 (hash_loc_operands): Add case dw_val_class_wide_int.
24012 (compare_loc_operands): Likewise.
24013 * dwarf2out.h: Include wide-int.h.
24014 (wide_int_ptr): New.
24015 (enum dw_val_class): Add dw_val_class_wide_int.
24016 (struct dw_val_struct): Add val_wide.
24017 * emit-rtl.c (const_wide_int_htab): New.
24018 (const_wide_int_htab_hash): New.
24019 (const_wide_int_htab_eq): New.
24020 (lookup_const_wide_int): New.
24021 (const_double_htab_hash): Use wide-int interfaces.
24022 (const_double_htab_eq): Likewise.
24023 (rtx_to_double_int): Conditionally compile for wide-int.
24024 (immed_double_int_const): Rename to immed_wide_int_const and
24025 update for wide-int.
24026 (immed_double_const): Conditionally compile for wide-int.
24027 (init_emit_once): Use wide-int interfaces.
24028 * explow.c (plus_constant): Likewise.
24029 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
24030 (lshift_value): Use wide-int interfaces.
24031 (expand_mult): Likewise.
24032 (choose_multiplier): Likewise.
24033 (expand_smod_pow2): Likewise.
24034 (make_tree): Likewise.
24035 * expr.c (convert_modes): Consolidate handling of constants.
24036 Use wide-int interfaces.
24037 (emit_group_load_1): Add note.
24038 (store_expr): Update comment.
24039 (get_inner_reference): Use wide-int interfaces.
24040 (expand_constructor): Update comment.
24041 (expand_expr_real_2): Use wide-int interfaces.
24042 (expand_expr_real_1): Likewise.
24043 (reduce_to_bit_field_precision): Likewise.
24044 (const_vector_from_tree): Likewise.
24045 * final.c: Include wide-int-print.h.
24046 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
24047 * fixed-value.c: Include wide-int.h.
24048 (fixed_from_string): Use wide-int interfaces.
24049 (fixed_to_decimal): Likewise.
24050 (fixed_convert_from_real): Likewise.
24051 (real_convert_from_fixed): Likewise.
24052 * fold-const.h (mem_ref_offset): Return an offset_int.
24053 (div_if_zero_remainder): Remove code parameter.
24054 * fold-const.c (div_if_zero_remainder): Remove code parameter.
24055 Use wide-int interfaces.
24056 (may_negate_without_overflow_p): Use wide-int interfaces.
24057 (negate_expr_p): Likewise.
24058 (fold_negate_expr): Likewise.
24059 (int_const_binop_1): Likewise.
24060 (const_binop): Likewise.
24061 (fold_convert_const_int_from_int): Likewise.
24062 (fold_convert_const_int_from_real): Likewise.
24063 (fold_convert_const_int_from_fixed): Likewise.
24064 (fold_convert_const_fixed_from_int): Likewise.
24065 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
24066 (sign_bit_p): Use wide-int interfaces.
24067 (make_range_step): Likewise.
24068 (build_range_check): Likewise. Pass an integer of the correct type
24069 instead of using integer_one_node.
24070 (range_predecessor): Pass an integer of the correct type instead
24071 of using integer_one_node.
24072 (range_successor): Likewise.
24073 (merge_ranges): Likewise.
24074 (unextend): Use wide-int interfaces.
24075 (extract_muldiv_1): Likewise.
24076 (fold_div_compare): Likewise.
24077 (fold_single_bit_test): Likewise.
24078 (fold_sign_changed_comparison): Likewise.
24079 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
24080 (fold_plusminus_mult_expr): Use wide-int interfaces.
24081 (native_encode_int): Likewise.
24082 (native_interpret_int): Likewise.
24083 (fold_unary_loc): Likewise.
24084 (pointer_may_wrap_p): Likewise.
24085 (size_low_cst): Likewise.
24086 (mask_with_tz): Likewise.
24087 (fold_binary_loc): Likewise.
24088 (fold_ternary_loc): Likewise.
24089 (multiple_of_p): Likewise.
24090 (tree_call_nonnegative_warnv_p): Update calls to
24091 tree_int_cst_min_precision and real_from_integer.
24092 (fold_negate_const): Use wide-int interfaces.
24093 (fold_abs_const): Likewise.
24094 (fold_relational_const): Use tree_int_cst_lt.
24095 (round_up_loc): Use wide-int interfaces.
24096 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
24097 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
24098 * gengtype.c: Remove include of double-int.h.
24099 (do_typedef): Use wide-int interfaces.
24100 (open_base_files): Add wide-int.h.
24101 (main): Add offset_int and widest_int typedefs.
24102 * gengtype-lex.l: Handle "^".
24103 (CXX_KEYWORD): Add "static".
24104 * gengtype-parse.c (require3): New.
24105 (require_template_declaration): Handle constant template arguments
24106 and nested templates.
24107 * gengtype-state.c: Don't include "double-int.h".
24108 * genpreds.c (write_one_predicate_function): Update comment.
24109 (write_tm_constrs_h): Add check for hval and lval use in
24111 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
24112 (add_to_sequence): Likewise.
24113 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
24114 and const_double_operand.
24115 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
24117 * gimple-fold.c (get_base_constructor): Likewise.
24118 (fold_array_ctor_reference): Likewise.
24119 (fold_nonarray_ctor_reference): Likewise.
24120 (fold_const_aggregate_ref_1): Likewise.
24121 (gimple_val_nonnegative_real_p): Likewise.
24122 (gimple_fold_indirect_ref): Likewise.
24123 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
24124 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
24125 (struct slsr_cand_d): Change index to be widest_int.
24126 (struct incr_info_d): Change incr to be widest_int.
24127 (alloc_cand_and_find_basis): Use wide-int interfaces.
24128 (slsr_process_phi): Likewise.
24129 (backtrace_base_for_ref): Likewise. Return a widest_int.
24130 (restructure_reference): Take a widest_int instead of a double_int.
24131 (slsr_process_ref): Use wide-int interfaces.
24132 (create_mul_ssa_cand): Likewise.
24133 (create_mul_imm_cand): Likewise.
24134 (create_add_ssa_cand): Likewise.
24135 (create_add_imm_cand): Take a widest_int instead of a double_int.
24136 (slsr_process_add): Use wide-int interfaces.
24137 (slsr_process_cast): Likewise.
24138 (slsr_process_copy): Likewise.
24139 (dump_candidate): Likewise.
24140 (dump_incr_vec): Likewise.
24141 (replace_ref): Likewise.
24142 (cand_increment): Likewise. Return a widest_int.
24143 (cand_abs_increment): Likewise.
24144 (replace_mult_candidate): Take a widest_int instead of a double_int.
24145 (replace_unconditional_candidate): Use wide-int interfaces.
24146 (incr_vec_index): Take a widest_int instead of a double_int.
24147 (create_add_on_incoming_edge): Likewise.
24148 (create_phi_basis): Use wide-int interfaces.
24149 (replace_conditional_candidate): Likewise.
24150 (record_increment): Take a widest_int instead of a double_int.
24151 (record_phi_increments): Use wide-int interfaces.
24152 (phi_incr_cost): Take a widest_int instead of a double_int.
24153 (lowest_cost_path): Likewise.
24154 (total_savings): Likewise.
24155 (analyze_increments): Use wide-int interfaces.
24156 (ncd_with_phi): Take a widest_int instead of a double_int.
24157 (ncd_of_cand_and_phis): Likewise.
24158 (nearest_common_dominator_for_cands): Likewise.
24159 (insert_initializers): Use wide-int interfaces.
24160 (all_phi_incrs_profitable): Likewise.
24161 (replace_one_candidate): Likewise.
24162 (replace_profitable_candidates): Likewise.
24163 * godump.c: Include wide-int-print.h.
24164 (go_output_typedef): Use wide-int interfaces.
24165 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
24166 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
24167 (build_loop_iteration_domains): Likewise.
24168 * hooks.h: Include wide-int.h rather than double-int.h.
24169 (hook_bool_dint_dint_uint_bool_true): Delete.
24170 (hook_bool_wint_wint_uint_bool_true): Declare.
24171 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
24172 (hook_bool_wint_wint_uint_bool_true): New.
24173 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
24175 (ubsan_expand_si_overflow_mul_check): Likewise.
24176 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
24177 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
24178 (get_ancestor_addr_info): Likewise.
24179 (ipa_modify_call_arguments): Likewise.
24180 * loop-doloop.c (doloop_modify): Likewise.
24181 (doloop_optimize): Likewise.
24182 * loop-iv.c (iv_number_of_iterations): Likewise.
24183 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
24184 (unroll_loop_constant_iterations): Likewise.
24185 (decide_unroll_runtime_iterations): Likewise.
24186 (unroll_loop_runtime_iterations): Likewise.
24187 (decide_peel_simple): Likewise.
24188 (decide_unroll_stupid): Likewise.
24189 * lto-streamer-in.c (streamer_read_wi): Add.
24190 (input_cfg): Use wide-int interfaces.
24191 (lto_input_tree_1): Likewise.
24192 * lto-streamer-out.c (streamer_write_wi): Add.
24193 (hash_tree): Use wide-int interfaces.
24194 (output_cfg): Likewise.
24195 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
24196 (GTFILES): Add wide-int.h and signop.h.
24197 (TAGS): Look for .cc files too.
24198 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
24199 * optabs.c (expand_subword_shift): Likewise.
24200 (expand_doubleword_shift): Likewise.
24201 (expand_absneg_bit): Likewise.
24202 (expand_copysign_absneg): Likewise.
24203 (expand_copysign_bit): Likewise.
24204 * postreload.c (reload_cse_simplify_set): Likewise.
24205 * predict.c (predict_iv_comparison): Likewise.
24206 * pretty-print.h: Include wide-int-print.h.
24208 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
24209 * print-tree.c: Include wide-int-print.h.
24210 (print_node_brief): Use wide-int interfaces.
24211 (print_node): Likewise.
24212 * read-rtl.c (validate_const_wide_int): New.
24213 (read_rtx_code): Add CONST_WIDE_INT case.
24214 * real.c: Include wide-int.h.
24215 (real_to_integer2): Delete.
24216 (real_to_integer): New function, returning a wide_int.
24217 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
24218 (ten_to_ptwo): Update call to real_from_integer.
24219 (real_digit): Likewise.
24220 * real.h: Include signop.h, wide-int.h and insn-modes.h.
24221 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
24222 (REAL_VALUE_TO_INT): Delete.
24223 (real_to_integer): Declare a wide-int form.
24224 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
24225 * recog.c (const_int_operand): Improve comment.
24226 (const_scalar_int_operand): New.
24227 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
24228 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
24229 (split_double): Likewise.
24230 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
24231 (rtx_size): Likewise.
24232 (rtx_alloc_stat_v): New.
24233 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
24234 (cwi_output_hex): New.
24235 (iterative_hash_rtx): Handle CONST_WIDE_INT.
24236 (cwi_check_failed_bounds): New.
24237 * rtl.def (CONST_WIDE_INT): New.
24238 * rtl.h: Include <utility> and wide-int.h.
24239 (struct hwivec_def): New.
24240 (CWI_GET_NUM_ELEM): New.
24241 (CWI_PUT_NUM_ELEM): New.
24242 (struct rtx_def): Add num_elem and hwiv.
24243 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
24244 (CASE_CONST_UNIQUE): Likewise.
24245 (CASE_CONST_ANY): Likewise.
24246 (CONST_SCALAR_INT_P): Likewise.
24247 (CONST_WIDE_INT_P): New.
24249 (HWIVEC_CHECK): New.
24250 (cwi_check_failed_bounds): New.
24252 (HWIVEC_CHECK): New.
24253 (CONST_WIDE_INT_VEC) New.
24254 (CONST_WIDE_INT_NUNITS) New.
24255 (CONST_WIDE_INT_ELT) New.
24256 (rtx_mode_t): New type.
24257 (wi::int_traits <rtx_mode_t>): New.
24259 (wi::min_value): New.
24260 (wi::max_value): New.
24262 (const_wide_int_alloc): New.
24263 (immed_wide_int_const): New.
24264 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
24265 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
24266 * signop.h: New file.
24267 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
24268 (simplify_const_unary_operation): Use wide-int interfaces.
24269 (simplify_binary_operation_1): Likewise.
24270 (simplify_const_binary_operation): Likewise.
24271 (simplify_const_relational_operation): Likewise.
24272 (simplify_immed_subreg): Likewise.
24273 * stmt.c (expand_case): Likewise.
24274 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
24275 signop rather than a bool.
24276 * stor-layout.c (layout_type): Use wide-int interfaces.
24277 (initialize_sizetypes): Update calls to
24278 set_min_and_max_values_for_integral_type.
24279 (set_min_and_max_values_for_integral_type): Take a signop rather
24280 than a bool. Use wide-int interfaces.
24281 (fixup_signed_type): Update accordingly. Remove
24282 HOST_BITS_PER_DOUBLE_INT limit.
24283 (fixup_unsigned_type): Likewise.
24284 * system.h (STATIC_CONSTANT_P): New.
24285 (STATIC_ASSERT): New.
24286 * target.def (can_use_doloop_p): Take widest_ints rather than
24288 * target.h: Include wide-int.h rather than double-int.h.
24289 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
24291 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
24292 rather than INT_CST_LT_UNSIGNED.
24293 (can_use_doloop_if_innermost): Take widest_ints rather than
24295 * tree-affine.c: Include wide-int-print.h.
24296 (double_int_ext_for_comb): Delete.
24297 (wide_int_ext_for_comb): New.
24298 (aff_combination_zero): Use wide-int interfaces.
24299 (aff_combination_const): Take a widest_int instead of a double_int.
24300 (aff_combination_elt): Use wide-int interfaces.
24301 (aff_combination_scale): Take a widest_int instead of a double_int.
24302 (aff_combination_add_elt): Likewise.
24303 (aff_combination_add_cst): Likewise.
24304 (aff_combination_add): Use wide-int interfaces.
24305 (aff_combination_convert): Likewise.
24306 (tree_to_aff_combination): Likewise.
24307 (add_elt_to_tree): Take a widest_int instead of a double_int.
24308 (aff_combination_to_tree): Use wide-int interfaces.
24309 (aff_combination_remove_elt): Likewise.
24310 (aff_combination_add_product): Take a widest_int instead of
24312 (aff_combination_mult): Use wide-int interfaces.
24313 (aff_combination_expand): Likewise.
24314 (double_int_constant_multiple_p): Delete.
24315 (wide_int_constant_multiple_p): New.
24316 (aff_combination_constant_multiple_p): Take a widest_int pointer
24317 instead of a double_int pointer.
24318 (print_aff): Use wide-int interfaces.
24319 (get_inner_reference_aff): Take a widest_int pointer
24320 instead of a double_int pointer.
24321 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
24322 * tree-affine.h: Include wide-int.h.
24323 (struct aff_comb_elt): Change type of coef to widest_int.
24324 (struct affine_tree_combination): Change type of offset to widest_int.
24325 (double_int_ext_for_comb): Delete.
24326 (wide_int_ext_for_comb): New.
24327 (aff_combination_const): Use widest_int instead of double_int.
24328 (aff_combination_scale): Likewise.
24329 (aff_combination_add_elt): Likewise.
24330 (aff_combination_constant_multiple_p): Likewise.
24331 (get_inner_reference_aff): Likewise.
24332 (aff_comb_cannot_overlap_p): Likewise.
24333 (aff_combination_zero_p): Use wide-int interfaces.
24334 * tree.c: Include tree.h.
24335 (init_ttree): Use make_int_cst.
24336 (tree_code_size): Removed code for INTEGER_CST case.
24337 (tree_size): Add INTEGER_CST case.
24338 (make_node_stat): Update comment.
24339 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
24340 (build_int_cst_type): Use wide-int interfaces.
24341 (double_int_to_tree): Likewise.
24342 (double_int_fits_to_tree_p): Delete.
24343 (force_fit_type_double): Delete.
24344 (force_fit_type): New.
24345 (int_cst_hash_hash): Use wide-int interfaces.
24346 (int_cst_hash_eq): Likewise.
24347 (build_int_cst_wide): Delete.
24348 (wide_int_to_tree): New.
24349 (cache_integer_cst): Use wide-int interfaces.
24350 (build_low_bits_mask): Likewise.
24351 (cst_and_fits_in_hwi): Likewise.
24352 (real_value_from_int_cst): Likewise.
24353 (make_int_cst_stat): New.
24354 (integer_zerop): Use wide_int interfaces.
24355 (integer_onep): Likewise.
24356 (integer_all_onesp): Likewise.
24357 (integer_pow2p): Likewise.
24358 (integer_nonzerop): Likewise.
24359 (tree_log2): Likewise.
24360 (tree_floor_log2): Likewise.
24361 (tree_ctz): Likewise.
24362 (int_size_in_bytes): Likewise.
24363 (mem_ref_offset): Return an offset_int rather than a double_int.
24364 (build_type_attribute_qual_variant): Use wide_int interfaces.
24365 (type_hash_eq): Likewise
24366 (tree_int_cst_equal): Likewise.
24367 (tree_int_cst_lt): Delete.
24368 (tree_int_cst_compare): Likewise.
24369 (tree_fits_shwi_p): Use wide_int interfaces.
24370 (tree_fits_uhwi_p): Likewise.
24371 (tree_int_cst_sign_bit): Likewise.
24372 (tree_int_cst_sgn): Likewise.
24373 (tree_int_cst_min_precision): Take a signop rather than a bool.
24374 (simple_cst_equal): Use wide_int interfaces.
24375 (compare_tree_int): Likewise.
24376 (iterative_hash_expr): Likewise.
24377 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
24379 (get_type_static_bounds): Use wide_int interfaces.
24380 (tree_int_cst_elt_check_failed): New.
24381 (build_common_tree_nodes): Reordered to set prec before filling in
24383 (int_cst_value): Check cst_and_fits_in_hwi.
24384 (widest_int_cst_value): Use wide_int interfaces.
24385 (upper_bound_in_type): Likewise.
24386 (lower_bound_in_type): Likewise.
24387 (num_ending_zeros): Likewise.
24388 (drop_tree_overflow): Likewise.
24389 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
24390 (gen_conditions_for_pow_cst_base): Likewise.
24391 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
24392 (group_case_labels_stmt): Use wide-int interfaces.
24393 (verify_gimple_assign_binary): Likewise.
24394 (print_loop): Likewise.
24395 * tree-chrec.c (tree_fold_binomial): Likewise.
24396 * tree-core.h (struct tree_base): Add int_length.
24397 (struct tree_int_cst): Change rep of value.
24398 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
24399 (dr_may_alias_p): Likewise.
24400 (max_stmt_executions_tree): Likewise.
24401 * tree.def (INTEGER_CST): Update comment.
24402 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
24403 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
24404 * tree-dump.c: Include wide-int.h and wide-int-print.h.
24405 (dequeue_and_dump): Use wide-int interfaces.
24406 * tree.h: Include wide-int.h.
24407 (NULL_TREE): Moved to earlier loc in file.
24408 (TREE_INT_CST_ELT_CHECK): New.
24409 (tree_int_cst_elt_check_failed): New.
24411 (TREE_INT_CST): Delete.
24412 (TREE_INT_CST_LOW): Use wide-int interfaces.
24413 (TREE_INT_CST_HIGH): Delete.
24414 (TREE_INT_CST_NUNITS): New.
24415 (TREE_INT_CST_EXT_NUNITS): Likewise.
24416 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
24417 (TREE_INT_CST_ELT): Likewise.
24418 (INT_CST_LT): Delete.
24419 (tree_int_cst_elt_check): New (two forms).
24420 (type_code_size): Update comment.
24421 (make_int_cst_stat, make_int_cst): New.
24422 (tree_to_double_int): Delete.
24423 (double_int_fits_to_tree_p): Delete.
24424 (force_fit_type_double): Delete.
24425 (build_int_cstu): Replace with out-of-line function.
24426 (build_int_cst_wide): Delete.
24427 (tree_int_cst_lt): Define inline.
24428 (tree_int_cst_le): New.
24429 (tree_int_cst_compare): Define inline.
24430 (tree_int_cst_min_precision): Take a signop rather than a bool.
24431 (wi::int_traits <const_tree>): New.
24432 (wi::int_traits <tree>): New.
24433 (wi::extended_tree): New.
24434 (wi::int_traits <wi::extended_tree>): New.
24435 (wi::to_widest): New.
24436 (wi::to_offset): New.
24437 (wi::fits_to_tree_p): New.
24438 (wi::min_value): New.
24439 (wi::max_value): New.
24440 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
24441 (copy_tree_body_r): Likewise.
24442 * tree-object-size.c (compute_object_offset): Likewise.
24443 (addr_object_size): Likewise.
24444 * tree-predcom.c: Include wide-int-print.h.
24445 (struct dref_d): Change type of offset to widest_int.
24446 (dump_dref): Call wide-int printer.
24447 (aff_combination_dr_offset): Use wide-int interfaces.
24448 (determine_offset): Take a widest_int pointer rather than a
24449 double_int pointer.
24450 (split_data_refs_to_components): Use wide-int interfaces.
24451 (suitable_component_p): Likewise.
24452 (order_drefs): Likewise.
24453 (add_ref_to_chain): Likewise.
24454 (valid_initializer_p): Likewise.
24455 (determine_roots_comp): Likewise.
24456 * tree-pretty-print.c: Include wide-int-print.h.
24457 (dump_generic_node): Use wide-int interfaces.
24458 * tree-sra.c (sra_ipa_modify_expr): Likewise.
24459 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
24460 (move_fixed_address_to_symbol): Likewise.
24461 (move_hint_to_base): Likewise.
24462 (move_pointer_to_base): Likewise.
24463 (move_variant_to_index): Likewise.
24464 (most_expensive_mult_to_index): Likewise.
24465 (addr_to_parts): Likewise.
24466 (copy_ref_info): Likewise.
24467 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24468 (indirect_refs_may_alias_p): Likewise.
24469 (stmt_kills_ref_p_1): Likewise.
24470 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
24471 * tree-ssa-ccp.c: Update comment at top of file. Include
24473 (struct prop_value_d): Change type of mask to widest_int.
24474 (extend_mask): New function.
24475 (dump_lattice_value): Use wide-int interfaces.
24476 (get_default_value): Likewise.
24477 (set_constant_value): Likewise.
24478 (set_value_varying): Likewise.
24479 (valid_lattice_transition): Likewise.
24480 (set_lattice_value): Likewise.
24481 (value_to_double_int): Delete.
24482 (value_to_wide_int): New.
24483 (get_value_from_alignment): Use wide-int interfaces.
24484 (get_value_for_expr): Likewise.
24485 (do_dbg_cnt): Likewise.
24486 (ccp_finalize): Likewise.
24487 (ccp_lattice_meet): Likewise.
24488 (bit_value_unop_1): Use widest_ints rather than double_ints.
24489 (bit_value_binop_1): Likewise.
24490 (bit_value_unop): Use wide-int interfaces.
24491 (bit_value_binop): Likewise.
24492 (bit_value_assume_aligned): Likewise.
24493 (evaluate_stmt): Likewise.
24494 (ccp_fold_stmt): Likewise.
24495 (visit_cond_stmt): Likewise.
24496 (ccp_visit_stmt): Likewise.
24497 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24498 (constant_pointer_difference): Likewise.
24499 (associate_pointerplus): Likewise.
24500 (combine_conversions): Likewise.
24501 * tree-ssa-loop.h: Include wide-int.h.
24502 (struct tree_niter_desc): Change type of max to widest_int.
24503 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
24504 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
24505 (remove_redundant_iv_tests): Likewise.
24506 (canonicalize_loop_induction_variables): Likewise.
24507 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
24508 (constant_multiple_of): Take a widest_int pointer instead of
24509 a double_int pointer.
24510 (get_computation_aff): Use wide-int interfaces.
24511 (ptr_difference_cost): Likewise.
24512 (difference_cost): Likewise.
24513 (get_loop_invariant_expr_id): Likewise.
24514 (get_computation_cost_at): Likewise.
24515 (iv_elimination_compare_lt): Likewise.
24516 (may_eliminate_iv): Likewise.
24517 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
24518 instead of double_int.
24519 (max_loop_iterations): Likewise.
24520 (max_stmt_executions): Likewise.
24521 (estimated_stmt_executions): Likewise.
24522 * tree-ssa-loop-niter.c: Include wide-int-print.h.
24523 (split_to_var_and_offset): Use wide-int interfaces.
24524 (determine_value_range): Likewise.
24525 (bound_difference_of_offsetted_base): Likewise.
24526 (bounds_add): Take a widest_int instead of a double_int.
24527 (number_of_iterations_ne_max): Use wide-int interfaces.
24528 (number_of_iterations_ne): Likewise.
24529 (number_of_iterations_lt_to_ne): Likewise.
24530 (assert_loop_rolls_lt): Likewise.
24531 (number_of_iterations_lt): Likewise.
24532 (number_of_iterations_le): Likewise.
24533 (number_of_iterations_cond): Likewise.
24534 (number_of_iterations_exit): Likewise.
24535 (finite_loop_p): Likewise.
24536 (derive_constant_upper_bound_assign): Likewise.
24537 (derive_constant_upper_bound): Return a widest_int.
24538 (derive_constant_upper_bound_ops): Likewise.
24539 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
24540 (record_estimate): Take a widest_int rather than a double_int.
24541 (record_nonwrapping_iv): Use wide-int interfaces.
24542 (double_int_cmp): Delete.
24543 (wide_int_cmp): New.
24544 (bound_index): Take a widest_int rather than a double_int.
24545 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
24546 (maybe_lower_iteration_bound): Likewise.
24547 (estimate_numbers_of_iterations_loop): Likewise.
24548 (estimated_loop_iterations): Take a widest_int pointer than than
24549 a double_int pointer.
24550 (estimated_loop_iterations_int): Use wide-int interfaces.
24551 (max_loop_iterations): Take a widest_int pointer than than
24552 a double_int pointer.
24553 (max_loop_iterations_int): Use wide-int interfaces.
24554 (max_stmt_executions): Take a widest_int pointer than than
24555 a double_int pointer.
24556 (estimated_stmt_executions): Likewise.
24557 (n_of_executions_at_most): Use wide-int interfaces.
24558 (scev_probably_wraps_p): Likewise.
24559 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
24560 to real_to_integer.
24561 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
24563 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
24564 double_ints. Adjust for trailing_wide_ints <3> representation.
24565 (set_nonzero_bits): Likewise.
24566 (get_range_info): Return wide_ints rather than double_ints.
24567 Adjust for trailing_wide_ints <3> representation.
24568 (get_nonzero_bits): Likewise.
24569 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
24571 * tree-ssanames.h (struct range_info_def): Replace min, max and
24572 nonzero_bits with a trailing_wide_ints <3>.
24573 (set_range_info): Use wide_int_refs rather than double_ints.
24574 (set_nonzero_bits): Likewise.
24575 (get_range_info): Return wide_ints rather than double_ints.
24576 (get_nonzero_bits): Likewise.
24577 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
24578 * tree-ssa-pre.c (phi_translate_1): Likewise.
24579 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
24580 (acceptable_pow_call): Likewise.
24581 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
24583 (vn_reference_fold_indirect): Likewise.
24584 (vn_reference_maybe_forwprop_address): Likewise.
24585 (valueize_refs_1): Likewise.
24586 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
24587 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
24588 tree_int_cst_lt and tree_int_cst_le.
24589 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
24591 (streamer_alloc_tree): Likewise.
24592 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
24593 (streamer_write_tree_header): Likewise.
24594 (streamer_write_integer_cst): Likewise.
24595 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24596 (build_constructors): Likewise.
24597 (array_value_type): Likewise.
24598 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
24599 (vect_check_gather): Likewise.
24600 * tree-vect-generic.c (build_replicated_const): Likewise.
24601 (expand_vector_divmod): Likewise.
24602 * tree-vect-loop.c (vect_transform_loop): Likewise.
24603 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24604 (vect_do_peeling_for_alignment): Likewise.
24605 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
24606 * tree-vrp.c: Include wide-int.h.
24607 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
24608 (extract_range_from_assert): Use wide-int interfaces.
24609 (vrp_int_const_binop): Likewise.
24610 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
24611 double_int pointers.
24612 (ranges_from_anti_range): Use wide-int interfaces.
24613 (quad_int_cmp): Delete.
24614 (quad_int_pair_sort): Likewise.
24615 (extract_range_from_binary_expr_1): Use wide-int interfaces.
24616 (extract_range_from_unary_expr_1): Likewise.
24617 (adjust_range_with_scev): Likewise.
24618 (masked_increment): Take and return wide_ints rather than double_ints.
24619 (register_edge_assert_for_2): Use wide-int interfaces.
24620 (check_array_ref): Likewise.
24621 (search_for_addr_array): Likewise.
24622 (maybe_set_nonzero_bits): Likewise.
24623 (union_ranges): Pass an integer of the correct type instead of
24624 using integer_one_node.
24625 (intersect_ranges): Likewise.
24626 (simplify_truth_ops_using_ranges): Likewise.
24627 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
24628 (range_fits_type_p): Likewise.
24629 (simplify_cond_using_ranges): Likewise. Take a signop rather than
24631 (simplify_conversion_using_ranges): Use wide-int interfaces.
24632 (simplify_float_conversion_using_ranges): Likewise.
24633 (vrp_finalize): Likewise.
24634 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
24635 (gimple_stringops_transform): Likewise.
24636 * varasm.c (decode_addr_const): Likewise.
24637 (const_hash_1): Likewise.
24638 (const_rtx_hash_1): Likewise
24639 (output_constant): Likewise.
24640 (array_size_for_constructor): Likewise.
24641 (output_constructor_regular_field): Likewise.
24642 (output_constructor_bitfield): Likewise.
24643 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
24644 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
24646 * gencheck.c: Define BITS_PER_UNIT.
24647 * wide-int.cc: New.
24649 * wide-int-print.cc: New.
24650 * wide-int-print.h: New.
24652 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24654 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
24656 2014-05-06 Richard Biener <rguenther@suse.de>
24658 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
24659 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
24660 (TODO_verify_all): Adjust.
24661 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
24662 TODO_verify_stmts and TODO_verify_rtl_sharing.
24663 * bb-reorder.c: Likewise.
24664 * cfgexpand.c: Likewise.
24665 * cprop.c: Likewise.
24667 * function.c: Likewise.
24668 * fwprop.c: Likewise.
24669 * gcse.c: Likewise.
24670 * gimple-ssa-isolate-paths.c: Likewise.
24671 * gimple-ssa-strength-reduction.c: Likewise.
24672 * ipa-split.c: Likewise.
24673 * loop-init.c: Likewise.
24674 * loop-unroll.c: Likewise.
24675 * lower-subreg.c: Likewise.
24676 * modulo-sched.c: Likewise.
24677 * postreload-gcse.c: Likewise.
24678 * predict.c: Likewise.
24679 * recog.c: Likewise.
24680 * sched-rgn.c: Likewise.
24681 * store-motion.c: Likewise.
24682 * tracer.c: Likewise.
24683 * trans-mem.c: Likewise.
24684 * tree-call-cdce.c: Likewise.
24685 * tree-cfg.c: Likewise.
24686 * tree-cfgcleanup.c: Likewise.
24687 * tree-complex.c: Likewise.
24688 * tree-eh.c: Likewise.
24689 * tree-emutls.c: Likewise.
24690 * tree-if-conv.c: Likewise.
24691 * tree-into-ssa.c: Likewise.
24692 * tree-loop-distribution.c: Likewise.
24693 * tree-object-size.c: Likewise.
24694 * tree-parloops.c: Likewise.
24695 * tree-pass.h: Likewise.
24696 * tree-sra.c: Likewise.
24697 * tree-ssa-ccp.c: Likewise.
24698 * tree-ssa-copy.c: Likewise.
24699 * tree-ssa-copyrename.c: Likewise.
24700 * tree-ssa-dce.c: Likewise.
24701 * tree-ssa-dom.c: Likewise.
24702 * tree-ssa-dse.c: Likewise.
24703 * tree-ssa-forwprop.c: Likewise.
24704 * tree-ssa-ifcombine.c: Likewise.
24705 * tree-ssa-loop-ch.c: Likewise.
24706 * tree-ssa-loop-ivcanon.c: Likewise.
24707 * tree-ssa-loop.c: Likewise.
24708 * tree-ssa-math-opts.c: Likewise.
24709 * tree-ssa-phiopt.c: Likewise.
24710 * tree-ssa-phiprop.c: Likewise.
24711 * tree-ssa-pre.c: Likewise.
24712 * tree-ssa-reassoc.c: Likewise.
24713 * tree-ssa-sink.c: Likewise.
24714 * tree-ssa-strlen.c: Likewise.
24715 * tree-ssa-tail-merge.c: Likewise.
24716 * tree-ssa-uncprop.c: Likewise.
24717 * tree-switch-conversion.c: Likewise.
24718 * tree-tailcall.c: Likewise.
24719 * tree-vect-generic.c: Likewise.
24720 * tree-vectorizer.c: Likewise.
24721 * tree-vrp.c: Likewise.
24722 * tsan.c: Likewise.
24723 * var-tracking.c: Likewise.
24724 * bt-load.c: Likewise.
24725 * cfgcleanup.c: Likewise.
24726 * combine-stack-adj.c: Likewise.
24727 * combine.c: Likewise.
24728 * compare-elim.c: Likewise.
24729 * config/epiphany/resolve-sw-modes.c: Likewise.
24730 * config/i386/i386.c: Likewise.
24731 * config/mips/mips.c: Likewise.
24732 * config/s390/s390.c: Likewise.
24733 * config/sh/sh_treg_combine.cc: Likewise.
24734 * config/sparc/sparc.c: Likewise.
24737 * final.c: Likewise.
24738 * ifcvt.c: Likewise.
24739 * mode-switching.c: Likewise.
24740 * passes.c: Likewise.
24741 * postreload.c: Likewise.
24743 * reg-stack.c: Likewise.
24744 * regcprop.c: Likewise.
24745 * regrename.c: Likewise.
24748 2014-05-06 Richard Biener <rguenther@suse.de>
24750 PR middle-end/61070
24751 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
24752 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
24754 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
24757 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
24759 2014-05-05 Radovan Obradovic <robradovic@mips.com>
24760 Tom de Vries <tom@codesourcery.com>
24762 * target.def (call_fusage_contains_non_callee_clobbers): New
24764 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
24766 (@node Miscellaneous Register Hooks): New node.
24767 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
24768 * doc/tm.texi: Regenerate.
24770 2014-05-05 Marek Polacek <polacek@redhat.com>
24773 * opts.c (common_handle_option): Call error_at instead of warning_at.
24775 2014-05-05 Richard Biener <rguenther@suse.de>
24777 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
24778 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
24779 under the TODO_verify_il umbrella.
24781 2014-05-05 Richard Biener <rguenther@suse.de>
24783 * passes.c (execute_function_todo): Move TODO_verify_flow under
24784 the TODO_verify_ul umbrella.
24786 2014-05-05 Richard Biener <rguenther@suse.de>
24788 PR middle-end/61010
24789 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
24790 X & CST away from a CST that is the mask of a mode.
24792 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24794 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
24795 int argument to enum machine_mode.
24796 (picochip_class_max_nregs): Ditto.
24797 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
24798 (picochip_class_max_nregs): Ditto.
24800 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24802 * target.def: Add new target hook.
24803 * doc/tm.texi: Regenerate.
24804 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
24805 * targhooks.c (default_keep_leaf_when_profiled): New function.
24807 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
24808 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
24810 2014-05-05 Bin Cheng <bin.cheng@arm.com>
24812 PR tree-optimization/60363
24813 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
24814 (copy_phi_args): New parameters. Call get_value_locus_in_path.
24815 (update_destination_phis): New parameter.
24816 (create_edge_and_update_destination_phis): Ditto.
24817 (ssa_fix_duplicate_block_edges): Pass new arguments.
24818 (thread_single_edge): Ditto.
24820 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
24822 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
24823 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
24824 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
24825 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
24826 Use RS6000_BTM_HARD_FLOAT.
24827 (BU_MISC_2): Likewise.
24828 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24829 RS6000_BTM_HARD_FLOAT.
24830 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
24831 is explicitly used.
24832 (rs6000_invalid_builtin): Add hard floating builtin support.
24833 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
24834 hard float builtins.
24835 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
24837 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24839 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
24840 Add missing function* argument.
24842 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
24844 * lra-constraints.c (valid_address_p): Move earlier in file.
24845 Add a constraint argument to the address_info version.
24846 (satisfies_memory_constraint_p): New function.
24847 (satisfies_address_constraint_p): Likewise.
24848 (process_alt_operands, curr_insn_transform): Use them.
24849 (process_address): Pass the constraint to valid_address_p when
24850 checking address operands.
24852 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
24854 * config/mips/mips.c (mips_isa_rev): New variable.
24855 (mips_set_architecture): Set it.
24856 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
24858 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
24859 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
24860 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
24861 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
24862 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
24863 conditions in terms of mips_isa_rev.
24864 (mips_isa_rev): Declare.
24866 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24868 * config/sh/sh-mem.cc: Use tabs instead of spaces.
24869 (prob_unlikely, prob_likely): Make variables const.
24871 2014-05-03 Denis Chertykov <chertykov@gmail.com>
24873 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
24875 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24877 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
24879 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24881 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
24882 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
24883 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
24885 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
24886 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
24888 Replace usage of ROUND_REG with sh_round_reg.
24889 Use CEIL instead of ROUND_ADVANCE.
24891 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24894 * config/sh/sh.c: Include stdlib headers before everything else.
24896 2014-05-02 Jakub Jelinek <jakub@redhat.com>
24898 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
24899 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
24900 (gimplify_adjust_omp_clauses): Simd region is never
24901 directly nested in combined parallel. Instead, for linear
24902 with copyin/copyout, if in combined for simd loop, make decl
24903 firstprivate/lastprivate on OMP_FOR.
24904 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
24905 expand_omp_for_static_chunk): When setting endvar, also set
24906 fd->loop.v to the same value.
24908 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24910 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
24912 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
24914 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
24917 2014-05-02 Marek Polacek <polacek@redhat.com>
24919 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24921 2014-05-02 Kito Cheng <kito@0xlab.org>
24923 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24924 to a C expression marco.
24925 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24926 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24927 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24928 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24929 HONOR_REG_ALLOC_ORDER.
24930 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24932 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24934 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24936 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24938 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24940 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
24942 * tree-if-conv.c (is_cond_scalar_reduction): New function.
24943 (convert_scalar_cond_reduction): Likewise.
24944 (predicate_scalar_phi): Add recognition and transformation
24945 of simple conditioanl reduction to be vectorizable.
24947 2014-05-01 Marek Polacek <polacek@redhat.com>
24950 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24952 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
24954 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24955 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24956 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24957 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24958 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24959 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24960 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24961 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24963 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
24965 * config/arc/arc.opt (mlra): Move comment above option name
24966 to avoid mis-parsing as language options.
24968 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24970 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24971 * config/sol2.h: ... here.
24972 * config/sol2-10.h: Remove.
24974 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24975 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24976 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24977 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24978 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24979 * config/sol2.h: ... here.
24980 (SECTION_NAME_FORMAT): Don't redefine.
24981 (STARTFILE_ARCH32_SPEC): Rename to ...
24982 (STARTFILE_ARCH_SPEC): ... this.
24983 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24984 * config/sparc/sol2.h: ... here.
24985 (SECTION_NAME_FORMAT): Don't undef.
24986 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24987 (SUBTARGET_EXTRA_SPECS): Remove.
24988 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24990 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24991 (MD_STARTFILE_PREFIX): Remove.
24992 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24993 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24994 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24995 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24996 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24997 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24998 * config/i386/sol2.h: ... here.
24999 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
25000 * config/i386/sol2-bi.h: Remove.
25001 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
25002 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
25004 * config/i386/t-sol2-64: Rename to ...
25005 * config/i386/t-sol2: ... this.
25006 * config/sparc/t-sol2-64: Rename to ...
25007 * config/sparc/t-sol2: ... this.
25009 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
25010 sol2_tm_file_head, sol2_tm_file_tail.
25011 Include ${cpu_type}/sol2.h before sol2.h.
25013 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
25014 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
25015 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
25016 Reflect i386/t-sol2-64 renaming.
25017 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
25018 Reflect sparc/t-sol2-64 renaming.
25020 2014-04-30 Richard Biener <rguenther@suse.de>
25022 * passes.c (execute_function_todo): Move TODO_verify_stmts
25023 and TODO_verify_ssa under the TODO_verify_il umbrella.
25024 * tree-ssa.h (verify_ssa): Adjust prototype.
25025 * tree-ssa.c (verify_ssa): Add parameter to tell whether
25026 we should verify SSA operands.
25027 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
25028 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
25029 whether we should verify whether not throwing stmts have EH info.
25030 * graphite-scop-detection.c (create_sese_edges): Adjust.
25031 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
25032 * tree-eh.c (lower_try_finally_switch): Do not add the
25033 default case label twice.
25035 2014-04-30 Marek Polacek <polacek@redhat.com>
25037 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
25038 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
25039 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
25040 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
25042 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
25044 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
25045 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
25046 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
25047 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
25048 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
25049 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
25050 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
25051 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
25053 2014-04-29 David Malcolm <dmalcolm@redhat.com>
25055 * tree-cfg.c (dump_function_to_file): Dump the return type of
25056 functions, in a line to itself before the function body, mimicking
25057 the layout of a C function.
25059 2014-04-29 Jakub Jelinek <jakub@redhat.com>
25061 PR tree-optimization/60971
25062 * tree-tailcall.c (process_assignment): Reject conversions which
25065 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25067 * calls.c (initialize_argument_information): Always treat
25068 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
25069 (expand_call): Likewise.
25070 (emit_library_call_calue_1): Likewise.
25071 * expr.c (PUSH_ARGS_REVERSED): Do not define.
25072 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
25075 2014-04-29 Nick Clifton <nickc@redhat.com>
25077 * config/msp430/msp430.md (umulsidi): Fix typo.
25078 (mulhisi3): Enable even inside interrupt handlers.
25079 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
25080 bigger return address pushed in large mode.
25082 2014-04-29 Nick Clifton <nickc@redhat.com>
25084 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
25085 (arc_init_reg_tables): Use a machine_mode enum to iterate over
25087 * config/m32r/m32r.c (init_reg_tables): Likewise.
25088 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
25089 enum to hold the modes.
25091 2014-04-29 Richard Biener <rguenther@suse.de>
25093 * dominance.c (free_dominance_info): Add overload with
25094 function parameter.
25095 (dom_info_state): Likewise.
25096 (dom_info_available_p): Likewise.
25097 * basic-block.h (free_dominance_info, dom_info_state,
25098 dom_info_available_p): Declare overloads.
25099 * passes.c (execute_function_todo): Verify that verifiers
25100 don't change dominator info state. Drop dominator info
25101 for IPA pass invocations.
25102 * cgraph.c (release_function_body): Restore asserts that
25103 dominator information is released.
25105 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
25107 * doc/invoke.texi: Fix typo.
25108 * tree-vrp.c: Fix typos.
25109 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
25111 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25113 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
25115 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
25117 * config/aarch64/aarch64-builtins.c
25118 (aarch64_types_storestruct_lane_qualifiers): New.
25119 (TYPES_STORESTRUCT_LANE): Likewise.
25120 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
25121 (st3_lane): Likewise.
25122 (st4_lane): Likewise.
25123 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
25124 (vec_store_lanesci_lane<mode>): Likewise.
25125 (vec_store_lanesxi_lane<mode>): Likewise.
25126 (aarch64_st2_lane<VQ:mode>): Likewise.
25127 (aarch64_st3_lane<VQ:mode>): Likewise.
25128 (aarch64_st4_lane<VQ:mode>): Likewise.
25129 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
25130 * config/aarch64/arm_neon.h
25131 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
25132 use new macro arguments.
25133 (__ST3_LANE_FUNC): Likewise.
25134 (__ST4_LANE_FUNC): Likewise.
25135 * config/aarch64/iterators.md (V_TWO_ELEM): New.
25136 (V_THREE_ELEM): Likewise.
25137 (V_FOUR_ELEM): Likewise.
25139 2014-04-28 David Malcolm <dmalcolm@redhat.com>
25141 * doc/gimple.texi: Replace the description of the now-defunct
25142 union gimple_statement_d with a diagram showing the
25143 gimple_statement_base class hierarchy and its relationships to
25144 the GSS_ and GIMPLE_ enums.
25146 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
25148 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
25149 * config/aarch64/aarch64.c
25150 (aarch64_cannot_change_mode_class): Weaken conditions.
25151 (aarch64_modes_tieable_p): New.
25152 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
25154 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
25156 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25157 (loadsync_<mode>): Change mode.
25158 (load_quadpti, store_quadpti): New.
25159 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25160 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25162 2014-04-28 Martin Jambor <mjambor@suse.cz>
25164 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
25165 same alias type as the original statement.
25166 (subreplacement_assignment_data): New type.
25167 (handle_unscalarized_data_in_subtree): New type of parameter,
25168 generate new memory accesses with same alias type as the original
25170 (load_assign_lhs_subreplacements): Likewise.
25171 (sra_modify_constructor_assign): Generate new memory accesses with
25172 same alias type as the original statement.
25174 2014-04-28 Richard Biener <rguenther@suse.de>
25176 * tree-pass.h (TODO_verify_il): Define.
25177 (TODO_verify_all): Complete properly.
25178 * passes.c (execute_function_todo): Move existing loop-closed
25179 SSA verification under TODO_verify_il.
25180 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
25181 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
25182 Fix tree sharing issue.
25184 2014-04-28 Richard Biener <rguenther@suse.de>
25186 PR middle-end/60092
25187 * builtins.def (DEF_C11_BUILTIN): Add.
25188 (BUILT_IN_ALIGNED_ALLOC): Likewise.
25189 * coretypes.h (enum function_class): Add function_c11_misc.
25190 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
25191 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
25192 (call_may_clobber_ref_p_1): Likewise.
25193 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
25194 (mark_all_reaching_defs_necessary_1): Likewise.
25195 (propagate_necessity): Likewise.
25196 (eliminate_unnecessary_stmts): Likewise.
25197 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
25199 2014-04-28 Richard Biener <rguenther@suse.de>
25201 * tree-vrp.c (vrp_var_may_overflow): Remove.
25202 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
25203 with overflow immediately bump to one before that value and
25204 let iteration figure out overflow status.
25206 2014-04-28 Richard Biener <rguenther@suse.de>
25208 * configure.ac: Do valgrind header checks unconditionally.
25209 Add --enable-valgrind-annotations.
25210 * system.h: Guard valgrind header inclusion with
25211 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
25212 * alloc-pool.c (pool_alloc, pool_free): Use
25213 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
25214 to guard possibly dead code.
25215 * config.in: Regenerated.
25216 * configure: Likewise.
25218 2014-04-28 Jeff Law <law@redhat.com>
25220 PR tree-optimization/60902
25221 * tree-ssa-threadedge.c
25222 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
25223 over real defs when invalidating outputs from statements that do not
25224 produce useful outputs for threading.
25226 2014-04-28 Richard Biener <rguenther@suse.de>
25228 PR tree-optimization/60979
25229 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
25230 SCOPs that end in a block with a successor with abnormal
25233 2014-04-28 Richard Biener <rguenther@suse.de>
25235 * tree-pass.h (execute_pass_list): Adjust prototype.
25236 * passes.c (pass_manager::execute_early_local_passes): Adjust.
25237 (do_per_function): Change callback signature, push all actual
25238 work to the callbals.
25239 (do_per_function_toporder): Likewise.
25240 (execute_function_dump): Adjust.
25241 (execute_function_todo): Likewise.
25242 (clear_last_verified): Likewise.
25243 (verify_curr_properties): Likewise.
25244 (update_properties_after_pass): Likewise.
25245 (execute_pass_list_1): Split out from ...
25246 (execute_pass_list): ... here. Adjust.
25247 (execute_ipa_pass_list): Likewise.
25248 * cgraphunit.c (cgraph_add_new_function): Adjust.
25249 (analyze_function): Likewise.
25250 (expand_function): Likewise.
25251 * cgraph.c (release_function_body): Free dominance info
25252 here instead of asserting it was magically freed elsewhere.
25254 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
25256 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
25257 * configure: Regenerate.
25258 * config/sparc/sparc.opt (muser-mode): New option.
25259 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
25261 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
25262 * doc/invoke.texi (SPARC options): Document -muser-mode.
25264 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
25266 * cselib.c (find_slot_memmode): Delete.
25267 (cselib_hasher): Change compare_type to a struct.
25268 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
25270 (preserve_constants_and_equivs): Adjust for new compare_type.
25271 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
25272 (wrap_constant): Delete.
25273 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
25275 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
25277 * doc/install.texi (Building with profile feedback): Remove
25280 2014-04-26 Tom de Vries <tom@codesourcery.com>
25282 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
25285 2014-04-25 Cary Coutant <ccoutant@google.com>
25288 * dwarf2out.c (should_move_die_to_comdat): A type definition
25289 can contain a subprogram definition, but don't move it to a
25291 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
25292 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
25294 (clone_tree_hash): Rename to...
25295 (clone_tree_partial): ...this; change callers. Copy
25296 DW_TAG_subprogram DIEs as declarations.
25297 (copy_decls_walk): Don't copy children of a declaration into a
25300 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
25303 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
25306 2014-04-25 Jiong Wang <jiong.wang@arm.com>
25308 * config/arm/predicates.md (call_insn_operand): Add long_call check.
25309 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
25311 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
25314 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25316 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
25318 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25320 PR tree-optimization/60930
25321 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
25322 creating a multiply candidate by folding two constant
25323 multiplicands when the result overflows.
25325 2014-04-25 Jakub Jelinek <jakub@redhat.com>
25327 PR tree-optimization/60960
25328 * tree-vect-generic.c (expand_vector_operation): Only call
25329 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
25331 2014-04-25 Tom de Vries <tom@codesourcery.com>
25333 * expr.c (clobber_reg_mode): New function.
25334 * expr.h (clobber_reg): New function.
25336 2014-04-25 Tom de Vries <tom@codesourcery.com>
25338 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
25341 2014-04-25 Radovan Obradovic <robradovic@mips.com>
25342 Tom de Vries <tom@codesourcery.com>
25344 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
25346 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
25347 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
25348 new argument to find_all_hard_reg_sets call.
25350 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25352 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
25353 Use HOST_WIDE_INT_C for mask literal.
25354 (aarch_rev16_shleft_mask_imm_p): Likewise.
25356 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
25359 * config/sparc/sparc.md (ashlsi3_extend): Delete.
25361 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
25363 PR preprocessor/56540
25364 * config/i386/i386-c.c (ix86_target_macros): Define
25365 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
25367 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25369 * configure.ac (tga_func): Remove.
25370 (LIB_TLS_SPEC): Remove.
25371 * configure: Regenerate.
25372 * config.in: Regenerate.
25373 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
25375 2014-04-25 Richard Biener <rguenther@suse.de>
25378 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
25379 call stmt use/clobber sets during stmt walk instead of
25380 walking the possibly incomplete set of caller edges.
25382 2014-04-25 Richard Biener <rguenther@suse.de>
25385 * passes.c (apply_ipa_transforms): Inline into only caller ...
25386 (execute_one_pass): ... here. Properly bring in function
25387 bodies for nodes we want to apply IPA transforms to.
25389 2014-04-24 Cong Hou <congh@google.com>
25391 PR tree-optimization/60896
25392 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
25393 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
25394 (vect_mark_pattern_stmts): Set the def type of all statements in
25395 PATTERN_DEF_SEQ as vect_internal_def.
25397 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25399 * doc/extend.texi (PowerPC Built-in Functions): Document new
25400 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
25401 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
25403 * config/rs6000/predicates.md (const_0_to_3_operand): New
25404 predicate to match 0..3 integer constants.
25406 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
25407 to support adding miscellaneous builtin functions.
25408 (BU_DFP_MISC_2): Likewise.
25409 (BU_P7_MISC_1): Likewise.
25410 (BU_P7_MISC_2): Likewise.
25411 (BU_P8V_MISC_3): Likewise.
25412 (BU_MISC_1): Likewise.
25413 (BU_MISC_2): Likewise.
25414 (DIVWE): Add extended divide builtin functions.
25415 (DIVWEO): Likewise.
25416 (DIVWEU): Likewise.
25417 (DIVWEUO): Likewise.
25419 (DIVDEO): Likewise.
25420 (DIVDEU): Likewise.
25421 (DIVDEUO): Likewise.
25422 (DXEX): Add decimal floating-point builtin functions.
25424 (DDEDPD): Likewise.
25425 (DDEDPDQ): Likewise.
25426 (DENBCD): Likewise.
25427 (DENBCDQ): Likewise.
25431 (DSCLIQ): Likewise.
25433 (DSCRIQ): Likewise.
25434 (CDTBCD): Add new BCD builtin functions.
25435 (CBCDTD): Likewise.
25436 (ADDG6S): Likewise.
25437 (BCDADD): Likewise.
25438 (BCDADD_LT): Likewise.
25439 (BCDADD_EQ): Likewise.
25440 (BCDADD_GT): Likewise.
25441 (BCDADD_OV): Likewise.
25442 (BCDSUB): Likewise.
25443 (BCDSUB_LT): Likewise.
25444 (BCDSUB_EQ): Likewise.
25445 (BCDSUB_GT): Likewise.
25446 (BCDSUB_OV): Likewise.
25447 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
25448 (UNPACK_TD): Likewise.
25449 (PACK_TF): Likewise.
25450 (UNPACK_TF): Likewise.
25451 (UNPACK_TF_0): Likewise.
25452 (UNPACK_TF_1): Likewise.
25453 (PACK_V1TI): Likewise.
25454 (UNPACK_V1TI): Likewise.
25456 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25457 support for decimal floating point builtin functions.
25458 (rs6000_expand_ternop_builtin): Add checks for the new builtin
25459 functions that take constant arguments.
25460 (rs6000_invalid_builtin): Add decimal floating point builtin support.
25461 (rs6000_init_builtins): Setup long double, _Decimal64, and
25462 _Decimal128 types for new builtin functions.
25463 (builtin_function_type): Set the unsigned flags appropriately for
25464 the new builtin functions.
25465 (rs6000_opt_masks): Add support for decimal floating point builtin
25468 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
25469 floating point builtin functions.
25470 (RS6000_BTM_COMMON): Likewise.
25471 (RS6000_BTI_long_double): Likewise.
25472 (RS6000_BTI_dfloat64): Likewise.
25473 (RS6000_BTI_dfloat128): Likewise.
25474 (long_double_type_internal_node): Likewise.
25475 (dfloat64_type_internal_node): Likewise.
25476 (dfloat128_type_internal_node): Likewise.
25478 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
25479 2.07 bcd arithmetic instructions.
25480 (UNSPEC_BCDSUB): Likewise.
25481 (UNSPEC_BCD_OVERFLOW): Likewise.
25482 (UNSPEC_BCD_ADD_SUB): Likewise.
25483 (bcd_add_sub): Likewise.
25484 (BCD_TEST): Likewise.
25485 (bcd<bcd_add_sub>): Likewise.
25486 (bcd<bcd_add_sub>_test): Likewise.
25487 (bcd<bcd_add_sub>_test2): Likewise.
25488 (bcd<bcd_add_sub>_<code>): Likewise.
25489 (peephole2 for combined bcd ops): Likewise.
25491 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
25492 decimal floating point builtin functions.
25493 (UNSPEC_DENBCD): Likewise.
25494 (UNSPEC_DXEX): Likewise.
25495 (UNSPEC_DIEX): Likewise.
25496 (UNSPEC_DSCLI): Likewise.
25497 (UNSPEC_DSCRI): Likewise.
25498 (D64_D128): Likewise.
25499 (dfp_suffix): Likewise.
25500 (dfp_ddedpd_<mode>): Likewise.
25501 (dfp_denbcd_<mode>): Likewise.
25502 (dfp_dxex_<mode>): Likewise.
25503 (dfp_diex_<mode>): Likewise.
25504 (dfp_dscli_<mode>): Likewise.
25505 (dfp_dscri_<mode>): Likewise.
25507 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
25509 (UNSPEC_CDTBCD): Likewise.
25510 (UNSPEC_CBCDTD): Likewise.
25511 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
25512 (UNSPEC_DIVEO): Likewise.
25513 (UNSPEC_DIVEU): Likewise.
25514 (UNSPEC_DIVEUO): Likewise.
25515 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
25516 pack/unpack 128-bit types.
25517 (UNSPEC_PACK_128BIT): Likewise.
25518 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
25519 (udiv<mode>3): Use idiv_ldiv mode attribute.
25520 (div<mode>3): Likewise.
25521 (addg6s): Add new BCD builtin functions.
25522 (cdtbcd): Likewise.
25523 (cbcdtd): Likewise.
25524 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
25525 (div_extend): Likewise.
25526 (div<div_extend>_<mode>"): Likewise.
25527 (FP128_64): Add support for new builtin functions to pack/unpack
25529 (unpack<mode>): Likewise.
25530 (unpacktf_0): Likewise.
25531 (unpacktf_1): Likewise.
25532 (unpack<mode>_dm): Likewise.
25533 (unpack<mode>_nodm): Likewise.
25534 (pack<mode>): Likewise.
25535 (unpackv1ti): Likewise.
25536 (packv1ti): Likewise.
25538 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
25540 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
25543 2014-04-24 Jakub Jelinek <jakub@redhat.com>
25545 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
25546 * gimplify.c (omp_is_private): Change last argument's type to int.
25547 Only diagnose lastprivate if the simd argument is 1, only diagnose
25548 linear if the simd argument is 2.
25549 (gimplify_omp_for): Adjust omp_is_private callers. When adding
25550 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
25551 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
25552 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
25553 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
25554 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25555 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
25556 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25557 * tree-nested.c (convert_nonlocal_omp_clauses,
25558 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
25560 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
25563 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
25566 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
25568 * flag-types.h (enum ivar_visibility): Add.
25570 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
25572 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
25573 function * argument.
25575 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
25577 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
25579 2014-04-24 Radovan Obradovic <robradovic@mips.com>
25580 Tom de Vries <tom@codesourcery.com>
25582 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
25583 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
25585 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
25586 * emit-rtl.c (try_split): Same.
25588 2014-04-24 Radovan Obradovic <robradovic@mips.com>
25589 Tom de Vries <tom@codesourcery.com>
25591 * common.opt (fuse-caller-save): New option.
25593 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
25595 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
25596 elements for big-endian.
25598 2014-04-24 Richard Biener <rguenther@suse.de>
25600 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
25601 during TER and instead use the sepops interface for expanding
25602 non-GIMPLE_SINGLE_RHS.
25604 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25606 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
25607 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
25609 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25611 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
25612 assembler 64-bit option.
25613 * configure: Regenerate.
25615 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25617 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
25618 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
25619 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
25620 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
25621 (TARGET_CRYPTO): Take TARGET_SIMD into account.
25623 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25625 * config/aarch64/aarch64-builtins.c
25626 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
25627 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
25628 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
25629 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
25631 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
25632 (Vrevsuff): New mode attribute.
25634 2014-04-24 Terry Guo <terry.guo@arm.com>
25636 * config/arm/arm.h (machine_function): Define variable
25637 after_arm_reorg here.
25638 * config/arm/arm.c (after_arm_reorg): Remove the definition.
25639 (arm_split_constant): Update the way to access variable
25641 (arm_reorg): Ditto.
25642 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
25644 2014-04-23 Tom de Vries <tom@codesourcery.com>
25646 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
25648 2014-04-23 David Malcolm <dmalcolm@redhat.com>
25650 * is-a.h: Update comments to reflect the following changes to the
25651 "pointerness" of the API, making the template parameter match the
25652 return type, allowing use of is-a.h with typedefs of pointers.
25653 (is_a_helper::cast): Return a T rather then a pointer to a T, so
25654 that the return type matches the parameter to the is_a_helper.
25656 (dyn_cast): Likewise.
25658 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
25659 pointer from the is-a.h API.
25661 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
25662 (is_a_helper <cgraph_node *>::test): ...this, matching change to
25664 (is_a_helper <varpool_node>::test): Likewise, convert to...
25665 (is_a_helper <varpool_node *>::test): ...this.
25667 (varpool_first_variable): Update for removal of implicit pointer
25668 from the is-a.h API.
25669 (varpool_next_variable): Likewise.
25670 (varpool_first_static_initializer): Likewise.
25671 (varpool_next_static_initializer): Likewise.
25672 (varpool_first_defined_variable): Likewise.
25673 (varpool_next_defined_variable): Likewise.
25674 (cgraph_first_defined_function): Likewise.
25675 (cgraph_next_defined_function): Likewise.
25676 (cgraph_first_function): Likewise.
25677 (cgraph_next_function): Likewise.
25678 (cgraph_first_function_with_gimple_body): Likewise.
25679 (cgraph_next_function_with_gimple_body): Likewise.
25680 (cgraph_alias_target): Likewise.
25681 (varpool_alias_target): Likewise.
25682 (cgraph_function_or_thunk_node): Likewise.
25683 (varpool_variable_node): Likewise.
25684 (symtab_real_symbol_p): Likewise.
25685 * cgraphunit.c (referred_to_p): Likewise.
25686 (analyze_functions): Likewise.
25687 (handle_alias_pairs): Likewise.
25688 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
25689 * gimple-ssa.h (gimple_vuse_op): Likewise.
25690 (gimple_vdef_op): Likewise.
25691 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
25692 * gimple.c (gimple_build_asm_1): Likewise.
25693 (gimple_build_try): Likewise.
25694 (gimple_build_resx): Likewise.
25695 (gimple_build_eh_dispatch): Likewise.
25696 (gimple_build_omp_for): Likewise.
25697 (gimple_omp_for_set_clauses): Likewise.
25699 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
25700 (is_a_helper <gimple_statement_asm *>::test): ...this.
25701 (is_a_helper <gimple_statement_bind>::test): Convert to...
25702 (is_a_helper <gimple_statement_bind *>::test): ...this.
25703 (is_a_helper <gimple_statement_call>::test): Convert to...
25704 (is_a_helper <gimple_statement_call *>::test): ...this.
25705 (is_a_helper <gimple_statement_catch>::test): Convert to...
25706 (is_a_helper <gimple_statement_catch *>::test): ...this.
25707 (is_a_helper <gimple_statement_resx>::test): Convert to...
25708 (is_a_helper <gimple_statement_resx *>::test): ...this.
25709 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
25710 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
25711 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
25712 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
25713 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
25714 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
25715 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
25716 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
25717 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
25718 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
25719 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
25720 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
25721 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
25722 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
25723 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
25724 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
25725 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
25726 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
25727 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
25728 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
25729 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
25730 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
25731 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
25732 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
25733 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
25734 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
25735 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
25736 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
25737 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
25738 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
25739 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
25740 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
25741 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
25742 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
25743 (is_a_helper <gimple_statement_phi>::test): Convert to...
25744 (is_a_helper <gimple_statement_phi *>::test): ...this.
25745 (is_a_helper <gimple_statement_transaction>::test): Convert to...
25746 (is_a_helper <gimple_statement_transaction *>::test): ...this.
25747 (is_a_helper <gimple_statement_try>::test): Convert to...
25748 (is_a_helper <gimple_statement_try *>::test): ...this.
25749 (is_a_helper <gimple_statement_wce>::test): Convert to...
25750 (is_a_helper <gimple_statement_wce *>::test): ...this.
25751 (is_a_helper <const gimple_statement_asm>::test): Convert to...
25752 (is_a_helper <const gimple_statement_asm *>::test): ...this.
25753 (is_a_helper <const gimple_statement_bind>::test): Convert to...
25754 (is_a_helper <const gimple_statement_bind *>::test): ...this.
25755 (is_a_helper <const gimple_statement_call>::test): Convert to...
25756 (is_a_helper <const gimple_statement_call *>::test): ...this.
25757 (is_a_helper <const gimple_statement_catch>::test): Convert to...
25758 (is_a_helper <const gimple_statement_catch *>::test): ...this.
25759 (is_a_helper <const gimple_statement_resx>::test): Convert to...
25760 (is_a_helper <const gimple_statement_resx *>::test): ...this.
25761 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
25762 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
25763 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
25764 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
25765 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
25767 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
25769 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
25771 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
25773 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
25774 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
25775 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
25777 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
25778 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
25780 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
25781 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
25782 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
25783 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
25784 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
25785 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
25787 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
25788 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
25789 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
25790 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
25792 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
25793 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
25794 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
25795 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
25796 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
25797 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
25798 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
25799 (is_a_helper <const gimple_statement_phi>::test): Convert to...
25800 (is_a_helper <const gimple_statement_phi *>::test): ...this.
25801 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
25802 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
25803 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
25804 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
25805 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
25806 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
25807 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
25809 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
25811 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
25812 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
25814 (gimple_use_ops): Update for removal of implicit pointer from the
25816 (gimple_set_use_ops): Likewise.
25817 (gimple_vuse): Likewise.
25818 (gimple_vdef): Likewise.
25819 (gimple_vuse_ptr): Likewise.
25820 (gimple_vdef_ptr): Likewise.
25821 (gimple_set_vuse): Likewise.
25822 (gimple_set_vdef): Likewise.
25823 (gimple_omp_return_set_lhs): Likewise.
25824 (gimple_omp_return_lhs): Likewise.
25825 (gimple_omp_return_lhs_ptr): Likewise.
25826 (gimple_call_fntype): Likewise.
25827 (gimple_call_set_fntype): Likewise.
25828 (gimple_call_set_internal_fn): Likewise.
25829 (gimple_call_use_set): Likewise.
25830 (gimple_call_clobber_set): Likewise.
25831 (gimple_bind_vars): Likewise.
25832 (gimple_bind_set_vars): Likewise.
25833 (gimple_bind_body_ptr): Likewise.
25834 (gimple_bind_set_body): Likewise.
25835 (gimple_bind_add_stmt): Likewise.
25836 (gimple_bind_block): Likewise.
25837 (gimple_bind_set_block): Likewise.
25838 (gimple_asm_ninputs): Likewise.
25839 (gimple_asm_noutputs): Likewise.
25840 (gimple_asm_nclobbers): Likewise.
25841 (gimple_asm_nlabels): Likewise.
25842 (gimple_asm_input_op): Likewise.
25843 (gimple_asm_input_op_ptr): Likewise.
25844 (gimple_asm_output_op): Likewise.
25845 (gimple_asm_output_op_ptr): Likewise.
25846 (gimple_asm_set_output_op): Likewise.
25847 (gimple_asm_clobber_op): Likewise.
25848 (gimple_asm_set_clobber_op): Likewise.
25849 (gimple_asm_label_op): Likewise.
25850 (gimple_asm_set_label_op): Likewise.
25851 (gimple_asm_string): Likewise.
25852 (gimple_catch_types): Likewise.
25853 (gimple_catch_types_ptr): Likewise.
25854 (gimple_catch_handler_ptr): Likewise.
25855 (gimple_catch_set_types): Likewise.
25856 (gimple_catch_set_handler): Likewise.
25857 (gimple_eh_filter_types): Likewise.
25858 (gimple_eh_filter_types_ptr): Likewise.
25859 (gimple_eh_filter_failure_ptr): Likewise.
25860 (gimple_eh_filter_set_types): Likewise.
25861 (gimple_eh_filter_set_failure): Likewise.
25862 (gimple_eh_must_not_throw_fndecl): Likewise.
25863 (gimple_eh_must_not_throw_set_fndecl): Likewise.
25864 (gimple_eh_else_n_body_ptr): Likewise.
25865 (gimple_eh_else_e_body_ptr): Likewise.
25866 (gimple_eh_else_set_n_body): Likewise.
25867 (gimple_eh_else_set_e_body): Likewise.
25868 (gimple_try_eval_ptr): Likewise.
25869 (gimple_try_cleanup_ptr): Likewise.
25870 (gimple_try_set_eval): Likewise.
25871 (gimple_try_set_cleanup): Likewise.
25872 (gimple_wce_cleanup_ptr): Likewise.
25873 (gimple_wce_set_cleanup): Likewise.
25874 (gimple_phi_capacity): Likewise.
25875 (gimple_phi_num_args): Likewise.
25876 (gimple_phi_result): Likewise.
25877 (gimple_phi_result_ptr): Likewise.
25878 (gimple_phi_set_result): Likewise.
25879 (gimple_phi_arg): Likewise.
25880 (gimple_phi_set_arg): Likewise.
25881 (gimple_resx_region): Likewise.
25882 (gimple_resx_set_region): Likewise.
25883 (gimple_eh_dispatch_region): Likewise.
25884 (gimple_eh_dispatch_set_region): Likewise.
25885 (gimple_omp_critical_name): Likewise.
25886 (gimple_omp_critical_name_ptr): Likewise.
25887 (gimple_omp_critical_set_name): Likewise.
25888 (gimple_omp_for_clauses): Likewise.
25889 (gimple_omp_for_clauses_ptr): Likewise.
25890 (gimple_omp_for_set_clauses): Likewise.
25891 (gimple_omp_for_collapse): Likewise.
25892 (gimple_omp_for_index): Likewise.
25893 (gimple_omp_for_index_ptr): Likewise.
25894 (gimple_omp_for_set_index): Likewise.
25895 (gimple_omp_for_initial): Likewise.
25896 (gimple_omp_for_initial_ptr): Likewise.
25897 (gimple_omp_for_set_initial): Likewise.
25898 (gimple_omp_for_final): Likewise.
25899 (gimple_omp_for_final_ptr): Likewise.
25900 (gimple_omp_for_set_final): Likewise.
25901 (gimple_omp_for_incr): Likewise.
25902 (gimple_omp_for_incr_ptr): Likewise.
25903 (gimple_omp_for_set_incr): Likewise.
25904 (gimple_omp_for_pre_body_ptr): Likewise.
25905 (gimple_omp_for_set_pre_body): Likewise.
25906 (gimple_omp_parallel_clauses): Likewise.
25907 (gimple_omp_parallel_clauses_ptr): Likewise.
25908 (gimple_omp_parallel_set_clauses): Likewise.
25909 (gimple_omp_parallel_child_fn): Likewise.
25910 (gimple_omp_parallel_child_fn_ptr): Likewise.
25911 (gimple_omp_parallel_set_child_fn): Likewise.
25912 (gimple_omp_parallel_data_arg): Likewise.
25913 (gimple_omp_parallel_data_arg_ptr): Likewise.
25914 (gimple_omp_parallel_set_data_arg): Likewise.
25915 (gimple_omp_task_clauses): Likewise.
25916 (gimple_omp_task_clauses_ptr): Likewise.
25917 (gimple_omp_task_set_clauses): Likewise.
25918 (gimple_omp_task_child_fn): Likewise.
25919 (gimple_omp_task_child_fn_ptr): Likewise.
25920 (gimple_omp_task_set_child_fn): Likewise.
25921 (gimple_omp_task_data_arg): Likewise.
25922 (gimple_omp_task_data_arg_ptr): Likewise.
25923 (gimple_omp_task_set_data_arg): Likewise.
25924 (gimple_omp_taskreg_clauses): Likewise.
25925 (gimple_omp_taskreg_clauses_ptr): Likewise.
25926 (gimple_omp_taskreg_set_clauses): Likewise.
25927 (gimple_omp_taskreg_child_fn): Likewise.
25928 (gimple_omp_taskreg_child_fn_ptr): Likewise.
25929 (gimple_omp_taskreg_set_child_fn): Likewise.
25930 (gimple_omp_taskreg_data_arg): Likewise.
25931 (gimple_omp_taskreg_data_arg_ptr): Likewise.
25932 (gimple_omp_taskreg_set_data_arg): Likewise.
25933 (gimple_omp_task_copy_fn): Likewise.
25934 (gimple_omp_task_copy_fn_ptr): Likewise.
25935 (gimple_omp_task_set_copy_fn): Likewise.
25936 (gimple_omp_task_arg_size): Likewise.
25937 (gimple_omp_task_arg_size_ptr): Likewise.
25938 (gimple_omp_task_set_arg_size): Likewise.
25939 (gimple_omp_task_arg_align): Likewise.
25940 (gimple_omp_task_arg_align_ptr): Likewise.
25941 (gimple_omp_task_set_arg_align): Likewise.
25942 (gimple_omp_single_clauses): Likewise.
25943 (gimple_omp_single_clauses_ptr): Likewise.
25944 (gimple_omp_single_set_clauses): Likewise.
25945 (gimple_omp_target_clauses): Likewise.
25946 (gimple_omp_target_clauses_ptr): Likewise.
25947 (gimple_omp_target_set_clauses): Likewise.
25948 (gimple_omp_target_child_fn): Likewise.
25949 (gimple_omp_target_child_fn_ptr): Likewise.
25950 (gimple_omp_target_set_child_fn): Likewise.
25951 (gimple_omp_target_data_arg): Likewise.
25952 (gimple_omp_target_data_arg_ptr): Likewise.
25953 (gimple_omp_target_set_data_arg): Likewise.
25954 (gimple_omp_teams_clauses): Likewise.
25955 (gimple_omp_teams_clauses_ptr): Likewise.
25956 (gimple_omp_teams_set_clauses): Likewise.
25957 (gimple_omp_sections_clauses): Likewise.
25958 (gimple_omp_sections_clauses_ptr): Likewise.
25959 (gimple_omp_sections_set_clauses): Likewise.
25960 (gimple_omp_sections_control): Likewise.
25961 (gimple_omp_sections_control_ptr): Likewise.
25962 (gimple_omp_sections_set_control): Likewise.
25963 (gimple_omp_for_set_cond): Likewise.
25964 (gimple_omp_for_cond): Likewise.
25965 (gimple_omp_atomic_store_set_val): Likewise.
25966 (gimple_omp_atomic_store_val): Likewise.
25967 (gimple_omp_atomic_store_val_ptr): Likewise.
25968 (gimple_omp_atomic_load_set_lhs): Likewise.
25969 (gimple_omp_atomic_load_lhs): Likewise.
25970 (gimple_omp_atomic_load_lhs_ptr): Likewise.
25971 (gimple_omp_atomic_load_set_rhs): Likewise.
25972 (gimple_omp_atomic_load_rhs): Likewise.
25973 (gimple_omp_atomic_load_rhs_ptr): Likewise.
25974 (gimple_omp_continue_control_def): Likewise.
25975 (gimple_omp_continue_control_def_ptr): Likewise.
25976 (gimple_omp_continue_set_control_def): Likewise.
25977 (gimple_omp_continue_control_use): Likewise.
25978 (gimple_omp_continue_control_use_ptr): Likewise.
25979 (gimple_omp_continue_set_control_use): Likewise.
25980 (gimple_transaction_body_ptr): Likewise.
25981 (gimple_transaction_label): Likewise.
25982 (gimple_transaction_label_ptr): Likewise.
25983 (gimple_transaction_set_body): Likewise.
25984 (gimple_transaction_set_label): Likewise.
25986 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25987 * ipa-inline-analysis.c (inline_write_summary): Likewise.
25988 * ipa-ref.c (ipa_record_reference): Likewise.
25989 * ipa-reference.c (analyze_function): Likewise.
25990 (ipa_reference_write_optimization_summary): Likewise.
25991 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25992 (address_taken_from_non_vtable_p): Likewise.
25993 (comdat_can_be_unshared_p_1): Likewise.
25994 * lto-cgraph.c (lto_output_ref): Likewise.
25995 (add_references): Likewise.
25996 (compute_ltrans_boundary): Likewise.
25997 (output_symtab): Likewise.
25998 (input_ref): Likewise.
25999 (input_cgraph_1): Likewise.
26000 (output_cgraph_opt_summary): Likewise.
26001 * lto-streamer-out.c (lto_output): Likewise.
26002 (output_symbol_p): Likewise.
26003 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
26004 (lsei_start_function_in_partition): Likewise.
26005 (lsei_next_variable_in_partition): Likewise.
26006 (lsei_start_variable_in_partition): Likewise.
26007 * symtab.c (insert_to_assembler_name_hash): Likewise.
26008 (unlink_from_assembler_name_hash): Likewise.
26009 (symtab_unregister_node): Likewise.
26010 (symtab_remove_node): Likewise.
26011 (dump_symtab_node): Likewise.
26012 (verify_symtab_base): Likewise.
26013 (verify_symtab_node): Likewise.
26014 (symtab_make_decl_local): Likewise.
26015 (symtab_alias_ultimate_target): Likewise.
26016 (symtab_resolve_alias): Likewise.
26017 (symtab_get_symbol_partitioning_class): Likewise.
26018 * tree-phinodes.c (allocate_phi_node): Likewise.
26019 (reserve_phi_args_for_new_edge): Likewise.
26020 (remove_phi_args): Likewise.
26021 * varpool.c (varpool_node_for_asm): Likewise.
26022 (varpool_remove_unreferenced_decls): Likewise.
26024 2014-04-23 Jeff Law <law@redhat.com>
26026 PR tree-optimization/60902
26027 * tree-ssa-threadedge.c
26028 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
26029 invalidate outputs from statements that do not produce useful
26030 outputs for threading.
26032 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
26034 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
26035 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
26036 machine descriptions for Stack Smashing Protector.
26038 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
26040 * aarch64.md (<optab>_rol<mode>3): New pattern.
26041 (<optab>_rolsi3_uxtw): Likewise.
26042 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
26044 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
26046 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
26047 (arm_cortex_a12_tune): Likewise.
26049 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26051 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
26053 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26055 * config/arm/arm.md (arm_rev16si2): New pattern.
26056 (arm_rev16si2_alt): Likewise.
26057 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
26059 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26061 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
26062 (rev16<mode>2_alt): Likewise.
26063 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
26064 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
26065 (aarch_rev16_shleft_mask_imm_p): Likewise.
26066 (aarch_rev16_p_1): Likewise.
26067 (aarch_rev16_p): Likewise.
26068 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
26069 (aarch_rev16_shright_mask_imm_p): Likewise.
26070 (aarch_rev16_shleft_mask_imm_p): Likewise.
26072 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26074 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
26075 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
26077 (cortex_a53_extra_costs): Likewise.
26078 (cortex_a57_extra_costs): Likewise.
26079 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
26080 (cortexa7_extra_costs): Likewise.
26081 (cortexa8_extra_costs): Likewise.
26082 (cortexa12_extra_costs): Likewise.
26083 (cortexa15_extra_costs): Likewise.
26084 (v7m_extra_costs): Likewise.
26085 (arm_new_rtx_costs): Handle BSWAP.
26087 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26089 * config/arm/arm.c (cortexa8_extra_costs): New table.
26090 (arm_cortex_a8_tune): New tuning struct.
26091 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
26093 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26095 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
26097 2014-04-23 Richard Biener <rguenther@suse.de>
26099 * Makefile.in (OBJS): Remove loop-unswitch.o.
26100 * tree-pass.h (make_pass_rtl_unswitch): Remove.
26101 * passes.def (pass_rtl_unswitch): Likewise.
26102 * loop-init.c (gate_rtl_unswitch): Likewise.
26103 (rtl_unswitch): Likewise.
26104 (pass_data_rtl_unswitch): Likewise.
26105 (pass_rtl_unswitch): Likewise.
26106 (make_pass_rtl_unswitch): Likewise.
26107 * rtl.h (reversed_condition): Likewise.
26108 (compare_and_jump_seq): Likewise.
26109 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
26111 * loop-unroll.c (compare_and_jump_seq): Likewise.
26113 2014-04-23 Richard Biener <rguenther@suse.de>
26115 PR tree-optimization/60903
26116 * tree-ssa-loop-im.c (analyze_memory_references): Remove
26117 commented code block.
26118 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
26119 loop flags to newly created BBs and edges.
26121 2014-04-23 Nick Clifton <nickc@redhat.com>
26123 * config/msp430/msp430.c (msp430_handle_option): Move function
26125 (msp430_option_override): Simplify mcu and mcpu option handling.
26126 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
26127 support for -mhwmult command line option.
26128 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
26129 -mhwmult command line option.
26130 (msp430_hwmult_enabled): Delete.
26131 (msp43o_output_labelref): Add support for -mhwmult command line option.
26132 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
26133 (umulsidi3): Likewise.
26134 * config/msp430/msp430.opt (mmcu): Add Report attribute.
26135 (mcpu, mlarge, msmall): Likewise.
26136 (mhwmult): New option.
26137 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
26139 (msp430_is_f5_mcu): Remove prototype.
26140 (msp430_use_f5_series_hwmult): Add prototype.
26141 * config/msp430/msp430-opts.h: New file.
26142 * common/config/msp430: New directory.
26143 * common/config/msp430/msp430-common.c: New file.
26144 * config.gcc (msp430): Remove target_has_targetm_common.
26145 * doc/invoke.texi: Document -mhwmult command line option.
26147 2014-04-23 Nick Clifton <nickc@redhat.com>
26149 * config/i386/cygwin.h (ENDFILE_SPEC): Include
26150 default-manifest.o if it can be found in the search path.
26151 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26153 2014-04-23 Terry Guo <terry.guo@arm.com>
26155 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
26157 2014-04-23 Richard Biener <rguenther@suse.de>
26159 PR middle-end/60895
26160 * tree-inline.c (declare_return_variable): Use mark_addressable.
26162 2014-04-23 Richard Biener <rguenther@suse.de>
26164 PR middle-end/60891
26165 * loop-init.c (loop_optimizer_init): Make sure to apply
26166 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
26168 2014-04-22 Jakub Jelinek <jakub@redhat.com>
26171 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
26173 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
26174 if flag_sanitize_undefined_trap_on_error.
26175 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
26176 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
26177 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
26178 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
26179 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
26180 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
26181 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
26182 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
26183 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
26184 * ubsan.c (ubsan_instrument_unreachable): Return
26185 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
26186 (ubsan_expand_null_ifn): Emit __builtin_trap ()
26187 if flag_sanitize_undefined_trap_on_error and
26188 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
26189 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
26190 instrument_bool_enum_load): Emit __builtin_trap () if
26191 flag_sanitize_undefined_trap_on_error and
26192 __builtin_handle_*_abort () if !flag_sanitize_recover.
26193 * doc/invoke.texi (-fsanitize-recover,
26194 -fsanitize-undefined-trap-on-error): Document.
26196 2014-04-22 Christian Bruel <christian.bruel@st.com>
26198 * config/sh/sh.md (mov<mode>): Replace movQIHI.
26199 Force immediates to SImode.
26201 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
26203 * config/nios2/nios2.md (UNSPEC_ROUND): New.
26204 (lroundsfsi2): New.
26205 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
26206 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
26207 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
26208 (nios2_fpu_insn): Add entry for round.
26209 (N2FPU_NO_ERRNO_P): Define.
26210 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
26212 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
26214 2014-04-22 Richard Henderson <rth@redhat.com>
26216 * config/aarch64/aarch64 (addti3, subti3): New expanders.
26217 (add<GPI>3_compare0): Remove leading * from name.
26218 (add<GPI>3_carryin): Likewise.
26219 (sub<GPI>3_compare0): Likewise.
26220 (sub<GPI>3_carryin): Likewise.
26221 (<su_optab>mulditi3): New expander.
26222 (multi3): New expander.
26223 (madd<GPI>): Remove leading * from name.
26225 2014-04-22 Martin Jambor <mjambor@suse.cz>
26227 * cgraphclones.c (cgraph_function_versioning): Copy
26228 ipa_transforms_to_apply instead of asserting it is empty.
26230 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
26233 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
26234 on count_exp to get mode.
26236 2014-04-22 Andrew Pinski <apinski@cavium.com>
26238 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
26239 Handle TLS for ILP32.
26240 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
26241 (tlsie_small_<mode>): this and handle PTR.
26242 (tlsie_small_sidi): New pattern.
26243 (tlsle_small): Change to an expand to handle ILP32.
26244 (tlsle_small_<mode>): New pattern.
26245 (tlsdesc_small): Rename to ...
26246 (tlsdesc_small_<mode>): this and handle PTR.
26248 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26250 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
26252 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
26254 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26255 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
26256 (aarch64_types_signed_poly_qualifiers): Likewise.
26257 (aarch64_types_unsigned_signed_qualifiers): Likewise.
26258 (aarch64_types_poly_signed_qualifiers): Likewise.
26259 (TYPES_REINTERP_SS): Type macro added.
26260 (TYPES_REINTERP_SU): Likewise.
26261 (TYPES_REINTERP_SP): Likewise.
26262 (TYPES_REINTERP_US): Likewise.
26263 (TYPES_REINTERP_PS): Likewise.
26264 (aarch64_fold_builtin): New expression folding added.
26265 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
26266 Declarations removed.
26267 (REINTERP_SS): Declarations added.
26268 (REINTERP_US): Likewise.
26269 (REINTERP_PS): Likewise.
26270 (REINTERP_SU): Likewise.
26271 (REINTERP_SP): Likewise.
26272 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
26273 (vreinterpretq_p8_f64): Likewise.
26274 (vreinterpret_p16_f64): Likewise.
26275 (vreinterpretq_p16_f64): Likewise.
26276 (vreinterpret_f32_f64): Likewise.
26277 (vreinterpretq_f32_f64): Likewise.
26278 (vreinterpret_f64_f32): Likewise.
26279 (vreinterpret_f64_p8): Likewise.
26280 (vreinterpret_f64_p16): Likewise.
26281 (vreinterpret_f64_s8): Likewise.
26282 (vreinterpret_f64_s16): Likewise.
26283 (vreinterpret_f64_s32): Likewise.
26284 (vreinterpret_f64_s64): Likewise.
26285 (vreinterpret_f64_u8): Likewise.
26286 (vreinterpret_f64_u16): Likewise.
26287 (vreinterpret_f64_u32): Likewise.
26288 (vreinterpret_f64_u64): Likewise.
26289 (vreinterpretq_f64_f32): Likewise.
26290 (vreinterpretq_f64_p8): Likewise.
26291 (vreinterpretq_f64_p16): Likewise.
26292 (vreinterpretq_f64_s8): Likewise.
26293 (vreinterpretq_f64_s16): Likewise.
26294 (vreinterpretq_f64_s32): Likewise.
26295 (vreinterpretq_f64_s64): Likewise.
26296 (vreinterpretq_f64_u8): Likewise.
26297 (vreinterpretq_f64_u16): Likewise.
26298 (vreinterpretq_f64_u32): Likewise.
26299 (vreinterpretq_f64_u64): Likewise.
26300 (vreinterpret_s64_f64): Likewise.
26301 (vreinterpretq_s64_f64): Likewise.
26302 (vreinterpret_u64_f64): Likewise.
26303 (vreinterpretq_u64_f64): Likewise.
26304 (vreinterpret_s8_f64): Likewise.
26305 (vreinterpretq_s8_f64): Likewise.
26306 (vreinterpret_s16_f64): Likewise.
26307 (vreinterpretq_s16_f64): Likewise.
26308 (vreinterpret_s32_f64): Likewise.
26309 (vreinterpretq_s32_f64): Likewise.
26310 (vreinterpret_u8_f64): Likewise.
26311 (vreinterpretq_u8_f64): Likewise.
26312 (vreinterpret_u16_f64): Likewise.
26313 (vreinterpretq_u16_f64): Likewise.
26314 (vreinterpret_u32_f64): Likewise.
26315 (vreinterpretq_u32_f64): Likewise.
26317 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
26319 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26320 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
26321 (vreinterpret_p8_s8): Likewise.
26322 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
26323 (vreinterpret_p8_s16): Likewise.
26324 (vreinterpret_p8_s32): Likewise.
26325 (vreinterpret_p8_s64): Likewise.
26326 (vreinterpret_p8_f32): Likewise.
26327 (vreinterpret_p8_u8): Likewise.
26328 (vreinterpret_p8_u16): Likewise.
26329 (vreinterpret_p8_u32): Likewise.
26330 (vreinterpret_p8_u64): Likewise.
26331 (vreinterpret_p8_p16): Likewise.
26332 (vreinterpretq_p8_s8): Likewise.
26333 (vreinterpretq_p8_s16): Likewise.
26334 (vreinterpretq_p8_s32): Likewise.
26335 (vreinterpretq_p8_s64): Likewise.
26336 (vreinterpretq_p8_f32): Likewise.
26337 (vreinterpretq_p8_u8): Likewise.
26338 (vreinterpretq_p8_u16): Likewise.
26339 (vreinterpretq_p8_u32): Likewise.
26340 (vreinterpretq_p8_u64): Likewise.
26341 (vreinterpretq_p8_p16): Likewise.
26342 (vreinterpret_p16_s8): Likewise.
26343 (vreinterpret_p16_s16): Likewise.
26344 (vreinterpret_p16_s32): Likewise.
26345 (vreinterpret_p16_s64): Likewise.
26346 (vreinterpret_p16_f32): Likewise.
26347 (vreinterpret_p16_u8): Likewise.
26348 (vreinterpret_p16_u16): Likewise.
26349 (vreinterpret_p16_u32): Likewise.
26350 (vreinterpret_p16_u64): Likewise.
26351 (vreinterpret_p16_p8): Likewise.
26352 (vreinterpretq_p16_s8): Likewise.
26353 (vreinterpretq_p16_s16): Likewise.
26354 (vreinterpretq_p16_s32): Likewise.
26355 (vreinterpretq_p16_s64): Likewise.
26356 (vreinterpretq_p16_f32): Likewise.
26357 (vreinterpretq_p16_u8): Likewise.
26358 (vreinterpretq_p16_u16): Likewise.
26359 (vreinterpretq_p16_u32): Likewise.
26360 (vreinterpretq_p16_u64): Likewise.
26361 (vreinterpretq_p16_p8): Likewise.
26362 (vreinterpret_f32_s8): Likewise.
26363 (vreinterpret_f32_s16): Likewise.
26364 (vreinterpret_f32_s32): Likewise.
26365 (vreinterpret_f32_s64): Likewise.
26366 (vreinterpret_f32_u8): Likewise.
26367 (vreinterpret_f32_u16): Likewise.
26368 (vreinterpret_f32_u32): Likewise.
26369 (vreinterpret_f32_u64): Likewise.
26370 (vreinterpret_f32_p8): Likewise.
26371 (vreinterpret_f32_p16): Likewise.
26372 (vreinterpretq_f32_s8): Likewise.
26373 (vreinterpretq_f32_s16): Likewise.
26374 (vreinterpretq_f32_s32): Likewise.
26375 (vreinterpretq_f32_s64): Likewise.
26376 (vreinterpretq_f32_u8): Likewise.
26377 (vreinterpretq_f32_u16): Likewise.
26378 (vreinterpretq_f32_u32): Likewise.
26379 (vreinterpretq_f32_u64): Likewise.
26380 (vreinterpretq_f32_p8): Likewise.
26381 (vreinterpretq_f32_p16): Likewise.
26382 (vreinterpret_s64_s8): Likewise.
26383 (vreinterpret_s64_s16): Likewise.
26384 (vreinterpret_s64_s32): Likewise.
26385 (vreinterpret_s64_f32): Likewise.
26386 (vreinterpret_s64_u8): Likewise.
26387 (vreinterpret_s64_u16): Likewise.
26388 (vreinterpret_s64_u32): Likewise.
26389 (vreinterpret_s64_u64): Likewise.
26390 (vreinterpret_s64_p8): Likewise.
26391 (vreinterpret_s64_p16): Likewise.
26392 (vreinterpretq_s64_s8): Likewise.
26393 (vreinterpretq_s64_s16): Likewise.
26394 (vreinterpretq_s64_s32): Likewise.
26395 (vreinterpretq_s64_f32): Likewise.
26396 (vreinterpretq_s64_u8): Likewise.
26397 (vreinterpretq_s64_u16): Likewise.
26398 (vreinterpretq_s64_u32): Likewise.
26399 (vreinterpretq_s64_u64): Likewise.
26400 (vreinterpretq_s64_p8): Likewise.
26401 (vreinterpretq_s64_p16): Likewise.
26402 (vreinterpret_u64_s8): Likewise.
26403 (vreinterpret_u64_s16): Likewise.
26404 (vreinterpret_u64_s32): Likewise.
26405 (vreinterpret_u64_s64): Likewise.
26406 (vreinterpret_u64_f32): Likewise.
26407 (vreinterpret_u64_u8): Likewise.
26408 (vreinterpret_u64_u16): Likewise.
26409 (vreinterpret_u64_u32): Likewise.
26410 (vreinterpret_u64_p8): Likewise.
26411 (vreinterpret_u64_p16): Likewise.
26412 (vreinterpretq_u64_s8): Likewise.
26413 (vreinterpretq_u64_s16): Likewise.
26414 (vreinterpretq_u64_s32): Likewise.
26415 (vreinterpretq_u64_s64): Likewise.
26416 (vreinterpretq_u64_f32): Likewise.
26417 (vreinterpretq_u64_u8): Likewise.
26418 (vreinterpretq_u64_u16): Likewise.
26419 (vreinterpretq_u64_u32): Likewise.
26420 (vreinterpretq_u64_p8): Likewise.
26421 (vreinterpretq_u64_p16): Likewise.
26422 (vreinterpret_s8_s16): Likewise.
26423 (vreinterpret_s8_s32): Likewise.
26424 (vreinterpret_s8_s64): Likewise.
26425 (vreinterpret_s8_f32): Likewise.
26426 (vreinterpret_s8_u8): Likewise.
26427 (vreinterpret_s8_u16): Likewise.
26428 (vreinterpret_s8_u32): Likewise.
26429 (vreinterpret_s8_u64): Likewise.
26430 (vreinterpret_s8_p8): Likewise.
26431 (vreinterpret_s8_p16): Likewise.
26432 (vreinterpretq_s8_s16): Likewise.
26433 (vreinterpretq_s8_s32): Likewise.
26434 (vreinterpretq_s8_s64): Likewise.
26435 (vreinterpretq_s8_f32): Likewise.
26436 (vreinterpretq_s8_u8): Likewise.
26437 (vreinterpretq_s8_u16): Likewise.
26438 (vreinterpretq_s8_u32): Likewise.
26439 (vreinterpretq_s8_u64): Likewise.
26440 (vreinterpretq_s8_p8): Likewise.
26441 (vreinterpretq_s8_p16): Likewise.
26442 (vreinterpret_s16_s8): Likewise.
26443 (vreinterpret_s16_s32): Likewise.
26444 (vreinterpret_s16_s64): Likewise.
26445 (vreinterpret_s16_f32): Likewise.
26446 (vreinterpret_s16_u8): Likewise.
26447 (vreinterpret_s16_u16): Likewise.
26448 (vreinterpret_s16_u32): Likewise.
26449 (vreinterpret_s16_u64): Likewise.
26450 (vreinterpret_s16_p8): Likewise.
26451 (vreinterpret_s16_p16): Likewise.
26452 (vreinterpretq_s16_s8): Likewise.
26453 (vreinterpretq_s16_s32): Likewise.
26454 (vreinterpretq_s16_s64): Likewise.
26455 (vreinterpretq_s16_f32): Likewise.
26456 (vreinterpretq_s16_u8): Likewise.
26457 (vreinterpretq_s16_u16): Likewise.
26458 (vreinterpretq_s16_u32): Likewise.
26459 (vreinterpretq_s16_u64): Likewise.
26460 (vreinterpretq_s16_p8): Likewise.
26461 (vreinterpretq_s16_p16): Likewise.
26462 (vreinterpret_s32_s8): Likewise.
26463 (vreinterpret_s32_s16): Likewise.
26464 (vreinterpret_s32_s64): Likewise.
26465 (vreinterpret_s32_f32): Likewise.
26466 (vreinterpret_s32_u8): Likewise.
26467 (vreinterpret_s32_u16): Likewise.
26468 (vreinterpret_s32_u32): Likewise.
26469 (vreinterpret_s32_u64): Likewise.
26470 (vreinterpret_s32_p8): Likewise.
26471 (vreinterpret_s32_p16): Likewise.
26472 (vreinterpretq_s32_s8): Likewise.
26473 (vreinterpretq_s32_s16): Likewise.
26474 (vreinterpretq_s32_s64): Likewise.
26475 (vreinterpretq_s32_f32): Likewise.
26476 (vreinterpretq_s32_u8): Likewise.
26477 (vreinterpretq_s32_u16): Likewise.
26478 (vreinterpretq_s32_u32): Likewise.
26479 (vreinterpretq_s32_u64): Likewise.
26480 (vreinterpretq_s32_p8): Likewise.
26481 (vreinterpretq_s32_p16): Likewise.
26482 (vreinterpret_u8_s8): Likewise.
26483 (vreinterpret_u8_s16): Likewise.
26484 (vreinterpret_u8_s32): Likewise.
26485 (vreinterpret_u8_s64): Likewise.
26486 (vreinterpret_u8_f32): Likewise.
26487 (vreinterpret_u8_u16): Likewise.
26488 (vreinterpret_u8_u32): Likewise.
26489 (vreinterpret_u8_u64): Likewise.
26490 (vreinterpret_u8_p8): Likewise.
26491 (vreinterpret_u8_p16): Likewise.
26492 (vreinterpretq_u8_s8): Likewise.
26493 (vreinterpretq_u8_s16): Likewise.
26494 (vreinterpretq_u8_s32): Likewise.
26495 (vreinterpretq_u8_s64): Likewise.
26496 (vreinterpretq_u8_f32): Likewise.
26497 (vreinterpretq_u8_u16): Likewise.
26498 (vreinterpretq_u8_u32): Likewise.
26499 (vreinterpretq_u8_u64): Likewise.
26500 (vreinterpretq_u8_p8): Likewise.
26501 (vreinterpretq_u8_p16): Likewise.
26502 (vreinterpret_u16_s8): Likewise.
26503 (vreinterpret_u16_s16): Likewise.
26504 (vreinterpret_u16_s32): Likewise.
26505 (vreinterpret_u16_s64): Likewise.
26506 (vreinterpret_u16_f32): Likewise.
26507 (vreinterpret_u16_u8): Likewise.
26508 (vreinterpret_u16_u32): Likewise.
26509 (vreinterpret_u16_u64): Likewise.
26510 (vreinterpret_u16_p8): Likewise.
26511 (vreinterpret_u16_p16): Likewise.
26512 (vreinterpretq_u16_s8): Likewise.
26513 (vreinterpretq_u16_s16): Likewise.
26514 (vreinterpretq_u16_s32): Likewise.
26515 (vreinterpretq_u16_s64): Likewise.
26516 (vreinterpretq_u16_f32): Likewise.
26517 (vreinterpretq_u16_u8): Likewise.
26518 (vreinterpretq_u16_u32): Likewise.
26519 (vreinterpretq_u16_u64): Likewise.
26520 (vreinterpretq_u16_p8): Likewise.
26521 (vreinterpretq_u16_p16): Likewise.
26522 (vreinterpret_u32_s8): Likewise.
26523 (vreinterpret_u32_s16): Likewise.
26524 (vreinterpret_u32_s32): Likewise.
26525 (vreinterpret_u32_s64): Likewise.
26526 (vreinterpret_u32_f32): Likewise.
26527 (vreinterpret_u32_u8): Likewise.
26528 (vreinterpret_u32_u16): Likewise.
26529 (vreinterpret_u32_u64): Likewise.
26530 (vreinterpret_u32_p8): Likewise.
26531 (vreinterpret_u32_p16): Likewise.
26532 (vreinterpretq_u32_s8): Likewise.
26533 (vreinterpretq_u32_s16): Likewise.
26534 (vreinterpretq_u32_s32): Likewise.
26535 (vreinterpretq_u32_s64): Likewise.
26536 (vreinterpretq_u32_f32): Likewise.
26537 (vreinterpretq_u32_u8): Likewise.
26538 (vreinterpretq_u32_u16): Likewise.
26539 (vreinterpretq_u32_u64): Likewise.
26540 (vreinterpretq_u32_p8): Likewise.
26541 (vreinterpretq_u32_p16): Likewise.
26543 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
26545 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
26547 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
26549 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
26550 (vqnegd_s64): Likewise.
26551 (vqabs_s64): Likewise.
26552 (vqabsd_s64): Likewise.
26554 2014-04-22 Richard Henderson <rth@redhat.com>
26556 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
26557 computation to the top of the loop.
26559 2014-04-22 Renlin <renlin.li@arm.com>
26560 Jiong Wang <jiong.wang@arm.com>
26562 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
26563 * config/aarch64/aarch64.c (aarch64_layout_frame)
26564 (aarch64_initial_elimination_offset): Likewise.
26566 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
26568 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
26571 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
26573 * machmode.h (bitwise_mode_for_mode): Declare.
26574 * stor-layout.h (bitwise_type_for_mode): Likewise.
26575 * stor-layout.c (bitwise_mode_for_mode): New function.
26576 (bitwise_type_for_mode): Likewise.
26577 * builtins.c (fold_builtin_memory_op): Use it instead of
26578 int_mode_for_mode and build_nonstandard_integer_type.
26580 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26582 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
26583 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
26584 (*-*-solaris2*): Simplify.
26585 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
26586 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
26587 *-*-solaris2.9* handling.
26589 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
26591 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
26592 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
26593 handling, simplify.
26594 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
26595 * configure: Regenerate.
26597 * config/i386/sol2-9.h: Remove.
26599 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
26600 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
26601 Remove Solaris 9 references.
26603 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
26605 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
26606 (floatuns<GPI:mode><GPF:mode>2): Remove.
26607 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
26608 and floatuns conversions.
26609 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
26610 and floatuns conversions.
26611 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
26612 (w1,w2): New mode attributes for inequal width conversions.
26614 2014-04-22 Renlin Li <Renlin.Li@arm.com>
26616 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
26617 the output asm format.
26619 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26621 * config/aarch64/aarch64-simd.md
26622 (aarch64_cm<optab>di): Always split.
26623 (*aarch64_cm<optab>di): New.
26624 (aarch64_cmtstdi): Always split.
26625 (*aarch64_cmtstdi): New.
26627 2014-04-22 Jakub Jelinek <jakub@redhat.com>
26629 PR tree-optimization/60823
26630 * omp-low.c (ipa_simd_modify_function_body): Go through
26631 all SSA_NAMEs and for those refering to vector arguments
26632 which are going to be replaced adjust SSA_NAME_VAR and,
26633 if it is a default definition, change it into a non-default
26634 definition assigned at the beginning of function from new_decl.
26635 (ipa_simd_modify_stmt_ops): Rewritten.
26636 * tree-dfa.c (set_ssa_default_def): When removing default def,
26637 check for NULL loc instead of NULL *loc.
26639 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26641 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
26642 restrictions on core registers for DImode values in Thumb2.
26644 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26646 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
26647 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
26649 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26651 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
26652 (*iordi_notzesidi_di): Likewise.
26653 (*iordi_notsesidi_di): Likewise.
26655 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26657 * config/arm/arm-protos.h (tune_params): New struct members.
26658 * config/arm/arm.c: Initialise tune_params per processor.
26659 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
26660 for speed, based on new tune_params.
26662 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
26664 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
26665 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
26666 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
26667 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
26668 * config/aarch64/arm_neon.h (vrnd_f64): Added.
26669 (vrnda_f64): Likewise.
26670 (vrndi_f64): Likewise.
26671 (vrndm_f64): Likewise.
26672 (vrndn_f64): Likewise.
26673 (vrndp_f64): Likewise.
26674 (vrndx_f64): Likewise.
26676 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26678 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
26679 GET_MODE_SIZE argument is enum machine_mode.
26681 2014-04-22 Jakub Jelinek <jakub@redhat.com>
26684 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
26685 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
26687 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
26689 PR middle-end/60281
26690 * asan.c (asan_emit_stack_protection): Force the base to align to
26691 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
26692 appropriate bits if STRICT_ALIGNMENT.
26693 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
26695 (expand_used_vars): Leave a space in the stack frame for alignment
26696 if STRICT_ALIGNMENT.
26698 2014-04-21 David Malcolm <dmalcolm@redhat.com>
26700 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
26702 (gimple_store_p): Likewise.
26703 (gimple_assign_load_p): Likewise.
26704 (gimple_assign_cast_p): Likewise.
26705 (gimple_clobber_p): Likewise.
26707 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
26708 rather than a gimple.
26709 (gimple_assign_cast_p): Likewise.
26711 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26714 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
26715 If mode is DDmode and TARGET_E500_DOUBLE allow move.
26717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
26718 more debug information for E500 if -mdebug=reg.
26720 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
26723 * config/i386/i386.c (ix86_expand_builtin)
26724 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
26725 register for target RTX.
26726 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
26728 2014-04-18 Cong Hou <congh@google.com>
26730 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
26731 the widen-mult pattern by handling two operands with different sizes,
26732 and operands whose size is smaller than half of the result type.
26734 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
26736 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
26737 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
26738 (do_estimate_edge_time): Compute it.
26739 * ipa-inline.c (want_inline_small_function_p): Bypass
26740 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
26742 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
26744 * ipa-inline.c (spec_rem): New static variable.
26745 (dump_overall_stats): New function.
26746 (dump_inline_stats): New function.
26748 2014-04-18 Richard Henderson <rth@redhat.com>
26750 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
26751 to GET_MODE_SIZE, not a reg_class_t.
26753 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26755 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
26756 (vsx_xxmrglw_<mode>): Likewise.
26758 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
26761 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
26762 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
26763 (rs6000_init_hard_regno_mode_ok): Likewise.
26765 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
26767 * ipa-inline.c (inline_small_functions): Account only non-cold
26769 * doc/invoke.texi (inline-unit-growth): Update documentation.
26771 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
26773 * config/rs6000/rs6000.md (addti3, subti3): New.
26775 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
26778 * config/i386/i386.c (ix86_expand_clear): Remove outdated
26779 comment. Check optimize_insn_for_size_p instead of
26780 optimize_insn_for_speed_p.
26782 2014-04-17 Martin Jambor <mjambor@suse.cz>
26784 * gimple-iterator.c (gsi_start_edge): New function.
26785 * gimple-iterator.h (gsi_start_edge): Declare.
26786 * tree-sra.c (single_non_eh_succ): New function.
26787 (disqualify_ops_if_throwing_stmt): Renamed to
26788 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
26789 having one non-EH successor BB.
26790 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
26791 generate loads into replacements.
26792 (sra_modify_assign): Likewise and and also use the simple path for
26794 (sra_modify_function_body): Commit statements on edges.
26796 2014-04-17 Richard Biener <rguenther@suse.de>
26798 PR middle-end/60849
26799 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
26800 comparison results and add clarifying comment.
26802 2014-04-17 Jakub Jelinek <jakub@redhat.com>
26804 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
26805 (blank_mode): Initialize it.
26806 (emit_mode_size_inline, emit_mode_nunits_inline,
26807 emit_mode_inner_inline): New functions.
26808 (emit_insn_modes_h): Call them and surround their output with
26809 #if GCC_VERSION >= 4001 ... #endif.
26810 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
26811 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
26812 mode_* arrays if the argument is __builtin_constant_p.
26813 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
26814 is enum machine_mode.
26816 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26818 * passes.c (opt_pass::execute): Adjust.
26819 (pass_manager::execute_pass_mode_switching): Likewise.
26820 (early_local_passes::execute): Likewise.
26821 (execute_one_pass): Pass cfun to the pass's execute method.
26822 * tree-pass.h (opt_pass::execute): Add function * argument.
26823 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26824 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26825 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26826 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26827 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26828 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
26829 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
26830 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26831 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26832 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
26833 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
26834 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
26835 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
26836 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
26837 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26838 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26839 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26840 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
26841 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
26842 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26843 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26844 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26845 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26846 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26847 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26848 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26849 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26850 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26851 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26854 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26856 * passes.c (opt_pass::gate): Take function * argument.
26857 (gate_all_early_local_passes): Merge into
26858 (early_local_passes::gate): this.
26859 (gate_all_early_optimizations): Merge into
26860 (all_early_optimizations::gate): this.
26861 (gate_all_optimizations): Mege into
26862 (all_optimizations::gate): this.
26863 (gate_all_optimizations_g): Merge into
26864 (all_optimizations_g::gate): this.
26865 (gate_rest_of_compilation): Mege into
26866 (rest_of_compilation::gate): this.
26867 (gate_postreload): Merge into
26868 (postreload::gate): this.
26869 (dump_one_pass): Pass cfun to the pass's gate method.
26870 (execute_ipa_summary_passes): Likewise.
26871 (execute_one_pass): Likewise.
26872 (ipa_write_summaries_2): Likewise.
26873 (ipa_write_optimization_summaries_1): Likewise.
26874 (ipa_read_summaries_1): Likewise.
26875 (ipa_read_optimization_summaries_1): Likewise.
26876 (execute_ipa_stmt_fixups): Likewise.
26877 * tree-pass.h (opt_pass::gate): Add function * argument.
26878 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
26879 combine-stack-adj.c, combine.c, compare-elim.c,
26880 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26881 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
26882 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
26883 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
26884 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26885 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26886 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26887 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
26888 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26889 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
26890 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26891 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26892 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
26893 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26894 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26895 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26896 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26897 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26898 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26899 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26900 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26901 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26902 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
26903 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
26904 var-tracking.c, vtable-verify.c, web.c: Adjust.
26906 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26908 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
26909 * configure: Regenerate.
26911 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26913 * passes.c (dump_one_pass): don't check pass->has_gate.
26914 (execute_ipa_summary_passes): Likewise.
26915 (execute_one_pass): Likewise.
26916 (ipa_write_summaries_2): Likewise.
26917 (ipa_write_optimization_summaries_1): Likewise.
26918 (ipa_read_optimization_summaries_1): Likewise.
26919 (execute_ipa_stmt_fixups): Likewise.
26920 * tree-pass.h (pass_data::has_gate): Remove.
26921 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26922 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26923 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26924 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26925 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26926 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26927 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26928 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26929 gimple-low.c, gimple-ssa-isolate-paths.c,
26930 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26931 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26932 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26933 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26934 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26935 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26936 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26937 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26938 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26939 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26940 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26941 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26942 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26943 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26944 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26945 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26946 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26947 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26948 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26949 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26950 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26951 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26954 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26956 * pass_manager.h (pass_manager::register_dump_files_1): Remove
26958 * passes.c (pass_manager::register_dump_files_1): Merge into
26959 (pass_manager::register_dump_files): this, and remove its handling of
26960 properties since the pass always has the properties anyway.
26961 (pass_manager::pass_manager): Adjust.
26963 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26965 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26966 * passes.c (pass_manager::register_dump_files_1): Remove dead code
26967 dealing with properties.
26968 (pass_manager::register_dump_files): Adjust.
26970 2014-03-20 Mark Wielaard <mjw@redhat.com>
26972 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26973 then represent the bound as normal constant value.
26975 2014-04-17 Jakub Jelinek <jakub@redhat.com>
26978 Forward port from 4.8 branch
26979 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
26981 * config/i386/bmiintrin.h (_blsi_u32): New.
26982 (_blsi_u64): Ditto.
26983 (_blsr_u32): Ditto.
26984 (_blsr_u64): Ditto.
26985 (_blsmsk_u32): Ditto.
26986 (_blsmsk_u64): Ditto.
26987 (_tzcnt_u32): Ditto.
26988 (_tzcnt_u64): Ditto.
26990 2014-04-17 Kito Cheng <kito@0xlab.org>
26992 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26994 2014-04-17 Richard Biener <rguenther@suse.de>
26996 PR middle-end/60849
26997 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26998 boolean results for comparisons.
27000 2014-04-17 Richard Biener <rguenther@suse.de>
27002 PR tree-optimization/60836
27003 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
27004 initial PHI args to be gimple values.
27006 2014-04-17 Richard Biener <rguenther@suse.de>
27008 PR tree-optimization/60841
27009 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
27010 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
27011 of stmts to SLP build.
27012 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
27013 (vect_analyze_slp): Likewise.
27014 (vect_analyze_slp_instance): Likewise.
27015 (vect_build_slp_tree): Limit overall SLP tree growth.
27016 * tree-vectorizer.h (vect_analyze_data_refs,
27017 vect_analyze_slp): Adjust prototypes.
27019 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
27021 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
27024 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
27026 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
27027 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
27028 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
27029 for TARGET_SLOW_PSHUFB
27031 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
27033 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
27034 * config/i386/i386.c (intel_cost): Ditto.
27036 2014-04-17 Joey Ye <joey.ye@arm.com>
27038 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
27040 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
27042 * opts.c (common_handle_option): Disable -fipa-reference coorectly
27043 with -fuse-profile.
27045 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
27047 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
27048 (type_all_derivations_known_p): New predicate.
27049 (type_all_ctors_visible_p): New predicate.
27050 (type_possibly_instantiated_p): New predicate.
27051 (get_odr_type): Compute all_derivations_known.
27052 (dump_odr_type): Dump the flag.
27053 (maybe_record_type): Cleanup.
27054 (record_target_from_binfo): Add bases_to_consider array;
27055 record bases for types w/o instances and skip CXX destructor.
27056 (possible_polymorphic_call_targets_1): Add bases_to_consider
27057 and consider_construction parameters; check if type may have instance.
27058 (get_polymorphic_call_info): Set maybe_in_construction to true
27059 when we know nothing.
27060 (record_targets_from_bases): Skip CXX destructors; they are
27061 never called for types in construction.
27062 (possible_polymorphic_call_targets): Do not record target when
27063 type may not have instance.
27065 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
27068 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
27069 external aliases alive, too.
27071 2014-04-16 Andrew Pinski <apinski@cavium.com>
27073 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
27076 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
27078 * final.c (compute_alignments): Do not apply loop alignment to a block
27079 falling through to the exit.
27081 2014-04-16 Catherine Moore <clm@codesourcery.com>
27083 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
27084 Adjust constraints for microMIPS store patterns.
27086 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
27088 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
27090 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
27092 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
27093 (append_use): Run at -O0.
27094 (append_vdef): Likewise.
27095 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
27096 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
27098 2014-04-16 Jakub Jelinek <jakub@redhat.com>
27100 PR tree-optimization/60844
27101 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
27102 (propagate_op_to_single_use, remove_visited_stmt_chain,
27103 linearize_expr, repropagate_negates, reassociate_bb): Use it
27104 instead of gsi_remove.
27106 2014-04-16 Martin Jambor <mjambor@suse.cz>
27108 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
27109 ipa_transforms_to_apply.
27110 (cgraph_function_versioning): Assert that old_node has empty
27111 ipa_transforms_to_apply.
27112 * trans-mem.c (ipa_tm_create_version): Likewise.
27113 * tree-inline.c (tree_function_versioning): Do not duplicate
27114 ipa_transforms_to_apply.
27116 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27119 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
27121 Pass necessary as flags on 64-bit Solaris/x86.
27122 Use lowercase relocs for x86_64-*-*.
27123 * configure: Regenerate.
27125 2014-04-15 Jan Hubicka <jh@suse.cz>
27127 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
27128 (maybe_record_node, likely_target_p): Use it.
27130 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27133 Revert following patch
27135 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27138 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27139 software floating point or no floating point registers, do not
27140 allow any type in the FPRs. Eliminate a test for SPE SIMD types
27141 in GPRs that occurs after we tested for GPRs that would never be
27144 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27145 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27146 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
27147 specifically allow DDmode, since that does not use the SPE SIMD
27150 2014-03-21 Mark Wielaard <mjw@redhat.com>
27152 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
27153 as unsigned or int depending on type and value used.
27155 2014-04-15 Richard Biener <rguenther@suse.de>
27157 PR rtl-optimization/56965
27158 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
27159 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
27161 * alias.c (true_dependence_1): Do not call
27162 nonoverlapping_component_refs_p.
27163 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
27164 nonoverlapping_component_refs_p.
27165 (indirect_refs_may_alias_p): Likewise.
27167 2014-04-15 Teresa Johnson <tejohnson@google.com>
27169 * cfg.c (dump_bb_info): Fix flags check.
27170 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
27172 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27174 PR rtl-optimization/60663
27175 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
27178 2014-04-15 Richard Biener <rguenther@suse.de>
27180 * lto-streamer.h (LTO_major_version): Bump to 4.
27182 2014-04-15 Richard Biener <rguenther@suse.de>
27184 * common.opt (lto_partition_model): New enum.
27185 (flto-partition=): Merge separate options with a single with argument,
27186 add -flto-partition=one support.
27187 * flag-types.h (enum lto_partition_model): Declare.
27188 * opts.c (finish_options): Remove duplicate -flto-partition=
27190 * lto-wrapper.c (run_gcc): Adjust.
27192 2014-04-15 Richard Biener <rguenther@suse.de>
27194 * alias.c (ncr_compar): New function.
27195 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
27197 2014-04-15 Richard Biener <rguenther@suse.de>
27199 * alias.c (record_component_aliases): Do not walk BINFOs.
27201 2014-04-15 Richard Biener <rguenther@suse.de>
27203 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27204 Add struct function argument and adjust.
27205 (find_func_aliases_for_call): Likewise.
27206 (find_func_aliases): Likewise.
27207 (find_func_clobbers): Likewise.
27208 (intra_create_variable_infos): Likewise.
27209 (compute_points_to_sets): Likewise.
27210 (ipa_pta_execute): Adjust. Do not push/pop cfun.
27212 2014-04-15 Richard Biener <rguenther@suse.de>
27214 * tree.c (iterative_hash_expr): Use enum tree_code_class
27215 to store TREE_CODE_CLASS.
27216 (tree_block): Likewise.
27217 (tree_set_block): Likewise.
27218 * tree.h (fold_build_pointer_plus_loc): Use
27219 convert_to_ptrofftype_loc.
27221 2014-04-15 Jakub Jelinek <jakub@redhat.com>
27224 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
27227 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
27229 * cfgloop.h (struct loop): Move force_vectorize down.
27230 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
27231 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
27232 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
27233 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
27234 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
27235 * tree-core.h (enum annot_expr_kind): Add new kind values.
27236 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
27237 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
27239 * tree.def (ANNOTATE_EXPR): Tweak comment.
27241 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
27243 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
27246 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
27248 * tree.h (TYPE_IDENTIFIER): Declare.
27249 * tree.c (subrange_type_for_debug_p): Use it.
27250 * godump.c (go_format_type): Likewise.
27251 * dwarf2out.c (is_cxx_auto, modified_type_die,
27252 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
27253 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
27255 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
27258 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
27260 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
27262 * config/i386/i386.c (examine_argument): Return bool. Return true if
27263 parameter should be passed in memory.
27264 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
27265 (construct_container): Update calls to examine_argument.
27266 (function_arg_advance_64): Ditto.
27267 (return_in_memory_32): Merge with ix86_return_in_memory.
27268 (return_in_memory_64): Ditto.
27269 (return_in_memory_ms_64): Ditto.
27271 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
27273 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
27274 * coverage.c (coverage_compute_profile_id): Handle externally visible
27277 2014-04-14 Martin Jambor <mjambor@suse.cz>
27279 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
27280 DECL_DISREGARD_INLINE_LIMITS functions.
27282 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
27285 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
27287 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
27290 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
27291 optimize_insn_for_speed_p instead of
27292 optimize_function_for_speed_p.
27294 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
27296 * doc/invoke.texi (free): Document AArch64.
27298 2014-04-14 Richard Biener <rguenther@suse.de>
27300 PR tree-optimization/60042
27301 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
27302 (insert_into_preds_of_block): Do not prevent PHI insertion
27303 for REFERENCE exprs here ...
27304 (eliminate_dom_walker::before_dom_children): ... but prevent
27305 their use here under similar conditions when applied to the
27306 IL after PRE optimizations.
27308 2014-04-14 Richard Biener <rguenther@suse.de>
27310 * passes.def: Move early points-to after early SRA.
27312 2014-04-14 Richard Biener <rguenther@suse.de>
27314 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
27315 check for which sign-changes we allow when forwarding
27316 a converted value into a switch.
27318 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
27320 * stor-layout.c (place_field): Finalize non-constant offset for the
27323 2014-04-14 Richard Biener <rguenther@suse.de>
27325 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
27327 (expand_switch_using_bit_tests_p): Likewise.
27328 (process_switch): Compute and pass on speed_p based on the
27330 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
27331 optimize_bb_for_speed_p.
27333 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
27335 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
27336 * function.h (struct function): Rename has_force_vect_loops into
27337 has_force_vectorize_loops.
27338 * lto-streamer-in.c (input_cfg): Adjust for renaming.
27339 (input_struct_function_base): Likewise.
27340 * lto-streamer-out.c (output_cfg): Likewise.
27341 (output_struct_function_base): Likewise.
27342 * omp-low.c (expand_omp_simd): Likewise.
27343 * tree-cfg.c (move_sese_region_to_fn): Likewise.
27344 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
27345 (version_loop_for_if_conversion): Likewise.
27346 (tree_if_conversion): Likewise.
27347 (main_tree_if_conversion): Likewise.
27348 (gate_tree_if_conversion): Likewise.
27349 * tree-inline.c (copy_loops): Likewise.
27350 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
27351 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
27352 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
27353 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
27354 * tree-vectorizer.c (vectorize_loops): Likewise.
27355 * tree-vectorizer.h (unlimited_cost_model): Likewise.
27357 2014-04-14 Richard Biener <rguenther@suse.de>
27360 * lto-streamer-out.c (wrap_refs): New function.
27361 (lto_output): Wrap symbol references in global initializes in
27362 type-preserving MEM_REFs.
27364 2014-04-14 Christian Bruel <christian.bruel@st.com>
27366 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
27368 2014-04-14 Christian Bruel <christian.bruel@st.com>
27370 * config/sh/sh.md (setmemqi): New expand pattern.
27371 * config/sh/sh.h (CLEAR_RATIO): Define.
27372 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
27373 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
27375 2014-04-14 Richard Biener <rguenther@suse.de>
27377 PR middle-end/55022
27378 * fold-const.c (negate_expr_p): Don't negate directional rounding
27380 (fold_negate_expr): Likewise.
27382 2014-04-14 Richard Biener <rguenther@suse.de>
27384 PR tree-optimization/59817
27385 PR tree-optimization/60453
27386 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
27387 recursion to catch all CHRECs in the scalar evolution and restrict
27388 the predicate for the remains appropriately.
27390 2014-04-12 Catherine Moore <clm@codesourcery.com>
27392 * config/mips/constraints.md: Add new register constraint "kb".
27393 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
27394 (*movhi_internal): Likewise.
27395 (*movqi_internal): Likewise.
27396 * config/mips/mips.h (M16_STORE_REGS): New register class.
27397 (REG_CLASS_NAMES): Add M16_STORE_REGS.
27398 (REG_CLASS_CONTENTS): Likewise.
27399 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
27401 2014-04-11 Tobias Burnus <burnus@net-b.de>
27404 * doc/invoke.texi (-Wformat-signedness): Document it.
27405 (Wformat=2): Mention that this enables -Wformat-signedness.
27407 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
27409 * common/config/epiphany/epiphany-common.c
27410 (epiphany_option_optimization_table): Enable section anchors by
27411 default at -O1 or higher.
27412 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
27413 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
27414 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
27415 carries no extra cost.
27416 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
27417 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
27418 * config/epiphany/predicates.md (memclob_operand): New predicate.
27419 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
27420 Use memclob_operand predicate and X constraint for operand 3.
27422 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
27424 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
27425 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
27428 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
27430 PR rtl-optimization/60651
27431 * mode-switching.c (optimize_mode_switching): Make sure to emit
27432 sets of a lower numbered entity before sets of a higher numbered
27433 entity to a mode of the same or lower priority.
27434 When creating a seginfo for a basic block that starts with a code
27435 label, move the insertion point past the code label.
27436 (new_seginfo): Document and enforce requirement that
27437 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
27438 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
27439 * doc/tm.texi: Regenerate.
27441 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
27444 * config/arc/arc.c (arc_save_restore): Fix assert typo.
27446 2013-04-11 Jakub Jelinek <jakub@redhat.com>
27448 * BASE-VER: Set to 4.10.0.
27450 2014-04-11 Tobias Burnus <burnus@net-b.de>
27453 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
27454 * doc/gcc.texi (Service): Update description in the @menu
27455 * doc/invoke.texi (Option Summary): Remove misplaced and
27458 2014-04-11 Steve Ellcey <sellcey@mips.com>
27459 Jakub Jelinek <jakub@redhat.com>
27461 PR middle-end/60556
27462 * expr.c (convert_move): Use emit_store_flag_force instead of
27463 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
27466 2014-04-11 Richard Biener <rguenther@suse.de>
27468 PR middle-end/60797
27469 * varasm.c (assemble_alias): Avoid endless error reporting
27470 recursion by setting TREE_ASM_WRITTEN.
27472 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27474 * config/s390/s390.md: Add a splitter for NOT rtx.
27476 2014-04-11 Jakub Jelinek <jakub@redhat.com>
27478 PR rtl-optimization/60663
27479 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
27481 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
27482 Jakub Jelinek <jakub@redhat.com>
27485 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
27486 flag from decl_node to node.
27488 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27491 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
27492 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
27493 ameliorating the cases where it can be.
27495 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
27498 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
27500 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27501 (loadsync_<mode>): Change mode.
27502 (load_quadpti, store_quadpti): New.
27503 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27504 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27505 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
27507 2014-04-09 Cong Hou <congh@google.com>
27510 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
27513 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27515 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
27516 instead of vnor to exploit possible fusion opportunity in the
27518 (altivec_expand_vec_perm_const_le): Likewise.
27520 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
27522 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27523 (loadsync_<mode>): Change mode.
27524 (load_quadpti, store_quadpti): New.
27525 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27526 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27528 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
27531 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
27532 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
27533 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
27535 2014-04-08 Richard Biener <rguenther@suse.de>
27537 PR middle-end/60706
27538 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
27539 a 64bit widest int print double-int similar to on HWI64 hosts.
27541 2014-04-08 Richard Biener <rguenther@suse.de>
27543 PR tree-optimization/60785
27544 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
27545 default defs properly.
27547 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
27549 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
27550 (Weffc++): Likewise.
27552 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
27554 * ipa-devirt.c (maybe_record_node): When node is not recorded,
27555 set completep to false rather than true.
27557 2014-04-07 Douglas B Rupp <rupp@adacore.com>
27560 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
27561 ARM_TARGET2_DWARF_FORMAT.
27563 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
27566 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
27567 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
27570 2014-04-07 Richard Biener <rguenther@suse.de>
27572 PR tree-optimization/60766
27573 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
27574 (may_eliminate_iv): Convert cand_value_at result to desired type.
27576 2014-04-07 Jason Merrill <jason@redhat.com>
27579 * common.opt (-fno-gnu-unique): Add.
27580 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
27582 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27584 * haifa-sched.c: Fix outdated function reference and minor
27585 grammar errors in introductory comment.
27587 2014-04-07 Richard Biener <rguenther@suse.de>
27589 PR middle-end/60750
27590 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
27591 for noreturn calls.
27592 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
27594 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
27597 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
27598 size accounting for thunks.
27599 (pa_asm_output_mi_thunk): Use final_start_function() and
27600 final_end_function() to output function start and end directives.
27602 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
27604 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
27605 device specific ISA/ feature information. Remove short_sp and
27606 errata_skip ds. Add avr_device_specific_features enum to have device
27608 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
27609 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
27610 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
27611 updated device specific info.
27612 * config/avr/avr-mcus.def: Merge device specific details to
27613 dev_attribute field.
27614 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
27616 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
27617 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
27618 assembler if RMW isa supported by current device.
27619 * config/avr/genmultilib.awk: Update as device info structure changed.
27620 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
27622 2014-04-04 Cong Hou <congh@google.com>
27624 PR tree-optimization/60656
27625 * tree-vect-stmts.c (supportable_widening_operation):
27626 Fix a bug that elements in a vector with vect_used_by_reduction
27627 property are incorrectly reordered when the operation on it is not
27628 consistant with the one in reduction operation.
27630 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
27632 PR rtl-optimization/60155
27633 * gcse.c (record_set_data): New function.
27634 (single_set_gcse): New function.
27635 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
27636 (hoist_code): Likewise.
27637 (get_pressure_class_and_nregs): Likewise.
27639 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
27641 * explow.c (probe_stack_range): Emit a final optimization blockage.
27643 2014-04-04 Anthony Green <green@moxielogic.com>
27645 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
27648 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
27651 * lto-cgraph.c (input_overwrite_node): Check that partitioning
27652 flags are set only during streaming.
27653 * ipa.c (process_references, walk_polymorphic_call_targets,
27654 symtab_remove_unreachable_nodes): Drop bodies of always inline
27655 after early inlining.
27656 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
27658 2014-04-04 Jakub Jelinek <jakub@redhat.com>
27659 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27662 * dwarf2out.c (const_ok_for_output_1): Reject expressions
27665 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27668 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
27670 (cortex_a53_fdivd): Likewise.
27672 2014-04-04 Martin Jambor <mjambor@suse.cz>
27675 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
27676 Adjust all callers.
27677 * cgraph.c (clone_of_p): Also return true if thunks match.
27678 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
27679 cgraph_function_or_thunk_node and an obsolete comment.
27680 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
27682 (build_function_decl_skip_args): Likewise.
27683 (set_new_clone_decl_and_node_flags): New function.
27684 (duplicate_thunk_for_node): Likewise.
27685 (redirect_edge_duplicating_thunks): Likewise.
27686 (cgraph_clone_node): New parameter args_to_skip, pass it to
27687 redirect_edge_duplicating_thunks which is called instead of
27688 cgraph_redirect_edge_callee.
27689 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
27690 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
27692 2014-04-04 Jeff Law <law@redhat.com>
27695 * config/arm/predicates.md (const_int_I_operand): New predicate.
27696 (const_int_M_operand): Similarly.
27697 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
27699 (insv_t2, extv_reg, extzv_t2): Likewise.
27700 (load_multiple_with_writeback): Similarly for const_int_I_operand.
27701 (pop_multiple_with_writeback_and_return): Likewise.
27702 (vfp_pop_multiple_with_writeback): Likewise
27704 2014-04-04 Richard Biener <rguenther@suse.de>
27707 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
27708 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
27710 * gimplify.h (gimple_add_tmp_var_fn): Declare.
27711 * gimplify.c (gimple_add_tmp_var_fn): New function.
27712 * gimple-expr.h (create_tmp_reg_fn): Declare.
27713 * gimple-expr.c (create_tmp_reg_fn): New function.
27714 * gimple-low.c (record_vars_into): Don't change cfun.
27715 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
27716 code generation without cfun.
27718 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
27721 * Makefile.in (install-driver): Fix shell scripting.
27723 2014-04-03 Cong Hou <congh@google.com>
27725 PR tree-optimization/60505
27726 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
27727 threshold of number of iterations below which no vectorization
27729 * tree-vect-loop.c (new_loop_vec_info):
27730 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
27731 * tree-vect-loop.c (vect_analyze_loop_operations):
27732 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
27733 * tree-vect-loop.c (vect_transform_loop):
27734 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
27735 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
27736 of iterations of the loop and see if we should build the epilogue.
27738 2014-04-03 Richard Biener <rguenther@suse.de>
27740 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
27741 (streamer_tree_cache_create): Adjust.
27742 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
27743 to allow optional nodes array.
27744 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
27745 (streamer_tree_cache_append): Likewise.
27746 (streamer_tree_cache_create): Create nodes array optionally
27747 as specified by parameter.
27748 * lto-streamer-out.c (create_output_block): Avoid maintaining
27749 the node array in the writer cache.
27750 (DFS_write_tree): Remove assertion.
27751 (produce_asm_for_decls): Free the out decl state hash table early.
27752 * lto-streamer-in.c (lto_data_in_create): Adjust for
27753 streamer_tree_cache_create prototype change.
27755 2014-04-03 Richard Biener <rguenther@suse.de>
27757 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
27758 set TREE_CHAIN to NULL_TREE.
27760 2014-04-03 Richard Biener <rguenther@suse.de>
27762 PR tree-optimization/60740
27763 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
27764 over all GIMPLE_COND operands.
27766 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
27768 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
27769 (Weffc++): Remove Scott's numbering, merge lists and reference
27772 2014-04-03 Nick Clifton <nickc@redhat.com>
27774 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
27777 2014-04-03 Martin Jambor <mjambor@suse.cz>
27779 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
27780 mention gcc_unreachable before failing.
27781 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
27784 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
27787 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
27788 inconsistent code and instead mark the context inconsistent.
27789 (possible_polymorphic_call_targets): For inconsistent contexts
27790 return empty complete list.
27792 2014-04-02 Anthony Green <green@moxielogic.com>
27794 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
27795 (extendqisi2, extendhisi2): Define.
27796 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
27797 (WCHAR_TYPE): Change to unsigned int.
27799 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27801 PR tree-optimization/60733
27802 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
27803 insertion point for PHI candidates to be the end of the feeding
27804 block for the PHI argument.
27806 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
27808 PR rtl-optimization/60650
27809 * lra-constraints.c (process_alt_operands): Decrease reject for
27810 earlyclobber matching.
27812 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27814 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
27816 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27818 * config/spu/spu.c (pad_bb): Do not crash when the last
27819 insn is CODE_FOR_blockage.
27821 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27823 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
27824 lies outside the target mode.
27826 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27829 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27830 software floating point or no floating point registers, do not
27831 allow any type in the FPRs. Eliminate a test for SPE SIMD types
27832 in GPRs that occurs after we tested for GPRs that would never be
27835 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27836 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27837 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
27838 specifically allow DDmode, since that does not use the SPE SIMD
27841 2014-04-02 Richard Biener <rguenther@suse.de>
27843 PR middle-end/60729
27844 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
27845 MODE_INTs. Properly use negv_optab.
27846 (expand_abs): Likewise.
27848 2014-04-02 Richard Biener <rguenther@suse.de>
27851 * Makefile.in (install-driver): Guard extra installs with special
27854 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27856 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27857 Document vec_vgbbd.
27859 2014-04-01 Richard Henderson <rth@redhat.com>
27862 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
27863 alternative enabled before register allocation.
27865 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
27867 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
27868 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
27870 (nios2_large_got_address): Remove unneeded 'sym' parameter.
27871 (nios2_got_address): Update nios2_large_got_address call site.
27872 (nios2_delegitimize_address): New function.
27873 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
27874 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
27875 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
27877 2014-04-01 Martin Husemann <martin@duskware.de>
27879 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
27882 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
27884 PR rtl-optimization/60604
27885 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
27886 check from register_operand.
27887 (register_operand): Redefine in terms of general_operand.
27888 (nonmemory_operand): Use register_operand for the non-constant cases.
27890 2014-04-01 Richard Biener <rguenther@suse.de>
27892 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
27894 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
27896 * doc/invoke.texi (mapp-regs): Clarify.
27898 2014-03-31 Ulrich Drepper <drepper@gmail.com>
27900 * config/i386/avx512fintrin.h (__v32hi): Define type.
27901 (__v64qi): Likewise.
27902 (_mm512_set1_epi8): Define.
27903 (_mm512_set1_epi16): Define.
27904 (_mm512_set4_epi32): Define.
27905 (_mm512_set4_epi64): Define.
27906 (_mm512_set4_pd): Define.
27907 (_mm512_set4_ps): Define.
27908 (_mm512_setr4_epi64): Define.
27909 (_mm512_setr4_epi32): Define.
27910 (_mm512_setr4_pd): Define.
27911 (_mm512_setr4_ps): Define.
27912 (_mm512_setzero_epi32): Define.
27914 2014-03-31 Martin Jambor <mjambor@suse.cz>
27916 PR middle-end/60647
27917 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27918 callsite_arguments_match_p. Updated all callers. Also check types of
27919 corresponding formal parameters and actual arguments.
27920 (not_all_callers_have_enough_arguments_p) Renamed to
27921 some_callers_have_mismatched_arguments_p.
27923 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
27925 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27927 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
27930 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27933 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
27935 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27936 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27938 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27939 Use FMAMODE_NOVF512 mode iterator.
27940 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27941 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27942 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27943 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27945 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27946 Use VF_128_256 mode iterator.
27947 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27950 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27952 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27953 static chain if needed.
27955 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27958 * lra-constraints.c (index_part_to_reg): New.
27959 (process_address): Use it.
27961 2014-03-27 Jeff Law <law@redhat.com>
27962 Jakub Jelinek <jakub@redhat.com>
27965 * expr.c (do_tablejump): Use simplify_gen_binary rather than
27966 gen_rtx_{PLUS,MULT} to build up the address expression.
27968 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27969 creating non-canonical RTL.
27971 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27974 * ipa-inline.c (want_inline_small_function_p): Short circuit large
27975 functions; reorganize to make cheap checks first.
27976 (inline_small_functions): Do not estimate growth when dumping;
27978 * ipa-inline.h (inline_summary): Add min_size.
27979 (growth_likely_positive): New function.
27980 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27981 (set_cond_stmt_execution_predicate): Cleanup.
27982 (estimate_edge_size_and_time): Compute min_size.
27983 (estimate_calls_size_and_time): Likewise.
27984 (estimate_node_size_and_time): Likewise.
27985 (inline_update_overall_summary): Update min_size.
27986 (do_estimate_edge_time): Likewise.
27987 (do_estimate_edge_size): Update.
27988 (do_estimate_edge_hints): Update.
27989 (growth_likely_positive): New function.
27991 2014-03-28 Jakub Jelinek <jakub@redhat.com>
27994 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27995 also if addr has VOIDmode.
27997 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27999 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
28000 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
28002 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
28003 instructions as well as AdvancedSIMD loads.
28005 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28007 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
28008 Use crypto_aese type.
28009 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
28010 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
28011 crypto_aese, crypto_aesmc. Move to types.md.
28012 * config/arm/types.md (crypto_aes): Split into crypto_aese,
28014 * config/arm/iterators.md (crypto_type): Likewise.
28016 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
28018 * cgraph.c: Include expr.h and tree-dfa.h.
28019 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
28022 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
28025 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
28026 regs from checking multi-reg pseudos.
28028 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28030 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
28032 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28034 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
28035 if it would clobber the stack pointer, even temporarily.
28037 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
28039 * mode-switching.c: Make small adjustments to the top comment.
28041 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
28043 * config/rs6000/constraints.md (wD constraint): New constraint to
28044 match the constant integer to get the top DImode/DFmode out of a
28045 vector in a VSX register.
28047 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
28048 match the constant integer to get the top DImode/DFmode out of a
28049 vector in a VSX register.
28051 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
28054 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28057 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
28058 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
28060 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
28061 Optimize vec_extract of 64-bit values, where the value being
28062 extracted is in the top word, where we can use scalar
28063 instructions. Add direct move and store support. Combine the big
28064 endian/little endian vector select load support into a single insn.
28065 (vsx_extract_<mode>_internal1): Likewise.
28066 (vsx_extract_<mode>_internal2): Likewise.
28067 (vsx_extract_<mode>_load): Likewise.
28068 (vsx_extract_<mode>_store): Likewise.
28069 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
28070 combined into vsx_extract_<mode>_load.
28071 (vsx_extract_<mode>_one_le): Likewise.
28073 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
28074 define the top 64-bit vector element.
28076 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
28079 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28080 Document vec_vbpermq builtin.
28083 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
28084 enable use of xxsldwi and xxpermdi builtin functions.
28085 (vec_xxpermdi): Likewise.
28087 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28088 Document use of vec_xxsldwi and vec_xxpermdi builtins.
28090 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
28092 PR rtl-optimization/60650
28093 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
28095 (find_spills_for): New.
28096 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
28097 Spill all pseudos on the second iteration.
28099 2014-03-27 Marek Polacek <polacek@redhat.com>
28102 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
28105 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28107 * config/s390/s390.c (s390_can_use_return_insn): Check for
28108 call-saved FPRs on 31 bit.
28110 2014-03-27 Jakub Jelinek <jakub@redhat.com>
28112 PR middle-end/60682
28113 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
28114 if they need regimplification, just drop them instead of
28115 calling gimple_regimplify_operands on them.
28117 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
28120 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
28121 (aarch64_frame_pointer_required): Adjust logic.
28122 (aarch64_can_eliminate): Adjust logic.
28123 (aarch64_override_options_after_change): Adjust logic.
28125 2014-03-27 Dehao Chen <dehao@google.com>
28127 * ipa-inline.c (early_inliner): Update node's inline info.
28129 2014-03-26 Dehao Chen <dehao@google.com>
28131 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
28132 compiler inserted conditional jumps for NAN float check.
28134 2014-03-26 Jakub Jelinek <jakub@redhat.com>
28136 * ubsan.h (ubsan_create_data): Change second argument's type
28137 to const location_t *.
28138 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
28140 (ubsan_create_data): Change second argument to const location_t *PLOC.
28141 Create Loc field whenever PLOC is non-NULL.
28142 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
28143 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
28147 * real.c (real_to_integer2): Change type of low to UHWI.
28149 2014-03-26 Tobias Burnus <burnus@net-b.de>
28151 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
28152 (CILK_SELF_SPECS): New define.
28153 (driver_self_specs): Use it.
28155 2014-03-26 Richard Biener <rguenther@suse.de>
28157 * tree-pretty-print.c (percent_K_format): Implement special
28158 case for LTO and its stripped down BLOCK tree.
28160 2014-03-26 Jakub Jelinek <jakub@redhat.com>
28163 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
28165 * tree-vrp.c (simplify_internal_call_using_ranges): If only
28166 one range is range_int_cst_p, but not both, at least optimize
28167 addition/subtraction of 0 and multiplication by 0 or 1.
28168 * gimple-fold.c (gimple_fold_call): Fold
28169 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
28170 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
28171 INTEGER_CSTs, try to fold at least x * 0 and y - y.
28173 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
28175 PR rtl-optimization/60452
28176 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
28177 <case REG>: Return 1 for invalid offsets from the frame pointer.
28179 2014-03-26 Marek Polacek <polacek@redhat.com>
28182 * doc/extend.texi (C Extensions): Mention variable-length arrays in
28185 2014-03-26 Marek Polacek <polacek@redhat.com>
28188 * doc/extend.texi (Designated Inits): Describe what happens to omitted
28191 2014-03-26 Marek Polacek <polacek@redhat.com>
28194 * ira-color.c (update_conflict_hard_regno_costs): Perform the
28195 multiplication in unsigned type.
28197 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
28199 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
28201 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
28203 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
28205 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
28208 * cif-code.def (UNREACHABLE) New code.
28209 * ipa-inline.c (inline_small_functions): Skip edges to
28210 __builtlin_unreachable.
28211 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
28212 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
28213 predicate to __bulitin_unreachable.
28214 (set_cond_stmt_execution_predicate): Fix issue when
28215 invert_tree_comparison returns ERROR_MARK.
28216 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
28217 propagate to inline clones.
28218 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
28220 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
28221 * cgraphclones.c (cgraph_clone_node): If call destination is already
28222 ureachable, do not redirect it back.
28223 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
28226 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
28228 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
28229 Do not modify inline clones.
28231 2014-03-25 Jakub Jelinek <jakub@redhat.com>
28233 * config/i386/i386.md (general_sext_operand): New mode attr.
28234 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
28235 don't generate (sign_extend (const_int)).
28236 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
28237 operands[2]. Use We constraint instead of <i> and
28238 <general_sext_operand> predicate instead of <general_operand>.
28239 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
28240 * config/i386/constraints.md (We): New constraint.
28241 * config/i386/predicates.md (x86_64_sext_operand,
28242 sext_operand): New predicates.
28244 2014-03-25 Martin Jambor <mjambor@suse.cz>
28247 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
28248 inconsistent devirtualizations to __builtin_unreachable.
28250 2014-03-25 Marek Polacek <polacek@redhat.com>
28253 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
28255 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
28257 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
28258 order of elements for big-endian.
28260 2014-03-25 Richard Biener <rguenther@suse.de>
28262 PR middle-end/60635
28263 * gimplify-me.c (gimple_regimplify_operands): Update the
28266 2014-03-25 Martin Jambor <mjambor@suse.cz>
28269 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
28270 (lto_output_varpool_node): Likewise.
28271 (input_overwrite_node): Likewise.
28272 (input_varpool_node): Likewise.
28274 2014-03-25 Richard Biener <rguenther@suse.de>
28276 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
28277 (run_gcc): Likewise.
28279 2014-03-25 Jakub Jelinek <jakub@redhat.com>
28281 * combine.c (simplify_compare_const): Add MODE argument.
28282 Handle mode_width 0 as very large mode_width.
28283 (try_combine, simplify_comparison): Adjust callers.
28285 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
28286 type to avoid signed integer overflow.
28287 * explow.c (plus_constant): Likewise.
28289 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
28291 * doc/generic.texi: Correct typos.
28293 2014-03-24 Tobias Burnus <burnus@net-b.de>
28295 * doc/invoke.texi (-flto): Expand section about
28296 using static libraries with LTO.
28298 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28300 PR rtl-optimization/60501
28301 * optabs.def (addptr3_optab): New optab.
28302 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
28303 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
28304 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
28306 * lra.c (emit_add3_insn): Use the addptr pattern if available.
28308 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
28310 2014-03-24 Ulrich Drepper <drepper@gmail.com>
28312 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
28315 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
28316 (_mm256_undefined_ps): Define.
28317 (_mm256_undefined_pd): Define.
28318 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
28319 (_mm_undefined_pd): Define.
28320 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
28321 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
28322 (_mm512_undefined_ps): Define.
28323 (_mm512_undefined_pd): Define.
28324 Use _mm*_undefined_*.
28325 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
28327 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
28329 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
28330 (lshr_simd): DI mode added.
28331 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
28332 (aarch64_ushr_simddi): Likewise.
28333 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
28334 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
28335 (vshrd_n_u64): Likewise.
28337 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28339 * Makefile.in (s-macro_list): Depend on cc1.
28341 2014-03-23 Teresa Johnson <tejohnson@google.com>
28343 * ipa-utils.c (ipa_print_order): Use specified dump file.
28345 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
28347 PR rtl-optimization/60601
28348 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
28350 * gcc.c (eval_spec_function): Initialize save_growing_value.
28352 2014-03-22 Jakub Jelinek <jakub@redhat.com>
28355 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
28356 code == MINUS_EXPR, never swap op0 with op1.
28358 * toplev.c (init_local_tick): Avoid signed integer multiplication
28360 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
28361 shift by first operand's bitsize.
28363 2014-03-21 Jakub Jelinek <jakub@redhat.com>
28366 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
28367 redefine to 1 or 0.
28368 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
28369 TARGET_ISA_64BIT_P(x).
28371 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28373 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
28374 pattern for vector nor instead of subtract from splat(-1).
28375 (altivec_expand_vec_perm_const_le): Likewise.
28377 2014-03-21 Richard Henderson <rth@twiddle.net>
28380 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
28381 related insns after epilogue_completed.
28383 2014-03-21 Martin Jambor <mjambor@suse.cz>
28386 * cgraph.h (symtab_node): New flag body_removed.
28387 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
28388 when removing bodies.
28389 * symtab.c (dump_symtab_base): Dump body_removed flag.
28390 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
28391 had their bodies removed.
28393 2014-03-21 Martin Jambor <mjambor@suse.cz>
28396 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
28399 2014-03-21 Richard Biener <rguenther@suse.de>
28401 PR tree-optimization/60577
28402 * tree-core.h (struct tree_base): Document nothrow_flag use
28403 in DECL_NONALIASED.
28404 * tree.h (DECL_NONALIASED): New.
28405 (may_be_aliased): Adjust.
28406 * coverage.c (build_var): Set DECL_NONALIASED.
28408 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
28410 * expr.c (expand_expr_real_1): Remove outdated comment.
28412 2014-03-20 Jakub Jelinek <jakub@redhat.com>
28414 PR middle-end/60597
28415 * ira.c (adjust_cleared_regs): Call copy_rtx on
28416 *reg_equiv[REGNO (loc)].src_p before passing it to
28417 simplify_replace_fn_rtx.
28420 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
28421 into CONST, put pic register as first operand of PLUS. Use
28422 gen_const_mem for both 32-bit and 64-bit PIC got loads.
28424 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28426 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
28428 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
28430 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
28431 around for store forwarding issue in the FPU on the UT699.
28432 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
28433 loads and operations if -mfix-ut699 is specified.
28434 (divtf3_hq): Tweak attribute.
28435 (sqrttf2_hq): Likewise.
28437 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
28439 * calls.c (store_one_arg): Remove incorrect const qualification on the
28440 type of the temporary.
28441 * cfgexpand.c (expand_return): Likewise.
28442 * expr.c (expand_constructor): Likewise.
28443 (expand_expr_real_1): Likewise.
28445 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28447 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
28450 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
28453 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
28455 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
28457 * config/arm/aarch-common-protos.h
28458 (alu_cost_table): Fix spelling of "extend".
28459 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
28461 2014-03-19 Richard Biener <rguenther@suse.de>
28463 PR middle-end/60553
28464 * tree-core.h (tree_type_common): Re-order pointer members
28465 to reduce recursion depth during GC walks.
28467 2014-03-19 Marek Polacek <polacek@redhat.com>
28470 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
28471 before accessing it.
28473 2014-03-19 Richard Biener <rguenther@suse.de>
28476 * lto-streamer-in.c (input_function): In WPA stage do not drop
28479 2014-03-19 Jakub Jelinek <jakub@redhat.com>
28481 PR tree-optimization/60559
28482 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
28483 with build_zero_cst assignment.
28485 2014-03-18 Kai Tietz <ktietz@redhat.com>
28487 PR rtl-optimization/56356
28488 * sdbout.c (sdbout_parms): Verify that parms'
28489 incoming argument is valid.
28490 (sdbout_reg_parms): Likewise.
28492 2014-03-18 Richard Henderson <rth@redhat.com>
28495 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
28496 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
28497 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
28499 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
28501 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
28502 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
28503 Italicize plugin event names in description. Explain that
28504 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
28505 Remind that no GCC functions should be called after PLUGIN_FINISH.
28506 Explain what pragmas with expansion are.
28508 2014-03-18 Martin Liska <mliska@suse.cz>
28510 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
28511 gimple call statement is update.
28512 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
28513 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
28515 2014-03-18 Jakub Jelinek <jakub@redhat.com>
28518 * ubsan.c (ubsan_instrument_unreachable): Call
28519 initialize_sanitizer_builtins.
28520 (ubsan_pass): Likewise.
28523 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
28524 varpool_finalize_decl instead of rest_of_decl_compilation.
28526 2014-03-18 Richard Biener <rguenther@suse.de>
28528 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
28529 by using bitmap_and_compl instead of bitmap_and_compl_into.
28530 (df_rd_transfer_function): Likewise.
28532 2014-03-18 Richard Biener <rguenther@suse.de>
28534 * doc/lto.texi (fresolution): Fix typo.
28536 2014-03-18 Richard Biener <rguenther@suse.de>
28538 * doc/invoke.texi (flto): Update for changes in 4.9.
28540 2014-03-18 Richard Biener <rguenther@suse.de>
28542 * doc/loop.texi: Remove section on the removed lambda framework.
28543 Update loop docs with recent changes in preserving loop structure.
28545 2014-03-18 Richard Biener <rguenther@suse.de>
28547 * doc/lto.texi (-fresolution): Document.
28549 2014-03-18 Richard Biener <rguenther@suse.de>
28551 * doc/contrib.texi: Adjust my name.
28553 2014-03-18 Jakub Jelinek <jakub@redhat.com>
28556 * internal-fn.c: Include diagnostic-core.h.
28557 (expand_BUILTIN_EXPECT): New function.
28558 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
28559 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
28560 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
28561 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
28562 IFN_BUILTIN_EXPECT.
28563 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
28564 Revert 3 argument __builtin_expect code.
28565 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
28566 * gimple-fold.c (gimple_fold_call): Likewise.
28567 * tree.h (fold_builtin_expect): New prototype.
28568 * builtins.c (build_builtin_expect_predicate): Add predictor
28569 argument, if non-NULL, create 3 argument __builtin_expect.
28570 (fold_builtin_expect): No longer static. Add ARG2 argument,
28571 pass it through to build_builtin_expect_predicate.
28572 (fold_builtin_2): Adjust caller.
28573 (fold_builtin_3): Handle BUILT_IN_EXPECT.
28574 * internal-fn.def (BUILTIN_EXPECT): New.
28576 2014-03-18 Tobias Burnus <burnus@net-b.de>
28579 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
28580 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
28581 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
28583 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
28586 * predict.c (combine_predictions_for_bb): Fix up formatting.
28587 (expr_expected_value_1, expr_expected_value): Add predictor argument,
28588 fill what it points to if non-NULL.
28589 (tree_predict_by_opcode): Adjust caller, use the predictor.
28590 * predict.def (PRED_COMPARE_AND_SWAP): Add.
28592 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
28594 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
28595 proper constant for the store mode.
28597 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
28599 * symtab.c (change_decl_assembler_name): Fix transparent alias
28600 chain construction.
28602 2014-03-16 Renlin Li <Renlin.Li@arm.com>
28604 * config/aarch64/aarch64.c: Correct the comments about the
28605 aarch64 stack layout.
28607 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
28609 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
28610 check for GF_OMP_FOR_KIND_FOR.
28612 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28614 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
28615 ymm and zmm register names.
28617 2014-03-17 Jakub Jelinek <jakub@redhat.com>
28620 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
28621 note creation for the 2010-08-31 changes.
28623 2014-03-17 Marek Polacek <polacek@redhat.com>
28625 PR middle-end/60534
28626 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
28627 as -fno-tree-loop-vectorize.
28628 (expand_omp_simd): Likewise.
28630 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
28632 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
28633 (eligible_for_call_delay): New prototype.
28634 * config/sparc/sparc.c (tls_call_delay): Rename into...
28635 (eligible_for_call_delay): ...this. Return false if the instruction
28636 cannot be put in the delay slot of a branch.
28637 (eligible_for_restore_insn): Simplify.
28638 (eligible_for_return_delay): Return false if the instruction cannot be
28639 put in the delay slot of a branch and simplify.
28640 (eligible_for_sibcall_delay): Return false if the instruction cannot be
28641 put in the delay slot of a branch.
28642 * config/sparc/sparc.md (fix_ut699): New attribute.
28643 (tls_call_delay): Delete.
28644 (in_call_delay): Reimplement.
28645 (eligible_for_sibcall_delay): Rename into...
28646 (in_sibcall_delay): ...this.
28647 (eligible_for_return_delay): Rename into...
28648 (in_return_delay): ...this.
28649 (in_branch_delay): Reimplement.
28650 (in_uncond_branch_delay): Delete.
28651 (in_annul_branch_delay): Delete.
28653 2014-03-14 Richard Henderson <rth@redhat.com>
28656 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
28657 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
28658 (*floathi<X87MODEF>2_i387_with_temp): Remove.
28659 (floathi splitters): Remove.
28660 (float<SWI48x>xf2): New pattern.
28661 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
28662 code that tried to handle DImode for 32-bit, but which was excluded
28663 by the pattern's condition. Drop allocation of stack temporary.
28664 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
28665 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
28666 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
28667 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
28668 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
28669 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
28670 (*float<SWI48><MODEF>2_sse_interunit): Remove.
28671 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
28672 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
28673 (*float<SWI48x><X87MODEF>2_i387): Remove.
28674 (all float _with_temp splitters): Remove.
28675 (*float<SWI48x><MODEF>2_i387): New pattern.
28676 (*float<SWI48><MODEF>2_sse): New pattern.
28677 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
28678 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
28680 2014-03-14 Jakub Jelinek <jakub@redhat.com>
28681 Marek Polacek <polacek@redhat.com>
28683 PR middle-end/60484
28684 * common.opt (dump_base_name_prefixed): New Variable.
28685 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
28686 if x_dump_base_name_prefixed is already set, set it at the end.
28688 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
28690 PR rtl-optimization/60508
28691 * lra-constraints.c (get_reload_reg): Add new parameter
28693 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
28694 Pass the new parameter values.
28696 2014-03-14 Richard Biener <rguenther@suse.de>
28698 * common.opt: Revert unintented changes from r205065.
28699 * opts.c: Likewise.
28701 2014-03-14 Richard Biener <rguenther@suse.de>
28703 PR middle-end/60518
28704 * cfghooks.c (split_block): Properly adjust all loops the
28705 block was a latch of.
28707 2014-03-14 Martin Jambor <mjambor@suse.cz>
28710 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
28713 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
28716 * config/avr/avr.c (avr_set_current_function): Pass function name
28717 through default_strip_name_encoding before sanity checking instead
28718 of skipping the first char of the assembler name.
28720 2014-03-13 Richard Henderson <rth@redhat.com>
28723 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
28724 (ix86_force_to_memory, ix86_free_from_memory): Remove.
28725 * config/i386/i386-protos.h: Likewise.
28726 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
28727 in the expander instead of a splitter.
28728 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
28729 any possibility of requiring a memory.
28730 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
28731 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
28732 (fp branch splitters): Update for ix86_split_fp_branch.
28733 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
28734 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
28735 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
28736 (*fop_<MODEF>_2_i387): Remove f/r alternative.
28737 (*fop_<MODEF>_3_i387): Likewise.
28738 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
28739 (splitters for the fop_* register patterns): Remove.
28740 (fscalexf4_i387): Rename from *fscalexf4_i387.
28741 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
28743 2014-03-13 Jakub Jelinek <jakub@redhat.com>
28745 PR tree-optimization/59779
28746 * tree-dfa.c (get_ref_base_and_extent): Use double_int
28747 type for bitsize and maxsize instead of HOST_WIDE_INT.
28749 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
28751 PR rtl-optimization/57320
28752 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
28753 the CFG after thread_prologue_and_epilogue_insns.
28755 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
28757 PR rtl-optimization/57189
28758 * lra-constraints.c (process_alt_operands): Disfavor spilling
28761 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
28763 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
28765 2014-03-13 Jakub Jelinek <jakub@redhat.com>
28767 PR tree-optimization/59025
28768 PR middle-end/60418
28769 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
28770 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
28772 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
28775 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
28776 calls of avr_out_plus_1.
28778 2014-03-13 Bin Cheng <bin.cheng@arm.com>
28780 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
28781 BB's single pred and update the father loop's latch info later.
28783 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28785 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
28789 (VEC_base): Likewise.
28790 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
28791 registers, we need to swap double words in little endian mode.
28793 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
28794 to be a container mode for 128-bit integer operations added in ISA
28795 2.07. Unlike TImode and PTImode, the preferred register set is
28796 the Altivec/VMX registers for the 128-bit operations.
28798 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
28800 (rs6000_split_128bit_ok_p): Likewise.
28802 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
28803 macros for creating ISA 2.07 normal and overloaded builtin
28804 functions with 3 arguments.
28805 (BU_P8V_OVERLOAD_3): Likewise.
28806 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
28807 for use as overloaded functions.
28808 (VPERM_1TI_UNS): Likewise.
28809 (VSEL_1TI): Likewise.
28810 (VSEL_1TI_UNS): Likewise.
28811 (ST_INTERNAL_1ti): Likewise.
28812 (LD_INTERNAL_1ti): Likewise.
28813 (XXSEL_1TI): Likewise.
28814 (XXSEL_1TI_UNS): Likewise.
28815 (VPERM_1TI): Likewise.
28816 (VPERM_1TI_UNS): Likewise.
28817 (XXPERMDI_1TI): Likewise.
28818 (SET_1TI): Likewise.
28819 (LXVD2X_V1TI): Likewise.
28820 (STXVD2X_V1TI): Likewise.
28821 (VEC_INIT_V1TI): Likewise.
28822 (VEC_SET_V1TI): Likewise.
28823 (VEC_EXT_V1TI): Likewise.
28824 (EQV_V1TI): Likewise.
28825 (NAND_V1TI): Likewise.
28826 (ORC_V1TI): Likewise.
28827 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
28828 added in ISA 2.07. Add both normal 'altivec' builtins, and the
28829 overloaded builtin.
28830 (VADDUQM): Likewise.
28831 (VSUBCUQ): Likewise.
28832 (VADDEUQM): Likewise.
28833 (VADDECUQ): Likewise.
28834 (VSUBEUQM): Likewise.
28835 (VSUBECUQ): Likewise.
28837 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
28838 __int128_t and __uint128_t types.
28839 (__uint128_type): Likewise.
28840 (altivec_categorize_keyword): Add support for vector __int128_t,
28841 vector __uint128_t, vector __int128, and vector unsigned __int128
28842 as a container type for TImode operations that need to be done in
28843 VSX/Altivec registers.
28844 (rs6000_macro_to_expand): Likewise.
28845 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
28846 to support 128-bit integer instructions vaddcuq, vadduqm,
28847 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
28848 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
28850 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
28851 for V1TImode, and set up preferences to use VSX/Altivec registers.
28852 Setup VSX reload handlers.
28853 (rs6000_debug_reg_global): Likewise.
28854 (rs6000_init_hard_regno_mode_ok): Likewise.
28855 (rs6000_preferred_simd_mode): Likewise.
28856 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
28857 (easy_altivec_constant): Likewise.
28858 (output_vec_const_move): Likewise.
28859 (rs6000_expand_vector_set): Convert V1TImode set and extract to
28861 (rs6000_expand_vector_extract): Likewise.
28862 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
28864 (rs6000_const_vec): Add support for V1TImode.
28865 (rs6000_emit_le_vsx_load): Swap double words when loading or
28866 storing TImode/V1TImode.
28867 (rs6000_emit_le_vsx_store): Likewise.
28868 (rs6000_emit_le_vsx_move): Likewise.
28869 (rs6000_emit_move): Add support for V1TImode.
28870 (altivec_expand_ld_builtin): Likewise.
28871 (altivec_expand_st_builtin): Likewise.
28872 (altivec_expand_vec_init_builtin): Likewise.
28873 (altivec_expand_builtin): Likewise.
28874 (rs6000_init_builtins): Add support for V1TImode type. Add
28875 support for ISA 2.07 128-bit integer builtins. Define type names
28876 for the VSX/Altivec vector types.
28877 (altivec_init_builtins): Add support for overloaded vector
28878 functions with V1TImode type.
28879 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
28880 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
28882 (rs6000_split_128bit_ok_p): Likewise.
28883 (rs6000_handle_altivec_attribute): Create V1TImode from vector
28884 __int128_t and vector __uint128_t.
28886 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
28887 and mode attributes.
28889 (VSX_M2): Likewise.
28894 (VS_scalar): Likewise.
28895 (VS_double): Likewise.
28896 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
28898 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
28899 we support the ISA 2.07 128-bit integer arithmetic instructions.
28900 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
28901 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
28902 and TImode types for use with the builtin functions.
28903 (V1TI_type_node): Likewise.
28904 (unsigned_V1TI_type_node): Likewise.
28905 (intTI_type_internal_node): Likewise.
28906 (uintTI_type_internal_node): Likewise.
28908 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
28909 128-bit builtin functions.
28910 (UNSPEC_VADDEUQM): Likewise.
28911 (UNSPEC_VADDECUQ): Likewise.
28912 (UNSPEC_VSUBCUQ): Likewise.
28913 (UNSPEC_VSUBEUQM): Likewise.
28914 (UNSPEC_VSUBECUQ): Likewise.
28915 (VM): Add V1TImode to vector mode iterators.
28917 (VI_unit): Likewise.
28918 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28919 (altivec_vaddcuq): Likewise.
28920 (altivec_vsubuqm): Likewise.
28921 (altivec_vsubcuq): Likewise.
28922 (altivec_vaddeuqm): Likewise.
28923 (altivec_vaddecuq): Likewise.
28924 (altivec_vsubeuqm): Likewise.
28925 (altivec_vsubecuq): Likewise.
28927 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28929 (BOOL_128): Likewise.
28930 (BOOL_REGS_OUTPUT): Likewise.
28931 (BOOL_REGS_OP1): Likewise.
28932 (BOOL_REGS_OP2): Likewise.
28933 (BOOL_REGS_UNARY): Likewise.
28934 (BOOL_REGS_AND_CR0): Likewise.
28936 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28937 128-bit integer builtin support.
28938 (vec_vadduqm): Likewise.
28939 (vec_vaddecuq): Likewise.
28940 (vec_vaddeuqm): Likewise.
28941 (vec_vsubecuq): Likewise.
28942 (vec_vsubeuqm): Likewise.
28943 (vec_vsubcuq): Likewise.
28944 (vec_vsubuqm): Likewise.
28946 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28947 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28948 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28949 128-bit integer add/subtract to ISA 2.07.
28951 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
28953 * config/arc/arc.c (arc_predicate_delay_insns):
28954 Fix third argument passed to conditionalize_nonjump.
28956 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
28958 * config/aarch64/aarch64-builtins.c
28959 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28960 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28961 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28962 instead of __builtin_lfloor.
28963 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28965 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28967 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28968 (tree_ssa_ifcombine_bb_1): New function.
28969 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
28970 is an empty forwarder block to then_bb or vice versa and then_bb
28971 and else_bb are effectively swapped.
28973 2014-03-12 Christian Bruel <christian.bruel@st.com>
28976 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28977 REG_CFA_DEF_CFA note.
28978 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28979 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28981 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28983 PR tree-optimization/60454
28984 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28986 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28988 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28989 Do not define target_cpu_default2 to generic.
28990 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28991 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28992 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28994 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28995 Marc Glisse <marc.glisse@inria.fr>
28997 PR tree-optimization/60502
28998 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28999 instead of build_low_bits_mask.
29001 2014-03-12 Jakub Jelinek <jakub@redhat.com>
29003 PR middle-end/60482
29004 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
29005 if there are multiple uses, but op doesn't live on E edge.
29006 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
29007 clobber stmts before __builtin_unreachable.
29009 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
29011 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
29012 hard_frame_pointer_rtx.
29013 * cse.c (cse_insn): Remove volatile check.
29014 * cselib.c (cselib_process_insn): Likewise.
29015 * dse.c (scan_insn): Likewise.
29017 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
29019 * config/arc/arc.c (conditionalize_nonjump): New function,
29021 (arc_ifcvt): ... this.
29022 (arc_predicate_delay_insns): Use it.
29024 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
29026 * config/arc/predicates.md (extend_operand): During/after reload,
29027 allow const_int_operand.
29028 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
29029 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
29030 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
29032 (umulsi3_highpart_i): Likewise.
29034 2014-03-11 Richard Biener <rguenther@suse.de>
29036 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
29037 Add asserts to guard possible wrong-code bugs.
29039 2014-03-11 Richard Biener <rguenther@suse.de>
29041 PR tree-optimization/60429
29042 PR tree-optimization/60485
29043 * tree-ssa-structalias.c (set_union_with_increment): Properly
29044 take into account all fields that overlap the shifted vars.
29045 (do_sd_constraint): Likewise.
29046 (do_ds_constraint): Likewise.
29047 (get_constraint_for_ptr_offset): Likewise.
29049 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
29051 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
29052 (nios2_compute_frame_layout):
29053 Add calculation of cfun->machine->fp_save_offset.
29054 (nios2_expand_prologue): Correct setting of frame pointer register
29056 (nios2_expand_epilogue): Update recovery of stack pointer from
29057 frame pointer accordingly.
29058 (nios2_initial_elimination_offset): Update calculation of offset
29059 for eliminating to HARD_FRAME_POINTER_REGNUM.
29061 2014-03-10 Jakub Jelinek <jakub@redhat.com>
29064 * ipa.c (symtab_remove_unreachable_nodes): Don't call
29065 cgraph_get_create_node on VAR_DECLs.
29067 2014-03-10 Richard Biener <rguenther@suse.de>
29069 PR middle-end/60474
29070 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
29072 2014-03-08 Douglas B Rupp <rupp@gnat.com>
29074 * config/vms/vms.opt (vms_float_format): New variable.
29076 2014-03-08 Tobias Burnus <burnus@net-b.de>
29078 * doc/invoke.texi (-fcilkplus): Update implementation status.
29080 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
29081 Richard Biener <rguenther@suse.de>
29083 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
29084 consistently accross all TUs.
29085 (run_gcc): Enable -fshort-double automatically at link at link-time
29086 and disallow override.
29088 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
29091 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
29092 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
29093 if they can't be used.
29095 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29097 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
29098 for Solaris 11/x86 ld.
29099 * configure: Regenerate.
29101 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29103 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
29104 (LIB_TLS_SPEC): Save as ld_tls_libs.
29105 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
29106 (HAVE_AS_IX86_TLSLDM): New test.
29107 * configure, config.in: Regenerate.
29108 * config/i386/i386.c (legitimize_tls_address): Fall back to
29109 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
29110 cannot support TLS_MODEL_LOCAL_DYNAMIC.
29111 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
29112 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
29114 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
29116 * common.opt (fira-loop-pressure): Mark as optimization.
29118 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
29120 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
29121 an OpenMP mappable type.
29123 2014-03-06 Matthias Klose <doko@ubuntu.com>
29125 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
29126 MULTILIB_OSDIRNAMES is not defined.
29128 2014-03-06 Jakub Jelinek <jakub@redhat.com>
29129 Meador Inge <meadori@codesourcery.com>
29132 * config/arm/arm.c (arm_tls_symbol_p): Remove.
29133 (arm_legitimize_address): Call legitimize_tls_address for any
29134 arm_tls_referenced_p expression, handle constant addend. Call it
29135 before testing for !TARGET_ARM.
29136 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
29138 2014-03-06 Richard Biener <rguenther@suse.de>
29140 PR middle-end/60445
29144 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
29146 * tree-streamer.c (record_common_node): Assert we don't record
29147 nodes with type double.
29148 (preload_common_node): Skip type double, complex double and double
29149 pointer since it is now frontend dependent due to fshort-double option.
29151 2014-03-06 Richard Biener <rguenther@suse.de>
29153 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
29154 or -fno-lto is specified and the linker has full plugin support.
29155 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
29156 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
29157 * lto-wrapper.c (merge_and_complain): Merge compile-time
29158 optimization levels.
29159 (run_gcc): And pass it through to the link options.
29161 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
29165 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
29167 * cselib.c (remove_useless_values): Skip to avoid quadratic
29168 behavior if the condition moved from...
29169 (cselib_process_insn): ... here holds.
29171 2014-03-05 Jakub Jelinek <jakub@redhat.com>
29174 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
29175 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
29178 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
29179 (TM_H): Add x86-tune.def.
29181 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29183 * config/aarch64/aarch64.c (generic_tunings):
29184 Use cortexa57_extra_costs.
29186 2014-03-05 Jakub Jelinek <jakub@redhat.com>
29189 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
29190 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
29191 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
29194 2014-03-04 Heiher <r@hev.cc>
29196 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
29197 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
29199 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
29201 * config/i386/predicates.md (const2356_operand): Change to ...
29202 (const2367_operand): ... this.
29203 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
29205 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29206 (*avx512pf_scatterpf<mode>sf): Ditto.
29207 (avx512pf_scatterpf<mode>df): Ditto.
29208 (*avx512pf_scatterpf<mode>df_mask): Ditto.
29209 (*avx512pf_scatterpf<mode>df): Ditto.
29210 * config/i386/i386.c (ix86_expand_builtin): Update
29211 incorrect hint operand error message.
29213 2014-03-04 Richard Biener <rguenther@suse.de>
29215 * lto-section-in.c (lto_get_section_data): Fix const cast.
29217 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
29219 * tree-streamer.c (record_common_node): Assert we don't record
29220 nodes with type double.
29221 (preload_common_node): Skip type double, complex double and double
29222 pointer since it is now frontend dependent due to fshort-double option.
29224 2014-03-04 Richard Biener <rguenther@suse.de>
29227 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
29228 (lto_input_toplevel_asms): Likewise.
29229 * lto-section-in.c (lto_get_section_data): Instead do it here
29232 2014-03-04 Richard Biener <rguenther@suse.de>
29234 PR tree-optimization/60382
29235 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
29236 dead PHIs a reduction.
29238 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
29240 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
29242 (_mm_prefetch): Move out of GCC target("sse") pragma.
29243 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
29244 GCC target("prfchw") pragma.
29245 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
29247 * config/i386/i386.c (ix86_option_override_internal): Enable
29248 -mprfchw with -mprefetchwt1.
29250 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
29252 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
29255 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
29257 * opts.h (CL_PCH_IGNORE): Define.
29258 * targhooks.c (option_affects_pch_p):
29259 Return false for options that have CL_PCH_IGNORE set.
29260 * opt-functions.awk: Process PchIgnore.
29261 * doc/options.texi: Document PchIgnore.
29263 * config/arc/arc.opt (misize): Add PchIgnore property.
29265 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29267 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
29268 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
29269 constraint on constants to permit them being loaded into
29270 GENERAL_REGS or BASE_REGS.
29272 2014-03-03 Nick Clifton <nickc@redhat.com>
29274 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
29275 anti-cacnonical alternatives.
29276 (negandhi3_real): New pattern.
29277 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
29279 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29281 * config/avr/avr-mcus.def: Remove atxmega16x1.
29282 * config/avr/avr-tables.opt: Regenerate.
29283 * config/avr/t-multilib: Regenerate.
29284 * doc/avr-mmcu.texi: Regenerate.
29286 2014-03-03 Tobias Grosser <tobias@grosser.es>
29287 Mircea Namolaru <mircea.namolaru@inria.fr>
29289 PR tree-optimization/58028
29290 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
29293 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29295 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
29296 not handled by recognizers.
29298 2014-03-03 Jakub Jelinek <jakub@redhat.com>
29300 PR middle-end/60175
29301 * function.c (expand_function_end): Don't emit
29302 clobber_return_register sequence if clobber_after is a BARRIER.
29303 * cfgexpand.c (construct_exit_block): Append instructions before
29304 return_label to prev_bb.
29306 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29308 * config/rs6000/constraints.md: Document reserved use of "wc".
29310 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
29313 * ipa.c (function_and_variable_visibility): When dissolving comdat
29314 group, also set all symbols to local.
29316 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
29321 2013-12-14 Jan Hubicka <jh@suse.cz>
29322 PR middle-end/58477
29323 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
29325 2014-03-02 Jon Beniston <jon@beniston.com>
29331 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
29332 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
29333 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
29334 (simple_return, *simple_return): New patterns
29335 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
29336 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
29338 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
29340 * dwarf2out.c (gen_subprogram_die): Tidy.
29342 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
29345 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
29346 (*mov_t_msb_neg_negc): ... this new insn.
29348 2014-02-28 Jason Merrill <jason@redhat.com>
29351 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
29354 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
29357 * dwarf2out.c (decltype_auto_die): New static.
29358 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
29359 (gen_type_die_with_usage): Handle 'decltype(auto)'.
29360 (is_cxx_auto): Likewise.
29362 2014-02-28 Ian Bolton <ian.bolton@arm.com>
29364 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
29365 we are not using general regs only.
29367 2014-02-28 Richard Biener <rguenther@suse.de>
29370 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
29371 previous fix and only allow to remove trivial pre-headers
29372 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
29373 (remove_forwarder_block): Properly update the latch of a loop.
29375 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
29378 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
29379 (cselib_preserved_hash_table): New.
29380 (preserve_constants_and_equivs): Move preserved vals to it.
29381 (cselib_find_slot): Look it up first.
29382 (cselib_init): Initialize it.
29383 (cselib_finish): Release it.
29384 (dump_cselib_table): Dump it.
29386 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
29389 * cselib.c (remove_useless_values): Skip to avoid quadratic
29390 behavior if the condition moved from...
29391 (cselib_process_insn): ... here holds.
29393 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
29396 * var-tracking.c (vt_initialize): Apply the same condition to
29397 preserve the CFA base value.
29399 2014-02-28 Joey Ye <joey.ye@arm.com>
29402 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
29403 if reload in progress or completed.
29405 2014-02-28 Tobias Burnus <burnus@net-b.de>
29407 PR middle-end/60147
29408 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
29411 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
29413 * doc/tm.texi.in (Condition Code Status): Update documention for
29414 relative locations of cc0-setter and cc0-user.
29416 2014-02-27 Jeff Law <law@redhat.com>
29418 PR rtl-optimization/52714
29419 * combine.c (try_combine): When splitting an unrecognized PARALLEL
29420 into two independent simple sets, if I3 is a jump, ensure the
29421 pattern we place into I3 is a (set (pc) ...).
29423 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
29424 Jeff Law <law@redhat.com>
29426 PR rtl-optimization/49847
29427 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
29428 are in different blocks.
29429 * doc/tm.texi (Condition Code Status): Update documention for
29430 relative locations of cc0-setter and cc0-user.
29432 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
29435 * lra.c (lra_emit_add): Check SUBREG too.
29437 2014-02-27 Andreas Schwab <schwab@suse.de>
29439 * config/m68k/m68k.c (m68k_option_override): Disable
29440 -flive-range-shrinkage for classic m68k.
29441 (m68k_override_options_after_change): Likewise.
29443 2014-02-27 Marek Polacek <polacek@redhat.com>
29445 PR middle-end/59223
29446 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
29447 -Wmaybe-uninitialized.
29449 2014-02-27 Alan Modra <amodra@gmail.com>
29452 * reload1.c (emit_input_reload_insns): When reload_override_in,
29453 set old to rl->in_reg when rl->in_reg is a subreg.
29455 2014-02-26 Richard Biener <rguenther@suse.de>
29458 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
29460 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
29462 * common/config/i386/predicates.md (const1256_operand): Remove.
29463 (const2356_operand): New.
29464 (const_1_to_2_operand): Remove.
29465 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29466 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29467 (*avx512pf_gatherpf<mode>sf): Ditto.
29468 (avx512pf_gatherpf<mode>df): Ditto.
29469 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29470 (*avx512pf_gatherpf<mode>df): Ditto.
29471 (avx512pf_scatterpf<mode>sf): Ditto.
29472 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29473 (*avx512pf_scatterpf<mode>sf): Ditto.
29474 (avx512pf_scatterpf<mode>df): Ditto.
29475 (*avx512pf_scatterpf<mode>df_mask): Ditto.
29476 (*avx512pf_scatterpf<mode>df): Ditto.
29477 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
29479 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
29481 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
29482 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
29483 (_mm512_mask_testn_epi64_mask): Move to ...
29484 * config/i386/avx512cdintrin.h: Here.
29485 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
29486 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
29487 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
29488 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
29489 TARGET_AVX512F from TARGET_AVX512CD.
29491 2014-02-26 Richard Biener <rguenther@suse.de>
29494 * ipa.c (walk_polymorphic_call_targets): Properly guard
29495 call to inline_update_overall_summary.
29497 2014-02-26 Bin Cheng <bin.cheng@arm.com>
29500 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
29501 and latches only if requested. Fix latch if it is removed.
29502 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
29503 LOOPS_HAVE_PREHEADERS.
29505 2014-02-25 Andrew Pinski <apinski@cavium.com>
29507 * builtins.c (expand_builtin_thread_pointer): Create a new target
29508 when the target is NULL.
29510 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
29512 PR rtl-optimization/60317
29513 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29514 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29515 * lra-assigns.c: Include params.h.
29516 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
29517 other reload pseudos considerations.
29519 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29521 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
29522 to use canonical form for nor<mode>3.
29524 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29527 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
29530 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
29532 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
29533 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
29534 (ix86_handle_option): Handle OPT_mprefetchwt1.
29535 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
29536 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29538 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29539 OPTION_MASK_ISA_PREFETCHWT1.
29540 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
29541 (PTA_PREFETCHWT1): New.
29542 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
29543 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
29544 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
29545 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
29546 (*prefetch_avx512pf_<mode>_: Change into ...
29547 (*prefetch_prefetchwt1_<mode>: This.
29548 * config/i386/i386.opt (mprefetchwt1): New.
29549 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
29550 (_mm_prefetch): Handle intent to write.
29551 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
29553 2014-02-25 Richard Biener <rguenther@suse.de>
29555 PR middle-end/60291
29556 * emit-rtl.c (mem_attrs_htab): Remove.
29557 (mem_attrs_htab_hash): Likewise.
29558 (mem_attrs_htab_eq): Likewise.
29559 (set_mem_attrs): Always allocate new mem-attrs when something changed.
29560 (init_emit_once): Do not allocate mem_attrs_htab.
29562 2014-02-25 Richard Biener <rguenther@suse.de>
29565 * lto-opts.c (lto_write_options): Output non-explicit conservative
29566 -fwrapv, -fno-trapv and -fno-strict-overflow.
29567 * lto-wrapper.c (merge_and_complain): Handle merging those options.
29568 (run_gcc): And pass them through.
29570 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
29572 * sel-sched.c (calculate_new_fences): New parameter ptime.
29573 Calculate it as a maximum over all fence cycles.
29574 (sel_sched_region_2): Adjust the call to calculate_new_fences.
29575 Print the final schedule timing when sched_verbose.
29577 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
29579 PR rtl-optimization/60292
29580 * sel-sched.c (fill_vec_av_set): Do not reset target availability
29581 bit fot the fence instruction.
29583 2014-02-24 Alangi Derick <alangiderick@gmail.com>
29585 * calls.h: Fix typo in comment.
29587 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
29589 * config/pa/pa.c (pa_output_move_double): Don't valididate when
29590 adjusting offsetable addresses.
29592 2014-02-24 Guozhi Wei <carrot@google.com>
29594 * sparseset.h (sparseset_pop): Fix the wrong index.
29596 2014-02-24 Walter Lee <walt@tilera.com>
29598 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
29599 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
29601 * common/config/tilegx/tilegx-common.c
29602 (TARGET_DEFAULT_TARGET_FLAGS): Define.
29603 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
29604 (LINK_SPEC): Ditto.
29605 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
29606 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
29607 (tilegx_gimplify_va_arg_expr): Handle big endian.
29608 (tilegx_expand_unaligned_load): Ditto.
29609 (tilegx_expand_unaligned_store): Ditto.
29610 (TARGET_RETURN_IN_MSB): New.
29611 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
29612 (TARGET_ENDIAN_DEFAULT): New.
29613 (TARGET_BIG_ENDIAN): Handle big endian.
29614 (BYTES_BIG_ENDIAN): Ditto.
29615 (WORDS_BIG_ENDIAN): Ditto.
29616 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
29617 (ENDIAN_SPEC): New.
29618 (EXTRA_SPECS): New.
29619 * config/tilegx/tilegx.md (extv): Handle big endian.
29621 (insn_st<n>): Ditto.
29622 (insn_st<n>_add<bitsuffix>): Ditto.
29623 (insn_stnt<n>): Ditto.
29624 (insn_stnt<n>_add<bitsuffix>):Ditto.
29625 (vec_interleave_highv8qi): Handle big endian.
29626 (vec_interleave_highv8qi_be): New.
29627 (vec_interleave_highv8qi_le): New.
29628 (insn_v1int_h): Handle big endian.
29629 (vec_interleave_lowv8qi): Handle big endian.
29630 (vec_interleave_lowv8qi_be): New.
29631 (vec_interleave_lowv8qi_le): New.
29632 (insn_v1int_l): Handle big endian.
29633 (vec_interleave_highv4hi): Handle big endian.
29634 (vec_interleave_highv4hi_be): New.
29635 (vec_interleave_highv4hi_le): New.
29636 (insn_v2int_h): Handle big endian.
29637 (vec_interleave_lowv4hi): Handle big endian.
29638 (vec_interleave_lowv4hi_be): New.
29639 (vec_interleave_lowv4hi_le): New.
29640 (insn_v2int_l): Handle big endian.
29641 (vec_interleave_highv2si): Handle big endian.
29642 (vec_interleave_highv2si_be): New.
29643 (vec_interleave_highv2si_le): New.
29644 (insn_v4int_h): Handle big endian.
29645 (vec_interleave_lowv2si): Handle big endian.
29646 (vec_interleave_lowv2si_be): New.
29647 (vec_interleave_lowv2si_le): New.
29648 (insn_v4int_l): Handle big endian.
29649 * config/tilegx/tilegx.opt (mbig-endian): New option.
29650 (mlittle-endian): New option.
29651 * doc/install.texi: Document tilegxbe-linux.
29652 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
29654 2014-02-24 Martin Jambor <mjambor@suse.cz>
29657 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
29658 there are no parameter descriptors.
29660 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
29662 PR rtl-optimization/60268
29663 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
29664 initialization to ...
29665 (sched_rgn_init): ... here.
29666 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
29668 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29670 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
29673 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
29675 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
29678 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29680 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
29681 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
29683 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29685 * config/microblaze/predicates.md: Add cmp_op predicate.
29686 * config/microblaze/microblaze.md: Add branch_compare instruction
29687 which uses cmp_op predicate and emits cmp insn before branch.
29688 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
29689 to microblaze_expand_conditional_branch and consolidate logic.
29690 (microblaze_expand_conditional_branch): emit branch_compare
29691 insn instead of handling cmp op separate from branch insn.
29693 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29695 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
29698 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29700 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
29701 define_insn with define_expand and new define_insn
29702 *altivec_lve<VI_char>x_internal.
29703 (altivec_stve<VI_char>x): Replace define_insn with define_expand
29704 and new define_insn *altivec_stve<VI_char>x_internal.
29705 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
29707 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
29709 (altivec_expand_stvex_be): New function.
29711 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
29713 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
29714 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
29715 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
29716 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
29718 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
29721 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
29722 instead of emit_move_insn.
29724 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29726 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
29727 vspltw with vsldoi.
29728 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
29729 gen_altivec_vsumsws.
29731 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29733 * config/rs6000/altivec.md (altivec_lvxl): Rename as
29734 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
29735 (altivec_lvxl_<mode>): New define_expand incorporating
29736 -maltivec=be semantics where needed.
29737 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
29738 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
29739 semantics where needed.
29740 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
29741 (altivec_stvx_<mode>): New define_expand incorporating
29742 -maltivec=be semantics where needed.
29743 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
29744 VM2 iterator instead of V4SI.
29745 (altivec_stvxl_<mode>): New define_expand incorporating
29746 -maltivec=be semantics where needed.
29747 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
29748 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
29749 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
29750 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
29751 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
29752 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
29753 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
29754 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
29755 ALTIVEC_BUILTIN_STVXL.
29756 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
29757 (altivec_expand_stvx_be): Likewise.
29758 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
29759 (altivec_expand_lvx_be): Likewise.
29760 (altivec_expand_stvx_be): Likewise.
29761 (altivec_expand_builtin): Add cases for
29762 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
29763 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
29764 (altivec_init_builtins): Add definitions for
29765 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
29766 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
29768 2014-02-21 Catherine Moore <clm@codesourcery.com>
29770 * doc/invoke.texi (mvirt, mno-virt): Document.
29771 * config/mips/mips.opt (mvirt): New option.
29772 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
29774 2014-02-21 Richard Biener <rguenther@suse.de>
29776 PR tree-optimization/60276
29777 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
29778 (STMT_VINFO_MIN_NEG_DIST): New macro.
29779 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
29780 STMT_VINFO_MIN_NEG_DIST.
29781 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
29782 made for negative dependence distances still hold.
29784 2014-02-21 Richard Biener <rguenther@suse.de>
29786 PR middle-end/60291
29787 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
29788 DECL_INITIAL for globals not in the current function context.
29790 2014-02-21 Jakub Jelinek <jakub@redhat.com>
29792 PR tree-optimization/56490
29793 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
29794 * tree-ssa-uninit.c: Include params.h.
29795 (compute_control_dep_chain): Add num_calls argument, return false
29796 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
29797 num_calls to recursive call.
29798 (find_predicates): Change dep_chain into normal array,
29799 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
29800 variable and adjust compute_control_dep_chain caller.
29801 (find_def_preds): Likewise.
29803 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
29805 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
29806 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
29808 2014-02-21 Nick Clifton <nickc@redhat.com>
29810 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
29811 (pushhi1): Likewise.
29812 (popqi1): Add mode to pre_dec.
29813 (pophi1): Likewise.
29815 2014-02-21 Jakub Jelinek <jakub@redhat.com>
29817 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
29818 mode for mask of V8SFmode permutation.
29820 2014-02-20 Richard Henderson <rth@redhat.com>
29823 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
29824 a new pseudo for OLDVAL.
29826 2014-02-20 Jakub Jelinek <jakub@redhat.com>
29829 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
29830 gen_reg_rtx if d->testing_p.
29831 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
29832 if d->testing_p and we will certainly return true.
29833 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
29836 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
29838 * emit-rtl.c (gen_reg_rtx): Assert that
29839 crtl->emit.regno_pointer_align_length is non-zero.
29841 2014-02-20 Richard Henderson <rth@redhat.com>
29844 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
29845 on failure the store back into EXPECT.
29847 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
29848 Sandra Loosemore <sandra@codesourcery.com>
29850 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
29851 * config/nios2/nios2.c (nios2_function_profiler): Add
29852 -fPIC (flag_pic == 2) support.
29853 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
29854 (nios2_large_offset_p): New function.
29855 (nios2_unspec_reloc_p): Move up position, update to use
29856 nios2_large_offset_p.
29857 (nios2_unspec_address): Remove function.
29858 (nios2_unspec_offset): New function.
29859 (nios2_large_got_address): New function.
29860 (nios2_got_address): Add large offset support.
29861 (nios2_legitimize_tls_address): Update usage of removed and new
29863 (nios2_symbol_binds_local_p): New function.
29864 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
29865 (nios2_legitimize_address): Update to use nios2_large_offset_p.
29866 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
29867 (nios2_print_operand): Merge H/L processing, add hiadj/lo
29868 processing for (const (unspec ...)).
29869 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
29871 2014-02-20 Richard Biener <rguenther@suse.de>
29873 * tree-cfg.c (replace_uses_by): Mark altered BBs before
29874 doing the substitution.
29875 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
29877 2014-02-20 Martin Jambor <mjambor@suse.cz>
29880 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
29881 info when checking whether lattices are bottom.
29883 2014-02-20 Richard Biener <rguenther@suse.de>
29885 PR middle-end/60221
29886 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
29889 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
29892 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
29893 parameter specifying the scaling.
29894 (inline_call): Update.
29895 (want_inline_recursively): Guard division by zero.
29896 (recursive_inlining): Update.
29897 * ipa-inline.h (clone_inlined_nodes): Update.
29899 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
29902 * config/i386/i386.c (classify_argument): Pass structures of size
29903 64 bytes or less in register.
29905 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
29906 Kirill Yukhin <kirill.yukhin@intel.com>
29908 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
29909 (_mm_rcp28_round_ss): Ditto.
29910 (_mm_rsqrt28_round_sd): Ditto.
29911 (_mm_rsqrt28_round_ss): Ditto.
29912 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
29913 (_mm_rcp14_round_ss): Ditto.
29914 (_mm_rsqrt14_round_sd): Ditto.
29915 (_mm_rsqrt14_round_ss): Ditto.
29916 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
29917 the first input operand, get rid of match_dup.
29918 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29920 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29922 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29923 operand as the first input operand, set type attribute.
29924 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29925 Set type attribute.
29926 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29927 operand as the first input operand, set type attribute.
29929 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29931 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29934 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
29937 * config/i386/i386.c (construct_container): Remove TFmode check
29938 for X86_64_INTEGER_CLASS.
29940 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
29943 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29944 only when -Wpsabi is enabled.
29946 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
29949 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29950 passing arrays in registers are the same as for structs, so remove the
29951 special case for them.
29953 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
29955 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29956 destination type, extract only the valid bits if the source type is not
29957 integral and has a different mode.
29959 2014-02-19 Richard Biener <rguenther@suse.de>
29962 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29965 2014-02-19 Richard Biener <rguenther@suse.de>
29968 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29969 (ipa_modify_call_arguments): Emit an argument load explicitely and
29970 preserve virtual SSA form there and for the replacement call.
29971 Do not update SSA form nor free dominance info.
29973 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29975 * ipa.c (function_and_variable_visibility): Also clear WEAK
29976 flag when disolving COMDAT_GROUP.
29978 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29980 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29981 * ipa-prop.c (ipa_set_jf_known_type): Return early when
29982 not devirtualizing.
29983 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29984 do more sanity checks.
29985 (detect_type_change): Return true when giving up early.
29986 (compute_complex_assign_jump_func): Fix type parameter of
29987 ipa_set_ancestor_jf.
29988 (compute_complex_ancestor_jump_func): Likewise.
29989 (update_jump_functions_after_inlining): Fix updating of
29991 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29993 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29995 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29996 inline clones when edge disappears.
29998 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30001 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
30002 Split 64-bit moves into 2 patterns. Do not allow the use of
30003 direct move for TDmode in little endian, since the decimal value
30004 has little endian bytes within a word, but the 64-bit pieces are
30005 ordered in a big endian fashion, and normal subreg's of TDmode are
30007 (mov<mode>_64bit_dm): Likewise.
30008 (movtd_64bit_nodm): Likewise.
30010 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
30012 PR tree-optimization/60174
30013 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
30014 statement of an SSA_NAME that occurs in an abnormal PHI node.
30016 2014-02-18 Jakub Jelinek <jakub@redhat.com>
30019 * final.c (SEEN_BB): Remove.
30020 (SEEN_NOTE, SEEN_EMITTED): Renumber.
30021 (final_scan_insn): Don't force_source_line on second
30022 NOTE_INSN_BASIC_BLOCK.
30024 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
30027 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
30028 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
30029 (type_natural_mode): Warn ABI change when %zmm register is not
30030 available for AVX512F vector value passing.
30032 2014-02-18 Kai Tietz <ktietz@redhat.com>
30035 * config/i386/i386.c (ix86_expand_prologue): Use value in
30036 rax register as displacement when restoring %r10 or %rax.
30037 Fix wrong offset when restoring both registers.
30039 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
30041 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
30042 assertion with conditional return.
30044 2014-02-18 Jakub Jelinek <jakub@redhat.com>
30045 Uros Bizjak <ubizjak@gmail.com>
30048 * config/i386/driver-i386.c (host_detect_local_cpu): If
30049 YMM state is not saved by the OS, also clear has_f16c. Move
30050 CPUID 0x80000001 handling before YMM state saving checking.
30052 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
30054 PR rtl-optimization/58960
30055 * haifa-sched.c (alloc_global_sched_pressure_data): New,
30056 factored out from ...
30057 (sched_init): ... here.
30058 (free_global_sched_pressure_data): New, factored out from ...
30059 (sched_finish): ... here.
30060 * sched-int.h (free_global_sched_pressure_data): Declare.
30061 * sched-rgn.c (nr_regions_initial): New static global.
30062 (haifa_find_rgns): Initialize it.
30063 (schedule_region): Disable sched-pressure for the newly
30066 2014-02-17 Richard Biener <rguenther@suse.de>
30068 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
30069 release SSA defs of pattern stmts.
30071 2014-02-17 Richard Biener <rguenther@suse.de>
30073 * tree-inline.c (expand_call_inline): Release the virtual
30074 operand defined by the call we are about to inline.
30076 2014-02-17 Richard Biener <rguenther@suse.de>
30078 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
30080 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
30081 Ilya Tocar <ilya.tocar@intel.com>
30083 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
30084 arguments order in builtin.
30085 (_mm512_permutexvar_epi64): Ditto.
30086 (_mm512_mask_permutexvar_epi64): Ditto
30087 (_mm512_maskz_permutexvar_epi32): Ditto
30088 (_mm512_permutexvar_epi32): Ditto
30089 (_mm512_mask_permutexvar_epi32): Ditto
30091 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30093 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
30094 (p8_vmrgow): Likewise.
30096 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30098 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
30101 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
30104 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
30105 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
30106 into 64-bit and 32-bit moves. On 64-bit moves, add support for
30107 using direct move instructions on ISA 2.07. Also adjust
30108 instruction length for 64-bit.
30109 (mov<mode>_64bit, TFmode/TDmode): Likewise.
30110 (mov<mode>_32bit, TFmode/TDmode): Likewise.
30112 2014-02-15 Alan Modra <amodra@gmail.com>
30116 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30117 find_replacement on parts of insn rtl that might be reloaded.
30119 2014-02-15 Richard Biener <rguenther@suse.de>
30121 PR tree-optimization/60183
30122 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
30123 (tree_ssa_phiprop): Calculate and free post-dominators.
30125 2014-02-14 Jeff Law <law@redhat.com>
30127 PR rtl-optimization/60131
30128 * ree.c (get_extended_src_reg): New function.
30129 (combine_reaching_defs): Use it rather than assuming location of REG.
30130 (find_and_remove_re): Verify first operand of extension is
30131 a REG before adding the insns to the copy list.
30133 2014-02-14 Roland McGrath <mcgrathr@google.com>
30135 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
30136 * configure: Regenerated.
30137 * config.in: Regenerated.
30138 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
30139 instead of ASM_SHORT.
30141 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
30142 Richard Earnshaw <rearnsha@arm.com>
30144 PR rtl-optimization/59535
30145 * lra-constraints.c (process_alt_operands): Encourage alternative
30146 when unassigned pseudo class is superset of the alternative class.
30147 (inherit_reload_reg): Don't inherit when optimizing for code size.
30148 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
30149 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
30150 modes not less than 4 for Thumb1.
30152 2014-02-14 Kyle McMartin <kyle@redhat.com>
30155 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
30157 2014-02-14 Richard Biener <rguenther@suse.de>
30159 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
30160 (get_frame_arg): Drop the assert with langhook types_compatible_p.
30161 Do not strip INDIRECT_REFs.
30163 2014-02-14 Richard Biener <rguenther@suse.de>
30166 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
30167 DECL_FUNCTION_SPECIFIC_TARGET.
30168 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
30169 * tree-streamer-out.c (pack_ts_target_option): Remove.
30170 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
30171 (write_ts_function_decl_tree_pointers): Do not stream
30172 DECL_FUNCTION_SPECIFIC_TARGET.
30173 * tree-streamer-in.c (unpack_ts_target_option): Remove.
30174 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
30175 (lto_input_ts_function_decl_tree_pointers): Do not stream
30176 DECL_FUNCTION_SPECIFIC_TARGET.
30178 2014-02-14 Jakub Jelinek <jakub@redhat.com>
30180 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
30181 (get_initial_def_for_induction, vectorizable_induction): Ignore
30182 debug stmts when looking for exit_phi.
30183 (vectorizable_live_operation): Fix up condition.
30185 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
30187 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
30188 nreverse() because it changes the content of original tree list.
30190 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
30192 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
30193 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
30195 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
30197 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
30198 GNU coding standards.
30200 2014-02-13 Jakub Jelinek <jakub@redhat.com>
30203 * dwarf2out.c (gen_subprogram_die): Don't call
30204 add_calling_convention_attribute if subr_die is old_die.
30206 2014-02-13 Sharad Singhai <singhai@google.com>
30208 * doc/optinfo.texi: Fix order of nodes.
30210 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
30212 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
30213 operands[2], not operands[3].
30215 2014-02-13 Richard Biener <rguenther@suse.de>
30218 * doc/install.texi (ISL): Update recommended version to 0.12.2,
30219 mention the possibility of an in-tree build.
30220 (CLooG): Update recommended version to 0.18.1, mention the
30221 possibility of an in-tree build and clarify that the ISL
30222 bundled with CLooG does not work.
30224 2014-02-13 Jakub Jelinek <jakub@redhat.com>
30227 * expr.c (compress_float_constant): If x is a hard register,
30228 extend into a pseudo and then move to x.
30230 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
30232 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
30233 caused by bad second argument to warning_at() with -mhotpatch and
30234 nested functions (e.g. with gfortran).
30236 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
30238 * opts.c (option_name): Remove "enabled by default" rider.
30240 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
30242 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
30244 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
30245 Uros Bizjak <ubizjak@gmail.com>
30248 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
30249 * configure: Regenerated.
30251 2014-02-12 Richard Biener <rguenther@suse.de>
30253 * vec.c (vec_prefix::calculate_allocation): Move as
30254 inline variant to vec.h.
30255 (vec_prefix::calculate_allocation_1): New out-of-line version.
30256 * vec.h (vec_prefix::calculate_allocation_1): Declare.
30257 (vec_prefix::m_has_auto_buf): Rename to ...
30258 (vec_prefix::m_using_auto_storage): ... this.
30259 (vec_prefix::calculate_allocation): Inline the easy cases
30260 and dispatch to calculate_allocation_1 which doesn't need the
30262 (va_heap::reserve): Use gcc_checking_assert.
30263 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
30264 m_using_auto_storage.
30265 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
30267 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
30268 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
30269 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
30271 2014-02-12 Richard Biener <rguenther@suse.de>
30273 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
30274 when we found a dependence.
30276 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
30278 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
30280 (maybe_fold_stmt): ... into this new function.
30281 * omp-low.c (lower_omp): Update comment.
30283 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
30286 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
30289 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
30291 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
30292 identifiers in comments.
30293 (cortexa53_extra_costs): Likewise.
30294 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
30295 (cortexa7_extra_costs): Likewise.
30296 (cortexa12_extra_costs): Likewise.
30297 (cortexa15_extra_costs): Likewise.
30298 (v7m_extra_costs): Likewise.
30300 2014-02-12 Richard Biener <rguenther@suse.de>
30302 PR middle-end/60092
30303 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
30304 of posix_memalign being successful.
30305 (lower_stmt): Restrict lowering of posix_memalign to when
30306 -ftree-bit-ccp is enabled.
30308 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30310 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
30312 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
30314 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
30316 PR rtl-optimization/60116
30317 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
30318 other_insn once the combination has been validated.
30320 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
30323 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
30325 * ipa-devirt.c: Include demangle.h
30326 (odr_violation_reported): New static variable.
30327 (add_type_duplicate): Update odr_violations.
30328 (maybe_record_node): Add completep parameter; update it.
30329 (record_target_from_binfo): Add COMPLETEP parameter;
30330 update it as needed.
30331 (possible_polymorphic_call_targets_1): Likewise.
30332 (struct polymorphic_call_target_d): Add nonconstruction_targets;
30333 rename FINAL to COMPLETE.
30334 (record_targets_from_bases): Sanity check we found the binfo;
30335 fix COMPLETEP updating.
30336 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
30337 parameter, fix computing of COMPLETEP.
30338 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
30339 at LTO time do demangling.
30340 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
30341 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
30343 (gimple_get_virt_method_for_binfo): Likewise.
30344 * gimple-fold.h (gimple_get_virt_method_for_binfo,
30345 gimple_get_virt_method_for_vtable): Update prototypes.
30347 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
30350 * genautomata.c (add_presence_absence): Fix typo with
30351 {final_}presence_list.
30353 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
30356 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
30357 for VSX/Altivec vectors that land in GPR registers.
30359 2014-02-11 Richard Henderson <rth@redhat.com>
30360 Jakub Jelinek <jakub@redhat.com>
30363 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
30364 around drhs if type conversion to lacc->type is not useless.
30366 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30368 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
30370 (cortex-a57.cortex-a53): Likewise.
30371 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
30373 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30375 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
30378 2014-02-11 Renlin Li <Renlin.Li@arm.com>
30380 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
30381 add_options_for_arm_vfp3.
30383 2014-02-11 Jeff Law <law@redhat.com>
30385 PR middle-end/54041
30386 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
30387 object with an undesirable mode.
30389 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30392 * config/i386/sol2-9.h: New file.
30393 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
30394 *-*-solaris2.9*): Use it.
30396 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
30398 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
30399 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
30401 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
30403 * config/microblaze/microblaze.c: Extend mcpu version format
30405 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
30407 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
30409 2014-02-10 Richard Henderson <rth@redhat.com>
30412 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
30413 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
30414 ms-abi vs -mno-accumulate-outgoing-args.
30415 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
30416 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
30419 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
30421 PR middle-end/60080
30422 * cfgexpand.c (expand_asm_operands): Attach source location to
30423 ASM_INPUT rtx objects.
30424 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
30426 2014-02-10 Nick Clifton <nickc@redhat.com>
30428 * config/mn10300/mn10300.c (popcount): New function.
30429 (mn10300_expand_prologue): Include saved registers in stack usage
30432 2014-02-10 Jeff Law <law@redhat.com>
30434 PR middle-end/52306
30435 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
30436 when changing the SET_DEST of a prior insn to avoid an input reload.
30438 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30440 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
30441 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
30442 -mcall-openbsd, or -mcall-linux.
30443 (CC1_ENDIAN_BIG_SPEC): Remove.
30444 (CC1_ENDIAN_LITTLE_SPEC): Remove.
30445 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30446 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
30447 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
30448 and %cc1_endian_default.
30449 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30451 2014-02-10 Richard Biener <rguenther@suse.de>
30453 PR tree-optimization/60115
30454 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
30455 MEM_REF handling. Properly verify that the accesses are not
30456 out of the objects bound.
30458 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30460 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
30463 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
30465 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
30466 proper constants and fix formatting.
30467 (possible_polymorphic_call_targets): Fix formatting.
30469 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
30470 Ilya Tocar <ilya.tocar@intel.com>
30472 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
30473 (_mm512_loadu_epi32): Renamed into...
30474 (_mm512_loadu_si512): This.
30475 (_mm512_storeu_epi32): Renamed into...
30476 (_mm512_storeu_si512): This.
30477 (_mm512_maskz_ceil_ps): Removed.
30478 (_mm512_maskz_ceil_pd): Ditto.
30479 (_mm512_maskz_floor_ps): Ditto.
30480 (_mm512_maskz_floor_pd): Ditto.
30481 (_mm512_floor_round_ps): Ditto.
30482 (_mm512_floor_round_pd): Ditto.
30483 (_mm512_ceil_round_ps): Ditto.
30484 (_mm512_ceil_round_pd): Ditto.
30485 (_mm512_mask_floor_round_ps): Ditto.
30486 (_mm512_mask_floor_round_pd): Ditto.
30487 (_mm512_mask_ceil_round_ps): Ditto.
30488 (_mm512_mask_ceil_round_pd): Ditto.
30489 (_mm512_maskz_floor_round_ps): Ditto.
30490 (_mm512_maskz_floor_round_pd): Ditto.
30491 (_mm512_maskz_ceil_round_ps): Ditto.
30492 (_mm512_maskz_ceil_round_pd): Ditto.
30493 (_mm512_expand_pd): Ditto.
30494 (_mm512_expand_ps): Ditto.
30495 * config/i386/i386.c (ix86_builtins): Remove
30496 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
30497 (bdesc_args): Ditto.
30498 * config/i386/predicates.md (const1256_operand): New.
30499 (const_1_to_2_operand): Ditto.
30500 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30501 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30502 (*avx512pf_gatherpf<mode>sf): Ditto.
30503 (avx512pf_gatherpf<mode>df): Ditto.
30504 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30505 (*avx512pf_gatherpf<mode>df): Ditto.
30506 (avx512pf_scatterpf<mode>sf): Ditto.
30507 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30508 (*avx512pf_scatterpf<mode>sf): Ditto.
30509 (avx512pf_scatterpf<mode>df): Ditto.
30510 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30511 (*avx512pf_scatterpf<mode>df): Ditto.
30512 (avx512f_expand<mode>): Removed.
30513 (<shift_insn><mode>3<mask_name>): Change predicate type.
30515 2014-02-08 Jakub Jelinek <jakub@redhat.com>
30517 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
30518 not at the end of datarefs vector use ordered_remove to avoid
30519 reordering datarefs vector.
30522 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
30523 mark local addressable non-static vars as GOVD_PRIVATE
30524 instead of GOVD_LOCAL.
30525 * omp-low.c (lower_omp_for): Move gimple_bind_vars
30526 and BLOCK_VARS of gimple_bind_block to new_stmt rather
30529 PR middle-end/60092
30530 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
30531 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
30532 assume_aligned or alloc_align attributes.
30533 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
30534 arguments. Handle also assume_aligned and alloc_align attributes.
30535 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
30536 calls to functions with assume_aligned or alloc_align attributes.
30537 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
30539 2014-02-08 Terry Guo <terry.guo@arm.com>
30541 * doc/invoke.texi: Document ARM -march=armv7e-m.
30543 2014-02-08 Jakub Jelinek <jakub@redhat.com>
30545 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
30546 flag on __cilkrts_rethrow builtin.
30549 * ipa-cp.c (determine_versionability): Fail at -O0
30550 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
30551 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
30554 2014-02-04 Jakub Jelinek <jakub@redhat.com>
30557 * tree-inline.c (copy_forbidden): Fail for
30558 __attribute__((optimize (0))) functions.
30560 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
30562 * varpool.c: Include pointer-set.h.
30563 (varpool_remove_unreferenced_decls): Variables in other partitions
30564 will not be output; be however careful to not lose information
30565 about partitioning.
30567 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
30569 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
30570 lookup in the vtable constructor.
30572 2014-02-07 Jeff Law <law@redhat.com>
30575 * config/m68k/m68k.md (ashldi_extsi): Turn into a
30576 define_insn_and_split.
30578 * ipa-inline.c (inline_small_functions): Fix typos.
30580 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30582 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
30583 (s390_can_use_return_insn): Declare.
30584 * config/s390/s390.h (EPILOGUE_USES): Define.
30585 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
30587 (s390_chunkify_start): Handle return JUMP_LABELs.
30588 (s390_early_mach): Emit a main_pool instruction on the entry edge.
30589 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
30590 (s390_can_use_return_insn): New functions.
30591 (s390_fix_long_loop_prediction): Handle conditional returns.
30592 (TARGET_SET_UP_BY_PROLOGUE): Define.
30593 * config/s390/s390.md (ANY_RETURN): New code iterator.
30594 (*creturn, *csimple_return, return, simple_return): New patterns.
30596 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30598 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
30599 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
30600 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
30601 REG_CFA_RESTORE list when deciding not to restore a register.
30603 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30605 * config/s390/s390.c: Include tree-pass.h and context.h.
30606 (s390_early_mach): New function, split out from...
30607 (s390_emit_prologue): ...here.
30608 (pass_data_s390_early_mach): New pass structure.
30609 (pass_s390_early_mach): New class.
30610 (s390_option_override): Create and register early_mach pass.
30611 Move to end of file.
30613 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30615 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
30616 to match for the exit block.
30618 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30620 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
30621 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
30622 Reject misaligned operands.
30624 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30626 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
30628 2014-02-07 Richard Biener <rguenther@suse.de>
30630 PR middle-end/60092
30631 * gimple-low.c (lower_builtin_posix_memalign): New function.
30632 (lower_stmt): Call it to lower posix_memalign in a way
30633 to make alignment info accessible.
30635 2014-02-07 Jakub Jelinek <jakub@redhat.com>
30638 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
30639 __builtin_setjmp_receiver.
30641 2014-02-07 Richard Biener <rguenther@suse.de>
30643 PR middle-end/60092
30644 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
30645 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
30646 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30647 Handle BUILT_IN_POSIX_MEMALIGN.
30648 (find_func_clobbers): Likewise.
30649 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30650 (call_may_clobber_ref_p_1): Likewise.
30652 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30655 * ipa-devirt.c (record_target_from_binfo): Remove overactive
30658 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30661 * lto-cgraph.c (lto_output_node): Use
30662 symtab_get_symbol_partitioning_class.
30663 (lto_output_varpool_node): likewise.
30664 (symtab_get_symbol_partitioning_class): Move here from
30665 lto/lto-partition.c
30666 * cgraph.h (symbol_partitioning_class): Likewise.
30667 (symtab_get_symbol_partitioning_class): Declare.
30669 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30671 * ggc.h (ggc_internal_cleared_alloc): New macro.
30672 * vec.h (vec_safe_copy): Handle memory stats.
30673 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
30674 * target-globals.c (save_target_globals): Likewise.
30676 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30679 * expr.c (emit_move_resolve_push): Export; be bit more selective
30680 on when to clear alias set.
30681 * expr.h (emit_move_resolve_push): Declare.
30682 * function.h (struct function): Add tail_call_marked.
30683 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
30684 * config/i386/i386-protos.h (ix86_expand_push): Remove.
30685 * config/i386/i386.md (TImode move expander): De not call
30687 (FP push expanders): Preserve memory attributes.
30688 * config/i386/sse.md (push<mode>1): Remove.
30689 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
30690 (ix86_expand_push): Remove.
30691 * config/i386/mmx.md (push<mode>1): Remove.
30693 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30695 PR rtl-optimization/60030
30696 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
30697 lopart with paradoxical subreg before shifting it up by hprec.
30699 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30701 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
30702 Remove extra newline at end of file.
30703 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
30704 (arm_issue_rate): Handle cortexa57.
30705 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
30706 (cortex-a57.cortex-a53): Likewise.
30708 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30711 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
30712 don't record in REG_FRAME_RELATED_EXPR registers not set in that
30714 (arm_expand_prologue): Adjust all callers.
30715 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
30716 info, registers also at the lowest numbered registers side. Use
30717 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
30721 * var-tracking.c (adjust_mems): Before adding a SET to
30722 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
30724 2014-02-06 Alan Modra <amodra@gmail.com>
30727 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
30728 change SDmode to DDmode when lra_in_progress.
30730 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30732 PR middle-end/59150
30733 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
30734 free_data_ref on the dr first, and before goto again also set dr
30735 to the next dr. For simd_lane_access, free old datarefs[i] before
30736 overwriting it. For get_vectype_for_scalar_type failure, don't
30737 free_data_ref if simd_lane_access.
30739 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
30742 * tree.h (opts_for_fn): New inline function.
30743 (opt_for_fn): Define.
30744 * config/i386/i386.c (ix86_function_regparm): Use
30745 opt_for_fn (decl, optimize) instead of optimize.
30747 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
30749 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
30750 for SYMBOL_REF in large memory model.
30752 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30754 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
30755 and crypto support.
30756 (cortex-a57): Likewise.
30757 (cortex-a57.cortex-a53): Likewise.
30759 2014-02-06 Yury Gribov <y.gribov@samsung.com>
30760 Kugan Vivekanandarajah <kuganv@linaro.org>
30762 * config/arm/arm.c (arm_vector_alignment_reachable): Check
30764 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
30766 2014-02-06 Richard Biener <rguenther@suse.de>
30768 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
30769 set_loop_copy and initialize_original_copy_tables.
30771 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
30773 * config/aarch64/aarch64-simd.md
30774 (aarch64_ashr_simddi): Change QI to SI.
30776 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
30777 Jakub Jelinek <jakub@redhat.com>
30779 PR middle-end/60013
30780 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
30783 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30785 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
30786 CODE_FOR_altivec_vpku[hw]um to
30787 CODE_FOR_altivec_vpku[hw]um_direct.
30788 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
30789 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
30790 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
30791 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
30793 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30795 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
30796 generation for -maltivec=be.
30797 (altivec_vsumsws): Simplify redundant test.
30799 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30801 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
30802 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
30803 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
30804 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
30805 gen_altivec_vpkuwum.
30806 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
30808 (altivec_vpks<VI_char>ss): Likewise.
30809 (altivec_vpks<VI_char>us): Likewise.
30810 (altivec_vpku<VI_char>us): Likewise.
30811 (altivec_vpku<VI_char>um): Likewise.
30812 (altivec_vpku<VI_char>um_direct): New (copy of
30813 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
30815 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
30816 target is little endian and -maltivec=be is not specified.
30817 (*altivec_vupkhs<VU_char>_direct): New (copy of
30818 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
30819 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
30820 target is little endian and -maltivec=be is not specified.
30821 (*altivec_vupkls<VU_char>_direct): New (copy of
30822 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
30823 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
30824 little endian and -maltivec=be is not specified.
30825 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
30826 little endian and -maltivec=be is not specified.
30828 2014-02-05 Richard Henderson <rth@redhat.com>
30831 * combine-stack-adj.c: Revert r206943.
30832 * sched-int.h (struct deps_desc): Add last_args_size.
30833 * sched-deps.c (init_deps): Initialize it.
30834 (sched_analyze_insn): Add OUTPUT dependencies between insns that
30835 contain REG_ARGS_SIZE notes.
30837 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
30839 * lto-cgraph.c (asm_nodes_output): Make global.
30840 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
30841 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
30842 (driver_handle_option): Handle OPT_fwpa.
30844 2014-02-05 Jakub Jelinek <jakub@redhat.com>
30847 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
30848 a comment typo and formatting issue. If odr_hash hasn't been
30849 created, return vNULL and set *completep to false.
30851 PR middle-end/57499
30852 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
30853 bb with no successors.
30855 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
30858 * doc/invoke.texi (-march): Clarify documentation for ARM.
30859 (-mtune): Likewise.
30862 2014-02-05 Richard Biener <rguenther@suse.de>
30864 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
30865 when not vectorizing because of too many alias checks.
30866 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30867 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
30869 2014-02-05 Nick Clifton <nickc@redhat.com>
30871 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
30872 accept extended registers in any mode when compiling for the MN10300.
30874 2014-02-05 Yury Gribov <y.gribov@samsung.com>
30876 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
30877 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
30878 sanitization attributes.
30879 (can_inline_edge_p): Likewise.
30880 (sanitize_attrs_match_for_inline_p): New function.
30882 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30884 * ipa-prop.c (detect_type_change): Shor circuit testing of
30885 type changes on THIS pointer.
30887 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
30890 * config/pa/pa.c (legitimize_tls_address): Return original address
30891 if not passed a SYMBOL_REF rtx.
30892 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
30894 (pa_emit_move_sequence): Simplify TLS source operands.
30895 (pa_legitimate_constant_p): Reject all TLS constants.
30896 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
30897 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
30899 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30901 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
30902 groups when we know they are controlled by LTO.
30903 * varasm.c (default_binds_local_p_1): If object is in other partition,
30904 it will be resolved locally.
30906 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
30908 * config/host-linux.c (linux_gt_pch_use_address): Don't
30909 use SSIZE_MAX because it is not always defined.
30911 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
30914 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
30915 threshold for pseudo splitting.
30916 (update_ebb_live_info): Process call argument hard registers and
30917 hard registers from insn definition too.
30918 (max_small_class_regs_num): New constant.
30919 (inherit_in_ebb): Update live hard regs through EBBs. Update
30920 reloads_num only for small register classes. Don't split for
30923 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
30926 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30929 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30931 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30932 visibility is safe.
30934 2014-02-04 Marek Polacek <polacek@redhat.com>
30936 * gdbinit.in (pel): Define.
30938 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
30940 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30943 2014-02-04 Richard Biener <rguenther@suse.de>
30946 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30947 in function context local.
30948 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30949 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30950 similar to LTO_imported_decl_ref.
30952 2014-02-04 Jakub Jelinek <jakub@redhat.com>
30954 PR tree-optimization/60002
30955 * cgraphclones.c (build_function_decl_skip_args): Clear
30956 DECL_LANG_SPECIFIC.
30958 PR tree-optimization/60023
30959 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30960 false to gsi_replace.
30961 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30962 has been in some EH region and vec_stmt could throw, add
30963 vec_stmt into the same EH region.
30964 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30965 has no lhs, ignore it.
30966 * internal-fn.c (expand_MASK_LOAD): Likewise.
30969 * tree-inline.c (copy_forbidden): Fail for
30970 __attribute__((optimize (0))) functions.
30973 * omp-low.c (simd_clone_struct_copy): If from->inbranch
30974 is set, copy one less argument.
30975 (expand_simd_clones): Don't subtract clone_info->inbranch
30976 from simd_clone_struct_alloc argument.
30978 PR rtl-optimization/57915
30979 * recog.c (simplify_while_replacing): If all unary/binary/relational
30980 operation arguments are constant, attempt to simplify those.
30982 PR middle-end/59261
30983 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30984 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30986 2014-02-04 Richard Biener <rguenther@suse.de>
30988 PR tree-optimization/60012
30989 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30990 TBAA disambiguation to all DDRs.
30992 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30995 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30996 (LINK_SPEC): Use it for -shared, -shared-libgcc.
30998 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
31001 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
31003 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
31005 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
31006 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
31008 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
31011 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
31012 to figure out targets of polymorphic calls with known decl.
31013 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31014 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
31015 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
31016 (get_polymorphic_call_info): ... here.
31017 (get_polymorphic_call_info_from_invariant): New function.
31019 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
31021 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
31022 lookup via vtable pointer; check for type consistency
31023 and turn inconsitent facts into UNREACHABLE.
31024 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31025 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
31026 type inconsistent querries; return UNREACHABLE instead.
31028 2014-02-03 Richard Henderson <rth@twiddle.net>
31031 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
31032 already processed this node.
31033 (normalize_one_pred_1): Pass along mark_set.
31034 (normalize_one_pred): Create and destroy a pointer_set_t.
31035 (normalize_one_pred_chain): Likewise.
31037 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
31039 PR gcov-profile/58602
31040 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
31042 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
31045 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
31046 -fno-devirtualize; try to devirtualize by the knowledge of
31047 virtual table pointer given by aggregate propagation.
31048 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31049 (ipa_print_node_jump_functions): Dump also offset that
31050 is relevant for polymorphic calls.
31051 (determine_known_aggregate_parts): Add arg_type parameter; use it
31052 instead of determining the type from pointer type.
31053 (ipa_compute_jump_functions_for_edge): Update call of
31054 determine_known_aggregate_parts.
31055 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
31056 (gimple_get_virt_method_for_binfo): ... here; simplify using
31057 vtable_pointer_value_to_vtable.
31058 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
31059 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
31060 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
31061 (vtable_pointer_value_to_vtable): Break out from ...; handle also
31063 (vtable_pointer_value_to_binfo): ... here.
31064 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
31066 2014-02-03 Teresa Johnson <tejohnson@google.com>
31068 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
31069 redef of outer loop index variable.
31071 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
31075 * doc/extend.texi (Function Attributes): Typo.
31077 2014-02-03 Cong Hou <congh@google.com>
31079 PR tree-optimization/60000
31080 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
31081 if the vectorized statement is a store. A store statement can only
31082 appear at the end of pattern statements.
31084 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
31086 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
31087 (ix86_option_override_internal): Default long double to 64-bit for
31088 32-bit Bionic and to 128-bit for 64-bit Bionic.
31090 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
31091 TARGET_LONG_DOUBLE_128 is true.
31092 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
31094 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
31095 (mlong-double-64): Negate -mlong-double-128.
31096 (mlong-double-128): New option.
31098 * config/i386/i386-c.c (ix86_target_macros): Define
31099 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
31101 * doc/invoke.texi: Document -mlong-double-128.
31103 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
31105 PR rtl-optimization/60024
31106 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
31108 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
31110 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
31112 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
31114 PR rtl-optimization/57662
31115 * sel-sched.c (code_motion_path_driver): Do not mark already not
31116 existing blocks in the visiting bitmap.
31118 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
31120 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
31121 on the insn being emitted.
31123 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
31124 Will Deacon <will.deacon@arm.com>
31126 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
31128 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31130 * config/arm/arm-tables.opt: Regenerate.
31132 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31134 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
31135 for vector types other than V16QImode.
31136 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
31137 define_expand, and call altivec_expand_vec_perm_le when producing
31138 code with little endian element order.
31139 (*altivec_vperm_<mode>_internal): New insn having previous
31140 behavior of altivec_vperm_<mode>.
31141 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
31142 altivec_expand_vec_perm_le when producing code with little endian
31144 (*altivec_vperm_<mode>_uns_internal): New insn having previous
31145 behavior of altivec_vperm_<mode>_uns.
31147 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31149 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
31150 (altivec_vsumsws): Add handling for -maltivec=be with a little
31152 (altivec_vsumsws_direct): New.
31153 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
31154 gen_altivec_vsumsws.
31156 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
31158 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
31159 vtable_pointer_value_to_binfo): New functions.
31160 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
31161 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
31163 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
31165 * config/nios2/nios2.md (load_got_register): Initialize GOT
31166 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
31167 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
31169 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
31171 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
31172 preserverd by passthrough, do not propagate the type.
31174 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
31176 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
31177 (mips_atomic_assign_expand_fenv): New function.
31178 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
31180 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
31182 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
31183 (__builtin_mips_set_fcsr): Likewise.
31184 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
31185 MIPS_USI_FTYPE_VOID.
31186 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
31187 (mips16_expand_set_fcsr): Likewise.
31188 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
31189 (mips16_set_fcsr_stub): Likewise.
31190 (mips16_get_fcsr_one_only_stub): New class.
31191 (mips16_set_fcsr_one_only_stub): Likewise.
31192 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
31193 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
31194 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
31195 (hard_float): New availability predicate.
31196 (mips_builtins): Add get_fcsr and set_fcsr.
31197 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
31198 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
31199 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
31200 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
31201 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
31204 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
31206 * config/mips/mips.c (mips_one_only_stub): New class.
31207 (mips_need_mips16_rdhwr_p): Replace with...
31208 (mips16_rdhwr_stub): ...this new variable.
31209 (mips16_stub_call_address): New function.
31210 (mips16_rdhwr_one_only_stub): New class.
31211 (mips_expand_thread_pointer): Use mips16_stub_call_address.
31212 (mips_output_mips16_rdhwr): Delete.
31213 (mips_finish_stub): New function.
31214 (mips_code_end): Use it to handle rdhwr stubs.
31216 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
31219 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
31220 when calculating size of integer atomic types.
31222 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
31224 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
31226 2014-02-01 Jakub Jelinek <jakub@redhat.com>
31228 PR tree-optimization/60003
31229 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
31230 * profile.c (branch_prob): Use gimple_call_builtin_p
31231 to check for BUILT_IN_SETJMP_RECEIVER.
31232 * tree-inline.c (copy_bb): Call notice_special_calls.
31234 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
31237 * lra-constraints.c (process_alt_operands): Update reload_sum only
31240 2014-01-31 Richard Henderson <rth@redhat.com>
31242 PR middle-end/60004
31243 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
31244 until after else_eh is processed.
31246 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
31248 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
31249 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
31250 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
31251 in smmintrin.h, remove them.
31252 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
31253 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
31254 * config/i386/i386.md (ROUND_SAE): Fix value.
31255 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
31256 (const48_operand): New.
31257 * config/i386/subst.md (round), (round_expand): Use
31258 const_4_or_8_to_11_operand.
31259 (round_saeonly), (round_saeonly_expand): Use const48_operand.
31261 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
31263 * config/i386/constraints.md (Yk): Swap meaning with k.
31264 * config/i386/i386.md (movhi_internal): Change Yk to k.
31265 (movqi_internal): Ditto.
31266 (*k<logic><mode>): Ditto.
31269 (kandn<mode>): Ditto.
31270 (*<code>hi_1): Ditto.
31271 (*<code>qi_1): Ditto.
31272 (kxnor<mode>): Ditto.
31273 (kortestzhi): Ditto.
31274 (kortestchi): Ditto.
31276 (*one_cmplhi2_1): Ditto.
31277 (*one_cmplqi2_1): Ditto.
31278 * config/i386/sse.md (): Change k to Yk.
31279 (avx512f_load<mode>_mask): Ditto.
31280 (avx512f_blendm<mode>): Ditto.
31281 (avx512f_store<mode>_mask): Ditto.
31282 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
31283 (avx512f_storedqu<mode>_mask): Ditto.
31284 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
31286 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
31287 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
31288 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
31289 (avx512f_maskcmp<mode>3): Ditto.
31290 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
31291 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
31292 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
31293 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
31294 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
31295 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
31296 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
31297 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
31298 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
31299 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
31300 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
31301 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
31302 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
31303 (vec_extract_lo_<mode>_maskm): Ditto.
31304 (vec_extract_hi_<mode>_maskm): Ditto.
31305 (avx512f_vternlog<mode>_mask): Ditto.
31306 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
31307 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
31308 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
31309 (avx512f_<code>v8div16qi2_mask): Ditto.
31310 (avx512f_<code>v8div16qi2_mask_store): Ditto.
31311 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
31312 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
31313 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
31314 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
31315 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31316 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31317 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31318 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31319 (avx512cd_maskb_vec_dupv8di): Ditto.
31320 (avx512cd_maskw_vec_dupv16si): Ditto.
31321 (avx512f_vpermi2var<mode>3_maskz): Ditto.
31322 (avx512f_vpermi2var<mode>3_mask): Ditto.
31323 (avx512f_vpermi2var<mode>3_mask): Ditto.
31324 (avx512f_vpermt2var<mode>3_maskz): Ditto.
31325 (*avx512f_gathersi<mode>): Ditto.
31326 (*avx512f_gathersi<mode>_2): Ditto.
31327 (*avx512f_gatherdi<mode>): Ditto.
31328 (*avx512f_gatherdi<mode>_2): Ditto.
31329 (*avx512f_scattersi<mode>): Ditto.
31330 (*avx512f_scatterdi<mode>): Ditto.
31331 (avx512f_compress<mode>_mask): Ditto.
31332 (avx512f_compressstore<mode>_mask): Ditto.
31333 (avx512f_expand<mode>_mask): Ditto.
31334 * config/i386/subst.md (mask): Change k to Yk.
31335 (mask_scalar_merge): Ditto.
31338 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
31340 * doc/extend.texi (Vector Extensions): Document ?: in C++.
31342 2014-01-31 Richard Biener <rguenther@suse.de>
31344 PR middle-end/59990
31345 * builtins.c (fold_builtin_memory_op): Make sure to not
31346 use a floating-point mode or a boolean or enumeral type for
31347 the copy operation.
31349 2014-01-30 DJ Delorie <dj@redhat.com>
31351 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
31352 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
31353 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
31354 whenever main() has an epilogue.
31356 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31358 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
31359 unused variable "field".
31360 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
31361 (vsx_mergeh_<mode>): Likewise.
31362 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
31363 (altivec_vmrghh): Likewise.
31364 (altivec_vmrghw): Likewise.
31365 (altivec_vmrglb): Likewise.
31366 (altivec_vmrglh): Likewise.
31367 (altivec_vmrglw): Likewise.
31368 (altivec_vspltb): Add missing uses.
31369 (altivec_vsplth): Likewise.
31370 (altivec_vspltw): Likewise.
31371 (altivec_vspltsf): Likewise.
31373 2014-01-30 Jakub Jelinek <jakub@redhat.com>
31376 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
31377 frame related instructions.
31379 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
31381 PR rtl-optimization/59959
31382 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
31383 any reload of register whose subreg is invalid.
31385 2014-01-30 Jakub Jelinek <jakub@redhat.com>
31387 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
31388 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
31389 Add missing return type - void.
31391 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31393 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
31394 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
31395 remove element index adjustment for endian (now handled in vsx.md
31397 (altivec_expand_vec_perm_const): Use
31398 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
31399 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
31400 (vsx_xxspltw_<mode>): Adjust element index for little endian.
31401 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
31402 define_expand and a new define_insn *altivec_vspltb_internal;
31403 adjust for -maltivec=be on a little endian target.
31404 (altivec_vspltb_direct): New.
31405 (altivec_vsplth): Divide into a define_expand and a new
31406 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
31407 little endian target.
31408 (altivec_vsplth_direct): New.
31409 (altivec_vspltw): Divide into a define_expand and a new
31410 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
31411 little endian target.
31412 (altivec_vspltw_direct): New.
31413 (altivec_vspltsf): Divide into a define_expand and a new
31414 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
31415 a little endian target.
31417 2014-01-30 Richard Biener <rguenther@suse.de>
31419 PR tree-optimization/59993
31420 * tree-ssa-forwprop.c (associate_pointerplus): Check we
31421 can propagate form the earlier stmt and avoid the transform
31422 when the intermediate result is needed.
31424 2014-01-30 Alangi Derick <alangiderick@gmail.com>
31426 * README.Portability: Fix typo.
31428 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
31430 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
31431 comparison_operator with ordered_comparison_operator.
31433 2014-01-30 Nick Clifton <nickc@redhat.com>
31435 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
31436 Rename to mn10300_store_multiple_regs.
31437 * config/mn10300/mn10300.c: Likewise.
31438 * config/mn10300/mn10300.md (store_movm): Fix typo: call
31439 store_multiple_regs.
31440 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
31441 Call mn10300_store_multiple_regs.
31443 2014-01-30 Nick Clifton <nickc@redhat.com>
31444 DJ Delorie <dj@redhat.com>
31446 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
31447 %fp 2 to keep registers after it properly word-aligned.
31448 (rl78_alloc_physical_registers_umul): Handle the case where both
31449 input operands are the same.
31451 2014-01-30 Richard Biener <rguenther@suse.de>
31453 PR tree-optimization/59903
31454 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
31457 2014-01-30 Jason Merrill <jason@redhat.com>
31460 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
31463 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
31465 2014-01-30 Richard Biener <rguenther@suse.de>
31467 PR tree-optimization/59951
31468 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
31470 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
31473 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
31474 SFmode to DFmode case.
31476 2014-01-29 DJ Delorie <dj@redhat.com>
31478 * config/msp430/msp430.opt (-minrt): New.
31479 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
31481 (ENDFILE_SPEC): Likewise.
31483 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
31485 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
31486 (estimate_function_body_sizes): Use it.
31488 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
31491 * dwarf2out.c (is_cxx_auto): New.
31492 (is_base_type): Use it.
31493 (gen_type_die_with_usage): Likewise.
31495 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31497 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
31498 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
31499 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
31500 -maltivec=be with LE targets.
31501 (vsx_mergeh_<mode>): Likewise.
31502 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
31503 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
31504 (altivec_vmrghb): Replace with define_expand and new
31505 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
31506 (altivec_vmrghb_direct): New define_insn.
31507 (altivec_vmrghh): Replace with define_expand and new
31508 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
31509 (altivec_vmrghh_direct): New define_insn.
31510 (altivec_vmrghw): Replace with define_expand and new
31511 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
31512 (altivec_vmrghw_direct): New define_insn.
31513 (*altivec_vmrghsf): Adjust for endianness.
31514 (altivec_vmrglb): Replace with define_expand and new
31515 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
31516 (altivec_vmrglb_direct): New define_insn.
31517 (altivec_vmrglh): Replace with define_expand and new
31518 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
31519 (altivec_vmrglh_direct): New define_insn.
31520 (altivec_vmrglw): Replace with define_expand and new
31521 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
31522 (altivec_vmrglw_direct): New define_insn.
31523 (*altivec_vmrglsf): Adjust for endianness.
31524 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31525 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31526 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31527 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31528 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31529 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31530 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31531 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31533 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
31535 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
31536 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
31539 2014-01-29 Richard Biener <rguenther@suse.de>
31541 PR tree-optimization/58742
31542 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
31543 associate_pointerplus_align.
31544 (associate_pointerplus_diff): New function.
31545 (associate_pointerplus): Likewise. Call associate_pointerplus_align
31546 and associate_pointerplus_diff.
31548 2014-01-29 Richard Biener <rguenther@suse.de>
31550 * lto-streamer.h (LTO_major_version): Bump to 3.
31551 (LTO_minor_version): Reset to 0.
31553 2014-01-29 Renlin Li <Renlin.Li@arm.com>
31555 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
31556 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
31557 (arm_file_start): Generate correct asm header for armv7ve.
31558 * config/arm/bpabi.h: Add multilib support for armv7ve.
31559 * config/arm/driver-arm.c: Change the architectures of cortex-a7
31560 and cortex-a15 to armv7ve.
31561 * config/arm/t-aprofile: Add multilib support for armv7ve.
31562 * doc/invoke.texi: Document -march=armv7ve.
31564 2014-01-29 Richard Biener <rguenther@suse.de>
31566 PR tree-optimization/58742
31567 * tree-ssa-forwprop.c (associate_plusminus): Return true
31568 if we changed sth, defer EH cleanup to ...
31569 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
31570 (simplify_mult): New function.
31572 2014-01-29 Jakub Jelinek <jakub@redhat.com>
31574 PR middle-end/59917
31575 PR tree-optimization/59920
31576 * tree.c (build_common_builtin_nodes): Remove
31577 __builtin_setjmp_dispatcher initialization.
31578 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
31579 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
31580 instead of gsi_after_labels + manually skipping debug stmts.
31581 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
31582 ignore bbs with IFN_ABNORMAL_DISPATCHER.
31583 * tree-inline.c (copy_edges_for_bb): Remove
31584 can_make_abnormal_goto argument, instead add abnormal_goto_dest
31585 argument. Ignore computed_goto_p stmts. Don't call
31586 make_abnormal_goto_edges. If a call might need abnormal edges
31587 for non-local gotos, see if it already has an edge to
31588 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
31589 with true argument, don't do anything then, otherwise add
31590 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
31591 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
31593 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
31594 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
31595 (lower_stmt): Don't set data->calls_builtin_setjmp.
31596 (lower_builtin_setjmp): Adjust comment.
31597 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
31598 * tree-cfg.c (found_computed_goto): Remove.
31599 (factor_computed_gotos): Remove.
31600 (make_goto_expr_edges): Return bool, true for computed gotos.
31601 Don't call make_abnormal_goto_edges.
31602 (build_gimple_cfg): Don't set found_computed_goto, don't call
31603 factor_computed_gotos.
31604 (computed_goto_p): No longer static.
31605 (make_blocks): Don't set found_computed_goto.
31606 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
31607 (make_edges): If make_goto_expr_edges returns true, push bb
31608 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
31609 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
31610 vector. Record mapping between bbs and OpenMP regions if there
31611 are any, adjust make_gimple_omp_edges caller. Call
31612 handle_abnormal_edges.
31613 (make_abnormal_goto_edges): Remove.
31614 * tree-cfg.h (make_abnormal_goto_edges): Remove.
31615 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
31616 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
31617 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
31618 * internal-fn.def (ABNORMAL_DISPATCHER): New.
31619 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
31620 filling *region also set *region_idx to (*region)->entry->index.
31623 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
31624 For REGs set ORIGINAL_REGNO.
31626 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
31628 * doc/md.texi: Mention that a target shouldn't implement
31629 vec_widen_(s|u)mul_even/odd pair if it is less efficient
31632 2014-01-29 Jakub Jelinek <jakub@redhat.com>
31634 PR tree-optimization/59594
31635 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
31636 a copy of the datarefs vector rather than the vector itself.
31638 2014-01-28 Jason Merrill <jason@redhat.com>
31641 * dwarf2out.c (auto_die): New static.
31642 (gen_type_die_with_usage): Handle C++1y 'auto'.
31643 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
31646 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
31649 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
31650 (SPEC_X32): Likewise.
31651 (SPEC_64): Likewise.
31652 * config/i386/i386.c (ix86_option_override_internal): Turn off
31653 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
31655 (x86_file_start): Output .code16gcc for TARGET_16BIT.
31656 * config/i386/i386.h (TARGET_16BIT): New macro.
31657 (TARGET_16BIT_P): Likewise.
31658 * config/i386/i386.opt: Add m16.
31659 * doc/invoke.texi: Document -m16.
31661 2014-01-28 Jakub Jelinek <jakub@redhat.com>
31663 PR preprocessor/59935
31664 * input.c (location_get_source_line): Bail out on when line number
31665 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
31667 2014-01-28 Richard Biener <rguenther@suse.de>
31669 PR tree-optimization/58742
31670 * tree-ssa-forwprop.c (associate_plusminus): Handle
31671 pointer subtraction of the form (T)(P + A) - (T)P.
31673 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31675 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
31678 2014-01-28 Richard Biener <rguenther@suse.de>
31681 2014-01-28 Richard Biener <rguenther@suse.de>
31683 PR rtl-optimization/45364
31684 PR rtl-optimization/59890
31685 * var-tracking.c (local_get_addr_clear_given_value): Handle
31686 already cleared slot.
31687 (val_reset): Handle not allocated local_get_addr_cache.
31688 (vt_find_locations): Use post-order on the inverted CFG.
31690 2014-01-28 Richard Biener <rguenther@suse.de>
31692 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
31694 2014-01-28 Richard Biener <rguenther@suse.de>
31696 PR rtl-optimization/45364
31697 PR rtl-optimization/59890
31698 * var-tracking.c (local_get_addr_clear_given_value): Handle
31699 already cleared slot.
31700 (val_reset): Handle not allocated local_get_addr_cache.
31701 (vt_find_locations): Use post-order on the inverted CFG.
31703 2014-01-28 Alan Modra <amodra@gmail.com>
31705 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
31706 * configure.ac <recursive call for build != host>: Define
31707 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
31708 and LD_FOR_BUILD too.
31709 * configure: Regenerate.
31711 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
31713 * config/i386/i386.c (get_builtin_code_for_version): Separate
31714 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
31715 Broadwell from Haswell.
31717 2014-01-27 Steve Ellcey <sellcey@mips.com>
31719 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31720 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
31721 * config/mips/mips.c (mips_option_override): Change setting
31723 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
31724 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
31725 Change from Mask to Var.
31727 2014-01-27 Jeff Law <law@redhat.com>
31729 * ipa-inline.c (inline_small_functions): Fix typo.
31731 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
31733 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
31734 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
31735 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
31736 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
31737 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
31738 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
31739 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
31740 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
31741 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
31742 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
31743 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
31744 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
31745 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
31746 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
31747 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
31748 (_mm512_storeu_epi64): Ditto.
31749 (_mm512_cmpge_epi32_mask): Ditto.
31750 (_mm512_cmpge_epu32_mask): Ditto.
31751 (_mm512_cmpge_epi64_mask): Ditto.
31752 (_mm512_cmpge_epu64_mask): Ditto.
31753 (_mm512_cmple_epi32_mask): Ditto.
31754 (_mm512_cmple_epu32_mask): Ditto.
31755 (_mm512_cmple_epi64_mask): Ditto.
31756 (_mm512_cmple_epu64_mask): Ditto.
31757 (_mm512_cmplt_epi32_mask): Ditto.
31758 (_mm512_cmplt_epu32_mask): Ditto.
31759 (_mm512_cmplt_epi64_mask): Ditto.
31760 (_mm512_cmplt_epu64_mask): Ditto.
31761 (_mm512_cmpneq_epi32_mask): Ditto.
31762 (_mm512_cmpneq_epu32_mask): Ditto.
31763 (_mm512_cmpneq_epi64_mask): Ditto.
31764 (_mm512_cmpneq_epu64_mask): Ditto.
31765 (_mm512_expand_pd): Ditto.
31766 (_mm512_expand_ps): Ditto.
31767 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
31768 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
31769 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
31770 * config/i386/i386.c (ix86_builtins): Add
31771 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
31772 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
31773 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
31774 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
31775 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
31776 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
31777 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
31778 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
31779 IX86_BUILTIN_PMOVUSQW512_MEM.
31780 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
31781 __builtin_ia32_pmovsqd512mem_mask,
31782 __builtin_ia32_pmovqd512mem_mask,
31783 __builtin_ia32_pmovusqw512mem_mask,
31784 __builtin_ia32_pmovsqw512mem_mask,
31785 __builtin_ia32_pmovqw512mem_mask,
31786 __builtin_ia32_pmovusdw512mem_mask,
31787 __builtin_ia32_pmovsdw512mem_mask,
31788 __builtin_ia32_pmovdw512mem_mask,
31789 __builtin_ia32_pmovqb512mem_mask,
31790 __builtin_ia32_pmovusqb512mem_mask,
31791 __builtin_ia32_pmovsqb512mem_mask,
31792 __builtin_ia32_pmovusdb512mem_mask,
31793 __builtin_ia32_pmovsdb512mem_mask,
31794 __builtin_ia32_pmovdb512mem_mask.
31795 (bdesc_args): Add __builtin_ia32_expanddf512,
31796 __builtin_ia32_expandsf512.
31797 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
31798 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
31799 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
31800 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
31801 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
31802 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
31803 (avx512f_<code>v8div16qi2_mask_store): This.
31804 (avx512f_expand<mode>): New.
31806 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
31808 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
31810 (_mm512_mask_prefetch_i64gather_pd): Ditto.
31811 (_mm512_prefetch_i32scatter_pd): Ditto.
31812 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
31813 (_mm512_prefetch_i64scatter_pd): Ditto.
31814 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
31815 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
31816 (_mm512_mask_prefetch_i64gather_ps): Ditto.
31817 (_mm512_prefetch_i32scatter_ps): Ditto.
31818 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
31819 (_mm512_prefetch_i64scatter_ps): Ditto.
31820 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
31821 * config/i386/i386-builtin-types.def: Define
31822 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
31823 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
31824 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
31825 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
31826 IX86_BUILTIN_SCATTERPFQPD.
31827 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
31828 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
31829 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
31830 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
31831 __builtin_ia32_scatterpfqps.
31832 (ix86_expand_builtin): Expand new built-ins.
31833 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
31834 fix memory access data type.
31835 (*avx512pf_gatherpf<mode>_mask): Ditto.
31836 (*avx512pf_gatherpf<mode>): Ditto.
31837 (avx512pf_scatterpf<mode>): Ditto.
31838 (*avx512pf_scatterpf<mode>_mask): Ditto.
31839 (*avx512pf_scatterpf<mode>): Ditto.
31840 (GATHER_SCATTER_SF_MEM_MODE): New.
31841 (avx512pf_gatherpf<mode>df): Ditto.
31842 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31843 (*avx512pf_scatterpf<mode>df): Ditto.
31845 2014-01-27 Jakub Jelinek <jakub@redhat.com>
31848 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
31849 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
31852 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
31854 * common/config/arm/arm-common.c
31855 (arm_rewrite_mcpu): Handle multiple names.
31857 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31859 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
31861 * gimple-builder.h (create_gimple_tmp): Delete.
31863 2014-01-27 Christian Bruel <christian.bruel@st.com>
31865 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
31868 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
31870 * config/pa/pa.md (call): Generate indirect long calls to non-local
31871 functions when outputing 32-bit code.
31872 (call_value): Likewise except for special call to buggy powf function.
31874 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
31875 portable runtime and PIC indirect calls.
31876 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
31877 and PIC call sequences. Use ldo instead of blr to set return register
31878 in PIC call sequence.
31880 2014-01-25 Walter Lee <walt@tilera.com>
31882 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
31883 avoid clobbering a live register.
31885 2014-01-25 Walter Lee <walt@tilera.com>
31887 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
31888 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
31889 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
31890 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
31892 2014-01-25 Walter Lee <walt@tilera.com>
31894 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
31895 arguments on even registers.
31896 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
31898 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
31899 (BIGGEST_ALIGNMENT): Ditto.
31900 (BIGGEST_FIELD_ALIGNMENT): Ditto.
31902 2014-01-25 Walter Lee <walt@tilera.com>
31904 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
31905 insns before bundling.
31906 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
31908 2014-01-25 Walter Lee <walt@tilera.com>
31910 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
31911 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
31912 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
31914 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31916 * config/mips/constraints.md (kl): Delete.
31917 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31918 define expands, using...
31919 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31920 instructions for MIPS16.
31921 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31922 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31924 2014-01-25 Walter Lee <walt@tilera.com>
31926 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31930 2014-01-25 Walter Lee <walt@tilera.com>
31932 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31933 (TARGET_EXPAND_TO_RTL_HOOK): Define.
31935 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31937 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31940 2014-01-25 Jakub Jelinek <jakub@redhat.com>
31942 * print-rtl.c (in_call_function_usage): New var.
31943 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31944 EXPR_LIST mode as mode and not as reg note name.
31946 PR middle-end/59561
31947 * cfgloopmanip.c (copy_loop_info): If
31948 loop->warned_aggressive_loop_optimizations, make sure
31949 the flag is set in target loop too.
31951 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
31953 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31955 * builtins.def: Likewise.
31956 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31957 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31958 * ira.c (ira_setup_eliminable_regset): Likewise.
31959 * omp-low.c (gate_expand_omp): Likewise.
31960 (execute_lower_omp): Likewise.
31961 (diagnose_sb_0): Likewise.
31962 (gate_diagnose_omp_blocks): Likewise.
31963 (simd_clone_clauses_extract): Likewise.
31966 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31968 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31969 correction for little endian...
31970 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31973 2014-01-24 Jeff Law <law@redhat.com>
31975 PR tree-optimization/59919
31976 * tree-vrp.c (find_assert_locations_1): Do not register asserts
31977 for non-returning calls.
31979 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
31981 * common/config/aarch64/aarch64-common.c
31982 (aarch64_rewrite_mcpu): Handle multiple names.
31983 * config/aarch64/aarch64.h
31984 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31986 2014-01-24 Dodji Seketeli <dodji@redhat.com>
31988 * input.c (add_file_to_cache_tab): Handle the case where fopen
31991 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
31994 * config/i386/i386.md (pushsf splitter): Get stack adjustment
31995 from push operand if code of push isn't PRE_DEC.
31997 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
32000 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
32001 -mquad-memory-atomic. Update -mquad-memory documentation to say
32002 it is only used for non-atomic loads/stores.
32004 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
32005 -mquad-memory or -mquad-memory-atomic switches.
32007 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
32008 -mquad-memory-atomic to ISA 2.07 support.
32010 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
32011 to separate support of normal quad word memory operations (ldq, stq)
32012 from the atomic quad word memory operations.
32014 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
32015 support to separate non-atomic quad word operations from atomic
32016 quad word operations. Disable non-atomic quad word operations in
32017 little endian mode so that we don't have to swap words after the
32018 load and before the store.
32019 (quad_load_store_p): Add comment about atomic quad word support.
32020 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
32021 options printed with -mdebug=reg.
32023 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
32024 -mquad-memory-atomic as the test for whether we have quad word
32025 atomic instructions.
32026 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
32027 or -mp8-vector are used, allow byte/half-word atomic operations.
32029 * config/rs6000/sync.md (load_lockedti): Insure that the address
32030 is a proper indexed or indirect address for the lqarx instruction.
32031 On little endian systems, swap the hi/lo registers after the lqarx
32033 (load_lockedpti): Use indexed_or_indirect_operand predicate to
32034 insure the address is valid for the lqarx instruction.
32035 (store_conditionalti): Insure that the address is a proper indexed
32036 or indirect address for the stqcrx. instruction. On little endian
32037 systems, swap the hi/lo registers before doing the stqcrx.
32039 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
32040 insure the address is valid for the stqcrx. instruction.
32042 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
32043 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
32044 type of quad memory support is available.
32046 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
32048 PR regression/59915
32049 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
32050 there is a danger of looping.
32052 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
32054 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32055 force flag_ira_loop_pressure if set via command line.
32057 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
32059 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
32060 (ashr_simd): New builtin handling DI mode.
32061 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
32062 (aarch64_sshr_simddi): New match pattern.
32063 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
32064 (vshrd_n_s64): Likewise.
32065 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
32067 2014-01-23 Nick Clifton <nickc@redhat.com>
32069 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
32070 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
32071 favour of mcu specific scripts.
32072 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
32075 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
32076 Alex Velenko <Alex.Velenko@arm.com>
32078 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
32079 (vaddv_s16): Likewise.
32080 (vaddv_s32): Likewise.
32081 (vaddv_u8): Likewise.
32082 (vaddv_u16): Likewise.
32083 (vaddv_u32): Likewise.
32084 (vaddvq_s8): Likewise.
32085 (vaddvq_s16): Likewise.
32086 (vaddvq_s32): Likewise.
32087 (vaddvq_s64): Likewise.
32088 (vaddvq_u8): Likewise.
32089 (vaddvq_u16): Likewise.
32090 (vaddvq_u32): Likewise.
32091 (vaddvq_u64): Likewise.
32092 (vaddv_f32): Likewise.
32093 (vaddvq_f32): Likewise.
32094 (vaddvq_f64): Likewise.
32095 (vmaxv_f32): Likewise.
32096 (vmaxv_s8): Likewise.
32097 (vmaxv_s16): Likewise.
32098 (vmaxv_s32): Likewise.
32099 (vmaxv_u8): Likewise.
32100 (vmaxv_u16): Likewise.
32101 (vmaxv_u32): Likewise.
32102 (vmaxvq_f32): Likewise.
32103 (vmaxvq_f64): Likewise.
32104 (vmaxvq_s8): Likewise.
32105 (vmaxvq_s16): Likewise.
32106 (vmaxvq_s32): Likewise.
32107 (vmaxvq_u8): Likewise.
32108 (vmaxvq_u16): Likewise.
32109 (vmaxvq_u32): Likewise.
32110 (vmaxnmv_f32): Likewise.
32111 (vmaxnmvq_f32): Likewise.
32112 (vmaxnmvq_f64): Likewise.
32113 (vminv_f32): Likewise.
32114 (vminv_s8): Likewise.
32115 (vminv_s16): Likewise.
32116 (vminv_s32): Likewise.
32117 (vminv_u8): Likewise.
32118 (vminv_u16): Likewise.
32119 (vminv_u32): Likewise.
32120 (vminvq_f32): Likewise.
32121 (vminvq_f64): Likewise.
32122 (vminvq_s8): Likewise.
32123 (vminvq_s16): Likewise.
32124 (vminvq_s32): Likewise.
32125 (vminvq_u8): Likewise.
32126 (vminvq_u16): Likewise.
32127 (vminvq_u32): Likewise.
32128 (vminnmv_f32): Likewise.
32129 (vminnmvq_f32): Likewise.
32130 (vminnmvq_f64): Likewise.
32132 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
32134 * config/aarch64/aarch64-simd.md
32135 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
32136 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
32137 (*aarch64_mul3_elt<mode>): Likewise.
32138 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
32139 (*aarch64_mul3_elt_to_64v2df): Likewise.
32140 (*aarch64_mla_elt<mode>): Likewise.
32141 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
32142 (*aarch64_mls_elt<mode>): Likewise.
32143 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
32144 (*aarch64_fma4_elt<mode>): Likewise.
32145 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
32146 (*aarch64_fma4_elt_to_64v2df): Likewise.
32147 (*aarch64_fnma4_elt<mode>): Likewise.
32148 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
32149 (*aarch64_fnma4_elt_to_64v2df): Likewise.
32150 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
32151 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
32152 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32153 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32154 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
32155 (aarch64_sqdmull_lane<mode>_internal): Likewise.
32156 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
32158 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
32160 * config/aarch64/aarch64-simd.md
32161 (aarch64_be_checked_get_lane<mode>): New define_expand.
32162 * config/aarch64/aarch64-simd-builtins.def
32163 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
32164 New builtin definition.
32165 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
32166 Use new safe be builtin.
32168 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
32170 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
32172 (aarch64_be_st1<mode>): Likewise.
32173 (aarch_ld1<VALL:mode>): Define_expand modified.
32174 (aarch_st1<VALL:mode>): Likewise.
32175 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
32176 (UNSPEC_ST1): Likewise.
32178 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
32180 * config/microblaze/microblaze.md: Add trap insn and attribute
32182 2014-01-23 Dodji Seketeli <dodji@redhat.com>
32184 PR preprocessor/58580
32185 * input.h (location_get_source_line): Take an additional line_size
32187 (void diagnostics_file_cache_fini): Declare new function.
32188 * input.c (struct fcache): New type.
32189 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
32190 New static constants.
32191 (diagnostic_file_cache_init, total_lines_num)
32192 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
32193 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
32194 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
32195 (get_next_line, read_next_line, goto_next_line, read_line_num):
32196 New static function definitions.
32197 (diagnostic_file_cache_fini): New function.
32198 (location_get_source_line): Take an additional output line_len
32199 parameter. Re-write using lookup_or_add_file_to_cache_tab and
32201 * diagnostic.c (diagnostic_finish): Call
32202 diagnostic_file_cache_fini.
32203 (adjust_line): Take an additional input parameter for the length
32204 of the line, rather than calculating it with strlen.
32205 (diagnostic_show_locus): Adjust the use of
32206 location_get_source_line and adjust_line with respect to their new
32207 signature. While displaying a line now, do not stop at the first
32208 null byte. Rather, display the zero byte as a space and keep
32209 going until we reach the size of the line.
32210 * Makefile.in: Add vec.o to OBJS-libcommon
32212 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
32213 Ilya Tocar <ilya.tocar@intel.com>
32215 * config/i386/avx512fintrin.h (_mm512_kmov): New.
32216 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
32217 (__builtin_ia32_kmov16): Ditto.
32218 * config/i386/i386.md (UNSPEC_KMOV): New.
32221 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
32223 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
32224 (_mm512_storeu_si512): Ditto.
32226 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
32229 * rtl.h (get_referenced_operands): Declare.
32230 * recog.c (get_referenced_operands): New function.
32231 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
32232 operands have been referenced when recording LO_SUM references.
32234 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
32236 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
32238 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
32240 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
32241 Enable for generic and recent AMD targets.
32243 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
32245 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
32246 ARG_SIZE note when adjustment was eliminated.
32248 2014-01-22 Jeff Law <law@redhat.com>
32250 PR tree-optimization/59597
32251 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
32252 in file. Accept new argument REGISTERING and use it to modify
32253 dump output appropriately.
32254 (register_jump_thread): Corresponding changes.
32255 (mark_threaded_blocks): Reinstate code to cancel unprofitable
32256 thread paths involving joiner blocks. Add code to dump cancelled
32257 jump threading paths.
32259 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
32261 PR rtl-optimization/59477
32262 * lra-constraints.c (inherit_in_ebb): Process call for living hard
32263 regs. Update reloads_num and potential_reload_hard_regs for all insns.
32265 2014-01-22 Tom Tromey <tromey@redhat.com>
32267 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
32269 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
32271 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
32273 PR rtl-optimization/59896
32274 * lra-constraints.c (process_alt_operands): Check unused note for
32275 matched operands of insn with no output reloads.
32277 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
32279 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
32280 (mips_move_from_gpr_cost): Likewise.
32282 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
32284 PR rtl-optimization/59858
32285 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
32286 ira_class_hard_regs_num.
32287 (process_alt_operands): Increase reject for dying matched operand.
32289 2014-01-21 Jakub Jelinek <jakub@redhat.com>
32292 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
32293 smaller than size, perform several stores or loads and stores
32294 at dst + count - size to store or copy all of size bytes, rather
32295 than just last modesize bytes.
32297 2014-01-20 DJ Delorie <dj@redhat.com>
32299 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
32300 that CLOBBERs are REGs before propogating their values.
32302 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
32304 PR middle-end/59789
32305 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
32306 (cgraph_inline_failed_type): New function.
32307 * cgraph.h (DEFCIFCODE): Add type.
32308 (cgraph_inline_failed_type_t): New enum.
32309 (cgraph_inline_failed_type): New prototype.
32310 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
32311 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32312 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
32313 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
32314 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
32315 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
32316 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
32317 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
32318 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
32319 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
32320 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
32321 OPTIMIZATION_MISMATCH.
32322 * tree-inline.c (expand_call_inline): Emit errors during
32323 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
32325 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
32328 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
32329 mode attribute in insn output.
32331 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
32333 * output.h (output_constant): Delete.
32334 * varasm.c (output_constant): Make private.
32336 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
32338 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
32340 2014-01-20 Jakub Jelinek <jakub@redhat.com>
32342 PR middle-end/59860
32343 * tree.h (fold_builtin_strcat): New prototype.
32344 * builtins.c (fold_builtin_strcat): No longer static. Add len
32345 argument, if non-NULL, don't call c_strlen. Optimize
32346 directly into __builtin_memcpy instead of __builtin_strcpy.
32347 (fold_builtin_2): Adjust fold_builtin_strcat caller.
32348 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
32350 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
32352 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
32353 for SImode_address_operand operands, having only a REG argument.
32355 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
32357 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
32358 loader name using mbig-endian.
32359 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
32361 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
32363 * doc/invoke.texi (-march): Clarify documentation for AArch64.
32364 (-mtune): Likewise.
32367 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
32369 * config/aarch64/aarch64-protos.h
32370 (aarch64_cannot_change_mode_class_ptr): Declare.
32371 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
32372 aarch64_cannot_change_mode_class_ptr): New.
32373 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
32374 backend hook aarch64_cannot_change_mode_class.
32376 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
32378 * common/config/aarch64/aarch64-common.c
32379 (aarch64_handle_option): Don't handle any option order logic here.
32380 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
32381 selected_cpu, warn on architecture version mismatch.
32382 (aarch64_override_options): Fix parsing order for option strings.
32384 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32385 Iain Sandoe <iain@codesourcery.com>
32388 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
32389 warning. Amend comment to reflect current functionality.
32391 2014-01-20 Richard Biener <rguenther@suse.de>
32393 PR middle-end/59860
32394 * builtins.c (fold_builtin_strcat): Remove case better handled
32395 by tree-ssa-strlen.c.
32397 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
32399 * config/aarch64/aarch64.opt
32400 (mcpu, march, mtune): Make case-insensitive.
32402 2014-01-20 Jakub Jelinek <jakub@redhat.com>
32405 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
32406 if operands[1] is a REG or ZERO_EXTEND of a REG.
32408 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
32410 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
32412 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
32414 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
32415 long non-pic millicode calls.
32417 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32419 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
32421 2014-01-19 Kito Cheng <kito@0xlab.org>
32423 * builtins.c (expand_movstr): Check movstr expand done or fail.
32425 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
32426 H.J. Lu <hongjiu.lu@intel.com>
32429 * config/i386/i386.md (*lea<mode>): Zero-extend return register
32430 to DImode for zero-extended addresses.
32432 2014-01-19 Jakub Jelinek <jakub@redhat.com>
32434 PR rtl-optimization/57763
32435 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
32436 on the new indirect jump_insn and increment LABEL_NUSES (label).
32438 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
32442 * config.gcc (x86_archs): New variable.
32443 (x86_64_archs): Likewise.
32444 (x86_cpus): Likewise.
32445 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
32446 --with-arch/--with-cpu= options.
32447 Support --with-arch=/--with-cpu={nehalem,westmere,
32448 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
32450 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
32452 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
32453 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
32455 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
32457 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
32459 2014-01-18 Jakub Jelinek <jakub@redhat.com>
32462 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
32463 clear cpp_get_options (parse_in)->warn_unused_macros for
32464 ix86_target_macros_internal with cpp_define.
32466 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
32468 * jump.c (delete_related_insns): Keep (use (insn))s.
32469 * reorg.c (redundant_insn): Check for barriers too.
32471 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32473 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
32475 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
32477 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
32478 call to $$dyncall when TARGET_LONG_CALLS is true.
32480 2014-01-17 Jeff Law <law@redhat.com>
32482 * ree.c (combine_set_extension): Temporarily disable test for
32483 changing number of hard registers.
32485 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
32487 PR middle-end/58125
32488 * ipa-inline-analysis.c (inline_free_summary):
32489 Do not free summary of aliases.
32491 2014-01-17 Jakub Jelinek <jakub@redhat.com>
32493 PR middle-end/59706
32494 * gimplify.c (gimplify_expr): Use create_tmp_var
32495 instead of create_tmp_var_raw. If cond doesn't have
32496 integral type, don't add the IFN_ANNOTATE builtin at all.
32498 2014-01-17 Martin Jambor <mjambor@suse.cz>
32501 * ipa-cp.c (prev_edge_clone): New variable.
32502 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
32503 Also resize prev_edge_clone vector.
32504 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
32505 (ipcp_edge_removal_hook): New function.
32506 (ipcp_driver): Register ipcp_edge_removal_hook.
32508 2014-01-17 Andrew Pinski <apinski@cavium.com>
32509 Steve Ellcey <sellcey@mips.com>
32512 * config/mips/mips.c (mips_print_operand): Check operand mode instead
32515 2014-01-17 Jeff Law <law@redhat.com>
32517 PR middle-end/57904
32518 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
32519 so that pass_ccp runs first.
32521 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32523 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
32524 (ix86_adjust_cost): Use !TARGET_XXX.
32525 (do_reorder_for_imul): Likewise.
32526 (swap_top_of_ready_list): Likewise.
32527 (ix86_sched_reorder): Likewise.
32529 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32531 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32532 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
32533 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
32534 (intel_memset): New. Duplicate slm_memset.
32535 (intel_cost): New. Duplicate slm_cost.
32536 (m_INTEL): New macro.
32537 (processor_target_table): Add "intel".
32538 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
32539 with PROCESSOR_INTEL for "intel".
32540 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
32541 PROCESSOR_SILVERMONT.
32542 (ix86_issue_rate): Likewise.
32543 (ix86_adjust_cost): Likewise.
32544 (ia32_multipass_dfa_lookahead): Likewise.
32545 (swap_top_of_ready_list): Likewise.
32546 (ix86_sched_reorder): Likewise.
32547 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
32548 instead of TARGET_OPT_AGU.
32549 * config/i386/i386.h (TARGET_INTEL): New.
32550 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
32551 (processor_type): Add PROCESSOR_INTEL.
32552 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
32553 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
32555 2014-01-17 Marek Polacek <polacek@redhat.com>
32558 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
32561 2014-01-17 Richard Biener <rguenther@suse.de>
32563 PR tree-optimization/46590
32564 * opts.c (default_options_table): Add entries for
32565 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
32566 all enabled at -O1 but not for -Og.
32567 * common.opt (fbranch-count-reg): Remove Init(1).
32568 (fmove-loop-invariants): Likewise.
32569 (ftree-pta): Likewise.
32571 2014-01-17 Jakub Jelinek <jakub@redhat.com>
32573 * config/i386/i386.c (ix86_data_alignment): For compatibility with
32574 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
32575 decls to at least the GCC 4.8 used alignments.
32578 * tree-nested.c (convert_nonlocal_reference_stmt,
32579 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
32580 of GIMPLE_BIND stmts, adjust associated decls.
32582 2014-01-17 Richard Biener <rguenther@suse.de>
32584 PR tree-optimization/46590
32585 * vec.h (vec<>::bseach): New member function implementing
32586 binary search according to C89 bsearch.
32587 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
32588 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
32589 bitmap pointer again. Make accesses_in_loop a flat array.
32590 (mem_ref_obstack): New global.
32591 (outermost_indep_loop): Adjust for mem_ref->stored changes.
32592 (mark_ref_stored): Likewise.
32593 (ref_indep_loop_p_2): Likewise.
32594 (set_ref_stored_in_loop): New helper function.
32595 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
32596 (memref_free): Adjust.
32597 (record_mem_ref_loc): Simplify.
32598 (gather_mem_refs_stmt): Adjust.
32599 (sort_locs_in_loop_postorder_cmp): New function.
32600 (analyze_memory_references): Sort accesses_in_loop after
32601 loop postorder number.
32602 (find_ref_loc_in_loop_cmp): New function.
32603 (for_all_locs_in_loop): Find relevant cluster of locs in
32604 accesses_in_loop and iterate without recursion.
32605 (execute_sm): Avoid uninit warning.
32606 (struct ref_always_accessed): Simplify.
32607 (ref_always_accessed::operator ()): Likewise.
32608 (ref_always_accessed_p): Likewise.
32609 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
32610 loop postorder numbers here.
32611 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
32614 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
32617 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
32618 on decls for which assemble_alias has been called.
32620 2014-01-17 Nick Clifton <nickc@redhat.com>
32622 * config/msp430/msp430.opt: (mcpu): New option.
32623 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
32624 (msp430_option_override): Parse target_cpu. If the MCU name
32625 matches a generic string, clear target_mcu.
32626 (msp430_attr): Allow numeric interrupt values up to 63.
32627 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
32628 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
32630 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
32632 * config/msp430/msp430.md (popm): Use %J rather than %I.
32633 (addsi3): Use msp430_nonimmediate_operand for operand 2.
32634 (addhi_cy_i): Use immediate_operand for operand 2.
32635 * doc/invoke.texi: Document -mcpu option.
32637 2014-01-17 Richard Biener <rguenther@suse.de>
32639 PR rtl-optimization/38518
32640 * df.h (df_analyze_loop): Declare.
32641 * df-core.c: Include cfgloop.h.
32642 (df_analyze_1): Split out main part of df_analyze.
32643 (df_analyze): Adjust.
32644 (loop_inverted_post_order_compute): New function.
32645 (loop_post_order_compute): Likewise.
32646 (df_analyze_loop): New function avoiding whole-function
32647 postorder computes.
32648 * loop-invariant.c (find_defs): Use df_analyze_loop.
32649 (find_invariants): Adjust.
32650 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
32652 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
32654 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
32655 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
32657 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32659 * ipa-ref.c (ipa_remove_stmt_references): Fix references
32660 traversal when removing references.
32662 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
32665 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
32667 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
32669 PR middle-end/56791
32670 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
32671 pushing a reload for an autoinc when we had previously reloaded an
32672 inner part of the address.
32674 2014-01-16 Jakub Jelinek <jakub@redhat.com>
32676 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
32678 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
32679 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
32680 when not giving up or versioning for alias only because of
32682 (vect_analyze_data_ref_dependences): Set to true.
32683 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
32685 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
32686 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
32689 PR middle-end/58344
32690 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
32693 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
32694 operand 0 predicate for gathers, use a new pseudo as subtarget.
32696 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
32698 PR middle-end/59609
32699 * lra-constraints.c (process_alt_operands): Add printing debug info.
32700 Check absence of input/output reloads for matched operands too.
32702 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
32704 PR rtl-optimization/59835
32705 * ira.c (ira_init_register_move_cost): Increase cost for
32708 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
32710 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
32712 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
32715 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
32716 non-register objects. Use gen_(high/low)part more consistently.
32719 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
32722 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
32723 endian support, remove tests for WORDS_BIG_ENDIAN.
32724 (p8_mfvsrd_3_<mode>): Likewise.
32725 (reload_gpr_from_vsx<mode>): Likewise.
32726 (reload_gpr_from_vsxsf): Likewise.
32727 (p8_mfvsrd_4_disf): Likewise.
32729 2014-01-16 Richard Biener <rguenther@suse.de>
32731 PR rtl-optimization/46590
32732 * lcm.c (compute_antinout_edge): Use postorder iteration.
32733 (compute_laterin): Use inverted postorder iteration.
32735 2014-01-16 Nick Clifton <nickc@redhat.com>
32737 PR middle-end/28865
32738 * varasm.c (output_constant): Return the number of bytes actually
32740 (output_constructor_array_range): Update the field size with the
32741 number of bytes emitted by output_constant.
32742 (output_constructor_regular_field): Likewise. Also do not
32743 complain if the total number of bytes emitted is now greater
32744 than the expected fieldpos.
32745 * output.h (output_constant): Update prototype and descriptive comment.
32747 2014-01-16 Marek Polacek <polacek@redhat.com>
32749 PR middle-end/59827
32750 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
32751 it is error_mark_node.
32753 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
32755 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
32756 VALID_AVX256_REG_OR_OI_MODE.
32758 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
32760 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
32761 current procedure should be profiled.
32763 2014-01-15 Andrew Pinski <apinski@cavium.com>
32765 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
32766 of moving from/to the STACK_REG register class.
32768 2014-01-15 Richard Henderson <rth@redhat.com>
32771 * reginfo.c (global_regs_decl): Globalize.
32772 * rtl.h (global_regs_decl): Declare.
32773 * ira.c (do_reload): Diagnose frame_pointer_needed and it
32774 reserved via global_regs.
32776 2014-01-15 Teresa Johnson <tejohnson@google.com>
32778 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
32780 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
32782 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
32783 and vmulosh rather than call gen_vec_widen_smult_*.
32784 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
32785 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
32786 (vec_widen_smult_even_v16qi): Likewise.
32787 (vec_widen_umult_even_v8hi): Likewise.
32788 (vec_widen_smult_even_v8hi): Likewise.
32789 (vec_widen_umult_odd_v16qi): Likewise.
32790 (vec_widen_smult_odd_v16qi): Likewise.
32791 (vec_widen_umult_odd_v8hi): Likewise.
32792 (vec_widen_smult_odd_v8hi): Likewise.
32793 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
32794 vmuloub rather than call gen_vec_widen_umult_*.
32795 (vec_widen_umult_lo_v16qi): Likewise.
32796 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
32797 vmulosb rather than call gen_vec_widen_smult_*.
32798 (vec_widen_smult_lo_v16qi): Likewise.
32799 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
32800 rather than call gen_vec_widen_umult_*.
32801 (vec_widen_umult_lo_v8hi): Likewise.
32802 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
32803 rather than call gen_vec_widen_smult_*.
32804 (vec_widen_smult_lo_v8hi): Likewise.
32806 2014-01-15 Jeff Law <law@redhat.com>
32808 PR tree-optimization/59747
32809 * ree.c (find_and_remove_re): Properly handle case where a second
32810 eliminated extension requires widening a copy created for elimination
32811 of a prior extension.
32812 (combine_set_extension): Ensure that the number of hard regs needed
32813 for a destination register does not change when we widen it.
32815 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
32817 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
32818 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
32819 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
32820 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
32821 (avr-*-rtems*): Likewise.
32822 (bfin*-rtems*): Likewise.
32823 (moxie-*-rtems*): Likewise.
32824 (h8300-*-rtems*): Likewise.
32825 (i[34567]86-*-rtems*): Likewise.
32826 (lm32-*-rtems*): Likewise.
32827 (m32r-*-rtems*): Likewise.
32828 (m68k-*-rtems*): Likewise.
32829 (microblaze*-*-rtems*): Likewise.
32830 (mips*-*-rtems*): Likewise.
32831 (powerpc-*-rtems*): Likewise.
32832 (sh-*-rtems*): Likewise.
32833 (sparc-*-rtems*): Likewise.
32834 (sparc64-*-rtems*): Likewise.
32835 (v850-*-rtems*): Likewise.
32836 (m32c-*-rtems*): Likewise.
32838 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
32840 PR rtl-optimization/59511
32841 * ira.c (ira_init_register_move_cost): Use memory costs for some
32842 cases of register move cost calculations.
32843 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
32844 instead of BB frequency.
32845 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
32846 * lra-assigns.c (find_hard_regno_for): Ditto.
32848 2014-01-15 Richard Biener <rguenther@suse.de>
32850 PR tree-optimization/59822
32851 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
32852 (vectorizable_load): Use it to hoist defs of uses of invariant
32853 loads out of the loop.
32855 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
32856 Kugan Vivekanandarajah <kuganv@linaro.org>
32859 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
32862 2014-01-15 Richard Biener <rguenther@suse.de>
32864 PR rtl-optimization/59802
32865 * lcm.c (compute_available): Use inverted postorder to seed
32866 the initial worklist.
32868 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32871 * config/s390/s390.c (s390_preferred_reload_class): Don't return
32872 ADDR_REGS for invalid symrefs in non-PIC code.
32874 2014-01-15 Jakub Jelinek <jakub@redhat.com>
32877 * builtins.c (determine_block_size): Initialize *probable_max_size
32878 even if len_rtx is CONST_INT.
32880 2014-01-14 Andrew Pinski <apinski@cavium.com>
32882 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
32883 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
32884 (cortexa53_tunings): Likewise.
32885 (aarch64_sched_issue_rate): New function.
32886 (TARGET_SCHED_ISSUE_RATE): Define.
32888 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
32890 * ira-costs.c (find_costs_and_classes): Add missed
32891 ira_init_register_move_cost_if_necessary.
32893 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
32896 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
32898 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
32901 * config/i386/i386.c (type_natural_mode): Add a bool parameter
32902 to indicate if type is used for function return value. Warn ABI
32903 change if the vector mode isn't available for function return value.
32904 (ix86_function_arg_advance): Pass false to type_natural_mode.
32905 (ix86_function_arg): Likewise.
32906 (ix86_gimplify_va_arg): Likewise.
32907 (function_arg_32): Don't warn ABI change.
32908 (ix86_function_value): Pass true to type_natural_mode.
32909 (ix86_return_in_memory): Likewise.
32910 (ix86_struct_value_rtx): Removed.
32911 (TARGET_STRUCT_VALUE_RTX): Likewise.
32913 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32915 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
32916 converting a conditional jump into a conditional return.
32918 2014-01-14 Richard Biener <rguenther@suse.de>
32920 PR tree-optimization/58921
32921 PR tree-optimization/59006
32922 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32923 hoisting invariant stmts.
32924 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32925 invariant loads on the preheader edge if possible.
32927 2014-01-14 Joey Ye <joey.ye@arm.com>
32929 * doc/plugin.texi (Building GCC plugins): Update to C++.
32931 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
32933 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32934 (_mm_rcp28_round_ss): Ditto.
32935 (_mm_rsqrt28_round_sd): Ditto.
32936 (_mm_rsqrt28_round_ss): Ditto.
32937 (_mm_rcp28_sd): Ditto.
32938 (_mm_rcp28_ss): Ditto.
32939 (_mm_rsqrt28_sd): Ditto.
32940 (_mm_rsqrt28_ss): Ditto.
32941 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32942 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32943 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32944 (IX86_BUILTIN_RCP28SD): Ditto.
32945 (IX86_BUILTIN_RCP28SS): Ditto.
32946 (IX86_BUILTIN_RSQRT28SD): Ditto.
32947 (IX86_BUILTIN_RSQRT28SS): Ditto.
32948 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32949 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32950 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32951 (ix86_expand_special_args_builtin): Expand new FTYPE.
32952 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32953 (srcp14<mode>): Make insn unary.
32954 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32955 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32956 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32957 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32958 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32959 Fix rounding: make it SAE only.
32960 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32962 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32964 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32965 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32966 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32967 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32968 (round_saeonly_mask_scalar_operand4): Ditto.
32969 (round_saeonly_mask_scalar_op3): Ditto.
32970 (round_saeonly_mask_scalar_op4): Ditto.
32972 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32974 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32975 Implement -maltivec=be for vec_insert and vec_extract.
32977 2014-01-10 DJ Delorie <dj@redhat.com>
32979 * config/msp430/msp430.md (call_internal): Don't allow memory
32980 references with SP as the base register.
32981 (call_value_internal): Likewise.
32982 * config/msp430/constraints.md (Yc): New. For memory references
32983 that don't use SP as a base register.
32985 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32986 "an integer without a # prefix"
32987 * config/msp430/msp430.md (epilogue_helper): Use it.
32989 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32992 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32993 AVX512F gather builtins.
32994 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32995 on gather decls with INTEGER_TYPE masktype.
32996 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32997 directly into the builtin rather than hoisting it before loop.
32999 PR tree-optimization/59387
33000 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
33001 (scev_const_prop): If folded_casts and type has undefined overflow,
33002 use force_gimple_operand instead of force_gimple_operand_gsi and
33003 for each added stmt if it is assign with
33004 arith_code_with_undefined_signed_overflow, call
33005 rewrite_to_defined_overflow.
33006 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
33007 gimple-fold.h instead.
33008 (arith_code_with_undefined_signed_overflow,
33009 rewrite_to_defined_overflow): Moved to ...
33010 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
33011 rewrite_to_defined_overflow): ... here. No longer static.
33012 Include gimplify-me.h.
33013 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
33014 rewrite_to_defined_overflow): New prototypes.
33016 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33018 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
33020 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
33022 * builtins.c (get_object_alignment_2): Minor tweak.
33023 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
33025 2014-01-13 Christian Bruel <christian.bruel@st.com>
33027 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
33028 optimized non constant lengths.
33030 2014-01-13 Jakub Jelinek <jakub@redhat.com>
33033 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
33034 load as __atomic_load_N if possible.
33036 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
33038 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
33040 (rs6000_expand_builtin): Adjust call.
33042 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
33045 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
33046 * config/rs6000/rs6000.c: Include target-globals.h.
33047 (rs6000_set_current_function): Instead of doing target_reinit
33048 unconditionally, use save_target_globals_default_opts and
33049 restore_target_globals.
33051 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
33053 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
33054 (rs6000_expand_builtin): Handle mffs and mtfsf.
33055 (rs6000_init_builtins): Define mffs and mtfsf.
33056 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
33057 (rs6000_mffs): New pattern.
33058 (rs6000_mtfsf): New pattern.
33060 2014-01-11 Bin Cheng <bin.cheng@arm.com>
33062 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
33063 Start narrowing with START. Apply candidate-use pair
33064 and check overall cost in narrowing.
33065 (iv_ca_prune): Pass new argument.
33067 2014-01-10 Jeff Law <law@redhat.com>
33069 PR middle-end/59743
33070 * ree.c (combine_reaching_defs): Ensure the defining statement
33071 occurs before the extension when optimizing extensions with
33072 different source and destination hard registers.
33074 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
33077 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
33078 vtables into the type inheritance graph.
33080 2014-01-10 Jakub Jelinek <jakub@redhat.com>
33082 PR rtl-optimization/59754
33083 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
33084 modes in the REGNO != REGNO case.
33086 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33088 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
33090 2014-01-10 Jakub Jelinek <jakub@redhat.com>
33092 PR tree-optimization/59745
33093 * tree-predcom.c (tree_predictive_commoning_loop): Call
33094 free_affine_expand_cache if giving up because components is NULL.
33096 * target-globals.c (save_target_globals): Allocate < 4KB structs using
33097 GC in payload of target_globals struct instead of allocating them on
33098 the heap and the larger structs separately using GC.
33099 * target-globals.h (struct target_globals): Make regs, hard_regs,
33100 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
33101 of GTY((skip)) and change type to void *.
33102 (reset_target_globals): Cast loads from those fields to corresponding
33105 2014-01-10 Steve Ellcey <sellcey@mips.com>
33108 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
33109 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
33110 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
33112 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
33115 * aarch64-modes.def (CC_Zmode): New flags mode.
33116 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
33117 represents an equality.
33118 (aarch64_get_condition_code): Handle CC_Zmode.
33119 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
33121 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33123 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
33124 extraction in good case.
33126 2014-01-10 Richard Biener <rguenther@suse.de>
33128 PR tree-optimization/59374
33129 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
33130 checking after SLP discovery. Mark stmts not participating
33131 in any SLP instance properly.
33133 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33135 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
33136 when handling a SET rtx.
33138 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33140 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
33141 (cortex-a57): Likewise.
33142 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
33144 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33146 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
33147 non-iwmmxt builtins.
33149 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
33153 * ipa-devirt.c record_target_from_binfo): Take as argument
33154 stack of binfos and lookup matching one for virtual inheritance.
33155 (possible_polymorphic_call_targets_1): Update.
33157 2014-01-10 Huacai Chen <chenhc@lemote.com>
33159 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
33160 kernel strings for Loongson-2E/2F/3A.
33162 2014-01-10 Jakub Jelinek <jakub@redhat.com>
33164 PR middle-end/59670
33165 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
33166 is_gimple_call before calling gimple_call_internal_p.
33168 2014-01-09 Steve Ellcey <sellcey@mips.com>
33170 * Makefile.in (TREE_FLOW_H): Remove.
33171 (TREE_SSA_H): Add file names from tree-flow.h.
33172 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
33173 * tree.h: Remove tree-flow.h reference.
33174 * hash-table.h: Remove tree-flow.h reference.
33175 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
33176 reference with tree-ssa-loop.h.
33178 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33180 * doc/invoke.texi: Add -maltivec={be,le} options, and document
33181 default element-order behavior for -maltivec.
33182 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
33183 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
33184 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
33185 when targeting big endian, at least for now.
33186 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
33188 2014-01-09 Jakub Jelinek <jakub@redhat.com>
33190 PR middle-end/47735
33191 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
33192 var satisfies use_register_for_decl, just take into account type
33193 alignment, rather than decl alignment.
33195 PR tree-optimization/59622
33196 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
33197 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
33198 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
33199 Don't devirtualize for inplace at all. For targets.length () == 1,
33200 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
33202 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
33204 * config/i386/i386.md (cpu): Remove the unused btver1.
33206 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
33208 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
33210 2014-01-09 Jakub Jelinek <jakub@redhat.com>
33213 * tree-core.h (struct target_globals): New forward declaration.
33214 (struct tree_target_option): Add globals field.
33215 * tree.h (TREE_TARGET_GLOBALS): Define.
33216 (prepare_target_option_nodes_for_pch): New prototype.
33217 * target-globals.h (struct target_globals): Define even if
33218 !SWITCHABLE_TARGET.
33219 * tree.c (prepare_target_option_node_for_pch,
33220 prepare_target_option_nodes_for_pch): New functions.
33221 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
33222 * config/i386/i386.c: Include target-globals.h.
33223 (ix86_set_current_function): Instead of doing target_reinit
33224 unconditionally, use save_target_globals_default_opts and
33225 restore_target_globals.
33227 2014-01-09 Richard Biener <rguenther@suse.de>
33229 PR tree-optimization/59715
33230 * tree-cfg.h (split_critical_edges): Declare.
33231 * tree-cfg.c (split_critical_edges): Export.
33232 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
33234 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
33236 * cfgexpand.c (expand_stack_vars): Optionally disable
33237 asan stack protection.
33238 (expand_used_vars): Likewise.
33239 (partition_stack_vars): Likewise.
33240 * asan.c (asan_emit_stack_protection): Optionally disable
33241 after return stack usage.
33242 (instrument_derefs): Optionally disable memory access instrumentation.
33243 (instrument_builtin_call): Likewise.
33244 (instrument_strlen_call): Likewise.
33245 (asan_protect_global): Optionally disable global variables protection.
33246 * doc/invoke.texi: Added doc for new options.
33247 * params.def: Added new options.
33248 * params.h: Likewise.
33250 2014-01-09 Jakub Jelinek <jakub@redhat.com>
33252 PR rtl-optimization/59724
33253 * ifcvt.c (cond_exec_process_if_block): Don't call
33254 flow_find_head_matching_sequence with 0 longest_match.
33255 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
33256 non-active insns if !stop_after.
33257 (try_head_merge_bb): Revert 2014-01-07 changes.
33259 2014-01-08 Jeff Law <law@redhat.com>
33261 * ree.c (get_sub_rtx): New function, extracted from...
33262 (merge_def_and_ext): Here.
33263 (combine_reaching_defs): Use get_sub_rtx.
33265 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
33267 * cgraph.h (varpool_variable_node): Do not choke on null node.
33269 2014-01-08 Catherine Moore <clm@codesourcery.com>
33271 * config/mips/mips.md (simple_return): Attempt to use JRC
33273 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
33275 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
33277 PR rtl-optimization/59137
33278 * reorg.c (steal_delay_list_from_target): Call update_block for
33280 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
33282 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33284 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
33285 two duplicate entries.
33287 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
33290 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
33292 * config/mips/mips.c (mips_truncated_op_cost): New function.
33293 (mips_rtx_costs): Adjust test for BADDU.
33294 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
33296 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
33298 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
33299 (*baddu_si): ...this new pattern.
33301 2014-01-08 Jakub Jelinek <jakub@redhat.com>
33304 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
33306 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
33308 PR middle-end/57748
33309 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
33311 (expand_expr, expand_normal): Adjust.
33312 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
33313 inner_reference_p. Use inner_reference_p to expand inner references.
33314 (store_expr): Adjust.
33315 * cfgexpand.c (expand_call_stmt): Adjust.
33317 2014-01-08 Rong Xu <xur@google.com>
33319 * gcov-io.c (gcov_var): Move from gcov-io.h.
33320 (gcov_position): Ditto.
33321 (gcov_is_error): Ditto.
33322 (gcov_rewrite): Ditto.
33323 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
33324 only part to libgcc/libgcov.h.
33326 2014-01-08 Marek Polacek <polacek@redhat.com>
33328 PR middle-end/59669
33329 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
33331 2014-01-08 Marek Polacek <polacek@redhat.com>
33334 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
33336 2014-01-08 Jakub Jelinek <jakub@redhat.com>
33338 PR rtl-optimization/59649
33339 * stor-layout.c (get_mode_bounds): For BImode return
33340 0 and STORE_FLAG_VALUE.
33342 2014-01-08 Richard Biener <rguenther@suse.de>
33344 PR middle-end/59630
33345 * gimple.h (is_gimple_builtin_call): Remove.
33346 (gimple_builtin_call_types_compatible_p): New.
33347 (gimple_call_builtin_p): New overload.
33348 * gimple.c (is_gimple_builtin_call): Remove.
33349 (validate_call): Rename to ...
33350 (gimple_builtin_call_types_compatible_p): ... this and export. Also
33351 check return types.
33352 (validate_type): New static function.
33353 (gimple_call_builtin_p): New overload and adjust.
33354 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
33355 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
33356 (gimple_fold_stmt_to_constant_1): Likewise.
33357 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
33359 2014-01-08 Richard Biener <rguenther@suse.de>
33361 PR middle-end/59471
33362 * gimplify.c (gimplify_expr): Gimplify register-register type
33363 VIEW_CONVERT_EXPRs to separate stmts.
33365 2014-01-07 Jeff Law <law@redhat.com>
33367 PR middle-end/53623
33368 * ree.c (combine_set_extension): Handle case where source
33369 and destination registers in an extension insn are different.
33370 (combine_reaching_defs): Allow source and destination registers
33371 in extension to be different under limited circumstances.
33372 (add_removable_extension): Remove restriction that the
33373 source and destination registers in the extension are the same.
33374 (find_and_remove_re): Emit a copy from the extension's
33375 destination to its source after the defining insn if
33376 the source and destination registers are different.
33378 PR middle-end/59285
33379 * ifcvt.c (merge_if_block): If we are merging a block with more than
33380 one successor with a block with no successors, remove any BARRIER
33381 after the second block.
33383 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
33385 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
33387 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
33390 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
33391 for 14-bit register offsets when INT14_OK_STRICT is false.
33393 2014-01-07 Roland Stigge <stigge@antcom.de>
33394 Michael Meissner <meissner@linux.vnet.ibm.com>
33397 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
33398 Only check TFmode for SPE constants. Don't check TImode or TDmode.
33400 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
33402 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
33405 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
33407 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
33408 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
33409 rtx is const0_rtx or not.
33411 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
33414 * target-globals.c (save_target_globals): Remove this_fn_optab
33416 * toplev.c: Include optabs.h.
33417 (target_reinit): Temporarily restore the global options if another
33418 set of options are in force.
33420 2014-01-07 Jakub Jelinek <jakub@redhat.com>
33422 PR rtl-optimization/58668
33423 * cfgcleanup.c (flow_find_cross_jump): Don't count
33424 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
33425 to determine what is counted.
33426 (flow_find_head_matching_sequence): Use active_insn_p to determine
33428 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
33430 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
33431 determine what is counted.
33433 PR tree-optimization/59643
33434 * tree-predcom.c (split_data_refs_to_components): If one dr is
33435 read and one write, determine_offset fails and the write isn't
33436 in the bad component, just put the read into the bad component.
33438 2014-01-07 Mike Stump <mikestump@comcast.net>
33439 Jakub Jelinek <jakub@redhat.com>
33442 * tree-core.h (struct tree_optimization_option): Change optabs
33443 type from unsigned char * to void *.
33444 * optabs.c (init_tree_optimization_optabs): Adjust
33445 TREE_OPTIMIZATION_OPTABS initialization.
33447 2014-01-06 Jakub Jelinek <jakub@redhat.com>
33450 * config/i386/i386.h (struct machine_function): Add
33451 no_drap_save_restore field.
33452 * config/i386/i386.c (ix86_save_reg): Use
33453 !cfun->machine->no_drap_save_restore instead of
33454 crtl->stack_realign_needed.
33455 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
33456 this function clears frame_pointer_needed. Set
33457 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
33458 and DRAP reg is needed.
33460 2014-01-06 Marek Polacek <polacek@redhat.com>
33463 * doc/implement-c.texi: Mention that other integer types are
33464 permitted as bit-field types in strictly conforming mode.
33466 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
33468 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
33469 is newly allocated.
33471 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
33473 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
33475 2014-01-06 Martin Jambor <mjambor@suse.cz>
33478 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
33480 * ipa-prop.c (ipa_print_node_params): Fix indentation.
33482 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
33486 * var-tracking.c (add_stores): Preserve the value of the source even if
33487 we don't record the store.
33489 2014-01-06 Terry Guo <terry.guo@arm.com>
33491 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
33493 2014-01-05 Iain Sandoe <iain@codesourcery.com>
33496 * config/darwin.c (darwin_function_section): Adjust return values to
33497 correspond to optimisation changes made in r206070.
33499 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
33501 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
33502 from prefetch_block tune setting.
33503 (nocona_cost): Correct size of prefetch block to 64.
33505 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
33507 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
33508 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
33509 used to save the static chain register in the computation of the offset
33510 from which the FP registers need to be restored.
33512 2014-01-04 Jakub Jelinek <jakub@redhat.com>
33514 PR tree-optimization/59519
33515 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
33516 ICE if get_current_def (current_new_name) is already non-NULL, as long
33517 as it is a phi result of some other phi in *new_exit_bb that has
33520 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
33521 or vmovdqu* for misaligned_operand.
33522 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
33523 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
33524 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
33525 aligned_mem for AVX512F masked aligned load and store builtins and for
33526 non-temporal moves.
33528 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
33530 PR tree-optimization/59651
33531 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33532 Address range for negative step should be added by TYPE_SIZE_UNIT.
33534 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
33536 * config/m68k/m68k.c (handle_move_double): Handle pushes with
33537 overlapping registers also for registers other than the stack pointer.
33539 2014-01-03 Marek Polacek <polacek@redhat.com>
33542 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
33545 2014-01-03 Jakub Jelinek <jakub@redhat.com>
33548 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
33551 * config/i386/i386.md (MODE_SIZE): New mode attribute.
33552 (push splitter): Use <P:MODE_SIZE> instead of
33553 GET_MODE_SIZE (<P:MODE>mode).
33554 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
33555 (mov -1, reg peephole2): Likewise.
33556 * config/i386/sse.md (*mov<mode>_internal,
33557 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
33558 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
33559 *<code><mode>3, *andnot<mode>3<mask_name>,
33560 <mask_codefor><code><mode>3<mask_name>): Likewise.
33561 * config/i386/subst.md (mask_mode512bit_condition,
33562 sd_mask_mode512bit_condition): Likewise.
33564 2014-01-02 Xinliang David Li <davidxl@google.com>
33566 PR tree-optimization/59303
33567 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
33568 (dump_predicates): Better output format.
33569 (pred_equal_p): New function.
33570 (is_neq_relop_p): Ditto.
33571 (is_neq_zero_form_p): Ditto.
33572 (pred_expr_equal_p): Ditto.
33573 (pred_neg_p): Ditto.
33574 (simplify_pred): Ditto.
33575 (simplify_preds_2): Ditto.
33576 (simplify_preds_3): Ditto.
33577 (simplify_preds_4): Ditto.
33578 (simplify_preds): Ditto.
33579 (push_pred): Ditto.
33580 (push_to_worklist): Ditto.
33581 (get_pred_info_from_cmp): Ditto.
33582 (is_degenerated_phi): Ditto.
33583 (normalize_one_pred_1): Ditto.
33584 (normalize_one_pred): Ditto.
33585 (normalize_one_pred_chain): Ditto.
33586 (normalize_preds): Ditto.
33587 (normalize_cond_1): Remove function.
33588 (normalize_cond): Ditto.
33589 (is_gcond_subset_of): Ditto.
33590 (is_subset_of_any): Ditto.
33591 (is_or_set_subset_of): Ditto.
33592 (is_and_set_subset_of): Ditto.
33593 (is_norm_cond_subset_of): Ditto.
33594 (pred_chain_length_cmp): Ditto.
33595 (convert_control_dep_chain_into_preds): Type change.
33596 (find_predicates): Ditto.
33597 (find_def_preds): Ditto.
33598 (destroy_predicates_vecs): Ditto.
33599 (find_matching_predicates_in_rest_chains): Ditto.
33600 (use_pred_not_overlap_with_undef_path_pred): Ditto.
33601 (is_pred_expr_subset): Ditto.
33602 (is_pred_chain_subset_of): Ditto.
33603 (is_included_in): Ditto.
33604 (is_superset_of): Ditto.
33606 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33608 Update copyright years.
33610 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33612 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
33613 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
33614 config/arc/arc.md, config/arc/arc.opt,
33615 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
33616 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
33617 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
33618 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
33619 config/linux-protos.h, config/linux.c, config/winnt-c.c,
33620 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
33621 vtable-verify.c, vtable-verify.h: Use the standard form for the
33624 2014-01-02 Tobias Burnus <burnus@net-b.de>
33626 * gcc.c (process_command): Update copyright notice dates.
33627 * gcov-dump.c: Ditto.
33629 * doc/cpp.texi: Bump @copying's copyright year.
33630 * doc/cppinternals.texi: Ditto.
33631 * doc/gcc.texi: Ditto.
33632 * doc/gccint.texi: Ditto.
33633 * doc/gcov.texi: Ditto.
33634 * doc/install.texi: Ditto.
33635 * doc/invoke.texi: Ditto.
33637 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33639 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
33641 2014-01-01 Jakub Jelinek <jakub@redhat.com>
33643 * config/i386/sse.md (*mov<mode>_internal): Guard
33644 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
33646 PR rtl-optimization/59647
33647 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
33648 new_rtx into UNSIGNED_FLOAT rtxes.
33650 Copyright (C) 2014 Free Software Foundation, Inc.
33652 Copying and distribution of this file, with or without modification,
33653 are permitted in any medium without royalty provided the copyright
33654 notice and this notice are preserved.