1 2015-09-17 Christian Bruel <christian.bruel@st.com>
3 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5 2015-09-17 Richard Henderson <rth@redhat.com>
8 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9 pointers that encode the alignment of the object.
11 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13 PR rtl-optimization/66790
14 * df-problems.c (LIVE): Amend documentation.
16 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
18 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
20 (GTFILES): Replace optabs.c with optabs-libfunc.c.
21 * genopinit.c (main): Add an include guard to insn-opinit.h.
22 Protect the rtx_code parts with NUM_RTX_CODE.
23 * optabs.h: Split parts out to...
24 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these
26 * optabs.c: Split parts out to...
27 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these
29 * cilk-common.c: Include optabs-query.h rather than optabs.h.
30 * fold-const.c: Likewise.
31 * target-globals.c: Likewise.
32 * tree-if-conv.c: Likewise.
33 * tree-ssa-forwprop.c: Likewise.
34 * tree-ssa-loop-prefetch.c: Likewise.
35 * tree-ssa-math-opts.c: Include optabs-tree.h rather than
36 optabs.h. Remove unncessary include files.
37 * tree-ssa-phiopt.c: Likewise.
38 * tree-ssa-reassoc.c: Likewise.
39 * tree-switch-conversion.c: Likewise.
40 * tree-vect-data-refs.c: Likewise.
41 * tree-vect-generic.c: Likewise.
42 * tree-vect-loop.c: Likewise.
43 * tree-vect-patterns.c: Likewise.
44 * tree-vect-slp.c: Likewise.
45 * tree-vect-stmts.c: Likewise.
46 * tree-vrp.c: Likewise.
47 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
49 * expr.c: Include optabs-tree.h.
50 * function.c: Likewise.
52 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
55 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
56 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
57 * config/arm/arm.c: Include common/common-target.h.
58 (use_return_insn): Return 0 if the static chain register was saved
59 above a non-APCS frame.
60 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
61 (struct scratch_reg): New.
62 (get_scratch_register_on_entry): New function.
63 (release_scratch_register_on_entry): Likewise.
64 (arm_emit_probe_stack_range): Likewise.
65 (output_probe_stack_range): Likewise.
66 (arm_expand_prologue): Factor out code dealing with the IP register
67 for nested function and adjust it for stack checking.
68 Invoke arm_emit_probe_stack_range if static builtin stack checking
70 (thumb1_expand_prologue): Sorry out if static builtin stack checking
72 (arm_expand_epilogue): Add the saved static chain register, if any, to
73 the amount of pre-pushed registers to pop.
74 (arm_frame_pointer_required): Return true if static stack checking is
75 enabled and we want to catch the exception with the EABI unwinder.
76 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
77 (UNSPEC_PROBE_STACK_RANGE): Likewise.
78 * config/arm/arm.md (probe_stack): New insn.
79 (probe_stack_range): Likewise.
81 2015-09-17 Richard Biener <rguenther@suse.de>
83 * genmatch.c (parser::parse_expr): Improve error message
86 2015-09-17 Richard Biener <rguenther@suse.de>
88 * passes.c (rest_of_decl_compilation): Always call early_global_decl
89 debug hook when we created a varpool node.
90 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
91 dwarf2out_early_global_decl, when not just add location or
92 value attributes to existing DIEs.
94 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
96 * config/aarch64/aarch64.md (copysigndf3): New.
97 (copysignsf3): Likewise.
99 2015-09-17 David S. Miller <davem@davemloft.net>
101 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
103 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
105 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
106 (HARD_REGNO_CALLER_SAVE_MODE): Define.
107 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
108 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
109 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
110 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
111 provide when flag_pic.
113 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
115 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
116 object_allocator change.
118 2015-09-17 Bin Cheng <bin.cheng@arm.com>
120 PR tree-optimization/66388
121 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New
123 (dump_iv): Dump no_overflow information.
124 (alloc_iv): Initialize new field for struct iv.
125 (mark_bivs): Count number of no_overflow bivs.
126 (find_deriving_biv_for_expr, record_biv_for_address_use): New
128 (idx_find_step): Call new functions above.
129 (add_candidate_1, add_candidate): New paramter.
130 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
131 (get_computation_aff): Simplify convertion of cand for BIV.
132 (get_computation_cost_at): Step cand's base if necessary.
134 2015-09-17 Bin Cheng <bin.cheng@arm.com>
136 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
138 (tree_simplify_using_condition): Ditto.
139 (simplify_using_initial_conditions): Ditto.
140 (loop_exits_before_overflow): Pass new argument to function
141 simplify_using_initial_conditions. Remove case for type conversions
143 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
145 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
146 in iv base using loop initial conditions.
148 2015-09-16 Jeff Law <law@redhat.com>
150 PR tree-optimization/47679
151 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
152 (free_all_edge_infos): Use it.
153 (allocate_edge_info): Free preexisting edge info data.
154 (pass_dominator::execute): Set up initial edge info structures.
155 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
157 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument. If
158 non-null, then push/pop markers appropriately.
159 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
160 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
163 2015-09-16 James Bowman <james.bowman@ftdichip.com>
165 * config/ft32/ft32.c Fix the memory address space predicate.
167 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
170 * config/sh/sh.md (call_pcrel): Add early clobber to scratch
172 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
174 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
176 * toplev.h (check_global_declaration): Remove declaration.
177 * toplev.c (check_global_declaration): Move to ...
178 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
179 (analyze_functions): Update call.
181 2015-09-16 David S. Miller <davem@davemloft.net>
183 * lra-constraints.c (simplify_operand_subreg): Do not assume that
184 lowpart of a SUBREG has offset zero.
186 2015-09-16 Jeff Law <law@redhat.com>
188 PR tree-optimization/47679
189 * tree-ssa-dom.c (enum expr_kind): Moved from here to
190 tree-ssa-scopedtables.h.
191 (struct hashable_expr, class expr_hash_elt): Likewise.
192 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
193 Move associated methods into tree-ssa-scopedtables.c.
194 (avail_expr_hash, initialize_expr_from_cond): Similarly.
195 (hashable_expr_equal_p, add_expr_commutative): Likewise.
196 (add_hashable_expr): Likewise.
197 (record_cond): Delete element directly.
198 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
199 private copy ctor and assignment operator methods.
200 (expr_elt_hasher): Inline trivial methods.
201 (initialize_expr_from_cond): Prototype.
202 * tree-ssa-scopedtables.c: Add necessary includes, functions and
203 methods that were previously in tree-ssa-dom.c. Improve various
206 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
208 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
210 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
213 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
216 2015-09-16 Richard Biener <rguenther@suse.de>
219 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
220 location of possibly shared trees.
222 2015-09-16 Richard Biener <rguenther@suse.de>
225 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
227 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
229 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
230 offset and size computations instead of HOST_WIDE_INT.
232 2015-09-16 Richard Biener <rguenther@suse.de>
235 * fold-const.c (extract_muldiv_1): Properly extend multiplication
236 result before builting a tree via wide_int_to_tree.
238 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
240 * Makefile.in: Add memory-block.cc
241 (pool_allocator::initialize): Use fixed block size.
242 (pool_allocator::release): Use memory_block_pool.
243 (pool_allocator::allocate): Likewise.
244 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
246 * cfg.c (initialize_original_copy_tables): Likewise.
247 * cselib.c (elt_list_pool, elt_loc_list_pool,
248 cselib_val_pool): Likewise.
249 * df-problems.c (df_chain_alloc): Likewise.
250 * df-scan.c (df_scan_alloc): Likewise.
251 * dse.c (cse_store_info_pool, rtx_store_info_pool,
252 read_info_type_pool, insn_info_type_pool, bb_info_pool,
253 group_info_pool, deferred_change_pool): Likewise.
254 * et-forest.c (et_nodes, et_occurrences): Likewise.
255 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
256 ipcp_agg_lattice_pool): Likewise.
257 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
258 * ipa-profile.c (histogram_pool): Likewise.
259 * ipa-prop.c (ipa_refdesc_pool): Likewise.
260 * ira-build.c (live_range_pool, allocno_pool, object_pool,
261 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
262 * ira-color.c (update_cost_record_pool): Likewise.
263 * lra-lives.c (lra_live_range_pool): Likewise.
264 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
265 * memory-block.cc: New file.
266 * memory-block.h: New file.
267 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
268 * sched-deps.c (sched_deps_init): Likewise.
269 * sel-sched-ir.c (sched_lists_pool): Likewise.
270 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
271 * tree-sra.c (access_pool): Likewise.
272 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
273 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
274 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
275 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
276 * tree-ssa-strlen.c (strinfo_pool): Likewise.
277 * tree-ssa-structalias.c (variable_info_pool): Likewise.
278 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
279 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
281 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
283 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
285 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
288 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
290 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
291 to pass TLS call argument, according to current ABI.
292 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
293 callx0 for TLS call, according to current ABI.
295 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
297 * tree-eh.c (lower_try_finally_dup_block): Clear location information
298 on stack restore statements.
299 (decide_copy_try_finally): Do not consider a stack restore statement as
302 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
304 * config/alpha/alpha.c (alpha_expand_block_clear): Use
305 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
307 2015-09-15 Jeff Law <law@redhat.com>
309 PR tree-optimization/47679
310 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
311 methods and private members.
312 (avail_exprs_stack): Similarly. Change type of global
313 from a pair of expr_hash_elt_t to the new class.
314 (expr_elt_hasher::hash): Corresponding changes.
315 (expr_elt_hasher::equal): Similarly.
316 (avail_expr_hash): Similarly.
317 (pass_dominator::execute): Similarly.
318 (dom_opt_dom_walker::thread_across_edge): Similarly.
319 (record_cond): Similarly.
320 (dom_opt_dom_walker::before_dom_children): Similarly.
321 (dom_opt_dom_walker::after_dom_children): Similarly.
322 (lookup_avail_expr): Likewise.
323 (initialize_hash_element): Now a expr_hash_elt constructor.
324 (initialize_hash_element_from_expr): Similarly.
325 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
326 (free_expr_hash_elt): Call dtor for the element.
327 (remove_local_expressions_from_table): Now the "pop_to_marker"
328 method in the available_exprs_stack class.
329 (avail_expr_stack::record_expr): Method factored out.
330 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
332 (hashable_expr_equal_p): Fix formatting.
334 2015-09-15 David Malcolm <dmalcolm@redhat.com>
336 * input.h (location_get_source_line): Drop "expanded_location"
337 param in favor of a file and line number.
338 * input.c (location_get_source_line): Likewise.
339 (dump_location_info): Update for change in signature of
340 location_get_source_line.
341 * diagnostic.c (diagnostic_print_caret_line): Likewise.
343 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
345 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
346 Bump to 4KB for SJLJ exceptions.
347 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
348 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
349 * doc/tm.texi: Regenerate.
351 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
353 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
354 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
357 2015-09-15 Richard Biener <rguenther@suse.de>
359 PR tree-optimization/67470
360 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
361 structure for PHI hoisting by inserting a forwarder block
364 2015-09-15 Christian Bruel <christian.bruel@st.com>
366 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
367 (arm_option_print): New function.
369 2015-09-15 Christian Bruel <christian.bruel@st.com>
372 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
373 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
374 Remove flags parameter.
375 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
376 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
377 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
378 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
379 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
380 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
381 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
382 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
384 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
386 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
388 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
389 AARCH64_VALID_SIMD_DREG_MODE.
391 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
393 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
394 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
395 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
396 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
397 aarch64_ld4_lane<mode>): Combine together, making...
398 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
399 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
400 aarch64_st4_lane<mode>): Combine together, making...
401 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
402 * config/aarch64/iterators.md (nregs): Add comment.
404 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
406 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
407 Change operand mode from <V_TWO_ELEM> to BLK.
408 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
409 (aarch64_vec_store_lanesoi_lane<mode): Likewise
410 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
411 (aarch64_ld2_lane<mode>): Likewise.
412 (aarch64_st2_lane<VQ:mode>): Likewise.
413 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
415 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
417 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
418 Change operand mode from <V_FOUR_ELEM> to BLK.
419 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
420 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
421 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
422 (aarch64_ld4_lane<mode>): Likewise.
423 (aarch64_st4_lane<mode>): Likewise.
424 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
426 2015-09-15 Richard Biener <rguenther@suse.de>
429 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
430 transfer EH info from old to new stmt.
431 (replace_call_with_value): Likewise.
432 (replace_call_with_call_and_fold): Likewise.
433 (gimple_fold_builtin_memory_op): Likewise.
434 (gimple_fold_builtin_memset): Likewise.
435 (gimple_fold_builtin_stpcpy): Likewise.
436 (gimple_fold_call): Likewise.
438 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
440 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
442 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
443 (aarch64_simd_intEI_type_node): Likewise.
444 (aarch64_simd_builtin_std_type): Remove EImode case.
445 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
446 * config/aarch64/aarch64-modes.def: Remove EImode.
448 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
450 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
451 Change operand mode from <V_THREE_ELEM> to BLK.
452 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
453 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
454 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
455 (aarch64_ld3_lane<mode>): Likewise.
456 (aarch64_st3_lane<mode>): Likewise.
457 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
459 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
461 * config/aarch64/aarch64-simd.md
462 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
463 Change all TImode operands to BLKmode.
464 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
465 Change all EImode operands to BLKmode.
466 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
467 Change all OImode operands to BLKmode.
469 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
470 and call set_mem_size.
471 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
473 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
475 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
477 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
479 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
481 (vec_store_lanesci_lane<mode>): Rename to...
482 (aarch64_vec_store_lanesci_lane<mode>): ...this.
484 (vec_store_lanesxi_lane<mode>): Rename to...
485 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
487 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
488 aarch64_st4_lane<mode>): Follow renaming.
490 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
492 * config/s390/s390.c (s390_const_operand_ok): Add missing
495 2015-09-15 Richard Biener <rguenther@suse.de>
498 * lto-streamer.h (lto_location_cache::current_sysp): Properly
500 * lto-streamer-out.c (clear_line_info): Likewise.
502 2015-09-15 Richard Biener <rguenther@suse.de>
504 * doc/match-and-simplify.texi: Fix wording.
506 2015-09-15 Bin Cheng <bin.cheng@arm.com>
508 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
509 unnecessary type conversion in op1.
511 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
513 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
514 (dup_block_and_redirect): Delete function.
515 (can_dup_for_shrink_wrapping): New function.
516 (fix_fake_fallthrough_edge): New function.
517 (try_shrink_wrapping): Rewrite function.
518 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
520 2015-09-14 Rich Felker <dalias@libc.org>
522 * configure.ac: Change target pattern for sh TLS support
523 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
524 * configure: Regenerate.
526 2015-09-14 Jeff Law <law@redhat.com>
528 PR tree-optimization/47679
529 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
530 type rather than void *.
532 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
535 * diagnostic.c (diagnostic_initialize): Do not set
536 some_warnings_are_errors.
537 (diagnostic_finish): Use DK_WERROR count instead.
538 (diagnostic_report_diagnostic): Do not set
539 some_warnings_are_errors.
540 * diagnostic.h (struct diagnostic_context): Remove
541 some_warnings_are_errors.
543 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
545 * config/sparc/predicates.md (const_all_ones_operand): Use
546 CONSTM1_RTX to simplify definition.
548 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
551 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
554 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
556 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
557 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
558 OPT_fshow_column to handled saved option cases.
559 (append_compiler_options): Do not skip the above added options.
561 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
564 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
565 nopcrelative_literal_loads.
566 (aarch64_classify_address): Likewise.
567 (aarch64_constant_pool_reload_icode): Define.
568 (aarch64_secondary_reload): Handle secondary reloads for
570 (aarch64_override_options): Handle nopcrelative_literal_loads.
571 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
572 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
574 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
575 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
576 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
578 * doc/invoke.texi (mpc-relative-literal-loads): Document.
580 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
583 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
584 sync_compare_and_swap_optab libcall to target_oval.
586 2015-09-14 Marek Polacek <polacek@redhat.com>
588 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
590 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
592 2015-09-11 Mark Wielaard <mjw@redhat.com>
595 * toplev.c (check_global_declaration): Check and use
596 warn_unused_const_variable.
597 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
598 (-Wunused-variable): Remove non-constant. For C implies
599 -Wunused-const-variable.
600 (-Wunused-const-variable): New.
602 2015-09-14 Richard Biener <rguenther@suse.de>
604 * doc/match-and-simplify.texi: Update for changed syntax
605 of inner ifs and the new switch expression.
607 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
609 * config/i386/haswell.md: New file describing Haswell pipeline.
610 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
611 haswell-like processors.
612 (ix86_reassociation_width): Increase reassociation width for 64-bit
613 Haswell processor family.
614 * config/i386/i386.md: Introduce haswell cpu and include new md file.
616 2015-09-14 Richard Biener <rguenther@suse.de>
618 * doc/match-and-simplify.texi: Fixup some formatting issues
619 and document the 's' flag.
621 2015-09-13 Olivier Hainque <hainque@adacore.com>
622 Eric Botcazou <ebotcazou@adacore.com>
624 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
625 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
626 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
627 (TARGET_CPU_gr5): Likewise.
628 (TARGET_CPU_gr6): Likewise.
629 (MULTILIB_DEFAULTS): Likewise.
630 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
631 for mcpu=gr5 and mcpu=gr6.
632 (MULTILIB_DIRNAMES): Adjust accordingly.
634 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
636 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
637 (mem_ref_p): Likewise.
638 (outermost_indep_loop): Adjust.
639 (mem_ref_in_stmt): Likewise.
640 (determine_max_movement): Likewise.
641 (mem_ref_alloc): Likewise.
642 (record_mem_ref_loc): Likewise.
643 (set_ref_stored_in_loop): Likewise.
644 (mark_ref_stored): Likewise.
645 (gather_mem_refs_stmt): Likewise.
646 (mem_refs_may_alias_p): Likewise.
647 (for_all_locs_in_loop): Likewise.
648 (struct rewrite_mem_ref_loc): Likewise.
649 (rewrite_mem_refs): Likewise.
650 (struct first_mem_ref_loc_1): Likewise.
651 (first_mem_ref_loc): Likewise.
652 (struct sm_set_flag_if_changed): Likewise.
653 (execute_sm_if_changed_flag_set): Likewise.
654 (execute_sm): Likewise.
655 (hoist_memory_references):
656 (struct ref_always_accessed): Likewise.
657 (ref_always_accessed_p): Likewise.
658 (refs_independent_p): Likewise.
659 (record_dep_loop): Likewise.
660 (ref_indep_loop_p_1): Likewise.
661 (ref_indep_loop_p_2): Likewise.
662 (ref_indep_loop_p): Likewise.
663 (can_sm_ref_p): Likewise.
664 (find_refs_for_sm): Likewise.
665 (tree_ssa_lim_finalize): Likewise.
667 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
669 * dwarf2out.c (dw_attr_ref): Remove typedef.
670 (dw_line_info_ref): Likewise.
671 (pubname_ref): Likewise.
672 (dw_ranges_ref): Likewise.
673 (dw_ranges_by_label_ref): Likewise.
674 (comdat_type_node_ref): Likewise.
676 (get_AT_low_pc): Likewise.
677 (get_AT_hi_pc): Likewise.
678 (get_AT_string): Likewise.
679 (get_AT_flag): Likewise.
680 (get_AT_unsigned): Likewise.
681 (get_AT_ref): Likewise.
682 (get_AT_file): Likewise.
683 (remove_AT): Likewise.
684 (print_die): Likewise.
685 (check_die): Likewise.
686 (die_checksum): Likewise.
687 (attr_checksum_ordered): Likewise.
688 (struct checksum_attributes): Likewise.
689 (collect_checksum_attributes): Likewise.
690 (die_checksum_ordered): Likewise.
691 (same_die_p): Likewise.
692 (is_declaration_die): Likewise.
693 (clone_die): Likewise.
694 (clone_as_declaration): Likewise.
695 (copy_declaration_context): Likewise.
696 (break_out_comdat_types): Likewise.
697 (copy_decls_walk): Likewise.
698 (output_location_lists): Likewise.
699 (external_ref_hasher::hash): Likewise.
700 (optimize_external_refs_1): Likewise.
701 (build_abbrev_table): Likewise.
702 (size_of_die): Likewise.
703 (unmark_all_dies): Likewise.
704 (size_of_pubnames): Likewise.
705 (output_die_abbrevs): Likewise.
706 (output_die): Likewise.
707 (output_pubnames): Likewise.
708 (add_ranges_num): Likewise.
709 (add_ranges_by_labels): Likewise.
710 (add_high_low_attributes): Likewise.
711 (gen_producer_string): Likewise.
712 (dwarf2out_set_name): Likewise.
713 (new_line_info_table): Likewise.
714 (prune_unused_types_walk_attribs): Likewise.
715 (prune_unused_types_update_strings): Likewise.
716 (prune_unused_types): Likewise.
717 (resolve_addr): Likewise.
718 (optimize_location_lists_1): Likewise.
719 (index_location_lists): Likewise.
720 (dwarf2out_finish): Likewise.
722 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
724 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
726 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
728 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
729 (dump_asserts_for): Adjust.
730 (register_new_assert_for): Likewise.
731 (process_assert_insertions): Likewise.
732 (insert_range_assertions): Likewise.
734 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
736 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
738 (new_temp_expr_table): Adjust.
739 (free_temp_expr_table): Likewise.
740 (version_to_be_replaced_p): Likewise.
741 (make_dependent_on_partition): Likewise.
742 (add_to_partition_kill_list): Likewise.
743 (remove_from_partition_kill_list): Likewise.
744 (add_dependence): Likewise.
745 (finished_with_expr): Likewise.
746 (process_replaceable): Likewise.
747 (kill_expr): Likewise.
748 (kill_virtual_exprs): Likewise.
749 (mark_replaceable): Likewise.
750 (find_replaceable_in_bb): Likewise.
751 (find_replaceable_exprs): Likewise.
752 (debug_ter): Likewise.
754 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
756 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
757 (struct btr_user): Rename from btr_user_s.
758 (struct btr_def): Rename from btr_def_s.
759 (find_btr_def_group): Adjust.
760 (add_btr_def): Likewise.
761 (new_btr_user): Likewise.
762 (note_other_use_this_block): Likewise.
763 (compute_defs_uses_and_gen): Likewise.
764 (link_btr_uses): Likewise.
765 (build_btr_def_use_webs): Likewise.
766 (block_at_edge_of_live_range_p): Likewise.
767 (btr_def_live_range): Likewise.
768 (combine_btr_defs): Likewise.
769 (move_btr_def): Likewise.
770 (migrate_btr_def): Likewise.
771 (migrate_btr_defs): Likewise.
773 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
775 * var-tracking.c (shared_hash_def): Rename to shared_hash.
776 (shared_hash): Remove typedef.
777 (struct dataflow_set): Adjust.
778 (shared_hash_unshare): Likewise.
779 (dataflow_set_merge): Likewise.
780 (vt_initialize): Likewise.
781 (vt_finalize): Likewise.
783 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
785 * var-tracking.c (struct location_chain): Rename from
787 (struct variable_part): Adjust.
788 (variable_htab_free): Likewise.
789 (unshare_variable): Likewise.
790 (get_init_value): Likewise.
791 (get_addr_from_local_cache): Likewise.
792 (drop_overlapping_mem_locs): Likewise.
793 (val_reset): Likewise.
794 (struct variable_union_info): Likewise.
795 (variable_union): Likewise.
796 (find_loc_in_1pdv): Likewise.
797 (insert_into_intersection): Likewise.
798 (intersect_loc_chains): Likewise.
799 (canonicalize_loc_order_check): Likewise.
800 (canonicalize_values_mark): Likewise.
801 (canonicalize_values_star): Likewise.
802 (canonicalize_vars_star): Likewise.
803 (variable_merge_over_cur): Likewise.
804 (remove_duplicate_values): Likewise.
805 (variable_post_merge_new_vals): Likewise.
806 (variable_post_merge_perm_vals): Likewise.
807 (find_mem_expr_in_1pdv): Likewise.
808 (dataflow_set_preserve_mem_locs): Likewise.
809 (dataflow_set_remove_mem_locs): Likewise.
810 (variable_part_different_p): Likewise.
811 (onepart_variable_different_p): Likewise.
812 (find_src_set_src): Likewise.
813 (dump_var): Likewise.
814 (set_slot_part): Likewise.
815 (clobber_slot_part): Likewise.
816 (delete_slot_part): Likewise.
817 (vt_expand_var_loc_chain): Likewise.
818 (emit_note_insn_var_location): Likewise.
819 (vt_finalize): Likewise.
821 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
823 * dse.c (store_info_t): Remove typedef.
824 (group_info_t): Likewise.
825 (const_group_info_t): Likewise.
826 (deferred_change_t): Likewise.
827 (get_group_info): Adjust.
828 (free_store_info): Likewise.
829 (canon_address): Likewise.
830 (clear_rhs_from_active_local_stores): Likewise.
831 (record_store): Likewise.
832 (replace_read): Likewise.
833 (check_mem_read_rtx): Likewise.
834 (scan_insn): Likewise.
835 (remove_useless_values): Likewise.
836 (dse_step1): Likewise.
837 (dse_step2_init): Likewise.
838 (dse_step2_nospill): Likewise.
839 (scan_stores_nospill): Likewise.
840 (scan_reads_nospill): Likewise.
841 (dse_step3_exit_block_scan): Likewise.
842 (dse_step3): Likewise.
843 (dse_step5_nospill): Likewise.
844 (dse_step6): Likewise.
846 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
848 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
849 (alias_set_entry): Remove typedef.
850 (alias_set_subset_of): Adjust.
851 (alias_sets_conflict_p): Likewise.
852 (init_alias_set_entry): Likewise.
853 (get_alias_set): Likewise.
854 (new_alias_set): Likewise.
855 (record_alias_subset): Likewise.
857 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
859 * doc/install.texi (Downloading the source): Mark up
860 contrib/download_prerequisites properly and drop leading "./".
862 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
864 * config/arc/arc.h: Remove define of STRUCT_VALUE.
865 * config/lm32/lm32.h: Likewise.
866 * config/mep/mep.h: Likewise.
867 * config/visium/visium.h: Likewise.
868 * system.h: Poison STRUCT_VALUE macro.
870 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
872 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
875 2015-09-11 David S. Miller <davem@davemloft.net>
877 * config/sparc/constraints.md: Make "U" constraint a real register
879 * config/sparc/sparc.c (TARGET_LRA_P): Define.
880 (D_MODES, DF_MODES): Add missing cast.
881 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
882 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
883 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
885 * config/sparc/sparc.h (PROMOTE_MODE): Define.
886 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
887 provide these insn when flag_pic.
889 2015-09-11 Jeff Law <law@redhat.com>
891 PR tree-optimization/47679
892 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
893 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
894 member with m_. Update inline member functions as necessary. Add
896 * tree-ssa-scopedtables.c: Update const_and_copies's member
897 functions to use m_ prefix to access the stack.
899 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
901 * graphite-optimize-isl.c (disable_tiling): Remove.
902 (get_schedule_for_band): Do not use disable_tiling.
903 (get_prevector_map): Delete function.
904 (enable_polly_vector): Remove.
905 (get_schedule_for_band_list): Remove dead code.
907 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
909 * graphite-optimize-isl.c (get_tile_map): Refactor.
910 (get_schedule_for_band): Same.
911 (getScheduleForBand): Same.
912 (get_prevector_map): Same.
913 (get_schedule_for_band_list): Same.
914 (get_schedule_map): Same.
915 (get_single_map): Same.
916 (apply_schedule_map_to_scop): Same.
917 (optimize_isl): Same.
919 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
922 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
924 * config/aarch64/iterators.md (GPF_TF_F16): New.
927 2015-09-10 Nathan Sidwell <nathan@acm.org>
929 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
930 (nvptx_reorg): Adjust comments.
932 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
935 * configure.ac: Check if setenv and unsetenv are declared.
936 * configure: Rebuild.
937 * config.in: Rebuild.
938 * system.h: Declare setenv and unsetenv if not declared.
940 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
942 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
943 commentary to simplify permute mask adjustment equation.
944 (special_handling_values): Add SH_VPERM.
945 (const_load_sequence_p): New function.
946 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
947 the mask loaded from the constant pool.
948 (adjust_vperm): New function.
949 (handle_special_swappables): Call adjust_vperm.
950 (dump_swap_insn_table): Handle SH_VPERM.
952 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
954 * shrink-wrap.c (requires_stack_frame_p): Remove static.
955 * shrink-wrap.h (requires_stack_frame_p): Put back.
957 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
959 * reload1.c (elimination_costs_in_insn): Locally turn
960 -Wmaybe-uninitialized into a warning.
962 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
964 * shrink-wrap.c (requires_stack_frame_p): Make static.
965 (prepare_shrink_wrap): Likewise.
966 (dup_block_and_redirect): Likewise.
967 * shrink-wrap.h: Remove declarations of those functions.
969 2015-09-10 Mark Wielaard <mjw@redhat.com>
971 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
973 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
976 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
977 missing simplify_gen_subreg.
979 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
981 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
982 the vector element is bigger than 64 bit.
984 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
986 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
987 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
989 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
991 * config/s390/s390.c: Add V1TImode to constant pool modes.
993 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
996 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
997 predicate. Set predicable_short_it attr to "no".
999 2015-09-10 Jiong Wang <jiong.wang@arm.com>
1001 PR rtl-optimization/67421
1002 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
1003 left wide shift tranformation.
1005 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1007 * common/config/arc/arc-common.c: Remove references to A5.
1008 * config/arc/arc-opts.h: Likewise.
1009 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
1010 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
1011 * config/arc/t-arc-newlib: Likewise.
1013 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1015 * config/arc/arc.md (length): Fix attribute length for conditional
1016 executed instructions with long immediate.
1018 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1020 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
1021 type for second alternative.
1023 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
1025 * doc/invoke.texi (Downloading GCC): Mention
1026 contrib/download_prerequisites script.
1028 2015-09-10 Jakub Jelinek <jakub@redhat.com>
1031 * gimplify.c (gimplify_omp_for): If inner stmt is not found
1032 for combined loop, assert seen_error () and return GS_ERROR.
1035 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
1036 if decl is already in outer->variables.
1039 * gimplify.c (gimplify_scan_omp_clauses): Instead of
1040 asserting that decl is not specified in octx->variables,
1041 break out of the loop if it is.
1044 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
1045 iterator is not explicitly determined, but is defined inside
1046 of the combined workshare region, handle it like if it has
1047 DECL_EXPR in OMP_FOR_PRE_BODY.
1049 2015-09-09 Nathan Sidwell <nathan@acm.org>
1051 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
1052 (*cmp<mode>): Add assembler spacing.
1053 (setcc_int<mode>, set_cc_float<mode>): Likewise.
1054 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
1056 (write_func_decl_from_insn): Refactor argument loops & comma emission.
1057 (nvptx_expand_call): Likewise.
1058 (nvptx_output_call_insn): Likewise.
1059 (nvptx_reorg_subreg): Add spacing.
1061 2015-09-09 Marek Polacek <polacek@redhat.com>
1064 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
1067 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1070 * doc/invoke.texi ([Wsubobject-linkage]): Document.
1072 2015-09-09 Tom de Vries <tom@codesourcery.com>
1074 * params-list.h: Add missing copyright notice.
1076 2015-09-09 Nathan Sidwell <nathan@acm.org>
1078 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
1079 sel_truesi, not andsi.
1081 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1083 * config/arm/arm.md (*subsi3_compare0): Rename to...
1084 (subsi3_compare0): ... This.
1085 (modsi3): New define_expand.
1086 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
1087 when operand is power of 2.
1089 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1091 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
1092 (*neg<mode>2_compare0): Rename to...
1093 (neg<mode>2_compare0): ... This.
1094 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
1095 Move check for speed inside the if-then-elses. Reflect
1096 CSNEG sequence in MOD by power of 2 case.
1098 2015-09-09 Alan Modra <amodra@gmail.com>
1101 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1102 reload replacement for PRE_MODIFY address reg.
1104 2015-09-09 Sebastian Pop <s.pop@samsung.com>
1106 PR tree-optimization/53852
1107 * config.in: Regenerate.
1108 * configure: Regenerate.
1109 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
1110 * graphite-optimize-isl.c (optimize_isl): Stop computation when
1111 PARAM_MAX_ISL_OPERATIONS is reached.
1112 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
1113 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
1114 result equal to isl_stat_ok as the status now can be isl_error_quota.
1115 (subtract_commutative_associative_deps): Same.
1116 (compute_deps): Same.
1118 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1119 Sebastian Pop <s.pop@samsung.com>
1121 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1122 Return the parameter if it was saved in corresponding
1123 parameter_rename_map of the region.
1124 (copy_def): Copy def from sese region to the newly created region.
1125 (copy_internal_parameters): Copy all the internal parameters defined
1126 within a region to the newly created region.
1127 (graphite_regenerate_ast_isl): Copy parameters to the new region before
1128 translating isl to gimple.
1129 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
1130 the loop-nest does not have any data-references.
1131 (build_graphite_scops): Create a scop only when there is at least one
1133 (contains_only_close_phi_nodes): Deleted.
1134 (print_graphite_scop_statistics): Deleted
1135 (print_graphite_statistics): Deleted
1136 (limit_scops): Deleted.
1137 (build_scops): Removed call to limit_scops.
1138 * sese.c (new_sese): Construct.
1139 (free_sese): Destruct.
1140 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
1142 (set_rename): Pass sese region so that parameters inside the region can
1143 be added to its parameter_rename_map.
1144 (rename_uses): Pass sese region.
1145 (graphite_copy_stmts_from_block): Do not copy parameters that have been
1146 generated in the header of the scop. For each SSA_NAME in the
1147 parameter_rename_map rename its usage.
1148 (invariant_in_sese_p_rec): Return false if tree t is defined outside
1150 (scalar_evolution_in_region): If the tree t is invariant just return t.
1151 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
1152 struct sese to keep track of all the parameters which need renaming.
1153 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
1155 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
1157 2015-09-08 Tom de Vries <tom@codesourcery.com>
1159 * Makefile.in (generated_files): Add params.list.
1160 (params.list, s-params.list): Add rule.
1161 * params.h (enum compiler_param): Include params-list.h. Move define
1162 DEFPARAM, include params.def and undef DEFPARAM ...
1163 * params-list.h: ... here. New file.
1165 2015-09-08 David Malcolm <dmalcolm@redhat.com>
1167 * pretty-print.h (printer_fn): Fix typo in comment.
1169 2015-09-07 Jeff Law <law@redhat.com>
1171 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
1173 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1175 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
1176 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
1177 (arm_neon_fp16_hw): New.
1179 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1181 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
1182 UNITS_PER_WORD >= 4.
1184 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1186 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
1187 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
1188 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
1189 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
1190 (aarch64_float_extend_lo_v2df): Rename to...
1191 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
1193 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
1194 (float_extend_lo): Add v4sf.
1196 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
1197 * config/aarch64/iterators.md (VQ_HSF): New iterator.
1198 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
1199 (Vwide): New mode_attr.
1201 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1203 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
1204 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
1205 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
1206 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
1207 V4HF and V8HF variants to iterator.
1209 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
1211 * config/aarch64/iterators.md (VDQF_F16): New.
1212 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
1214 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1216 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
1217 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1218 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
1219 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
1220 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
1221 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1222 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
1223 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
1224 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
1225 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
1226 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
1227 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1228 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
1229 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
1230 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
1231 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
1232 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
1233 vld1q_dup_f16): New.
1235 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1237 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
1238 Reparameterize to...
1239 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
1240 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
1241 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
1243 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
1245 (float_truncate_lo_): Use BUILTIN_VDF iterator.
1247 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
1249 * config/aarch64/iterators.md (VDF, Vdtype): New.
1250 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
1252 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1254 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
1255 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
1256 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
1257 Add __builtin_aarch64_simd_hf.
1258 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
1259 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
1260 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
1261 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
1262 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
1263 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
1264 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
1265 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
1266 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
1268 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
1269 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
1270 (VDC, Vdbl): Add V4HF.
1272 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1274 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
1275 V4HFmode and V8HFmode.
1276 (aarch64_split_simd_move): Add case for V8HFmode.
1277 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
1278 (aarch64_simd_builtin_std_type): Handle HFmode.
1279 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
1281 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
1282 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
1283 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
1285 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
1288 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
1289 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
1291 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
1292 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
1293 vst1q_lane_f16): New.
1294 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
1295 (VALLDI_F16, VALL_F16): New.
1296 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
1297 Add cases for V4HF and V8HF.
1298 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
1300 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1302 * config/arm/arm-builtins.c (VAR11, VAR12): New.
1303 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
1304 vld4_dup): Add v4hf variant.
1305 (vget_high, vget_low): Add v8hf variant.
1306 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
1307 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
1308 v4hf and v8hf variants.
1310 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
1312 (V_DOUBLE): Add case for V4HF.
1314 (V_HALF): Add case for V8HF.
1315 (VDQX): Add V4HF, V8HF.
1316 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
1317 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
1319 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
1320 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
1321 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
1322 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
1323 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
1324 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
1325 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
1326 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
1327 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
1329 (neon_vcreate, neon_vreinterpretv8qi<mode>,
1330 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1331 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
1332 Change VDX to VD_RE.
1334 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
1335 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
1336 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
1338 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
1339 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
1340 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
1341 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
1342 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
1343 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
1344 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
1345 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
1346 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
1348 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1350 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
1351 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
1352 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
1353 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
1354 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1355 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
1356 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
1357 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
1358 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
1359 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
1362 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1364 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
1366 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
1368 * config/arm/arm-builtins.c (v8hf_UP): New.
1369 (arm_init_simd_builtin_types): Initialise Float16x8_t.
1371 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
1373 * config/arm/arm_neon.h (float16x8_t): New typedef.
1375 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1377 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
1378 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
1379 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
1380 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
1381 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1382 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
1383 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
1384 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
1385 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1386 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
1388 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
1390 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
1391 non-alphanumeric characters in the symbol name.
1393 2015-09-07 Marek Polacek <polacek@redhat.com>
1396 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
1399 2015-09-07 Marek Polacek <polacek@redhat.com>
1401 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
1403 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
1405 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
1408 2015-09-04 Jakub Jelinek <jakub@redhat.com>
1411 * tree-ssa-live.c: Include cfgloop.h.
1412 (remove_unused_locals): Clear loop->simduid if simduid is about
1413 to be removed from cfun->local_decls.
1415 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1418 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
1421 2015-09-04 Tom de Vries <tom@codesourcery.com>
1423 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
1425 2015-09-04 Jeff Law <law@redhat.com>
1427 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
1428 unnecessary constructor. It's now trivial and implemented inside...
1429 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
1430 constructor. Add comments to various methods. Remove unused
1432 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
1433 * tree-vrp.c (identify_jump_threads): Likewise.
1434 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
1436 (thread_across_edge): Similarly.
1437 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
1438 arguments in constructor call.
1440 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
1442 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
1443 temp path contains a '-'.
1445 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1446 Petr Murzin <petr.murzin@intel.com>
1447 Kirill Yukhin <kirill.yukhin@intel.com>
1449 * config/i386/i386-builtin-types.def
1450 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
1451 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
1452 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
1453 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
1454 * config/i386/i386.c
1455 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
1456 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1457 IX86_BUILTIN_SCATTERALTDIV16SI.
1458 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
1459 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
1460 __builtin_ia32_scatteraltdiv8si.
1461 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
1462 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1463 IX86_BUILTIN_SCATTERALTDIV16SI.
1464 (ix86_vectorize_builtin_scatter): New.
1465 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
1466 ix86_vectorize_builtin_scatter.
1468 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1469 Petr Murzin <petr.murzin@intel.com>
1470 Kirill Yukhin <kirill.yukhin@intel.com>
1472 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
1473 * doc/tm.texi: Regenerate.
1474 * target.def: Add scatter builtin.
1475 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
1476 for loads/stores in case of gather/scatter accordingly.
1477 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1478 (vect_check_gather): Rename to ...
1479 (vect_check_gather_scatter): this.
1480 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
1481 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
1482 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1483 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
1484 and new checkings for it accordingly.
1486 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1487 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1488 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
1490 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
1492 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
1494 (mulv16qi3): New define_expand.
1496 2015-09-03 Martin Sebor <msebor@redhat.com>
1499 * doc/extend.texi (Other Builtins): Document when the address
1500 of a built-in function can be taken.
1502 2015-09-03 Richard Biener <rguenther@suse.de>
1504 * dwarf2out.c (flush_limbo_die_list): Split out from ...
1505 (dwarf2out_early_finish): ... here.
1506 (dwarf2out_finish): Do not call dwarf2out_early_finish but
1507 flush_limbo_die_list. Assert we have no deferred asm names.
1509 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1511 * optabs.c (expand_binop): Don't create a broadcast vector with a
1512 source element wider than the inner mode.
1514 2015-09-03 Richard Biener <rguenther@suse.de>
1516 * varasm.c (output_constant): Use fold_convert instead of
1519 2015-09-03 Tom de Vries <tom@codesourcery.com>
1521 PR tree-optimization/65637
1522 * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
1525 2015-09-03 Tom de Vries <tom@codesourcery.com>
1527 PR tree-optimization/65637
1528 * omp-low.c (find_phi_with_arg_on_edge): New function.
1529 (expand_omp_for_static_chunk): Fix inner loop phi.
1531 2015-09-03 Tom de Vries <tom@codesourcery.com>
1533 PR tree-optimization/65637
1534 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
1537 2015-09-03 Tom de Vries <tom@codesourcery.com>
1539 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
1541 2015-09-03 Tom de Vries <tom@codesourcery.com>
1543 * doc/invoke.texi (parloops-chunk-size): Add item.
1544 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
1545 * tree-parloops.c: Include params.h.
1546 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
1547 param parloops-chunk-size is used.
1549 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1552 * fold-const.c (fold_binary_loc) : Move
1553 Transform (x >> c) << c into x & (-1<<c) or
1554 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
1555 types using simplify and match.
1556 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
1557 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
1559 2015-09-03 Richard Biener <rguenther@suse.de>
1562 * tree-ssa-structalias.c (ctor_for_analysis): New function.
1563 (create_variable_info_for_1): Use ctor_for_analysis instead
1565 (create_variable_info_for): Likewise.
1567 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
1570 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
1571 in new callgraph edge.
1573 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
1578 * config/aarch64/aarch64-simd.md
1579 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
1580 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
1581 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
1582 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
1584 2015-09-02 Alan Modra <amodra@gmail.com>
1586 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
1587 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
1588 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
1590 2015-09-02 Alan Modra <amodra@gmail.com>
1593 * config/rs6000/predicates.md (current_file_function_operand): Don't
1594 return true for weak symbols.
1595 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
1597 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
1598 Andrew Bennett <andrew.bennett@imgtec.com>
1600 * config/mips/mips-opts.h (mips_cb_setting): New enum.
1601 * config/mips/mips-protos.h: Add definitions for
1602 mips_output_jump and mips_output_equal_conditional_branch
1603 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
1605 (mips_emit_compare): Add support for the MIPS R6 conditional
1607 (mips_process_sync_loop): Likewise.
1608 (mips_output_order_conditional_branch): Likewise.
1609 (mips16_build_call_stub): Change MIPS_CALL to
1611 (mips_print_operand_punctuation): Update 's' case to only
1612 apply to micromips r2.
1613 (mips_adjust_insn_length): Add support for forbidden slot
1615 (mips_avoid_hazard): Likewise.
1616 (mips_reorg_process_insns): Likewise.
1617 (mips_output_jump): New function.
1618 (mips_output_equal_conditional_branch): Likewise.
1619 (mips_output_conditional_branch): Use jrc/bc if compact
1620 branch support is enabled. Ensure the forbidden slots
1621 between the two branch instructions is filled with a nop.
1622 (mips_option_override): Add support to process the compact
1623 branch option and set the correct defaults. Prevent
1624 non-explict relocs being using for MIPS R6.
1625 (mips_trampoline_init): Add compact branch support.
1626 (mips_mult_zero_zero_cost): Allow zero initialisation of
1627 accumulators with TARGET_DSP.
1628 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
1629 (TARGET_CB_MAYBE): New define.
1630 (TARGET_CB_ALWAYS): New define.
1631 (ISA_HAS_DELAY_SLOTS): New define.
1632 (ISA_HAS_COMPACT_BRANCHES): New define.
1633 (ISA_HAS_JRC): New define.
1634 (MIPS_BRANCH_C): New define.
1635 (MIPS_CALL): Removed.
1636 (MICROMIPS_J): Removed.
1637 * config/mips/mips.md (compact_form): New attr.
1638 (hazard): Add support for forbidden slots.
1639 (define_delay): Add support for compact branches.
1640 (*branch_order<mode>): Likewise.
1641 (*branch_order<mode>_inverted): Likewise.
1642 (*branch_equality<mode>): Likewise.
1643 (*branch_equality<mode>_inverted): Likewise.
1644 (*jump_absolute): Likewise.
1645 (*jump_pic): Likewise.
1646 (indirect_jump): Use mips_output_jump to produce assembly output.
1647 (tablejump_<mode>"): Likewise.
1648 (*<optab>"): Likewise.
1649 (<optab>_internal): Likewise.
1650 (sibcall_internal): Likewise.
1651 (sibcall_value_internal): Likewise.
1652 (sibcall_value_multiple_internal): Likewise.
1653 (call_internal): Likewise.
1654 (call_split): Likewise.
1655 (call_internal_direct): Likewise.
1656 (call_direct_split): Likewise.
1657 (call_value_internal): Likewise.
1658 (call_value_split): Likewise.
1659 (call_value_internal_direct): Likewise.
1660 (call_value_direct_split): Likewise.
1661 (call_value_multiple_internal): Likewise.
1662 (call_value_multiple_split): Likewise.
1663 (mips_get_fcsr_mips16_<mode>): Likewise.
1664 (mips_set_fcsr_mips16_<mode>): Likewise.
1665 (tls_get_tp_mips16_<mode>): Likewise.
1666 * config/mips/mips.opt: Add -mcompact-branches option.
1667 * config/mips/predicates.md (order_operator): Ensure the
1668 conditional compact branches are only used if the ISA them.
1669 * doc/invoke.texi: Document -mcompact-branches option.
1671 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
1674 * lra-lives.c (process_bb_lives): Process move pseudos with the
1675 same value for copies and preferences
1676 * lra-constraints.c (match_reload): Create match reload pseudo
1677 with the same value from single dying input pseudo.
1679 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1682 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
1684 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
1686 * trans-mem.c: Add contributed-by.
1687 * trans-mem.h: Same.
1689 2015-09-01 Richard Biener <rguenther@suse.de>
1691 * expr.c (expand_expr_real_1): For expanding TERed defs
1692 set the current location to that of the def if not UNKNOWN.
1694 2015-09-01 David Sherwood <david.sherwood@arm.com>
1696 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
1698 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1700 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
1701 then_cost, else_cost fields. Change branch_cost field to unsigned
1703 (end_ifcvt_sequence): Call set_used_flags on each insn in the
1706 (noce_simple_bbs): New function.
1707 (noce_try_move): Bail if basic blocks are not simple.
1708 (noce_try_store_flag): Likewise.
1709 (noce_try_store_flag_constants): Likewise.
1710 (noce_try_addcc): Likewise.
1711 (noce_try_store_flag_mask): Likewise.
1712 (noce_try_cmove): Likewise.
1713 (noce_try_minmax): Likewise.
1714 (noce_try_abs): Likewise.
1715 (noce_try_sign_mask): Likewise.
1716 (noce_try_bitop): Likewise.
1717 (bbs_ok_for_cmove_arith): New function.
1718 (noce_emit_all_but_last): Likewise.
1719 (noce_emit_insn): Likewise.
1720 (noce_emit_bb): Likewise.
1721 (noce_try_cmove_arith): Handle non-simple basic blocks.
1722 (insn_valid_noce_process_p): New function.
1723 (contains_mem_rtx_p): Likewise.
1724 (bb_valid_for_noce_process_p): Likewise.
1725 (noce_process_if_block): Allow non-simple basic blocks
1728 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
1730 * tree-ssa-dom.c (record_equivalences_from_phis,
1731 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
1732 (lookup_avail_expr): Likewise, and remove comment and unused temp.
1734 2015-09-01 Nick Clifton <nickc@redhat.com>
1736 * config/msp430/msp430.opt (mcpu): Fix typo.
1738 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1740 * config/aarch64/aarch64.c (aarch64_set_current_function):
1741 Re-layout any vector parameters have non-simd layout.
1742 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
1744 (aarch64_simd_expand_args): Delete call to the above.
1746 2015-08-31 Mike Frysinger <vapier@gentoo.org>
1748 * doc/invoke.texi (asan-stack): Add space before option.
1750 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1752 * tree.h (zerop): New function.
1753 * tree.c (zerop): Likewise.
1754 (element_precision): Handle expressions.
1755 * match.pd (define_predicates): Add zerop.
1756 (x <= +Inf): Fix comment.
1757 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
1758 * fold-const.c (fold_binary_loc): ... here. Remove.
1760 2015-08-31 Richard Biener <rguenther@suse.de>
1763 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
1765 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1767 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
1768 (CEXPI): New operator list.
1769 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
1770 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
1772 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
1774 2015-08-31 Tom de Vries <tom@codesourcery.com>
1776 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
1777 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
1779 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
1780 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
1781 (rewrite_into_loop_closed_ssa): ... here.
1782 (replace_uses_in_dominated_bbs): Remove function.
1783 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
1784 rewrite_into_loop_closed_ssa_1.
1786 2015-08-31 Michael Matz <matz@suse.de>
1788 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
1789 enter entry and exit blocks for reverse post order.
1791 2015-08-31 Richard Biener <rguenther@suse.de>
1793 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
1794 (lto_location_cache::current_sysp): Likewise.
1795 (output_block::current_sysp): Likewise.
1796 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
1797 (lto_location_cache::apply_location_cache): Properly record
1798 system header locations.
1799 (lto_location_cache::input_location): Input whether a file
1801 * lto-streamer-out.c (lto_output_location): Stream whether a file
1804 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1807 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
1809 2015-08-31 Tom de Vries <tom@codesourcery.com>
1811 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
1812 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
1813 Improve function header comments.
1815 2015-08-30 Michael Collison <michael.collison@linaro.org>
1818 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
1821 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1823 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
1824 special_handling bitfield.
1825 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
1826 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
1827 that represents a general xxpermdi.
1828 (insn_is_swappable_p): Add handling for vec_concat of two
1829 doublewords, which maps to a specific xxpermdi.
1830 (adjust_xxpermdi): New function.
1831 (adjust_concat): Likewise.
1832 (handle_special_swappables): Call adjust_xxpermdi and
1834 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
1836 2015-08-30 Rich Felker <dalias@libc.org>
1838 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
1839 case instead of sh[123456ble]-*-*.
1841 2015-08-29 Anatoly Sokolov <aesok@post.ru>
1843 * ira.c (print_unform_and_important_classes,
1844 print_translated_classes): Remove reg_class_names static array.
1845 (print_unform_and_important_classes): Rename to ...
1846 (print_uniform_and_important_classes): ... this.
1847 (ira_debug_allocno_classes): Update accordingly.
1849 2015-08-29 Tom de Vries <tom@codesourcery.com>
1851 PR tree-optimization/46193
1852 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
1855 2015-08-28 Jeff Law <law@redhat.com>
1858 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1859 unable to find X NE 0 in the tables, return X as the simplified
1861 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1862 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
1864 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1865 after removing the control flow statement and unnecessary edges.
1867 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
1870 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
1871 PR tree-optimization/67283
1872 * tree-sra.c (type_consists_of_records_p): Rename to...
1873 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1875 (completely_scalarize_record): Rename to...
1876 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
1878 (scalarize_elem): New.
1880 2015-08-28 Jiong Wang <jiong.wang@arm.com>
1882 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
1883 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
1884 (aarch64_symbol_type): Likewise.
1885 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1887 (aarch64_expand_mov_immediate): Likewise.
1888 (aarch64_print_operand): Likewise.
1889 (aarch64_classify_tls_symbol): Likewise.
1891 2015-08-28 Richard Biener <rguenther@suse.de>
1893 * cgraphunit.c (symbol_table::compile): Move early debug generation
1895 (symbol_table::finalize_compilation_unit): ... back here and
1896 add a !seen_error () guard.
1898 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1900 * toplev.c (process_options): Do not use flag_loop_block,
1901 flag_loop_interchange, and flag_loop_strip_mine. Add check for
1902 flag_loop_optimize_isl.
1904 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1906 * Makefile.in (OBJS): Remove graphite-blocking.o and
1907 graphite-interchange.o.
1908 * common.opt (floop-strip-mine, floop-interchange, floop-block):
1909 Alias of floop-nest-optimize.
1910 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
1911 Document as alias of -floop-nest-optimize.
1912 * graphite-blocking.c: Remove.
1913 * graphite-interchange.c: Remove.
1914 * graphite-optimize-isl.c: Include dumpfile.h.
1915 (getScheduleForBand): Add dump for tiled loops. Use
1916 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
1917 * graphite-poly.c (scop_max_loop_depth): Remove.
1918 (print_scattering_function_1): Remove.
1919 (print_scattering_function): Remove.
1920 (print_scattering_functions): Remove.
1921 (debug_scattering_function): Remove.
1922 (debug_scattering_functions): Remove.
1923 (apply_poly_transforms): Remove use of flag_loop_block,
1924 flag_loop_strip_mine, and flag_loop_interchange.
1925 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
1927 (print_pdr_access_layout): Remove.
1928 (print_pdr): Print ISL representation.
1929 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
1930 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1932 (openscop_print_pbb_domain): Remove.
1933 (print_pbb): Remove call to print_scattering_function.
1934 (openscop_print_scop_context): Remove.
1935 (print_scop_context): Do not print matrices anymore.
1936 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
1937 SCOP_TRANSFORMED_SCHEDULE.
1938 (print_isl_set): Add printing of a new line.
1939 (print_isl_map): Same.
1940 (print_isl_aff): Same.
1941 (print_isl_constraint): Same.
1942 (loop_to_lst): Remove.
1943 (scop_to_lst): Remove.
1944 (lst_indent_to): Remove.
1945 (print_lst): Remove.
1946 (debug_lst): Remove.
1947 (dot_lst_1): Remove.
1949 (reverse_loop_at_level): Remove.
1950 (reverse_loop_for_pbbs): Remove.
1951 * graphite-poly.h (pdr_dim_iter_domain): Remove.
1952 (pdr_nb_params): Remove.
1953 (pdr_alias_set_dim): Remove.
1954 (pdr_subscript_dim): Remove.
1955 (pdr_iterator_dim): Remove.
1956 (pdr_parameter_dim): Remove.
1957 (same_pdr_p): Remove.
1958 (struct poly_scattering): Remove.
1959 (struct poly_bb): Remove _original, _transformed, _saved.
1960 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
1961 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
1962 (PBB_NB_LOCAL_VARIABLES): Remove.
1963 (PBB_NB_SCATTERING_TRANSFORM): Remove.
1964 (schedule_to_scattering): Remove.
1965 (number_of_write_pdrs): Remove.
1966 (pbb_dim_iter_domain): Remove.
1967 (pbb_nb_params): Remove.
1968 (pbb_nb_scattering_orig): Remove.
1969 (pbb_nb_scattering_transform): Remove.
1970 (pbb_nb_dynamic_scattering_transform): Remove.
1971 (pbb_nb_local_vars): Remove.
1972 (pbb_iterator_dim): Remove.
1973 (pbb_parameter_dim): Remove.
1974 (psco_scattering_dim): Remove.
1975 (psct_scattering_dim): Remove.
1976 (psct_local_var_dim): Remove.
1977 (psco_iterator_dim): Remove.
1978 (psct_iterator_dim): Remove.
1979 (psco_parameter_dim): Remove.
1980 (psct_parameter_dim): Remove.
1981 (psct_dynamic_dim): Remove.
1982 (psct_static_dim): Remove.
1983 (psct_add_local_variable): Remove.
1984 (new_lst_loop): Remove.
1985 (new_lst_stmt): Remove.
1988 (lst_add_loop_under_loop): Remove.
1989 (lst_depth): Remove.
1990 (lst_dewey_number): Remove.
1991 (lst_dewey_number_at_depth): Remove.
1994 (lst_find_pbb): Remove.
1995 (find_lst_loop): Remove.
1996 (lst_find_first_pbb): Remove.
1997 (lst_empty_p): Remove.
1998 (lst_find_last_pbb): Remove.
1999 (lst_contains_p): Remove.
2000 (lst_contains_pbb): Remove.
2001 (lst_create_nest): Remove.
2002 (lst_remove_from_sequence): Remove.
2003 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
2004 (lst_niter_for_loop): Remove.
2005 (pbb_update_scattering): Remove.
2006 (lst_update_scattering_under): Remove.
2007 (lst_update_scattering): Remove.
2008 (lst_insert_in_sequence): Remove.
2009 (lst_replace): Remove.
2010 (lst_substitute_3): Remove.
2011 (lst_distribute_lst): Remove.
2012 (lst_remove_all_before_including_pbb): Remove.
2013 (lst_remove_all_before_excluding_pbb): Remove.
2014 (struct scop): Remove original_schedule, transformed_schedule, and
2016 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
2017 (SCOP_SAVED_SCHEDULE): Remove.
2018 (poly_scattering_new): Remove.
2019 (poly_scattering_free): Remove.
2020 (poly_scattering_copy): Remove.
2021 (store_scattering_pbb): Remove.
2022 (store_lst_schedule): Remove.
2023 (restore_lst_schedule): Remove.
2024 (store_scattering): Remove.
2025 (restore_scattering_pbb): Remove.
2026 (restore_scattering): Remove.
2027 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2028 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
2029 compute the scattering polyhedron dimension from the dimension of
2031 (build_scop_scattering): Update call to
2032 build_pbb_scattering_polyhedrons.
2033 (build_poly_scop): Remove call to scop_to_lst.
2034 * graphite.c (graphite_transform_loops): Add call to print_scop.
2035 (gate_graphite_transforms): Remove use of flag_loop_block,
2036 flag_loop_interchange, and flag_loop_strip_mine.
2038 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2040 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
2041 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
2042 -floop-nest-optimize.
2043 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
2044 (generate_luj_sepclass): Remove.
2045 (generate_luj_options): Remove.
2046 (set_options): Remove opt_luj.
2047 (scop_to_isl_ast): Remove opt_luj.
2048 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
2049 flag_loop_unroll_jam.
2050 (getPrevectorMap_full): Remove.
2051 (getScheduleForBandList): Remove map_sepcl.
2052 (getScheduleMap): Same.
2053 (apply_schedule_map_to_scop): Remove sepcl.
2054 (optimize_isl): Same.
2055 * graphite-poly.c (apply_poly_transforms): Remove check for
2056 flag_loop_unroll_jam.
2057 (new_poly_bb): Remove map_sepclass.
2058 * graphite-poly.h (struct poly_bb): Same.
2059 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
2060 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
2061 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
2062 * toplev.c (process_options): Remove flag_loop_unroll_jam.
2064 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
2067 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
2069 (UNSPEC_ADD_CARRY): Remove.
2070 (addqi3_cconly_overflow): New expander.
2071 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
2072 Adjust for changed add<mode>3_carry.
2073 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
2074 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
2075 (<plusminus_insn><mode>3_carry): Remove expander.
2076 (*<plusminus_insn><mode>3_carry): Split insn pattern to
2077 add<mode>3_carry and sub<mode>3_carry.
2078 (plusminus_carry_mnemonic): Remove code attribute.
2079 (add<mode>3_carry): Canonicalize insn pattern.
2080 (*addsi3_carry_zext): Ditto.
2081 (sub<mode>3_carry): Ditto.
2082 (*subsi3_carry_zext): Ditto.
2083 (adcx<mode>3): Remove insn pattern.
2084 (addcarry<mode>): New insn pattern.
2085 (subborrow<mode>): Ditto.
2086 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
2087 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
2088 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
2089 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
2090 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
2091 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
2092 Rewrite expander to not clobber carry flag chains.
2094 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
2096 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
2097 instead of a rotate.
2099 2015-08-27 Marek Polacek <polacek@redhat.com>
2102 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
2103 an entry into an irreducible region.
2105 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2107 * configure: Regenerate.
2109 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2111 PR tree-optimization/67283
2112 * tree-sra.c (type_consists_of_records_p): Rename to...
2113 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2115 (completely_scalarize_record): Rename to...
2116 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2117 (scalarize_elem): New.
2119 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2121 * tree-sra.c (completely_scalarize_var): Rename to...
2122 (create_total_scalarization_access): ... Here. Drop call to
2123 completely_scalarize_record.
2125 (analyze_all_variable_accesses): Replace completely_scalarize_var
2126 with create_total_scalarization_access and completely_scalarize_record.
2128 2015-08-27 Alan Modra <amodra@gmail.com>
2131 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
2134 2015-08-27 Richard Biener <rguenther@suse.de>
2136 * passes.c (rest_of_decl_compilation): Guard early_global_decl
2137 call with !seen_error ().
2138 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
2139 early debug generation and finish...
2140 (symbol_table::compile): ... here to put it after a !seen_error ()
2143 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2145 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
2148 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2149 Andre Vieira <andre.simoesdiasvieira@arm.com>
2151 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
2152 (*cb<optab><mode>1): Likewise.
2153 (*tb<optab><mode>1): Likewise.
2154 (*cb<optab><mode>1): Likewise.
2155 * config/aarch64/iterators.md (inv_cb): New code attribute.
2157 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
2158 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
2160 2015-08-27 Richard Biener <rguenther@suse.de>
2162 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
2164 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2166 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
2169 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2171 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
2174 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
2176 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
2177 floating point in VSX registers.
2178 (rs6000_output_move_128bit): Always print out the set insn if we
2179 can't generate an appropriate 128-bit move.
2180 (rs6000_generate_compare): Add support for IEEE 128-bit floating
2181 point in VSX registers comparisons.
2182 (rs6000_expand_float128_convert): Likewise.
2184 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
2185 predicate for only GPR hard registers.
2187 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
2188 modes to iterators. Add new iterators for moving 128-bit values in
2189 scalar FPR registers and VSX registers.
2190 (FMOVE128): Likewise.
2191 (FMOVE128_FPR): Likewise.
2192 (FMOVE128_GPR): Likewise.
2193 (FMOVE128_VSX): Likewise.
2194 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
2199 (RELOAD): Add IEEE 128-bit floating point modes.
2200 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
2201 floating point in VSX registers modes.
2202 (signbit<mode>2, IBM128 iterator): Likewise.
2203 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
2204 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2206 (neg<mode>2, TFIFKF iterator): Likewise.
2207 (negtf2_internal): Likewise.
2209 (abs<mode>2, TFIFKF iterator): Likewise.
2210 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
2211 VSX insn support for negate, absolute value, and negative absolute
2213 (ieee_128bit_vsx_neg<mode>2): Likewise.
2214 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2215 (ieee_128bit_vsx_abs<mode>2): Likewise.
2216 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2217 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2218 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2219 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
2220 floating point in VSX registers.
2221 (unpack<mode>_dm): Likewise.
2222 (unpack<mode>_nodm): Likewise.
2223 (pack<mode>): Likewise.
2224 (unpackv1ti): Likewise.
2225 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
2226 (packv1ti): Likewise.
2227 (pack<mode>, FMOVE128_VSX iterator): Likewise.
2228 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
2230 (extenddftf2_internal): Likewise.
2231 (trunctfdf2): Likewise.
2232 (trunctfdf2_internal2): Likewise.
2233 (fix_trunc_helper): Likewise.
2234 (fix_trunctfdi2"): Likewise.
2235 (floatditf2): Likewise.
2236 (floatuns<mode>tf2): Likewise.
2237 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2238 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2239 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2240 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2241 (float<SDI:mode><IFKF:mode>2): Likewise.
2242 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2244 2015-08-26 Renlin Li <renlin.li@arm.com>
2246 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
2248 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2249 Jiong Wang <jiong.wang@arm.com>
2251 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
2252 (tlsie_tiny_<mode>): New define_insn.
2253 (tlsie_tiny_sidi): Likewise.
2254 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2256 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
2257 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
2259 (aarch64_expand_mov_immediate): Likewise.
2260 (aarch64_print_operand): Likewise.
2261 (arch64_classify_tls_symbol): Likewise.
2263 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2265 * config/arm/arm-arches.def: Replace single value flags with
2266 an initializer built from ARM_FSET_MAKE_CPU1.
2267 * config/arm/arm-cores.def: Likewise.
2268 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
2269 derivation from the ARM_CORE macro definition, use the given value
2271 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
2272 ARM_ARCH macro definition, use the given value instead.
2274 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2276 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
2278 (struct builtin_description): Replace field mask with field
2280 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
2281 (IWMMXT2_BUILTIN): Likewise.
2282 (IWMMXT2_BUILTIN2): Likewise.
2283 (FP_BUILTIN): Likewise.
2284 (CRC32_BUILTIN): Likewise.
2285 (CRYPTO_BUILTIN): Likewise.
2286 (iwmmx_mbuiltin): Likewise.
2287 (iwmmx2_mbuiltin): Likewise.
2288 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
2289 struct builtin_description.
2291 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2293 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
2294 (struct builtin_description): Change type of mask to unsigned
2296 * config/arm/arm-protos.h (insn_flags): Declare as type
2298 (tune_flags): Likewise.
2299 * config/arm/arm.c (feature_count): New.
2300 (insn_flags): Define as type arm_feature_set.
2301 (tune_flags): Likewise.
2302 (struct processors): Define field flags as type arm_feature_set.
2303 (all_cores): Update for change to struct processors.
2304 (all_architectures): Likewise.
2305 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
2307 (arm_option_override_internal): Likewise.
2308 (arm_option_override): Likewise.
2310 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2311 Jiong Wang <jiong.wang@arm.com>
2313 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
2314 tls size for tiny, small, large memory model.
2315 (aarch64_load_symref_appropriately): Support new symbol types.
2316 (aarch64_expand_mov_immediate): Likewise.
2317 (aarch64_print_operand): Likewise.
2318 (aarch64_classify_tls_symbol): Likewise.
2319 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
2320 (aarch64_symbol_type): Likewise.
2321 * config/aarch64/aarch64.md (tlsle): Deleted.
2322 (tlsle12_<mode>): New define_insn.
2323 (tlsle24_<mode>): Likewise.
2324 (tlsle32_<mode>): Likewise.
2325 (tlsle48_<mode>): Likewise.
2326 * doc/sourcebuild.texi (AArch64-specific attributes): Document
2329 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2331 * config/arm/arm-protos.h (FL_NONE): New.
2333 (arm_feature_set): New.
2334 (ARM_FSET_MAKE): New.
2335 (ARM_FSET_MAKE_CPU1): New.
2336 (ARM_FSET_MAKE_CPU2): New.
2337 (ARM_FSET_CPU1): New.
2338 (ARM_FSET_CPU2): New.
2339 (ARM_FSET_EMPTY): New.
2340 (ARM_FSET_ANY): New.
2341 (ARM_FSET_HAS_CPU1): New.
2342 (ARM_FSET_HAS_CPU2): New.
2343 (ARM_FSET_HAS_CPU): New.
2344 (ARM_FSET_ADD_CPU1): New.
2345 (ARM_FSET_ADD_CPU2): New.
2346 (ARM_FSET_DEL_CPU1): New.
2347 (ARM_FSET_DEL_CPU2): New.
2348 (ARM_FSET_UNION): New.
2349 (ARM_FSET_INTER): New.
2350 (ARM_FSET_XOR): New.
2351 (ARM_FSET_EXCLUDE): New.
2352 (AFM_FSET_IS_EMPTY): New.
2353 (ARM_FSET_CPU_SUBSET): New.
2355 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2357 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
2358 SYMBOL_TLSLE to SYMBOL_TLSLE24.
2359 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2361 (aarch64_expand_mov_immediate): Likewise.
2362 (aarch64_print_operand): Likewise.
2363 (aarch64_classify_symbol): Likewise.
2365 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2367 * config/aarch64/aarch64.opt (mtls-size): New entry.
2368 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
2369 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
2370 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
2372 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2374 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
2375 ARM_CORE entry. Fix some white-space.
2376 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
2377 ARM_CORE definition.
2379 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2381 * fold-const.c (fold_binary_loc) : Move Optimize
2382 root(x)*root(y) as root(x*y) to match.pd.
2383 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
2384 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
2385 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
2386 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
2387 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
2388 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
2389 (mult (exps:s @0) (exps:s @1)) : New simplifier.
2390 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
2391 (rdiv @0 (exps:s @1)) : New simplifier.
2393 2015-08-25 Joseph Myers <joseph@codesourcery.com>
2395 * gcc.c (driver::finalize): Only assign to extra_specs if
2398 2015-08-25 Marek Polacek <polacek@redhat.com>
2401 * varasm.c (declare_weak): Return after giving an error.
2403 2015-08-25 David Malcolm <dmalcolm@redhat.com>
2405 * gcc-main.c (main): Add params to driver ctor.
2406 * gcc.c (class env_manager): New.
2408 (env_manager::init): New.
2409 (env_manager::get): New.
2410 (env_manager::xput): New.
2411 (env_manager::restore): New.
2412 Poison getenv and putenv.
2413 (DEFAULT_TARGET_SYSTEM_ROOT): New.
2414 (target_system_root): Update initialization to use
2415 DEFAULT_TARGET_SYSTEM_ROOT.
2416 (struct spec_list): Add field "default_ptr".
2417 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
2418 (init_spec): Likewise.
2419 (set_spec): Clear field "default_ptr".
2420 (read_specs): Free "spec" and "buffer".
2421 (xputenv): Reimplement in terms of env_manager.
2422 (process_command): Replace ::getenv calls with calls to the
2423 env_manager singleton.
2424 (process_brace_body): Free string in three places.
2425 (driver::driver): New.
2426 (driver::~driver): New.
2427 (used_arg): Convert from a function to...
2428 (class used_arg_t): ...this class, and...
2429 (used_arg): ...this new global instance.
2430 (used_arg_t::finalize): New function.
2431 (getenv_spec_function): Add "const" to local "value". Replace
2432 ::getenv call with call to the env_manager singleton.
2433 (path_prefix_reset): New function.
2434 (driver::finalize): New function.
2435 * gcc.h (driver::driver): New.
2436 (driver::~driver): New.
2437 (driver::finalize): New.
2439 2015-08-25 Nathan Sidwell <nathan@acm.org>
2441 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
2442 target doesn't have one.
2444 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2447 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
2449 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2452 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
2453 a define_insn, remove second alternative.
2455 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
2456 Joseph Myers <joseph@codesourcery.com>
2458 * gcc.c (struct switchstr): Expand comment.
2460 2015-08-25 Nathan Sidwell <nathan@acm.org>
2462 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
2463 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
2465 2015-08-25 Richard Biener <rguenther@suse.de>
2468 * genmatch.c (expr::gen_transform): Verify the result of
2469 builtin_decl_implicit.
2470 (dt_simplify::gen_1): Likewise.
2472 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2474 * config/arm/constraints.md: Also list Cs and US ARM-specific
2475 constraints as used.
2477 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
2480 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
2482 (nonpic_symbol_mentioned_p): Likewise.
2483 (sh_delegitimize_address): Likewise.
2484 (sh_function_ok_for_sibcall): Take into account weak symbols.
2485 (sh_expand_sym_label2reg): New.
2486 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
2487 * config/sh/sh.md (UNSPEC_PCREL): New enum.
2488 (call_pcrel): Use sh_expand_sym_label2reg.
2489 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
2490 (symPCREL_label2reg) New expand.
2492 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2494 * graphite-poly.c: Change type of region from void* to sese.
2495 * graphite-poly.h (struct scop): Changing the type of scop::region
2496 from void* to sese. Change accessor macro accordingly.
2497 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
2499 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2501 * graphite-scop-detection.c (stmt_simple_for_scop_p):
2502 Constrain only on INTEGER_TYPE.
2504 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2507 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
2508 -mefficient-unaligned-vsx on ISA 2.7.
2510 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
2511 option to a masked option.
2513 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
2514 logic for -mefficient-unaligned-vsx so that it is set via an arch
2515 ISA option, instead of being set if -mtune=power8 is set. Move
2516 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
2517 near other default option handling.
2519 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2521 * genflags.c (gen_macro): Delete.
2522 (gen_proto): Don't create GEN.*CALL.* macros.
2523 * gensupport.h (get_file_location): Declare.
2524 * gensupport.c (rtx_locs): New variable.
2525 (read_md_rtx): Record rtx locations.
2526 (get_file_location): New function.
2527 * target-insns.def (call, call_pop, call_value, call_value_pop)
2528 (sibcall, sibcall_value): New patterns.
2529 * gentarget-def.c (parse_argument): New function.
2530 (def_target_insn): Use it. Handle optional operands. Raise an
2531 error if an .md pattern has the wrong number of operands for the
2532 pattern name. Remove the names of unused operands from the prototype.
2533 * builtins.c (expand_builtin_apply): Use targetm functions
2534 instead of HAVE_call_value and GEN_CALL_VALUE.
2535 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
2536 and sibcall_value_pop.
2537 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
2539 * config/alpha/alpha.md (untyped_call): Likewise.
2540 * config/iq2000/iq2000.md (untyped_call): Likewise.
2541 * config/m68k/m68k.md (untyped_call): Likewise.
2542 * config/mips/mips.md (untyped_call): Likewise.
2543 * config/pa/pa.md (untyped_call): Likewise.
2544 * config/rs6000/rs6000.md (untyped_call): Likewise.
2545 * config/sparc/sparc.md (untyped_call): Likewise.
2546 * config/tilegx/tilegx.md (untyped_call): Likewise.
2547 * config/tilepro/tilepro.md (untyped_call): Likewise.
2548 * config/visium/visium.md (untyped_call): Likewise.
2549 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
2550 gen_call_value instead of GEN_CALL_VALUE.
2551 * config/arm/arm.md (untyped_call): Likewise.
2552 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
2555 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2557 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
2558 (have_cbranchcc4): New variable.
2559 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
2560 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
2561 (if_convert): Initialize have_cbranchcc4.
2563 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2565 * builtins.c (expand_cmpstrn): Rename to...
2566 (expand_cmpstrn_or_cmpmem): ...this.
2567 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
2568 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
2569 Remove mode argument.
2570 (expand_builtin): Update accordingly.
2572 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2574 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
2575 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
2576 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
2577 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
2578 Add predicates for operands 0 and 3.
2579 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
2581 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
2582 immediate_operand to nonmemory_operand.
2584 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2586 * df-scan.c (df_insn_info_init_fields): New function, split out
2588 (df_insn_create_insn_record): ...here.
2589 (df_insn_info_free_fields): New function, split out from...
2590 (df_insn_info_delete): ...here.
2591 (df_insn_rescan): Use the new functions instead of freeing and
2592 reallocating the df_insn_info.
2594 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2596 * doc/install.texi (Binaries): Remove links no longer valid.
2598 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
2600 * config/nvptx/mkoffload.c (process): Replace
2601 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
2603 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
2606 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
2608 2015-08-24 Renlin Li <renlin.li@arm.com>
2610 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
2611 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
2612 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
2613 * config/arm/constraints.md ("j"): Add check for high code.
2615 2015-08-24 Tom de Vries <tom@codesourcery.com>
2617 PR tree-optimization/65468
2618 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
2621 2015-08-24 Nathan Sidwell <nathan@acm.org>
2623 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
2624 change to nvptx_type_from_mode call. Use arg_promotion for both
2625 split and non-split args.
2627 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2629 * target-insns.def (movstr): New pattern.
2630 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
2631 (expand_movstr): Use targetm rather than HAVE_movstr/
2634 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2636 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
2639 2015-08-24 Andrew Pinski <apinski@cavium.com>
2641 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
2642 AARCH64_EXTRA_TUNING_OPTION.
2643 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
2644 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
2645 of the argument to AARCH64_EXTRA_TUNING_OPTION.
2646 * config/aarch64/aarch64.c: Remove the last argument to
2647 AARCH64_EXTRA_TUNING_OPTION.
2649 2015-08-23 Nathan Sidwell <nathan@acm.org>
2651 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
2653 (nvptx_declare_function_name): Insert formatting tabs for
2656 2015-08-23 Tom de Vries <tom@codesourcery.com>
2658 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
2659 parm_decl, rather than generating a dummy default def in cfun.
2660 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
2661 ssa_name from cfun and child_fn do not share a stmt as def stmt.
2662 (move_stmt_op): Handle PARM_DECl.
2663 (gather_ssa_name_hash_map_from): New function.
2664 (move_sese_region_to_fn): Add default defs for function params, and add
2665 them to vars_map. Release copied ssa names.
2666 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
2668 2015-08-23 Tom de Vries <tom@codesourcery.com>
2670 * doc/sourcebuild.texi: Rename vect_no_int_max with
2671 vect_no_int_min_max. Update description.
2673 2015-08-22 Andrew Pinski <apinski@cavium.com>
2675 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
2676 * config/aarch64/aarch64-protos.h
2677 (aarch64_fusion_pairs_index): New enum.
2678 (aarch64_fusion_pairs): Base the shifted value on the index instead
2679 Rewrite AARCH64_FUSE_ALL to be based on the end index.
2680 of the argument to AARCH64_FUSION_PAIR.
2681 * config/aarch64/aarch64.c: Remove the last argument to
2682 AARCH64_FUSION_PAIR.
2684 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
2686 * dominance.c (new_zero_array): Define.
2687 (dom_info): Redefine as class with proper encapsulation.
2688 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
2690 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
2691 allocations/deallocations. Pass function as parameter (instead of
2693 (dom_info::get_idom): Define accessor method.
2694 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
2695 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
2696 (calculate_dominance_info): Adjust to use dom_info class.
2697 (verify_dominators): Likewise.
2699 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
2701 * print-rtl.c (print_rtx): Check the correct range for
2702 flag_dump_unnumbered_links to behave as documented.
2704 PR rtl-optimization/67227
2705 PR rtl-optimization/64164
2706 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
2707 (nonoverlapping_memrefs_p): Test offsets and sizes when given
2708 identical gimple_reg exprs.
2710 2015-08-21 Nathan Sidwell <nathan@acm.org>
2712 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
2714 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
2715 crtl->stack_alignment_needed to determine alignment.
2716 (nvptx_get_drap_rtx): New.
2717 (TARGET_GET_DRAP_RTX): Override.
2718 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
2720 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2722 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
2724 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2726 * configure.ac: Remove uwin* cases.
2727 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
2728 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
2729 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
2730 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
2731 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
2732 i[34567]86-*-uwin*, powerpc-*-beos*.
2734 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
2736 * gencodes.c (gencodes): Print the comma for the preceding
2737 enum value rather than the current one. Use aliased enum values
2738 rather than #defines for compiled-out patterns.
2739 (main): Update accordingly. Replace LAST_INSN_CODE with
2741 * lra.c (insn_code_data): Update accordingly.
2742 (finish_insn_code_data_once, get_static_insn_data): Likewise.
2743 * recog.h (target_recog): Likewise.
2744 (preprocess_insn_constraints): Change parameter to unsigned int.
2745 * recog.c (preprocess_insn_constraints): Likewise.
2746 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
2747 * tree-vect-stmts.c (vectorizable_operation): Simplify.
2749 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
2751 PR rtl-optimization/61657
2752 * loop-iv.c (iv_number_of_iterations): Declare up and down as
2753 unsigned. Remove superflous uint64_t cast.
2755 2014-08-21 Felix Yang <felix.yang@huawei.com>
2756 Jiji Jiang <jiangjiji@huawei.com>
2758 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
2759 and get builtin function code directly from CALL.
2760 (gimple_stringop_fixed_value): Modified accordingly.
2761 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
2762 accordingly and only accept BUILT_IN_NORMAL string operations.
2764 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
2766 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
2768 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2770 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
2772 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
2773 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
2774 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
2775 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
2776 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
2777 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
2778 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
2779 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
2780 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
2781 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
2783 * match.pd (SIN ) : New Operator.
2784 (TAN) : New Operator.
2785 (mult (SQRT@1 @0) @1) : New simplifier.
2786 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
2787 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2788 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2789 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
2790 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
2791 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
2792 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
2793 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
2794 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
2795 (rdiv @0 (POW:s @1 @2)) : New simplifier.
2797 2015-08-21 Bin Cheng <bin.cheng@arm.com>
2799 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
2800 loop if EXPR is simplified to const value.
2802 2015-08-21 Yury Gribov <y.gribov@samsung.com>
2804 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2805 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
2807 2015-08-21 Richard Biener <rguenther@suse.de>
2810 * gimple-fold.c (replace_stmt_with_simplification): Assert
2811 seq is empty when replacing a call with itself but different
2813 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
2814 a call require that it is const.
2816 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2818 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
2819 * builtins.c (get_object_alignment_2): Adjust.
2820 * varasm.c (align_variable): Likewise.
2821 (get_variable_align): Likewise.
2822 (build_constant_desc): Likewise.
2823 (force_const_mem): Likewise.
2824 * doc/tm.texi.in: Likewise.
2825 * doc/tm.texi: Regenerate.
2827 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2829 * genconfig.c (main): Always define HAVE_cc0.
2830 * recog.c (rest_of_handle_peephole2): Adjust.
2832 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2834 * reorg.c (relax_delay_slots): Don't use #if to check value of
2837 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2839 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
2840 * targhooks.c (default_have_conditional_execution): Adjust.
2842 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
2844 * rtl.h (rtvec_all_equal_p): Declare.
2845 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
2846 * rtl.c (rtvec_all_equal_p): New function.
2847 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
2848 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
2849 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
2850 * config/arm/arm.c (neon_vdup_constant): Likewise.
2851 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
2852 * config/tilegx/constraints.md (W, Y): Likewise.
2853 * config/tilepro/constraints.md (W, Y): Likewise.
2854 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
2855 (classify_immediate): Use unwrap_const_vec_duplicate.
2856 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
2857 (reg_or_v2s8bit_operand): Likewise.
2858 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
2859 (reg_or_v4s8bit_operand): Likewise.
2861 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2863 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
2864 (vec_shasigma_be): New #define.
2865 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
2866 (VPMSUMH): Likewise.
2867 (VPMSUMW): Likewise.
2868 (VPMSUMD): Likewise.
2869 (VPMSUM): New BU_P8V_OVERLOAD_2.
2870 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
2871 entries for VEC_MADD and VEC_VPMSUM.
2873 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
2875 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
2876 Multiply argument avr_n_flash by 64 to match unit of "KiB".
2877 (avr_pgm_check_var_decl): Same.
2879 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
2881 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
2882 initialization of HFmode scalar type (float16_t) to...
2883 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
2886 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
2888 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
2889 having an -mfp16-format.
2891 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
2893 * config/i386/predicates.md (vector_all_ones_operand): Use
2894 CONSTM1_RTX to simplify definition.
2896 2015-08-20 Richard Biener <rguenther@suse.de>
2898 * toplev.c (compile_file): Remove loop calling late_global_decl
2900 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
2901 on decls we assembled.
2903 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
2905 * common/config/aarch64/aarch64-common.c
2906 (AARCH64_CPU_NAME_LENGTH): Delete.
2907 (aarch64_option_extension): New.
2908 (all_extensions): Likewise.
2909 (processor_name_to_arch): Likewise.
2910 (arch_to_arch_name): Likewise.
2912 (all_architectures): Likewise.
2913 (aarch64_get_extension_string_for_isa_flags): Likewise.
2914 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
2916 * config/aarch64/aarch64-protos.h
2917 (aarch64_get_extension_string_for_isa_flags): New.
2918 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
2919 (aarch64_option_print): Get the string to print from
2920 aarch64_get_extension_string_for_isa_flags.
2921 (aarch64_declare_function_name): Likewise.
2922 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
2923 (MCPU_TO_MARCH_SPEC): This.
2924 (ASM_CPU_SPEC): Use it.
2925 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
2926 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
2927 (EXTRA_SPEC_FUNCTIONS): Use it.
2929 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
2931 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
2932 expansion when !ISA_HAS_LWL_LWR.
2933 (mips_block_move_straight): Update the size of elements copied to
2934 account for alignment when !ISA_HAS_LWL_LWR.
2935 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
2937 2015-08-19 Jiong Wang <jiong.wang@arm.com>
2939 * expr.c (expand_expr_real_2): Check gimple statement during
2942 2015-08-19 Magnus Granberg <zorry@gentoo.org>
2944 * common.opt (fstack-protector): Initialize to -1.
2945 (fstack-protector-all): Likewise.
2946 (fstack-protector-strong): Likewise.
2947 (fstack-protector-explicit): Likewise.
2948 * configure.ac: Add --enable-default-ssp.
2949 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
2950 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
2952 * doc/install.texi: Document --enable-default-ssp.
2953 * config.in: Regenerated.
2954 * configure: Likewise.
2956 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
2958 PR rtl-optimization/64164
2959 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
2960 (parm_in_stack_slot_p): ... this. Disregard mode, what
2961 matters is whether the parm will live in a pseudo or a stack
2963 (expand_one_ssa_partition): Deal with params without a default
2964 def. Disregard mode.
2965 * cfgexpand.h: Renamed function declaration.
2966 * tree-ssa-coalesce.c: Adjust.
2967 * function.c (split_complex_args): Allocate stack slot for
2968 unassigned parms before splitting.
2969 (parm_in_unassigned_mem_p): New. Use it instead of
2970 parm_maybe_byref_p throughout this file.
2971 (assign_parm_setup_block): Use it. Accept pseudos in the
2972 expand-assigned rtl.
2973 (assign_parm_setup_reg): Drop BLKmode requirement.
2974 (assign_parm_setup_stack): Allocate and fill in the address of
2975 unassigned MEM parms.
2977 2015-08-19 David Sherwood <david.sherwood@arm.com>
2979 * genmodes.c (emit_mode_unit_size_inline): New function.
2980 (emit_mode_unit_precision_inline): New function.
2981 (emit_insn_modes_h): Emit new #define. Emit new functions.
2982 (emit_mode_unit_size): New function.
2983 (emit_mode_unit_precision): New function.
2984 (emit_mode_adjustments): Add mode_unit_size adjustments.
2985 (emit_insn_modes_c): Emit new arrays.
2986 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
2987 use new inline methods.
2989 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2991 * config/aarch64/aarch64.c (bit_count): Delete prototype
2993 (aarch64_print_operand): Use popcount_hwi instead of the above.
2995 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2997 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
3000 2015-08-19 Marek Polacek <polacek@redhat.com>
3003 * gimple-ssa-isolate-paths.c
3004 (insert_trap_and_remove_trailing_statements): Rename to ...
3005 (insert_trap): ... this. Don't remove trailing statements; split
3007 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
3009 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
3012 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
3013 conditionalize the whole on __GNUC__. Add fallback code
3014 depending neither on undefined nor implementation-defined behaviour.
3016 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3018 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
3019 whitespaces with tab.
3021 2015-08-19 Florian Weimer <fweimer@redhat.com>
3023 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
3024 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
3025 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
3026 Move Name_Ids instantiation to the Prj.Proc package, to avoid
3029 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3031 * config/arm/arm.c (bounds_check): Use %wd print format
3032 for HOST_WIDE_INT arguments.
3034 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3036 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
3037 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
3038 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
3039 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
3040 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
3041 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
3042 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
3043 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
3044 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
3047 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
3049 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
3050 function.c, graphite-scop-detection.c, haifa-sched.c,
3051 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
3052 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
3053 varasm.c: Remove typedefs of structs.
3055 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3057 * config/rs6000/altivec.h (vec_adde): New define.
3058 (vec_addec): Likewise.
3059 (vec_double): Likewise.
3060 (vec_bperm): Likewise.
3062 * config/rs6000/rs6000-builtin.def (ADDE): New
3063 BU_ALTIVEC_OVERLOAD_3.
3065 (DOUBLE): New BU_VSX_OVERLOAD_1.
3066 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
3067 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
3068 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
3069 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
3070 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
3071 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
3072 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
3073 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
3074 and P8V_BUILTIN_VEC_VBPERMQ.
3076 2015-08-18 Jason Merrill <jason@redhat.com>
3078 * print-tree.c (print_node): Handle TREE_BINFO.
3080 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3083 * builtins.c (expand_builtin_signbit): Add asserts to make sure
3084 we can expand BUILT_IN_SIGNBIT inline.
3085 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
3086 * doc/extend.texi: Document the type-generic __builtin_signbit.
3088 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
3090 PR rtl-optimization/67218
3091 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
3092 (simplify_unary_operation_1): Use it.
3094 2015-08-18 Marek Polacek <polacek@redhat.com>
3097 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
3098 if the call isn't valid.
3099 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
3100 gimple_call_builtin_p.
3101 (call_may_clobber_ref_p_1): Likewise.
3102 (stmt_kills_ref_p): Likewise.
3104 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
3106 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
3107 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
3108 (mips_hard_regno_scratch_ok): Likewise.
3109 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
3110 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
3112 2015-08-18 Bin Cheng <bin.cheng@arm.com>
3114 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
3115 (determine_value_range): Call refine_value_range_using_guard for
3116 each loop initial condition to improve value range.
3118 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
3120 * config/i386/i386.c: Remove include of fibheap.h.
3122 2015-08-17 Richard Biener <rguenther@suse.de>
3124 PR tree-optimization/67221
3125 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
3126 (sccvn_dom_walker::before_dom_children): Mark backedges of
3127 non-executable blocks as not executable.
3129 2015-08-17 David Sherwood <david.sherwood@arm.com>
3131 * config/arm/arm.c (neon_element_bits): Replace call to
3132 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
3133 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
3134 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
3135 (neon_vdup_lane<mode>): Likewise.
3136 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
3137 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
3138 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
3139 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
3140 * config/spu/spu.c (arith_immediate_p): Likewise.
3141 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3142 * expr.c (expand_expr_real_2): Likewise.
3143 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
3144 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3145 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3146 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
3148 * fold-const.c (fold_binary_loc): Replace call to
3149 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
3150 GET_MODE_UNIT_PRECISION (m).
3152 2015-08-17 Mike Stump <mikestump@comcast.net>
3154 * config/arm/arm.c (arm_block_move_unaligned_straight):
3155 Emit normal move instead of unaligned load when source or destination
3156 are appropriately aligned.
3158 2015-08-17 Richard Biener <rguenther@suse.de>
3159 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3162 * match.pd (div (coss (op @0) : New simplifier.
3164 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
3166 PR rtl-optimization/64164
3169 PR rtl-optimization/67000
3172 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3173 * tree-ssa-copyrename.c: Removed.
3174 * opts.c (default_options_table): Drop -ftree-copyrename. Add
3175 -ftree-coalesce-vars.
3176 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3177 * common.opt (ftree-copyrename): Ignore.
3178 (ftree-coalesce-inlined-vars): Likewise.
3179 * doc/invoke.texi: Remove the ignored options above.
3180 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3181 * tree-ssa-coalesce.h: ... here.
3182 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3183 headers required by it.
3184 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3185 across variables when flag_tree_coalesce_vars. Check register
3186 use and promoted modes to allow coalescing. Do not coalesce
3187 maybe-byref parms with SSA_NAMEs of other variables, or
3188 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
3189 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3190 with its member functions to tree-ssa-coalesce.c.
3191 (var_map_base_init): Likewise. Renamed to
3192 compute_samebase_partition_bases.
3193 (partition_view_normal): Drop want_bases parameter.
3194 (partition_view_bitmap): Likewise.
3195 * tree-ssa-live.h: Adjust declarations.
3196 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
3197 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3198 default defs at the entry point.
3199 (dump_part_var_map): New.
3200 (compute_optimized_partition_bases): New, called by...
3201 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3202 of compute_samebase_partition_bases. Adjust.
3203 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3204 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
3205 (ssa_default_def_partition): New.
3206 (get_rtl_for_parm_ssa_default_def): New.
3207 (align_local_variable, add_stack_var): Support anonymous SSA
3209 (defer_stack_allocation): Likewise. Declare earlier.
3210 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3211 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3212 Do no record deferred-allocation marker in
3213 SA.partition_to_pseudo.
3214 (expand_stack_vars): Adjust check for the marker in it.
3215 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
3216 redundant MEM attr setting.
3217 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
3219 (expand_one_stack_var): ... this. New wrapper to check and
3220 skip already expanded SSA partitions.
3221 (record_alignment_for_reg_var): New, factored out of...
3222 (expand_one_var): ... this.
3223 (expand_one_ssa_partition): New.
3224 (adjust_one_expanded_partition_var): New.
3225 (expand_one_register_var): Check and skip already expanded SSA
3227 (expand_used_vars): Don't create DECLs for anonymous SSA
3228 names. Expand all SSA partitions, then adjust all SSA names.
3229 (pass::execute): Replace the loops that set
3230 SA.partition_to_pseudo from partition leaders and cleared
3231 DECL_RTL for multi-location variables, and that which used to
3232 rename vars and set attrs, with one that clears DECL_RTL and
3233 checks that PARMs and RESULTs default_defs match DECL_RTL.
3234 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3235 * emit-rtl.c: Include stor-layout.h.
3236 (set_reg_attrs_for_parm): Handle NULL decl.
3237 (set_reg_attrs_for_decl_rtl): Take mode from expression if
3239 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
3240 rather than its possibly-NULL DECL.
3241 * explow.c (promote_ssa_mode): New.
3242 * explow.h (promote_ssa_mode): Declare.
3243 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3244 (read_complex_part): Export.
3245 * expr.h (read_complex_part): Declare.
3246 * cfgexpand.h (parm_maybe_byref_p): Declare.
3247 * function.c: Include cfgexpand.h.
3248 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3249 (use_register_for_parm_decl): Wrapper for the above to
3250 special-case the result_ptr.
3251 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3252 (split_complex_args): Take assign_parm_data_all argument.
3253 Pass it to rtl_for_parm. Set up rtl and context for split
3254 args. Reset complex parm before fetching its default decl
3256 (assign_parms_unsplit_complex): Use the default-def complex
3257 parm rtl if it matches the components.
3258 (assign_parms_augmented_arg_list): Adjust.
3259 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3260 multiple locations. Recognize split complex args.
3261 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3262 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
3263 (assign_parm_setup_block): Prefer SSA-assigned location, and
3264 fill in its address if the memory location of a maybe-byref
3265 parm was not assigned by cfgexpand.
3266 (assign_parm_setup_reg): Likewise. Adjust its mode as
3267 needed. Use entry_parm for equiv if stack_parm is NULL. Make
3268 sure passed_pointer parms don't need conversion. Copy address
3270 (assign_parm_setup_stack): Prefer SSA-assigned location.
3271 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
3272 rtl before testing for pointer bounds. Special-case result_ptr.
3273 (expand_function_start): Maybe reset DECL_RTL of result.
3274 Prefer SSA-assigned location for result and static chain.
3275 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
3276 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
3277 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3278 anonymous SSA names. Use promote_ssa_mode.
3279 (get_temp_reg): Likewise.
3280 (remove_ssa_form): Adjust.
3281 * stor-layout.c (layout_decl): Don't set mem attributes of
3283 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3284 and get its reg_usage for reg invalidation.
3285 (compute_bb_dataflow): Pass it insn.
3286 (emit_notes_in_bb): Likewise.
3288 2015-08-14 Marek Polacek <polacek@redhat.com>
3290 * tree-core.h (tree_base): Fix typo.
3292 2015-08-14 Marek Polacek <polacek@redhat.com>
3295 * gimple.c (infer_nonnull_range_by_attribute): Check that the
3296 nonnull argument position is not outside function arguments.
3298 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
3301 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
3302 'lconst_atomic' with 'const_atomic'.
3303 (atomic_fetch_<optab><mode>): Likewise.
3304 (atomic_<optab>_fetch<mode>): Likewise.
3305 * config/aarch64/iterators.md (lconst-atomic): Move below
3307 (const_atomic): New.
3309 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
3310 Bernd Schmidt <bernds@codesourcery.com>
3312 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
3314 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
3315 (DWARF2_DEBUGGING_INFO): Don't define.
3316 * debug.h (dwarf2_lineno_debug_hooks): Declare.
3317 * toplev.c (process_options): Add a case for it.
3318 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
3319 (dwarf2out_init): Skip most initializations if
3320 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
3322 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
3323 DWARF2_LINENO_DEBUGGING_INFO.
3324 * opts.c (set_debug_level): Likewise.
3326 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
3328 * config/arm/types.md (is_neon_type): Add missing types.
3330 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
3332 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
3334 * config/i386/i386.c (PTA_SKYLAKE): New macros.
3335 (processor_alias_table): Add skylake description.
3336 (enum processor_model): Add skylake processor.
3337 (arch_names_table): Add skylake record.
3338 * doc/invoke.texi: Add skylake item.
3340 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
3342 * ira-int.h: Include recog.h.
3343 * ira-build.c: Don't include recog.h.
3344 * ira-color.c: Likewise.
3345 * ira-conflicts.c: Likewise.
3346 * ira-costs.c: Likewise.
3347 * ira-emit.c: Likewise.
3348 * ira-lives.c: Likewise.
3350 * sched-deps.c: Likewise.
3351 * sel-sched.c: Likewise.
3352 * target-globals.c: Likewise.
3354 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
3357 * reload1.c (elimination_costs_in_insn): Make it obvious to the
3358 compiler that the n_dups and n_operands loop bounds are invariant.
3360 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3362 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
3363 expressions in A and B.
3365 2015-08-13 Richard Biener <rguenther@suse.de>
3367 * tree.c (nonnull_arg_p): Move from ...
3368 * tree-vrp.c (nonnull_arg_p): ... here.
3369 * tree.h (nonnull_arg_p): Declare.
3370 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
3371 here, register ptr != 0 for nonnull_arg_p pointer arguments.
3372 Properly initialize static chain and by-reference result pointer.
3373 (run_scc_vn): Adjust.
3375 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3377 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
3380 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3382 * config/aarch64/aarch64-protos.h
3383 (aarch64_gen_atomic_cas): Declare.
3384 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
3385 Choose appropriate instruction pattern for the target.
3386 (aarch64_gen_atomic_cas): New.
3387 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
3388 (atomic_compare_and_swap<mode>_1): Rename to
3389 aarch64_compare_and_swap<mode>. Fix some indentation.
3390 (aarch64_compare_and_swap<mode>_lse): New.
3391 (aarch64_atomic_cas<mode>): New.
3393 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3395 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
3398 2015-08-13 Richard Biener <rguenther@suse.de>
3400 PR tree-optimization/67191
3401 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
3402 assert we value-numbered last stmts operand because it can validly
3403 trigger for unreachable code.
3405 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3407 PR rtl-optimization/67103
3408 * ifcvt.c (noce_try_store_flag_constants): Move
3409 x = (-(test != 0) & (b - a)) + a transformation to...
3410 (noce_try_cmove): ... Here. Try it if normal conditional
3413 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3415 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
3417 * config/mips/mips.md (processor): Remove w32 and w64.
3419 2015-08-13 Richard Biener <rguenther@suse.de>
3421 PR tree-optimization/66502
3422 PR tree-optimization/67167
3423 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
3425 (vn_phi_lookup): Adjust.
3426 (vn_phi_insert): Likewise.
3427 (visit_phi): Prefer to value-number to another PHI node
3428 over value-numbering to a PHI argument.
3429 (init_scc_vn): Mark DFS back edges.
3431 2015-08-13 Richard Biener <rguenther@suse.de>
3433 * gimple.h (gcall::code_): New constant static member.
3434 (gcond::code_): Likewise.
3435 * gimple.c (gcall::code_): Define.
3436 (gcond::code_): Likewise.
3437 (is_a_helper <const gcond *>): Add.
3438 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
3439 and forward to a new gcall overload with less checking and a
3440 cheaper way to access the operand.
3441 (gimple_call_lhs_ptr): Likewise.
3442 (gimple_call_set_lhs): Likewise.
3443 (gimple_call_internal_p): Likewise.
3444 (gimple_call_with_bounds_p): Likewise.
3445 (gimple_call_set_with_bounds): Likewise.
3446 (gimple_call_internal_fn): Likewise.
3447 (gimple_call_set_ctrl_altering): Likewise.
3448 (gimple_call_ctrl_altering_p): Likewise.
3449 (gimple_call_fntype): Likewise.
3450 (gimple_call_fn): Likewise.
3451 (gimple_call_fn_ptr): Likewise.
3452 (gimple_call_set_fndecl): Likewise.
3453 (gimple_call_fndecl): Likewise.
3454 (gimple_call_chain): Likewise.
3455 (gimple_call_num_args): Likewise.
3456 (gimple_call_arg): Likewise.
3457 (gimple_call_arg_ptr): Likewise.
3458 (gimple_call_set_arg): Likewise.
3459 (gimple_call_noreturn_p): Likewise.
3460 (gimple_cond_code): Likewise.
3461 (gimple_cond_lhs): Likewise.
3462 (gimple_cond_rhs): Likewise.
3463 (gimple_has_lhs): Reduce checking.
3465 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3468 * match.pd (div (mult @0 @1) @1) : New simplifier.
3470 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3473 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
3474 predicate to allow construction of vector constants using the
3475 VSLDOI vector shift instruction.
3477 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
3480 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
3481 the number of bytes to be shifted left and filled in with either
3482 all zero or all one bits.
3483 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
3485 (output_vec_const_move): On power8, generate XXLORC to generate
3486 a vector constant with all 1's. Do a split if we need to use a
3489 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
3490 properly test for the MSB.
3492 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
3493 vector constants that can be created with VSLDOI.
3495 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3498 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3499 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3500 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3501 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3502 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3503 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3504 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3505 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3506 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3508 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
3510 * config/xtensa/constraints.md (define_constraint "Y"): New
3512 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
3513 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3514 * config/xtensa/predicates.md (move_operand): Match constants
3515 and symbols in the presence of TARGET_AUTO_LITPOOLS.
3516 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
3517 immediate references to TLS data.
3518 (xtensa_emit_move_sequence): Don't force constants to memory in
3519 the presence of TARGET_AUTO_LITPOOLS.
3520 (print_operand): Add 'y' format, same as default, but capable of
3521 printing SF mode constants as well.
3522 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
3523 (movsf_internal): Add movi pattern that loads literal.
3524 (movsf, movdf): Don't force constants to memory in the presence
3525 of TARGET_AUTO_LITPOOLS.
3526 (movdf_internal): Add 'Y' constraint.
3527 * config/xtensa/xtensa.opt (mauto-litpools): New option.
3528 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
3530 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3532 * config/arm/arm-fpus.def: Replace booleans with feature flags.
3534 * config/arm/arm.c (ARM_FPU): Update macro.
3535 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
3536 (TARGET_FP16): Likewise.
3537 (TARGET_CRYPTO): Likewise.
3538 (TARGET_NEON): Likewise.
3539 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
3542 2015-08-12 Tom de Vries <tom@codesourcery.com>
3546 * doc/install.texi: Remove --with_host_libstdcxx item. Update
3547 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
3548 accordingly. Mention default for --with-stage1-ldflags.
3550 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3552 * config/arm/arm.h (arm_fpu_feature_set): New.
3553 (ARM_FPU_FSET_HAS): New.
3557 (FPU_FL_CRYPTO): New.
3559 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3561 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
3562 after -mcmodel=large -fPIC sorry.
3564 2015-08-12 Richard Biener <rguenther@suse.de>
3566 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
3567 comparison operand order and commutative ternary op operand order.
3568 (sccvn_dom_walker::cond_stack): New state to track temporary
3570 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
3572 (sccvn_dom_walker::record_cond): Add a single temporary conditional
3574 (sccvn_dom_walker::record_conds): Add a temporary conditional
3575 expressions and all related expressions also true/false.
3576 (sccvn_dom_walker::before_dom_children): Record temporary
3577 expressions based on the controlling condition of a single
3578 predecessor. When trying to simplify a conditional statement
3579 lookup expressions we might have inserted earlier.
3581 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
3584 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
3585 to ARM core registers.
3587 2015-08-12 Nathan Sidwell <nathan@acm.org>
3589 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
3590 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
3592 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
3594 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
3596 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
3598 2015-08-12 Richard Biener <rguenther@suse.de>
3600 * gimple.h (remove_pointer): New trait.
3601 (GIMPLE_CHECK2): New inline template function.
3602 (gassign::code_): New constant static member.
3603 (is_a_helper<const gassign *>): Add.
3604 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
3605 and forward to a new gassign overload with less checking and a
3606 cheaper way to access the operand.
3607 (gimple_assign_lhs_ptr): Likewise.
3608 (gimple_assign_set_lhs): Likewise.
3609 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
3611 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
3613 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
3615 (gimple_assign_rhs_code): Likewise.
3616 * gimple.c (gassign::code_): Define.
3618 2015-08-12 Richard Biener <rguenther@suse.de>
3620 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3621 Eliminate edges marked as not executable by SCCVN.
3622 * tree-ssa-sccvn.c: Include gimple-iterator.h.
3623 (cond_dom_walker): Rename to sccvn_dom_walker.
3624 (sccvn_dom_walker::before_dom_children): Value-number defs
3626 (run_scc_vn): Remove loop value-numbering all SSA names.
3627 Drop not visited SSA names to varying.
3629 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3631 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3632 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3633 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3634 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3635 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3636 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3637 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3638 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3639 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3641 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
3644 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
3645 to enum feature_priority and feature_list.
3646 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
3647 and isa_names_table.
3649 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
3651 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
3654 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3658 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
3659 account when deciding what was the command-line status.
3661 2015-08-11 Nathan Sidwell <nathan@acm.org>
3663 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
3665 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
3666 we're not the only contributor to target phi.
3668 2015-08-11 Jiong Wang <jiong.wang@arm.com>
3670 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
3673 2015-08-11 Tom de Vries <tom@codesourcery.com>
3675 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
3677 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
3679 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
3681 * config/i386/i386.md (cpu): Remove knl.
3683 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3687 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
3688 open-coded sequence.
3689 * omp-low.c (oacc_process_reduction_data): Remove handline of
3690 GOMP_DEVICE_HOST_NONSHM.
3692 * lto-streamer-in.c (lto_input_mode_table): Adjust to
3693 GET_MODE_INNER changes.
3695 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3696 Ilya Verbin <ilya.verbin@intel.com>
3698 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
3701 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3703 * doc/options.texi (EnabledBy): Document that the argument must be
3705 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
3706 Not enabled by -Wall.
3707 * optc-gen.awk: Give nicer error messages. Detect if the argument
3708 of EnabledBy is not a Common option.
3709 * common.opt (Wnull-dereference): Not enabled by -Wall.
3710 * opt-functions.awk (lang_enabled_by): Nicer error messages.
3712 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
3714 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
3715 model == 0x4f as Broadwell.
3717 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3719 PR rtl-optimization/67028
3720 * combine.c (simplify_comparison): Fix comment. Rearrange code.
3721 Add test to see if a const_int fits in the new mode.
3723 2015-08-07 DJ Delorie <dj@redhat.com>
3725 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
3727 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
3729 PR rtl-optimization/67029
3730 * ira-color.c: Include "recog.h" before including "ira-int.h".
3731 * target-globals.c: Likewise.
3732 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
3733 adds an alternative_mask argument and use it instead of
3734 preferred_alternatives.
3735 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
3736 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
3737 * sched-deps.c: Include "ira-int.h" after including "ira.h".
3738 (sched_analyze_insn): Update call to
3739 ira_implicitly_set_insn_hard_regs.
3740 * sel-sched.c: Include "ira-int.h" after including "ira.h".
3741 (implicit_clobber_conflict_p): Update call to
3742 ira_implicitly_set_insn_hard_regs.
3744 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3746 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
3748 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
3751 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
3752 currently_expanding_to_rtl is set.
3754 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
3756 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
3757 * configure: Regenerate.
3759 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3760 Jiong Wang <jiong.wang@arm.com>
3762 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3763 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3764 (REG_CLASS_NAMES): Likewise.
3765 (REG_CLASS_CONTENTS): Likewise.
3766 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3767 (aarch64_register_move_cost): Likewise.
3768 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3770 * config/aarch64/constraints.md (Uc0): New constraint.
3772 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3774 * config/aarch64/constraints.md (Usf): Add the test of
3775 aarch64_is_noplt_call_p.
3777 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3779 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
3781 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
3782 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
3783 (call_symbol): Likewise.
3785 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3787 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
3788 for vectorizing multiplication patterns.
3789 * tree-vectorizer.h: Adjust the number of patterns.
3791 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3793 * config/i386/sse.md (*vec_concatv2df): Declare added
3794 alternatives as sselog type.
3796 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3798 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
3801 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3803 * config/s390/s390.c (s390_expand_tbegin): Expand either
3804 tbegin_1_z13 or tbegin_1 depending on VX flag.
3805 * config/s390/s390.md ("tbegin_1_z13"): New expander.
3807 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3809 * config/s390/s390.opt: Clarify description for -mzvector
3810 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
3813 2015-08-06 Richard Biener <rguenther@suse.de>
3815 * gimple.h (gimple_call_set_fn): Access op member directly.
3816 (gimple_call_chain_ptr): Likewise.
3817 (gimple_call_set_chain): Likewise.
3818 (gimple_cond_lhs_ptr): Likewise.
3819 (gimple_cond_set_lhs): Likewise.
3820 (gimple_cond_rhs_ptr): Likewise.
3821 (gimple_cond_set_rhs): Likewise.
3822 (gimple_cond_true_label): Likewise.
3823 (gimple_cond_set_true_label): Likewise.
3824 (gimple_cond_set_false_label): Likewise.
3825 (gimple_cond_false_label): Likewise.
3826 (gimple_label_label): Likewise.
3827 (gimple_label_set_label): Likewise.
3828 (gimple_goto_set_dest): Likewise.
3829 (gimple_asm_input_op): Likewise.
3830 (gimple_asm_input_op_ptr): Likewise.
3831 (gimple_asm_set_input_op): Likewise.
3832 (gimple_asm_output_op): Likewise.
3833 (gimple_asm_output_op_ptr): Likewise.
3834 (gimple_asm_set_output_op): Likewise.
3835 (gimple_asm_clobber_op): Likewise.
3836 (gimple_asm_set_clobber_op): Likewise.
3837 (gimple_asm_label_op): Likewise.
3838 (gimple_asm_set_label_op): Likewise.
3839 (gimple_switch_index): Likewise.
3840 (gimple_switch_index_ptr): Likewise.
3841 (gimple_return_retval_ptr): Likewise.
3842 (gimple_return_retval): Likewise.
3843 (gimple_return_set_retval): Likewise.
3844 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
3845 (gimple_switch_label): Likewise.
3846 (gimple_switch_set_label): Likewise.
3848 2015-08-06 Richard Biener <rguenther@suse.de>
3850 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
3851 bool comparison canonicalization and restrict to integers.
3853 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
3855 * coretypes.h (enum symbol_visibility): Relocate here.
3856 * flag-types.h (enum symbol_visibility): Remove.
3857 * tree-core.h (enum symbol_visibility): Remove.
3859 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
3862 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
3863 for no_split_stack function attribute along with
3865 (rs6000_expand_split_stack_prologue): Likewise.
3867 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3868 Jeff Law <law@redhat.com>
3871 * doc/invoke.texi (Wnull-dereference): New.
3872 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
3873 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
3874 Warn for potential NULL dereferences.
3875 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
3876 * ubsan.c (instrument_nonnull_arg): Call
3877 infer_nonnull_range_by_attribute.
3878 (instrument_nonnull_return): Likewise.
3879 * common.opt (Wnull-dereference); New.
3880 * gimple.c (infer_nonnull_range): Remove bool arguments.
3881 (infer_nonnull_range_by_dereference): New.
3882 (infer_nonnull_range_by_attribute): New.
3883 * gimple.h: Update declarations.
3885 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3887 * gensupport.c (sequence_num): Replace with...
3888 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
3889 ...these new variables.
3890 (init_rtx_reader_args_cb): Update accordingly.
3891 (get_num_code_insns): Likewise.
3892 (read_md_rtx): Rework to use a while loop and get_c_test.
3893 Use the new counters. Remove redundant DEFINE_SUBST case.
3894 * genoutput.c (gen_split): Delete.
3895 (main): Don't call it.
3897 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3899 * gensupport.h (get_c_test): Declare.
3900 * gensupport.c (get_c_test): New function.
3901 * genconditions.c (main): Use it.
3902 * genrecog.c (validate_pattern): Likewise.
3903 (match_pattern_1): Likewise. Remove c_test argument.
3904 (match_pattern): Update accordingly and remove c_test argument.
3905 (main): Update accordingly.
3907 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3909 * gensupport.h (get_num_insn_codes): Declare.
3910 * gensupport.c (get_num_insn_codes): New function.
3911 * genattrtab.c (optimize_attrs): Rename max_insn_code to
3913 (main): Likewise. Use get_num_insn_codes.
3914 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
3916 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3919 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
3920 is zero- rather than sign-extended.
3922 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3924 * target-insns.def (can_extend): Delete.
3926 2015-08-05 Richard Biener <rguenther@suse.de>
3928 PR tree-optimization/67121
3929 * tree-if-conv.c (combine_blocks): Clear range-info produced
3930 by stmts no longer executed conditionally.
3932 2015-08-05 Nick Clifton <nickc@redhat.com>
3934 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
3935 to allow identical far pointers to remain.
3937 2015-08-05 Richard Biener <rguenther@suse.de>
3940 * match.pd: Compare address bases with == if they are decls
3941 or SSA names, not operand_equal_p. Otherwise fail.
3943 2015-08-05 Richard Biener <rguenther@suse.de>
3945 PR tree-optimization/67055
3946 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
3949 * g++.dg/torture/pr67055.C: New testcase.
3951 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
3953 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
3955 (define_attr "enabled"): Handle avx521vl and noavx512vl.
3956 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
3957 AVX-512 alternative out of SSE.
3958 (define_insn "*vec_concatv2df"): Ditto.
3960 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
3962 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
3963 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
3964 CODE_FOR_avx_ptestv4di.
3965 * config/i386/sse.md (define_mode_iterator V_AVX): New.
3966 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
3967 (define_insn "avx_ptest256"): Merge this ...
3968 (define_insn "sse4_1_ptest"): And this ...
3969 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
3971 2015-08-05 Richard Biener <rguenther@suse.de>
3973 PR tree-optimization/67109
3974 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
3975 against too big groups. Print whether this is a load or store
3976 group. Rename from ...
3977 (vect_analyze_group_access): ... this which is now a wrapper
3978 dissolving an invalid group.
3979 (vect_analyze_data_ref_accesses): Print whether this is a load
3982 2015-08-05 Richard Biener <rguenther@suse.de>
3985 * match.pd: Guard const_binop result checking against NULL_TREE
3988 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
3990 * cse.c (cse_insn): Restoring old behaviour for src_eqv
3991 when dest and value in the REG_EQUAL are same and dest
3994 2015-08-04 Anatoly Sokolov <aesok@post.ru>
3996 * config/moxie/moxie.h (PRINT_OPERAND,
3997 PRINT_OPERAND_ADDRESS): Remove macros.
3998 * config/moxie/moxie-protos.h (moxie_print_operand,
3999 moxie_print_operand_address): Remove declaration.
4000 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
4001 TARGET_PRINT_OPERAND_ADDRESS): Define.
4002 (moxie_print_operand, moxie_print_operand_address): Make static.
4004 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4007 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
4008 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
4010 2015-08-04 Richard Biener <rguenther@suse.de>
4012 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
4014 (dt_operand::gen_gimple_expr): Adjust.
4016 2015-08-04 Richard Biener <rguenther@suse.de>
4018 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
4019 bool compares on RHS.
4020 * match.pd: Add X ==/!= !X is false/true pattern.
4022 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
4024 * config/aarch64/aarch64.c: Change inner loop statement cost
4025 to be consistent with other targets.
4027 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
4029 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
4032 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
4034 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
4035 (machine_function): Remove pseudos field.
4037 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4039 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4040 Exit early and use target_option_current_node if processing current
4043 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4045 * doc/extend.texi (AArch64 Function Attributes): New node.
4046 (AArch64 Pragmas): Likewise.
4048 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4050 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4051 Initialize simd builtins if TARGET_SIMD.
4052 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
4053 Make sure that the builtins are initialized only once no matter how
4054 many times the function is called.
4055 (aarch64_init_builtins): Unconditionally initialize crc builtins.
4056 (aarch64_relayout_simd_param): New function.
4057 (aarch64_simd_expand_args): Use above during argument expansion.
4058 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
4059 simd builtins if TARGET_SIMD.
4060 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
4062 (aarch64_relayout_simd_types): Likewise.
4064 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4066 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
4067 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
4068 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
4069 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4071 (aarch64_reset_previous_fndecl): New function.
4072 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
4074 * config/aarch64/aarch64-c.c: New file.
4075 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
4076 Push and pop options at beginning and end. Remove ifdef
4077 __ARM_FEATURE_CRC32.
4078 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
4079 Add pragma +nothing+simd and +nothing+crypto where appropriate.
4080 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
4081 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
4083 (aarch64_register_pragmas): Likewise.
4084 (aarch64_reset_previous_fndecl): Likewise.
4085 (aarch64_process_target_attr): Likewise.
4086 (aarch64_override_options_internal): Likewise.
4088 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4090 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
4092 (aarch64_can_inline_p): Likewise.
4093 (TARGET_CAN_INLINE_P): Define.
4095 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4097 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4098 Remove static. Handle OPT_mgeneral_regs_only,
4099 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
4100 OPT_momit_leaf_frame_pointer.
4101 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
4102 (aarch64_attr_opt_type): New enum.
4103 (aarch64_attribute_info): New struct.
4104 (aarch64_handle_attr_arch): New function.
4105 (aarch64_handle_attr_cpu): Likewise.
4106 (aarch64_handle_attr_tune): Likewise.
4107 (aarch64_handle_attr_isa_flags): Likewise.
4108 (aarch64_attributes): New table.
4109 (aarch64_process_one_target_attr): New function.
4110 (num_occurences_in_str): Likewise.
4111 (aarch64_process_target_attr): Likewise.
4112 (aarch64_option_valid_attribute_p): Likewise.
4113 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4114 * config/aarch64/aarch64-protos.h: Include input.h
4115 (aarch64_handle_option): Declare prototype.
4117 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4119 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
4120 * config/aarch64/aarch64.c: Include target-globals.h
4121 (aarch64_previous_fndecl): New variable.
4122 (aarch64_set_current_function): New function.
4123 (TARGET_SET_CURRENT_FUNCTION): Define.
4125 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4127 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
4128 (explicit_arch): Likewise.
4129 (x_aarch64_isa_flags): Likewise.
4130 (mgeneral-regs-only): Mark as Save.
4131 (mfix-cortex-a53-835769): Likewise.
4132 (mcmodel=): Likewise.
4133 (mstrict-align): Likewise.
4134 (momit-leaf-frame-pointer): Likewise.
4135 (mtls-dialect): Likewise.
4136 (master=): Likewise.
4137 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
4138 (aarch64_isa_flags): Remove extern declaration.
4139 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
4140 to indicate success or failure.
4141 (aarch64_validate_march): Likewise.
4142 (aarch64_validate_mtune): Likewise.
4143 (aarch64_isa_flags): Delete.
4144 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
4145 instead of aarch64_isa_flags.
4146 (aarch64_get_tune_cpu): New function.
4147 (aarch64_get_arch): Likewise.
4148 (aarch64_override_options): Use above and set up explicit_tune_core
4150 (aarch64_print_extension): Move earlier in file. Add isa_flags
4151 argument and use that instead of the global aarch64_isa_flags.
4152 (aarch64_option_save): New function.
4153 (aarch64_option_restore): Likewise.
4154 (aarch64_option_print): Likewise.
4155 (aarch64_declare_function_name): Likewise.
4156 (aarch64_start_file): Delete.
4157 (TARGET_ASM_FILE_START): Do not define.
4158 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
4159 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
4162 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4164 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
4165 flag_omit_leaf_frame_pointer to 2.
4167 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4169 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
4171 (TARGET_FIX_ERR_A53_835769): New macro.
4172 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4173 handling of opts->x_aarch64_fix_a53_err835769.
4174 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
4175 than aarch64_fix_a53_err835769.
4176 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
4177 * config/aarch64/aarch64-linux.h: Likewise.
4179 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
4181 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
4182 ix86_expand_int_movcc as boolean.
4184 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4186 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
4187 (aarch64_cpu_string): Likewise.
4188 (aarch64_tune_string): Likewise.
4189 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
4190 (aarch64_parse_extension): Return aarch64_parse_opt_result.
4191 Add extra argument to put result into.
4192 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
4193 (aarch64_parse_cpu): Add arguments to put results into. Return
4194 aarch64_parse_opt_result.
4195 (aarch64_parse_tune): Likewise.
4196 (aarch64_override_options_after_change_1): New function.
4197 (aarch64_override_options_internal): New function.
4198 (aarch64_validate_mcpu): Likewise.
4199 (aarch64_validate_march): Likewise.
4200 (aarch64_validate_mtune): Likewise.
4201 (aarch64_override_options): Update to reflect above changes.
4202 Move some logic into aarch64_override_options_internal.
4203 Initialize target_option_default_node and target_option_current_node.
4204 (aarch64_override_options_after_change): Move logic into
4205 aarch64_override_options_after_change_1 and call it with global_options.
4206 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
4207 flag values from that.
4209 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4211 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4212 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
4213 * config/aarch64/aarch64.c (struct processor): Add arch field.
4214 (all_architectures): Handle above, move above all_cores.
4215 (all_cores): Handle above.
4216 (aarch64_parse_arch): Handle above changes.
4217 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
4218 above. Update comments.
4219 (armv8.1-a): Likewise.
4220 * config/aarch64/aarch64-cores.def: Update according to above.
4221 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
4222 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
4223 aarch64_arch_driver_info.
4225 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4227 * config/aarch64/aarch64.c (struct processor): Add ident field.
4228 Rename core sched_core.
4229 (all_cores): Handle above changes.
4230 (all_architectures): Likewise.
4231 (aarch64_parse_arch): Likewise.
4232 (aarch64_override_options): Likewise.
4234 2015-08-04 Richard Biener <rguenther@suse.de>
4236 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
4237 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
4238 comparisons embedded in [VEC_]COND_EXPRs.
4240 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
4242 * tree-if-conv.c: Fix various typos in comments.
4243 * tree-vect-stmts.c: Likewise.
4245 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4247 PR tree-optimization/67043
4248 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
4249 preheader after hoisting invariant in it.
4250 (find_defs): Force recomputation of all luids.
4252 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
4254 * config/rs6000/htm.md (tabort.): Restrict the source operand to
4255 using a base register.
4257 2015-08-03 David Malcolm <dmalcolm@redhat.com>
4259 * main.c (main): Pass in NULL for toplev's external_timer.
4260 * timevar.c: Include coretypes.h.
4261 (class timer::named_items): New.
4262 (timer::named_items::named_items): New.
4263 (timer::named_items::~named_items): New.
4264 (timer::named_items::push): New.
4265 (timer::named_items::pop): New.
4266 (timer::named_items::print): New.
4267 (timer::timer): Initialize field "m_jit_client_items".
4268 (timer::~timer): New.
4269 (timer::push): Move bulk of implementation to...
4270 (timer::push_internal): ...here. New function.
4271 (timer::pop): Move bulk of implementation to...
4272 (timer::pop_internal): ...here. New function.
4273 (timer::push_client_item): New.
4274 (timer::pop_client_item): New.
4275 (timer::print_row): New function, taken from timer::print.
4276 (timer::print): Print "GCC items" header if we also have client
4277 items. Move row-printing to timer::print_row. Print any client
4279 (timer::get_topmost_item_name): New method.
4280 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
4281 (TV_JIT_CLIENT_CODE): New.
4282 * timevar.h (timer::push_client_item): New declaration.
4283 (timer::pop_client_item): New declaration.
4284 (timer::get_topmost_item_name): New method.
4285 (timer::push_internal): New declaration.
4286 (timer::pop_internal): New declaration.
4287 (timer::print_row): New declaration.
4288 (timer::named_items): New declaration.
4289 (timer::m_jit_client_items): New field.
4290 (timer): Add friend class named_items.
4291 (auto_timevar::auto_timevar): Add timer param.
4292 (auto_timevar::~auto_timevar): Use field "m_timer".
4293 (auto_timevar::m_timer): New field.
4294 * toplev.c (initialize_rtl): Add g_timer as param when
4295 constructing auto_timevar instance.
4296 (toplev::toplev): Add "external_timer" param, and use it to
4297 initialize the "g_timer" global if non-NULL.
4298 (toplev::~toplev): If this created "g_timer", delete it.
4299 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
4300 with "external_timer" timer *.
4302 2015-08-03 Alexander Basov <coohpt@gmail.com>
4307 * cfgexpand.c (expand_one_var): Add check if stack is going to
4308 be used in naked function.
4309 * expr.c (expand_expr_addr_expr_1): Remove excess checking
4310 whether expression should not reside in MEM.
4311 * function.c (use_register_for_decl): Do not use registers for
4312 non-register things (volatile, float, BLKMode) in naked functions.
4314 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
4317 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
4318 Adjust splits to match new pattern.
4320 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4322 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
4325 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
4326 point in VSX registers.
4328 * config/rs6000/constraints.md (wb constraint): Document unused
4330 (we constraint): Likewise.
4331 (wo constraint): Likewise.
4332 (wp constraint): New constraint for IEEE 128-bit floating point in
4334 (wq constraint): Likewise.
4336 * config/rs6000/predicates.md (easy_fp_constant): Add support for
4337 IEEE 128-bit floating point in VSX registers.
4338 (easy_scalar_constant): Likewise.
4340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
4341 constraints (wp, wq) for IEEE 128-bit floating point in VSX
4343 (rs6000_init_hard_regno_mode_ok): Likewise.
4345 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
4346 floating point in VSX registers.
4355 (vsx_le_permute_<mode>): Add support to properly swap bytes for
4356 IEEE 128-bit floating point in VSX registers on little endian.
4357 (vsx_le_undo_permute_<mode>): Likewise.
4358 (vsx_le_perm_load_<mode>): Likewise.
4359 (vsx_le_perm_store_<mode>): Likewise.
4360 (splitters for IEEE 128-bit fp moves): Likewise.
4362 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
4365 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
4366 floating point in VSX registers.
4369 * doc/md.text (Machine Constraints): Document wp and wq
4370 constraints on PowerPC.
4372 2015-08-03 Jeff Law <law@redhat.com>
4375 PR gcov-profile/66899
4376 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
4377 iterate over the jump threading paths when an element in the
4378 jump threading paths array is eliminated.
4380 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
4382 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
4384 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
4386 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
4387 is_use_properly_guarded the variable def_preds. Free its
4388 contents before returning.
4389 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
4390 (is_use_properly_guarded): Replace local variable def_preds with
4391 a parameter. Adjust accordingly. Only update *def_preds if it's
4394 2015-08-03 Richard Biener <rguenther@suse.de>
4396 * genmatch.c (simplify::for_subst_vec): New member.
4397 (binary_ok): New helper for for lowering.
4398 (lower_for): Delay substituting operators into result expressions
4399 if we can merge the results eventually again.
4400 (capture_info::walk_result): Adjust for user_id appearing as
4401 result expression operator.
4402 (expr::gen_transform): Likewise.
4403 (dt_simplify::gen_1): Likewise.
4404 (dt_simplify::gen): Pass not substituted operators to tail
4405 functions or initialize local variable with it.
4406 (decision_tree::gen): Adjust function signature.
4407 * match.pd: Fix tests against global code and add default
4408 cases to switch stmts.
4410 2015-08-03 Richard Biener <rguenther@suse.de>
4412 * genmatch.c (dt_simplify::gen): Create captures array
4413 with an initializer.
4415 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4417 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
4418 the host compiler is affected by placement new aliasing bug.
4419 * configure: Regenerate.
4420 * Makefile.in (ALIASING_FLAGS): New variable.
4421 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
4423 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4426 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
4427 (negmulsf3_vfp): Likewise.
4428 (muldf3negdf_vfp): Disable for -frounding-math.
4429 (mulsf3negsf_vfp): Likewise.
4430 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
4431 fix MULT cost with -frounding-math.
4433 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4435 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
4436 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
4437 explicit. Prefer to add the flag whenever possible.
4438 (noce_process_if_block): Try noce_try_store_flag_constants before
4441 2015-08-03 Richard Biener <rguenther@suse.de>
4443 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
4444 New hash-map to record equivalent transforms.
4445 (dt_node::analyze): Populate the equivalent transforms hash-map.
4446 (dt_simplify::info): Add reference to hash-map entry.
4447 (dt_simplify::gen): If we have split out a function for the
4448 transform, generate a call to it.
4449 (sinfo_hashmap_traits::hash): New function.
4450 (compare_op): New helper function for ...
4451 (sinfo_hashmap_traits::equal_keys): ... this new function.
4452 (decision_tree::gen): Split out common equivalent transforms
4455 2015-08-03 Richard Biener <rguenther@suse.de>
4457 * gimple-fold.c (fold_gimple_assign): Remove folding of
4458 the comparison in COND_EXPRs.
4460 2015-08-03 Richard Biener <rguenther@suse.de>
4462 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
4463 on the rhs of assignments first simplify the embedded
4466 2015-08-03 Richard Biener <rguenther@suse.de>
4468 PR tree-optimization/66917
4469 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
4471 (DR_VECT_AUX): New macro.
4472 (set_dr_misalignment): Adjust.
4473 (dr_misalignment): Likewise.
4474 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4475 Compute whether the base is at least element aligned.
4476 * tree-vect-stmts.c (ensure_base_align): Adjust.
4477 (vectorizable_store): If the base is not element aligned
4478 preserve alignment of the original access if misalignment is unknown.
4479 (vectorizable_load): Likewise.
4481 2015-08-02 Martin Sebor <msebor@redhat.com>
4483 * c-family/c.opt (-Wframe-address): New warning option.
4484 * doc/invoke.texi (Wframe-address): Document it.
4485 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
4486 Clarify possible effects of calling the functions with non-zero
4487 arguments and mention -Wframe-address.
4488 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
4490 2015-08-01 Michael Collison <michael.collison@linaro.org
4491 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4493 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
4494 (*arm_umin_cmp): Likewise.
4496 2015-08-01 Caroline Tice <cmtice@google.com>
4499 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
4501 (vtbl_find_mangled_name): New function.
4502 (vtbl_register_mangled_name): New function.
4503 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
4504 mangled name in mangled name vectors.
4505 (find_or_create_vtbl_map_node): Ditto.
4506 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
4507 update recursion_depth on function entry; pass it to every recursive
4508 call; automatically exit if depth > 25 (give up looking at that point).
4509 (verify_bb_vtables): Initialize recursion_depth and pass it to
4510 var_is_used_for_virtual_call_p.
4511 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
4512 global variable decls.
4513 (vtbl_register_mangled_name): New extern function decl.
4515 2015-08-01 Tom de Vries <tom@codesourcery.com>
4517 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
4519 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
4521 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
4522 operation_no_trapping_overflow. Allow non-overflow operations.
4523 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
4526 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4529 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
4531 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4533 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
4534 Enable for TARGET_32BIT.
4535 (*if_move_neg): Likewise.
4537 2015-07-31 Nick Clifton <nickc@redhat.com>
4539 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
4540 Returns true for __model__.
4541 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4543 2015-07-31 Alan Modra <amodra@gmail.com>
4546 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
4547 (rs6000_emit_prologue): Set it.
4548 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
4550 2015-07-31 Richard Biener <rguenther@suse.de>
4552 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
4553 -> X == (C1 ^ C2) which is already implemented in match.pd.
4554 Remove redundant dispatching to fold_relational_const.
4555 Move unordered self and NaN compares ...
4556 * match.pd: ... as patterns here. Remove some stray captures
4559 2015-07-31 Petr Murzin <petr.murzin@intel.com>
4561 * config/i386/i386.c
4562 (bdesc_special_args): Convert mask type from signed to unsigned for
4564 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
4565 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
4566 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
4567 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
4568 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
4569 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
4570 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
4571 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
4572 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
4573 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
4574 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
4575 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
4576 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
4577 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
4578 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
4579 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
4580 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
4581 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
4582 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
4583 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
4584 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
4585 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
4586 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
4587 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
4588 * config/i386/i386-builtin-types.def
4589 (V16QI_FTYPE_V16SI): Remove.
4590 (V8DF_FTYPE_V8SI): Ditto.
4591 (V8HI_FTYPE_V8DI): Ditto.
4592 (V8SI_FTYPE_V8DI): Ditto.
4593 (V8SF_FTYPE_V8DF): Ditto.
4594 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
4595 (V16HI_FTYPE_V16SI): Ditto.
4596 (V16SF_FTYPE_V16HI): Ditto.
4597 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
4598 (V16SF_FTYPE_V16SI): Ditto.
4599 (V4DI_FTYPE_V4DI): Ditto.
4600 (V16SI_FTYPE_V16SF): Ditto.
4601 (V16SF_FTYPE_FLOAT): Ditto.
4602 (V8DF_FTYPE_DOUBLE): Ditto.
4603 (V8DI_FTYPE_INT64): Ditto.
4604 (V8DI_FTYPE_V4DI): Ditto.
4605 (V16QI_FTYPE_V8DI): Ditto.
4606 (UINT_FTYPE_V4SF): Ditto.
4607 (UINT64_FTYPE_V4SF): Ditto.
4608 (UINT_FTYPE_V2DF): Ditto.
4609 (UINT64_FTYPE_V2DF): Ditto.
4610 (V16SI_FTYPE_V16SI): Ditto.
4611 (V8DI_FTYPE_V8DI): Ditto.
4612 (V16SI_FTYPE_PV4SI): Ditto.
4613 (V16SF_FTYPE_PV4SF): Ditto.
4614 (V8DI_FTYPE_PV2DI): Ditto.
4615 (V8DF_FTYPE_PV2DF): Ditto.
4616 (V4DI_FTYPE_PV2DI): Ditto.
4617 (V4DF_FTYPE_PV2DF): Ditto.
4618 (V16SI_FTYPE_PV2SI): Ditto.
4619 (V16SF_FTYPE_PV2SF): Ditto.
4620 (V8DI_FTYPE_PV4DI): Ditto.
4621 (V8DF_FTYPE_PV4DF): Ditto.
4622 (V8SF_FTYPE_FLOAT): Ditto.
4623 (V4SF_FTYPE_FLOAT): Ditto.
4624 (V4DF_FTYPE_DOUBLE): Ditto.
4625 (V8SF_FTYPE_PV4SF): Ditto.
4626 (V8SI_FTYPE_PV4SI): Ditto.
4627 (V4SI_FTYPE_PV2SI): Ditto.
4628 (V8SF_FTYPE_PV2SF): Ditto.
4629 (V8SI_FTYPE_PV2SI): Ditto.
4630 (V16SF_FTYPE_PV8SF): Ditto.
4631 (V16SI_FTYPE_PV8SI): Ditto.
4632 (V8DI_FTYPE_V8SF): Ditto.
4633 (V4DI_FTYPE_V4SF): Ditto.
4634 (V2DI_FTYPE_V4SF): Ditto.
4635 (V64QI_FTYPE_QI): Ditto.
4636 (V32HI_FTYPE_HI): Ditto.
4637 (V8UHI_FTYPE_V8UHI): Ditto.
4638 (V16UHI_FTYPE_V16UHI): Ditto.
4639 (V32UHI_FTYPE_V32UHI): Ditto.
4640 (V2UDI_FTYPE_V2UDI): Ditto.
4641 (V4UDI_FTYPE_V4UDI): Ditto.
4642 (V8UDI_FTYPE_V8UDI): Ditto.
4643 (V4USI_FTYPE_V4USI): Ditto.
4644 (V8USI_FTYPE_V8USI): Ditto.
4645 (V16USI_FTYPE_V16USI): Ditto.
4646 (V2DF_FTYPE_V2DF_UINT64): Ditto.
4647 (V2DI_FTYPE_V2DF_V2DF): Ditto.
4648 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
4649 (V8DF_FTYPE_V8DF_V8DI): Ditto.
4650 (V4SF_FTYPE_V4SF_UINT64): Ditto.
4651 (V4SI_FTYPE_V4SF_V4SF): Ditto.
4652 (V16SF_FTYPE_V16SF_V16SI): Ditto.
4653 (V64QI_FTYPE_V32HI_V32HI): Ditto.
4654 (V32HI_FTYPE_V16SI_V16SI): Ditto.
4655 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
4656 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
4657 (V32HI_FTYPE_V64QI_V64QI): Ditto.
4658 (V32HI_FTYPE_V32HI_V32HI): Ditto.
4659 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
4660 (V16SI_FTYPE_V16SI_V4SI): Ditto.
4661 (V16SI_FTYPE_V16SI_V16SI): Ditto.
4662 (V16SI_FTYPE_V32HI_V32HI): Ditto.
4663 (V16SI_FTYPE_V16SI_SI): Ditto.
4664 (V8DI_FTYPE_V8DI_V8DI): Ditto.
4665 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
4666 (V8DI_FTYPE_V16SI_V16SI): Ditto.
4667 (V8DI_FTYPE_V8DI_V2DI): Ditto.
4668 (QI_FTYPE_QI): Ditto.
4669 (SI_FTYPE_SI): Ditto.
4670 (DI_FTYPE_DI): Ditto.
4671 (QI_FTYPE_QI_QI): Ditto.
4672 (QI_FTYPE_QI_INT): Ditto.
4673 (HI_FTYPE_HI_INT): Ditto.
4674 (SI_FTYPE_SI_INT): Ditto.
4675 (DI_FTYPE_DI_INT): Ditto.
4676 (HI_FTYPE_V16QI_V16QI): Ditto.
4677 (SI_FTYPE_V32QI_V32QI): Ditto.
4678 (DI_FTYPE_V64QI_V64QI): Ditto.
4679 (QI_FTYPE_V8HI_V8HI): Ditto.
4680 (HI_FTYPE_V16HI_V16HI): Ditto.
4681 (SI_FTYPE_V32HI_V32HI): Ditto.
4682 (QI_FTYPE_V4SI_V4SI): Ditto.
4683 (QI_FTYPE_V8SI_V8SI): Ditto.
4684 (QI_FTYPE_V2DI_V2DI): Ditto.
4685 (QI_FTYPE_V4DI_V4DI): Ditto.
4686 (QI_FTYPE_V8DI_V8DI): Ditto.
4687 (HI_FTYPE_V16SI_V16SI): Ditto.
4688 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
4689 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
4690 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
4691 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
4692 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
4693 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
4694 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
4695 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
4696 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
4697 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
4698 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
4699 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
4700 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
4701 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
4702 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
4703 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
4704 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
4705 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
4706 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
4707 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
4708 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
4709 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
4710 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
4711 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
4712 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
4713 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
4714 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
4715 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
4716 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
4717 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
4718 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
4719 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
4720 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
4721 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
4722 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
4723 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
4724 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
4725 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
4726 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
4727 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
4728 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
4729 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
4730 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
4731 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
4732 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
4733 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
4734 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
4735 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
4736 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
4737 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
4738 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
4739 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
4740 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
4741 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
4742 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
4743 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
4744 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
4745 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
4746 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
4747 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
4748 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
4749 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
4750 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
4751 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
4752 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
4753 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
4754 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
4755 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
4756 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
4757 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
4758 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
4759 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
4760 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
4761 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
4762 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
4763 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
4764 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
4765 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
4766 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
4767 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
4768 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
4769 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
4770 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
4771 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
4772 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
4773 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
4774 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
4775 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
4776 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
4777 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
4778 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
4779 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
4780 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
4781 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
4782 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
4783 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
4784 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
4785 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
4786 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
4787 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
4788 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
4789 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
4790 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
4791 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
4792 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
4793 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
4794 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
4795 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
4796 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
4797 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
4798 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
4799 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
4800 (HI_FTYPE_HI): Ditto.
4801 (HI_FTYPE_V16QI): Ditto.
4802 (SI_FTYPE_V32QI): Ditto.
4803 (DI_FTYPE_V64QI): Ditto.
4804 (QI_FTYPE_V8HI): Ditto.
4805 (HI_FTYPE_V16HI): Ditto.
4806 (SI_FTYPE_V32HI): Ditto.
4807 (QI_FTYPE_V4SI): Ditto.
4808 (QI_FTYPE_V8SI): Ditto.
4809 (HI_FTYPE_V16SI): Ditto.
4810 (QI_FTYPE_V2DI): Ditto.
4811 (QI_FTYPE_V4DI): Ditto.
4812 (QI_FTYPE_V8DI): Ditto.
4813 (V16QI_FTYPE_HI): Ditto.
4814 (V32QI_FTYPE_SI): Ditto.
4815 (V64QI_FTYPE_DI): Ditto.
4816 (V8HI_FTYPE_QI): Ditto.
4817 (V16HI_FTYPE_HI): Ditto.
4818 (V32HI_FTYPE_SI): Ditto.
4819 (V4SI_FTYPE_QI): Ditto.
4820 (V4SI_FTYPE_HI): Ditto.
4821 (V8SI_FTYPE_QI): Ditto.
4822 (V8SI_FTYPE_HI): Ditto.
4823 (V2DI_FTYPE_QI): Ditto.
4824 (V4DI_FTYPE_QI): Ditto.
4825 (HI_FTYPE_HI_HI): Ditto.
4826 (SI_FTYPE_SI_SI): Ditto.
4827 (DI_FTYPE_DI_DI): Ditto.
4828 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
4829 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
4830 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
4831 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
4832 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
4833 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
4834 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
4835 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
4836 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
4837 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
4838 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
4839 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
4840 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
4841 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
4842 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
4843 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
4844 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
4845 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
4846 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
4847 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
4848 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
4849 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
4850 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
4851 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
4852 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
4853 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
4854 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
4855 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
4856 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
4857 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
4858 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
4859 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
4860 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
4861 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
4862 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
4863 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
4864 (V16SI_FTYPE_HI): Ditto.
4865 (V8DI_FTYPE_QI): Ditto.
4866 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
4867 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
4868 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
4869 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
4870 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
4871 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
4872 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
4873 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
4874 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
4875 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
4876 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
4877 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
4878 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
4879 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
4880 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
4881 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
4882 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
4883 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
4884 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
4885 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
4886 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
4887 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
4888 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
4889 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
4890 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
4891 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
4892 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
4893 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
4894 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
4895 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
4896 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
4897 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
4898 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
4899 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
4900 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
4901 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
4902 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
4903 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
4904 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
4905 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
4906 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
4907 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
4908 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
4909 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
4910 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
4911 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
4912 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
4913 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
4914 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
4915 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
4916 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
4917 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
4918 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
4919 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
4920 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
4921 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
4922 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
4923 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
4924 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
4925 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
4926 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
4927 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
4928 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
4929 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
4930 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
4931 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
4932 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
4933 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
4934 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
4935 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
4936 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
4937 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
4938 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
4939 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
4940 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
4941 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
4942 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
4943 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
4944 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
4945 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
4946 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
4947 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
4948 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
4949 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
4950 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
4951 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
4952 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
4953 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
4954 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
4955 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
4956 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
4957 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
4958 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
4959 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
4960 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
4961 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
4962 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
4963 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
4964 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
4965 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
4966 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
4967 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
4968 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
4969 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
4970 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
4971 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
4972 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
4973 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
4974 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
4975 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
4976 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
4977 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
4978 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
4979 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
4980 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
4981 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
4982 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
4983 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
4984 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
4985 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
4986 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
4987 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
4988 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
4989 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
4990 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
4991 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
4992 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
4993 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
4994 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
4995 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
4996 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
4997 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
4998 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
4999 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
5000 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
5001 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
5002 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
5003 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
5004 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
5005 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
5006 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
5007 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
5008 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
5009 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
5010 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
5011 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
5012 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
5013 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
5014 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
5015 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
5016 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
5017 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
5018 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
5019 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
5020 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
5021 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
5022 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
5023 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
5024 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
5025 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
5026 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
5027 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
5028 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
5029 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
5030 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
5031 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
5032 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
5033 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
5034 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
5035 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
5036 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
5037 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
5038 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
5039 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
5040 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
5041 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
5042 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
5043 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
5044 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
5045 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
5046 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
5047 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
5048 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
5049 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
5050 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
5051 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
5052 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
5053 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
5054 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
5055 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
5056 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
5057 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
5058 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
5059 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
5060 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
5061 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
5062 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
5063 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
5064 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
5065 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
5066 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
5067 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
5068 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
5069 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
5070 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
5071 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
5072 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
5073 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
5074 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
5075 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
5076 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
5077 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
5078 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
5079 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
5080 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
5081 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
5082 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
5083 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
5084 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
5085 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
5086 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
5087 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
5088 (QI_FTYPE_V8DF_INT_QI): Ditto.
5089 (QI_FTYPE_V4DF_INT_QI): Ditto.
5090 (QI_FTYPE_V2DF_INT_QI): Ditto.
5091 (HI_FTYPE_V16SF_INT_HI): Ditto.
5092 (QI_FTYPE_V8SF_INT_QI): Ditto.
5093 (QI_FTYPE_V4SF_INT_QI): Ditto.
5094 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
5096 2015-07-31 Richard Biener <rguenther@suse.de>
5098 * gimple-fold.c (fold_gimple_assign): Remove folding of
5101 2015-07-31 Tom de Vries <tom@codesourcery.com>
5103 PR tree-optimization/66846
5104 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5105 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
5106 (expand_omp_target) [ENABLE_CHECKING]: Same.
5107 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
5108 cfun if !LOOPS_NEED_FIXUP.
5109 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
5110 that omp_for already has its own loop struct.
5111 * tree-parloops.c (create_phi_for_local_result)
5112 (create_call_for_reduction): Handle simple latch bb.
5113 (create_parallel_loop): Add simple latch bb to preserve
5114 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
5115 (gen_parallel_loop): Remove call to cancel_loop_tree.
5116 (parallelize_loops): Skip loops that are inner loops of parallelized
5118 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
5119 verify_loop_structure.
5121 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5123 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
5124 * config/v850/v850.md (RV_REGNUM): New constants.
5125 * config/v850/v850.c (v850_libcall_value): New functions.
5126 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
5127 (TARGET_LIBCALL_VALUE): Define.
5129 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5131 * rtl.h (lowpart_subreg): Move in file.
5132 * loop-iv.c (lowpart_subreg): Move to...
5133 * simplify-rtx.c (lowpart_subreg): ...here.
5134 (simplify_binary_operation_1): Use lowpart_subreg instead of
5135 simplify_gen_subreg.
5136 * expr.c (expand_expr_real_2): Ditto.
5137 * emit-rtl.c (gen_lowpart_common): Ditto.
5138 * combine.c (gen_lowpart_for_combine): Ditto.
5139 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
5140 expand_debug_source_expr): Ditto.
5142 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
5144 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
5145 (expand_builtin_atomic_clear): Remove support for atomic_clear
5148 2015-07-30 Richard Biener <rguenther@suse.de>
5150 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
5151 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
5152 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
5153 redundant operand canonicalization.
5155 2015-07-30 David Sherwood <david.sherwood@arm.com>
5157 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
5158 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
5159 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
5160 * config/arm/arm.c (neon_valid_immediate): Likewise.
5161 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
5162 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
5163 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
5164 (expand_vec_perm_vpshufb2_vpermq): Likewise.
5165 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
5166 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5167 * config/i386/sse.md
5168 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
5169 (*ssse3_palignr<mode>_perm): Likewise.
5170 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
5171 * config/spu/spu.c (arith_immediate_p): Likewise.
5172 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5173 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
5175 2015-07-30 Richard Biener <rguenther@suse.de>
5177 * genmatch.c (decision_tree::gen_gimple): Merge with ...
5178 (decision_tree::gen_generic): ... this into ...
5179 (decision_tree::gen): ... this.
5180 (main): Adjust callers.
5182 2015-07-30 Richard Biener <rguenther@suse.de>
5184 * genmatch.c (verbose): New global.
5185 (warning_at): Add overload with source_location.
5186 (capture_info::capture_info): Add bool whether generating gimple
5187 or generic. Add gimple member.
5188 (capture_info::cinfo): Add capture member.
5189 (capture_info::walk_match): Record capture. Warn on
5191 (capture_info::walk_c_expr): Add more fragments captures cannot
5192 escape through. Warn on escaped captures.
5193 (dt_simplify::gen_1): Warn on operands we force to have no
5195 (main): Initialize verbose.
5196 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
5198 2015-07-30 Richard Biener <rguenther@suse.de>
5201 * match.pd: Allow both operands to independently have conversion
5202 when simplifying compares of addresses.
5204 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
5208 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
5209 around those cases that need one.
5211 2015-07-29 Aditya Kumar <hiraditya@msn.com>
5213 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
5215 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
5217 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
5218 New. Copied from config/i386/gnu-user.h.
5219 (ASM_COMMENT_START): Likewise.
5220 (DBX_REGISTER_NUMBER): Likewise.
5222 2015-07-29 Richard Biener <rguenther@suse.de>
5224 * gimple-fold.c (fold_gimple_cond): Remove.
5225 (fold_stmt_1): Do not call it.
5227 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
5229 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
5230 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
5232 * config/aarch64/aarch64-modes.def: Add HFmode.
5234 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5235 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
5237 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
5238 aarch64_promoted_type): New.
5240 (aarch64_float_const_representable_p): Disable HFmode.
5241 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
5242 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
5243 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
5245 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
5246 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
5248 * config/aarch64/iterators.md (GPF_F16): New.
5250 2015-07-29 Richard Biener <rguenther@suse.de>
5252 * match.pd: Merge address comparison patterns and make them
5253 handle some more cases.
5255 2015-07-29 Richard Biener <rguenther@suse.de>
5257 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
5258 (parser::parse_capture): Add bool argument on whether to reject
5260 (parser::parse_expr): Adjust.
5261 (parser::parse_op): Likewise.
5262 (parser::parse_pattern): Likewise.
5264 2015-07-29 Richard Biener <rguenther@suse.de>
5266 * gimple-fold.c (has_use_on_stmt): New function.
5267 (replace_stmt_with_simplification): Use it to allow
5268 abnormals originally referenced in the stmt.
5269 (fold_stmt_1): Canonicalize operand order.
5271 2015-07-28 David Sherwood <david.sherwood@arm.com>
5273 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
5274 GET_MODE_INNER unconditionally.
5275 * config/spu/spu.c (arith_immediate_p): Likewise.
5276 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
5277 * expmed.c (synth_mult): Remove check for VOIDmode result from
5279 (expand_mult_const): Likewise.
5280 * fold-const.c (fold_binary_loc): Replace call to element_precision
5281 with call to GET_MODE_PRECISION.
5282 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
5284 (emit_mode_inner): Likewise.
5285 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
5287 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
5288 (GET_MODE_UNIT_PRECISION): Likewise.
5289 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
5290 * simplify-rtx.c (simplify_immed_subreg): Likewise.
5291 * stor-layout.c (bitwise_type_for_mode): Update assert.
5292 (element_precision): Remove.
5294 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5296 * target-insns.def (reload_load_address): New targetm instruction
5298 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
5300 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5302 * target-insns.def (atomic_test_and_set): New targetm instruction
5304 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
5305 HAVE_*/gen_* interface.
5307 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5309 * target-insns.def (can_extend, ptr_extend): New targetm instruction
5311 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
5312 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5313 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5314 * rtlanal.c (nonzero_bits1): Likewise.
5315 (num_sign_bit_copies1): Likewise.
5317 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5319 * target-insns.def (eh_return): New targetm instruction pattern.
5320 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
5322 * function.c (thread_prologue_and_epilogue_insns): Remove
5323 preprocessor condition.
5325 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5327 * target-insns.def (indirect_jump): New targetm instruction pattern.
5328 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
5331 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5333 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
5334 instead of nonimmediate_operand. Remove C condiition.
5336 2015-07-28 Richard Biener <rguenther@suse.de>
5338 * match.pd: Add more simplification of address comparisons.
5340 2015-07-28 Richard Biener <rguenther@suse.de>
5342 * match.pd: Re-order two cases in comparison with max/min
5343 value simplification to make it apply for bools.
5345 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5347 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
5348 Handle simple SIGN_EXTEND or ZERO_EXTEND.
5349 (aarch64_rtx_costs): Properly strip extend or extract before
5350 passing down to rtx costs again.
5352 2015-07-28 Nick Clifton <nickc@redhat.com>
5354 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
5355 Optimizes the case where -mes0 is active and a constant symbolic
5357 * config/rl78/rl78-protos.h: Prototype the new function.
5358 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
5360 2015-07-28 Tom de Vries <tom@codesourcery.com>
5362 * tree-parloops.c (reduc_stmt_res): New function.
5363 (initialize_reductions, add_field_for_reduction)
5364 (create_phi_for_local_result, create_loads_for_reductions)
5365 (create_stores_for_reduction, build_new_reduction): Handle case that
5366 reduc_stmt is a phi.
5367 (gather_scalar_reductions): Allow double_reduc reductions.
5369 2015-07-28 Richard Biener <rguenther@suse.de>
5371 * fold-const.c (fold_comparison): Remove equality folding
5372 of decl addresses ...
5373 * match.pd: ... here and merge with existing pattern.
5375 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
5377 PR tree-optimization/66828
5378 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
5379 from int64_t to uint64_t.
5381 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
5383 * opts-common.c (read_cmdline_option): List DriverOnly enum values
5384 as valid only in the error message of the driver, not in the
5385 messages of the language compilers.
5387 2015-07-27 Tom de Vries <tom@codesourcery.com>
5389 * tree-parloops.c (gather_scalar_reductions): Simplify function
5392 2015-07-27 Marek Polacek <polacek@redhat.com>
5394 * ipa-devirt.c (types_same_for_odr): Fix typo.
5396 2015-07-27 Jason Merrill <jason@redhat.com>
5399 * dwarf2out.c (gen_inlined_subroutine_die): Check
5400 cgraph_function_possibly_inlined_p.
5402 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5404 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
5405 Place integer variant first.
5406 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5408 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5411 * config/arm/arm-builtins.c (enum arm_builtins):
5412 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
5413 (ARM_BUILTIN_NEON_BASE): Rename macro to....
5414 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
5415 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
5416 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
5418 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5421 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
5422 Add qualifier_lane_index.
5423 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
5424 (arm_getlane_qualifiers): Use qualifier_lane_index.
5425 (arm_lanemac_qualifiers): Rename to...
5426 (arm_mac_n_qualifiers): ...this.
5427 (LANEMAC_QUALIFIERS): Rename to...
5428 (MAC_N_QUALIFIERS): ...this.
5429 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
5430 (arm_setlane_qualifiers): Use qualifier_lane_index.
5431 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
5432 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
5433 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
5434 (arm_expand_neon_builtin): Handle qualifier_lane_index.
5436 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
5437 * config/arm/arm.c (bounds_check): Likewise, improve error message.
5438 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
5439 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
5440 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
5441 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
5442 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
5443 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
5444 qualifiers to TERNOP_IMM.
5445 (vdup_lane): Change qualifiers to GETLANE.
5446 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
5447 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
5448 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
5449 vqdmlsl_n): Change qualifiers to MAC_N.
5451 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
5452 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
5453 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
5454 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
5455 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
5456 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
5457 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
5458 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
5459 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
5460 Remove call to neon_lane_bounds.
5462 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5464 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5465 Place integer variant first.
5467 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
5469 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
5470 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
5471 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
5472 for armv6kz targets.
5473 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
5474 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
5475 (FL_FOR_ARCH6ZK): Remove.
5476 (FL_FOR_ARCH6KZ): New.
5477 (arm_arch6zk): New declaration.
5478 * config/arm/arm-tables.opt: Regenerate.
5479 * config/arm/arm.c (arm_arch6kz): New.
5480 (arm_option_override): Set arm_arch6kz.
5481 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
5482 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
5483 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
5485 2015-07-27 Marek Polacek <polacek@redhat.com>
5489 * doc/invoke.texi: Document -Wtautological-compare.
5491 2015-07-27 Richard Biener <rguenther@suse.de>
5493 * genmatch.c (decision_tree::gen_gimple): Split out large
5494 subtrees into separate functions.
5495 (decision_tree::gen_generic): Likewise.
5497 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
5499 * config/alpha/alpha.c: Use SUBREG_P predicate.
5500 * config/alpha/predicates.md: Ditto.
5502 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5504 * config.host (s390*-*-*): Include driver-native.c only when
5505 building with s390* as host *and* target.
5507 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
5510 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
5511 T bit register modified_between_p check.
5513 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5515 * config/i386/i386.c: Use SUBREG_P predicate.
5516 * config/i386/i386.md: Ditto.
5517 * config/i386/sse.md: Ditto.
5518 * config/i386/predicates.md: Ditto.
5520 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5523 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
5524 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
5526 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5528 * Makefile.in: Remove use of TREEBROWSER.
5529 * config.in: Regenerated.
5530 * configure: Regenerated.
5531 * configure.ac: Remove definition of TREEBROWSER.
5532 * tree-browser.c: Removed.
5533 * tree-browser.def: Removed.
5535 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5537 * graphite-scop-detection.c: Include gimple-pretty-print.h.
5538 (stmt_simple_for_scop_p): Print when a stmt is not handled in
5540 (scopdet_basic_block_info): Print when a loop or bb cannot be
5541 represented in Graphite.
5543 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5546 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
5547 execution guard when min_size is less than size_needed.
5549 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5551 * doc/install.texi: Document supported versions of ISL.
5553 2015-07-25 Jeff Law <law@redhat.com>
5557 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5558 unable to find X NE 0 in the tables, return X as the simplified
5560 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5561 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5563 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5564 after removing the control flow statement and unnecessary edges.
5566 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
5569 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5571 PR rtl-optimization/64164
5572 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5573 * tree-ssa-copyrename.c: Removed.
5574 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5575 -ftree-coalesce-vars.
5576 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5577 * common.opt (ftree-copyrename): Ignore.
5578 (ftree-coalesce-inlined-vars): Likewise.
5579 * doc/invoke.texi: Remove the ignored options above.
5580 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5581 * tree-ssa-coalesce.h: ... here.
5582 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5583 headers required by it.
5584 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5585 across variables when flag_tree_coalesce_vars. Check register
5586 use and promoted modes to allow coalescing. Moved to
5587 tree-ssa-coalesce.c.
5588 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5589 with its member functions to tree-ssa-coalesce.c.
5590 (var_map_base_init): Likewise. Renamed to
5591 compute_samebase_partition_bases.
5592 (partition_view_normal): Drop want_bases parameter.
5593 (partition_view_bitmap): Likewise.
5594 * tree-ssa-live.h: Adjust declarations.
5595 * tree-ssa-coalesce.c: Include explow.h.
5596 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5597 default defs at the entry point.
5598 (dump_part_var_map): New.
5599 (compute_optimized_partition_bases): New, called by...
5600 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5601 of compute_samebase_partition_bases. Adjust.
5602 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5603 * cfgexpand.c (leader_merge): New.
5604 (get_rtl_for_parm_ssa_default_def): New.
5605 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5606 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5607 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5608 redundant MEM attr setting.
5609 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5611 (expand_one_stack_var): ... this. New wrapper to check and
5612 skip already expanded SSA partitions.
5613 (record_alignment_for_reg_var): New, factored out of...
5614 (expand_one_var): ... this.
5615 (expand_one_ssa_partition): New.
5616 (adjust_one_expanded_partition_var): New.
5617 (expand_one_register_var): Check and skip already expanded SSA
5619 (expand_used_vars): Don't create DECLs for anonymous SSA
5620 names. Expand all SSA partitions, then adjust all SSA names.
5621 (pass::execute): Replace the loops that set
5622 SA.partition_to_pseudo from partition leaders and cleared
5623 DECL_RTL for multi-location variables, and that which used to
5624 rename vars and set attrs, with one that clears DECL_RTL and
5625 checks that PARMs and RESULTs default_defs match DECL_RTL.
5626 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5627 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5628 * explow.c (promote_ssa_mode): New.
5629 * explow.h (promote_ssa_mode): Declare.
5630 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5631 * function.c: Include cfgexpand.h.
5632 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5633 (use_register_for_parm_decl): Wrapper for the above to
5634 special-case the result_ptr.
5635 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5636 (split_complex_args): Take assign_parm_data_all argument.
5637 Pass it to rtl_for_parm. Set up rtl and context for split
5639 (assign_parms_augmented_arg_list): Adjust.
5640 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5641 multiple locations. Recognize split complex args.
5642 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5643 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5644 (assign_parm_setup_block): Prefer SSA-assigned location.
5645 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5646 if stack_parm is NULL.
5647 (assign_parm_setup_stack): Prefer SSA-assigned location.
5648 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5649 rtl before testing for pointer bounds. Special-case result_ptr.
5650 (expand_function_start): Maybe reset DECL_RTL of result.
5651 Prefer SSA-assigned location for result and static chain.
5652 Factor out DECL_RESULT and SET_DECL_RTL.
5653 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5654 anonymous SSA names. Use promote_ssa_mode.
5655 (get_temp_reg): Likewise.
5656 (remove_ssa_form): Adjust.
5657 * stor-layout.c (layout_decl): Don't set mem attributes of
5659 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5660 and get its reg_usage for reg invalidation.
5661 (compute_bb_dataflow): Pass it insn.
5662 (emit_notes_in_bb): Likewise.
5664 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5666 * config/i386/i386.c (ix86_va_start): Remove
5667 unneeded !TARGET_64BIT check.
5668 (ix86_gimplify_va_arg): Ditto.
5670 2015-07-24 Tom de Vries <tom@codesourcery.com>
5672 * graphite-sese-to-poly.c (build_poly_scop): Always call
5673 rewrite_commutative_reductions_out_of_ssa.
5675 2015-07-24 Tom de Vries <tom@codesourcery.com>
5677 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
5678 flag_associative_math to FLOAT_TYPE_P. Honour
5679 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
5681 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5684 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
5685 and "%qD" in warning_at instead of "%q+D" in warning.
5687 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5689 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
5690 (ix86_function_abi): Cleanup.
5692 2015-07-24 Michael Darling <darlingm@gmail.com>
5695 * acinclude.m4: Reflects renaming of configure.in to configure.ac
5696 * configure: Likewise
5697 * configure.ac: Likewise
5698 * doc/install.texi: Likewise
5699 * doc/tm.texi: Likewise
5700 * doc/tm.texi.in: Likewise
5702 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5704 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
5705 manually swapping values.
5706 * cse.c (fold_rtx): Likewise.
5707 * lra-eliminations.c (form_sum): Likewise.
5709 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5712 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
5713 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
5714 (*jcc_1, *jcc_2, jump, simple_return_internal)
5715 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
5716 Set length_nobnd attribute instead of length attribute.
5717 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
5718 (length_nobnd): Remove attribute.
5719 (length): Remove length_nobnd processing.
5721 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
5723 * gimplify.c (omp_default_clause): New function. Reorganize flow
5724 for clarity. Broken out of ...
5725 (omp_notice_variable): ... here.
5727 2015-07-24 Gary Funck <gary@intrepid.com>
5730 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
5731 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
5733 2015-07-24 Tom de Vries <tom@codesourcery.com>
5735 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
5736 exit-first loop transform.
5738 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5741 * tree-cfg.c (struct replace_decls_d): New struct.
5742 (replace_block_vars_by_duplicates_1): New function.
5743 (replace_block_vars_by_duplicates): Use it to replace the decls
5744 in the value exprs by duplicates.
5746 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5748 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
5749 -shared, -symbolic, -rdynamic.
5751 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5754 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
5755 -dynamic-linker within %{!static %{!shared, and -rdynamic within
5758 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5761 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
5762 edge summary is available.
5764 2015-07-24 Richard Biener <rguenther@suse.de>
5766 * genmatch.c (struct dt_node): Add statistic fields.
5767 (dt_node::analyze): New method.
5768 (decision_tree::gen_gimple): Call analyze on the root node
5769 and print statistics to stderr.
5770 (decision_tree::gen_generic): Likewise.
5772 2015-07-24 Richard Biener <rguenther@suse.de>
5774 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
5775 against the highest or lowest possible integer ...
5776 * match.pd: ... as patterns here.
5778 2015-07-24 Richard Biener <rguenther@suse.de>
5780 * genmatch.c (struct capture_info): Add same_as field.
5781 (capture_info::capture_info): Initialize same_as.
5782 (capture_info::walk_match): Compute same_as.
5783 (capture_info::walk_result): Compute stuff for the leader.
5784 (capture_info::walk_c_expr): Likewise.
5785 (dt_simplify::gen_1): Only look at leaders when deciding
5786 to force no side-effects or emit side-effects of omitted operands.
5788 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5790 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
5791 reg note to the GPR -> FPR save instructions.
5793 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5795 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
5797 (s390_expand_insv): Don't generate risbg pattern for constant zero
5799 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
5800 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
5803 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5805 * config/s390/s390.c (s390_reorg): Clean up handling of processors
5808 (s390_issue_rate): Likewise.
5809 (s390_sched_reorder): Likewise.
5810 (s390_sched_variable_issue): Likewise.
5811 (s390_loop_unroll_adjust): Likewise.
5812 (s390_option_override): Likewise.
5814 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5816 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
5817 processor capabilities with -march=native.
5818 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
5819 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
5820 (S390_TARGET_BITS_STRING): Macro to simplify specs.
5822 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5824 * config/s390/s390.c (s390_issue_rate): Handle
5825 PROCESSOR_2094_Z9_EC.
5826 (s390_option_override): Likewise.
5827 (s390_adjust_priority): Likewise.
5829 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5831 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
5832 when cross compiling.
5834 2015-07-24 Richard Biener <rguenther@suse.de>
5836 * fold-const.c (maybe_canonicalize_comparison_1): Move
5837 A code CST canonicalization ...
5838 * match.pd: ... to a pattern here.
5840 2015-07-24 Jiong Wang <jiong.wang@arm.com>
5843 2015-07-22 Jiong Wang <jiong.wang@arm.com>
5845 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
5846 (HONOR_REG_ALLOC_ORDER): Define.
5848 2015-07-24 Richard Biener <rguenther@suse.de>
5850 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
5851 * fold-const.c (fold_comparison): Move parameter does not
5852 alias &local simplification ...
5853 * match.pd: ... as a pattern here.
5855 2015-07-24 Richard Biener <rguenther@suse.de>
5857 * gimple-fold.c (replace_stmt_with_simplification): Special-case
5858 valueizing call operands.
5859 * gimple-match-head.c (maybe_push_res_to_seq): Take
5860 number of call arguments from ops array.
5861 (do_valueize): New function.
5862 (gimple_simplify): Return true if valueization changed
5863 any operand even if the result didn't simplify further.
5865 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5868 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
5870 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5873 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
5875 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5877 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
5880 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5882 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
5885 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
5887 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
5888 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
5890 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
5891 ms_va_list_type_node initialization.
5893 2015-07-23 Jeff Law <law@redhat.com>
5896 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5897 unable to find X NE 0 in the tables, return X as the simplified
5899 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5900 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5902 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5903 after removing the control flow statement and unnecessary edges.
5905 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
5907 * tree-pass.h (get_current_pass_name): Removed.
5909 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5911 PR rtl-optimization/64164
5912 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5913 * tree-ssa-copyrename.c: Removed.
5914 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5915 -ftree-coalesce-vars.
5916 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5917 * common.opt (ftree-copyrename): Ignore.
5918 (ftree-coalesce-inlined-vars): Likewise.
5919 * doc/invoke.texi: Remove the ignored options above.
5920 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5921 * tree-ssa-coalesce.h: ... here.
5922 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5923 headers required by it.
5924 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5925 across variables when flag_tree_coalesce_vars. Check register
5926 use and promoted modes to allow coalescing. Moved to
5927 tree-ssa-coalesce.c.
5928 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5929 with its member functions to tree-ssa-coalesce.c.
5930 (var_map_base_init): Likewise. Renamed to
5931 compute_samebase_partition_bases.
5932 (partition_view_normal): Drop want_bases parameter.
5933 (partition_view_bitmap): Likewise.
5934 * tree-ssa-live.h: Adjust declarations.
5935 * tree-ssa-coalesce.c: Include explow.h.
5936 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5937 default defs at the entry point.
5938 (dump_part_var_map): New.
5939 (compute_optimized_partition_bases): New, called by...
5940 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5941 of compute_samebase_partition_bases. Adjust.
5942 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5943 * cfgexpand.c (leader_merge): New.
5944 (get_rtl_for_parm_ssa_default_def): New.
5945 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5946 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5947 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5948 redundant MEM attr setting.
5949 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5951 (expand_one_stack_var): ... this. New wrapper to check and
5952 skip already expanded SSA partitions.
5953 (record_alignment_for_reg_var): New, factored out of...
5954 (expand_one_var): ... this.
5955 (expand_one_ssa_partition): New.
5956 (adjust_one_expanded_partition_var): New.
5957 (expand_one_register_var): Check and skip already expanded SSA
5959 (expand_used_vars): Don't create DECLs for anonymous SSA
5960 names. Expand all SSA partitions, then adjust all SSA names.
5961 (pass::execute): Replace the loops that set
5962 SA.partition_to_pseudo from partition leaders and cleared
5963 DECL_RTL for multi-location variables, and that which used to
5964 rename vars and set attrs, with one that clears DECL_RTL and
5965 checks that PARMs and RESULTs default_defs match DECL_RTL.
5966 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5967 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5968 * explow.c (promote_ssa_mode): New.
5969 * explow.h (promote_ssa_mode): Declare.
5970 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5971 * function.c: Include cfgexpand.h.
5972 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5973 (use_register_for_parm_decl): Wrapper for the above to
5974 special-case the result_ptr.
5975 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5976 (split_complex_args): Take assign_parm_data_all argument.
5977 Pass it to rtl_for_parm. Set up rtl and context for split
5979 (assign_parms_augmented_arg_list): Adjust.
5980 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5981 multiple locations. Recognize split complex args.
5982 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5983 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5984 (assign_parm_setup_block): Prefer SSA-assigned location.
5985 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5986 if stack_parm is NULL.
5987 (assign_parm_setup_stack): Prefer SSA-assigned location.
5988 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5989 rtl before testing for pointer bounds. Special-case result_ptr.
5990 (expand_function_start): Maybe reset DECL_RTL of result.
5991 Prefer SSA-assigned location for result and static chain.
5992 Factor out DECL_RESULT and SET_DECL_RTL.
5993 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5994 anonymous SSA names. Use promote_ssa_mode.
5995 (get_temp_reg): Likewise.
5996 (remove_ssa_form): Adjust.
5997 * stor-layout.c (layout_decl): Don't set mem attributes of
5999 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6000 and get its reg_usage for reg invalidation.
6001 (compute_bb_dataflow): Pass it insn.
6002 (emit_notes_in_bb): Likewise.
6004 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
6007 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
6009 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
6010 (rs6000_emit_2insn_and): Handle dot forms.
6011 * config/rs6000/rs6000.md (and<mode>3): Adjust.
6012 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
6013 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
6015 2015-07-23 Richard Biener <rguenther@suse.de>
6017 * generic-match-head.c: Include cgraph.h.
6018 * gimple-match-head.c: Likewise.
6019 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
6021 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
6022 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
6025 2015-07-23 Richard Biener <rguenther@suse.de>
6027 * gimple-fold.c (fold_gimple_cond): Do not require folding
6028 results to pass valid_gimple_rhs_p.
6029 * tree-cfg.h (fold_cond_expr_cond): Remove.
6030 * tree-cfg.c (fold_cond_expr_cond): Likewise.
6031 (make_edges): Do not call it.
6032 * tree-inline.c (tree_function_versioning): Likewise.
6034 2015-07-23 Tom de Vries <tom@codesourcery.com>
6036 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
6037 vect_force_simple_reduction.
6038 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
6039 (vect_is_simple_reduction_1): Add and handle
6040 need_wrapping_integral_overflow parameter.
6041 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
6042 need_wrapping_integral_overflow parameter.
6043 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
6044 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
6047 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
6049 PR tree-optimization/66926,66951
6050 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
6051 INNER_LOOP and fix up condition for renaming virtual operands.
6053 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6055 * combine.c (try_combine): Use std::swap instead of manually
6058 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
6060 * config/mips/i6400.md: New file.
6061 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
6062 (mips64r6): Likewise.
6064 * config/mips/mips-tables.opt: Regenerate.
6065 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
6066 (mips_issue_rate): Add support for i6400.
6067 (mips_multipass_dfa_lookahead): Likewise.
6068 * config/mips/mips.h (TUNE_I6400): Define.
6069 * config/mips/mips.md: Include i6400.md.
6070 (processor): Add i6400.
6071 * doc/invoke.texi (-march=@var{arch}): Add i6400.
6073 2015-07-23 Richard Biener <rguenther@suse.de>
6076 * match.pd: Guard widen and sign-change comparison simplification
6079 2015-07-23 Richard Biener <rguenther@suse.de>
6081 PR tree-optimization/66945
6082 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
6083 ::before_dom_children): Force the propagators idea of
6084 non-executable edges to materialize, not what the folder
6087 2015-07-23 Richard Biener <rguenther@suse.de>
6089 * gimple.h (gimple_cond_make_false): Use 0 != 0.
6090 (gimple_cond_make_true): Use 1 != 0.
6092 2015-07-22 DJ Delorie <dj@redhat.com>
6094 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
6097 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
6098 (ashrhi3): Likewise.
6099 (lshrhi3): Likewise.
6100 (movhi): Take advantage of zero-extend to load small constants.
6102 (and<mode>3): Likewise.
6103 (zero_extendqihi2): Likewise.
6104 (zero_extendqisi2): New.
6105 * config/msp430/constraints.md (N,O): New.
6106 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
6108 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
6111 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
6112 to enum feature_priority and feature_list.
6113 (fold_builtin_cpu): Add F_AES to enum processor_features
6114 and isa_names_table.
6116 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
6119 * config/i386/linux-common.h (MPX_SPEC): Use linker option
6120 for 64bit target only.
6122 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
6124 * config/nvptx/nvptx.c: Expand some comments.
6126 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
6128 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
6129 (cortex_a53_advsimd): ...This.
6131 2015-07-22 Richard Biener <rguenther@suse.de>
6133 * genmatch.c (expr::gen_transform): Clarify error message
6134 and display location.
6136 2015-07-22 Richard Biener <rguenther@suse.de>
6138 * genmatch.c (struct operand): Add location member.
6139 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
6141 (struct simplify): Remove match_location and result_location
6143 (elsehwere): Adjust.
6145 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
6147 * config/mips/m5100.md: New file.
6148 * config/mips/mips-cpus.def (m5100, m5101): Define.
6149 * config/mips/mips-tables.opt: Regenerate.
6150 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
6151 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
6152 -march=m5101 to -mips32r5.
6153 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
6154 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
6156 * config/mips/mips.md: Include m5100.md.
6157 (processor): Add m5100.
6158 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
6160 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
6162 * config/mips/mips-cpus.def (interaptiv): Define.
6163 * config/mips/mips-tables.opt: Regenerate.
6164 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
6166 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
6167 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
6169 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6172 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6173 (HONOR_REG_ALLOC_ORDER): Define.
6175 2015-07-22 Richard Biener <rguenther@suse.de>
6177 PR tree-optimization/66952
6178 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
6179 blocks we end up executing unconditionally reset all SSA
6180 info such as range and alignment.
6181 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
6182 * tree-ssanames.c (reset_flow_sensitive_info): New function.
6184 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6186 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
6189 2015-07-22 Richard Biener <rguenther@suse.de>
6191 * genmatch.c (parser::parse_result): Properly handle
6192 match with result operands and conditions.
6194 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6197 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6198 Add qualifier_struct_load_store_lane_index.
6199 (aarch64_types_loadstruct_lane_qualifiers): Use
6200 qualifier_struct_load_store_lane_index for lane index argument for
6202 (aarch64_types_storestruct_lane_qualifiers): Ditto.
6203 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6204 (aarch64_simd_expand_args): Add new argument describing mode of
6205 builtin. Check lane bounds for arguments with
6206 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6207 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
6208 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6209 (aarch64_simd_expand_builtin): Handle arguments with
6210 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
6211 aarch64_simd_expand_args.
6212 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
6213 vst[234]_lane with BUILTIN_VALLDIF.
6214 * config/aarch64/aarch64-simd.md:
6215 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
6216 endianness reversal on lane index.
6217 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
6218 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
6219 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
6220 (vec_store_lanesci_lane<mode>): Ditto.
6221 (vec_store_lanesxi_lane<mode>): Ditto.
6222 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
6223 reversal of lane index.
6224 (aarch64_ld3_lane<mode>): Ditto.
6225 (aarch64_ld4_lane<mode>): Ditto.
6226 (aarch64_st2_lane<mode>): Ditto.
6227 (aarch64_st3_lane<mode>): Ditto.
6228 (aarch64_st4_lane<mode>): Ditto.
6229 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
6230 to qmode. Add new mode parameter. Update uses.
6231 (__LD3_LANE_FUNC): Ditto.
6232 (__LD4_LANE_FUNC): Ditto.
6233 (__ST2_LANE_FUNC): Ditto.
6234 (__ST3_LANE_FUNC): Ditto.
6235 (__ST4_LANE_FUNC): Ditto.
6237 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
6239 * doc/invoke.texi (Language Independent Options): Rename node to
6240 Diagnostic Message Formatting Options.
6242 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
6245 * lra-remat.c (operand_to_remat): Prevent using insns with input
6246 subregs processed separately by IRA.
6248 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
6250 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
6252 (single_imm_use): Check for iterator node.
6253 (num_imm_uses): Likewise.
6254 * tree-ssa-operands.c (has_zero_uses_1): Delete.
6255 (single_imm_use_1): Check for iterator node.
6257 2015-07-21 Mike Frysinger <vapier@gentoo.org>
6258 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6260 * configure.ac: Add check for new options in isl-0.15.
6261 * config.in, configure: Rebuilt.
6262 * graphite-blocking.c: Include <isl/constraint.h>
6263 * graphite-interchange.c, graphite-poly.c: Likewise.
6264 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
6265 * graphite.c: Likewise.
6266 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
6268 * graphite-dependences.c: Include <isl/constraint.h>.
6269 (max_number_of_out_dimensions): Returns isl_stat.
6270 (extend_schedule_1): Likewise
6271 (extend_schedule): Corresponding changes.
6272 * graphite-optimize-isl.c: Include <isl/constraint.h> and
6274 (getSingleMap): Change return type of isl_stat.
6275 (optimize_isl): Conditionally use
6276 isl_options_set_schedule_serialize_sccs.
6277 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
6278 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
6280 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
6283 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
6284 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
6286 2015-07-21 Richard Biener <rguenther@suse.de>
6288 PR tree-optimization/66948
6289 * genmatch.c (capture_info::walk_match): Also recurse to
6290 captures. Properly compute expr state from captures of
6292 * match.pd: Add single-use guards to
6293 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
6295 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6297 * config/nvptx/mkoffload.c (process): Add static destructor call.
6299 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6302 * match.pd (A - B -> A + (-B)): Don't allow folding
6303 when type if a fixed-point type.
6305 2015-07-20 DJ Delorie <dj@redhat.com>
6307 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
6308 (iorqi3_real): Likewise for set1.
6310 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
6312 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
6315 2015-07-20 Aditya Kumar <hiraditya@msn.com>
6317 * graphite-isl-ast-to-gimple.c:
6318 Refactor so that each function can access 'region'. This will help
6319 maintain a parameter rename_map within a region.
6321 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6323 * config/rs6000/rs6000.md (*lt0_disi): New.
6325 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6328 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
6329 "available letters" comment.
6330 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
6331 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
6332 and_2rld_operand): Delete.
6333 (and_operand): Adjust.
6334 (rotate_mask_operator): New.
6335 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
6336 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
6337 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
6338 extract_ME): Delete.
6339 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6340 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
6341 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
6342 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6343 rs6000_emit_2insn_and): New.
6344 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
6345 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
6346 includes_rldic_lshift_p, includes_rldicr_lshift_p,
6347 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
6348 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6349 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
6350 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
6351 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6352 rs6000_emit_2insn_and): New.
6353 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
6354 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
6356 <NOT>: Don't fall through to next case.
6357 <AND>: Handle the various rotate-and-mask cases directly.
6358 <IOR>: Always cost as one insn.
6359 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
6360 (and<mode>3): Adjust expander for the new patterns.
6361 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
6362 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
6363 (*and<mode>3_imm_dot_shifted): New.
6364 (*and<mode>3_mask): Delete, rewrite as ...
6365 (and<mode>3_mask): ... New.
6366 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
6367 (andsi3_internal0_nomc): Delete.
6368 (*andsi3_internal6): Delete.
6369 (*and<mode>3_2insn): New.
6370 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
6371 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
6372 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
6373 *insvdi_internal3): Delete.
6374 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
6375 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
6376 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
6377 *ior<mode>_mask): New.
6378 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
6379 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6380 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6381 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6383 (ashr<mode>3): Delete expander.
6384 (*ashr<mode>3): Rename to ...
6385 (ashr<mode>3): ... This.
6386 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
6387 (*rotldi3_internal4, *rotldi3_internal5 and split,
6388 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
6389 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
6390 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
6391 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
6392 (splitter for loading a mask): Adjust.
6393 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
6395 2015-07-20 Marek Polacek <polacek@redhat.com>
6397 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
6398 output_add_clobbers, output_added_clobbers_hard_reg_p,
6399 gen_rtx_scratch): Remove declarations.
6401 2015-07-20 Marek Polacek <polacek@redhat.com>
6404 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
6406 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6408 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
6409 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
6411 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6413 * combine.c (combine_simplify_rtx): Move simplification step
6414 before various transformations/substitutions.
6416 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
6418 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
6419 (struct int_traits): Likewise.
6421 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6423 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
6424 function to vmsdbgout_function_decl.
6426 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6429 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
6430 from misaligned positions.
6431 (ix86_expand_pinsr): Reject insertions to misaligned positions.
6433 2015-07-18 Sebastian Pop <s.pop@samsung.com>
6437 * Makefile.in: Removed omega.o.
6438 * common.opt: Document flag fcheck-data-deps as deprecated.
6439 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
6440 its associated params: omega-max-vars, omega-max-geqs,
6441 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
6442 omega-max-keys, omega-eliminate-redundant-constraints.
6443 * doc/loop.texi: Remove all the section on Omega.
6444 * graphite-blocking.c: Include missing params.h: it used to be
6445 included through tree-data-ref.h and omega.h.
6446 * graphite-isl-ast-to-gimple.c: Same.
6447 * graphite-optimize-isl.c: Same.
6448 * graphite-sese-to-poly.c: Same.
6452 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
6453 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
6454 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
6455 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
6456 * passes.def: Remove pass_check_data_deps.
6457 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
6458 (dump_conflict_function): Same.
6459 (dump_subscript): Same.
6460 (print_direction_vector): Same.
6461 (print_dir_vectors): Same.
6462 (print_lambda_vector): Same.
6463 (print_dist_vectors): Same.
6464 (dump_data_dependence_relation): Same.
6465 (dump_data_dependence_relations): Same.
6466 (dump_dist_dir_vectors): Same.
6468 (init_omega_eq_with_af): Removed.
6469 (omega_extract_distance_vectors): Removed.
6470 (omega_setup_subscript): Removed.
6471 (init_omega_for_ddr_1): Removed.
6472 (init_omega_for_ddr): Removed.
6473 (ddr_consistent_p): Removed.
6474 (compute_affine_dependence): Do not use omega to check data
6476 (compute_data_dependences_for_bb): Removed.
6477 (analyze_all_data_dependences): Removed.
6478 (tree_check_data_deps): Removed.
6479 * tree-data-ref.h: Do not include omega.h.
6480 (compute_data_dependences_for_bb): Removed.
6481 (tree_check_data_deps): Removed.
6482 * tree-ssa-loop.c (pass_check_data_deps): Removed.
6483 (make_pass_check_data_deps): Removed.
6484 * tree-ssa-phiopt.c: Include params.h.
6485 * tree-vect-data-refs.c: Same.
6486 * tree-vect-slp.c: Same.
6488 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6490 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
6491 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
6492 (mem->fpreg splitters): Ditto.
6493 (general_operand->nonimmediate_operand splitter): Use explicit modes.
6494 Disable DFmode for TARGET_64BIT.
6496 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
6499 * config/i386/i386.c (ix86_expand_prologue): Replicate static
6502 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6504 * config/nvptx/mkoffload.c (process): Constify host data.
6505 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6507 (generate_host_descr_file): Likewise.
6509 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
6510 Sebastian Pop <s.pop@samsung.com>
6513 * graphite-dependences.c (add_pdr_constraints): Renamed
6514 pdr->extent to pdr->subscript_sizes.
6515 * graphite-interchange.c (build_linearized_memory_access): Add
6516 back all gcc_assert's that the "isl_int to isl_val conversion"
6517 patch has removed. Refactored.
6518 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
6519 * graphite-poly.c (new_poly_dr): Same.
6520 (free_poly_dr): Same.
6521 * graphite-poly.h (struct poly_dr): Same.
6522 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
6523 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
6524 * graphite-scop-detection.h: Fix space.
6525 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
6526 back all gcc_assert's removed by a previous patch.
6527 (wrap): Remove the_isl_ctx global variable that the same patch has
6529 (build_loop_iteration_domains): Same.
6530 (add_param_constraints): Same.
6531 (pdr_add_data_dimensions): Same. Refactored.
6532 (build_poly_dr): Renamed extent to subscript_sizes.
6534 2015-07-17 Marek Polacek <polacek@redhat.com>
6536 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
6537 * match.pd: ... here.
6539 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6541 * config/nvptx/mkoffload.c (process): Constify target data.
6542 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6543 Constify target data.
6544 (generate_target_offloadend_file): Likewise.
6546 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
6548 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
6549 to allow renaming of PHI arguments on edges incoming from outer
6550 loop header, add corresponding check before start PHI iterator.
6551 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
6552 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
6553 with true force_vectorize. Set-up dominator for outer loop too.
6554 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
6555 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
6556 was marked with force_vectorize and has restricted cfg.
6557 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
6559 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
6560 do peeling for outer loops.
6562 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
6563 Matthias Klose <doko@ubuntu.com>
6565 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
6566 build-sysroot, sysroot from the `Miscenalleous configure options' to
6567 the `Directories' section and strip trailing `/' from with_sysroot.
6568 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
6569 * configure: Regenerated.
6571 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6574 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
6575 (TARGET_HARD_DF_REGS): Ditto.
6576 (TARGET_HARD_XF_REGS): Ditto.
6577 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
6578 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
6579 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
6580 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
6581 (*movsf_internal): Add alternatives 16 and 17. Enable
6582 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
6584 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6586 PR rtl-optimization/66891
6587 * calls.c (expand_call): Wrap precompute_register_parameters with
6588 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
6590 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6592 * config/nvptx/mkoffload.c (process): Constify mapping variables.
6593 Define target data struct and initialize it.
6595 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
6597 PR rtl-optimization/66626
6598 * ira.h (emit-rtl.h): Include.
6599 (non_spilled_static_chain_regno_p): New.
6600 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
6601 unless it is non spilled static chain pseudo.
6602 (assign_hard_rego): Spill memory profitable allocno unless it is
6603 non spilled static chain pseudo.
6604 (allocno_spill_priority_compare): Put non spilled static chain
6605 pseudo at the end of sorted array.
6606 (improve_allocation): Do nothing if we have static chain and
6608 (allocno__priority_compare_func): Put non spilled static chain
6609 pseudo at the beginning of sorted array.
6610 (move_spill_restore): Ignore non spilled static chain pseudo.
6611 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
6612 to non spilled static chain pseudo.
6613 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
6614 pseudo at the beginning of sorted array.
6615 (spill_for): Spill non spilled static chain pseudo last.
6616 * lra-constraints.c (lra_constraints): Remove static chain pseudo
6617 check for equivalence.
6619 2015-07-16 Martin Liska <mliska@suse.cz>
6622 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
6623 dst_ctx if it does not exist.
6625 2015-07-16 Martin Liska <mliska@suse.cz>
6627 * hash-set.h (remove): New function.
6628 (iterator): New iteration class for hash_set.
6630 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6632 * genattrtab.c (make_canonical): Add a file_location parameter.
6633 Use fatal_at rather than fatal.
6634 (get_attr_value): Likewise. Update call to make_canonical.
6635 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
6636 (make_internal_attr): Update calls accordingly.
6638 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6640 * read-md.h (message_with_line, error_with_line): Delete.
6641 * read-md.c (message_with_line, error_with_line): Delete.
6642 * gensupport.h: Include read-md.h.
6643 (md_rtx_info): New structure.
6644 (read_md_rtx): Use it. Return a bool success value.
6645 * gensupport.c (read_md_rtx): Likewise.
6646 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
6647 (main): Update after interface changes.
6648 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
6649 (main): Update after interface changes.
6650 * genattrtab.c (insn_code_number): Delete.
6651 (optimize_attrs): Add a max_insn_code parameter and use it instead
6652 of insn_code_number.
6653 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
6654 Use *_at rather than *_with_line functions.
6655 (gen_insn): Likewise.
6656 (gen_delay): Likewise.
6657 (gen_insn_reserv): Likewise.
6658 (gen_bypass): Take an md_rtx_info rather than an rtx.
6659 (main): Update after interface changes. Use a local max_insn_code
6660 variable instead of insn_code_number.
6661 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
6662 an rtx. Use fatal_at rather than fatal.
6663 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
6664 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
6665 (gen_absence_set, gen_final_absence_set, gen_automaton)
6666 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
6667 (main): Update after interface changes.
6668 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
6670 (main): Update after interface changes.
6671 * genconditions.c (main): Use new read_md_rtx interface.
6672 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
6673 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
6674 (main): Update after interface changes.
6675 * genemit.c (insn_code_number, insn_index_number): Delete.
6676 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6677 Use fatal_at rather than fatal.
6678 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
6680 (gen_split): Likewise.
6681 (main): Update after interface changes.
6682 * genextract.c (line_no): Delete.
6683 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6684 Update call to walk_rtx.
6685 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
6686 rather than message_with_line.
6687 (walk_rtx): Add an md_rtx_info argument. Update call to
6688 VEC_safe_set_locstr.
6689 (main): Update after interface changes.
6690 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
6691 and lineno. Use error_at rather than separate message_with_line
6692 calls and have_error assignments.
6693 (main): Update after interface changes.
6694 * genmddump.c (main): Use new read_md_rtx interface.
6695 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
6696 (main): Update after interface changes.
6697 * genoutput.c (next_code_number): Delete.
6698 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6699 (gen_peephole, gen_expand, gen_split): Likewise.
6700 (note_constraint): Likewise. Use *_at rather than *_with_line
6702 (main): Update after interface changes.
6703 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
6705 (main): Update after interface changes.
6706 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
6707 than an rtx and lineno.
6708 (process_define_constraint): Likewise.
6709 (process_define_register_constraint): Likewise.
6710 (main): Update after interface changes.
6711 * genrecog.c (next_insn_code, pattern_lineno): Delete.
6712 (validate_pattern): Replace top-level rtx with an md_rtx_info.
6713 Use *_at rather than *_with_line functions.
6714 (match_pattern_2): Likewise.
6715 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
6716 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
6717 Use *_at rather than *_with_line functions.
6718 * gentarget-def.c (add_insn): New function.
6719 (main): Use it. Use new read_md_rtx interface.
6721 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6723 * gensupport.h (compute_test_codes): Take a file_location rather
6725 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
6726 rather than *_with_line functions.
6727 (process_define_predicate): Update call to compute_test_codes.
6728 * genpreds.c (validate_exp): Take a file_location rather than a
6729 line number. Use *_at functions rather than *_with_line functions.
6730 (process_define_predicate): Update call to validate_exp.
6731 (constraint_data): Replace lineno field with a file_location.
6732 (add_constraint): Take a file_location rather than a line number.
6733 Use *_at functions rather than *_with_line functions. Fix error
6734 message for address constraints. Update after changes to
6735 validate_exp, constraint_data and compute_test_codes.
6736 (process_define_constraint): Update accordingly.
6737 (process_define_register_constraint): Likewise.
6739 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6741 * genoutput.c (data): Use a file_location to record the source
6744 (idata, idata_end): Remove initialization.
6745 (constraint_data): Replace lineno with a file_location.
6746 (output_insn_data): Update after changes to data.
6747 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
6748 (scan_operands): Likewise, using *_at rather than *_with_line
6750 (process_template): Likewise.
6751 (validate_insn_alternatives): Likewise.
6752 (validate_insn_operands): Likewise.
6753 (validate_optab_operands): Likewise.
6754 (init_insn_for_nothing): Initialize idata and idata_end.
6755 (note_constraint): Update after changes to constraint_data,
6756 using at rather than with_line functions.
6757 (mdep_constraint_len): Take a file_location rather than a
6758 line number. Use at rather than with_line functions.
6760 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6762 * read-md.h (fatal_at): Declare.
6763 * read-md.c (fatal_at): New function.
6764 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
6765 to record the source position.
6766 (check_attr_test): Take a file_location instead of a line number.
6767 Use fatal_at instead of fatal.
6768 (check_attr_value): Update after above changes, using "at"
6769 rather than "with_line" reporting functions.
6770 (convert_set_attr_alternative): Likewise.
6771 (gen_attr): Likewise.
6772 (check_defs): Likewise. Don't assign to read_md_filename.
6773 (gen_insn): Update initialization after above changes.
6774 (gen_delay): Likewise.
6775 (write_insn_cases): Print the filename for a define_peephole.
6776 (gen_insn_reserv): Take a line number as argument and update
6777 the call to check_attr_test.
6778 (main): Pass a line number to gen_insn_reserv.
6780 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6782 * read-md.h (file_location): New structure.
6783 (directive_handler_t): Take a file_location rather than a line number.
6784 (message_at, error_at): Declare.
6785 (read_skip_construct): Delete.
6786 * read-md.c (message_with_line_1): Replace with...
6787 (message_at_1): ...this new function.
6788 (message_at, error_at): New functions.
6789 (message_with_line, error_with_line): Update to use message_at_1.
6790 (handle_enum): Take a file_location rather than a line number
6791 and use error_at for error reporting.
6792 (handle_include): Likewise.
6793 (read_skip_construct): Likewise. Make static.
6794 (handle_file): Update after above changes. Pass a file_location
6795 rather than a line number to handle_directive.
6796 * gensupport.c (queue_elem): Replace separate filename and lineno
6797 with a file_location.
6798 (queue_pattern): Replace filename and lineno arguments with a
6799 file_location. Update after change to queue_elem.
6800 (process_define_predicate): Replace lineno argument with a
6801 file_location and use error_at for error reporting. Update
6802 after above changes.
6803 (process_rtx): Likewise.
6804 (subst_pattern_match): Likewise.
6805 (get_alternatives_number): Likewise.
6806 (alter_predicate_for_insn): Likewise.
6807 (rtx_handle_directive): Likewise.
6808 (is_predicable): Update after above changes, using error_at rather
6809 than error_with_line.
6810 (has_subst_attribute): Likewise.
6811 (identify_predicable_attribute): Likewise.
6812 (alter_attrs_for_subst_insn): Likewise.
6813 (process_one_cond_exec): Likewise.
6814 (process_substs_on_one_elem): Likewise.
6815 (process_define_subst): Likewise.
6816 (check_define_attr_duplicates): Likewise.
6817 (read_md_rtx): Update after change to queue_elem.
6819 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6821 * genoutput.c (next_index_number): Delete.
6822 (data): Remove index_number.
6823 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
6824 (main): Remove manipulation of next_index_number.
6826 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6828 * genattrtab.c (check_attr_value): Remove handling of null attrs.
6829 (make_canonical): Likewise.
6831 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
6833 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
6834 instead of adjust_address_nv.
6835 (restore_stack_nonlocal): Likewise.
6836 (nonlocal_goto): Likewise.
6838 2015-07-16 Tom de Vries <tom@codesourcery.com>
6840 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
6841 not have a corresponding loop header phi.
6843 2015-07-16 Tom de Vries <tom@codesourcery.com>
6845 * tree-parloops.c (create_loads_for_reductions): Handle case that
6846 reduction is unused.
6848 2015-07-16 Richard Biener <rguenther@suse.de>
6850 PR tree-optimization/66894
6851 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
6852 about deriving NE_EXPR from truncated values.
6854 2015-07-16 Martin Liska <mliska@suse.cz>
6857 (object_allocator): Add new class.
6858 (pool_allocator::initialize): Use the underlying class.
6859 (pool_allocator::allocate): Likewise.
6860 (pool_allocator::remove): Likewise.
6861 (operator new): A new generic allocator.
6862 * asan.c (struct asan_mem_ref): Remove unused members.
6863 (asan_mem_ref_new): Replace new operator with
6864 object_allocator::allocate.
6865 (free_mem_ref_resources): Change deallocation.
6866 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
6867 with object_allocator.
6868 * config/sh/sh.c (add_constant): Replace new operator with
6869 object_allocator::allocate.
6870 (sh_reorg): Change call to a release method.
6871 * cselib.c (struct elt_list): Remove unused members.
6872 (new_elt_list): Replace new operator with
6873 object_allocator::allocate.
6874 (new_elt_loc_list): Likewise.
6875 (new_cselib_val): Likewise.
6876 (unchain_one_elt_list): Change delete operator with remove method.
6877 (unchain_one_elt_loc_list): Likewise.
6878 (unchain_one_value): Likewise.
6879 (cselib_finish): Release newly added static allocators.
6880 * cselib.h (struct cselib_val): Remove unused members.
6881 (struct elt_loc_list): Likewise.
6882 * df-problems.c (df_chain_alloc): Replace pool_allocator with
6884 * df-scan.c (struct df_scan_problem_data): Likewise.
6885 (df_scan_alloc): Likewise.
6886 * df.h (struct dataflow): Likewise.
6887 * dse.c (struct read_info_type): Likewise.
6888 (struct insn_info_type): Likewise.
6889 (struct dse_bb_info_type): Likewise.
6890 (struct group_info): Likewise.
6891 (struct deferred_change): Likewise.
6892 (get_group_info): Likewise.
6893 (delete_dead_store_insn): Likewise.
6894 (free_read_records): Likewise.
6895 (replace_read): Likewise.
6896 (check_mem_read_rtx): Likewise.
6897 (scan_insn): Likewise.
6898 (dse_step1): Likewise.
6899 (dse_step7): Likewise.
6900 * et-forest.c (struct et_occ): Remove unused members.
6901 (et_new_occ): Use allocate instead of new operator.
6902 (et_new_tree): Likewise.
6903 (et_free_tree): Call release method explicitly.
6904 (et_free_tree_force): Likewise.
6905 (et_free_pools): Likewise.
6906 (et_split): Use remove instead of delete operator.
6907 * et-forest.h (struct et_node): Remove unused members.
6908 * ipa-cp.c: Change pool_allocator to object_allocator.
6909 * ipa-inline-analysis.c: Likewise.
6910 * ipa-profile.c: Likewise.
6911 * ipa-prop.c: Likewise.
6912 * ipa-prop.h: Likewise.
6913 * ira-build.c (initiate_cost_vectors): Cast return value.
6914 (ira_allocate_cost_vector): Likewise.
6915 * ira-color.c (struct update_cost_record): Remove unused members.
6916 * lra-int.h (struct lra_live_range): Likewise.
6917 (struct lra_copy): Likewise.
6918 (struct lra_insn_reg): Likewise.
6919 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
6920 * lra.c (new_insn_reg): Replace new operator with allocate method.
6921 (free_insn_regs): Same for operator delete.
6922 (finish_insn_regs): Release new static allocator.
6923 (finish_insn_recog_data): Likewise.
6924 (lra_free_copies): Replace delete operator with remove method.
6925 (lra_create_copy): Replace operator new with allocate method.
6926 (invalidate_insn_data_regno_info): Same for remove method.
6927 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
6928 (free_debug_insn_changes): Replace delete operator with remove method.
6929 (replace_oldest_value_reg): Replace operator new with allocate method.
6930 (pass_cprop_hardreg::execute): Release new static variable.
6931 * sched-deps.c (sched_deps_init): Change pool_allocator to
6933 * sel-sched-ir.c: Likewise.
6934 * sel-sched-ir.h: Likewise.
6935 * stmt.c (expand_case): Likewise.
6936 (expand_sjlj_dispatch_table): Likewise.
6937 * tree-sra.c (struct access): Remove unused members.
6938 (struct assign_link): Likewise.
6939 (sra_deinitialize): Release newly added static pools.
6940 (create_access_1):Replace operator new with allocate method.
6941 (build_accesses_from_assign): Likewise.
6942 (create_artificial_child_access): Likewise.
6943 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
6944 pool_allocator to object_allocator.
6945 * tree-ssa-pre.c: Likewise.
6946 * tree-ssa-reassoc.c: Likewise.
6947 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6948 * tree-ssa-strlen.c: Likewise.
6949 * tree-ssa-structalias.c: Likewise.
6950 * var-tracking.c (onepart_pool_allocate): New function.
6951 (unshare_variable): Use the newly added function.
6952 (variable_merge_over_cur): Likewise.
6953 (variable_from_dropped): Likewise.
6954 (variable_was_changed): Likewise.
6955 (set_slot_part): Likewise.
6956 (emit_notes_for_differences_1): Likewise.
6957 (vt_finalize): Release newly added static pools.
6959 2015-07-16 Martin Jambor <mjambor@suse.cz>
6961 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
6962 all uses. Fix two typos in its general comment.
6963 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
6965 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
6967 * config/i386/linux-common.h (LINK_MPX): New.
6968 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
6969 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
6970 indicating '-z bndplt' support by linker.
6971 * configure: Regenerate.
6972 * config.in: Regenerate.
6974 2015-07-16 Richard Biener <rguenther@suse.de>
6976 * fold-const.c (fold_widened_comparison): Remove.
6977 (fold_sign_changed_comparison): Likewise.
6978 (fold_comparison): Move widened and sign-changed comparison
6980 * match.pd: ... to patterns here.
6981 * generic-match-head.c: Include target.h.
6982 * gimple-match-head.c: Likewise.
6984 2015-07-16 Richard Biener <rguenther@suse.de>
6986 * tree-ssa-dom.c (dom_valueize): New function.
6987 (record_temporary_equivalences): Also record equivalences
6988 for dominating stmts that have uses of equivalences we are
6991 2015-07-16 Bin Cheng <bin.cheng@arm.com>
6993 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
6994 add_autoinc_candidates.
6995 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
6996 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
6997 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
6998 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
7000 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
7001 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
7002 Remove parameter struct iv*. Call add_autoinc_candidates here.
7003 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
7004 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
7006 (find_iv_candidates): Call new functions.
7008 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
7010 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
7011 uninitialized-variable warning.
7013 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
7016 * config/sh/sh.md (movdi): Split simple reg move to two movsi
7017 when the destination is R0.
7019 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
7022 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
7023 * config/i386/i386.c (ix86_expand_pextr): New function.
7024 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
7025 for non-lowpart subregs.
7026 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
7027 (insv<mode>): Use SWI248 mode iterator.
7028 (insv<mode>_1): Ditto.
7030 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7031 Sebastian Pop <s.pop@samsung.com>
7033 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
7034 iterator to use_stmt.
7036 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7037 Sebastian Pop <s.pop@samsung.com>
7039 * graphite-scop-detection.c (build_scops_1): Discard scops for
7042 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7043 Sebastian Pop <s.pop@samsung.com>
7045 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
7046 case of a return statement in scop.
7048 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7049 Sebastian Pop <s.pop@samsung.com>
7051 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
7052 INTEGER_TYPE parameters.
7053 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
7054 VECTOR_CST in scan_tree_for_params.
7055 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
7057 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7059 * gimple-pretty-print.h: Don't include pretty-print.h.
7060 * tree-streamer.h: Don't include lto-streamer.h.
7061 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
7062 * gimple-streamer-in.c: Remove redundant includes.
7063 * gimple-streamer-out.c: Likewise.
7064 * ipa-devirt.c: Likewise.
7065 * ipa-icf.c: Likewise.
7066 * ipa-inline-analysis.c: Likewise.
7067 * ipa-polymorphic-call.c: Likewise.
7068 * ipa-profile.c: Likewise.
7069 * ipa-prop.c: Likewise.
7070 * ipa-pure-const.c: Likewise.
7071 * lto-cgraph.c: Likewise.
7072 * lto-streamer-in.c: Likewise.
7073 * lto-streamer-out.c: Likewise.
7074 * lto-streamer.c: Likewise.
7075 * tree-streamer-in.c: Likewise.
7076 * tree-streamer-out.c: Likewise.
7077 * tree-streamer.c: Likewise.
7079 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7081 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
7083 * opts.c: Remove multiline #include comment.
7085 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
7087 * config/nvptx/mkoffload.c (process): Add C++ protection to
7090 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7093 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
7094 null before IEEE 128-bit floating point support patch.
7096 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7098 * simplify-rtx.c (simplify_ternary_operation): Add simplification
7099 for (!c) != {0,...,0} ? a : b for vector modes.
7101 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
7102 Martin Jambor <mjambor@suse.cz>
7104 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
7105 struct func_body_info* instead of struct ipa_node_params*, expecting
7106 fbi->info to be filled in. Replace throughout. Adjust call to
7107 ipa_load_from_parm_agg.
7108 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
7109 instead of struct ipa_node_params*. Adjust calls to other functions
7110 so that they pass either fbi or fbi->info.
7111 (set_switch_stmt_execution_predicate): Likewise.
7112 (will_be_nonconstant_predicate): Likewise.
7113 (compute_bb_predicates): Likewise.
7114 (estimate_function_body_sizes): Move asserts earlier. Fill in
7115 struct func_body_info, replace parms_info with fbi.info. Adjust
7116 calls to functions that now accept struct func_body_info.
7117 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
7118 (struct func_body_info): Likewise.
7119 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
7120 remove static. Adjust callers.
7121 (ipa_load_from_parm_agg): Remove.
7122 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
7123 (func_body_info): Likewise.
7124 (ipa_load_from_parm_agg): Adjust prototype.
7126 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7128 * gensupport.c (rtx_handle_directive): Adjust.
7129 * read-rtl.c (apply_iterators): Take vector to add rtxs to
7130 instead of expr list rtx.
7131 (add_define_attr_for_define_subst): Likewise.
7132 (add_define_subst_attr): Likewise.
7133 (read_subst_mapping): Likewise.
7134 (read_rtx): Likewise.
7135 * rtl.h (read_rtx): Adjust.
7137 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7139 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
7141 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7144 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
7145 (*tls_local_dynamic_base_64_<mode>): Ditto.
7146 (*tls_local_dynamic_base_64_largepic): Ditto.
7147 (tls_global_dynamic_64_<mode>): Update expander pattern.
7148 (tls_local_dynamic_base_64_<mode>): Ditto.
7150 2015-07-15 Richard Biener <rguenther@suse.de>
7152 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
7153 and bool_var == 1 -> bool_var simplifications ...
7154 * match.pd: ... to patterns here. Factor out negate_expr_p
7155 cases from the A - B -> A + (-B) patterns as negate_expr_p
7156 predicate and add a -(A + B) -> (-B) - A pattern.
7158 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7160 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
7162 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
7163 Robert Suchanek <robert.suchanek@imgtec.com>
7165 * config/mips/mips.c (mips_int_mask): New enum.
7166 (mips_shadow_set): Likewise.
7167 (int_mask): New variable.
7168 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
7169 (machine_function): Add int_mask and use_shadow_register_set.
7170 (mips_attribute_table): Add attribute handlers for interrupt and
7171 use_shadow_register_set.
7172 (mips_interrupt_mask): New static function.
7173 (mips_handle_interrupt_attr): Likewise.
7174 (mips_handle_use_shadow_register_set_attr): Likewise.
7175 (mips_use_shadow_register_set): Change return type to enum
7176 mips_shadow_set. Add argument handling for use_shadow_register_set
7178 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
7179 compare with mips_shadow_set enum.
7180 (mips_compute_frame_info): Add interrupt mask and
7181 use_shadow_register_set to per-function information structure.
7182 Add a stack slot for EPC unconditionally.
7183 (mips_expand_prologue): Compare use_shadow_register_set value
7184 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
7185 masked interrupt register but in EIC mode use K0 and save Cause in K0.
7186 EPC saved and restored unconditionally. Use PMODE_INSN macro when
7187 copying the stack pointer from the shadow register set.
7188 * config/mips/mips.h (SR_IM0): New define.
7189 * config/mips/mips.md (mips_rdpgpr): Rename to...
7190 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
7191 * doc/extend.texi (Declaring Attributes of Functions): Document
7192 optional arguments for interrupt and use_shadow_register_set
7195 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7197 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
7198 interrupt attribute.
7199 (mips_expand_prologue): Disable the floating point unit in an ISR.
7200 * config/mips/mips.h (SR_COP1): New define.
7202 2015-07-15 Richard Biener <rguenther@suse.de>
7204 * genmatch.c (parser::peek, parser::peek_ident): Add argument
7205 to tell how many tokens to peek ahead (default 1).
7206 (parser::eat_token, parser::eat_ident): Return token consumed.
7207 (parser::parse_result): Parse new switch statement.
7208 * match.pd: Use case statements where appropriate.
7210 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7212 PR rtl-optimization/58066
7213 * calls.c (expand_call): Precompute register parameters before stack
7214 alignment is performed.
7216 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7218 PR rtl-optimization/66838
7219 * postreload.c (reload_cse_move2add): Also process
7220 CALL_INSN_FUNCTION_USAGE when resetting information of
7221 call-clobbered registers.
7223 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7224 Cesar Philippidis <cesar@codesourcery.com>
7225 Chung-Lin Tang <cltang@codesourcery.com>
7227 * config/nios2/constraints.md (U, v): New constraints.
7228 * config/nios2/predicates.md (rdprs_dcache_operand): New.
7229 (ldstex_memory_operand): New.
7230 * config/nios2/sync.md: New file.
7231 * config/nios2/nios2.md (unspecv): Add new builtin function
7233 (rdprs, flushd, flushda, wrpie, eni): New patterns.
7234 (top-level): Include sync.md.
7235 * config/nios2/nios2.c (N2_FTYPES): Add function types for
7237 (N2_BUILTINS): Add arch field setting, add new builtins.
7238 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
7240 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
7241 Also handle ldex/stex/ldsex/stsex builtins.
7242 (nios2_expand_rdprs_builtin): New function.
7243 (nios2_expand_cache_builtin): New function.
7244 (nios2_expand_wrpie_builtin): New function.
7245 (nios2_expand_eni_builtin): New function.
7246 (nios2_expand_builtin): Add arch field handling and new builtin
7248 * doc/extend.texi (Altera Nios II Built-in Functions): Document
7250 * doc/md.texi (Machine Constraints): Document U and v constraints.
7252 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7253 Cesar Philippidis <cesar@codesourcery.com>
7254 Chung-Lin Tang <cltang@codesourcery.com>
7256 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
7257 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
7258 callee_save_reg_size and uses_anonymous_args fields.
7259 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
7260 (nios2_create_cfa_notes): New function.
7261 (nios2_adjust_stack): New function for adjusting stack.
7262 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
7263 Use nios2_adjust_stack.
7264 (nios2_expand_epilogue): Likewise.
7265 (nios2_expand_return): New function.
7266 (nios2_can_use_return_insn): Update for CDX pop.n usage.
7267 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
7268 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
7269 * config/nios2/nios2.md (return): Use nios2_expand_return.
7271 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7272 Cesar Philippidis <cesar@codesourcery.com>
7273 Chung-Lin Tang <cltang@codesourcery.com>
7275 * config/nios2/predicates.md (pop_operation): New.
7276 (ldwm_operation, stwm_operation): New.
7277 (nios2_hard_register_operand): New.
7278 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
7279 (ldstwm_operation_p): Declare.
7280 (gen_ldstwm_peep): Declare.
7281 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
7282 (base_reg_adjustment_p): New.
7283 (pop_operation_p): New.
7284 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
7285 (nios2_ldstwm_regset_p): New.
7286 (ldstwm_operation_p): New.
7288 (nios2_ldst_parallel): New.
7289 (struct ldswm_operand): Declare.
7290 (compare_ldstwm_operands): New.
7291 (can_use_cdx_ldstw): New.
7292 (gen_ldstwm_peep): New.
7293 * config/nios2/nios2-ldstwm.sml: New.
7294 * config/nios2/nios2.md: Include ldstwm.md.
7295 * config/nios2/ldstwm.md: Generated.
7297 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7298 Cesar Philippidis <cesar@codesourcery.com>
7299 Chung-Lin Tang <cltang@codesourcery.com>
7301 * config/nios2/nios2.h (LABEL_ALIGN): Define.
7302 (REG_ALLOC_ORDER): Define.
7303 (ADJUST_REG_ALLOC_ORDER): Define.
7304 (HONOR_REG_ALLOC_ORDER): Define.
7305 (CDX_REG_P): Define.
7306 (ANDCLEAR_INT): Define.
7307 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
7308 (nios2_label_align): Declare.
7309 (nios2_cdx_narrow_form_p): Declare.
7310 (nios2_adjust_reg_alloc_order): Declare.
7311 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
7313 (nios2_large_unspec_reloc_p): New function, split from...
7314 (nios2_legitimate_pic_operand_p): ...here.
7315 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
7316 (nios2_print_operand_punct_valid_p): New.
7317 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
7318 (split_mem_address): New.
7319 (split_alu_insn): New.
7321 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
7322 (enum nios2_add_insn_kind): New.
7323 (nios2_add_insn_names, nios2_add_insn_narrow): New.
7324 (nios2_add_insn_classify): New.
7325 (nios2_add_insn_asm): New.
7326 (nios2_cdx_narrow_form_p): New.
7327 (label_align, min_labelno, max_labelno): New.
7329 (nios2_label_align): New.
7330 (nios2_adjust_reg_alloc_order): New.
7331 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7332 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7333 * config/nios2/constraints.md (P): New constraint.
7334 * config/nios2/predicates.md (const_and_operand): New.
7336 (stack_memory_operand): New.
7337 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
7338 (length): Update to use nios2_cdx_narrow_form_p().
7339 (type): Add new insn type values.
7340 (control, alu, st, ld, shift): Update insn reservations with
7341 new insn type values.
7342 (*high, *lo_sum): Define new insn patterns for constant generation.
7343 (movqi_internal, movhi_internal, movsi_internal): Reduce
7344 alternatives, update asm template to handle CDX variants, update
7346 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
7347 template, update type attributes.
7348 (extendhisi2, extendqi<mode>2): Likewise.
7349 (addsi3): Change to use function for asm string.
7350 (subsi3): Add CDX notation to asm template, update type attributes.
7351 (negsi3, one_cmplsi3): Likewise.
7352 (andsi3): New pattern, specialized from logical patterns.
7353 (<code>si3): Remove and case, combine alternatives, update asm
7355 (<shift_op>si3): Add CDX notation, update type attributes.
7356 (rotrsi3): Update type attribute.
7357 (*merge, extzv, insv): New insn patterns.
7358 (return): Change to define_expand.
7359 (simple_return): Add CDX notation, update type attributes.
7360 (indirect_jump): Add CDX notation.
7361 (jump): Update asm cases, update length attribute expression.
7362 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
7363 (nios2_cbranch): Update asm cases and length attribute expression
7364 to handle CDX variants.
7365 (nios2_cmp<code>): Update asm template.
7366 (nop): Add CDX notation, update type attributes.
7367 (trap): Add CDX notation.
7368 (ctrapsi4): Update asm cases and length attribute expression to
7370 * doc/md.texi (Machine Constraints): Document P constraint.
7372 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7373 Cesar Philippidis <cesar@codesourcery.com>
7374 Chung-Lin Tang <cltang@codesourcery.com>
7376 * config/nios2/nios2.h (SMALL_INT12): New macro.
7377 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
7378 (nios2_valid_addr_expr_p): Use it.
7379 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
7380 with implicit "io" instructions on R2.
7381 * config/nios2/constraints.md (w): New constraint.
7382 * config/nios2/predicates.md (ldstio_memory_operand): New.
7383 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
7384 operand predicate and constraint.
7385 (ld<bh>io_signed, st<bhw>io>): Likewise.
7386 * doc/md.texi (Machine Constraints): Document w constraint.
7388 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7389 Cesar Philippidis <cesar@codesourcery.com>
7390 Chung-Lin Tang <cltang@codesourcery.com>
7392 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
7393 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
7394 Nios II architecture level.
7395 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
7396 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
7397 (OPTION_DEFAULT_SPECS): Define.
7398 (ASM_SPEC): Add -march= spec strings.
7399 * config/nios2/nios2.c (nios2_option_override): Check for
7400 conflicts involving new options.
7401 * config.gcc (nios2*-*-*): Support --with-arch=.
7402 * doc/invoke.texi (Option Summary, Nios II Options): Document
7403 -march=, -mbmx, and -mcdx.
7405 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
7407 PR rtl-optimization/66626
7408 * lra-constraints.c (lra_constraints): Prevent equivalence
7409 substitution for static chain pseudo in functions with nonlocal
7412 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7414 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
7415 (nios2_emit_stack_limit_check): Add size parameter. Handle
7416 -fstack-limit-symbol as well as -fstack-limit-register.
7417 (nios2_expand_prologue): Emit only a single stack limit check,
7418 even if multiple stack adjustments are required.
7419 (nios2_option_override): Diagnose unsupported combination of -fpic
7420 and -stack-limit-symbol.
7422 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
7424 * Makefile.in (top_srcdir): New.
7425 * configure.ac: Use AM_ZLIB.
7426 * configure: Regeneated.
7428 2015-07-14 Matthias Klose <doko@ubuntu.com>
7431 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
7433 2015-07-14 Richard Biener <rguenther@suse.de>
7435 PR tree-optimization/66863
7436 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
7437 what we record for conversion use stmt lhs inequalities.
7439 2015-07-14 Richard Biener <rguenther@suse.de>
7441 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
7442 (decision_tree::gen_gimple): Likewise.
7444 2015-07-14 Tom de Vries <tom@codesourcery.com>
7446 * gcc.c (greater_than_spec_func): Declare forward.
7447 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
7448 -ftree-parallelize-loops={0,1}.
7449 (static_spec_functions): Add greater_than_spec_func function with name
7451 (greater_than_spec_func): New function.
7453 2015-07-14 Richard Biener <rguenther@suse.de>
7455 * tree-ssa-dom.c (record_temporary_equivalences): Merge
7456 wideing type conversion case from record_equivalences_from_incoming_edge
7457 and use record_equality to record equivalences.
7458 (record_equivalences_from_incoming_edge): Call
7459 record_temporary_equivalences.
7461 2015-07-14 Richard Biener <rguenther@suse.de>
7463 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
7464 (struct if_expr): New.
7465 (struct with_expr): Likewise.
7466 (is_a_helper): Add helpers for if_expr and with_expr.
7467 (struct simplify): Add simplify_kind enum and member. Remove
7469 (simplify::simplify): Adjust.
7470 (lower_commutative): Adjust.
7471 (lower_opt_convert): Likewise.
7472 (lower_cond): Likewise.
7473 (replace_id): Handle with_expr and if_expr.
7474 (lower_for): Adjust.
7475 (dt_simplify::gen_1): New recursive worker, split out from ...
7476 (dt_simplify::gen): ... here. Deal with if and with expansion
7478 (capture_info::capture_info): Take context argument
7479 (capture_info::walk_result): Only analyze specific result.
7480 (parser::parse_result): New function.
7481 (parser::parse_simplify): Adjust to parse ifs with then end
7483 (parser::parse_if): Simplify.
7484 (parser::parse_pattern): Pass down simplify kind.
7485 * match.pd: Convert if structure to new syntax.
7487 2015-07-13 Marek Polacek <polacek@redhat.com>
7489 * rtl.c (rtx_equal_p_cb): Fix typo.
7491 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
7493 * omega.h: Don't include config.h, don't include params.h again if
7494 omega.h has already been included.
7495 * graphite-poly.h: Include sese.h.
7496 * graphite.c: Don't include sese.h, remove needless includes and
7497 minimize includes outside #ifdef HAVE_isl block.
7498 * graphite-blocking.c: Don't include sese.h, remove needless includes,
7499 and wrap entire file in #ifdef HAVE_isl
7500 * graphite-dependences.c: Likewise.
7501 * graphite-interchange.c: Likewise.
7502 * graphite-isl-ast-to-gimple.c: Likewise.
7503 * graphite-optimize-isl.c: Likewise.
7504 * graphite-poly.c: Likewise.
7505 * graphite-scop-detection.c: Likewise.
7506 * graphite-sese-to-poly.c: Likewise.
7508 2015-07-13 Tom de Vries <tom@codesourcery.com>
7510 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
7512 2015-07-13 Renlin Li <renlin.li@arm.com>
7515 * simplify-rtx.c (simplify_const_relational_operation): Add
7516 side_effects_p checks.
7518 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
7520 * bitmap.h: Fix double word typos.
7523 * cfgloopmanip.c: Same.
7526 * cgraphclones.c: Same.
7528 * config/aarch64/aarch64-protos.h: Same.
7529 * config/aarch64/aarch64.c: Same.
7530 * config/aarch64/aarch64.md: Same.
7531 * config/arm/arm.md: Same.
7532 * config/arm/arm1020e.md: Same.
7533 * config/arm/arm1026ejs.md: Same.
7534 * config/arm/arm926ejs.md: Same.
7535 * config/arm/fa526.md: Same.
7536 * config/arm/fa606te.md: Same.
7537 * config/arm/fa626te.md: Same.
7538 * config/arm/fa726te.md: Same.
7539 * config/arm/fmp626.md: Same.
7540 * config/darwin.c: Same.
7541 * config/epiphany/epiphany.c: Same.
7542 * config/frv/frv.c: Same.
7543 * config/ft32/ft32.c: Same.
7544 * config/gnu-user.h: Same.
7545 * config/h8300/constraints.md: Same.
7546 * config/i386/i386.c: Same.
7547 * config/i386/i386.md: Same.
7548 * config/iq2000/iq2000.md: Same.
7549 * config/mips/mips.c: Same.
7550 * config/mmix/mmix.md: Same.
7551 * config/moxie/moxie.c: Same.
7552 * config/nds32/nds32.md: Same.
7553 * config/pa/pa.h: Same.
7554 * config/rs6000/aix.h: Same.
7555 * config/rs6000/rs6000.h: Same.
7556 * config/sh/sh.c: Same.
7557 * config/tilegx/tilegx.md: Same.
7558 * config/tilepro/gen-mul-tables.cc: Same.
7561 * doc/invoke.texi: Same.
7563 * dwarf2out.c: Same.
7568 * hash-table.h: Same.
7569 * internal-fn.c: Same.
7571 * ipa-devirt.c: Same.
7574 * ipa-profile.c: Same.
7579 * reg-stack.c: Same.
7585 * tree-inline.c: Same.
7587 * tree-ssa-dom.c: Same.
7588 * tree-ssa-loop-ivopts.c: Same.
7589 * tree-ssa-structalias.c: Same.
7590 * tree-ssa-tail-merge.c: Same.
7591 * tree-ssa-ter.c: Same.
7592 * tree-ssa-threadupdate.c: Same.
7593 * tree-ssa-uninit.c: Same.
7594 * tree-ssanames.c: Same.
7595 * tree-vect-loop-manip.c: Same.
7601 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7604 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
7605 tree_ssa_phiopt_worker): Call it.
7607 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7609 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
7610 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
7613 2015-07-11 Marek Polacek <polacek@redhat.com>
7616 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
7617 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
7618 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
7619 rather than bb_has_abnormal_call_pred.
7620 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
7621 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
7622 rather than bb_has_abnormal_call_pred.
7624 2015-07-10 Anatoly Sokolov <aesok@post.ru>
7626 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7627 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
7628 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7629 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
7630 v850_legitimate_address_p): New functions.
7631 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7633 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
7636 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
7637 indirect sibcall with register arguments if register available
7638 for argument passing.
7639 (init_cumulative_args): Set cfun->machine->arg_reg_available
7640 to (cum->nregs > 0) or to true if function has a variable
7642 (function_arg_advance_32): Set cfun->machine->arg_reg_available
7643 to false if cum->nregs <= 0.
7644 * config/i386/i386.h (machine_function): Add arg_reg_available.
7646 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7648 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
7649 and gen_higpart instead of gen_rtx_SUBREG.
7650 * config/i386/i386.md
7651 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
7652 (read-modify peephole2): Use gen_lowpart instead of
7653 gen_rtx_SUBREG for operand 5.
7655 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7657 * config/tilepro/gen-mul-tables.cc (main): Change include list for
7659 * config/tilepro/mul-tables.c: Regenerate.
7660 * config/tilegx/mul-tables.c: Regenerate.
7662 2015-07-10 Richard Biener <rguenther@suse.de>
7664 * fold-const.c (distribute_bit_expr): Remove.
7665 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
7666 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
7667 to A & (B | C) and simplifying A << C1 << C2 to ...
7668 * match.pd: ... patterns here.
7670 2015-07-10 Jiong Wang <jiong.wang@arm.com>
7672 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7673 Mark mem as READONLY and NOTRAP for PIC symbol.
7675 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7677 * gimple-predict.h: New file.
7678 (gimple_predict_predictor, gimple_predict_set_predictor,
7679 gimple_predict_outcome, gimple_predict_set_outcome,
7680 gimple_build_predict): Relocate here.
7681 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
7682 gimple_predict_outcome, gimple_predict_set_outcome): Move to
7684 * gimple.c (gimple_build_predict): Move to gimple-predict.h
7685 * basic-block.h: Don't include cfghooks.h.
7686 * backend.h: Don't include predict.h.
7687 * cfghooks.h: Include predict.h.
7688 * gimple-pretty-print.c: Include gimple-predict.h.
7689 * gimplify.c: Likwise.
7690 * predict.c: Adjust includes.
7691 * tree-inline.c: Likewise.
7693 * auto-inc-dec.c: Likewise.
7694 * auto-profile.c: Likewise.
7695 * bb-reorder.c: Likewise.
7696 * builtins.c: Likewise.
7697 * caller-save.c: Likewise.
7698 * calls.c: Likewise.
7699 * cfganal.c: Likewise.
7700 * cfgbuild.c: Likewise.
7702 * cfgcleanup.c: Likewise.
7703 * cfgexpand.c: Likewise.
7704 * cfghooks.c: Likewise.
7705 * cfgloopanal.c: Likewise.
7706 * cfgloop.c: Likewise.
7707 * cfgloopmanip.c: Likewise.
7708 * cfgrtl.c: Likewise.
7709 * cgraph.c: Likewise.
7710 * cgraphunit.c: Likewise.
7711 * combine.c: Likewise.
7712 * cprop.c: Likewise.
7715 * dojump.c: Likewise.
7717 * except.c: Likewise.
7718 * expmed.c: Likewise.
7720 * final.c: Likewise.
7721 * fold-const.c: Likewise.
7722 * function.c: Likewise.
7723 * fwprop.c: Likewise.
7724 * gcc-plugin.h: Likewise.
7726 * genattrtab.c: Likewise.
7727 * genemit.c: Likewise.
7728 * gengtype.c: Likewise.
7729 * genopinit.c: Likewise.
7730 * genoutput.c: Likewise.
7731 * genpreds.c: Likewise.
7732 * genrecog.c: Likewise.
7733 * gimple-fold.c: Likewise.
7734 * gimple-iterator.c: Likewise.
7735 * gimple-ssa-isolate-paths.c: Likewise.
7736 * gimple-ssa-strength-reduction.c: Likewise.
7737 * graph.c: Likewise.
7738 * graphite-blocking.c: Likewise.
7739 * graphite.c: Likewise.
7740 * graphite-dependences.c: Likewise.
7741 * graphite-interchange.c: Likewise.
7742 * graphite-isl-ast-to-gimple.c: Likewise.
7743 * graphite-optimize-isl.c: Likewise.
7744 * graphite-poly.c: Likewise.
7745 * graphite-scop-detection.c: Likewise.
7746 * graphite-sese-to-poly.c: Likewise.
7747 * haifa-sched.c: Likewise.
7748 * ifcvt.c: Likewise.
7749 * internal-fn.c: Likewise.
7750 * ipa-cp.c: Likewise.
7751 * ipa-profile.c: Likewise.
7752 * ipa-split.c: Likewise.
7753 * ipa-utils.c: Likewise.
7754 * ira-build.c: Likewise.
7755 * ira-color.c: Likewise.
7756 * ira-conflicts.c: Likewise.
7757 * ira-costs.c: Likewise.
7758 * ira-emit.c: Likewise.
7759 * ira-lives.c: Likewise.
7761 * loop-doloop.c: Likewise.
7762 * loop-init.c: Likewise.
7763 * loop-invariant.c: Likewise.
7764 * loop-unroll.c: Likewise.
7765 * lower-subreg.c: Likewise.
7766 * lra-assigns.c: Likewise.
7768 * lra-coalesce.c: Likewise.
7769 * lra-constraints.c: Likewise.
7770 * lra-lives.c: Likewise.
7771 * lto-cgraph.c: Likewise.
7772 * lto-streamer-in.c: Likewise.
7773 * mode-switching.c: Likewise.
7774 * modulo-sched.c: Likewise.
7775 * omp-low.c: Likewise.
7776 * optabs.c: Likewise.
7777 * passes.c: Likewise.
7778 * postreload.c: Likewise.
7779 * postreload-gcse.c: Likewise.
7780 * profile.c: Likewise.
7781 * recog.c: Likewise.
7782 * regstat.c: Likewise.
7783 * reload1.c: Likewise.
7784 * reorg.c: Likewise.
7785 * rtlanal.c: Likewise.
7786 * sched-ebb.c: Likewise.
7787 * sel-sched-ir.c: Likewise.
7789 * shrink-wrap.c: Likewise.
7790 * simplify-rtx.c: Likewise.
7792 * store-motion.c: Likewise.
7793 * tracer.c: Likewise.
7794 * trans-mem.c: Likewise.
7795 * tree-call-cdce.c: Likewise.
7796 * tree-cfg.c: Likewise.
7797 * tree-cfgcleanup.c: Likewise.
7798 * tree-chkp.c: Likewise.
7799 * tree-complex.c: Likewise.
7800 * tree-eh.c: Likewise.
7801 * tree-if-conv.c: Likewise.
7802 * tree-loop-distribution.c: Likewise.
7803 * tree-outof-ssa.c: Likewise.
7804 * tree-parloops.c: Likewise.
7805 * tree-predcom.c: Likewise.
7806 * tree-pretty-print.c: Likewise.
7807 * tree-profile.c: Likewise.
7808 * tree-sra.c: Likewise.
7809 * tree-ssa.c: Likewise.
7810 * tree-ssa-coalesce.c: Likewise.
7811 * tree-ssa-dce.c: Likewise.
7812 * tree-ssa-dom.c: Likewise.
7813 * tree-ssa-forwprop.c: Likewise.
7814 * tree-ssa-ifcombine.c: Likewise.
7815 * tree-ssa-loop-ch.c: Likewise.
7816 * tree-ssa-loop-im.c: Likewise.
7817 * tree-ssa-loop-ivcanon.c: Likewise.
7818 * tree-ssa-loop-ivopts.c: Likewise.
7819 * tree-ssa-loop-manip.c: Likewise.
7820 * tree-ssa-loop-prefetch.c: Likewise.
7821 * tree-ssa-loop-unswitch.c: Likewise.
7822 * tree-ssa-math-opts.c: Likewise.
7823 * tree-ssa-phiopt.c: Likewise.
7824 * tree-ssa-pre.c: Likewise.
7825 * tree-ssa-reassoc.c: Likewise.
7826 * tree-ssa-sink.c: Likewise.
7827 * tree-ssa-tail-merge.c: Likewise.
7828 * tree-ssa-threadedge.c: Likewise.
7829 * tree-ssa-threadupdate.c: Likewise.
7830 * tree-switch-conversion.c: Likewise.
7831 * tree-tailcall.c: Likewise.
7832 * tree-vect-data-refs.c: Likewise.
7833 * tree-vect-loop.c: Likewise.
7834 * tree-vect-loop-manip.c: Likewise.
7835 * tree-vectorizer.c: Likewise.
7836 * tree-vrp.c: Likewise.
7837 * ubsan.c: Likewise.
7838 * value-prof.c: Likewise.
7839 * varasm.c: Likewise.
7840 * var-tracking.c: Likewise.
7841 * config/aarch64/aarch64-builtins.c: Likewise.
7842 * config/aarch64/aarch64.c: Likewise.
7843 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7844 * config/alpha/alpha.c: Likewise.
7845 * config/arc/arc.c: Likewise.
7846 * config/arm/arm.c: Likewise.
7847 * config/avr/avr.c: Likewise.
7848 * config/bfin/bfin.c: Likewise.
7849 * config/c6x/c6x.c: Likewise.
7850 * config/cr16/cr16.c: Likewise.
7851 * config/cris/cris.c: Likewise.
7852 * config/darwin.c: Likewise.
7853 * config/darwin-c.c: Likewise.
7854 * config/epiphany/epiphany.c: Likewise.
7855 * config/epiphany/mode-switch-use.c: Likewise.
7856 * config/epiphany/resolve-sw-modes.c: Likewise.
7857 * config/fr30/fr30.c: Likewise.
7858 * config/frv/frv.c: Likewise.
7859 * config/ft32/ft32.c: Likewise.
7860 * config/h8300/h8300.c: Likewise.
7861 * config/i386/i386.c: Likewise.
7862 * config/i386/winnt.c: Likewise.
7863 * config/ia64/ia64.c: Likewise.
7864 * config/iq2000/iq2000.c: Likewise.
7865 * config/lm32/lm32.c: Likewise.
7866 * config/m32c/m32c.c: Likewise.
7867 * config/m32r/m32r.c: Likewise.
7868 * config/m68k/m68k.c: Likewise.
7869 * config/mcore/mcore.c: Likewise.
7870 * config/mep/mep.c: Likewise.
7871 * config/microblaze/microblaze.c: Likewise.
7872 * config/mips/mips.c: Likewise.
7873 * config/mmix/mmix.c: Likewise.
7874 * config/mn10300/mn10300.c: Likewise.
7875 * config/moxie/moxie.c: Likewise.
7876 * config/msp430/msp430.c: Likewise.
7877 * config/nds32/nds32.c: Likewise.
7878 * config/nds32/nds32-cost.c: Likewise.
7879 * config/nds32/nds32-fp-as-gp.c: Likewise.
7880 * config/nds32/nds32-intrinsic.c: Likewise.
7881 * config/nds32/nds32-isr.c: Likewise.
7882 * config/nds32/nds32-md-auxiliary.c: Likewise.
7883 * config/nds32/nds32-memory-manipulation.c: Likewise.
7884 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7885 * config/nds32/nds32-predicates.c: Likewise.
7886 * config/nios2/nios2.c: Likewise.
7887 * config/nvptx/nvptx.c: Likewise.
7888 * config/pa/pa.c: Likewise.
7889 * config/pdp11/pdp11.c: Likewise.
7890 * config/rl78/rl78.c: Likewise.
7891 * config/rs6000/rs6000.c: Likewise.
7892 * config/rx/rx.c: Likewise.
7893 * config/s390/s390.c: Likewise.
7894 * config/sh/sh.c: Likewise.
7895 * config/sh/sh-mem.cc: Likewise.
7896 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7897 * config/sh/sh_treg_combine.cc: Likewise.
7898 * config/sparc/sparc.c: Likewise.
7899 * config/spu/spu.c: Likewise.
7900 * config/stormy16/stormy16.c: Likewise.
7901 * config/tilegx/tilegx.c: Likewise.
7902 * config/tilepro/tilepro.c: Likewise.
7903 * config/v850/v850.c: Likewise.
7904 * config/vax/vax.c: Likewise.
7905 * config/visium/visium.c: Likewise.
7906 * config/xtensa/xtensa.c: Likewise.
7908 2015-07-10 Richard Biener <rguenther@suse.de>
7910 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
7911 (decision_tree::gen_gimple): Likewise.
7912 (decision_tree::gen_generic): Likewise.
7914 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7917 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
7918 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
7920 2015-07-10 Jakub Jelinek <jakub@redhat.com>
7923 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
7924 or ORT_TASK contexts.
7925 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
7928 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7930 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
7933 2015-07-10 Tom de Vries <tom@codesourcery.com>
7935 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
7936 insert nit + 1 bound.
7938 2015-07-10 Richard Biener <rguenther@suse.de>
7940 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
7941 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
7942 (if_convertible_loop_p_1): For this always compute bb predicates.
7943 (if_convertible_loop_p): And free them.
7945 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7947 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
7950 2015-07-10 Richard Biener <rguenther@suse.de>
7952 PR tree-optimization/66823
7953 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
7956 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
7958 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
7959 to handle mips[32|64]r3 and mips[32|64]r5.
7961 2015-07-09 Jakub Jelinek <jakub@redhat.com>
7964 * tree-nested.c (get_static_chain): Or in a flag into
7965 info->static_chain_added.
7966 (get_frame_field, get_nonlocal_debug_decl): Likewise.
7967 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
7969 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
7970 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
7973 PR tree-optimization/66718
7974 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
7976 (vect_simd_lane_linear): New function.
7977 (vectorizable_simd_clone_call): Support using linear arguments for
7978 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
7980 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
7983 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
7985 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7987 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
7988 Use machine mode, not enum machine_mode in the prototype.
7990 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
7991 classify 128-bit floating point support.
7992 (FLOAT128_IBM_P): Likewise.
7993 (FLOAT128_VECTOR_P): Likewise.
7994 (FLOAT128_2REG_P): Likewise.
7995 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
7996 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
7997 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7998 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8000 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
8001 tests against TFmode/TDmode, since those modes do not use VSX
8003 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
8005 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
8006 tests against TFmode, etc.
8007 (invalid_e500_subreg): Add tests against IFmode/KFmode.
8008 (reg_offset_addressing_ok_p): Likewise.
8009 (rs6000_legitimate_offset_address_p): Likewise.
8010 (rs6000_legitimize_address): Likewise.
8011 (rs6000_legitimize_reload_address): Likewise.
8012 (rs6000_legitimate_address_p): Clean up tests against TFmode and
8013 TDmode to use the new helper macros, which will include IFmode and
8015 (rs6000_emit_move): Likewise.
8016 (rs6000_darwin64_record_arg_recurse): Likewise.
8017 (print_operand): Likewise.
8018 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
8019 that uses a single vector register as a vector and not as a
8020 floating point register in terms of the calling sequence.
8021 (rs6000_discover_homogeneous_aggregate): Likewise.
8022 (rs6000_return_in_memory): Likewise.
8023 (init_cumulative_args): Likewise.
8024 (rs6000_function_arg_boundary): Likewise.
8025 (rs6000_function_arg_advance_1): Likewise.
8026 (rs6000_function_arg): Likewise.
8027 (rs6000_pass_by_reference): Likewise.
8028 (rs6000_gimplify_va_arg): Likewise.
8029 (rs6000_secondary_reload_memory): Use machine_mode not enum
8031 (rs6000_split_multireg_move): Use new helper macros.
8032 (spe_func_has_64bit_regs_p): Likewise.
8033 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
8034 (output_toc): Use new helper macros.
8035 (rs6000_register_move_cost): Likewise.
8036 (rs6000_function_value): Add IEEE 128-bit floating point calling
8038 (rs6000_libcall_value): Likewise.
8039 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
8040 floating point support.
8041 (rs6000_vector_mode_supported_p): Likewise.
8043 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
8045 PR rtl-optimization/66782
8046 * lra-int.h (struct lra_insn_recog_data): Add comment about
8047 clobbered hard regs for arg_hard_regs.
8048 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
8049 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
8050 Add condition for processing used hard regs.
8051 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
8052 Process clobbered hard regs.
8054 2015-07-09 Michael Matz <matz@suse.de>
8056 * genmatch.c (fprintf_indent): New function.
8057 (operand::gen_transform): Add indent parameter.
8058 (expr::gen_transform, c_expr::gen_transform,
8059 capture::gen_transform): Ditto and use fprintf_indent.
8060 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
8061 (dt_operand::gen, dt_operand::gen_predicate,
8062 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
8063 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
8064 (decision_tree::gen_gimple): Adjust calls and indent generated
8066 (decision_tree::gen_generic): Ditto.
8067 (write_predicate): Ditto.
8069 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8072 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
8073 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
8074 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
8075 {GENERAL,SSE,MMX}_REG_P where appropriate.
8077 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8079 * lto-streamer.h: Don't include target.h and alloc-pool.h.
8080 * builtins.c: Adjust includes.
8081 * gimple.c: Likewise.
8082 * ipa-icf.c: Likewise.
8083 * lto-opts.c: Likewise.
8084 * ipa-reference.c: Likewise.
8085 * lto-section-out.c: Likewise.
8086 * lto-streamer-in.c: Likewise.
8087 * lto-streamer-out.c: Likewise.
8088 * opts-global.c: Likewise.
8089 * symtab.c: Likewise.
8090 * tree-chkp.c: Likewise.
8091 * tree-ssa-live.c: Likewise.
8092 * tree-streamer-in.c: Likewise.
8093 * tree-streamer-out.c: Likewise.
8094 * config/darwin.c: Likewise.
8095 * config/i386/winnt.c: Likewise.
8097 2015-07-09 Richard Biener <rguenther@suse.de>
8099 * genmatch.c (struct expr): Add force_single_use flag.
8100 (expr::expr): Add copy constructor.
8101 (capture_info::walk_match): Gather force_single_use captures.
8102 (expr::gen_transform): Use possibly NULLified sequence.
8103 (dt_simplify::gen): Apply single-use restrictions by NULLifying
8104 seq if any constrained expr is not single-use.
8105 (parser::parse_expr): Refactor to allow multiple flags. Handle
8106 's' flag to force an expression have a single-use if the pattern
8107 simplifies to more than one statement.
8108 * match.pd: Convert most single_use conditionals to :s flags.
8110 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8112 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
8113 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8114 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8116 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8118 * flags.h: Don't include flag-types.h or options.h.
8119 * opts-common.c: Adjust includes.
8120 * opts-global.c: Likewise.
8121 * common/config/epiphany/epiphany-common.c: Likewise.
8123 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8126 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
8129 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8132 * config/i386/i386.c (ix86_return_in_memory): Return true
8133 if int_size_in_bytes returns negative for IA MCU.
8135 2015-07-09 Marek Polacek <polacek@redhat.com>
8137 PR tree-optimization/66718
8138 * Makefile.in (OBJS): Add gimple-laddress.o.
8139 * passes.def: Schedule pass_laddress.
8140 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
8141 * tree-pass.h (make_pass_laddress): Declare.
8142 * gimple-laddress.c: New file.
8144 2015-07-09 Richard Biener <rguenther@suse.de>
8146 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
8148 2015-07-09 Richard Biener <rguenther@suse.de>
8150 PR tree-optimization/66807
8151 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
8153 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
8155 * function.c (stack_protect_epilogue): Use if rather than switch for
8156 check targetm.have_stack_protect_test.
8158 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8160 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
8161 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
8162 * config/arc/arc.h: Likewise.
8163 * config/arm/arm.h: Likewise.
8164 * config/bfin/bfin.h: Likewise.
8165 * config/epiphany/epiphany.h: Likewise.
8166 * config/frv/frv.h: Likewise.
8167 * config/ia64/ia64.h: Likewise.
8168 * config/iq2000/iq2000.h: Likewise.
8169 * config/lm32/lm32.h: Likewise.
8170 * config/m32r/m32r.h: Likewise.
8171 * config/mcore/mcore.h: Likewise.
8172 * config/mep/mep.h: Likewise.
8173 * config/microblaze/microblaze.h: Likewise.
8174 * config/mips/mips.h: Likewise.
8175 * config/mmix/mmix.h: Likewise.
8176 * config/mn10300/mn10300.h: Likewise.
8177 * config/nds32/nds32.h: Likewise.
8178 * config/nios2/nios2.h: Likewise.
8179 * config/pa/pa.h: Likewise.
8180 * config/rl78/rl78.h: Likewise.
8181 * config/sh/sh.h: Likewise.
8182 * config/sparc/sparc.h: Likewise.
8183 * config/stormy16/stormy16.h: Likewise.
8184 * config/tilegx/tilegx.h: Likewise.
8185 * config/tilepro/tilepro.h: Likewise.
8186 * config/v850/v850.h: Likewise.
8187 * config/xtensa/xtensa.h: Likewise.
8188 * doc/tm.texi: Regenerate.
8189 * doc/tm.texi.in: Adjust.
8190 * combine.c (simplify_set): Likewise.
8191 (simplify_comparison): Likewise.
8192 * expr.c (store_constructor): Likewise.
8193 * internal-fn.c (expand_arith_overflow): Likewise.
8194 * reload.c (push_reload): Likewise.
8195 (find_reloads): Likewise.
8196 (find_reloads_subreg_address): Likewise.
8197 * reload1.c (eliminate_regs_1): Likewise.
8198 * rtlanal.c (nonzero_bits1): Likewise.
8199 (num_sign_bit_copies1): Likewise.
8200 * simplify-rtx.c (simplify_truncation): Likewise.
8202 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8204 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
8205 of AUTO_INC_DEC with the preprocessor.
8206 * combine.c (combine_instructions): Likewise.
8207 (can_combine_p): Likewise.
8208 (try_combine): Likewise.
8209 * emit-rtl.c (try_split): Likewise.
8210 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8211 * lower-subreg.c (resolve_simple_move): Likewise.
8212 * lra.c (update_inc_notes): Likewise.
8213 * recog.c (asm_operand_ok): Likewise.
8214 (constrain_operands): Likewise.
8215 * regrename.c (scan_rtx_address): Likewise.
8216 * reload.c (update_auto_inc_notes): Likewise.
8217 (reg_inc_found_and_valid_p): Likewise.
8218 * reload1.c (reload): Likewise.
8219 (emit_input_reload_insns): Likewise.
8220 (delete_output_reload): Likewise.
8221 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8222 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8224 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8226 * rtl.h: Always define AUTO_INC_DEC.
8227 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
8228 * combine.c (combine_instructions): Likewise.
8229 (can_combine_p): Likewise.
8230 (try_combine): Likewise.
8231 * emit-rtl.c (try_split): Likewise.
8232 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8233 * lower-subreg.c (resolve_simple_move): Likewise.
8234 * lra.c (update_inc_notes): Likewise.
8235 * recog.c (asm_operand_ok): Likewise.
8236 (constrain_operands): Likewise.
8237 * regrename.c (scan_rtx_address): Likewise.
8238 * reload.c (update_auto_inc_notes): Likewise.
8239 (find_equiv_reg): Likewise.
8240 * reload1.c (reload): Likewise.
8241 (reload_as_needed): Likewise.
8242 (choose_reload_regs): Likewise.
8243 (emit_input_reload_insns): Likewise.
8244 (delete_output_reload): Likewise.
8245 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8246 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8248 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8250 * combine.c (can_combine_def_p): Don't check the value of
8251 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
8252 (combinable_i3pat): Likewise.
8253 (mark_used_regs_combine): Likewise.
8254 * regrename.c (rename_chains): Likewise.
8255 * reload.c (find_reloads_address): Likewise.
8256 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8258 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8260 * combine.c (update_rsp_from_reg_equal): Don't check if
8261 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
8262 (reg_nonzero_bits_for_combine): Likewise.
8263 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
8265 * config/frv/frv.h: Likewise.
8266 * config/lm32/lm32.h: Likewise.
8267 * config/mep/mep.h: Likewise.
8268 * config/mips/mips.h: Likewise.
8269 * config/rs6000/rs6000.h: Likewise.
8270 * config/sh/sh.h: Likewise.
8271 * config/tilegx/tilegx.h (enum reg_class): Likewise.
8272 * config/tilepro/tilepro.h: Likewise.
8273 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
8274 * doc/tm.texi: Regenerate.
8275 * doc/tm.texi.in: Adjust.
8276 * rtlanal.c (nonzero_bits1): Likewise.
8278 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8280 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
8281 with the preprocessor.
8282 (combine_instructions): Likewise.
8283 (try_combine): Likewise.
8285 (distribute_notes): Likewise.
8287 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8289 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
8291 (simplify_set): Likewise.
8292 * cse.c (cse_insn): Likewise.
8293 * fold-const.c (fold_single_bit_test): Likewise.
8294 (fold_unary_loc): Likewise.
8295 * postreload.c (reload_cse_simplify_set): Likewise.
8296 (reload_cse_simplify_operands): Likewise.
8298 2015-07-08 Jiong Wang <jiong.wang@arm.com>
8300 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
8301 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
8303 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8306 * config/i386/x86intrin.h: Include <adxintrin.h> even if
8307 __iamcu__ is defined.
8309 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8311 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
8313 2015-07-08 Iain Sandoe <iain@codesourcery.com>
8316 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
8317 names from preservation.
8319 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8322 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
8324 (function_arg_advance_32): Don't pass vectors in registers for
8326 (function_arg_32): Likewise.
8327 (ix86_return_in_memory): Don't return vectors in registers for
8330 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
8333 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
8334 hard regno live at the start of BB with incoming abnormal edges.
8335 * lra-lives.c (process_bb_lives): Ditto.
8337 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8340 * config/nvptx/mkoffload.c (main): Create an offload image only in
8341 64-bit configurations.
8343 2015-07-08 Martin Liska <mliska@suse.cz>
8346 * tree-sra.c (create_access_1): Call ctor without brackets.
8347 (create_artificial_child_access): Likewise.
8349 2015-07-08 Richard Biener <rguenther@suse.de>
8351 PR tree-optimization/66793
8352 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
8353 Properly split the block after stmts ending it.
8355 2015-07-08 Richard Biener <rguenther@suse.de>
8357 PR tree-optimization/66794
8358 * passes.c (execute_function_todo): Assert that post-dominators
8360 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
8361 Free post-dominators.
8363 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8365 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
8368 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8370 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
8371 more than or equal 8 and less than 32 when optimizing for size.
8373 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8375 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
8376 COSTS_N_INSNS (1) and increment it appropriately throughout the
8379 2015-07-08 Richard Biener <rguenther@suse.de>
8381 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
8383 2015-07-08 Alan Modra <amodra@gmail.com>
8385 * target.def (rtx_costs): Remove "code" param, add "mode".
8386 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
8387 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
8388 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
8389 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
8390 call. Track mode when given in rtx.
8391 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
8392 (default_address_cost): Pass Pmode to rtx_cost.
8393 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
8394 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
8396 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
8397 (notreg_cost): Add mode param. Use it.
8398 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
8399 mode param and pass to set_src_cost. Update all calls.
8400 (hash_scan_set): Formatting.
8401 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
8402 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
8404 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
8405 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
8406 emit_store_flag): Update set_src_cost and rtx_cost calls.
8407 * auto-inc-dec.c (attempt_change): Likewise.
8408 * calls.c (precompute_register_parameters): Likewise.
8409 * combine.c (expand_compound_operation, make_extraction,
8410 force_to_mode, distribute_and_simplify_rtx): Likewise.
8411 * dojump.c (prefer_and_bit_test): Likewise.
8412 * dse.c (find_shift_sequence): Likewise.
8413 * expr.c (compress_float_constant): Likewise.
8414 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
8415 * ifcvt.c (noce_try_sign_mask): Likewise.
8416 * loop-doloop.c (doloop_optimize): Likewise.
8417 * loop-invariant.c (create_new_invariant): Likewise.
8418 * lower-subreg.c (shift_cost, compute_costs): Likewise.
8419 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
8420 lshift_cheap_p): Likewise.
8421 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
8422 try_replace_in_use, reload_cse_move2add): Likewise.
8423 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
8425 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8426 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8427 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
8428 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
8429 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
8430 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
8432 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
8433 * config/arc/arc.c (arc_rtx_costs): Likewise.
8434 * config/arm/arm.c (arm_rtx_costs): Likewise.
8435 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
8436 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8437 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
8438 * config/cris/cris.c (cris_rtx_costs): Likewise.
8439 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
8440 * config/frv/frv.c (frv_rtx_costs): Likewise.
8441 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
8442 * config/i386/i386.c (ix86_rtx_costs): Likewise.
8443 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
8444 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
8445 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
8446 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
8447 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
8448 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
8449 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
8450 * config/mep/mep.c (mep_rtx_cost): Likewise.
8451 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
8452 * config/mips/mips.c (mips_rtx_costs): Likewise.
8453 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
8454 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
8455 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
8456 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
8457 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
8458 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
8459 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
8460 * config/pa/pa.c (hppa_rtx_costs): Likewise.
8461 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
8462 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
8463 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
8464 * config/s390/s390.c (s390_rtx_costs): Likewise.
8465 * config/sh/sh.c (sh_rtx_costs): Likewise.
8466 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
8467 * config/spu/spu.c (spu_rtx_costs): Likewise.
8468 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
8469 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
8470 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
8471 * config/v850/v850.c (v850_rtx_costs): Likewise.
8472 * config/vax/vax.c (vax_rtx_costs): Likewise.
8473 * config/visium/visium.c (visium_rtx_costs): Likewise.
8474 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
8475 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
8476 "code" param, and pass as outer_code to first rtx_cost call. Pass
8477 mode to rtx_cost calls.
8478 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
8480 (aarch64_rtx_costs_wrapper): Update.
8481 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
8482 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
8484 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
8486 (avr_operand_rtx_cost): Similarly.
8487 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
8488 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
8489 * config/mips/mips.c (mips_stack_address_p): Comment typo.
8490 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
8491 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
8492 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
8494 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
8495 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
8496 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
8497 * doc/tm.texi: Regenerate.
8499 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
8501 * tree-core.h: Include symtab.h.
8502 * rtl.h: Include hard-reg-set.h but not flags.h.
8503 (HARD_CONST): Remove condition compilation involving HARD_CONST since
8504 hard-reg-set.h is always included.
8505 * regs.h: Don't include hard-reg-set.h or rtl.h.
8506 * cfg.h: Include dominance.h.
8507 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
8508 * backend.h: New. Aggregate commonly used backend header files.
8509 * gimple-ssa.h: Don't include tree-hasher.h.
8510 * ssa.h: New. Aggregate commonly used SSA header files.
8511 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
8512 * sel-sched-ir.h: Flatten includes.
8513 * lra-int.h: Flatten completely.
8514 * sel-sched-dump.h: Flatten includes.
8515 * ira-int.h: Flatten includes.
8516 * gimple-streamer.h: Remove all includes.
8517 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
8518 * resource.h: Flatten hard-reg-set.h and df.h.
8519 * sched-int.h: Flatten insn-arrt.h and df.h.
8520 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
8521 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
8522 * genattrtab.c (write_header): Adjust generated includes.
8523 * genautomata.c (main): Likewise.
8524 * genconditions.c (write-header): Likewise.
8525 * genemit.c (main): Likewise.
8526 * gengtype.c (open_base_files): Likewise.
8527 * genopinit.c (main): Likewise.
8528 * genoutput.c (output_prologue): Likewise.
8529 * genpeep.c (main): Likewise.
8530 * genpreds.c (write_insn_preds_c): Likewise.
8531 * genrecog.c (write_header): Likewise.
8532 * alias.c: Adjust includes.
8534 * attribs.c: Likewise.
8535 * auto-inc-dec.c: Likewise.
8536 * auto-profile.c: Likewise.
8537 * bb-reorder.c: Likewise.
8538 * bt-load.c: Likewise.
8539 * builtins.c: Likewise.
8540 * caller-save.c: Likewise.
8541 * calls.c: Likewise.
8544 * cfganal.c: Likewise.
8545 * cfgbuild.c: Likewise.
8546 * cfgcleanup.c: Likewise.
8547 * cfgexpand.c: Likewise.
8548 * cfghooks.c: Likewise.
8549 * cfgloop.c: Likewise.
8550 * cfgloopanal.c: Likewise.
8551 * cfgloopmanip.c: Likewise.
8552 * cfgrtl.c: Likewise.
8553 * cgraph.c: Likewise.
8554 * cgraphbuild.c: Likewise.
8555 * cgraphclones.c: Likewise.
8556 * cgraphunit.c: Likewise.
8557 * cilk-common.c: Likewise.
8558 * combine-stack-adj.c: Likewise.
8559 * combine.c: Likewise.
8560 * compare-elim.c: Likewise.
8561 * convert.c: Likewise.
8562 * coverage.c: Likewise.
8563 * cppbuiltin.c: Likewise.
8564 * cprop.c: Likewise.
8566 * cselib.c: Likewise.
8567 * data-streamer-in.c: Likewise.
8568 * data-streamer-out.c: Likewise.
8569 * data-streamer.c: Likewise.
8570 * dbxout.c: Likewise.
8573 * debug.c: Likewise.
8574 * df-core.c: Likewise.
8575 * df-problems.c: Likewise.
8576 * df-scan.c: Likewise.
8578 * dojump.c: Likewise.
8579 * dominance.c: Likewise.
8580 * domwalk.c: Likewise.
8581 * double-int.c: Likewise.
8583 * dumpfile.c: Likewise.
8584 * dwarf2asm.c: Likewise.
8585 * dwarf2cfi.c: Likewise.
8586 * dwarf2out.c: Likewise.
8587 * emit-rtl.c: Likewise.
8588 * et-forest.c: Likewise.
8589 * except.c: Likewise.
8590 * explow.c: Likewise.
8591 * expmed.c: Likewise.
8593 * final.c: Likewise.
8594 * fixed-value.c: Likewise.
8595 * fold-const.c: Likewise.
8596 * function.c: Likewise.
8597 * fwprop.c: Likewise.
8598 * gcc-plugin.h: Likewise.
8599 * gcse-common.c: Likewise.
8601 * generic-match-head.c: Likewise.
8602 * ggc-page.c: Likewise.
8603 * gimple-builder.c: Likewise.
8604 * gimple-expr.c: Likewise.
8605 * gimple-fold.c: Likewise.
8606 * gimple-iterator.c: Likewise.
8607 * gimple-low.c: Likewise.
8608 * gimple-match-head.c: Likewise.
8609 * gimple-pretty-print.c: Likewise.
8610 * gimple-ssa-isolate-paths.c: Likewise.
8611 * gimple-ssa-strength-reduction.c: Likewise.
8612 * gimple-streamer-in.c: Likewise.
8613 * gimple-streamer-out.c: Likewise.
8614 * gimple-walk.c: Likewise.
8615 * gimple.c: Likewise.
8616 * gimplify-me.c: Likewise.
8617 * gimplify.c: Likewise.
8618 * godump.c: Likewise.
8619 * graph.c: Likewise.
8620 * graphite-blocking.c: Likewise.
8621 * graphite-dependences.c: Likewise.
8622 * graphite-interchange.c: Likewise.
8623 * graphite-isl-ast-to-gimple.c: Likewise.
8624 * graphite-optimize-isl.c: Likewise.
8625 * graphite-poly.c: Likewise.
8626 * graphite-scop-detection.c: Likewise.
8627 * graphite-sese-to-poly.c: Likewise.
8628 * graphite.c: Likewise.
8629 * haifa-sched.c: Likewise.
8630 * hw-doloop.c: Likewise.
8631 * ifcvt.c: Likewise.
8632 * init-regs.c: Likewise.
8633 * internal-fn.c: Likewise.
8634 * ipa-chkp.c: Likewise.
8635 * ipa-comdats.c: Likewise.
8636 * ipa-cp.c: Likewise.
8637 * ipa-devirt.c: Likewise.
8638 * ipa-icf-gimple.c: Likewise.
8639 * ipa-icf.c: Likewise.
8640 * ipa-inline-analysis.c: Likewise.
8641 * ipa-inline-transform.c: Likewise.
8642 * ipa-inline.c: Likewise.
8643 * ipa-polymorphic-call.c: Likewise.
8644 * ipa-profile.c: Likewise.
8645 * ipa-prop.c: Likewise.
8646 * ipa-pure-const.c: Likewise.
8647 * ipa-ref.c: Likewise.
8648 * ipa-reference.c: Likewise.
8649 * ipa-split.c: Likewise.
8650 * ipa-utils.c: Likewise.
8651 * ipa-visibility.c: Likewise.
8653 * ira-build.c: Likewise.
8654 * ira-color.c: Likewise.
8655 * ira-conflicts.c: Likewise.
8656 * ira-costs.c: Likewise.
8657 * ira-emit.c: Likewise.
8658 * ira-lives.c: Likewise.
8661 * langhooks.c: Likewise.
8663 * loop-doloop.c: Likewise.
8664 * loop-init.c: Likewise.
8665 * loop-invariant.c: Likewise.
8666 * loop-iv.c: Likewise.
8667 * loop-unroll.c: Likewise.
8668 * lower-subreg.c: Likewise.
8669 * lra-assigns.c: Likewise.
8670 * lra-coalesce.c: Likewise.
8671 * lra-constraints.c: Likewise.
8672 * lra-eliminations.c: Likewise.
8673 * lra-lives.c: Likewise.
8674 * lra-remat.c: Likewise.
8675 * lra-spills.c: Likewise.
8677 * lto-cgraph.c: Likewise.
8678 * lto-compress.c: Likewise.
8679 * lto-opts.c: Likewise.
8680 * lto-section-in.c: Likewise.
8681 * lto-section-out.c: Likewise.
8682 * lto-streamer-in.c: Likewise.
8683 * lto-streamer-out.c: Likewise.
8684 * lto-streamer.c: Likewise.
8686 * mode-switching.c: Likewise.
8687 * modulo-sched.c: Likewise.
8688 * omega.c: Likewise.
8689 * omp-low.c: Likewise.
8690 * optabs.c: Likewise.
8691 * opts-global.c: Likewise.
8692 * passes.c: Likewise.
8693 * plugin.c: Likewise.
8694 * postreload-gcse.c: Likewise.
8695 * postreload.c: Likewise.
8696 * predict.c: Likewise.
8697 * print-rtl.c: Likewise.
8698 * print-tree.c: Likewise.
8699 * profile.c: Likewise.
8701 * realmpfr.c: Likewise.
8702 * recog.c: Likewise.
8704 * reg-stack.c: Likewise.
8705 * regcprop.c: Likewise.
8706 * reginfo.c: Likewise.
8707 * regrename.c: Likewise.
8708 * regstat.c: Likewise.
8709 * reload.c: Likewise.
8710 * reload1.c: Likewise.
8711 * reorg.c: Likewise.
8712 * resource.c: Likewise.
8713 * rtl-chkp.c: Likewise.
8714 * rtlanal.c: Likewise.
8715 * rtlhooks.c: Likewise.
8716 * sanopt.c: Likewise.
8717 * sched-deps.c: Likewise.
8718 * sched-ebb.c: Likewise.
8719 * sched-rgn.c: Likewise.
8720 * sched-vis.c: Likewise.
8721 * sdbout.c: Likewise.
8722 * sel-sched-dump.c: Likewise.
8723 * sel-sched-ir.c: Likewise.
8724 * sel-sched.c: Likewise.
8726 * shrink-wrap.c: Likewise.
8727 * simplify-rtx.c: Likewise.
8728 * stack-ptr-mod.c: Likewise.
8730 * stor-layout.c: Likewise.
8731 * store-motion.c: Likewise.
8732 * stringpool.c: Likewise.
8733 * symtab.c: Likewise.
8734 * target-globals.c: Likewise.
8735 * targhooks.c: Likewise.
8736 * toplev.c: Likewise.
8737 * tracer.c: Likewise.
8738 * trans-mem.c: Likewise.
8739 * tree-affine.c: Likewise.
8740 * tree-browser.c: Likewise.
8741 * tree-call-cdce.c: Likewise.
8742 * tree-cfg.c: Likewise.
8743 * tree-cfgcleanup.c: Likewise.
8744 * tree-chkp-opt.c: Likewise.
8745 * tree-chkp.c: Likewise.
8746 * tree-chrec.c: Likewise.
8747 * tree-complex.c: Likewise.
8748 * tree-data-ref.c: Likewise.
8749 * tree-dfa.c: Likewise.
8750 * tree-diagnostic.c: Likewise.
8751 * tree-dump.c: Likewise.
8752 * tree-eh.c: Likewise.
8753 * tree-emutls.c: Likewise.
8754 * tree-if-conv.c: Likewise.
8755 * tree-inline.c: Likewise.
8756 * tree-into-ssa.c: Likewise.
8757 * tree-iterator.c: Likewise.
8758 * tree-loop-distribution.c: Likewise.
8759 * tree-nested.c: Likewise.
8760 * tree-nrv.c: Likewise.
8761 * tree-object-size.c: Likewise.
8762 * tree-outof-ssa.c: Likewise.
8763 * tree-parloops.c: Likewise.
8764 * tree-phinodes.c: Likewise.
8765 * tree-predcom.c: Likewise.
8766 * tree-pretty-print.c: Likewise.
8767 * tree-profile.c: Likewise.
8768 * tree-scalar-evolution.c: Likewise.
8769 * tree-sra.c: Likewise.
8770 * tree-ssa-address.c: Likewise.
8771 * tree-ssa-alias.c: Likewise.
8772 * tree-ssa-ccp.c: Likewise.
8773 * tree-ssa-coalesce.c: Likewise.
8774 * tree-ssa-copy.c: Likewise.
8775 * tree-ssa-copyrename.c: Likewise.
8776 * tree-ssa-dce.c: Likewise.
8777 * tree-ssa-dom.c: Likewise.
8778 * tree-ssa-dse.c: Likewise.
8779 * tree-ssa-forwprop.c: Likewise.
8780 * tree-ssa-ifcombine.c: Likewise.
8781 * tree-ssa-live.c: Likewise.
8782 * tree-ssa-loop-ch.c: Likewise.
8783 * tree-ssa-loop-im.c: Likewise.
8784 * tree-ssa-loop-ivcanon.c: Likewise.
8785 * tree-ssa-loop-ivopts.c: Likewise.
8786 * tree-ssa-loop-manip.c: Likewise.
8787 * tree-ssa-loop-niter.c: Likewise.
8788 * tree-ssa-loop-prefetch.c: Likewise.
8789 * tree-ssa-loop-unswitch.c: Likewise.
8790 * tree-ssa-loop.c: Likewise.
8791 * tree-ssa-math-opts.c: Likewise.
8792 * tree-ssa-operands.c: Likewise.
8793 * tree-ssa-phiopt.c: Likewise.
8794 * tree-ssa-phiprop.c: Likewise.
8795 * tree-ssa-pre.c: Likewise.
8796 * tree-ssa-propagate.c: Likewise.
8797 * tree-ssa-reassoc.c: Likewise.
8798 * tree-ssa-sccvn.c: Likewise.
8799 * tree-ssa-scopedtables.c: Likewise.
8800 * tree-ssa-sink.c: Likewise.
8801 * tree-ssa-strlen.c: Likewise.
8802 * tree-ssa-structalias.c: Likewise.
8803 * tree-ssa-tail-merge.c: Likewise.
8804 * tree-ssa-ter.c: Likewise.
8805 * tree-ssa-threadedge.c: Likewise.
8806 * tree-ssa-threadupdate.c: Likewise.
8807 * tree-ssa-uncprop.c: Likewise.
8808 * tree-ssa-uninit.c: Likewise.
8809 * tree-ssa.c: Likewise.
8810 * tree-ssanames.c: Likewise.
8811 * tree-stdarg.c: Likewise.
8812 * tree-streamer-in.c: Likewise.
8813 * tree-streamer-out.c: Likewise.
8814 * tree-streamer.c: Likewise.
8815 * tree-switch-conversion.c: Likewise.
8816 * tree-tailcall.c: Likewise.
8817 * tree-vect-data-refs.c: Likewise.
8818 * tree-vect-generic.c: Likewise.
8819 * tree-vect-loop-manip.c: Likewise.
8820 * tree-vect-loop.c: Likewise.
8821 * tree-vect-patterns.c: Likewise.
8822 * tree-vect-slp.c: Likewise.
8823 * tree-vect-stmts.c: Likewise.
8824 * tree-vectorizer.c: Likewise.
8825 * tree-vrp.c: Likewise.
8828 * ubsan.c: Likewise.
8829 * valtrack.c: Likewise.
8830 * value-prof.c: Likewise.
8831 * var-tracking.c: Likewise.
8832 * varasm.c: Likewise.
8833 * varpool.c: Likewise.
8834 * vmsdbgout.c: Likewise.
8835 * vtable-verify.c: Likewise.
8837 * wide-int.cc: Likewise.
8838 * xcoffout.c: Likewise.
8839 * config/aarch64/aarch64-builtins.c: Likewise.
8840 * config/aarch64/aarch64.c: Likewise.
8841 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8842 * config/alpha/alpha.c: Likewise.
8843 * config/arc/arc.c: Likewise.
8844 * config/arm/aarch-common.c: Likewise.
8845 * config/arm/arm-builtins.c: Likewise.
8846 * config/arm/arm-c.c: Likewise.
8847 * config/arm/arm.c: Likewise.
8848 * config/avr/avr-c.c: Likewise.
8849 * config/avr/avr-log.c: Likewise.
8850 * config/avr/avr.c: Likewise.
8851 * config/bfin/bfin.c: Likewise.
8852 * config/c6x/c6x.c: Likewise.
8853 * config/cr16/cr16.c: Likewise.
8854 * config/cris/cris.c: Likewise.
8855 * config/darwin-c.c: Likewise.
8856 * config/darwin.c: Likewise.
8857 * config/epiphany/epiphany.c: Likewise.
8858 * config/epiphany/mode-switch-use.c: Likewise.
8859 * config/epiphany/resolve-sw-modes.c: Likewise.
8860 * config/fr30/fr30.c: Likewise.
8861 * config/frv/frv.c: Likewise.
8862 * config/ft32/ft32.c: Likewise.
8863 * config/h8300/h8300.c: Likewise.
8864 * config/i386/i386-c.c: Likewise.
8865 * config/i386/i386.c: Likewise.
8866 * config/i386/msformat-c.c: Likewise.
8867 * config/i386/winnt-cxx.c: Likewise.
8868 * config/i386/winnt-stubs.c: Likewise.
8869 * config/i386/winnt.c: Likewise.
8870 * config/ia64/ia64-c.c: Likewise.
8871 * config/ia64/ia64.c: Likewise.
8872 * config/iq2000/iq2000.c: Likewise.
8873 * config/lm32/lm32.c: Likewise.
8874 * config/m32c/m32c-pragma.c: Likewise.
8875 * config/m32c/m32c.c: Likewise.
8876 * config/m32r/m32r.c: Likewise.
8877 * config/m68k/m68k.c: Likewise.
8878 * config/mcore/mcore.c: Likewise.
8879 * config/mep/mep-pragma.c: Likewise.
8880 * config/mep/mep.c: Likewise.
8881 * config/microblaze/microblaze-c.c: Likewise.
8882 * config/microblaze/microblaze.c: Likewise.
8883 * config/mips/mips.c: Likewise.
8884 * config/mmix/mmix.c: Likewise.
8885 * config/mn10300/mn10300.c: Likewise.
8886 * config/moxie/moxie.c: Likewise.
8887 * config/msp430/msp430-c.c: Likewise.
8888 * config/msp430/msp430.c: Likewise.
8889 * config/nds32/nds32-cost.c: Likewise.
8890 * config/nds32/nds32-fp-as-gp.c: Likewise.
8891 * config/nds32/nds32-intrinsic.c: Likewise.
8892 * config/nds32/nds32-isr.c: Likewise.
8893 * config/nds32/nds32-md-auxiliary.c: Likewise.
8894 * config/nds32/nds32-memory-manipulation.c: Likewise.
8895 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8896 * config/nds32/nds32-predicates.c: Likewise.
8897 * config/nds32/nds32.c: Likewise.
8898 * config/nios2/nios2.c: Likewise.
8899 * config/nvptx/nvptx.c: Likewise.
8900 * config/pa/pa.c: Likewise.
8901 * config/pdp11/pdp11.c: Likewise.
8902 * config/rl78/rl78-c.c: Likewise.
8903 * config/rl78/rl78.c: Likewise.
8904 * config/rs6000/rs6000-c.c: Likewise.
8905 * config/rs6000/rs6000.c: Likewise.
8906 * config/rx/rx.c: Likewise.
8907 * config/s390/s390-c.c: Likewise.
8908 * config/s390/s390.c: Likewise.
8909 * config/sh/sh-c.c: Likewise.
8910 * config/sh/sh-mem.cc: Likewise.
8911 * config/sh/sh.c: Likewise.
8912 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8913 * config/sh/sh_treg_combine.cc: Likewise.
8914 * config/sol2-c.c: Likewise.
8915 * config/sol2-cxx.c: Likewise.
8916 * config/sol2-stubs.c: Likewise.
8917 * config/sol2.c: Likewise.
8918 * config/sparc/sparc-c.c: Likewise.
8919 * config/sparc/sparc.c: Likewise.
8920 * config/spu/spu-c.c: Likewise.
8921 * config/spu/spu.c: Likewise.
8922 * config/stormy16/stormy16.c: Likewise.
8923 * config/tilegx/mul-tables.c: Likewise.
8924 * config/tilegx/tilegx-c.c: Likewise.
8925 * config/tilegx/tilegx.c: Likewise.
8926 * config/tilepro/mul-tables.c: Likewise.
8927 * config/tilepro/tilepro-c.c: Likewise.
8928 * config/tilepro/tilepro.c: Likewise.
8929 * config/v850/v850-c.c: Likewise.
8930 * config/v850/v850.c: Likewise.
8931 * config/vax/vax.c: Likewise.
8932 * config/visium/visium.c: Likewise.
8933 * config/vms/vms-c.c: Likewise.
8934 * config/vms/vms.c: Likewise.
8935 * config/vxworks.c: Likewise.
8936 * config/xtensa/xtensa.c: Likewise.
8938 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
8940 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
8941 Remove operand constraints. Change operand 2 predicate to
8942 nonmemory operand. Limit const_int values to mode bitsize. Only
8943 allow const_int values less than 32 when optimizing for size.
8944 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
8945 Remove operand constraints.
8946 (*bt<mode>): Use SImode for const_int values less than 32.
8947 (regmode): Remove mode attribute.
8949 2015-07-07 Anatoly Sokolov <aesok@post.ru>
8951 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8952 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
8953 moxie_legitimate_address_p): New functions.
8954 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8956 2015-07-07 Tom de Vries <tom@codesourcery.com>
8958 PR tree-optimization/66642
8959 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
8960 header comment. Rename split_edge variable to edge_at_split. Split
8961 exit edge to create new loop exit bb. Insert loop exit phis in new
8964 2015-07-07 Tom de Vries <tom@codesourcery.com>
8966 * tree-cfg.c (get_virtual_phi): New function.
8967 * tree-cfg.h (get_virtual_phi): Declare.
8968 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
8969 (rewrite_virtuals_into_loop_closed_ssa): New function.
8970 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
8972 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
8973 (transform_to_exit_first_loop_alt): Use
8974 rewrite_virtuals_into_loop_closed_ssa.
8976 2015-07-07 Richard Biener <rguenther@suse.de>
8978 * fold-const.c (fold_binary_loc): Move
8979 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
8980 * match.pd: ... here.
8981 Add (X * C1) % C2 -> 0 simplification pattern derived from
8984 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
8987 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
8988 change for target/65249.
8990 2015-07-07 Paulo Matos <pmatos@broadcom.com>
8992 * symtab.c (address_matters_1): Fix typo in comment above.
8993 (can_increase_alignment_p): Likewise.
8995 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8997 * function.c (free_after_compilation): Clear PROP_cfg in
9000 2015-07-07 Richard Biener <rguenther@suse.de>
9002 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
9004 (add_control_edge): Remove excessive vertical space in dumping.
9005 (process_ssa_edge_worklist): Simulate at most one statement and
9006 return whether we did. Do not simulate PHIs if they are in a
9007 BB not yet simulated.
9008 (ssa_propagate): Adjust to always drain the BB worklist whenever
9009 a BB is available there, likewise the VARYING edges list before
9010 the interesting edge list.
9012 2015-07-07 Christian Bruel <christian.bruel@st.com>
9015 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
9017 2015-07-07 Richard Biener <rguenther@suse.de>
9020 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
9023 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9025 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
9026 modes for operands 0 and 3. Use SImode for operands 2 and 3.
9027 Copy operand 0 to a temporary if !ext_register_operand. Remove
9028 ancient extract_bit_field workaround.
9029 (insv<mode>_1): Rename from mov<mode>_insv_1.
9030 (*insvqi): Rename from *movqi_insv_2.
9031 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
9032 for renamed insvsi_1.
9033 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
9035 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
9037 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
9038 call to nvptx_reorg_subreg.
9040 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
9042 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
9043 * graphite-dependencies.c, graphite-interchange.c,
9044 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
9045 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
9048 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
9050 * match.pd: Remove element_mode inside HONOR_*.
9051 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
9052 (~X | X -> -1, ~X ^ X -> -1): Merge.
9053 * tree.c (build_each_one_cst): New function.
9054 * tree.h (build_each_one_cst): Likewise.
9056 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9058 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9061 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
9063 * config.gcc <mips*-*-*>: Add fused-madd.opt.
9064 * config/mips/mips.opt (mfused-madd): Remove.
9065 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
9066 * config/mips/mips.h (TARGET_MIPS8000): New.
9067 (ISA_HAS_FP_MADD4_MSUB4): Remove.
9068 (ISA_HAS_FP_MADDF_MSUBF): Remove.
9069 (ISA_HAS_FP_MADD3_MSUB3): Remove.
9070 (ISA_HAS_NMADD4_NMSUB4): Remove.
9071 (ISA_HAS_NMADD3_NMSUB3): Remove.
9072 (ISA_HAS_FUSED_MADD4): New.
9073 (ISA_HAS_UNFUSED_MADD4): New.
9074 (ISA_HAS_FUSED_MADDF): New.
9075 (ISA_HAS_FUSED_MADD3): New.
9076 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
9077 (*fma<mode>4_madd3) New.
9078 (*fma<mode>4_madd4) New.
9079 (*fma<mode>4_maddf) New.
9081 (*fms<mode>4_msub3) New.
9082 (*fms<mode>4_msub4) New.
9084 (*fnma<mode>4_nmadd3) New.
9085 (*fnma<mode>4_nmadd4) New.
9087 (*fnms<mode>4_nmsub3) New.
9088 (*fnms<mode>4_nmsub4) New.
9089 (*madd4<mode>) Modify to be unfused only.
9090 (*msub4<mode>) Modify to be unfused only.
9091 (*nmadd4<mode>) Modify to be unfused only.
9092 (*nmsub4<mode>) Modify to be unfused only.
9093 (*madd3<mode>) Remove.
9094 (*msub3<mode>) Remove.
9095 (*nmadd3<mode>) Remove.
9096 (*nmsub3<mode>) Remove.
9097 (*nmadd3<mode>_fastmath) Remove.
9098 (*nmsub3<mode>_fastmath) Remove.
9099 (*nmadd4<mode>_fastmath) Update condition.
9100 (*nmsub4<mode>_fastmath) Update condition.
9102 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9105 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
9106 alignment attribute, exploring one level down for records and arrays.
9108 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9110 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
9111 modes for operands 0 and 1. Use SImode for operands 2 and 3.
9112 Copy operand 1 to a temporary if !ext_register_operand. Remove
9113 ancient extract_bit_field workaround.
9114 (*extv<mode>): Rename from *mov<mode>_extv_1.
9115 (*extvqi): Rename from *movqi_extv_1.
9116 (extzv<mode>): Rename from extzv. Use SWI248 modes for
9117 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
9118 to a temporary if !ext_register_operand. Remove ancient
9119 extract_bit_field workaround.
9120 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
9121 (*extzvqi): Rename from *movqi_extzv_2.
9122 (*testqi_ext_3): Remove modes from const_int_operand predicated
9123 operands. Add "n" constraint.
9124 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
9125 operand. Add "J" constraint.
9126 (*btsq, *btrq, *btcq peephole2s): Remove mode from
9127 const_0_to_63 predicated operand.
9128 (regmode): New insn attribute.
9129 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
9130 to nonmemory_operand. Use regmode insn attribute.
9131 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
9132 (*jcc_bt<mode>_mask): Remove mode from operand 3.
9133 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
9134 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
9135 operands. Use "N" constraint instead of "n".
9137 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9139 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
9141 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9144 * config/i386/i386.c (iamcu_cost): New.
9145 (m_IAMCU): Likewise.
9146 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
9147 (processor_target_table): Add an entry for "iamcu".
9148 (processor_alias_table): Likewise.
9149 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
9150 (ix86_adjust_cost): Likewise.
9151 (ia32_multipass_dfa_lookahead): Likewise.
9152 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
9153 * config/i386/x86-tune.def: Updated for m_IAMCU.
9155 2015-07-06 Richard Biener <rguenther@suse.de>
9157 PR tree-optimization/66772
9158 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
9159 values are available in the PHI node BB when there are
9160 still unexecutable edges.
9162 2015-07-06 Richard Biener <rguenther@suse.de>
9164 PR tree-optimization/66767
9165 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
9166 Make sure to build the alignment test on a SSA name without
9167 final alignment info valid only if the alignment test
9170 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
9173 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
9174 loop start when inserting LSETUP.
9176 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9179 * config/i386/i386.c (ix86_option_override_internal): Allow
9180 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
9182 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9184 * read-md.c (decimal_string): Rename to ...
9185 (md_decimal_string): ... this.
9186 (handle_enum): Reflect this.
9188 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9191 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
9193 2015-07-06 Richard Biener <rguenther@suse.de>
9196 * match.pd: Add missing constraint of y to REAL_CST in
9197 REAL_CST - x CMP y to y - CST CMP x simplification.
9199 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
9201 PR tree-optimization/66757
9202 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
9204 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
9205 Sandra Loosemore <sandra@codesourcery.com>
9207 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
9208 Delete extern declaration.
9209 (gprel_constant_p): Add extern declaration.
9210 * config/nios2/constraints.md ("S"): Use gprel_constant_p
9211 instead of nios2_symbol_ref_in_small_data_p.
9212 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
9213 (nios2_symbol_ref_in_small_data_p): Make static.
9214 (gprel_constant_p): Make non-static.
9216 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9218 * doc/fragments.texi (Target Fragment): Convert debian.org
9220 * doc/install.texi (Configuration): Ditto.
9222 2015-07-05 Jakub Jelinek <jakub@redhat.com>
9224 PR tree-optimization/66718
9225 * tree-vect-stmts.c (vectorizable_call): Replace uses of
9226 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
9228 PR tree-optimization/66718
9229 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
9230 vectorizable_load, vectorizable_condition): Move vectype,
9231 nunits, ncopies computation after checking what kind of statement
9234 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9236 * target-insns.def (extv, extzv, insv): New targetm instruction
9238 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
9240 * recog.c (simplify_while_replacing): Likewise.
9242 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9244 * target-insns.def (doloop_begin, doloop_end): New targetm
9245 instruction patterns.
9246 * loop-init.c: Include target.h.
9247 (pass_loop2::gate): Use the new targetm patterns instead of
9248 HAVE_*/gen_* interface.
9249 (pass_rtl_doloop::gate): Likewise.
9250 (pass_rtl_doloop::execute): Remove preprocessor condition.
9251 * hw-doloop.c: Build unconditionally.
9252 * loop-doloop.c: Likewise.
9253 (doloop_optimize): Use the new targetm patterns instead of
9254 HAVE_*/gen_* interface.
9255 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
9256 * modulo-sched.c (doloop_register_get): Likewise.
9258 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9260 * target-insns.def (clear_cache): New targetm instruction pattern.
9261 * builtins.c (expand_builtin___clear_cache): Use it instead of
9262 HAVE_*/gen_* interface.
9264 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9266 * target-insns.def (allocate_stack, check_stack, probe_stack)
9267 (probe_stack_address, split_stack_prologue, split_stack_space_check):
9268 New targetm instruction patterns.
9269 * explow.c (allocate_dynamic_stack_space): Use them instead of
9270 HAVE_*/gen_* interface.
9271 (emit_stack_probe): Likewise.
9272 (probe_stack_range): Likewise.
9273 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9275 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9277 * target-insns.def (stack_protect_set, stack_protect_test): New
9278 targetm instruction patterns.
9279 * cfgexpand.c (stack_protect_prologue): Use them instead of
9280 HAVE_*/gen_* interface.
9281 * function.c (stack_protect_epilogue): Likewise.
9283 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9285 * expr.h (gen_move_insn_uncast): Delete.
9286 * expr.c (gen_move_insn_uncast): Delete.
9288 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9290 * target-insns.def (restore_stack_block, restore_stack_function)
9291 (restore_stack_nonlocal, save_stack_block, save_stack_function)
9292 (save_stack_nonlocal): New targetm instruction patterns.
9293 * builtins.c (expand_builtin_apply): Use them instead of
9294 HAVE_*/gen_* interface.
9295 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
9297 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9299 * target-insns.def (trap): New targetm instruction pattern.
9300 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
9302 * explow.c (allocate_dynamic_stack_space): Likewise.
9303 * ifcvt.c (find_if_header): Likewise.
9305 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9307 * target-insns.def (prefetch): New targetm instruction pattern.
9308 * tree-ssa-loop-prefetch.c: Include targeth.
9309 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
9310 of HAVE_*/gen_* interface.
9311 * builtins.c (expand_builtin_prefetch): Likewise.
9312 * toplev.c (process_options): Likewise.
9314 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9316 * target-insns.def (untyped_call, untyped_return): New targetm
9317 instruction patterns.
9318 * builtins.c (expand_builtin_apply): Use them instead of
9319 HAVE_*/gen_* interface.
9320 (result_vector): Define unconditionally.
9322 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9324 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
9325 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
9326 (nonlocal_goto_receiver): New targetm instruction patterns.
9327 * builtins.c (expand_builtin_setjmp_setup): Use them instead
9328 of HAVE_*/gen_* interface.
9329 (expand_builtin_setjmp_receiver): Likewise.
9330 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
9331 * except.c (expand_dw2_landing_pad_for_region): Likewise.
9333 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9335 * target.def: Add code_for_* hooks.
9336 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
9337 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
9338 * target-insns.def (casesi, tablejump): New targetm instruction
9340 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
9341 (do_tablejump): Likewise.
9342 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
9343 (expand_sjlj_dispatch_table): Likewise.
9344 * targhooks.c (default_case_values_threshold): Likewise.
9346 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
9348 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
9349 Use rtx_insn * instead of rtx.
9350 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
9351 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
9352 (nios2_call_tls_get_addr): Likewise.
9353 (nios2_emit_expensive_div): Likewise.
9354 (nios2_emit_move_sequence): Change return type to bool.
9355 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
9356 Change return type to bool.
9358 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9361 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
9363 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
9366 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
9367 of register_operand. Remove constraint.
9369 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
9371 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
9374 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
9376 * attribs.c (decl_attributes): Guard inform with the return value
9377 of the preceding warning.
9379 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9381 * doc/invoke.texi (moverride): Move to correct section.
9383 2015-07-03 Richard Biener <rguenther@suse.de>
9385 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
9387 (dt_operand::gen_gimple_expr): After valueizing operands
9388 re-canonicalize operand order for commutative tree codes.
9390 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
9393 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
9395 (__crc32w): Likewise.
9396 (__crc32d): Likewise.
9397 (__rdpmc): Likewise.
9398 (__rdtscp): Likewise.
9400 (_rdtscp): Likewise.
9401 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
9404 2015-07-03 Richard Biener <rguenther@suse.de>
9406 * fold-const.c (fold_mathfn_compare): Remove.
9407 (fold_inf_compare): Likewise.
9408 (fold_comparison): Move floating point comparison simplifications...
9409 * match.pd: ... to patterns here. Introduce simple_comparisons
9410 operator list and use it for patterns formerly in fold_comparison.
9412 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9414 PR tree-optimization/66119
9415 * toplev.c (process_options): Don't set up default values for
9416 the sra_max_scalarization_size_{speed,size} parameters.
9417 * tree-sra (analyze_all_variable_accesses): If no values
9418 have been set for the sra_max_scalarization_size_{speed,size}
9419 parameters, call get_move_ratio to get target defaults.
9421 2015-07-03 Richard Biener <rguenther@suse.de>
9423 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
9424 * match.pd: ... here.
9426 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
9429 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
9430 is not actually the default on FreeBSD.
9432 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9434 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
9436 (CMPGE_8HI): Likewise.
9437 (CMPGE_4SI): Likewise.
9438 (CMPGE_2DI): Likewise.
9439 (CMPGE_U16QI): Likewise.
9440 (CMPGE_U8HI): Likewise.
9441 (CMPGE_U4SI): Likewise.
9442 (CMPGE_U2DI): Likewise.
9443 (CMPLE_16QI): Likewise.
9444 (CMPLE_8HI): Likewise.
9445 (CMPLE_4SI): Likewise.
9446 (CMPLE_2DI): Likewise.
9447 (CMPLE_U16QI): Likewise.
9448 (CMPLE_U8HI): Likewise.
9449 (CMPLE_U4SI): Likewise.
9450 (CMPLE_U2DI): Likewise.
9451 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9452 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
9453 ALTIVEC_BUILTIN_VEC_CMPLE.
9454 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
9455 floating-point vector modes.
9456 (vector_nlt<mode>): New define_expand.
9457 (vector_nltu<mode>): Likewise.
9458 (vector_ngt<mode>): Likewise.
9459 (vector_ngtu<mode>): Likewise.
9461 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9463 PR rtl-optimization/66706
9464 * combine.c (make_compound_operation): If an AND of SUBREG of
9465 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
9467 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
9469 * tree-pass.h (make_pass_ch_vect): New.
9470 * passes.def: Add pass_ch_vect just before pass_if_conversion.
9472 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
9473 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
9474 make_pass_ch_vect): New.
9475 (pass_ch): Extend ch_base.
9477 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
9478 (ch_base::copy_headers): ...here.
9480 2015-07-02 Richard Biener <rguenther@suse.de>
9482 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
9483 * fold-const.c (get_pointer_modulus_and_residue): Remove.
9484 (fold_binary_loc): Implement (T)ptr & CST in terms of
9485 get_pointer_alignment_1.
9486 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
9487 Make sure to build the alignment test on a SSA name without
9488 final alignment info valid only after the prologue.
9490 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
9492 * config/cris/cris.md ("epilogue"): Remove condition.
9493 ("prologue"): Ditto.
9495 2015-07-02 Richard Biener <rguenther@suse.de>
9497 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
9498 parameter to record a condition that is false.
9499 (record_conditions): When recording an extra NE_EXPR that is
9500 true also record a EQ_EXPR that is false.
9502 2015-07-02 Bin Cheng <bin.cheng@arm.com>
9504 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
9505 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
9506 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
9507 (set_iv, find_interesting_uses_address, add_candidate_1): New
9508 argument to alloc_iv.
9509 (find_interesting_uses_op, find_interesting_uses_cond): Don't
9510 duplicate struct iv.
9511 (free_loop_data): Don't free struct iv explicitly.
9512 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
9514 2015-07-01 DJ Delorie <dj@redhat.com>
9516 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
9518 (SUPPORTS_DISCRIMINATOR): Define.
9520 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9523 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
9524 there are no CALLs in the same pattern.
9526 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9528 PR rtl-optimization/61047
9529 * rtlanal.c (get_initial_register_offset): New function.
9530 (rtx_addr_can_trap_p_1): Check offsets of stack references.
9532 2015-07-01 Richard Biener <rguenther@suse.de>
9534 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
9535 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
9536 ~X CMP C -> X CMP' ~C to ...
9537 * match.pd: ... patterns here.
9539 2015-07-01 Nick Clifton <nickc@redhat.com>
9541 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
9542 a 16-bit value into a 20-bit memory slot.
9544 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9546 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9547 "aarch64_tiny", "aarch64_small", "aarch64_large",
9548 "aarch64_little_endian", "aarch64_big_endian".
9550 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9552 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
9553 Document "aarch64_small_fpic".
9555 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9557 * configure.ac: Add check for aarch64 assembler -fpic relocation
9559 * configure: Regenerate.
9560 * config.in: Regenerate.
9561 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
9562 to -fPIC if not support of -fpic relocation modifier in assembler.
9564 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9567 * rtl.c (classify_insn): Handle returns in PARALLELs.
9569 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
9572 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
9573 to true if the function is nested and if not optimizing.
9574 (convert_local_omp_clauses): Initialize need_frame to true if the
9575 function contains nested functions and if not optimizing.
9577 2015-07-01 Richard Biener <rguenther@suse.de>
9579 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
9580 (X & Y) ^ Y -> ~X & Y transforms to ...
9581 * match.pd: ... here.
9583 2015-07-01 Richard Biener <rguenther@suse.de>
9585 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
9586 of converts to avoid uninteresting noise from the conversion
9587 simplifying patterns.
9589 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
9591 * config/c6x/c6x.c (try_rename_operands): Do not depend on
9592 gcc_assert evaluating its argument for side-effect.
9594 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
9597 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
9600 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9602 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
9603 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
9604 (hash_scc): Add this_ref_p and ref_p parameters and pass them
9605 to the inner DFS walk.
9607 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9609 * target-insns.def (jump): New targetm instruction pattern.
9610 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
9611 instead of gen_jump.
9612 (fix_up_crossing_landing_pad): Likewise.
9613 (add_labels_and_missing_jumps): Likewise.
9614 (fix_crossing_conditional_branches): Likewise.
9615 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9616 (force_nonfallthru_and_redirect): Likewise.
9617 * cse.c (cse_insn): Likewise.
9618 * expmed.c (expand_divmod): Likewise.
9619 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
9620 * haifa-sched.c (init_before_recovery): Likewise.
9621 (sched_create_recovery_edges): Likewise.
9622 * ifcvt.c (find_cond_trap): Likewise.
9623 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
9624 (expand_float, expand_fix): Likewise.
9625 * stmt.c (emit_jump): Likewise.
9627 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9629 * defaults.h (HAVE_load_multiple, gen_load_multiple)
9630 (HAVE_store_multiple, gen_store_multiple): Delete.
9631 * target-insns.def (load_multiple, store_multiple): New targetm
9632 instruction patterns.
9633 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
9634 of HAVE_*/gen_* interface.
9636 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9638 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
9639 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
9640 (gen_mem_signal_fence): Delete.
9641 * target-insns.def (mem_signal_fence, mem_thread_fence)
9642 (memory_barrier): New targetm instruction patterns.
9643 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
9645 (expand_mem_signal_fence): Likewise.
9647 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9649 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
9650 * target-insns.def (epilogue, prologue, sibcall_prologue): New
9651 targetm instruction patterns.
9652 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
9654 * calls.c (expand_call): Likewise.
9655 * cfgrtl.c (cfg_layout_finalize): Likewise.
9656 * df-scan.c (df_get_entry_block_def_set): Likewise.
9657 (df_get_exit_block_use_set): Likewise.
9658 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
9659 * final.c (final_start_function): Likewise.
9660 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9661 (reposition_prologue_and_epilogue_notes): Likewise.
9662 * reorg.c (find_end_label): Likewise.
9663 * toplev.c (process_options): Likewise.
9665 2015-06-30 David Malcolm <dmalcolm@redhat.com>
9667 * typed-splay-tree.h: New file.
9669 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
9672 * lra-int.h (lra_substitute_pseudo): Add a parameter.
9673 (lra_substitute_pseudo_within_insn): Ditto.
9674 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
9676 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
9677 to lra_substitute_pseudo.
9678 * lra-lives.c (process_bb_lives): Add an argument to
9679 lra_substitute_pseudo_within_insn call.
9680 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
9681 argument to lra_substitute_pseudo and
9682 lra_substitute_pseudo_within_insn calls.
9683 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
9685 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9687 * configure: Regenerated.
9689 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9691 * config.gcc: Support i[34567]86-*-elfiamcu target.
9692 * config/i386/iamcu.h: New.
9693 * config/i386/i386.opt: Add -miamcu.
9694 * doc/invoke.texi: Document -miamcu.
9695 * common/config/i386/i386-common.c (ix86_handle_option): Turn
9696 off x87/MMX/SSE/AVX codegen for -miamcu.
9697 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9698 __iamcu/__iamcu__ for -miamcu.
9699 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
9700 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
9701 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
9702 * config/i386/i386.c (ix86_option_override_internal): Ignore and
9703 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
9704 MCU by default. Default long double to 64-bit for Intel MCU.
9705 Turn on -freg-struct-return for Intel MCU. Issue an error when
9706 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
9708 (function_arg_advance_32): Pass value whose size is no larger
9709 than 8 bytes in registers for Intel MCU.
9710 (function_arg_32): Likewise.
9711 (ix86_return_in_memory): Return value whose size is no larger
9712 than 8 bytes in registers for Intel MCU.
9713 (iamcu_alignment): New function.
9714 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
9716 (ix86_local_alignment): Don't increase alignment for Intel MCU.
9717 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
9720 2015-06-30 Marek Polacek <polacek@redhat.com>
9722 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
9723 both operands of the resulting expression.
9725 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
9726 the final expression with the operand's type and then convert
9727 it to the type of the expression.
9729 2015-06-30 Richard Biener <rguenther@suse.de>
9731 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
9732 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
9733 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
9734 * match.pd: ... to patterns here.
9736 2015-06-30 Richard Biener <rguenther@suse.de>
9738 PR tree-optimization/66704
9739 * tree-vect-data-refs.c (vect_setup_realignment): Use
9740 make_ssa_name for non-SSA name source.
9742 2015-06-30 Jakub Jelinek <jakub@redhat.com>
9745 * omp-low.c (simd_clone_adjust): Handle addressable linear
9746 or uniform parameters or non-gimple type uniform parameters.
9748 2015-06-30 Richard Biener <rguenther@suse.de>
9750 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
9751 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
9752 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
9753 * match.pd: ... here.
9754 Add a few cases of A - B -> A + (-B) when B "easily" negates.
9755 Move (x & y) | x -> x and friends before
9756 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
9758 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9760 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
9761 -mfix-ut699 is not specified.
9762 (leon3_load): Rename into...
9763 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
9766 2015-06-30 Marek Polacek <polacek@redhat.com>
9768 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
9769 * match.pd: ... here.
9771 2015-06-30 Richard Biener <rguenther@suse.de>
9773 * target-insns.def (canonicalize_funcptr_for_compare): Add.
9774 * fold-const.c (build_range_check): Replace uses of
9775 HAVE_canonicalize_funcptr_for_compare.
9776 (fold_widened_comparison): Likewise.
9777 (fold_sign_changed_comparison): Likewise.
9778 * dojump.c: Include "target.h".
9779 (do_compare_and_jump): Replace uses of
9780 HAVE_canonicalize_funcptr_for_compare and
9781 gen_canonicalize_funcptr_for_compare.
9782 * expr.c (do_store_flag): Likewise.
9784 2015-06-30 Tom de Vries <tom@codesourcery.com>
9786 PR tree-optimization/66652
9787 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
9788 max_loop_iterations to determine if nit + 1 overflows.
9790 2015-06-30 Richard Biener <rguenther@suse.de>
9792 * tree-vrp.c (register_edge_assert_for_2): Also register
9793 asserts for dominating conversion results.
9795 2015-06-30 Bin Cheng <bin.cheng@arm.com>
9797 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
9800 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
9803 * configure.ac: Fix filds and fildq test for 64-bit.
9804 * configure: Regenerated.
9806 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
9808 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
9809 (nvptx_reorg): Here. Keep the non-subreg pieces.
9811 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
9813 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
9814 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9816 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
9818 * config/i386/i386.md (*jcc_1): Use %! in asm template.
9819 Set attribute "length_nobnd" instead of "length".
9822 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
9824 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
9826 * config/nios2/nios2.c (nios2_delegitimize_address): Make
9827 assert less restrictive.
9829 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9832 * cgraphunit.c (cgraph_node::finalize_function): Do not call
9833 do_warn_unused_parameter.
9834 * function.c (do_warn_unused_parameter): Move from here.
9835 * function.h (do_warn_unused_parameter): Do not declare.
9837 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9840 * gcc.target/arm/armv-sync-comp-swap.c: New.
9841 * gcc.target/arm/armv-sync-op-acquire.c: New.
9842 * gcc.target/arm/armv-sync-op-full.c: New.
9843 * gcc.target/arm/armv-sync-op-release.c: New.
9845 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9848 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
9849 initial acquire barrier with final barrier.
9851 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9854 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
9855 initial acquire barrier with final barrier.
9857 2015-06-29 Richard Henderson <rth@redhat.com>
9859 * config/i386/constraints.md (Bf): New constraint.
9860 * config/i386/i386-c.c (ix86_target_macros): Define
9861 __GCC_ASM_FLAG_OUTPUTS__.
9862 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
9864 * doc/extend.texi (FlagOutputOperands): Document them.
9866 2015-06-29 Jiong Wang <jiong.wang@arm.com>
9868 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
9869 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
9871 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
9872 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
9873 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
9874 (aarch64_symbol_context): Ditto.
9875 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
9876 and use new pattern name.
9877 (aarch64_expand_mov_immediate): Ditto.
9878 (aarch64_print_operand): Ditto.
9879 (aarch64_classify_tls_symbol): Ditto.
9881 2015-06-29 Marek Polacek <polacek@redhat.com>
9882 Marc Glisse <marc.glisse@inria.fr>
9884 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
9885 * match.pd: ... pattern here.
9887 2015-06-29 Tom de Vries <tom@codesourcery.com>
9889 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
9892 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9894 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
9895 feature description, split out the native option, add a link to
9896 the feature documentation, rearrange and slightly rewrite text.
9897 (Aarch64 options, -mcpu): Likewise.
9898 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
9899 +rdma implies Adv. SIMD.
9901 2015-06-29 Marek Polacek <polacek@redhat.com>
9904 * function.c (stack_protect_epilogue): Remove a cast to int.
9905 * doc/invoke.texi: Update -Wswitch-bool description.
9907 2015-06-29 Richard Biener <rguenther@suse.de>
9909 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
9910 * fold-const.c (fold_binary_loc): Move &A - &B simplification
9911 via ptr_difference_const ...
9912 * match.pd: ... here.
9913 When matching (X ^ Y) == Y also match with swapped operands.
9915 2015-06-29 Richard Biener <rguenther@suse.de>
9917 * lto-streamer.h (LTO_major_version): Bump to 5.
9919 2015-06-29 Richard Biener <rguenther@suse.de>
9921 PR tree-optimization/66677
9922 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
9923 STMT_VINFO_VEC_STMT clobbering less strict.
9925 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
9928 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
9929 division, compute max and min when value ranges for dividend and
9930 divisor are available.
9932 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
9933 Sandra Loosemore <sandra@codesourcery.com>
9935 * regrename.h (regrename_do_replace): Change to return bool.
9936 * regrename.c (rename_chains): Check return value of
9938 (regrename_do_replace): Re-validate the modified insns and
9940 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
9941 Update to match rename_chains changes.
9942 * config/c6x/c6x.c (try_rename_operands): Assert that
9943 regrename_do_replace returns true.
9945 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
9947 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
9948 operand 2 here. Use copy_addr_to_reg to copy non-index
9949 register operand 2 to a temporary.
9950 (<mode>_stx): Ditto for operand 1.
9951 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
9952 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
9953 (ix86_store_bounds): Ditto.
9955 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
9957 * print-tree.c (print_node) [TREE_VEC]: Print its length.
9959 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
9961 * gimple.c (gimple_call_set_fndecl): Remove.
9962 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
9963 build1_loc directly instead of build_fold_addr_expr_loc.
9965 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
9967 * hash-map.h (hash_map::traverse): Use the definition of the
9968 Key typedef rather than the typedef itself.
9970 2015-06-26 Martin Jambor <mjambor@suse.cz>
9973 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
9974 NULL instead of calling dump_enabled_p.
9976 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9978 * config/aarch64/aarch64.opt: (override): New.
9979 * doc/invoke.texi (override): Document.
9980 * config/aarch64/aarch64.c (aarch64_flag_desc): New
9981 (aarch64_fusible_pairs): Likewise.
9982 (aarch64_tuning_flags): Likewise.
9983 (aarch64_tuning_override_function): Likewise.
9984 (aarch64_tuning_override_functions): Likewise.
9985 (aarch64_parse_one_option_token): Likewise.
9986 (aarch64_parse_boolean_options): Likewise.
9987 (aarch64_parse_fuse_string): Likewise.
9988 (aarch64_parse_tune_string): Likewise.
9989 (aarch64_parse_one_override_token): Likewise.
9990 (aarch64_parse_override_string): Likewise.
9991 (aarch64_override_options): Parse the -override string if it
9994 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9996 * config/aarch64/aarch64-protos.h (tune_params): Remove
9998 (aarch64_tune_params): Remove const, change to no longer be
10000 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
10001 change to no longer be a pointer, initialize to generic_tunings.
10002 (aarch64_min_divisions_for_recip_mul): Change dereference of
10003 aarch64_tune_params to member access.
10004 (aarch64_reassociation_width): Likewise.
10005 (aarch64_rtx_mult_cost): Likewise.
10006 (aarch64_address_cost): Likewise.
10007 (aarch64_branch_cost): Likewise.
10008 (aarch64_rtx_costs): Likewise.
10009 (aarch64_register_move_cost): Likewise.
10010 (aarch64_memory_move_cost): Likewise.
10011 (aarch64_sched_issue_rate): Likewise.
10012 (aarch64_builtin_vectorization_cost): Likewise.
10013 (aarch64_override_options): Take a copy of the selected tuning
10014 struct in to aarch64_tune_params, rather than just setting
10015 a pointer, change dereferences of aarch64_tune_params to member
10017 (aarch64_override_options_after_change): Change dereferences of
10018 aarch64_tune_params to member access.
10019 (aarch64_macro_fusion_p): Likewise.
10020 (aarch_macro_fusion_pair_p): Likewise.
10021 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
10023 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10025 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
10026 (aarch64_tune_flags): Likewise.
10027 (AARCH64_TUNE_FMA_STEERING): Likewise.
10028 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
10029 to AARCH64_FL_USE_FMA_STEERING_PASS.
10030 (cortex-a57.cortex-a53): Likewise.
10031 (cortex-a72): Use cortexa72_tunings.
10032 (cortex-a72.cortex-a53): Likewise.
10033 (exynos-m1): Likewise.
10034 * config/aarch64/aarch64-protos.h (tune_params): Add
10035 a field: extra_tuning_flags.
10036 * config/aarch64/aarch64-tuning-flags.def: New.
10037 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
10038 (aarch64_extra_tuning_flags): Likewise.
10039 (aarch64_tune_params): Declare here.
10040 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
10041 (cortexa53_tunings): Likewise.
10042 (cortexa57_tunings): Likewise.
10043 (thunderx_tunings): Likewise.
10044 (xgene1_tunings): Likewise.
10045 (cortexa72_tunings): New.
10046 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
10047 (gate): Check against aarch64_tune_params.
10048 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
10051 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10053 * config/aarch64/aarch64-fusion-pairs.def: New.
10054 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
10055 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
10056 aarch64_fusion_pairs.
10057 (AARCH64_FUSE_MOV_MOVK): Likewise.
10058 (AARCH64_FUSE_ADRP_ADD): Likewise.
10059 (AARCH64_FUSE_MOVK_MOVK): Likewise.
10060 (AARCH64_FUSE_ADRP_LDR): Likewise.
10061 (AARCH64_FUSE_CMP_BRANCH): Likewise.
10063 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10065 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
10066 SYMBOL_SMALL_GOT_28K.
10067 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
10068 relocation modifiers.
10069 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
10070 (ldr_got_small_28k_<mode>): New.
10071 (ldr_got_small_28k_sidi): New.
10072 * config/aarch64/iterators.md (got_modifier): New mode iterator.
10073 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
10074 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10075 SYMBOL_SMALL_GOT_28K.
10076 (aarch64_rtx_costs): Add costs for new instruction sequences.
10077 (initialize_aarch64_code_model): Initialize new model.
10078 (aarch64_classify_symbol): Recognize new model and new symbol classification.
10079 (aarch64_asm_preferred_eh_data_format): Support new model.
10080 (aarch64_load_symref_appropriately): Generate new instruction
10081 sequences for -fpic.
10082 (TARGET_USE_PSEUDO_PIC_REG): New definition.
10083 (aarch64_use_pseudo_pic_reg): New function.
10085 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10087 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10088 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
10089 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
10090 (aarch64_expand_mov_immediate): Ditto.
10091 (aarch64_print_operand): Ditto.
10092 (aarch64_classify_symbol): Ditto.
10094 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
10096 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
10098 2015-06-26 Bin Cheng <bin.cheng@arm.com>
10101 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
10102 assertion failed. Remove assertion itself.
10104 2015-06-26 Richard Biener <rguenther@suse.de>
10106 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
10107 and -A CMP CST -> A CMP -CST which is redundant with a pattern
10109 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
10110 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
10111 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
10112 * match.pd: ... patterns here.
10114 2015-06-26 Marek Polacek <polacek@redhat.com>
10116 * match.pd ((x | y) & ~(x & y) -> x ^ y,
10117 (x | y) & (~x ^ y) -> x & y): New patterns.
10119 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10121 * rtl.h (emit): Add an optional boolean parameter to control
10122 whether barriers are emitted.
10123 * emit-rtl.c (emit): Likewise.
10124 * gensupport.c (get_emit_function): Return null rather than "emit".
10125 * genemit.c (gen_emit_seq): Handle the null return value.
10126 Don't emit barriers after the final instruction in the sequence.
10127 * gentarget-def.c (main): Don't emit barriers after the instruction.
10129 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10131 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
10132 TARGET_UNIFIED_ASM.
10134 2015-06-26 Richard Biener <rguenther@suse.de>
10136 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
10138 2015-06-26 Richard Biener <rguenther@suse.de>
10140 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
10141 irrespective on whether the inner operation has a single use
10142 of both off are constant.
10144 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
10145 Segher Boessenkool <segher@kernel.crashing.org>
10148 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
10149 before doing PUT_MODE or PUT_CODE on operands to avoid
10150 in-place RTX modification.
10152 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10154 * gentarget-def.c (def_target_insn): Cast return of strtol to
10157 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10159 * gimple.h (gimple_call_set_fn): Move inline function.
10160 * gimple.c (gimple_call_set_fn): Relocate here.
10162 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
10166 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
10167 the replacement insn will work.
10169 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10171 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
10174 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10176 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
10177 * cgraph.h: Include ipa-ref.h and plugin-api.h.
10178 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
10179 (symtab_node::address_can_be_compared_p): Move function.
10180 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
10182 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
10183 * auto-profile.c: Likewise.
10184 * bb-reorder.c: Likewise.
10185 * builtins.c: Likewise.
10186 * calls.c: Likewise.
10187 * cfgexpand.c: Likewise.
10188 * cgraphbuild.c: Likewise.
10189 * cgraphclones.c: Likewise.
10190 * cgraphunit.c: Likewise.
10191 * combine.c: Likewise.
10192 * coverage.c: Likewise.
10193 * data-streamer-in.c: Likewise.
10194 * data-streamer-out.c: Likewise.
10195 * data-streamer.c: Likewise.
10196 * dbxout.c: Likewise.
10197 * dwarf2out.c: Likewise.
10198 * except.c: Likewise.
10199 * expr.c: Likewise.
10200 * final.c: Likewise.
10201 * fold-const.c: Likewise.
10202 * ggc-page.c: Likewise.
10203 * gimple-fold.c: Likewise.
10204 * gimple-iterator.c: Likewise.
10205 * gimple-pretty-print.c: Likewise.
10206 * gimple-streamer-in.c: Likewise.
10207 * gimple-streamer-out.c: Likewise.
10208 * gimple.c: Likewise.
10209 * gimplify.c: Likewise.
10210 * ipa-chkp.c: Likewise.
10211 * ipa-comdats.c: Likewise.
10212 * ipa-cp.c: Likewise.
10213 * ipa-devirt.c: Likewise.
10214 * ipa-icf-gimple.c: Likewise.
10215 * ipa-icf.c: Likewise.
10216 * ipa-inline-analysis.c: Likewise.
10217 * ipa-inline-transform.c: Likewise.
10218 * ipa-inline.c: Likewise.
10219 * ipa-polymorphic-call.c: Likewise.
10220 * ipa-profile.c: Likewise.
10221 * ipa-prop.c: Likewise.
10222 * ipa-pure-const.c: Likewise.
10223 * ipa-ref.c: Likewise.
10224 * ipa-reference.c: Likewise.
10225 * ipa-split.c: Likewise.
10226 * ipa-utils.c: Likewise.
10227 * ipa-visibility.c: Likewise.
10229 * langhooks.c: Likewise.
10230 * lto-cgraph.c: Likewise.
10231 * lto-compress.c: Likewise.
10232 * lto-opts.c: Likewise.
10233 * lto-section-in.c: Likewise.
10234 * lto-section-out.c: Likewise.
10235 * lto-streamer-in.c: Likewise.
10236 * lto-streamer-out.c: Likewise.
10237 * lto-streamer.c: Likewise.
10238 * omp-low.c: Likewise.
10239 * opts-global.c: Likewise.
10240 * passes.c: Likewise.
10241 * predict.c: Likewise.
10242 * print-tree.c: Likewise.
10243 * profile.c: Likewise.
10245 * sanopt.c: Likewise.
10246 * stor-layout.c: Likewise.
10247 * symtab.c: Likewise.
10248 * toplev.c: Likewise.
10249 * trans-mem.c: Likewise.
10250 * tree-cfg.c: Likewise.
10251 * tree-chkp.c: Likewise.
10252 * tree-eh.c: Likewise.
10253 * tree-emutls.c: Likewise.
10254 * tree-inline.c: Likewise.
10255 * tree-nested.c: Likewise.
10256 * tree-parloops.c: Likewise.
10257 * tree-pretty-print.c: Likewise.
10258 * tree-profile.c: Likewise.
10259 * tree-sra.c: Likewise.
10260 * tree-ssa-alias.c: Likewise.
10261 * tree-ssa-live.c: Likewise.
10262 * tree-ssa-loop-ivcanon.c: Likewise.
10263 * tree-ssa-loop-ivopts.c: Likewise.
10264 * tree-ssa-pre.c: Likewise.
10265 * tree-ssa-sccvn.c: Likewise.
10266 * tree-ssa-strlen.c: Likewise.
10267 * tree-ssa-structalias.c: Likewise.
10268 * tree-streamer-in.c: Likewise.
10269 * tree-streamer-out.c: Likewise.
10270 * tree-streamer.c: Likewise.
10271 * tree-switch-conversion.c: Likewise.
10272 * tree-tailcall.c: Likewise.
10273 * tree-vect-data-refs.c: Likewise.
10274 * tree-vect-stmts.c: Likewise.
10275 * tree-vectorizer.c: Likewise.
10276 * tree.c: Likewise.
10277 * tsan.c: Likewise.
10278 * ubsan.c: Likewise.
10279 * value-prof.c: Likewise.
10280 * varasm.c: Likewise.
10281 * varpool.c: Likewise.
10282 * config/arm/arm.c: Likewise.
10283 * config/bfin/bfin.c: Likewise.
10284 * config/c6x/c6x.c: Likewise.
10285 * config/cris/cris.c: Likewise.
10286 * config/darwin-c.c: Likewise.
10287 * config/darwin.c: Likewise.
10288 * config/i386/i386.c: Likewise.
10289 * config/i386/winnt.c: Likewise.
10290 * config/microblaze/microblaze.c: Likewise.
10291 * config/mips/mips.c: Likewise.
10292 * config/rs6000/rs6000.c: Likewise.
10293 * config/rx/rx.c: Likewise.
10294 * config/s390/s390.c: Likewise.
10295 * config/tilegx/mul-tables.c: Likewise.
10297 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10299 * config/aarch64/aarch64.c, config/alpha/alpha.c,
10300 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
10301 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
10302 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
10303 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10304 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10305 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10306 config/microblaze/microblaze.c, config/mips/mips.c,
10307 config/mmix/mmix.c, config/mn10300/mn10300.c,
10308 config/moxie/moxie.c, config/msp430/msp430.c,
10309 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10310 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10311 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10312 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10313 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10314 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10315 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
10316 target-def.h include.
10317 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
10319 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10321 * Makefile.in (TARGET_DEF): Add target-insns.def.
10322 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
10323 (build/gentarget-def.o): New rule.
10324 (genprogrtl): Add target-def.
10325 * target-insns.def, gentarget-def.c: New files.
10326 * target.def: Add targetm.have_* and targetm.gen_* hooks,
10327 based on the contents of target-insns.def.
10328 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
10329 (HAVE_return, gen_return): Delete.
10330 * target-def.h: Include insn-target-def.h.
10331 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
10332 instead of direct calls. Rely on them to do the appropriate assertions.
10333 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
10334 (convert_jumps_to_returns): Use targetm interface instead of
10336 (thread_prologue_and_epilogue_insns): Likewise.
10337 * reorg.c (find_end_label, dbr_schedule): Likewise.
10338 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
10339 * shrink-wrap.c (convert_to_simple_return): Likewise.
10340 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
10342 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10344 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
10345 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10346 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
10347 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
10348 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10349 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10350 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10351 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
10352 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
10353 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10354 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10355 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10356 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10357 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10358 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10359 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
10362 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10364 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
10365 (unbounded_int_hashmap_traits::key_type): Likewise.
10366 * hash-map.h (hash_map): Get the key type from the traits.
10367 * hash-traits.h (default_hash_traits): By default, inherit from the
10368 template parameter.
10369 * alias.c (alias_set_traits): Delete.
10370 (alias_set_entry_d::children): Use alias_set_hash as the first
10371 template parameter.
10372 (record_alias_subset): Update accordingly.
10373 * except.c (tree_hash_traits): Delete.
10374 (type_to_runtime_map): Use tree_hash as the first template parameter.
10375 (init_eh): Update accordingly.
10376 * genmatch.c (capture_id_map_hasher): Delete.
10377 (cid_map_t): Use nofree_string_hash as first template parameter.
10378 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
10379 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10380 Use symbol_compare_hash as the first template parameter in
10381 subdivide_hash_map.
10382 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
10383 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
10384 template parameter.
10385 * passes.c (pass_registry_hasher): Delete.
10386 (name_to_pass_map): Use nofree_string_hash as the first template
10388 (register_pass_name): Update accordingly.
10389 * sanopt.c (sanopt_tree_map_traits): Delete.
10390 (sanopt_tree_triplet_map_traits): Delete.
10391 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
10392 template parameter.
10393 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
10394 the first template parameter.
10395 * sese.c (rename_map_hasher): Delete.
10396 (rename_map_type): Use tree_ssa_name_hash as the first template
10398 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
10399 (function_summary::m_map): Use map_hash as the first template
10401 (function_summary::release): Update accordingly.
10402 * tree-if-conv.c (phi_args_hash_traits): Delete.
10403 (predicate_scalar_phi): Use tree_operand_hash as the first template
10404 parameter to phi_arg_map.
10405 * tree-inline.h (dependence_hasher): Delete.
10406 (copy_body_data::dependence_map): Use dependence_hash as the first
10407 template parameter.
10408 * tree-inline.c (remap_dependence_clique): Update accordingly.
10409 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
10410 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
10412 (addr_stridxptr): Update accordingly.
10413 * value-prof.c (profile_id_traits): Delete.
10414 (cgraph_node_map): Use profile_id_hash as the first template
10416 (init_node_map): Update accordingly.
10417 * config/alpha/alpha.c (string_traits): Delete.
10418 (machine_function::links): Use nofree_string_hash as the first
10419 template parameter.
10420 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
10421 * config/m32c/m32c.c (pragma_traits): Delete.
10422 (pragma_htab): Use nofree_string_hash as the first template parameter.
10423 (m32c_note_pragma_address): Update accordingly.
10424 * config/mep/mep.c (pragma_traits): Delete.
10425 (pragma_htab): Use nofree_string_hash as the first template parameter.
10426 (mep_note_pragma_flag): Update accordingly.
10427 * config/mips/mips.c (mips16_flip_traits): Delete.
10428 (mflip_mips16_htab): Use nofree_string_hash as the first template
10430 (mflip_mips16_use_mips16_p): Update accordingly.
10431 (local_alias_traits): Delete.
10432 (mips16_local_aliases): Use nofree_string_hash as the first template
10434 (mips16_local_alias): Update accordingly.
10436 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10438 * hash-map-traits.h (default_hashmap_traits): Delete.
10440 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10442 * hash-map-traits.h (unbounded_hashmap_traits): New class.
10443 (unbounded_int_hashmap_traits): Likewise.
10444 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
10446 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10448 * ipa-icf.h (symbol_compare_hash): New class.
10449 (symbol_compare_hashmap_traits): Use it.
10450 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
10451 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
10452 (mem_alloc_description::reverse_mem_map_t): Remove redundant
10453 default_hashmap_traits.
10454 * sanopt.c (sanopt_tree_triplet_hash): New class.
10455 (sanopt_tree_triplet_map_traits): Use it.
10457 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10459 * gengtype-parse.c (require_template_declaration): Allow '+' in
10460 template parameters. Consolidate cases.
10461 * hash-traits.h (int_hash): New class.
10462 * alias.c (alias_set_hash): New structure.
10463 (alias_set_traits): Use it.
10464 * symbol-summary.h (function_summary::map_hash): New class.
10465 (function_summary::summary_hashmap_traits): Use it.
10466 * tree-inline.h (dependence_hash): New class.
10467 (dependence_hasher): Use it.
10468 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
10469 * value-prof.c (profile_id_hash): New class.
10470 (profile_id_traits): Use it.
10472 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10474 * config/mips/mips.c (mips16_flip_traits): Use it.
10475 (local_alias_traits, mips16_local_aliases): Convert from a map of
10476 rtxes to a map of symbol names.
10477 (mips16_local_alias): Update accordingly.
10479 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10481 * hash-traits.h (string_hash, nofree_string_hash): New classes.
10482 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
10483 * passes.c (pass_registry_hasher): Likewise.
10484 * config/alpha/alpha.c (string_traits): Likewise.
10485 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
10486 * config/m32c/m32c.c (pragma_traits): Likewise.
10487 * config/mep/mep.c (pragma_traits): Likewise.
10489 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10491 * tree-hash-traits.h (tree_hash): New class.
10492 * except.c: Include tree-hash-traits.h.
10493 (tree_hash_traits): Use tree_hash.
10495 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10497 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
10498 * sese.c: Include tree-hash-traits.h.
10499 (rename_map_hasher): Use tree_ssa_name_hasher.
10501 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10503 * tree-hash-traits.h (tree_decl_hash): New class.
10504 * tree-ssa-strlen.c: Include tree-hash-traits.h.
10505 (stridxlist_hash_traits): Use tree_decl_hash.
10507 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10509 * tree-hash-traits.h: New file.
10510 (tree_operand_hash): New class.
10511 * sanopt.c: Include tree-hash-traits.h.
10512 (sanopt_tree_map_traits): Use tree_operand_hash.
10513 * tree-if-conv.c: Include tree-hash-traits.h.
10514 (phi_args_hash_traits): Use tree_operand_hash.
10515 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
10516 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
10518 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10520 * hash-map-traits.h: Include hash-traits.h.
10521 (simple_hashmap_traits): New class.
10522 * mem-stats.h (hash_map): Change the default traits to
10523 simple_hashmap_traits<default_hash_traits<Key> >.
10525 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10527 * hash-table.h: Update comments.
10529 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10531 * hash-traits.h (default_hash_traits): New structure.
10532 * hash-set.h (default_hashset_traits): Delete.
10533 (hash_set): Use default_hash_traits<Key> instead of
10534 default_hashset_traits. Delete hash_entry type and use Key directly.
10535 * ipa-devirt.c (pair_traits): Delete.
10536 (default_hash_traits <type_pair>): Override.
10537 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
10538 (odr_types_equivalent_p, add_type_duplicate): Likewise.
10540 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10542 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
10544 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10546 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
10547 (has_is_empty, is_empty_helper): Delete.
10548 (has_mark_deleted, mark_deleted_helper): Delete.
10549 (has_mark_empty, mark_empty_helper): Delete.
10550 (hash_table::is_deleted): Call the Descriptor unconditionally.
10551 (hash_table::is_empty): Likewise.
10552 (hash_table::mark_deleted): Likewise.
10553 (hash_table::mark_empty): Likewise.
10555 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10557 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
10558 redundant typedefs and members.
10559 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
10560 redundant typedefs.
10561 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
10562 * ipa-devirt.c (odr_name_hasher): Likewise.
10563 (polymorphic_call_target_hasher): Likewise.
10564 * ira-costs.c (cost_classes_hasher): Likewise.
10565 * statistics.c (stats_counter_hasher): Likewise.
10566 * trans-mem.c (log_entry_hasher): Likewise.
10567 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10568 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
10569 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
10570 * var-tracking.c (variable_hasher): Likewise.
10571 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
10572 Remove redundant typedefs and members.
10574 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10576 * hash-traits.h (ggc_cache_hasher): Rename to...
10577 (ggc_cache_remove): ...this and remove typedefs.
10578 (ggc_cache_ptr_hash): New class.
10579 * hash-table.h: Update commentary.
10580 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
10581 rather than ggc_cache_hasher.
10582 (const_wide_int_hasher, reg_attr_hasher): Likewise.
10583 (const_double_hasher, const_fixed_hasher): Likewise.
10584 * function.c (insn_cache_hasher): Likewise.
10585 * trans-mem.c (tm_wrapper_hasher): Likewise.
10586 * tree.h (tree_decl_map_cache_hasher): Likewise.
10587 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
10588 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
10589 * ubsan.c (tree_type_map_cache_hasher): Likewise.
10590 * varasm.c (tm_clone_hasher): Likewise.
10591 * config/i386/i386.c (dllimport_hasher): Likewise.
10592 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
10593 (tree_hasher): Likewise.
10595 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10597 * hash-traits.h (ggc_hasher): Rename to...
10598 (ggc_remover): ...this and remove typedefs.
10599 (ggc_cache_hasher): Update accordingly. Add typedefs.
10600 (ggc_ptr_hash): New class.
10601 * hash-table.h: Update comment.
10602 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
10604 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
10605 (tree_descriptor_hasher): Likewise.
10606 * cgraph.c (function_version_hasher): Likewise.
10607 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
10608 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
10609 (dw_loc_list_hasher, addr_hasher): Likewise.
10610 * function.h (used_type_hasher): Likewise.
10611 * function.c (temp_address_hasher): Likewise.
10612 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
10613 * libfuncs.h (libfunc_hasher): Likewise.
10614 * lto-streamer.h (decl_state_hasher): Likewise.
10615 * optabs.c (libfunc_decl_hasher): Likewise.
10616 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
10617 * varasm.c (section_hasher, object_block_hasher): Likewise.
10618 (const_rtx_desc_hasher): Likewise.
10619 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
10620 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
10622 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10624 * hash-traits.h (free_ptr_hash): New class.
10625 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
10626 rather than typed_free_remove. Remove redudant typedefs.
10627 (external_ref_hasher): Likewise.
10628 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
10629 (ehspec_hasher): Likewise.
10630 * ggc-common.c (saving_hasher): Likewise.
10631 * gimplify.c (gimplify_hasher): Likewise.
10632 * haifa-sched.c (delay_i2_hasher): Likewise.
10633 * loop-invariant.c (invariant_expr_hasher): Likewise.
10634 * loop-iv.c (biv_entry_hasher): Likewise.
10635 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
10636 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
10637 * tree-cfg.c (locus_discrim_hasher): Likewise.
10638 * tree-eh.c (finally_tree_hasher): Likewise.
10639 * tree-into-ssa.c (var_info_hasher): Likewise.
10640 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
10641 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
10642 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
10643 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
10644 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
10645 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
10646 (shared_bitmap_hasher): Likewise.
10647 * tree-ssa-threadupdate.c (redirection_data): Likewise.
10648 * tree-vectorizer.h (peel_info_hasher): Likewise.
10649 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
10650 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
10652 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10654 * hash-table.h: Update comments.
10655 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
10656 (nofree_ptr_hash): New class.
10657 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
10658 than typed_noop_remove. Remove redudant typedefs.
10659 * attribs.c (attribute_hasher): Likewise.
10660 * cfg.c (bb_copy_hasher): Likewise.
10661 * cselib.c (cselib_hasher): Likewise.
10662 * dse.c (invariant_group_base_hasher): Likewise.
10663 * dwarf2cfi.c (trace_info_hasher): Likewise.
10664 * dwarf2out.c (macinfo_entry_hasher): Likewise.
10665 (comdat_type_hasher, loc_list_hasher): Likewise.
10666 * gcse.c (pre_ldst_expr_hasher): Likewise.
10667 * genmatch.c (id_base): Likewise.
10668 * genrecog.c (test_pattern_hasher): Likewise.
10669 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
10670 * haifa-sched.c (delay_i1_hasher): Likewise.
10671 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
10672 * ipa-icf.h (congruence_class_group_hash): Likewise.
10673 * ipa-profile.c (histogram_hash): Likewise.
10674 * ira-color.c (allocno_hard_regs_hasher): Likewise.
10675 * lto-streamer.h (string_slot_hasher): Likewise.
10676 * lto-streamer.c (tree_entry_hasher): Likewise.
10677 * plugin.c (event_hasher): Likewise.
10678 * postreload-gcse.c (expr_hasher): Likewise.
10679 * store-motion.c (st_expr_hasher): Likewise.
10680 * tree-sra.c (uid_decl_hasher): Likewise.
10681 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
10682 (ssa_name_var_hash): Likewise.
10683 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
10684 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
10685 * tree-ssa-pre.c (pre_expr_d): Likewise.
10686 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
10687 * vtable-verify.h (registration_hasher): Likewise.
10688 * vtable-verify.c (vtbl_map_hasher): Likewise.
10689 * config/arm/arm.c (libcall_hasher): Likewise.
10690 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
10691 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
10692 * config/sol2.c (comdat_entry_hasher): Likewise.
10693 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
10694 (print_fold_checksum, fold_checksum_tree): Likewise.
10695 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
10696 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
10697 (fold_build_call_array_loc): Likewise.
10698 * tree-ssa-ccp.c (gimple_htab): Likewise.
10699 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
10700 rather than pointer_type.
10702 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10704 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
10705 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
10707 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10709 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
10710 (ggc_hasher::ggc_mx): Likewise.
10711 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
10712 that duplicate ggc_hasher ones.
10714 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10716 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
10717 (gt_cleare_cache): Check here for deleted and empty entries.
10718 Replace handle_cache_entry with a call to keep_cache_entry.
10719 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
10720 (ggc_cache_hasher::keep_cache_entry): New function.
10721 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
10722 (tm_wrapper_hasher::keep_cache_entry): New function.
10723 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
10724 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10725 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
10726 (type_cache_hasher::keep_cache_entry): New function.
10727 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
10728 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10729 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
10730 (tree_type_map_cache_hasher::keep_cache_entry): New function.
10731 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
10732 (tm_clone_hasher::keep_cache_entry): New function.
10733 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
10734 (dllimport_hasher::keep_cache_entry): New function.
10736 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10738 * hash-table.h: Include hash-traits.h.
10739 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
10740 (ggc_cache_hasher): Move to...
10741 * hash-traits.h: ...this new file.
10743 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10745 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
10746 struct cl_optimization.
10747 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
10748 * tree.c (make_node_stat): Allocate cl_optimization struct.
10749 (copy_node_stat): Allocate and copy cl_optimization struct.
10751 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10753 * function.h (struct incoming_args): Move struct.
10754 (pass_by_reference, reference_callee_copied): Remove prototypes.
10755 * emit-rtl.h (struct incoming_args): Relocate struct here.
10756 * calls.h (pass_by_reference, reference_callee_copied): Relocate
10758 * function.c (pass_by_reference, reference_callee_copied): Move.
10759 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
10760 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
10761 * ipa-chkp.c: Include calls.h.
10763 2015-06-25 Andrew Macleod <amacleod@redhat.com>
10765 * alias.h (alias_set_type): Move typedef.
10766 * coretypes.h (alias_set_type): Relocate typedef here.
10767 * rtl.h: Don't include alias.h.
10769 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10771 * cgraph.h (cgraph_rtl_info): Move to rtl.h
10772 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
10774 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
10775 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
10777 * calls.c: Include hard-reg-set.h before rtl.h.
10780 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10781 Vladimir Makarov <vmakarov@redhat.com>
10783 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
10786 2015-06-25 Richard Biener <rguenther@suse.de>
10788 * fold-const.c (fold_binary_loc): Move simplification of
10789 (X <<>> C1) & C2 ...
10790 * match.pd: ... here.
10792 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
10794 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
10796 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10798 * match.pd: Add patterns for vec_conds between 1 and 0.
10800 2015-06-25 Richard Biener <rguenther@suse.de>
10802 * tree-vect-stmts.c (vectorizable_conversion): Do not set
10803 STMT_VINFO_VEC_STMT for SLP.
10804 (vectorizable_store): Likewise.
10805 (vectorizable_load): Likewise.
10806 (vect_transform_stmt): Catch SLP vectorization clobbering
10807 STMT_VINFO_VEC_STMT.
10809 2015-06-25 Richard Biener <rguenther@suse.de>
10811 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
10813 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
10814 cleanup resulting dead code and parameters.
10815 (vect_transform_slp_perm_load): Adjust.
10817 2015-06-25 Nick Clifton <nickc@redhat.com>
10819 * config/bfin/bfin.c (bfin_expand_prologue): Set
10820 current_function_static_stack_size if flag_stack_usage_info is set.
10821 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10822 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
10823 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10824 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
10826 2015-06-25 Tom de Vries <tom@codesourcery.com>
10828 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
10829 comment that the generated IV is unsigned.
10831 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10834 * config/arm/arm.c (arm_dbx_register_number): Return
10835 DWARF_FRAME_REGISTERS by default.
10837 2015-06-25 Tom de Vries <tom@codesourcery.com>
10839 * dominance.c (calculate_dominance_info): Fix verify_dominators call
10840 argument. Call verify_dominator when reusing dominator info.
10842 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
10845 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
10846 an additional element of the unspec vector. Modify indices
10848 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
10849 * config/sh/sh.c (prepare_move_operands): Pass incremented
10850 const_int to gen_GOTaddr2picreg.
10851 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
10853 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10855 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
10856 Condition on TARGET_FLOAT.
10858 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10860 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
10863 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10865 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
10867 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
10868 aarch64_err_no_fpadvsimd.
10870 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
10871 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
10872 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
10873 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
10874 Turn error into assert, test TARGET_FLOAT.
10875 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
10878 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
10881 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
10883 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
10885 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
10887 2015-06-24 Renlin Li <renlin.li@arm.com>
10889 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
10890 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
10892 2015-06-24 Richard Biener <rguenther@suse.de>
10894 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
10896 (lower_opt_convert): Support lowering of conditional view_convert.
10897 (parser::parse_operation): Likewise.
10898 (parser::parse_for): Likewise.
10900 2015-06-24 Renlin Li <renlin.li@arm.com>
10902 * varasm.c (emit_local): Use unsigned int for align variable.
10904 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10907 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
10908 for negative numbers.
10910 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10912 PR rtl-optimization/66306
10913 * reload.c (find_reloads): Swap the match_dup info for
10914 commutative operands.
10916 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10918 * config/s390/vx-builtins.md
10919 ("vec_scatter_element<mode>_<non_vec_int>")
10920 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
10921 attribute with bhfgq.
10923 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10925 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
10927 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10929 * config/s390/s390-builtin-types.def: Add flag to indicate the
10930 options under which the function type is needed.
10931 * config/s390/s390-builtins.def: Add flag to indicate the options
10932 under which the builtin is enabled.
10933 * config/s390/s390-builtins.h: Add flags parameter to macro
10935 (bflags_for_builtin): New function.
10936 (flags_for_builtin): Renamed to ...
10937 (opflags_for_builtin): ... this.
10938 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
10939 flags_for_builtin to bflags_for_builtin and
10940 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
10941 * config/s390/s390.c: Add initialization of bflags_builtin and
10942 opflags_builtin arrays.
10943 Remove code for flags_builtin.
10944 (s390_init_builtins): Only create builtin function types if one of
10945 their flags is active.
10946 Only create builtins if all of their flags are active.
10947 (s390_expand_builtin): Rename flags_for_builtin to
10948 opflags_for_builtin.
10950 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10952 * config/s390/vecintrin.h: Remove internal builtins.
10954 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10956 * config/s390/s390.c (s390_secondary_reload): Fix check for
10957 GENERAL_REGS register class.
10959 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10961 * config/s390/s390.c (s390_support_vector_misalignment): Call
10962 default implementation for !TARGET_VX.
10964 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10966 * config/s390/s390.c (s390_legitimate_constant_p): Add
10969 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10971 * config/s390/s390.c (s390_vector_abi): New variable definition.
10972 (s390_check_type_for_vector_abi): New function.
10973 (TARGET_ASM_FILE_END): New macro definition.
10974 (s390_asm_file_end): New function.
10975 (s390_function_arg): Call s390_check_type_for_vector_abi.
10976 (s390_gimplify_va_arg): Likewise.
10977 * configure: Regenerate.
10978 * configure.ac: Check for .gnu_attribute Binutils feature.
10980 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
10983 * config/bfin/bfin.c (hwloop_optimize): Initialize
10984 JUMP_LABEL for newly created jump.
10986 2015-06-23 Tristan Gingold <gingold@adacore.com>
10988 * collect-utils.c (collect_wait): Unlink the response file here
10990 (do_wait): ...here.
10991 (utils_cleanup): ...and here.
10993 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
10995 * df-scan.c: Don't include target-def.h.
10996 * targhooks.c: Likewise.
10997 * config/arm/arm-c.c: Likewise.
10998 * config/i386/i386-c.c: Likewise.
10999 * config/nds32/nds32-cost.c: Likewise.
11000 * config/nds32/nds32-fp-as-gp.c: Likewise.
11001 * config/nds32/nds32-intrinsic.c: Likewise.
11002 * config/nds32/nds32-isr.c: Likewise.
11003 * config/nds32/nds32-md-auxiliary.c: Likewise.
11004 * config/nds32/nds32-memory-manipulation.c: Likewise.
11005 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11006 * config/nds32/nds32-predicates.c: Likewise.
11008 2015-06-23 Richard Biener <rguenther@suse.de>
11010 PR tree-optimization/66636
11011 * tree-vect-stmts.c (vectorizable_store): Properly compute the
11012 def type for further defs for strided stores.
11014 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
11016 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
11017 conditional selects.
11018 (setcc_int<mode>, setcc_float<mode>): Reformat.
11020 2015-06-23 Marek Polacek <polacek@redhat.com>
11022 * match.pd ((x + y) - (x | y) -> x & y,
11023 (x + y) - (x & y) -> x | y): New patterns.
11025 2015-06-23 Ludovic Courtès <ludo@gnu.org>
11028 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
11029 '-dynamic-linker' within %{!shared: ...}.
11031 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
11034 * config/i386/predicates.md (addsub_vm_operator): New predicate.
11035 (addsub_vs_operator): Ditto.
11036 (addsub_vs_parallel): Ditto.
11037 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
11038 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
11039 Put minus RTX before plus and adjust vec_merge selector.
11040 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
11041 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
11042 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
11043 (addsub vec_merge splitters): New combiner splitters.
11044 (addsub vec_select/vec_concat splitters): Ditto.
11046 2015-06-23 Bin Cheng <bin.cheng@arm.com>
11048 PR tree-optimization/66449
11049 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
11050 POINTER_PLUS_EXPR for pointers.
11052 2015-06-23 Alan Modra <amodra@gmail.com>
11054 * rtlanal.c (commutative_operand_precedence): Correct comments.
11055 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
11056 declaration. Return an int. Distinguish REG,REG return from
11058 (struct simplify_plus_minus_op_data): Make local to function.
11059 (simplify_plus_minus): Don't set canonicalized if merely sorting
11060 registers. Avoid packing ops if nothing changes. White space fixes.
11062 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
11064 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
11065 -fdump-ada-spec is passed but not if -fsyntax-only is.
11067 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
11070 * lra-lives.c (process_bb_lives): Check insn copying the same
11071 reload pseudo and don't create a copy for it.
11073 2015-06-22 Tom de Vries <tom@codesourcery.com>
11075 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
11078 2015-06-22 Tom de Vries <tom@codesourcery.com>
11080 * builtins.def (DEF_GOMP_BUILTIN): Test
11081 'flag_tree_parallelize_loops > 1' instead of
11082 'flag_tree_parallelize_loops'. Test flag_cilkplus.
11084 2015-06-22 Tom de Vries <tom@codesourcery.com>
11086 * dominance.c (calculate_dominance_info): Verify dominators if
11089 2015-06-22 Marek Polacek <polacek@redhat.com>
11091 * match.pd ((x ^ y) ^ (x | y) -> x & y,
11092 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
11093 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
11094 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
11096 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
11099 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
11100 cost of embedded comparison.
11102 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11105 * config/rs6000/predicates.md (altivec_register_operand): Permit
11106 virtual stack registers.
11107 (vsx_register_operand): Likewise.
11108 (vfloat_operand): Likewise.
11109 (vint_operand): Likewise.
11110 (vlogical_operand): Likewise.
11112 2015-06-22 Richard Biener <rguenther@suse.de>
11114 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
11115 and single_scalar_iteration_cost members.
11116 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
11117 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
11118 (vect_get_single_scalar_iteration_cost): Remove.
11119 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11120 Use LOOP_VINFO_SCALAR_ITERATION_COST.
11121 * tree-vect-loop.c (destroy_loop_vec_info): Free
11123 (vect_get_single_scalar_iteration_cost): Compute result into
11124 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
11125 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
11126 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
11127 (vect_estimate_min_profitable_iters): Use them.
11129 2015-06-22 Christian Bruel <christian.bruel@st.com>
11132 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
11133 (TARGET_INSERT_ATTRIBUTES): Define.
11134 (thumb_flipper): New var.
11135 * config/arm/arm.opt (-mflip-thumb): New switch.
11137 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11138 Martin Liska <mliska@suse.cz>
11141 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
11142 construction of arg_types.
11143 (sem_function::sem_function): Likewise.
11144 (sem_function::~sem_function): Remove destruction of arg_types.
11145 (sem_function::compatible_parm_types_p): New function.
11146 (sem_function::equals_wpa): Reorg matching of return values
11147 and parameter types.
11148 (sem_function::equals_private): Reorg mathcing of argument types.
11149 (sem_function::parse_tree_args): Remove.
11150 * ipa-icf.h (init_wpa): Do not call it.
11151 (parse_tree_args): Remove.
11152 (compatible_parm_types_p): Declare.
11153 (result_type): Remove.
11154 (arg_types): Remove.
11156 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11159 * ipa-polymorphic-call.c
11160 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
11161 initializing alias oracle; fix formating; set base_alias_set if it
11164 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
11166 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
11167 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
11168 (find_inc): Likewise.
11169 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
11171 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11172 * df-scan.c (df_swap_refs): Remove.
11173 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
11174 * dominance.c (link_roots): Use std::swap instead of manually swapping.
11175 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
11176 * fold-const.c (fold_relational_const): Likewise.
11177 * genattrtab.c (simplify_test_exp): Likewise.
11178 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
11179 gimple_simplify): Likewise.
11180 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
11181 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
11182 * ipa-devirt.c (add_type_duplicate): Likewise.
11183 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
11184 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
11185 * lra.c (lra_create_copy): Likewise.
11186 * lto-streamer-out.c (DFS::DFS): Likewise.
11187 * modulo-sched.c (get_sched_window): Likewise.
11188 * omega.c (omega_pretty_print_problem): Likewise.
11189 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
11190 * reload1.c (reloads_unique_chain_p): Likewise.
11191 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
11192 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
11194 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
11196 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
11197 predicate_mem_writes): Likewise.
11198 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
11199 * tree-predcom.c (combine_chains): Likewise.
11200 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
11201 refs_may_alias_p_1): Likewise.
11202 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
11203 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
11204 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
11205 number_of_iterations_cond): Likewise.
11206 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
11207 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11208 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
11209 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
11210 * tree-vrp.c (extract_range_from_binary_expr_1,
11211 extract_range_from_unary_expr_1): Likewise.
11213 2015-06-20 Marek Polacek <polacek@redhat.com>
11215 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
11217 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
11220 * config/sh/sh.c (prepare_move_operands): Replace subreg
11221 index term with R0 for base and index addressing.
11223 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
11225 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
11227 (movsf_aarch64): Change condition from register_operand to
11228 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
11229 load1. Change type for alternative 7 to store1.
11230 (movdf_aarch64): Likewise.
11232 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
11234 * config/vax/vax.md: Adjust sign/zero extend patterns to
11235 handle SUBREGs in operands[1].
11237 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11239 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
11240 of manually swapping.
11241 (expand_vec_perm_interleave2): Likewise.
11243 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
11245 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
11246 reuse bounds created for abnormal ssa names.
11248 2015-06-19 Jakub Jelinek <jakub@redhat.com>
11250 * config/nvptx/nvptx.md (allocate_stack): Rename to...
11251 (allocate_stack_<mode>): ... this, and add :P on both
11252 match_operand and unspec.
11253 (allocate_stack): New expander.
11255 2015-06-19 Christian Bruel <christian.bruel@st.com>
11259 * config/arm/arm.c (arm_set_current_function): Handle
11260 explicit default options.
11262 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11264 * config/i386/i386.md (*movsicc_noc_zext): New insn.
11265 (zero-extended cmove with mem peephole2): New pattern.
11266 (cmove with mem peephole2): Merge patterns.
11268 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11270 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
11272 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
11274 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
11275 * config/mips/mips.md (*madd4<mode>): Ditto.
11276 (*nmadd3<mode>) Ditto.
11277 (*nmadd4<mode>_fastmath): Ditto.
11278 (*nmadd3<mode>_fastmath): Ditto.
11279 (*nmsub4<mode>): Ditto.
11280 (*nmsub3<mode>): Ditto.
11281 (*nmsub4<mode>_fastmath): Ditto.
11282 (*nmsub3<mode>_fastmath): Ditto.
11284 2015-06-18 Michael Matz <matz@suse.de>
11286 PR middle-end/66253
11287 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
11288 grouped strided stores.
11289 (vectorizable_load): Don't use the DR from first_stmt in
11290 the non-SLP grouped strided case.
11292 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11295 * function.c (assign_bounds): Add arguments assign_regs,
11296 assign_special, assign_bt.
11297 (assign_parms): For vararg functions handle bounds in BT
11298 and special slots after incoming vararg bounds.
11300 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11302 PR middle-end/66568
11303 * cfgexpand.c (expand_return): Handle missing bounds.
11304 (expand_gimple_stmt_1): Likewise.
11305 * tree-chkp.c (chkp_expand_zero_bounds): New.
11306 * tree-chkp.h (chkp_expand_zero_bounds): New.
11308 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11310 PR middle-end/66567
11311 * ipa-chkp.c (chkp_maybe_create_clone): Require
11312 functions to be instrumentable.
11313 * tree-chkp.c (chkp_replace_function_pointer): Use
11314 chkp_instrumentable_p instead of attribute check.
11316 2015-06-18 Richard Biener <rguenther@suse.de>
11318 PR tree-optimization/66510
11319 * tree-vect-stmts.c (vectorizable_load): Properly compute the
11320 number of vector loads for SLP permuted loads.
11321 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
11322 check the stride for loop vectorization.
11323 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
11324 vectorization factor.
11325 (vect_analyze_group_access): If the group size is not a power
11326 of two require a epilogue loop.
11327 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
11328 compute and optimizing and alias test pruning after final
11329 vectorization factor computation.
11330 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
11332 (vect_transform_slp_perm_load): Properly compute the original
11333 number of vector load stmts.
11335 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11337 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
11338 "unlikely character , in @var" warning.
11340 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
11342 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
11343 (ix86_function_arg_advance): Ditto.
11344 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
11346 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11348 * function.h (struct rtl_data): Remove struct and accessor macros.
11349 * emit-rtl.h (struct rtl_data): Relocate to here.
11350 * Makefile.in (GTFILES): Add emit-rtl.h.
11351 * df-core.c: Include emit-rtl.h.
11352 * genattrtab.c: Likewise.
11353 * genconditions.c: Likewise.
11354 * genpreds.c: Likewise.
11355 * genrecog.c: Likewise.
11356 * regcprop.c: Likewise.
11357 * resource.c: Likewise.
11358 * sched-rgn.c: Likewise.
11359 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11360 * config/i386/winnt.c: Likewise.
11362 2015-06-17 Jakub Jelinek <jakub@redhat.com>
11364 PR middle-end/66429
11365 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
11366 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
11367 and has_force_vectorize_loops flags from cfun into
11369 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
11370 if simduid is non-NULL.
11371 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
11372 * passes.def (pass_simduid_cleanup): Add new pass after loop
11374 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
11375 indirection from htab argument's type.
11376 (shrink_simd_arrays): New function.
11377 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
11378 Don't call adjust_simduid_builtins if there are no loops.
11379 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
11380 (pass_simduid_cleanup::execute): New method.
11381 (make_pass_simduid_cleanup): New function.
11383 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
11385 * tree-core.h (tree_target_option): Make opts field a pointer to a
11386 cl_target_option instead of an instance of the struct.
11387 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
11389 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
11390 TARGET_OPTION_NODE.
11391 (copy_node_stat): Allocate and copy struct cl_target_option.
11393 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11395 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
11396 Remove conditional exposure of prototypes.
11397 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
11398 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
11399 definitions in tree.h with functions.
11400 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
11402 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
11404 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
11406 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
11407 (*cmp<mode>_signed): ... this.
11408 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
11409 (*cmp<mode>_unsigned): ... this. Remove %b.
11411 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11413 * coretypes.h: Include input.h and as-a.h.
11414 * rtl.h: Include input.h and as-a.h for generator files.
11415 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
11416 * vec.c: Don't include diagnostic-core.h.
11417 * alias.c: Do not include input.h, line-map.h or is-a.h.
11418 * asan.c: Likewise.
11419 * attribs.c: Likewise.
11420 * auto-inc-dec.c: Likewise.
11421 * auto-profile.c: Likewise.
11422 * bb-reorder.c: Likewise.
11423 * bt-load.c: Likewise.
11424 * builtins.c: Likewise.
11425 * caller-save.c: Likewise.
11426 * calls.c: Likewise.
11427 * ccmp.c: Likewise.
11429 * cfganal.c: Likewise.
11430 * cfgbuild.c: Likewise.
11431 * cfgcleanup.c: Likewise.
11432 * cfgexpand.c: Likewise.
11433 * cfghooks.c: Likewise.
11434 * cfgloop.c: Likewise.
11435 * cfgloop.h: Likewise.
11436 * cfgloopanal.c: Likewise.
11437 * cfgloopmanip.c: Likewise.
11438 * cfgrtl.c: Likewise.
11439 * cgraph.c: Likewise.
11440 * cgraphbuild.c: Likewise.
11441 * cgraphclones.c: Likewise.
11442 * cgraphunit.c: Likewise.
11443 * cilk-common.c: Likewise.
11444 * combine-stack-adj.c: Likewise.
11445 * combine.c: Likewise.
11446 * compare-elim.c: Likewise.
11447 * convert.c: Likewise.
11448 * coverage.c: Likewise.
11449 * cppbuiltin.c: Likewise.
11450 * cprop.c: Likewise.
11452 * cselib.c: Likewise.
11453 * data-streamer-in.c: Likewise.
11454 * data-streamer-out.c: Likewise.
11455 * data-streamer.c: Likewise.
11456 * dbxout.c: Likewise.
11459 * debug.c: Likewise.
11460 * df-core.c: Likewise.
11461 * df-problems.c: Likewise.
11462 * df-scan.c: Likewise.
11465 * diagnostic-core.h: Likewise.
11466 * diagnostic.c: Likewise.
11467 * dojump.c: Likewise.
11468 * dominance.c: Likewise.
11469 * domwalk.c: Likewise.
11470 * double-int.c: Likewise.
11472 * dumpfile.c: Likewise.
11473 * dumpfile.h: Likewise.
11474 * dwarf2asm.c: Likewise.
11475 * dwarf2cfi.c: Likewise.
11476 * dwarf2out.c: Likewise.
11477 * emit-rtl.c: Likewise.
11478 * et-forest.c: Likewise.
11479 * except.c: Likewise.
11480 * explow.c: Likewise.
11481 * expmed.c: Likewise.
11482 * expr.c: Likewise.
11483 * final.c: Likewise.
11484 * fixed-value.c: Likewise.
11485 * fold-const.c: Likewise.
11486 * function.c: Likewise.
11487 * fwprop.c: Likewise.
11488 * gcc-plugin.h: Likewise.
11489 * gcse.c: Likewise.
11490 * generic-match-head.c: Likewise.
11491 * ggc-page.c: Likewise.
11492 * gimple-builder.c: Likewise.
11493 * gimple-expr.c: Likewise.
11494 * gimple-fold.c: Likewise.
11495 * gimple-iterator.c: Likewise.
11496 * gimple-low.c: Likewise.
11497 * gimple-match-head.c: Likewise.
11498 * gimple-pretty-print.c: Likewise.
11499 * gimple-ssa-isolate-paths.c: Likewise.
11500 * gimple-ssa-strength-reduction.c: Likewise.
11501 * gimple-streamer-in.c: Likewise.
11502 * gimple-streamer-out.c: Likewise.
11503 * gimple-streamer.h: Likewise.
11504 * gimple-walk.c: Likewise.
11505 * gimple.c: Likewise.
11506 * gimplify-me.c: Likewise.
11507 * gimplify.c: Likewise.
11508 * godump.c: Likewise.
11509 * graph.c: Likewise.
11510 * graphite-blocking.c: Likewise.
11511 * graphite-dependences.c: Likewise.
11512 * graphite-interchange.c: Likewise.
11513 * graphite-isl-ast-to-gimple.c: Likewise.
11514 * graphite-optimize-isl.c: Likewise.
11515 * graphite-poly.c: Likewise.
11516 * graphite-scop-detection.c: Likewise.
11517 * graphite-sese-to-poly.c: Likewise.
11518 * graphite.c: Likewise.
11519 * haifa-sched.c: Likewise.
11520 * hw-doloop.c: Likewise.
11521 * ifcvt.c: Likewise.
11522 * init-regs.c: Likewise.
11523 * input.c: Likewise.
11524 * internal-fn.c: Likewise.
11525 * ipa-chkp.c: Likewise.
11526 * ipa-comdats.c: Likewise.
11527 * ipa-cp.c: Likewise.
11528 * ipa-devirt.c: Likewise.
11529 * ipa-icf-gimple.c: Likewise.
11530 * ipa-icf.c: Likewise.
11531 * ipa-inline-analysis.c: Likewise.
11532 * ipa-inline-transform.c: Likewise.
11533 * ipa-inline.c: Likewise.
11534 * ipa-polymorphic-call.c: Likewise.
11535 * ipa-profile.c: Likewise.
11536 * ipa-prop.c: Likewise.
11537 * ipa-pure-const.c: Likewise.
11538 * ipa-ref.c: Likewise.
11539 * ipa-reference.c: Likewise.
11540 * ipa-split.c: Likewise.
11541 * ipa-utils.c: Likewise.
11542 * ipa-visibility.c: Likewise.
11544 * ira-build.c: Likewise.
11545 * ira-color.c: Likewise.
11546 * ira-conflicts.c: Likewise.
11547 * ira-costs.c: Likewise.
11548 * ira-emit.c: Likewise.
11549 * ira-lives.c: Likewise.
11551 * jump.c: Likewise.
11552 * langhooks.c: Likewise.
11554 * loop-doloop.c: Likewise.
11555 * loop-init.c: Likewise.
11556 * loop-invariant.c: Likewise.
11557 * loop-iv.c: Likewise.
11558 * loop-unroll.c: Likewise.
11559 * lower-subreg.c: Likewise.
11560 * lra-assigns.c: Likewise.
11561 * lra-coalesce.c: Likewise.
11562 * lra-constraints.c: Likewise.
11563 * lra-eliminations.c: Likewise.
11564 * lra-lives.c: Likewise.
11565 * lra-remat.c: Likewise.
11566 * lra-spills.c: Likewise.
11568 * lto-cgraph.c: Likewise.
11569 * lto-compress.c: Likewise.
11570 * lto-opts.c: Likewise.
11571 * lto-section-in.c: Likewise.
11572 * lto-section-out.c: Likewise.
11573 * lto-streamer-in.c: Likewise.
11574 * lto-streamer-out.c: Likewise.
11575 * lto-streamer.c: Likewise.
11577 * mode-switching.c: Likewise.
11578 * modulo-sched.c: Likewise.
11579 * omega.c: Likewise.
11580 * omp-low.c: Likewise.
11581 * optabs.c: Likewise.
11582 * opts-global.c: Likewise.
11583 * opts.h: Likewise.
11584 * passes.c: Likewise.
11585 * plugin.c: Likewise.
11586 * postreload-gcse.c: Likewise.
11587 * postreload.c: Likewise.
11588 * predict.c: Likewise.
11589 * pretty-print.h: Likewise.
11590 * print-rtl.c: Likewise.
11591 * print-tree.c: Likewise.
11592 * profile.c: Likewise.
11593 * real.c: Likewise.
11594 * realmpfr.c: Likewise.
11595 * recog.c: Likewise.
11597 * reg-stack.c: Likewise.
11598 * regcprop.c: Likewise.
11599 * reginfo.c: Likewise.
11600 * regrename.c: Likewise.
11601 * regstat.c: Likewise.
11602 * reload.c: Likewise.
11603 * reload1.c: Likewise.
11604 * reorg.c: Likewise.
11605 * resource.c: Likewise.
11606 * rtl-chkp.c: Likewise.
11607 * rtl-error.c: Likewise.
11608 * rtlanal.c: Likewise.
11609 * rtlhooks.c: Likewise.
11610 * sanopt.c: Likewise.
11611 * sched-deps.c: Likewise.
11612 * sched-ebb.c: Likewise.
11613 * sched-rgn.c: Likewise.
11614 * sched-vis.c: Likewise.
11615 * sdbout.c: Likewise.
11616 * sel-sched-dump.c: Likewise.
11617 * sel-sched-ir.c: Likewise.
11618 * sel-sched.c: Likewise.
11619 * sese.c: Likewise.
11620 * shrink-wrap.c: Likewise.
11621 * simplify-rtx.c: Likewise.
11622 * stack-ptr-mod.c: Likewise.
11623 * statistics.c: Likewise.
11624 * stmt.c: Likewise.
11625 * stor-layout.c: Likewise.
11626 * store-motion.c: Likewise.
11627 * streamer-hooks.c: Likewise.
11628 * stringpool.c: Likewise.
11629 * symtab.c: Likewise.
11630 * target-globals.c: Likewise.
11631 * targhooks.c: Likewise.
11632 * toplev.c: Likewise.
11633 * tracer.c: Likewise.
11634 * trans-mem.c: Likewise.
11635 * tree-affine.c: Likewise.
11636 * tree-browser.c: Likewise.
11637 * tree-call-cdce.c: Likewise.
11638 * tree-cfg.c: Likewise.
11639 * tree-cfgcleanup.c: Likewise.
11640 * tree-chkp-opt.c: Likewise.
11641 * tree-chkp.c: Likewise.
11642 * tree-chrec.c: Likewise.
11643 * tree-complex.c: Likewise.
11644 * tree-data-ref.c: Likewise.
11645 * tree-dfa.c: Likewise.
11646 * tree-diagnostic.c: Likewise.
11647 * tree-dump.c: Likewise.
11648 * tree-eh.c: Likewise.
11649 * tree-emutls.c: Likewise.
11650 * tree-if-conv.c: Likewise.
11651 * tree-inline.c: Likewise.
11652 * tree-into-ssa.c: Likewise.
11653 * tree-iterator.c: Likewise.
11654 * tree-loop-distribution.c: Likewise.
11655 * tree-nested.c: Likewise.
11656 * tree-nrv.c: Likewise.
11657 * tree-object-size.c: Likewise.
11658 * tree-outof-ssa.c: Likewise.
11659 * tree-parloops.c: Likewise.
11660 * tree-phinodes.c: Likewise.
11661 * tree-predcom.c: Likewise.
11662 * tree-pretty-print.c: Likewise.
11663 * tree-profile.c: Likewise.
11664 * tree-scalar-evolution.c: Likewise.
11665 * tree-sra.c: Likewise.
11666 * tree-ssa-address.c: Likewise.
11667 * tree-ssa-alias.c: Likewise.
11668 * tree-ssa-ccp.c: Likewise.
11669 * tree-ssa-coalesce.c: Likewise.
11670 * tree-ssa-copy.c: Likewise.
11671 * tree-ssa-copyrename.c: Likewise.
11672 * tree-ssa-dce.c: Likewise.
11673 * tree-ssa-dom.c: Likewise.
11674 * tree-ssa-dse.c: Likewise.
11675 * tree-ssa-forwprop.c: Likewise.
11676 * tree-ssa-ifcombine.c: Likewise.
11677 * tree-ssa-live.c: Likewise.
11678 * tree-ssa-loop-ch.c: Likewise.
11679 * tree-ssa-loop-im.c: Likewise.
11680 * tree-ssa-loop-ivcanon.c: Likewise.
11681 * tree-ssa-loop-ivopts.c: Likewise.
11682 * tree-ssa-loop-manip.c: Likewise.
11683 * tree-ssa-loop-niter.c: Likewise.
11684 * tree-ssa-loop-prefetch.c: Likewise.
11685 * tree-ssa-loop-unswitch.c: Likewise.
11686 * tree-ssa-loop.c: Likewise.
11687 * tree-ssa-math-opts.c: Likewise.
11688 * tree-ssa-operands.c: Likewise.
11689 * tree-ssa-phiopt.c: Likewise.
11690 * tree-ssa-phiprop.c: Likewise.
11691 * tree-ssa-pre.c: Likewise.
11692 * tree-ssa-propagate.c: Likewise.
11693 * tree-ssa-reassoc.c: Likewise.
11694 * tree-ssa-sccvn.c: Likewise.
11695 * tree-ssa-scopedtables.c: Likewise.
11696 * tree-ssa-sink.c: Likewise.
11697 * tree-ssa-strlen.c: Likewise.
11698 * tree-ssa-structalias.c: Likewise.
11699 * tree-ssa-tail-merge.c: Likewise.
11700 * tree-ssa-ter.c: Likewise.
11701 * tree-ssa-threadedge.c: Likewise.
11702 * tree-ssa-threadupdate.c: Likewise.
11703 * tree-ssa-uncprop.c: Likewise.
11704 * tree-ssa-uninit.c: Likewise.
11705 * tree-ssa.c: Likewise.
11706 * tree-ssanames.c: Likewise.
11707 * tree-stdarg.c: Likewise.
11708 * tree-streamer-in.c: Likewise.
11709 * tree-streamer-out.c: Likewise.
11710 * tree-streamer.c: Likewise.
11711 * tree-switch-conversion.c: Likewise.
11712 * tree-tailcall.c: Likewise.
11713 * tree-vect-data-refs.c: Likewise.
11714 * tree-vect-generic.c: Likewise.
11715 * tree-vect-loop-manip.c: Likewise.
11716 * tree-vect-loop.c: Likewise.
11717 * tree-vect-patterns.c: Likewise.
11718 * tree-vect-slp.c: Likewise.
11719 * tree-vect-stmts.c: Likewise.
11720 * tree-vectorizer.c: Likewise.
11721 * tree-vrp.c: Likewise.
11722 * tree.c: Likewise.
11723 * tsan.c: Likewise.
11724 * ubsan.c: Likewise.
11725 * valtrack.c: Likewise.
11726 * value-prof.c: Likewise.
11727 * var-tracking.c: Likewise.
11728 * varasm.c: Likewise.
11729 * varpool.c: Likewise.
11730 * vmsdbgout.c: Likewise.
11731 * vtable-verify.c: Likewise.
11733 * wide-int.cc: Likewise.
11734 * xcoffout.c: Likewise.
11735 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
11736 * common/common-targhooks.c: Likewise.
11737 * config/aarch64/aarch64-builtins.c: Likewise.
11738 * config/aarch64/aarch64.c: Likewise.
11739 * config/alpha/alpha.c: Likewise.
11740 * config/arc/arc.c: Likewise.
11741 * config/arm/aarch-common.c: Likewise.
11742 * config/arm/arm-builtins.c: Likewise.
11743 * config/arm/arm-c.c: Likewise.
11744 * config/arm/arm.c: Likewise.
11745 * config/avr/avr-c.c: Likewise.
11746 * config/avr/avr-log.c: Likewise.
11747 * config/avr/avr.c: Likewise.
11748 * config/bfin/bfin.c: Likewise.
11749 * config/c6x/c6x.c: Likewise.
11750 * config/cr16/cr16.c: Likewise.
11751 * config/cris/cris.c: Likewise.
11752 * config/darwin-c.c: Likewise.
11753 * config/darwin.c: Likewise.
11754 * config/default-c.c: Likewise.
11755 * config/epiphany/epiphany.c: Likewise.
11756 * config/epiphany/mode-switch-use.c: Likewise.
11757 * config/epiphany/resolve-sw-modes.c: Likewise.
11758 * config/fr30/fr30.c: Likewise.
11759 * config/frv/frv.c: Likewise.
11760 * config/ft32/ft32.c: Likewise.
11761 * config/glibc-c.c: Likewise.
11762 * config/h8300/h8300.c: Likewise.
11763 * config/i386/i386-c.c: Likewise.
11764 * config/i386/i386.c: Likewise.
11765 * config/i386/msformat-c.c: Likewise.
11766 * config/i386/winnt-cxx.c: Likewise.
11767 * config/i386/winnt-stubs.c: Likewise.
11768 * config/i386/winnt.c: Likewise.
11769 * config/ia64/ia64-c.c: Likewise.
11770 * config/ia64/ia64.c: Likewise.
11771 * config/iq2000/iq2000.c: Likewise.
11772 * config/lm32/lm32.c: Likewise.
11773 * config/m32c/m32c-pragma.c: Likewise.
11774 * config/m32c/m32c.c: Likewise.
11775 * config/m32r/m32r.c: Likewise.
11776 * config/m68k/m68k.c: Likewise.
11777 * config/mcore/mcore.c: Likewise.
11778 * config/mep/mep-pragma.c: Likewise.
11779 * config/mep/mep.c: Likewise.
11780 * config/microblaze/microblaze-c.c: Likewise.
11781 * config/microblaze/microblaze.c: Likewise.
11782 * config/mips/mips.c: Likewise.
11783 * config/mmix/mmix.c: Likewise.
11784 * config/mn10300/mn10300.c: Likewise.
11785 * config/moxie/moxie.c: Likewise.
11786 * config/msp430/msp430-c.c: Likewise.
11787 * config/msp430/msp430.c: Likewise.
11788 * config/nds32/nds32-cost.c: Likewise.
11789 * config/nds32/nds32-fp-as-gp.c: Likewise.
11790 * config/nds32/nds32-intrinsic.c: Likewise.
11791 * config/nds32/nds32-isr.c: Likewise.
11792 * config/nds32/nds32-md-auxiliary.c: Likewise.
11793 * config/nds32/nds32-memory-manipulation.c: Likewise.
11794 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11795 * config/nds32/nds32-predicates.c: Likewise.
11796 * config/nds32/nds32.c: Likewise.
11797 * config/nios2/nios2.c: Likewise.
11798 * config/nvptx/nvptx.c: Likewise.
11799 * config/pa/pa.c: Likewise.
11800 * config/pdp11/pdp11.c: Likewise.
11801 * config/rl78/rl78-c.c: Likewise.
11802 * config/rl78/rl78.c: Likewise.
11803 * config/rs6000/rs6000-c.c: Likewise.
11804 * config/rs6000/rs6000.c: Likewise.
11805 * config/rx/rx.c: Likewise.
11806 * config/s390/s390-c.c: Likewise.
11807 * config/s390/s390.c: Likewise.
11808 * config/sh/sh-c.c: Likewise.
11809 * config/sh/sh-mem.cc: Likewise.
11810 * config/sh/sh.c: Likewise.
11811 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11812 * config/sh/sh_treg_combine.cc: Likewise.
11813 * config/sol2-c.c: Likewise.
11814 * config/sol2-cxx.c: Likewise.
11815 * config/sol2-stubs.c: Likewise.
11816 * config/sol2.c: Likewise.
11817 * config/sparc/sparc-c.c: Likewise.
11818 * config/sparc/sparc.c: Likewise.
11819 * config/spu/spu-c.c: Likewise.
11820 * config/spu/spu.c: Likewise.
11821 * config/stormy16/stormy16.c: Likewise.
11822 * config/tilegx/mul-tables.c: Likewise.
11823 * config/tilegx/tilegx-c.c: Likewise.
11824 * config/tilegx/tilegx.c: Likewise.
11825 * config/tilepro/mul-tables.c: Likewise.
11826 * config/tilepro/tilepro-c.c: Likewise.
11827 * config/tilepro/tilepro.c: Likewise.
11828 * config/v850/v850-c.c: Likewise.
11829 * config/v850/v850.c: Likewise.
11830 * config/vax/vax.c: Likewise.
11831 * config/visium/visium.c: Likewise.
11832 * config/vms/vms-c.c: Likewise.
11833 * config/vms/vms.c: Likewise.
11834 * config/vxworks.c: Likewise.
11835 * config/winnt-c.c: Likewise.
11836 * config/xtensa/xtensa.c: Likewise.
11838 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
11840 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
11842 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
11844 2015-06-17 Richard Biener <rguenther@suse.de>
11846 PR tree-optimization/66251
11847 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
11848 stmts for SLP strided stores.
11851 2015-05-22 Richard Biener <rguenther@suse.de>
11853 PR tree-optimization/66251
11854 * tree-vect-stmts.c (vectorizable_conversion): Properly
11855 set STMT_VINFO_VEC_STMT even for the SLP case.
11857 2015-05-26 Michael Matz <matz@suse.de>
11859 PR middle-end/66251
11860 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
11861 STMT_VINFO_VEC_STMT, also with SLP.
11863 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
11866 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
11867 (*avx_addsubv4df3_1s): Ditto.
11868 (*sse3_addsubv2df3_1): Ditto.
11869 (*sse3_addsubv2df3_1s): Ditto.
11870 (*avx_addsubv8sf3_1): Ditto.
11871 (*avx_addsubv8sf3_1s): Ditto.
11872 (*sse3_addsubv4sf3_1): Ditto.
11873 (*sse3_addsubv4sf3_1s): Ditto.
11875 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
11877 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
11878 (SYSROOT_SUFFIX_SPEC): Update.
11879 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
11880 (STARTFILE_PREFIX_SPEC): Update.
11881 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
11882 (MULTILIB_REQUIRED): New.
11883 (MULTILIB_OSDIRNAMES): New.
11884 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
11885 (MULTILIB_REQUIRED): New.
11886 (MULTILIB_OSDIRNAMES): New.
11888 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
11890 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
11891 * config/aarch64/aarch64-options-extensions.def: Update "fP",
11892 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
11893 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
11894 (AARCH64_FL_PAN): New.
11895 (AARCH64_FL_LOR): New.
11896 (AARCH64_FL_RDMA): New.
11897 (AARCH64_FL_FOR_ARCH8_1): New.
11898 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
11899 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
11901 2015-06-16 Martin Liska <mliska@suse.cz>
11903 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
11904 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
11907 2015-06-16 Richard Biener <rguenther@suse.de>
11909 * tree-vect-stmts.c (vectorizable_store): Adjust.
11910 (vectorizable_load): Likewise.
11911 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11913 (vect_create_data_ref_ptr): Likewise.
11914 (bump_vector_ptr): Adjust.
11916 2015-06-16 Richard Biener <rguenther@suse.de>
11918 * tree-vect-stmts.c (vectorizable_load): Properly start loads
11919 with the first element if this is grouped loads.
11921 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
11923 * config/arm/arm-protos.h (struct tune_params): Rename
11924 log_op_non_sc to log_op_non_short_circuit, and rename enum
11925 values to expand SC to SHORT_CIRCUIT.
11926 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
11927 to LOG_OP_NON_SHORT_CIRCUIT.
11928 (arm_fastmul_tune):Likewise
11929 (arm_strongarm_tune): Likewise.
11930 (arm_xscale_tune): Likewise.
11931 (arm_9e_tune): Likewise.
11932 (arm_marvell_pj4_tune): Likewise.
11933 (arm_v6t2_tune): Likewise.
11934 (arm_cortex_tune): Likewise.
11935 (arm_cortex_a8_tune): Likewise.
11936 (arm_cortex_a7_tune): Likewise.
11937 (arm_cortex_a15_tune): Likewise.
11938 (arm_cortex_a53_tune): Likewise.
11939 (arm_cortex_a57_tune): Likewise.
11940 (arm_xgene1_tune): Likewise.
11941 (arm_cortex_a5_tune): Likewise.
11942 (arm_cortex_a9_tune): Likewise.
11943 (arm_cortex_a12_tune): Likewise.
11944 (arm_v7m_tune): Likewise.
11945 (arm_cortex_m7_tune): Likewise.
11946 (arm_v6m_tune): Likewise.
11947 (arm_fa726te_tune): Likewise.
11949 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
11951 * altivec.md: Delete UNSPEC_VMLADDUHM.
11952 (mulv4si3_p8): New pattern.
11953 (mulv4si3): Use it for POWER8.
11954 (mulv8hi3): Use vmladduhm with zero addend.
11955 (altivec_vmladduhm): Descriptive RTL.
11957 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
11959 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
11960 to use neon_move instead of mov_imm.
11961 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
11962 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
11964 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
11965 aarch64_float_const_zero_rtx_p check before TFmode check.
11966 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
11968 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
11969 code and attributes to match. Change condition from register_operand
11970 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
11971 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
11974 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
11977 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
11978 there is no parent.
11980 2015-06-14 Shiva Chen <shiva0217@gmail.com>
11982 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
11983 HOST_WIDE_INT parameter.
11985 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
11988 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
11989 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
11991 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
11993 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
11995 * rtl.h (classify_insn): Declare.
11996 * emit-rtl.c (classify_insn): Move to...
11997 * rtl.c: ...here and add generator support.
11998 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
11999 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
12000 * genemit.c (gen_emit_seq): New function.
12001 (gen_expand, gen_split): Use it.
12003 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
12005 * tree.c (make_vector_stat): Fix comment to state that the
12006 function returns a VECTOR_CST.
12008 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
12010 * gensupport.h (add_implicit_parallel): Declare.
12011 * genrecog.c (add_implicit_parallel): Move to...
12012 * gensupport.c (add_implicit_parallel): ...here.
12013 (process_one_cond_exec): Use it.
12014 * genemit.c (gen_insn): Likewise.
12016 2015-06-13 Iain Sandoe <iain@codesourcery.com>
12019 * passes.c (rest_of_decl_compilation): Do not register globals for
12020 early debug if they are declared in built-ins.
12022 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
12024 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
12026 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12028 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
12030 (noce_try_cmove_arith): Likewise.
12031 (noce_get_alt_condition): Likewise.
12033 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12035 * common/config/i386/i386-common.c
12036 (OPTION_MASK_ISA_MWAITX_SET): New.
12037 (ix86_handle_option): Handle mwaitx.
12038 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
12039 (x86_64-*-*): Likewise.
12040 * config/i386/mwaitxintrin.h: New header.
12041 * config/i386/cpuid.h (bit_MWAITX): Define.
12042 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12044 * config/i386/i386.opt (mwaitx): New.
12045 * config/i386/i386-builtin-types.def
12046 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
12047 * config/i386/i386-c.c: Define __MWAITX__ if needed.
12048 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
12050 (ix86_option_override_internal): Handle new option.
12051 (processor_alias_table): Added PTA_MWAITX.
12052 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
12053 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
12054 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
12055 IX86_BUILTIN_MONITORX built-ins.
12056 * config/i386/i386.h (TARGET_MWAITX): New.
12057 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
12059 (mwaitx): New pattern.
12060 (monitorx_<mode>): New pattern.
12061 * config/i386/x86intrin.h: Include mwaitxintrin.h.
12062 * doc/extend.texi: Document monitorx and mwaitx builtins.
12063 * doc/invoke.texi: Document -mmwaitx option.
12065 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
12067 * emit-rtl.c (need_atomic_barrier_p): Mask model with
12068 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
12070 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12072 * dbxout.c (xcoff_debug_hooks): Provide a function for
12073 register_main_translation_unit hook.
12075 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12077 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
12078 variants cases from switch.
12079 (rs6000_post_atomic_barrier): Same.
12080 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
12081 (rs6000_expand_atomic_exchange): Same.
12082 (rs6000_expand_atomic_op): Same.
12083 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
12084 SYNC variants cases from switch.
12085 (atomic_load): Same.
12086 (atomic_store): Same.
12088 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
12090 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
12091 CONST_INT for goto.
12093 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
12096 * dwarf2out.c (check_die): Check for common duplicate attributes.
12097 (add_location_or_const_value_attribute): Do not add duplicate
12099 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
12101 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
12102 (gen_type_die_with_usage): Call check_die.
12103 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
12105 2015-06-11 Jason Merrill <jason@redhat.com>
12107 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
12110 2015-06-11 Marek Polacek <polacek@redhat.com>
12112 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
12114 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
12117 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
12118 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
12119 (*addx_extend_sp32): Fix pasto.
12120 (*subx_extend): Rename into...
12121 (*subx_extend_sp32): ...this.
12122 (*adddi3_extend_sp32): Add earlyclobber.
12123 (*subdi3_insn_sp32): Likewise.
12124 (*subdi3_extend_sp32): Likewise.
12125 (*and_not_di_sp32): Likewise.
12126 (*or_not_di_sp32): Likewise.
12127 (*xor_not_di_sp32): Likewise.
12128 (*negdi2_sp32): Likewise.
12129 (*one_cmpldi2_sp32): Likewise.
12131 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
12133 * debug.h (struct gcc_debug_hooks): Add a
12134 register_main_translation_unit hook.
12135 * debug.c (do_nothing_debug_hooks): Provide a function for this
12137 * dbxout.c (dbx_debug_hooks): Likewise.
12138 * sdbout.c (sdb_debug_hooks): Likewise.
12139 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12140 * dwarf2out.c (main_translation_unit): New global variable.
12141 (dwarf2out_register_main_translation_unit): New function
12142 implementing the new hook.
12143 (dwarf2_debug_hooks): Assign
12144 dwarf2out_register_main_translation_unit to this new hook.
12145 (dwarf2out_init): Associate any main translation unit to
12148 2015-06-11 Marek Polacek <polacek@redhat.com>
12150 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
12152 2015-06-11 Marek Polacek <polacek@redhat.com>
12154 * match.pd: Use single_use throughout.
12156 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12158 * config/arm/arm.c (arm_option_params_internal): When optimising
12159 for speed set max_insns_skipped when arm_restrict_it.
12161 2015-06-11 Christian Bruel <christian.bruel@st.com>
12164 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
12166 (arm_cpu_builtins): New function.
12167 (arm_pragma_target_parse): Call arm_cpu_builtins.
12168 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
12169 (arm_register_target_pragmas): Likewise.
12170 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
12171 Call arm_register_target_pragmas.
12172 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
12173 (arm_pragma_target_parse): Likewise.
12175 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
12177 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
12178 of the second operand.
12180 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
12183 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
12184 to prepare mask operand for AVX512 modes.
12186 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12189 * doc/md.texi (Machine Constraints): Document that on the PowerPC
12190 if you use a constraint that targets a VSX register, you must use
12191 %x<n> in the template.
12193 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
12195 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
12196 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
12197 (define_insn "trap"): New definition.
12199 2015-06-10 Richard Biener <rguenther@suse.de>
12201 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
12203 (vect_supported_load_permutation_p): ... here. Handle
12204 supportable permutations in reductions.
12205 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
12206 for vectorizing strided group loads.
12208 2015-06-10 Jakub Jelinek <jakub@redhat.com>
12211 * config/i386/i386.c (ix86_split_long_move): For collisions
12212 involving direct tls segment refs, move the UNSPEC_TP possibly
12213 wrapped in ZERO_EXTEND out of the address for lea, to each of
12216 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12218 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
12219 dmb sy. Adjust tabs.
12221 2015-06-10 Tom de Vries <tom@codesourcery.com>
12223 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
12225 2015-06-10 Martin Liska <mliska@suse.cz>
12228 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
12229 all enum values in mem_alloc_origin.
12230 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
12232 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
12233 * bitmap.c (bitmap_register): Likewise.
12234 (dump_bitmap_statistics): Likewise.
12235 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
12236 (ggc_record_overhead): Likewise.
12237 * hash-map.h: Likewise.
12238 * hash-set.h: Likewise.
12239 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
12240 * hash-table.h: Likewise.
12241 * vec.c (vec_prefix::register_overhead): Likewise.
12242 (vec_prefix::release_overhead): Likewise.
12243 (dump_vec_loc_statistics): Likewise.
12245 2015-06-09 Christian Bruel <christian.bruel@st.com>
12248 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
12249 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
12250 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
12251 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
12252 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
12253 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
12254 (arm_valid_target_attribute_p): Likewise.
12255 (arm_set_current_function, arm_can_inline_p): Likewise.
12256 (arm_valid_target_attribute_rec): Likewise.
12257 (arm_previous_fndecl): New variable.
12258 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12259 (TARGET_CAN_INLINE_P): Define.
12260 (arm_asm_trampoline_template): Emit mode.
12261 (arm_file_start): Don't set unified syntax.
12262 (arm_declare_function_name): Set unified syntax and mode.
12263 (arm_option_override): Init target_option_default_node.
12264 and target_option_current_node.
12265 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
12266 (*call_symbol): Likewise.
12267 * doc/extend.texi: Document ARM/Thumb target attribute.
12268 * doc/invoke.texi: Likewise.
12270 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12273 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12274 PR rtl-optimization/64164
12275 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12276 * tree-ssa-copyrename.c: Removed.
12277 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12278 -ftree-coalesce-vars.
12279 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12280 * common.opt (ftree-copyrename): Ignore.
12281 (ftree-coalesce-inlined-vars): Likewise.
12282 * doc/invoke.texi: Remove the ignored options above.
12283 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12284 * tree-ssa-coalesce.h: ... here.
12285 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12286 headers required by it.
12287 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12288 across variables when flag_tree_coalesce_vars. Check register
12289 use and promoted modes to allow coalescing. Moved to
12290 tree-ssa-coalesce.c.
12291 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12292 with its member functions to tree-ssa-coalesce.c.
12293 (var_map_base_init): Likewise. Renamed to
12294 compute_samebase_partition_bases.
12295 (partition_view_normal): Drop want_bases parameter.
12296 (partition_view_bitmap): Likewise.
12297 * tree-ssa-live.h: Adjust declarations.
12298 * tree-ssa-coalesce.c: Include explow.h.
12299 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12300 default defs at the entry point.
12301 (dump_part_var_map): New.
12302 (compute_optimized_partition_bases): New, called by...
12303 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12304 of compute_samebase_partition_bases. Adjust.
12305 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12306 * cfgexpand.c (leader_merge): New.
12307 (get_rtl_for_parm_ssa_default_def): New.
12308 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12309 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12310 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12311 redundant MEM attr setting.
12312 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12314 (expand_one_stack_var): ... this. New wrapper to check and
12315 skip already expanded SSA partitions.
12316 (record_alignment_for_reg_var): New, factored out of...
12317 (expand_one_var): ... this.
12318 (expand_one_ssa_partition): New.
12319 (adjust_one_expanded_partition_var): New.
12320 (expand_one_register_var): Check and skip already expanded SSA
12322 (expand_used_vars): Don't create DECLs for anonymous SSA
12323 names. Expand all SSA partitions, then adjust all SSA names.
12324 (pass::execute): Replace the loops that set
12325 SA.partition_to_pseudo from partition leaders and cleared
12326 DECL_RTL for multi-location variables, and that which used to
12327 rename vars and set attrs, with one that clears DECL_RTL and
12328 checks that PARMs and RESULTs default_defs match DECL_RTL.
12329 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12330 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12331 * explow.c (promote_ssa_mode): New.
12332 * explow.h (promote_ssa_mode): Declare.
12333 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12334 * function.c: Include cfgexpand.h.
12335 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12336 (use_register_for_parm_decl): Wrapper for the above to
12337 special-case the result_ptr.
12338 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12339 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12340 multiple locations.
12341 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12342 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12343 (assign_parm_setup_block): Prefer SSA-assigned location.
12344 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12345 if stack_parm is NULL.
12346 (assign_parm_setup_stack): Prefer SSA-assigned location.
12347 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12348 rtl before testing for pointer bounds. Special-case result_ptr.
12349 (expand_function_start): Maybe reset DECL_RTL of result.
12350 Prefer SSA-assigned location for result and static chain.
12351 Factor out DECL_RESULT and SET_DECL_RTL.
12352 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12353 anonymous SSA names. Use promote_ssa_mode.
12354 (get_temp_reg): Likewise.
12355 (remove_ssa_form): Adjust.
12356 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12357 and get its reg_usage for reg invalidation.
12358 (compute_bb_dataflow): Pass it insn.
12359 (emit_notes_in_bb): Likewise.
12360 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12361 fail assert on conversion between unsigned types.
12363 2015-06-09 Tom de Vries <tom@codesourcery.com>
12365 PR tree-optimization/65460
12366 * omp-low.c (expand_omp_target): Set parallelized_function on
12367 cgraph_node for child_fn.
12369 2015-06-09 Tom de Vries <tom@codesourcery.com>
12371 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
12372 parallelized_function before add_new_function.
12374 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
12376 * gcc-plugin.h: Move decls to plugin.h and include it.
12377 * plugin.h: Relocate decls from gcc-plugin.h
12378 * ggc-page.c: Include required header files.
12379 * passes.c: Likewise.
12380 * cgraphunit.c: Likewise.
12382 2015-06-09 Tom de Vries <tom@codesourcery.com>
12384 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
12386 2015-06-09 Jason Merrill <jason@redhat.com>
12389 * toplev.c (check_global_declaration): Don't warn about a clone.
12391 2015-06-09 Marek Polacek <polacek@redhat.com>
12393 PR tree-optimization/66299
12394 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
12395 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
12398 2015-06-09 Richard Biener <rguenther@suse.de>
12400 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
12401 (vect_analyze_slp_instance): Instead do not falsely drop
12404 2015-06-09 Richard Biener <rguenther@suse.de>
12406 PR middle-end/66423
12407 * match.pd: Handle A % (unsigned)(1 << B).
12409 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
12411 * varasm.c (output_object_block_htab): Remove.
12412 (output_object_block_compare): New.
12413 (output_object_blocks): Sort named object_blocks before outputting
12416 2015-06-09 Richard Biener <rguenther@suse.de>
12418 PR tree-optimization/66419
12419 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
12420 consider GROUP_GAP when detecting a perfect subchain.
12422 2015-06-09 Nick Clifton <nickc@redhat.com>
12424 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
12425 place read only data in the .frodata section.
12427 2015-06-09 Shiva Chen <shiva0217@gmail.com>
12429 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
12430 (atomic_store<mode>): Likewise.
12432 2015-06-09 Richard Biener <rguenther@suse.de>
12434 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
12436 2015-06-09 Richard Biener <rguenther@suse.de>
12438 PR middle-end/66413
12439 * tree-inline.c (insert_init_debug_bind): Unshare value.
12441 2015-06-09 Richard Biener <rguenther@suse.de>
12443 PR tree-optimization/66396
12444 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
12445 Rename virtual operands.
12447 2015-06-09 Tom de Vries <tom@codesourcery.com>
12449 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
12450 always return false.
12452 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12454 PR rtl-optimization/64164
12455 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12456 * tree-ssa-copyrename.c: Removed.
12457 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12458 -ftree-coalesce-vars.
12459 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12460 * common.opt (ftree-copyrename): Ignore.
12461 (ftree-coalesce-inlined-vars): Likewise.
12462 * doc/invoke.texi: Remove the ignored options above.
12463 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12464 * tree-ssa-coalesce.h: ... here.
12465 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12466 headers required by it.
12467 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12468 across variables when flag_tree_coalesce_vars. Check register
12469 use and promoted modes to allow coalescing. Moved to
12470 tree-ssa-coalesce.c.
12471 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12472 with its member functions to tree-ssa-coalesce.c.
12473 (var_map_base_init): Likewise. Renamed to
12474 compute_samebase_partition_bases.
12475 (partition_view_normal): Drop want_bases parameter.
12476 (partition_view_bitmap): Likewise.
12477 * tree-ssa-live.h: Adjust declarations.
12478 * tree-ssa-coalesce.c: Include explow.h.
12479 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12480 default defs at the entry point.
12481 (dump_part_var_map): New.
12482 (compute_optimized_partition_bases): New, called by...
12483 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12484 of compute_samebase_partition_bases. Adjust.
12485 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12486 * cfgexpand.c (leader_merge): New.
12487 (get_rtl_for_parm_ssa_default_def): New.
12488 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12489 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12490 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12491 redundant MEM attr setting.
12492 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12494 (expand_one_stack_var): ... this. New wrapper to check and
12495 skip already expanded SSA partitions.
12496 (record_alignment_for_reg_var): New, factored out of...
12497 (expand_one_var): ... this.
12498 (expand_one_ssa_partition): New.
12499 (adjust_one_expanded_partition_var): New.
12500 (expand_one_register_var): Check and skip already expanded SSA
12502 (expand_used_vars): Don't create DECLs for anonymous SSA
12503 names. Expand all SSA partitions, then adjust all SSA names.
12504 (pass::execute): Replace the loops that set
12505 SA.partition_to_pseudo from partition leaders and cleared
12506 DECL_RTL for multi-location variables, and that which used to
12507 rename vars and set attrs, with one that clears DECL_RTL and
12508 checks that PARMs and RESULTs default_defs match DECL_RTL.
12509 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12510 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12511 * explow.c (promote_ssa_mode): New.
12512 * explow.h (promote_ssa_mode): Declare.
12513 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12514 * function.c: Include cfgexpand.h.
12515 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12516 (use_register_for_parm_decl): Wrapper for the above to
12517 special-case the result_ptr.
12518 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12519 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12520 multiple locations.
12521 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12522 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12523 (assign_parm_setup_block): Prefer SSA-assigned location.
12524 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12525 if stack_parm is NULL.
12526 (assign_parm_setup_stack): Prefer SSA-assigned location.
12527 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12528 rtl before testing for pointer bounds. Special-case result_ptr.
12529 (expand_function_start): Maybe reset DECL_RTL of result.
12530 Prefer SSA-assigned location for result and static chain.
12531 Factor out DECL_RESULT and SET_DECL_RTL.
12532 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12533 anonymous SSA names. Use promote_ssa_mode.
12534 (get_temp_reg): Likewise.
12535 (remove_ssa_form): Adjust.
12536 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12537 and get its reg_usage for reg invalidation.
12538 (compute_bb_dataflow): Pass it insn.
12539 (emit_notes_in_bb): Likewise.
12540 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12541 fail assert on conversion between unsigned types.
12543 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12546 * tree-inline.c (reset_debug_binding): New.
12547 (reset_debug_bindings): Likewise.
12548 (expand_call_inline): Call it.
12550 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12552 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
12555 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12557 * lto-streamer-out.c (lto_output_location): Stream
12558 reserved locations correctly.
12559 * lto-streamer-in.c (lto_output_location): Likewise.
12561 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
12563 * coretypes.h: Include hash-table.h and hash-set.h for host files.
12564 * ggc.h: Don't include statistics.h>
12565 * hash-map.h: Remove all includes.
12566 * hash-set.h: Likewise.
12567 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
12568 the include list. Remove <new>.
12569 * inchash.h: Remove all includes.
12570 * mem-stats.h: Likewise.
12571 * vec.h: No special processing for generators or ggc.
12572 * alias.c : Adjust include files.
12573 * alloc-pool.c : Likewise.
12574 * alloc-pool.h : Likewise.
12575 * asan.c : Likewise.
12576 * attribs.c : Likewise.
12577 * auto-inc-dec.c : Likewise.
12578 * auto-profile.c : Likewise.
12579 * bb-reorder.c : Likewise.
12580 * bitmap.c : Likewise.
12581 * bitmap.h : Likewise.
12582 * bt-load.c : Likewise.
12583 * builtins.c : Likewise.
12584 * caller-save.c : Likewise.
12585 * calls.c : Likewise.
12586 * ccmp.c : Likewise.
12587 * cfg.c : Likewise.
12588 * cfganal.c : Likewise.
12589 * cfgbuild.c : Likewise.
12590 * cfgcleanup.c : Likewise.
12591 * cfgexpand.c : Likewise.
12592 * cfghooks.c : Likewise.
12593 * cfgloop.c : Likewise.
12594 * cfgloop.h : Likewise.
12595 * cfgloopanal.c : Likewise.
12596 * cfgloopmanip.c : Likewise.
12597 * cfgrtl.c : Likewise.
12598 * cgraph.c : Likewise.
12599 * cgraphbuild.c : Likewise.
12600 * cgraphclones.c : Likewise.
12601 * cgraphunit.c : Likewise.
12602 * cilk-common.c : Likewise.
12603 * combine-stack-adj.c : Likewise.
12604 * combine.c : Likewise.
12605 * compare-elim.c : Likewise.
12606 * context.c : Likewise.
12607 * convert.c : Likewise.
12608 * coverage.c : Likewise.
12609 * cppbuiltin.c : Likewise.
12610 * cprop.c : Likewise.
12611 * cse.c : Likewise.
12612 * cselib.c : Likewise.
12613 * data-streamer-in.c : Likewise.
12614 * data-streamer-out.c : Likewise.
12615 * data-streamer.c : Likewise.
12616 * data-streamer.h : Likewise.
12617 * dbxout.c : Likewise.
12618 * dce.c : Likewise.
12619 * ddg.c : Likewise.
12620 * debug.c : Likewise.
12621 * df-core.c : Likewise.
12622 * df-problems.c : Likewise.
12623 * df-scan.c : Likewise.
12625 * dfp.c : Likewise.
12626 * dojump.c : Likewise.
12627 * dominance.c : Likewise.
12628 * domwalk.c : Likewise.
12629 * double-int.c : Likewise.
12630 * dse.c : Likewise.
12631 * dumpfile.c : Likewise.
12632 * dwarf2asm.c : Likewise.
12633 * dwarf2cfi.c : Likewise.
12634 * dwarf2out.c : Likewise.
12635 * emit-rtl.c : Likewise.
12636 * et-forest.c : Likewise.
12637 * except.c : Likewise.
12638 * except.h : Likewise.
12639 * explow.c : Likewise.
12640 * expmed.c : Likewise.
12641 * expr.c : Likewise.
12642 * final.c : Likewise.
12643 * fixed-value.c : Likewise.
12644 * fold-const.c : Likewise.
12645 * function.c : Likewise.
12646 * fwprop.c : Likewise.
12647 * gcc-plugin.h : Likewise.
12648 * gcc.c : Likewise.
12649 * gcse-common.c : Likewise.
12650 * gcse.c : Likewise.
12651 * genattrtab.c : Likewise.
12652 * genautomata.c : Likewise.
12653 * genconditions.c : Likewise.
12654 * genemit.c : Likewise.
12655 * generic-match-head.c : Likewise.
12656 * genextract.c : Likewise.
12657 * gengtype-state.c : Likewise.
12658 * gengtype.c : Likewise.
12659 * genhooks.c : Likewise.
12660 * genmatch.c : Likewise.
12661 * genmodes.c : Likewise.
12662 * genrecog.c : Likewise.
12663 * gensupport.c : Likewise.
12664 * ggc-common.c : Likewise.
12665 * ggc-internal.h : Likewise.
12666 * ggc-none.c : Likewise.
12667 * ggc-page.c : Likewise.
12668 * gimple-builder.c : Likewise.
12669 * gimple-expr.c : Likewise.
12670 * gimple-fold.c : Likewise.
12671 * gimple-iterator.c : Likewise.
12672 * gimple-low.c : Likewise.
12673 * gimple-match-head.c : Likewise.
12674 * gimple-pretty-print.c : Likewise.
12675 * gimple-ssa-isolate-paths.c : Likewise.
12676 * gimple-ssa-strength-reduction.c : Likewise.
12677 * gimple-ssa.h : Likewise.
12678 * gimple-streamer-in.c : Likewise.
12679 * gimple-streamer-out.c : Likewise.
12680 * gimple-streamer.h : Likewise.
12681 * gimple-walk.c : Likewise.
12682 * gimple.c : Likewise.
12683 * gimplify-me.c : Likewise.
12684 * gimplify.c : Likewise.
12685 * godump.c : Likewise.
12686 * graph.c : Likewise.
12687 * graphds.c : Likewise.
12688 * graphite-blocking.c : Likewise.
12689 * graphite-dependences.c : Likewise.
12690 * graphite-interchange.c : Likewise.
12691 * graphite-isl-ast-to-gimple.c : Likewise.
12692 * graphite-optimize-isl.c : Likewise.
12693 * graphite-poly.c : Likewise.
12694 * graphite-scop-detection.c : Likewise.
12695 * graphite-sese-to-poly.c : Likewise.
12696 * graphite.c : Likewise.
12697 * haifa-sched.c : Likewise.
12698 * hard-reg-set.h : Likewise.
12699 * hw-doloop.c : Likewise.
12700 * ifcvt.c : Likewise.
12701 * inchash.c : Likewise.
12702 * incpath.c : Likewise.
12703 * init-regs.c : Likewise.
12704 * input.c : Likewise.
12705 * internal-fn.c : Likewise.
12706 * ipa-chkp.c : Likewise.
12707 * ipa-comdats.c : Likewise.
12708 * ipa-cp.c : Likewise.
12709 * ipa-devirt.c : Likewise.
12710 * ipa-icf-gimple.c : Likewise.
12711 * ipa-icf.c : Likewise.
12712 * ipa-inline-analysis.c : Likewise.
12713 * ipa-inline-transform.c : Likewise.
12714 * ipa-inline.c : Likewise.
12715 * ipa-polymorphic-call.c : Likewise.
12716 * ipa-profile.c : Likewise.
12717 * ipa-prop.c : Likewise.
12718 * ipa-pure-const.c : Likewise.
12719 * ipa-ref.c : Likewise.
12720 * ipa-reference.c : Likewise.
12721 * ipa-split.c : Likewise.
12722 * ipa-utils.c : Likewise.
12723 * ipa-visibility.c : Likewise.
12724 * ipa.c : Likewise.
12725 * ira-build.c : Likewise.
12726 * ira-color.c : Likewise.
12727 * ira-conflicts.c : Likewise.
12728 * ira-costs.c : Likewise.
12729 * ira-emit.c : Likewise.
12730 * ira-lives.c : Likewise.
12731 * ira.c : Likewise.
12732 * jump.c : Likewise.
12733 * langhooks.c : Likewise.
12734 * lcm.c : Likewise.
12735 * libfuncs.h : Likewise.
12736 * lists.c : Likewise.
12737 * loop-doloop.c : Likewise.
12738 * loop-init.c : Likewise.
12739 * loop-invariant.c : Likewise.
12740 * loop-iv.c : Likewise.
12741 * loop-unroll.c : Likewise.
12742 * lower-subreg.c : Likewise.
12743 * lra-assigns.c : Likewise.
12744 * lra-coalesce.c : Likewise.
12745 * lra-constraints.c : Likewise.
12746 * lra-eliminations.c : Likewise.
12747 * lra-lives.c : Likewise.
12748 * lra-remat.c : Likewise.
12749 * lra-spills.c : Likewise.
12750 * lra.c : Likewise.
12751 * lto-cgraph.c : Likewise.
12752 * lto-compress.c : Likewise.
12753 * lto-opts.c : Likewise.
12754 * lto-section-in.c : Likewise.
12755 * lto-section-out.c : Likewise.
12756 * lto-streamer-in.c : Likewise.
12757 * lto-streamer-out.c : Likewise.
12758 * lto-streamer.c : Likewise.
12759 * lto-streamer.h : Likewise.
12760 * mcf.c : Likewise.
12761 * mode-switching.c : Likewise.
12762 * modulo-sched.c : Likewise.
12763 * omega.c : Likewise.
12764 * omp-low.c : Likewise.
12765 * optabs.c : Likewise.
12766 * opts-global.c : Likewise.
12767 * opts.h : Likewise.
12768 * passes.c : Likewise.
12769 * plugin.c : Likewise.
12770 * postreload-gcse.c : Likewise.
12771 * postreload.c : Likewise.
12772 * predict.c : Likewise.
12773 * print-rtl.c : Likewise.
12774 * print-tree.c : Likewise.
12775 * profile.c : Likewise.
12776 * read-md.c : Likewise.
12777 * read-md.h : Likewise.
12778 * read-rtl.c : Likewise.
12779 * real.c : Likewise.
12780 * realmpfr.c : Likewise.
12781 * recog.c : Likewise.
12782 * ree.c : Likewise.
12783 * reg-stack.c : Likewise.
12784 * regcprop.c : Likewise.
12785 * reginfo.c : Likewise.
12786 * regrename.c : Likewise.
12787 * regstat.c : Likewise.
12788 * reload.c : Likewise.
12789 * reload1.c : Likewise.
12790 * reorg.c : Likewise.
12791 * resource.c : Likewise.
12792 * rtl-chkp.c : Likewise.
12793 * rtl.c : Likewise.
12794 * rtl.h : Likewise.
12795 * rtlanal.c : Likewise.
12796 * rtlhash.c : Likewise.
12797 * rtlhash.h : Likewise.
12798 * rtlhooks.c : Likewise.
12799 * sanopt.c : Likewise.
12800 * sched-deps.c : Likewise.
12801 * sched-ebb.c : Likewise.
12802 * sched-rgn.c : Likewise.
12803 * sched-vis.c : Likewise.
12804 * sdbout.c : Likewise.
12805 * sel-sched-dump.c : Likewise.
12806 * sel-sched-ir.c : Likewise.
12807 * sel-sched-ir.h : Likewise.
12808 * sel-sched.c : Likewise.
12809 * sese.c : Likewise.
12810 * shrink-wrap.c : Likewise.
12811 * shrink-wrap.h : Likewise.
12812 * simplify-rtx.c : Likewise.
12813 * stack-ptr-mod.c : Likewise.
12814 * statistics.c : Likewise.
12815 * stmt.c : Likewise.
12816 * stor-layout.c : Likewise.
12817 * store-motion.c : Likewise.
12818 * stringpool.c : Likewise.
12819 * symtab.c : Likewise.
12820 * target-globals.c : Likewise.
12821 * targhooks.c : Likewise.
12822 * tlink.c : Likewise.
12823 * toplev.c : Likewise.
12824 * tracer.c : Likewise.
12825 * trans-mem.c : Likewise.
12826 * tree-affine.c : Likewise.
12827 * tree-affine.h : Likewise.
12828 * tree-browser.c : Likewise.
12829 * tree-call-cdce.c : Likewise.
12830 * tree-cfg.c : Likewise.
12831 * tree-cfgcleanup.c : Likewise.
12832 * tree-chkp-opt.c : Likewise.
12833 * tree-chkp.c : Likewise.
12834 * tree-chrec.c : Likewise.
12835 * tree-complex.c : Likewise.
12836 * tree-data-ref.c : Likewise.
12837 * tree-dfa.c : Likewise.
12838 * tree-diagnostic.c : Likewise.
12839 * tree-dump.c : Likewise.
12840 * tree-eh.c : Likewise.
12841 * tree-eh.h : Likewise.
12842 * tree-emutls.c : Likewise.
12843 * tree-hasher.h : Likewise.
12844 * tree-if-conv.c : Likewise.
12845 * tree-inline.c : Likewise.
12846 * tree-inline.h : Likewise.
12847 * tree-into-ssa.c : Likewise.
12848 * tree-iterator.c : Likewise.
12849 * tree-loop-distribution.c : Likewise.
12850 * tree-nested.c : Likewise.
12851 * tree-nrv.c : Likewise.
12852 * tree-object-size.c : Likewise.
12853 * tree-outof-ssa.c : Likewise.
12854 * tree-parloops.c : Likewise.
12855 * tree-phinodes.c : Likewise.
12856 * tree-predcom.c : Likewise.
12857 * tree-pretty-print.c : Likewise.
12858 * tree-profile.c : Likewise.
12859 * tree-scalar-evolution.c : Likewise.
12860 * tree-sra.c : Likewise.
12861 * tree-ssa-address.c : Likewise.
12862 * tree-ssa-alias.c : Likewise.
12863 * tree-ssa-ccp.c : Likewise.
12864 * tree-ssa-coalesce.c : Likewise.
12865 * tree-ssa-copy.c : Likewise.
12866 * tree-ssa-copyrename.c : Likewise.
12867 * tree-ssa-dce.c : Likewise.
12868 * tree-ssa-dom.c : Likewise.
12869 * tree-ssa-dse.c : Likewise.
12870 * tree-ssa-forwprop.c : Likewise.
12871 * tree-ssa-ifcombine.c : Likewise.
12872 * tree-ssa-live.c : Likewise.
12873 * tree-ssa-loop-ch.c : Likewise.
12874 * tree-ssa-loop-im.c : Likewise.
12875 * tree-ssa-loop-ivcanon.c : Likewise.
12876 * tree-ssa-loop-ivopts.c : Likewise.
12877 * tree-ssa-loop-manip.c : Likewise.
12878 * tree-ssa-loop-niter.c : Likewise.
12879 * tree-ssa-loop-prefetch.c : Likewise.
12880 * tree-ssa-loop-unswitch.c : Likewise.
12881 * tree-ssa-loop.c : Likewise.
12882 * tree-ssa-math-opts.c : Likewise.
12883 * tree-ssa-operands.c : Likewise.
12884 * tree-ssa-phiopt.c : Likewise.
12885 * tree-ssa-phiprop.c : Likewise.
12886 * tree-ssa-pre.c : Likewise.
12887 * tree-ssa-propagate.c : Likewise.
12888 * tree-ssa-reassoc.c : Likewise.
12889 * tree-ssa-sccvn.c : Likewise.
12890 * tree-ssa-scopedtables.c : Likewise.
12891 * tree-ssa-sink.c : Likewise.
12892 * tree-ssa-strlen.c : Likewise.
12893 * tree-ssa-structalias.c : Likewise.
12894 * tree-ssa-tail-merge.c : Likewise.
12895 * tree-ssa-ter.c : Likewise.
12896 * tree-ssa-threadedge.c : Likewise.
12897 * tree-ssa-threadupdate.c : Likewise.
12898 * tree-ssa-uncprop.c : Likewise.
12899 * tree-ssa-uninit.c : Likewise.
12900 * tree-ssa.c : Likewise.
12901 * tree-ssanames.c : Likewise.
12902 * tree-stdarg.c : Likewise.
12903 * tree-streamer-in.c : Likewise.
12904 * tree-streamer-out.c : Likewise.
12905 * tree-streamer.c : Likewise.
12906 * tree-streamer.h : Likewise.
12907 * tree-switch-conversion.c : Likewise.
12908 * tree-tailcall.c : Likewise.
12909 * tree-vect-data-refs.c : Likewise.
12910 * tree-vect-generic.c : Likewise.
12911 * tree-vect-loop-manip.c : Likewise.
12912 * tree-vect-loop.c : Likewise.
12913 * tree-vect-patterns.c : Likewise.
12914 * tree-vect-slp.c : Likewise.
12915 * tree-vect-stmts.c : Likewise.
12916 * tree-vectorizer.c : Likewise.
12917 * tree-vectorizer.h : Likewise.
12918 * tree-vrp.c : Likewise.
12919 * tree.c : Likewise.
12920 * tsan.c : Likewise.
12921 * ubsan.c : Likewise.
12922 * valtrack.c : Likewise.
12923 * valtrack.h : Likewise.
12924 * value-prof.c : Likewise.
12925 * var-tracking.c : Likewise.
12926 * varasm.c : Likewise.
12927 * varpool.c : Likewise.
12929 * vmsdbgout.c : Likewise.
12930 * vtable-verify.c : Likewise.
12931 * vtable-verify.h : Likewise.
12932 * web.c : Likewise.
12933 * wide-int.cc : Likewise.
12934 * xcoffout.c : Likewise.
12935 * config/aarch64/aarch64-builtins.c : Likewise.
12936 * config/aarch64/aarch64.c : Likewise.
12937 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
12938 * config/alpha/alpha.c : Likewise.
12939 * config/arc/arc.c : Likewise.
12940 * config/arm/aarch-common.c : Likewise.
12941 * config/arm/arm-builtins.c : Likewise.
12942 * config/arm/arm-c.c : Likewise.
12943 * config/arm/arm.c : Likewise.
12944 * config/avr/avr-c.c : Likewise.
12945 * config/avr/avr-log.c : Likewise.
12946 * config/avr/avr.c : Likewise.
12947 * config/bfin/bfin.c : Likewise.
12948 * config/c6x/c6x.c : Likewise.
12949 * config/cr16/cr16.c : Likewise.
12950 * config/cris/cris.c : Likewise.
12951 * config/darwin-c.c : Likewise.
12952 * config/darwin.c : Likewise.
12953 * config/default-c.c : Likewise.
12954 * config/epiphany/epiphany.c : Likewise.
12955 * config/epiphany/mode-switch-use.c : Likewise.
12956 * config/epiphany/resolve-sw-modes.c : Likewise.
12957 * config/fr30/fr30.c : Likewise.
12958 * config/frv/frv.c : Likewise.
12959 * config/ft32/ft32.c : Likewise.
12960 * config/glibc-c.c : Likewise.
12961 * config/h8300/h8300.c : Likewise.
12962 * config/i386/i386-c.c : Likewise.
12963 * config/i386/i386.c : Likewise.
12964 * config/i386/msformat-c.c : Likewise.
12965 * config/i386/winnt-cxx.c : Likewise.
12966 * config/i386/winnt-stubs.c : Likewise.
12967 * config/i386/winnt.c : Likewise.
12968 * config/ia64/ia64-c.c : Likewise.
12969 * config/ia64/ia64.c : Likewise.
12970 * config/iq2000/iq2000.c : Likewise.
12971 * config/lm32/lm32.c : Likewise.
12972 * config/m32c/m32c-pragma.c : Likewise.
12973 * config/m32c/m32c.c : Likewise.
12974 * config/m32r/m32r.c : Likewise.
12975 * config/m68k/m68k.c : Likewise.
12976 * config/mcore/mcore.c : Likewise.
12977 * config/mep/mep-pragma.c : Likewise.
12978 * config/mep/mep.c : Likewise.
12979 * config/microblaze/microblaze-c.c : Likewise.
12980 * config/microblaze/microblaze.c : Likewise.
12981 * config/mips/mips.c : Likewise.
12982 * config/mmix/mmix.c : Likewise.
12983 * config/mn10300/mn10300.c : Likewise.
12984 * config/moxie/moxie.c : Likewise.
12985 * config/msp430/msp430-c.c : Likewise.
12986 * config/msp430/msp430.c : Likewise.
12987 * config/nds32/nds32-cost.c : Likewise.
12988 * config/nds32/nds32-fp-as-gp.c : Likewise.
12989 * config/nds32/nds32-intrinsic.c : Likewise.
12990 * config/nds32/nds32-isr.c : Likewise.
12991 * config/nds32/nds32-md-auxiliary.c : Likewise.
12992 * config/nds32/nds32-memory-manipulation.c : Likewise.
12993 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
12994 * config/nds32/nds32-predicates.c : Likewise.
12995 * config/nds32/nds32.c : Likewise.
12996 * config/nios2/nios2.c : Likewise.
12997 * config/nvptx/nvptx.c : Likewise.
12998 * config/pa/pa.c : Likewise.
12999 * config/pdp11/pdp11.c : Likewise.
13000 * config/rl78/rl78-c.c : Likewise.
13001 * config/rl78/rl78.c : Likewise.
13002 * config/rs6000/rs6000-c.c : Likewise.
13003 * config/rs6000/rs6000.c : Likewise.
13004 * config/rx/rx.c : Likewise.
13005 * config/s390/s390-c.c : Likewise.
13006 * config/s390/s390.c : Likewise.
13007 * config/sh/sh-c.c : Likewise.
13008 * config/sh/sh-mem.cc : Likewise.
13009 * config/sh/sh.c : Likewise.
13010 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
13011 * config/sh/sh_treg_combine.cc : Likewise.
13012 * config/sol2-c.c : Likewise.
13013 * config/sol2-cxx.c : Likewise.
13014 * config/sol2-stubs.c : Likewise.
13015 * config/sol2.c : Likewise.
13016 * config/sparc/sparc-c.c : Likewise.
13017 * config/sparc/sparc.c : Likewise.
13018 * config/spu/spu-c.c : Likewise.
13019 * config/spu/spu.c : Likewise.
13020 * config/stormy16/stormy16.c : Likewise.
13021 * config/tilegx/mul-tables.c : Likewise.
13022 * config/tilegx/tilegx-c.c : Likewise.
13023 * config/tilegx/tilegx.c : Likewise.
13024 * config/tilepro/mul-tables.c : Likewise.
13025 * config/tilepro/tilepro-c.c : Likewise.
13026 * config/tilepro/tilepro.c : Likewise.
13027 * config/v850/v850-c.c : Likewise.
13028 * config/v850/v850.c : Likewise.
13029 * config/vax/vax.c : Likewise.
13030 * config/visium/visium.c : Likewise.
13031 * config/vms/vms-c.c : Likewise.
13032 * config/vms/vms.c : Likewise.
13033 * config/vxworks.c : Likewise.
13034 * config/winnt-c.c : Likewise.
13035 * config/xtensa/xtensa.c : Likewise.
13037 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13040 * ipa-utils.h (warn_types_mismatch): Update prototype.
13041 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
13043 (type_mismatch_p): New function.
13044 (warn_types_mismatch): Reorg to work better on non-C++ types.
13045 (odr_types_equivalent_p): Add loc1/loc2 parameters.
13046 (add_type_duplicate): Update.
13048 2015-06-08 Tom de Vries <tom@codesourcery.com>
13050 PR rtl-optimization/66444
13051 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
13054 2015-06-08 Richard Biener <rguenther@suse.de>
13056 PR tree-optimization/66422
13057 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
13058 block after inserted gcc_unreachable.
13060 2015-06-08 Nick Clifton <nickc@redhat.com>
13062 * config/rx/rx.c (rx_function_value): Do not promote vector types.
13063 (rx_promote_function_mode): Likewise.
13064 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
13066 2015-06-08 Jakub Jelinek <jakub@redhat.com>
13068 * genattrtab.c (insn_alternatives): Change type from int *
13070 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
13071 (get_attr_value): Change type of num_alt to uint64_t.
13072 (compute_alternative_mask): Change return type from
13073 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
13074 (make_alternative_compare, mk_attr_alt): Change argument type
13075 from int to uint64_t.
13076 (simplify_test_exp): Change type of i from int to uint64_t.
13077 Shift ((uint64_t) 1) instead of 1 up.
13078 (main): Adjust oballocvec first argument from int to uint64_t.
13079 Shift ((uint64_t) 1) instead of 1 up.
13081 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13084 * gdbhooks.py: Import sys.
13085 (intptr): New function. Replace int(...) by intptr(...).
13087 2015-06-08 Richard Biener <rguenther@suse.de>
13089 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
13090 adjustment for gaps at the end of a SLP load group properly.
13091 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
13092 all permutations we can generate.
13093 (vect_transform_slp_perm_load): Use the correct group-size.
13095 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
13097 * genmatch.c (expr::gen_transform): For conditions, guess the type
13098 from the second operand.
13100 2015-06-08 Tom de Vries <tom@codesourcery.com>
13102 PR tree-optimization/66442
13103 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
13104 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
13105 if the loop latch is not a singleton. Use
13106 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
13108 2015-06-08 Marek Polacek <polacek@redhat.com>
13111 * toplev.c (check_global_declaration): Don't warn about artificial
13114 2015-06-08 Tom de Vries <tom@codesourcery.com>
13116 PR tree-optimization/66436
13117 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
13119 * gimplify.c: Add tree-dump.h include.
13120 (gimplify_function_tree): Dump function to gimple dump file.
13121 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
13124 2015-06-08 Tom de Vries <tom@codesourcery.com>
13126 PR tree-optimization/66435
13127 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
13130 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
13132 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
13133 of ptr_type_node to not be ptr_to_node.
13134 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
13135 TREE_TYPE of pointers.
13136 * gimple-expr.c (useless_type_conversion): Reorder the check for
13137 function pointers and TYPE_CANONICAL.
13139 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
13142 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
13143 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
13144 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
13146 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
13147 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
13148 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
13149 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
13150 and non iso if unix2003.
13152 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
13154 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
13156 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
13158 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
13159 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
13160 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
13161 except.c, final.c, function.c, gcse-common.c, genemit.c,
13162 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
13163 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
13164 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
13165 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
13168 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
13170 * combine.c (combine_split_insns): Remove cast.
13171 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
13172 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
13173 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
13174 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
13175 * genemit.c (gen_split): Change return type of generated functions to
13177 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
13178 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
13179 gen_peephole2_* functions.
13180 (print_subroutine, main): Likewise.
13181 * recog.c (peephole2_optimize): Remove cast.
13182 (peep2_next_insn): Promote return type to rtx_insn.
13183 * recog.h (peep2_next_insn): Fix prototype.
13184 * rtl.h (try_split, split_insns): Likewise.
13186 2015-06-06 DJ Delorie <dj@redhat.com>
13188 * config/msp430/msp430.c (msp430_asm_integer): Support addition
13189 and subtraction too.
13191 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
13194 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
13195 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
13196 instead of Snd. Disparage Sid/z alternative with '^'.
13198 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
13200 * dwarf2out.c: Remove deferred_locations*.
13201 (dwarf2_debug_hooks): Add early_finish hook.
13202 Remove global_decl hook.
13203 Add early_global_decl and late_global_decl hook.
13204 New global early_dwarf.
13205 New structure set_early_dwarf.
13206 (output_die): Indicate whether a DIE was generated early
13207 when generating assembly with -dA.
13208 (struct limbo_die_struct): Document created_for field.
13209 Remove file_table_last_lookup.
13210 (remove_AT): Return TRUE if successful.
13211 (remove_child_TAG): Clear die_parent.
13212 (reparent_child): New function abstracted from...
13213 (splice_child_die): ...here.
13214 (new_die): ICE if a DIE ends up in limbo too late.
13216 (defer_location): Remove.
13217 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
13218 (fill_variable_array_bounds): New.
13219 (decl_start_label): Call fill_variable_array_bounds.
13220 (gen_formal_parameter_die): Rewrite to reuse previously generated
13222 (gen_subprogram_die): Same.
13223 (gen_variable_die): Same.
13224 (gen_const_die): Same.
13225 (gen_label_die): Same.
13226 (gen_lexical_block_die): Same.
13227 (decl_will_get_specification_p): New.
13228 (local_function_static): New.
13229 (gen_struct_or_union_type_die): Fill in variable-length fields.
13230 (gen_typedef_die): Fill in variable-length typedefs.
13231 (gen_tagged_type_die): Gracefully return on error_mark_node.
13232 Handle re-entrancy.
13233 (gen_type_die_with_usage): Handle variable-length types.
13234 Remove duplicate code for ARRAY_TYPE case.
13235 (process_scope_var): Only process imported modules during early
13237 (dwarf2out_early_global_decl): New.
13238 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
13239 (dwarf2out_type_decl): Set early_dwarf while calling
13241 (dwarf2out_decl): Verify that we did not recreate a previously
13243 Do not return on DECL_EXTERNALs in VAR_DECLs.
13244 Abstract some code to local_function_static.
13245 (lookup_filename): Remove use of file_table_last_lookup.
13246 Gracefully exit on missing file_name.
13247 (dwarf2out_finish): Verify limbo list.
13248 Remove deferred_locations_list use.
13249 Move deferred_asm_name and limbo flushing to...
13250 (dwarf2out_early_finish): ...here. New.
13251 (dwarf2out_c_finalize): Remove set of deferred_location_list,
13252 deferred_asm_name, and file_table_last_lookup.
13253 * cgraph.h (referred_to_p): Add default argument.
13254 * cgraphunit.c (referred_to_p): Add and handle include_self
13256 (analyze_functions): Add first_time argument.
13257 Call check_global_declaration for all symbols.
13258 Call late_global_decl for nodes for moribund nodes.
13259 (finalize_compilation_unit): Add new argument to
13261 Call early_global_decl for functions.
13262 Call early_finish debug hook.
13263 * dbxout.c (dbxout_early_global_decl): New.
13264 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
13265 (dbx_debug_hooks): Add new hooks.
13266 (xcoff_debug_hooks): Same.
13267 * debug.c (do_nothing_debug_hooks): Add early_finish field.
13268 Add early and late debug hooks.
13269 Remove global_decl hook.
13270 * debug.h (struct gcc_debug_hooks): Add early_finish,
13271 early_global_decl, and late_global_decl fields.
13272 Remove global_decl field.
13273 Document gcc_debug_hooks.
13274 * gengtype.c (output_typename): Remove.
13275 * godump.c (go_early_global_decl): New.
13276 (go_late_global_decl): New.
13277 (go_global_decl): Remove.
13278 (dump_go_spec_init): Remove global_decl. Add
13279 {early,late}_global_decl.
13280 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
13281 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
13282 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
13283 (write_global_declarations): Remove.
13284 (global_decl_processing): New.
13285 * langhooks.h (struct lang_hooks_for_decls): Remove
13286 final_write_globals field.
13287 Add post_compilation_parsing_cleanups field.
13288 * passes.c (rest_of_decl_compilation): Call early_global_decl.
13289 * sdbout.c: Add early and late_global_decl hooks. Remove
13290 sdbout_global_decl hook.
13291 Add early_finish field for sdb_debug_hooks.
13292 (sdbout_global_decl): Remove.
13293 (sdbout_early_global_decl): New.
13294 (sdbout_late_global_decl): New.
13295 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
13296 * toplev.c (check_global_declaration): Rename from
13297 check_global_declaration_1.
13298 Adapt to use symtab infrastructure.
13299 (check_global_declarations): Remove.
13300 (emit_debug_global_declarations): Remove.
13301 (compile_file): Remove call to final_write_globals langhook.
13302 Run the actual compilation process.
13303 Perform any post compilation parser cleanups.
13304 Generate late debug info.
13305 * toplev.h (check_global_declaration): New.
13306 (check_global_declaration_1): Remove.
13307 (check_global_declarations): Remove.
13308 (write_global_declarations): Remove.
13309 (emit_debug_global_declarations): Remove.
13310 (global_decl_processing): New.
13311 * tree-core.h (struct tree_block): Add DIE field.
13312 * tree.h (BLOCK_DIE): New.
13313 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
13315 (vmsdbgout_early_global_decl): New.
13316 (vmsdbgout_late_global_decl): New.
13317 Add early_finish debug hook field to vmsdbg_debug_hooks.
13318 Remove vmsdbgout_decl to vmsdbgout_function_decl.
13319 Add early and late_global_decl debug hooks.
13321 2015-06-05 Julian Brown <julian@codesourcery.com>
13322 Sandra Loosemore <sandra@codesourcery.com>
13324 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
13325 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
13326 to print-sysroot-suffix.sh script.
13328 2015-06-05 Tom de Vries <tom@codesourcery.com>
13330 merge from gomp4 branch:
13331 2015-05-28 Tom de Vries <tom@codesourcery.com>
13333 PR tree-optimization/65443
13334 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
13335 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
13336 (try_transform_to_exit_first_loop_alt): New function.
13337 (transform_to_exit_first_loop): Use
13338 try_transform_to_exit_first_loop_alt.
13340 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
13342 * builtins.c (expand_builtin_atomic_compare_exchange): Call
13343 emit_cmp_and_jump_insns with the mode of target.
13345 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13347 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
13349 2015-06-04 DJ Delorie <dj@redhat.com>
13351 * config/msp430/msp430.md (movsi_s): New. Special case for
13352 storing a 20-bit symbol into a 32-bit register.
13353 * config/msp430/msp430.c (msp430_subreg): Add support for it.
13354 * config/msp430/predicates.md (msp430_symbol_operand): New.
13356 2015-06-04 Sriraman Tallam <tmsriram@google.com>
13358 * c-family/c-common.c (noplt): New attribute.
13359 (handle_noplt_attribute): New handler.
13360 * calls.c (prepare_call_address): Check for noplt
13362 * config/i386/i386.c (ix86_expand_call): Check
13363 for noplt attribute.
13364 (ix86_nopic_noplt_attribute_p): New function.
13365 (ix86_output_call_insn): Output indirect call for non-pic
13367 * doc/extend.texi (noplt): Document new attribute.
13368 * doc/invoke.texi: Document new attribute.
13370 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
13372 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
13373 real.h, and fixed-value.h when included in host source files.
13374 * double-int.h: Remove redundant #includes listed above.
13375 * fixed-value.h: Likewise.
13376 * real.h: Likewise.
13377 * wide-int.h: Likewise.
13378 * inchash.h: Likewise.
13379 * rtl.h: Add some include files When included from a generator file.
13380 * target.h: Remove wide-int.h and insn-modes.h from the include list.
13381 * internal-fn.h: Don't include coretypes.h.
13382 * alias.c: Adjust includes for restructured coretypes.h.
13383 * asan.c: Likewise.
13384 * attribs.c: Likewise.
13385 * auto-inc-dec.c: Likewise.
13386 * auto-profile.c: Likewise.
13387 * bb-reorder.c: Likewise.
13388 * bt-load.c: Likewise.
13389 * builtins.c: Likewise.
13390 * caller-save.c: Likewise.
13391 * calls.c: Likewise.
13392 * ccmp.c: Likewise.
13394 * cfganal.c: Likewise.
13395 * cfgbuild.c: Likewise.
13396 * cfgcleanup.c: Likewise.
13397 * cfgexpand.c: Likewise.
13398 * cfghooks.c: Likewise.
13399 * cfgloop.c: Likewise.
13400 * cfgloop.h: Likewise.
13401 * cfgloopanal.c: Likewise.
13402 * cfgloopmanip.c: Likewise.
13403 * cfgrtl.c: Likewise.
13404 * cgraph.c: Likewise.
13405 * cgraphbuild.c: Likewise.
13406 * cgraphclones.c: Likewise.
13407 * cgraphunit.c: Likewise.
13408 * cilk-common.c: Likewise.
13409 * combine-stack-adj.c: Likewise.
13410 * combine.c: Likewise.
13411 * compare-elim.c: Likewise.
13412 * convert.c: Likewise.
13413 * coverage.c: Likewise.
13414 * cppbuiltin.c: Likewise.
13415 * cprop.c: Likewise.
13417 * cselib.c: Likewise.
13418 * data-streamer-in.c: Likewise.
13419 * data-streamer-out.c: Likewise.
13420 * data-streamer.c: Likewise.
13421 * dbxout.c: Likewise.
13424 * debug.c: Likewise.
13425 * df-core.c: Likewise.
13426 * df-problems.c: Likewise.
13427 * df-scan.c: Likewise.
13430 * dojump.c: Likewise.
13431 * dominance.c: Likewise.
13432 * domwalk.c: Likewise.
13433 * double-int.c: Likewise.
13435 * dumpfile.c: Likewise.
13436 * dwarf2asm.c: Likewise.
13437 * dwarf2cfi.c: Likewise.
13438 * dwarf2out.c: Likewise.
13439 * dwarf2out.h: Likewise.
13440 * emit-rtl.c: Likewise.
13441 * et-forest.c: Likewise.
13442 * except.c: Likewise.
13443 * explow.c: Likewise.
13444 * expmed.c: Likewise.
13445 * expr.c: Likewise.
13446 * final.c: Likewise.
13447 * fixed-value.c: Likewise.
13448 * fold-const.c: Likewise.
13449 * function.c: Likewise.
13450 * fwprop.c: Likewise.
13451 * gcc-plugin.h: Likewise.
13452 * gcse.c: Likewise.
13453 * generic-match-head.c: Likewise.
13454 * ggc-page.c: Likewise.
13455 * gimple-builder.c: Likewise.
13456 * gimple-expr.c: Likewise.
13457 * gimple-fold.c: Likewise.
13458 * gimple-iterator.c: Likewise.
13459 * gimple-low.c: Likewise.
13460 * gimple-match-head.c: Likewise.
13461 * gimple-pretty-print.c: Likewise.
13462 * gimple-ssa-isolate-paths.c: Likewise.
13463 * gimple-ssa-strength-reduction.c: Likewise.
13464 * gimple-streamer-in.c: Likewise.
13465 * gimple-streamer-out.c: Likewise.
13466 * gimple-streamer.h: Likewise.
13467 * gimple-walk.c: Likewise.
13468 * gimple.c: Likewise.
13469 * gimplify-me.c: Likewise.
13470 * gimplify.c: Likewise.
13471 * godump.c: Likewise.
13472 * graph.c: Likewise.
13473 * graphite-blocking.c: Likewise.
13474 * graphite-dependences.c: Likewise.
13475 * graphite-interchange.c: Likewise.
13476 * graphite-isl-ast-to-gimple.c: Likewise.
13477 * graphite-optimize-isl.c: Likewise.
13478 * graphite-poly.c: Likewise.
13479 * graphite-scop-detection.c: Likewise.
13480 * graphite-sese-to-poly.c: Likewise.
13481 * graphite.c: Likewise.
13482 * haifa-sched.c: Likewise.
13483 * hooks.h: Likewise.
13484 * hw-doloop.c: Likewise.
13485 * ifcvt.c: Likewise.
13486 * incpath.c: Likewise.
13487 * init-regs.c: Likewise.
13488 * internal-fn.c: Likewise.
13489 * ipa-chkp.c: Likewise.
13490 * ipa-comdats.c: Likewise.
13491 * ipa-cp.c: Likewise.
13492 * ipa-devirt.c: Likewise.
13493 * ipa-icf-gimple.c: Likewise.
13494 * ipa-icf.c: Likewise.
13495 * ipa-inline-analysis.c: Likewise.
13496 * ipa-inline-transform.c: Likewise.
13497 * ipa-inline.c: Likewise.
13498 * ipa-polymorphic-call.c: Likewise.
13499 * ipa-profile.c: Likewise.
13500 * ipa-prop.c: Likewise.
13501 * ipa-pure-const.c: Likewise.
13502 * ipa-ref.c: Likewise.
13503 * ipa-reference.c: Likewise.
13504 * ipa-split.c: Likewise.
13505 * ipa-utils.c: Likewise.
13506 * ipa-visibility.c: Likewise.
13508 * ira-build.c: Likewise.
13509 * ira-color.c: Likewise.
13510 * ira-conflicts.c: Likewise.
13511 * ira-costs.c: Likewise.
13512 * ira-emit.c: Likewise.
13513 * ira-lives.c: Likewise.
13515 * jump.c: Likewise.
13516 * langhooks.c: Likewise.
13518 * loop-doloop.c: Likewise.
13519 * loop-init.c: Likewise.
13520 * loop-invariant.c: Likewise.
13521 * loop-iv.c: Likewise.
13522 * loop-unroll.c: Likewise.
13523 * lower-subreg.c: Likewise.
13524 * lra-assigns.c: Likewise.
13525 * lra-coalesce.c: Likewise.
13526 * lra-constraints.c: Likewise.
13527 * lra-eliminations.c: Likewise.
13528 * lra-lives.c: Likewise.
13529 * lra-remat.c: Likewise.
13530 * lra-spills.c: Likewise.
13532 * lto-cgraph.c: Likewise.
13533 * lto-compress.c: Likewise.
13534 * lto-opts.c: Likewise.
13535 * lto-section-in.c: Likewise.
13536 * lto-section-out.c: Likewise.
13537 * lto-streamer-in.c: Likewise.
13538 * lto-streamer-out.c: Likewise.
13539 * lto-streamer.c: Likewise.
13541 * mode-switching.c: Likewise.
13542 * modulo-sched.c: Likewise.
13543 * omega.c: Likewise.
13544 * omp-low.c: Likewise.
13545 * optabs.c: Likewise.
13546 * opts-global.c: Likewise.
13547 * passes.c: Likewise.
13548 * plugin.c: Likewise.
13549 * postreload-gcse.c: Likewise.
13550 * postreload.c: Likewise.
13551 * predict.c: Likewise.
13552 * print-rtl.c: Likewise.
13553 * print-tree.c: Likewise.
13554 * profile.c: Likewise.
13555 * real.c: Likewise.
13556 * realmpfr.c: Likewise.
13557 * realmpfr.h: Likewise.
13558 * recog.c: Likewise.
13560 * reg-stack.c: Likewise.
13561 * regcprop.c: Likewise.
13562 * reginfo.c: Likewise.
13563 * regrename.c: Likewise.
13564 * regs.h: Likewise.
13565 * regstat.c: Likewise.
13566 * reload.c: Likewise.
13567 * reload1.c: Likewise.
13568 * reorg.c: Likewise.
13569 * resource.c: Likewise.
13570 * rtl-chkp.c: Likewise.
13571 * rtlanal.c: Likewise.
13572 * rtlhooks.c: Likewise.
13573 * sanopt.c: Likewise.
13574 * sched-deps.c: Likewise.
13575 * sched-ebb.c: Likewise.
13576 * sched-rgn.c: Likewise.
13577 * sched-vis.c: Likewise.
13578 * sdbout.c: Likewise.
13579 * sel-sched-dump.c: Likewise.
13580 * sel-sched-ir.c: Likewise.
13581 * sel-sched.c: Likewise.
13582 * sese.c: Likewise.
13583 * shrink-wrap.c: Likewise.
13584 * shrink-wrap.h: Likewise.
13585 * simplify-rtx.c: Likewise.
13586 * stack-ptr-mod.c: Likewise.
13587 * statistics.c: Likewise.
13588 * stmt.c: Likewise.
13589 * stor-layout.c: Likewise.
13590 * store-motion.c: Likewise.
13591 * stringpool.c: Likewise.
13592 * symtab.c: Likewise.
13593 * target-globals.c: Likewise.
13594 * targhooks.c: Likewise.
13595 * toplev.c: Likewise.
13596 * tracer.c: Likewise.
13597 * trans-mem.c: Likewise.
13598 * tree-affine.c: Likewise.
13599 * tree-affine.h: Likewise.
13600 * tree-browser.c: Likewise.
13601 * tree-call-cdce.c: Likewise.
13602 * tree-cfg.c: Likewise.
13603 * tree-cfgcleanup.c: Likewise.
13604 * tree-chkp-opt.c: Likewise.
13605 * tree-chkp.c: Likewise.
13606 * tree-chrec.c: Likewise.
13607 * tree-complex.c: Likewise.
13608 * tree-data-ref.c: Likewise.
13609 * tree-dfa.c: Likewise.
13610 * tree-diagnostic.c: Likewise.
13611 * tree-dump.c: Likewise.
13612 * tree-eh.c: Likewise.
13613 * tree-emutls.c: Likewise.
13614 * tree-if-conv.c: Likewise.
13615 * tree-inline.c: Likewise.
13616 * tree-into-ssa.c: Likewise.
13617 * tree-iterator.c: Likewise.
13618 * tree-loop-distribution.c: Likewise.
13619 * tree-nested.c: Likewise.
13620 * tree-nrv.c: Likewise.
13621 * tree-object-size.c: Likewise.
13622 * tree-outof-ssa.c: Likewise.
13623 * tree-parloops.c: Likewise.
13624 * tree-phinodes.c: Likewise.
13625 * tree-predcom.c: Likewise.
13626 * tree-pretty-print.c: Likewise.
13627 * tree-pretty-print.h: Likewise.
13628 * tree-profile.c: Likewise.
13629 * tree-scalar-evolution.c: Likewise.
13630 * tree-sra.c: Likewise.
13631 * tree-ssa-address.c: Likewise.
13632 * tree-ssa-alias.c: Likewise.
13633 * tree-ssa-ccp.c: Likewise.
13634 * tree-ssa-coalesce.c: Likewise.
13635 * tree-ssa-copy.c: Likewise.
13636 * tree-ssa-copyrename.c: Likewise.
13637 * tree-ssa-dce.c: Likewise.
13638 * tree-ssa-dom.c: Likewise.
13639 * tree-ssa-dse.c: Likewise.
13640 * tree-ssa-forwprop.c: Likewise.
13641 * tree-ssa-ifcombine.c: Likewise.
13642 * tree-ssa-live.c: Likewise.
13643 * tree-ssa-loop-ch.c: Likewise.
13644 * tree-ssa-loop-im.c: Likewise.
13645 * tree-ssa-loop-ivcanon.c: Likewise.
13646 * tree-ssa-loop-ivopts.c: Likewise.
13647 * tree-ssa-loop-manip.c: Likewise.
13648 * tree-ssa-loop-niter.c: Likewise.
13649 * tree-ssa-loop-prefetch.c: Likewise.
13650 * tree-ssa-loop-unswitch.c: Likewise.
13651 * tree-ssa-loop.c: Likewise.
13652 * tree-ssa-loop.h: Likewise.
13653 * tree-ssa-math-opts.c: Likewise.
13654 * tree-ssa-operands.c: Likewise.
13655 * tree-ssa-phiopt.c: Likewise.
13656 * tree-ssa-phiprop.c: Likewise.
13657 * tree-ssa-pre.c: Likewise.
13658 * tree-ssa-propagate.c: Likewise.
13659 * tree-ssa-reassoc.c: Likewise.
13660 * tree-ssa-sccvn.c: Likewise.
13661 * tree-ssa-scopedtables.c: Likewise.
13662 * tree-ssa-sink.c: Likewise.
13663 * tree-ssa-strlen.c: Likewise.
13664 * tree-ssa-structalias.c: Likewise.
13665 * tree-ssa-tail-merge.c: Likewise.
13666 * tree-ssa-ter.c: Likewise.
13667 * tree-ssa-threadedge.c: Likewise.
13668 * tree-ssa-threadupdate.c: Likewise.
13669 * tree-ssa-uncprop.c: Likewise.
13670 * tree-ssa-uninit.c: Likewise.
13671 * tree-ssa.c: Likewise.
13672 * tree-ssanames.c: Likewise.
13673 * tree-stdarg.c: Likewise.
13674 * tree-streamer-in.c: Likewise.
13675 * tree-streamer-out.c: Likewise.
13676 * tree-streamer.c: Likewise.
13677 * tree-switch-conversion.c: Likewise.
13678 * tree-tailcall.c: Likewise.
13679 * tree-vect-data-refs.c: Likewise.
13680 * tree-vect-generic.c: Likewise.
13681 * tree-vect-loop-manip.c: Likewise.
13682 * tree-vect-loop.c: Likewise.
13683 * tree-vect-patterns.c: Likewise.
13684 * tree-vect-slp.c: Likewise.
13685 * tree-vect-stmts.c: Likewise.
13686 * tree-vectorizer.c: Likewise.
13687 * tree-vrp.c: Likewise.
13688 * tree.c: Likewise.
13689 * tsan.c: Likewise.
13690 * ubsan.c: Likewise.
13691 * valtrack.c: Likewise.
13692 * value-prof.c: Likewise.
13693 * var-tracking.c: Likewise.
13694 * varasm.c: Likewise.
13695 * varpool.c: Likewise.
13696 * vmsdbgout.c: Likewise.
13697 * vtable-verify.c: Likewise.
13699 * wide-int-print.cc: Likewise.
13700 * wide-int-print.h: Likewise.
13701 * wide-int.cc: Likewise.
13702 * xcoffout.c: Likewise.
13703 * config/aarch64/aarch64-builtins.c: Likewise.
13704 * config/aarch64/aarch64.c: Likewise.
13705 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13706 * config/alpha/alpha.c: Likewise.
13707 * config/arc/arc.c: Likewise.
13708 * config/arm/aarch-common.c: Likewise.
13709 * config/arm/arm-builtins.c: Likewise.
13710 * config/arm/arm-c.c: Likewise.
13711 * config/arm/arm.c: Likewise.
13712 * config/avr/avr-c.c: Likewise.
13713 * config/avr/avr-log.c: Likewise.
13714 * config/avr/avr.c: Likewise.
13715 * config/bfin/bfin.c: Likewise.
13716 * config/c6x/c6x.c: Likewise.
13717 * config/cr16/cr16.c: Likewise.
13718 * config/cris/cris.c: Likewise.
13719 * config/darwin-c.c: Likewise.
13720 * config/darwin.c: Likewise.
13721 * config/default-c.c: Likewise.
13722 * config/epiphany/epiphany.c: Likewise.
13723 * config/epiphany/mode-switch-use.c: Likewise.
13724 * config/epiphany/resolve-sw-modes.c: Likewise.
13725 * config/fr30/fr30.c: Likewise.
13726 * config/frv/frv.c: Likewise.
13727 * config/ft32/ft32.c: Likewise.
13728 * config/glibc-c.c: Likewise.
13729 * config/h8300/h8300.c: Likewise.
13730 * config/i386/i386-c.c: Likewise.
13731 * config/i386/i386.c: Likewise.
13732 * config/i386/msformat-c.c: Likewise.
13733 * config/i386/winnt-cxx.c: Likewise.
13734 * config/i386/winnt-stubs.c: Likewise.
13735 * config/i386/winnt.c: Likewise.
13736 * config/ia64/ia64-c.c: Likewise.
13737 * config/ia64/ia64.c: Likewise.
13738 * config/iq2000/iq2000.c: Likewise.
13739 * config/lm32/lm32.c: Likewise.
13740 * config/m32c/m32c-pragma.c: Likewise.
13741 * config/m32c/m32c.c: Likewise.
13742 * config/m32r/m32r.c: Likewise.
13743 * config/m68k/m68k.c: Likewise.
13744 * config/mcore/mcore.c: Likewise.
13745 * config/mep/mep-pragma.c: Likewise.
13746 * config/mep/mep.c: Likewise.
13747 * config/microblaze/microblaze-c.c: Likewise.
13748 * config/microblaze/microblaze.c: Likewise.
13749 * config/mips/mips.c: Likewise.
13750 * config/mmix/mmix.c: Likewise.
13751 * config/mn10300/mn10300.c: Likewise.
13752 * config/moxie/moxie.c: Likewise.
13753 * config/msp430/msp430-c.c: Likewise.
13754 * config/msp430/msp430.c: Likewise.
13755 * config/nds32/nds32-cost.c: Likewise.
13756 * config/nds32/nds32-fp-as-gp.c: Likewise.
13757 * config/nds32/nds32-intrinsic.c: Likewise.
13758 * config/nds32/nds32-isr.c: Likewise.
13759 * config/nds32/nds32-md-auxiliary.c: Likewise.
13760 * config/nds32/nds32-memory-manipulation.c: Likewise.
13761 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13762 * config/nds32/nds32-predicates.c: Likewise.
13763 * config/nds32/nds32.c: Likewise.
13764 * config/nios2/nios2.c: Likewise.
13765 * config/nvptx/nvptx.c: Likewise.
13766 * config/pa/pa.c: Likewise.
13767 * config/pdp11/pdp11.c: Likewise.
13768 * config/rl78/rl78-c.c: Likewise.
13769 * config/rl78/rl78.c: Likewise.
13770 * config/rs6000/rs6000-c.c: Likewise.
13771 * config/rs6000/rs6000.c: Likewise.
13772 * config/rx/rx.c: Likewise.
13773 * config/s390/s390-c.c: Likewise.
13774 * config/s390/s390.c: Likewise.
13775 * config/sh/sh-c.c: Likewise.
13776 * config/sh/sh-mem.cc: Likewise.
13777 * config/sh/sh.c: Likewise.
13778 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13779 * config/sh/sh_treg_combine.cc: Likewise.
13780 * config/sol2-c.c: Likewise.
13781 * config/sol2-cxx.c: Likewise.
13782 * config/sol2-stubs.c: Likewise.
13783 * config/sol2.c: Likewise.
13784 * config/sparc/sparc-c.c: Likewise.
13785 * config/sparc/sparc.c: Likewise.
13786 * config/spu/spu-c.c: Likewise.
13787 * config/spu/spu.c: Likewise.
13788 * config/stormy16/stormy16.c: Likewise.
13789 * config/tilegx/mul-tables.c: Likewise.
13790 * config/tilegx/tilegx-c.c: Likewise.
13791 * config/tilegx/tilegx.c: Likewise.
13792 * config/tilepro/mul-tables.c: Likewise.
13793 * config/tilepro/tilepro-c.c: Likewise.
13794 * config/tilepro/tilepro.c: Likewise.
13795 * config/v850/v850-c.c: Likewise.
13796 * config/v850/v850.c: Likewise.
13797 * config/vax/vax.c: Likewise.
13798 * config/visium/visium.c: Likewise.
13799 * config/vms/vms-c.c: Likewise.
13800 * config/vms/vms.c: Likewise.
13801 * config/vxworks.c: Likewise.
13802 * config/winnt-c.c: Likewise.
13803 * config/xtensa/xtensa.c: Likewise.
13804 * common/config/bfin/bfin-common.c: Likewise.
13806 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
13808 * tree.h (tree_code_for_canonical_type_merging): New function.
13809 * tree.c (gimple_canonical_types_compatible_p): Use
13810 tree_code_for_canonical_type_merging..
13812 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13816 * doc/tm.texi: Regenerate.
13817 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
13818 * target.def (TARGET_RELAXED_ORDERING): Likewise.
13819 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
13820 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
13821 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
13822 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
13823 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
13824 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
13825 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
13827 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13829 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
13830 register fma steering pass.
13831 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
13832 AARCH64_TUNE_FMA_STEERING.
13834 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
13836 * tree.c (verify_type_variant): Verify that type and variant is
13838 (gimple_canonical_types_compatible_p): Look for main variants.
13840 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13842 * config.gcc (powerpc*-*-*): Add support for a new configure
13843 option --with-advance-toolchain=<xxx> which overrides using the
13844 default header files, libraries and dynamic linker.
13846 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
13847 specs to support the configure --with-advance-toolchain=<xxx>
13849 (INCLUDE_EXTRA_SPEC): Likewise.
13850 (LINK_OS_EXTRA_SPEC32): Likewise.
13851 (LINK_OK_EXTRA_SPEC64): Likewise.
13852 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
13853 (DYNAMIC_LINKER_PREFIX): Likewise.
13854 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
13856 (GLIBC_DYNAMIC_LINKER32): Likewise.
13857 (GLIBC_DYNAMIC_LINKER64): Likewise.
13858 (LINK_OS_LINUX_SPEC32): Likewise.
13859 (LINK_OS_LINUX_SPEC64): Likewise.
13861 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
13862 configuration option.
13864 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
13867 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
13868 to determine current function ABI.
13869 (ix86_function_value_regno_p): Ditto.
13871 2015-06-03 Martin Liska <mliska@suse.cz>
13873 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
13874 * bitmap.h (struct bitmap_usage): Likewise.
13875 * ggc-common.c (struct ggc_usage): Likewise.
13876 * mem-stats.h (struct mem_location): Likewise.
13877 (struct mem_usage): Likewise.
13878 * vec.c (struct vec_usage): Likewise.
13880 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
13882 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
13885 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
13887 * doc/plugins.texi (enum plugin_event): New event.
13888 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
13889 and PLUGIN_FINISH_FUNCTION.
13890 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
13891 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
13893 2015-06-03 Richard Biener <rguenther@suse.de>
13895 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
13896 compute GROUP_GAP for the first element.
13897 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
13900 2015-06-03 Nick Clifton <nickc@redhat.com>
13902 * config/rl78/rl78-real.md: Add peepholes to avoid a register
13903 copy when calling a function.
13904 * config/rl78/rl78.c (need_to_save): Do not push the frame
13905 pointer in an interrupt handler prologue if it is never used.
13907 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13909 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
13911 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
13913 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
13914 reference when cloning alias node.
13916 2015-06-03 Martin Liska <mliska@suse.cz>
13918 * alloc-pool.h (struct pool_usage): Correct space padding.
13919 * ggc-page.c (ggc_print_statistics): Align columns in a report.
13920 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
13921 * tree.c (dump_tree_statistics): Align columns in a report.
13923 2015-06-03 Martin Liska <mliska@suse.cz>
13925 * alloc-pool.c (allocate_pool_descriptor): Remove.
13926 (struct pool_output_info): Likewise.
13927 (print_alloc_pool_statistics): Likewise.
13928 (dump_alloc_pool_statistics): Likewise.
13929 * alloc-pool.h (struct pool_usage): New struct.
13930 (pool_allocator::initialize): Change usage of memory statistics
13931 to a new interface.
13932 (pool_allocator::release): Likewise.
13933 (pool_allocator::allocate): Likewise.
13934 (pool_allocator::remove): Likewise.
13935 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
13936 for a pool allocator.
13937 * mem-stats.h (struct mem_location): Add new ctor.
13938 (struct mem_usage): Add counter for number of
13940 (mem_alloc_description::register_descriptor): New overload of
13941 * mem-stats.h (mem_location::to_string): New function.
13942 * bitmap.h (struct bitmap_usage): Use this new function.
13943 * ggc-common.c (struct ggc_usage): Likewise.
13946 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
13948 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
13949 of GCC_INSN_FLAGS_H block.
13951 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13953 * explow.c (plus_constant): Update check after force_const_mem call
13954 to see if the value returned is not a NULL_RTX.
13956 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
13958 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
13959 remove instumentation thunks calling reachable functions.
13960 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
13961 * lto/lto-partition.c (privatize_symbol_name_1): New.
13962 (privatize_symbol_name): Privatize both decl and orig_decl
13963 names for instrumented functions.
13964 * cgraph.c (cgraph_node::verify_node): Add transparent
13965 alias chain check for instrumented node.
13967 2015-06-03 Marek Polacek <polacek@redhat.com>
13971 * tree.c (attribute_value_equal): Handle attribute format.
13972 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
13974 2015-06-03 Richard Biener <rguenther@suse.de>
13976 PR tree-optimization/63916
13977 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13978 Forward-propagate non-invariant addresses by splicing their
13979 reference ops if the result isn't going to be used by PRE.
13980 (vn_reference_lookup_3): Remove pointless assert.
13982 2015-06-03 Richard Biener <rguenther@suse.de>
13984 PR tree-optimization/66375
13985 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
13986 add to the evolution before following SSA edges.
13988 2015-06-03 Bin Cheng <bin.cheng@arm.com>
13990 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
13991 (dump_use, dump_cand, find_induction_variables): Pass new argument
13993 (record_use): Preserve the ssa name information in IV.
13995 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
13997 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
13999 (add_mode_tests): Don't add mode tests if the predicate only
14000 accepts scalar constant integers. Otherwise, allow the mode
14001 of "op" to be VOIDmode if the predicate does accept such integers.
14003 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
14006 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
14007 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
14008 (aarch64_secondary_reload): Likewise
14009 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
14011 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
14014 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
14015 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14018 * cprop.c (try_replace_reg): Check cost of constants before propagating.
14020 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14022 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
14023 provide access to the IBM extended double floating point mode if
14024 long double is IEEE 128-bit floating point.
14025 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
14026 point if long double is the IBM extended double type.
14028 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
14029 enable adding IEEE 128-bit floating point support.
14030 (-mfloat128-software): Likewise.
14031 (-mfloat128-sw): Likewise.
14033 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
14034 128-bit floating point types to occupy any register if
14035 -mlong-double-64. Do not allow use of IFmode/KFmode unless
14036 -mfloat128-software is enabled.
14037 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
14039 (rs6000_option_override_internal): Add -mfloat128-* support.
14040 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
14042 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
14043 and float128 type nodes.
14044 (ieee128_float_type_node): Likewise.
14045 (ibm128_float_type_node): Likewise.
14047 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
14050 * config/aarch64/geniterators.sh: Rewrite in awk.
14052 2015-06-02 Martin Liska <mliska@suse.cz>
14054 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
14055 values to avoid -Wmaybe-uninitialized errors.
14057 2015-06-02 Richard Biener <rguenther@suse.de>
14060 * dwarf2out.c (lookup_context_die): New function.
14061 (resolve_addr): Avoid forcing a full DIE for the
14062 target of a DW_TAG_GNU_call_site during late compilation.
14063 Instead create a stub DIE without a type if we have a
14064 context DIE present.
14066 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
14068 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
14070 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14072 PR tree-optimization/48052
14073 * cfgloop.h (struct control_iv): New.
14074 (struct loop): New field control_ivs.
14075 * tree-ssa-loop-niter.c : Include "stor-layout.h".
14076 (number_of_iterations_lt): Set no_overflow information.
14077 (number_of_iterations_exit): Init control iv in niter struct.
14078 (record_control_iv): New.
14079 (estimate_numbers_of_iterations_loop): Call record_control_iv.
14080 (loop_exits_before_overflow): New. Interface factored out of
14081 scev_probably_wraps_p.
14082 (scev_probably_wraps_p): Factor loop niter related code into
14083 loop_exits_before_overflow.
14084 (free_numbers_of_iterations_estimates_loop): Free control ivs.
14085 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
14087 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
14089 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
14090 the target doesn't belong to the current function.
14092 2015-06-02 Marek Polacek <polacek@redhat.com>
14094 PR middle-end/66345
14095 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
14096 get_maxval_strlen does not produce an INTEGER_CST.
14098 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
14100 * config/arc/constraints.md: Use lower-case names in match_code.
14101 * config/mmix/constraints.md: Likewise.
14103 2015-06-02 Richard Biener <rguenther@suse.de>
14105 PR tree-optimization/65961
14106 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
14107 check and clarify dump message.
14108 (vect_build_slp_tree): If all children are built up from scalars
14109 build up the parent from scalars instead.
14110 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
14112 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
14115 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
14116 instead of print ... .
14118 2015-06-02 Alan Modra <amodra@gmail.com>
14120 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
14123 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14125 PR tree-optimization/52563
14126 PR tree-optimization/62173
14127 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
14128 (alloc_iv, set_iv): New parameter.
14129 (determine_biv_step): Delete.
14130 (find_bivs): Inline original determine_biv_step. Pass new
14131 argument to set_iv.
14132 (idx_find_step): Use no_overflow information for conversion.
14133 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
14134 resolve_mixers handle folded_casts.
14135 (instantiate_scev_name): Change bool parameter to bool pointer.
14136 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
14137 (instantiate_array_ref, instantiate_scev_not): Ditto.
14138 (instantiate_scev_3, instantiate_scev_2): Ditto.
14139 (instantiate_scev_1, instantiate_scev_r): Ditto.
14140 (instantiate_scev_convert, ): Change parameter. Pass argument
14141 to chrec_convert_aggressive.
14142 (instantiate_scev): Change argument.
14143 (resolve_mixers): New parameter and set it.
14144 (scev_const_prop): New argument.
14145 * tree-scalar-evolution.h (resolve_mixers): New parameter.
14146 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
14148 (chrec_convert): New parameter. Move definition below.
14149 (chrec_convert_aggressive): New parameter and set it. Call
14150 convert_affine_scev.
14151 * tree-chrec.h (chrec_convert): New parameter.
14152 (chrec_convert_aggressive): Ditto.
14154 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14156 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
14157 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
14158 the LHS of a no-return call if its type has variable size.
14159 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14160 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
14162 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
14164 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
14165 * config.in: Regenerate.
14167 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14169 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14170 consecutive accesses within outer-loop with force_vectorize
14171 for references with zero step in inner-loop.
14173 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14175 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
14176 rather than from gcc/build directory.
14178 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14181 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
14182 for __sync memory models, emit initial loads and final barriers as
14185 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14188 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
14189 (aarch64_split_atomic_op): Check for __sync memory models, emit
14190 appropriate initial loads and final barriers.
14192 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14194 * Makefile.in: Fix gcov dependencies that should
14195 not point to a build folder.
14197 2015-06-01 Richard Biener <rguenther@suse.de>
14200 2015-05-29 Richard Biener <rguenther@suse.de>
14202 PR tree-optimization/66314
14203 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14204 parameter that says which loop the new block belongs to.
14205 (ssa_create_duplicates): Blocks duplicated for the threaded
14206 path belong to the loop of the thread destination.
14208 2015-06-01 Martin Liska <mliska@suse.cz>
14210 * sched-deps.c: Include pool-alloc.h before
14211 cselib.h header file is included.
14213 2015-06-01 Richard Biener <rguenther@suse.de>
14215 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
14218 2015-06-01 Martin Liska <mliska@suse.cz>
14220 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
14221 a function local variable.
14223 2015-06-01 Martin Liska <mliska@suse.cz>
14225 * alloc-pool.c (create_alloc_pool): Remove.
14226 (empty_alloc_pool): Likewise.
14227 (free_alloc_pool): Likewise.
14228 (free_alloc_pool_if_empty): Likewise.
14229 (pool_alloc): Likewise.
14230 (pool_free): Likewise.
14231 * alloc-pool.h: Remove old declarations.
14233 2015-06-01 Martin Liska <mliska@suse.cz>
14235 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
14236 (ira_create_object): Likewise.
14237 (ira_create_allocno): Likewise.
14238 (ira_create_live_range): Likewise.
14239 (copy_live_range): Likewise.
14240 (ira_finish_live_range): Likewise.
14241 (ira_free_allocno_costs): Likewise.
14242 (finish_allocno): Likewise.
14243 (finish_allocnos): Likewise.
14244 (initiate_prefs): Likewise.
14245 (ira_create_pref): Likewise.
14246 (finish_pref): Likewise.
14247 (finish_prefs): Likewise.
14248 (initiate_copies): Likewise.
14249 (ira_create_copy): Likewise.
14250 (finish_copy): Likewise.
14251 (finish_copies): Likewise.
14252 (finish_prefs): Likewise.
14254 2015-06-01 Martin Liska <mliska@suse.cz>
14256 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
14257 (allocate_and_init_ipcp_value): Likewise.
14258 (ipcp_lattice::add_value): Likewise.
14259 (merge_agg_lats_step): Likewise.
14260 (ipcp_driver): Likewise.
14261 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
14262 (ipa_free_all_structures_after_iinln): Likewise.
14263 * ipa-prop.h: Likewise.
14265 2015-06-01 Martin Liska <mliska@suse.cz>
14267 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
14269 (set_hint_predicate): Likewise.
14270 (inline_summary_alloc): Likewise.
14271 (reset_inline_edge_summary): Likewise.
14272 (reset_inline_summary): Likewise.
14273 (set_cond_stmt_execution_predicate): Likewise.
14274 (set_switch_stmt_execution_predicate): Likewise.
14275 (compute_bb_predicates): Likewise.
14276 (estimate_function_body_sizes): Likewise.
14277 (inline_free_summary): Likewise.
14279 2015-06-01 Martin Liska <mliska@suse.cz>
14281 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
14282 (ipa_edge_duplication_hook): Likewise.
14283 (ipa_free_all_structures_after_ipa_cp): Likewise.
14284 (ipa_free_all_structures_after_iinln): Likewise.
14286 2015-06-01 Martin Liska <mliska@suse.cz>
14288 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
14289 (ipa_profile_generate_summary): Likewise.
14290 (ipa_profile_read_summary): Likewise.
14291 (ipa_profile): Likewise.
14293 2015-06-01 Martin Liska <mliska@suse.cz>
14295 * tree-ssa-structalias.c (new_var_info): Use new type-based
14297 (new_constraint): Likewise.
14298 (init_alias_vars): Likewise.
14299 (delete_points_to_sets): Likewise.
14301 2015-06-01 Martin Liska <mliska@suse.cz>
14303 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
14304 (free_strinfo): Likewise.
14305 (pass_strlen::execute): Likewise.
14307 2015-06-01 Martin Liska <mliska@suse.cz>
14309 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
14311 (vn_reference_insert_pieces): Likewise.
14312 (vn_phi_insert): Likewise.
14313 (visit_reference_op_call): Likewise.
14314 (copy_phi): Likewise.
14315 (copy_reference): Likewise.
14316 (process_scc): Likewise.
14317 (allocate_vn_table): Likewise.
14318 (free_vn_table): Likewise.
14320 2015-06-01 Martin Liska <mliska@suse.cz>
14322 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
14324 (add_repeat_to_ops_vec): Likewise.
14325 (get_ops): Likewise.
14326 (maybe_optimize_range_tests): Likewise.
14327 (init_reassoc): Likewise.
14328 (fini_reassoc): Likewise.
14330 2015-06-01 Martin Liska <mliska@suse.cz>
14332 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
14334 (bitmap_set_new): Likewise.
14335 (get_or_alloc_expr_for_constant): Likewise.
14336 (get_or_alloc_expr_for): Likewise.
14337 (phi_translate_1): Likewise.
14338 (compute_avail): Likewise.
14339 (init_pre): Likewise.
14340 (fini_pre): Likewise.
14342 2015-06-01 Martin Liska <mliska@suse.cz>
14344 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
14345 (delete_dep_node): Likewise.
14346 (create_deps_list): Likewise.
14347 (free_deps_list): Likewise.
14348 (sched_deps_init): Likewise.
14349 (sched_deps_finish): Likewise.
14351 2015-06-01 Martin Liska <mliska@suse.cz>
14353 * regcprop.c (free_debug_insn_changes): Use new type-based
14355 (replace_oldest_value_reg): Likewise.
14356 (pass_cprop_hardreg::execute): Likewise.
14358 2015-06-01 Martin Liska <mliska@suse.cz>
14360 * ira-build.c (initiate_cost_vectors): Use new type-based
14362 (ira_allocate_cost_vector): Likewise.
14363 (ira_free_cost_vector): Likewise.
14364 (finish_cost_vectors): Likewise.
14366 2015-06-01 Martin Liska <mliska@suse.cz>
14368 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
14370 (free_sched_pools): Likewise.
14371 * sel-sched-ir.h (_list_alloc): Likewise.
14372 (_list_remove): Likewise.
14374 2015-06-01 Martin Liska <mliska@suse.cz>
14376 * stmt.c (add_case_node): Use new type-based pool allocator.
14377 (expand_case): Likewise.
14378 (expand_sjlj_dispatch_table): Likewise.
14380 2015-06-01 Martin Liska <mliska@suse.cz>
14382 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
14383 (free_bb): Likewise.
14384 (pass_cse_reciprocals::execute): Likewise.
14386 2015-06-01 Martin Liska <mliska@suse.cz>
14388 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
14389 (sra_deinitialize) Likewise.
14390 (create_access_1) Likewise.
14391 (build_accesses_from_assign) Likewise.
14392 (create_artificial_child_access) Likewise.
14394 2015-06-01 Martin Liska <mliska@suse.cz>
14396 * dse.c (get_group_info):Use new type-based pool allocator.
14397 (dse_step0) Likewise.
14398 (free_store_info) Likewise.
14399 (delete_dead_store_insn) Likewise.
14400 (free_read_records) Likewise.
14401 (record_store) Likewise.
14402 (replace_read) Likewise.
14403 (check_mem_read_rtx) Likewise.
14404 (scan_insn) Likewise.
14405 (dse_step1) Likewise.
14406 (dse_step7) Likewise.
14408 2015-06-01 Martin Liska <mliska@suse.cz>
14410 * df-scan.c (struct df_scan_problem_data):Use new type-based
14412 (df_scan_free_internal) Likewise.
14413 (df_scan_alloc) Likewise.
14414 (df_grow_reg_info) Likewise.
14415 (df_free_ref) Likewise.
14416 (df_insn_create_insn_record) Likewise.
14417 (df_mw_hardreg_chain_delete) Likewise.
14418 (df_insn_info_delete) Likewise.
14419 (df_free_collection_rec) Likewise.
14420 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
14421 (df_sort_and_compress_mws) Likewise.
14422 (df_ref_create_structure) Likewise.
14423 (df_ref_record) Likewise.
14425 2015-06-01 Martin Liska <mliska@suse.cz>
14427 * df-problems.c (df_chain_create):Use new type-based pool allocator.
14428 (df_chain_unlink_1) Likewise.
14429 (df_chain_unlink) Likewise.
14430 (df_chain_remove_problem) Likewise.
14431 (df_chain_alloc) Likewise.
14432 (df_chain_free) Likewise.
14433 * df.h (struct dataflow) Likewise.
14435 2015-06-01 Martin Liska <mliska@suse.cz>
14437 * cselib.c (new_elt_list):Use new type-based pool allocator.
14438 (new_elt_loc_list) Likewise.
14439 (unchain_one_elt_list) Likewise.
14440 (unchain_one_elt_loc_list) Likewise.
14441 (unchain_one_value) Likewise.
14442 (new_cselib_val) Likewise.
14443 (cselib_init) Likewise.
14444 (cselib_finish) Likewise.
14446 2015-06-01 Martin Liska <mliska@suse.cz>
14448 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
14449 (sh_reorg) Likewise.
14451 2015-06-01 Martin Liska <mliska@suse.cz>
14453 * cfg.c (initialize_original_copy_tables):Use new type-based
14455 (free_original_copy_tables) Likewise.
14456 (copy_original_table_clear) Likewise.
14457 (copy_original_table_set) Likewise.
14459 2015-06-01 Martin Liska <mliska@suse.cz>
14461 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
14463 (asan_mem_ref_new) Likewise.
14464 (free_mem_ref_resources) Likewise.
14466 2015-06-01 Martin Liska <mliska@suse.cz>
14468 * var-tracking.c (variable_htab_free):Use new type-based
14470 (attrs_list_clear) Likewise.
14471 (attrs_list_insert) Likewise.
14472 (attrs_list_copy) Likewise.
14473 (shared_hash_unshare) Likewise.
14474 (shared_hash_destroy) Likewise.
14475 (unshare_variable) Likewise.
14476 (var_reg_delete_and_set) Likewise.
14477 (var_reg_delete) Likewise.
14478 (var_regno_delete) Likewise.
14479 (drop_overlapping_mem_locs) Likewise.
14480 (variable_union) Likewise.
14481 (insert_into_intersection) Likewise.
14482 (canonicalize_values_star) Likewise.
14483 (variable_merge_over_cur) Likewise.
14484 (dataflow_set_merge) Likewise.
14485 (remove_duplicate_values) Likewise.
14486 (variable_post_merge_new_vals) Likewise.
14487 (dataflow_set_preserve_mem_locs) Likewise.
14488 (dataflow_set_remove_mem_locs) Likewise.
14489 (variable_from_dropped) Likewise.
14490 (variable_was_changed) Likewise.
14491 (set_slot_part) Likewise.
14492 (clobber_slot_part) Likewise.
14493 (delete_slot_part) Likewise.
14494 (loc_exp_insert_dep) Likewise.
14495 (notify_dependents_of_changed_value) Likewise.
14496 (emit_notes_for_differences_1) Likewise.
14497 (vt_emit_notes) Likewise.
14498 (vt_initialize) Likewise.
14499 (vt_finalize) Likewise.
14501 2015-06-01 Martin Liska <mliska@suse.cz>
14503 * ira-color.c (init_update_cost_records):Use new type-based
14505 (get_update_cost_record) Likewise.
14506 (free_update_cost_record_list) Likewise.
14507 (finish_update_cost_records) Likewise.
14508 (initiate_cost_update) Likewise.
14510 2015-06-01 Martin Liska <mliska@suse.cz>
14512 * lra.c (init_insn_regs): Use new type-based pool allocator.
14513 (new_insn_reg) Likewise.
14514 (free_insn_reg) Likewise.
14515 (free_insn_regs) Likewise.
14516 (finish_insn_regs) Likewise.
14517 (init_insn_recog_data) Likewise.
14518 (init_reg_info) Likewise.
14519 (finish_reg_info) Likewise.
14520 (lra_free_copies) Likewise.
14521 (lra_create_copy) Likewise.
14522 (invalidate_insn_data_regno_info) Likewise.
14524 2015-06-01 Martin Liska <mliska@suse.cz>
14526 * lra-lives.c (free_live_range): Use new type-based pool allocator.
14527 (free_live_range_list) Likewise.
14528 (create_live_range) Likewise.
14529 (copy_live_range) Likewise.
14530 (lra_merge_live_ranges) Likewise.
14531 (remove_some_program_points_and_update_live_ranges) Likewise.
14532 (lra_live_ranges_init) Likewise.
14533 (lra_live_ranges_finish) Likewise.
14535 2015-06-01 Martin Liska <mliska@suse.cz>
14537 * et-forest.c (et_new_occ): Use new type-based pool allocator.
14538 (et_new_tree): Likewise.
14539 (et_free_tree): Likewise.
14540 (et_free_tree_force): Likewise.
14541 (et_free_pools): Likewise.
14542 (et_split): Likewise.
14544 2015-06-01 Martin Liska <mliska@suse.cz>
14546 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
14548 * alloc-pool.h (pool_allocator::pool_allocator): New function.
14549 (pool_allocator::release): Likewise.
14550 (inline pool_allocator::release_if_empty): Likewise.
14551 (inline pool_allocator::~pool_allocator): Likewise.
14552 (pool_allocator::allocate): Likewise.
14553 (pool_allocator::remove): Likewise.
14555 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14557 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
14560 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14562 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
14564 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
14565 (arm_macro_fusion_p): Likewise.
14566 (arm_macro_fusion_pair_p): Likewise.
14568 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14570 * config/aarch64/aarch64-protos.h (tune_params): Rename
14571 fuseable_ops to fusible_ops.
14572 * config/aarch64/aarch64.c (generic_tunings): Rename
14573 fuseable_ops to fusible_ops.
14574 (cortexa53_tunings): Likewise.
14575 (cortexa57_tunings): Likewise.
14576 (thunderx_tunings): Likewise.
14577 (xgene1_tunings): Likewise.
14578 (aarch64_macro_fusion_p): Likewise.
14579 (aarch64_macro_fusion_pair_p): Likewise.
14581 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
14583 * config/s390/driver-native.c: New file.
14584 * config/s390/x-native: New file.
14585 * config.host: Add new files for s390.
14586 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
14588 * config.gcc: Likewise.
14589 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
14590 * config/s390/s390-opts.h (enum processor_type): Ditto.
14591 * config/s390/s390.c (s390_option_override): Catch unhandled
14594 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
14597 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
14598 redirection for instrumented calls.
14599 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
14600 (append_compiler_options): Append -fcheck-pointer-bounds.
14601 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
14602 (chkp_redirect_edge): New.
14603 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
14604 (chkp_redirect_edge): New.
14606 2015-06-01 Richard Biener <rguenther@suse.de>
14608 PR tree-optimization/66280
14609 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
14612 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14614 * config/aarch64/aarch64.md
14615 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
14618 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14620 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
14621 Remove obsolete kludge.
14623 2015-06-01 Richard Biener <rguenther@suse.de>
14625 * tree-ssa-reassoc.c (get_rank): Simplify.
14627 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
14629 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
14630 * configure: Regenerated.
14632 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
14634 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
14635 issue (add space between string literal and macro).
14636 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
14638 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
14640 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
14641 implict or explicit -fPIE or -fpie.
14643 2015-05-30 Mike Frysinger <vapier@gentoo.org>
14645 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
14647 2015-05-28 DJ Delorie <dj@redhat.com>
14649 * expmed.c (extract_bit_field_1): Avoid clobbering a
14650 yet-to-be-used base/index register.
14652 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
14654 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
14655 (alias_stats): Add num_universal.
14656 (alias_set_subset_of): Special case pointers; be ready for NULL
14658 (alias_sets_conflict_p): Special case pointers; be ready for NULL
14660 (init_alias_set_entry): Break out from ...
14661 (record_alias_subset): ... here; propagate new fields;
14662 allocate children only when really needed.
14663 (get_alias_set): Do less generous pointer globbing.
14664 (dump_alias_stats_in_alias_c): Update statistics.
14666 2015-05-30 Alan Modra <amodra@gmail.com>
14668 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
14669 correct block for use of r12.
14670 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
14672 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
14675 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
14678 2015-05-29 Jakub Jelinek <jakub@redhat.com>
14680 PR tree-optimization/66142
14681 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
14682 virtual phis that feed themselves.
14684 2015-05-29 Richard Biener <rguenther@suse.de>
14686 PR tree-optimization/66314
14687 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14688 parameter that says which loop the new block belongs to.
14689 (ssa_create_duplicates): Blocks duplicated for the threaded
14690 path belong to the loop of the thread destination.
14692 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14694 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
14695 to cleanup-saved-temps.
14696 * doc/sourcebuild.texi (Clean up generated test files): Expand
14698 (dg-keep-saved-temps): Document new proc.
14699 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
14700 cleanup-saved-temps): Remove.
14702 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
14704 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
14705 gcc_AC_CHECK_DECLS.
14706 * configure: Regenerate.
14708 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14710 * config/nios2/linux.h (CPP_SPEC): Define.
14712 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14714 * config/microblaze/linux.h (CPP_SPEC): Define.
14716 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14718 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
14719 -pthread is specified.
14721 2015-05-28 Richard Biener <rguenther@suse.de>
14723 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
14724 (vect_fixup_scalar_cycles_with_patterns): Likewise.
14725 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
14726 after pattern recog.
14727 (vect_create_epilog_for_reduction): Properly handle reductions
14729 (vectorizable_reduction): Likewise.
14730 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
14732 (vect_get_constant_vectors): Create the correct number of
14733 initial values for reductions.
14734 (vect_schedule_slp_instance): Handle reduction chains that are
14735 type changing properly.
14736 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
14738 2015-05-28 Richard Biener <rguenther@suse.de>
14740 PR tree-optimization/66142
14741 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
14742 values better in memcpy destination handling. Handle non-aliasing
14745 2015-05-28 Lawrence Velázquez <vq@larryv.me>
14748 * config/darwin-c.c (version_components): New global enum.
14749 (parse_version, version_as_legacy_macro)
14750 (version_as_modern_macro, macosx_version_as_macro): New functions.
14751 (version_as_macro): Remove.
14752 (darwin_cpp_builtins): Use new function.
14754 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
14756 * builtins.c (expand_builtin_acc_on_device): Mark parameters
14757 with ATTRIBUTE_UNUSED.
14759 2015-05-28 Julian Brown <julian@codesourcery.com>
14763 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
14764 sequence for !ACCEL_COMPILER.
14766 2015-05-28 Nick Clifton <nickc@redhat.com>
14768 * config/rx/rx.c (push_regs): New function. Extracts code from...
14769 (rx_expand_prologue): ... here. Use push_regs to push even small
14770 spans of registers.
14771 (pop_regs): New function.
14772 (rx_expand_epilogue): Use pop_regs to pop even small spans of
14775 2015-05-28 Richard Biener <rguenther@suse.de>
14777 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
14779 (SLP_INSTANCE_BODY_COST_VEC): Remove.
14780 (vect_update_slp_costs_according_to_vf): Likewise.
14781 (vect_slp_analyze_operations): Update prototype.
14782 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
14783 vect_update_slp_costs_according_to_vf, adjust.
14784 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
14785 (vect_analyze_slp_cost_1): Likewise.
14786 (vect_analyze_slp_cost): Likewise. Properly deal with
14787 widening reduction ops. Commit body costs.
14788 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
14789 cost for loops from here.
14790 (vect_slp_analyze_operations): But do it from here when
14791 the vectorization factor is known and stmts are analyzed.
14792 (vect_bb_vectorization_profitable_p): Simplify.
14793 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
14794 (vect_update_slp_costs_according_to_vf): Remove.
14796 2015-05-27 Magnus Granberg <zorry@gentoo.org>
14797 H.J. Lu <hongjiu.lu@intel.com>
14799 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
14800 (BUILD_CFLAGS): Likewise.
14801 (BUILD_CXXFLAGS): Likewise.
14802 (LINKER): Add @NO_PIE_FLAG@.
14803 (BUILD_LDFLAGS): Likewise.
14804 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
14805 --enable-default-pie.
14806 * common.opt (fPIE): Initialize to -1.
14808 (no-pie): New option.
14809 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
14810 * configure.ac: Add --enable-default-pie.
14811 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
14812 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
14813 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
14814 * gcc.c (NO_PIE_SPEC): New.
14815 (PIE_SPEC): Likewise.
14816 (NO_FPIE1_SPEC): Likewise.
14817 (FPIE1_SPEC): Likewise.
14818 (NO_FPIE2_SPEC): Likewise.
14819 (FPIE2_SPEC): Likewise.
14820 (NO_FPIE2_SPEC): Likewise.
14821 (FPIE_SPEC): Likewise.
14822 (NO_FPIE_SPEC): Likewise.
14823 (NO_FPIC1_SPEC): Likewise.
14824 (FPIC1_SPEC): Likewise.
14825 (NO_FPIC2_SPEC): Likewise.
14826 (FPIC2_SPEC): Likewise.
14827 (NO_FPIC2_SPEC): Likewise.
14828 (FPIC_SPEC): Likewise.
14829 (NO_FPIC_SPEC): Likewise.
14830 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
14831 (FPIE1_OR_FPIC1_SPEC): Likewise.
14832 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
14833 (FPIE2_OR_FPIC2_SPEC): Likewise.
14834 (NO_FPIE_AND_FPIC_SPEC): Likewise.
14835 (FPIE_OR_FPIC_SPEC): Likewise.
14836 (LD_PIE_SPEC): Likewise.
14837 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
14838 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
14839 * config/darwin.h (PIE_SPEC): Renamed to ...
14840 (DARWIN_PIE_SPEC): This.
14841 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
14842 * config/darwin9.h (PIE_SPEC): Renamed to ...
14843 (DARWIN_PIE_SPEC): This.
14844 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
14845 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14846 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
14847 FPIE2_OR_FPIC2_SPEC.
14848 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
14849 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
14850 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
14851 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14852 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14853 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14854 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
14855 * config/m32r/m32r.h (ASM_SPEC): Likewise.
14856 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
14857 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14858 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
14859 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
14860 * config/sparc/linux.h (ASM_SPEC): Likewise.
14861 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14862 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
14863 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
14864 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14865 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14866 * config/sparc/sparc.h (ASM_SPEC): Likewise.
14867 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
14868 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
14869 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
14870 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
14871 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
14872 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
14873 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
14874 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
14875 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
14876 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
14877 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
14878 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
14879 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14880 * config/vax/linux.h (ASM_SPEC): Likewise.
14881 * doc/install.texi: Document --enable-default-pie.
14882 * doc/invoke.texi: Document -no-pie.
14883 * config.in: Regenerated.
14884 * configure: Likewise.
14886 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14888 PR rtl-optimization/66168
14889 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
14890 can_move_invariant_reg.
14892 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
14895 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
14896 REG_EQUAL note when doing insert.
14898 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
14899 instead of "%d" for 'o' operand.
14901 2015-05-27 Nathan Sidwell <nathan@acm.org>
14904 * tree.c (build_pointer_type_for_mode): Canonical type does not
14905 inherit can_alias_all.
14906 (build_reference_type_for_mode): Likewise.
14908 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
14910 * expr.h (array_at_struct_end_p): Move to...
14911 (array_ref_element_size): Likewise.
14912 (component_ref_field_offset): Likewise.
14913 * tree.h (array_ref_element_size): ...here.
14914 (array_at_struct_end_p): Likewise.
14915 (component_ref_field_offset): Likewise.
14916 * expr.c (array_ref_element_size): Move to...
14917 (array_ref_low_bound): Likewise.
14918 (array_at_struct_end_p): Likewise.
14919 (array_ref_up_bound): Likewise.
14920 (component_ref_field_offset): Likewise.
14921 * tree.c (array_ref_element_size): ...here.
14922 (array_ref_low_bound): Likewise.
14923 (array_ref_up_bound): Likewise.
14924 (array_at_struct_end_p): Likewise.
14925 (component_ref_field_offset): Likewise.
14927 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
14928 Szabolcs Nagy <szabolcs.nagy@arm.com>
14930 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
14932 2015-05-27 Jason Merrill <jason@redhat.com>
14935 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
14936 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
14937 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
14939 2015-05-22 Aditya Kumar <hiraditya@msn.com>
14941 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
14944 * statistics.c (statistics_fini_pass): Print pass name.
14946 2015-05-27 Richard Biener <rguenther@suse.de>
14948 PR tree-optimization/66272
14950 2014-08-15 Richard Biener <rguenther@suse.de>
14952 PR tree-optimization/62031
14953 * tree-data-ref.c (dr_analyze_indices): Do not set
14954 DR_UNCONSTRAINED_BASE.
14955 (dr_may_alias_p): All indirect accesses have to go the
14956 formerly DR_UNCONSTRAINED_BASE path.
14957 * tree-data-ref.h (struct indices): Remove
14958 unconstrained_base member.
14959 (DR_UNCONSTRAINED_BASE): Remove.
14961 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
14963 * dwarf2out.c: Remove block_map.
14964 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
14965 (gen_lexical_block_die): Same.
14966 (dwarf2out_function_decl): Remove block_map use.
14967 (dwarf2out_c_finalize): Same.
14968 * tree-core.h (struct tree_block): Add die field.
14969 * tree.h (BLOCK_DIE): New.
14971 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14974 * expr.c (memory_load_overlap): New function.
14975 (emit_push_insn): When pushing partial args to the stack would
14976 clobber the register part load the overlapping part into a pseudo
14977 and put it into the hard reg after pushing. Change return type
14978 to bool. Add bool argument.
14979 * expr.h (emit_push_insn): Change return type to bool.
14981 * calls.c (expand_call): Cancel sibcall optimization when encountering
14982 partial argument on targets with ARGS_GROW_DOWNWARD and
14983 !STACK_GROWS_DOWNWARD.
14984 (emit_library_call_value_1): Update callsite of emit_push_insn.
14985 (store_one_arg): Likewise.
14987 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
14989 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
14991 2015-05-27 Martin Liska <mliska@suse.cz>
14993 * Makefile.in: Add additional dependencies related to memory report
14995 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
14996 * bitmap.c (struct bitmap_descriptor_d): Remove.
14997 (struct loc): Likewise.
14998 (struct bitmap_desc_hasher): Likewise.
14999 (bitmap_desc_hasher::hash): Likewise.
15000 (bitmap_desc_hasher::equal): Likewise.
15001 (get_bitmap_descriptor): Likewise.
15002 (bitmap_register): User new memory descriptor API.
15003 (register_overhead): Likewise.
15004 (bitmap_find_bit): Register nsearches and search_iter statistics.
15005 (struct bitmap_output_info): Remove.
15006 (print_statistics): Likewise.
15007 (dump_bitmap_statistics): Use new memory descriptor.
15008 * bitmap.h (struct bitmap_usage): New class.
15009 * genmatch.c: Extend header file inclusion.
15010 * genpreds.c: Likewise.
15011 * ggc-common.c (struct ggc_usage): New class.
15012 (struct ggc_loc_desc_hasher): Remove.
15013 (ggc_loc_desc_hasher::hash): Likewise.
15014 (ggc_loc_desc_hasher::equal): Likewise.
15015 (struct ggc_ptr_hash_entry): Likewise.
15016 (struct ptr_hash_hasher): Likewise.
15017 (ptr_hash_hasher::hash): Likewise.
15018 (ptr_hash_hasher::equal): Likewise.
15019 (make_loc_descriptor): Likewise.
15020 (ggc_prune_ptr): Likewise.
15021 (dump_ggc_loc_statistics): Use new memory descriptor.
15022 (ggc_record_overhead): Likewise.
15023 (ggc_free_overhead): Likewise.
15024 (final_cmp_statistic): Remove.
15025 (cmp_statistic): Likewise.
15026 (ggc_add_statistics): Liekwise.
15027 (ggc_prune_overhead_list): Likewise.
15028 * hash-map-traits.h: New file.
15029 * hash-map.h (struct default_hashmap_traits): Move the traits to a
15030 separate header file.
15031 * hash-set.h: Pass memory statistics info to ctor.
15032 * hash-table.c (void dump_hash_table_loc_statistics): New function.
15033 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
15034 (hash_table::~hash_table): Register memory release operation.
15035 (hash_table::alloc_entries): Handle memory allocation operation.
15036 (hash_table::expand): Likewise.
15037 * inchash.c (iterative_hash_hashval_t): Move implementation to header
15039 (iterative_hash_host_wide_int): Likewise.
15040 * inchash.h (class hash): Likewise.
15041 * mem-stats-traits.h: New file.
15042 * mem-stats.h: New file.
15043 (mem_location): Add new class.
15044 (mem_usage): Likewise.
15045 (mem_alloc_description): Likewise.
15046 * sese.c: Add new header file inclusision.
15047 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
15049 * tree-sra.c: Add new header file inclusision.
15050 * vec.c (struct vec_descriptor): Remove.
15051 (hash_descriptor): Likewise.
15052 (struct vec_usage): Likewise.
15053 (struct ptr_hash_entry): Likewise.
15054 (hash_ptr): Likewise.
15055 (eq_ptr): Likewise.
15056 (vec_prefix::register_overhead): Use new memory descriptor API.
15057 (vec_prefix::release_overhead): Likewise.
15058 (add_statistics): Remove.
15059 (dump_vec_loc_statistics): Use new memory descriptor API.
15060 * vec.h (struct vec_prefix): Likewise.
15061 (va_heap::reserve): Likewise.
15062 (va_heap::release): Likewise.
15063 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
15065 2015-05-27 Richard Biener <rguenther@suse.de>
15067 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
15068 earlier and remove ??? comment.
15069 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
15070 and got called from loop analysis bail out. Always pass the SLP
15071 node to the vectorizable_* functions.
15072 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
15073 the premature SLP check here.
15074 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
15075 detected SLP stmts.
15076 (vect_detect_hybrid_slp_1): Likewise.
15078 2015-05-26 Jeff Law <law@redhat.com>
15080 * combine.c (find_split_point): Verify that the shift count is a
15081 constant when choosing (plus (ashift ...)) as a split point.
15083 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
15084 No functional changes.
15086 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
15088 * ipa-polymorphic-call.c
15089 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
15090 case when call target is already known.
15092 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
15095 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
15096 take into account the case that operands[1] and operands[2]
15097 are the same register.
15099 2015-05-26 Michael Matz <matz@suse.de>
15101 PR middle-end/66251
15103 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
15105 (vect_create_vectorized_demotion_stmts): Always set
15106 STMT_VINFO_VEC_STMT, also with SLP.
15107 (vectorizable_store): Handle strided group stores.
15109 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15112 * config/aarch64/aarch64.md
15113 (*adds_shift_imm_<mode>): New pattern.
15114 (*subs_shift_imm_<mode>): Likewise.
15115 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15116 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15117 (*add_uxt<mode>_shift2): Likewise.
15118 (*add_uxtsi_shift2_uxtw): Likewise.
15119 (*sub_uxt<mode>_shift2): Likewise.
15120 (*sub_uxtsi_shift2_uxtw): Likewise.
15122 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
15124 * config/rs6000/constraints.md (Y, U): Use match_test.
15126 2015-05-26 Christian Bruel <christian.bruel@st.com>
15129 * config/arm/arm.c (arm_option_check_internal)
15130 (arm_option_params_internal): Check opts->target_flags to set macros.
15131 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15132 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
15133 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15134 (builtin_define): Replaced with def_or_undef_macro.
15135 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15136 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
15137 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15138 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
15139 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
15140 (TARGET_ARM_FEATURE_LDREX_P)
15141 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
15142 * config/arm/arm-c.c (def_or_undef_macro): New function.
15143 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
15145 2015-05-26 Christian Bruel <christian.bruel@st.com>
15147 * c-common.h (builtin_define_with_int_value)
15148 (builtin_define_type_sizeof): Declare.
15149 * c-cppbuiltin.c (builtin_define_with_int_value)
15150 (builtin_define_type_sizeof): Externalize.
15151 (builtin_define_std): Cleanup declaration.
15152 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
15153 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
15154 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
15155 (builtin_define, builtin_assert): New macros.
15157 2015-05-26 Richard Biener <rguenther@suse.de>
15159 PR tree-optimization/66142
15160 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
15161 MEM_REFs for the same base address.
15163 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15166 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
15168 2015-05-26 Jason Merrill <jason@redhat.com>
15170 * configure.ac: Set CXXFLAGS for ISL test.
15171 * configure: Regenerate.
15173 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
15174 strstr and basename.
15175 * configure: Regenerate.
15177 2015-05-26 Richard Biener <rguenther@suse.de>
15179 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
15180 X % C -> X & (C - 1) for C being a power-of two to ...
15181 * match.pd: ... patterns.
15183 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
15185 * match.pd (swapped_tcc_comparison): New operator list.
15186 (-A CMP -B): New simplification.
15187 * fold-const.c (fold_comparison): Remove corresponding code.
15189 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15191 * caller-save.c (init_caller_save): Base temporary register numbers
15192 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
15193 * cfgloopanal.c (init_set_costs): Likewise.
15194 * dojump.c (prefer_and_bit_test): Likewise.
15195 * expr.c (init_expr_target): Likewise.
15196 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15197 * lower-subreg.c (init_lower_subreg): Likewise.
15198 * postreload.c (reload_cse_regs_1): Likewise.
15200 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15202 * gensupport.h (compute_test_codes): Declare.
15203 * gensupport.c (compute_predicate_codes): Rename to...
15204 (compute_test_codes): ...this. Generalize error message.
15205 (process_define_predicate): Update accordingly.
15206 * genpreds.c (compute_maybe_allows): Delete.
15207 (add_constraint): Use compute_test_codes to determine whether
15208 something can accept a SUBREG, REG or MEM.
15210 2015-05-26 Torvald Riegel <triegel@redhat.com>
15212 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
15213 'memory model' to align with C++11; fix description of memory orders;
15216 2015-05-26 Richard Biener <rguenther@suse.de>
15218 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
15219 (vect_analyze_loop_operations): ... here. Remove slp parameter,
15220 detect whether we apply SLP. Remove call to
15221 vect_update_slp_costs_according_to_vf.
15222 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
15223 vect_update_slp_costs_according_to_vf from here. Dispatch
15224 to vect_slp_analyze_operations to analyze SLP stmts.
15225 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
15226 unused bb_vec_info parameter, adjust assert.
15227 (vect_slp_analyze_operations): Pass in the slp instance tree
15228 instead of bb_vec_info.
15229 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
15230 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
15232 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15234 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
15235 Q_REGS. Expand comment.
15236 (REG_CLASS_NAMES): Ditto.
15237 (REG_CLASS_CONTENTS): Ditto.
15239 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
15242 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
15243 when LEGACY_INT_REGNO_P is processed.
15245 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15247 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
15249 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15251 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
15252 register if not marked dead/unused, before return.
15254 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15257 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
15258 is set; check for assembler name at LTO time.
15259 (type_in_anonymous_namespace): Remove hacks, check that all
15260 anonymous types are called "<anon>"
15261 (odr_type_p): Simplify; add check for "<anon>"
15262 (odr_subtypes_equivalent): Add odr_type_p check.
15263 * tree.c (need_assembler_name_p): Even anonymous namespace needs
15266 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15268 * ipa-utils.h (method_class_type): Remove.
15269 * cgraphunit.c (walk_polymorphic_call_targets): Use
15270 TYPE_METHOD_BASETYPE.
15271 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
15272 on main variants only.
15273 (method_class_type): Remove.
15274 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
15275 (build_type_inheritance_graph): Likewise.
15276 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15277 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
15278 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
15280 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15282 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
15283 is_typedef_decl, typedef_variant_p): Constify.
15284 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
15285 is_typedef_decl, typedef_variant_p): Constify.
15287 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15289 * defaults.h (gen_tablejump): New function.
15290 (HAVE_tablejump): Add default value.
15292 * stmt.c: Likewise.
15294 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15296 * defaults.h (gen_store_multiple): New function.
15297 (HAVE_store_multiple): Add default value.
15298 * expr.c (move_block_from_reg): Adjust.
15300 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15302 * defaults.h (gen_load_multiple): New function.
15303 (HAVE_load_multiple): Add default value.
15304 * expr.c (move_block_to_reg): Adjust.
15306 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15308 * defaults.h (gen_mem_signal_fence): New function.
15309 (HAVE_mem_signal_fence): Add default value.
15310 * optabs.c: Adjust.
15312 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15314 * defaults.h (gen_memory_barrier): New function.
15315 (HAVE_memory_barrier): Add default value.
15316 * optabs.c: Adjust.
15318 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15320 * defaults.h (gen_mem_thread_fence): New function.
15321 (HAVE_mem_thread_fence): Add default definition.
15322 * optabs.c: Adjust.
15324 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15326 * combine.c (find_split_point): Check the value of HAVE_lo_sum
15327 instead of if it is defined.
15328 (combine_simplify_rtx): Likewise.
15329 * lra-constraints.c (process_address_1): Likewise.
15330 * config/darwin.c: Adjust.
15331 * genconfig.c (main): Always define HAVE_lo_sum.
15333 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15335 * genmatch.c (parser::parse_operation): Reject expanding
15336 operator-list inside 'for'.
15338 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15340 * genmatch.c (parser::parse_for): Reject iterator if used as
15343 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15345 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
15346 after end of id-list.
15348 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15350 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
15351 we do not try to compute canonical type for type that does not need
15353 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
15355 * tree.h (type_with_alias_set_p): New.
15357 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15359 * tree.c (gimple_canonical_types_compatible_p): Do not compare
15360 function attributes.
15361 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
15363 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
15365 * Makefile.in (check_gcc_parallelize): Delete.
15366 (lang_checks_parallelized): Update comment.
15368 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
15370 PR rtl-optimization/66237
15371 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
15372 location of an "as_a" cast.
15374 2015-05-22 Jeff Law <law@redhat.com>
15376 * config/pa/pa.md (non-canonical shift-add insns): Remove.
15377 (peepholes with non-canonical RTL sources): Remove.
15378 (peepholes for indexed stores of FP regs in integer modes): Match and
15379 generate canonical RTL.
15381 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15383 PR tree-optimization/63387
15384 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
15385 ((x ord x) & (y ord y) -> (x ord y),
15386 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
15387 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
15388 vectors like scalars.
15390 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15392 * convert.c (convert_to_integer, convert_to_vector): Include the
15393 types in the error message.
15395 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15397 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
15400 2015-05-22 Jeff Law <law@redhat.com>
15402 * config/pa/pa.md (integer_indexed_store splitters): Use
15403 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
15404 insns -- adjusting the constant 2nd operand accordingly.
15406 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
15407 (plus (ashift X log2) Y) if it is a split point.
15409 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
15410 out of hppa_legitimize_address to handle both forms of a multiply
15412 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
15413 Always generate the ASHIFT variant as the result is not directly
15414 used in a MEM. Update comments and refactor slightly to improve
15417 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15420 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
15421 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
15422 (aarch64_composite_type_p): Return false if given type and mode are
15423 for a short vector.
15425 2015-05-22 Richard Biener <rguenther@suse.de>
15427 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
15429 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
15430 patterns when determining whether SLP is pure.
15431 (vect_is_slp_reduction): Remove check for pattern stmts.
15432 (vect_is_simple_reduction_1): Remove dead code.
15433 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
15434 (vect_get_and_check_slp_defs): Pass in the stmt number.
15435 Allow the first def in a reduction to be not a pattern stmt when
15436 the rest of the stmts def are patterns.
15437 (vect_build_slp_tree_1): Allow tcc_expression codes like
15438 SAD_EXPR and DOT_PROD_EXPR.
15439 (vect_build_slp_tree): Adjust.
15440 (vect_analyze_slp): Refactor and move BB vect error message ...
15441 (vect_slp_analyze_bb_1): ... here.
15443 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
15445 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
15446 for CSWTCH temporary.
15448 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15450 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
15451 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
15454 2015-05-22 Richard Biener <rguenther@suse.de>
15456 PR tree-optimization/66251
15457 * tree-vect-stmts.c (vectorizable_conversion): Properly
15458 set STMT_VINFO_VEC_STMT even for the SLP case.
15460 2015-05-22 Marek Polacek <polacek@redhat.com>
15462 * doc/extend.texi: Use @pxref instead of @xref.
15464 2015-05-22 hiraditya <hiraditya@msn.com>
15466 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
15469 2015-05-22 Richard Biener <rguenther@suse.de>
15471 PR tree-optimization/65701
15472 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15473 Move peeling cost models into one place. Peel for alignment
15474 for single loads only if an aligned load is cheaper than
15477 2015-05-22 Marek Polacek <polacek@redhat.com>
15480 * doc/extend.texi (Enumerator Attributes): New section.
15481 Document syntax of enumerator attributes.
15483 2015-05-22 Richard Biener <rguenther@suse.de>
15485 * tree-vect-loop.c (get_reduction_op): New function.
15486 (vect_model_reduction_cost): Use it, add reduc_index parameter.
15487 Make ready for BB reductions.
15488 (vect_create_epilog_for_reduction): Use get_reduction_op.
15489 (vectorizable_reduction): Init reduc_index to a valid value.
15490 Adjust vect_model_reduction_cost call.
15491 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
15492 operand for reduction defaults. Add SAD_EXPR support.
15493 Assert we have a neutral op for SLP reductions.
15494 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
15495 walking pattern stmt ops only recurse to SSA names.
15497 2015-05-22 Richard Biener <rguenther@suse.de>
15499 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
15500 assert with guard, remove check on detected reduction.
15501 (vect_recog_sad_pattern): Likewise.
15502 (vect_recog_widen_sum_pattern): Likewise.
15504 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15506 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
15507 __always_inline__ attribute.
15508 (vaesdq_u8): Likewise.
15509 (vaesmcq_u8): Likewise.
15510 (vaesimcq_u8): Likewise.
15511 (vsha1cq_u32): Likewise.
15512 (vsha1mq_u32): Likewise.
15513 (vsha1pq_u32): Likewise.
15514 (vsha1h_u32): Likewise.
15515 (vsha1su0q_u32): Likewise.
15516 (vsha1su1q_u32): Likewise.
15517 (vsha256hq_u32): Likewise.
15518 (vsha256h2q_u32): Likewise.
15519 (vsha256su0q_u32): Likewise.
15520 (vsha256su1q_u32): Likewise.
15521 (vmull_p64): Likewise.
15522 (vmull_high_p64): Likewise.
15524 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15526 * final.c (final_scan_insn): Don't check HAVE_peephole with the
15528 * output.h: Likewise.
15529 * genconfig.c (main): Alwways define HAVE_peephole.
15530 * genpeep.c: Don't emit checks of HAVE_peephole.
15532 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15534 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
15535 check HAVE_conditional_move with the preprocessor.
15537 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15539 * genconfig.c (main): Always define HAVE_conditional_move.
15540 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
15541 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
15544 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15546 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
15547 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
15548 and FRAME_POINTER_REGNUM with the preprocessor.
15550 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15552 * defaults.h: Add default for STACK_PUSH_CODE.
15553 * expr.c: Don't redefine STACK_PUSH_CODE.
15554 * recog.c: Likewise.
15556 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15558 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
15559 sched-deps.c: Use if instead of preprocessor checks with
15560 STACK_GROWS_DOWNWARD.
15562 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15564 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
15566 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
15567 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
15568 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
15569 * doc/tm.texi: Regenerate.
15571 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
15574 * config/i386/constraints.md (Bg): New constraint for GOT memory
15576 * config/i386/i386.md (*call_got_x32): New pattern.
15577 (*call_value_got_x32): Likewise.
15578 * config/i386/predicates.md (GOT_memory_operand): New predicate.
15580 2015-05-21 Jakub Jelinek <jakub@redhat.com>
15582 PR tree-optimization/66233
15583 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
15586 2015-05-21 Jeff Law <law@redhat.com>
15588 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
15589 than MULT for shadd sequences.
15591 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
15593 * alias.c (alias_stats): New static var.
15594 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
15595 (dump_alias_stats_in_alias_c): New function.
15596 * alias.h (dump_alias_stats_in_alias_c): Declare.
15597 * tree-ssa-alias.c (dump_alias_stats): Call it.
15599 2015-05-08 Michael Matz <matz@suse.de>
15601 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
15603 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
15604 (STMT_VINFO_STRIDED_P): ... this.
15605 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
15606 (vect_verify_datarefs_alignment): Likewise.
15607 (vect_enhance_data_refs_alignment): Likewise.
15608 (vect_analyze_data_ref_access): Likewise.
15609 (vect_analyze_data_refs): Accept strided stores.
15610 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
15611 (vect_model_load_cost): Adjust for macro rename.
15612 (vectorizable_mask_load_store): Likewise.
15613 (vectorizable_load): Likewise.
15614 (vectorizable_store): Open code strided stores.
15616 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15618 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
15619 Document sqrt_insn.
15621 2015-05-21 Richard Biener <rguenther@suse.de>
15624 * match.pd: Guard pattern optimzing (int)(float)int
15625 conversions to apply only on GIMPLE.
15627 2015-05-21 Jeff Law <law@redhat.com>
15629 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
15630 multiply-accumulate/shift-add insn generation.
15632 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15635 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
15636 operands[1] are the same.
15638 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
15640 PR middle-end/66221
15641 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
15642 build_distinct_type_copy to copy bounds.
15644 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
15646 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
15647 Change to unsigned int.
15649 2015-05-20 Jeff Law <law@redhat.com>
15651 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
15652 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
15653 (pa_shadd_constant_p): Allow constants for shadd insns rather
15654 than valid scaling constants for memory addresses.
15655 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
15656 * config/pa/predicates.md (mem_shadd_operand): New predicate.
15657 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
15658 (shift-add insns using ASHIFT): New patterns.
15660 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
15662 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
15664 (fix_up_fall_thru_edges): Likewise.
15665 (fix_crossing_conditional_branches): Likewise. Promote jump targets
15666 from to rtx_insn to rtx_code_label where feasible.
15667 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
15668 gen_move_insn (returned type changed to rtx_insn).
15669 * builtins.c (expand_errno_check): Fix arguments of
15670 do_compare_rtx_and_jump (now expects rtx_code_label).
15671 (expand_builtin_acc_on_device): Likewise.
15672 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
15673 invert_jump (now exprects rtx_jump_insn).
15674 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
15675 (construct_init_block): Use rtx_code_label.
15676 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
15677 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
15678 calling redirect_jump.
15679 (patch_jump_insn): Likewise.
15680 (redirect_branch_edge): Likewise.
15681 (force_nonfallthru_and_redirect): Likewise.
15682 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
15684 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
15685 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
15686 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
15687 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
15688 to store the value retured by gen_label_rtx.
15689 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
15691 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
15692 (split_branches): Fix calls of redirect_jump.
15693 * dojump.c (jumpifnot): Promote argument type from rtx to
15695 (jumpifnot_1): Likewise.
15696 (jumpif): Likewise.
15697 (jumpif_1): Likewise.
15698 (do_jump_1): Likewise.
15699 (do_jump): Likewise. Use rtx_code_label when feasible.
15700 (do_jump_by_parts_greater_rtx): Likewise.
15701 (do_jump_by_parts_zero_rtx): Likewise.
15702 (do_jump_by_parts_equality_rtx): Likewise.
15703 (do_compare_rtx_and_jump): Likewise.
15704 * dojump.h: Update function prototypes.
15705 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
15707 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
15709 (emit_label_before): Likewise.
15710 (emit_jump_insn_after_noloc): Likewise.
15711 (emit_jump_insn_after_setloc): Likewise.
15712 (emit_jump_insn_after): Likewise
15713 (emit_jump_insn_before_setloc): Likewise.
15714 (emit_jump_insn_before): Likewise.
15715 (emit_label_before): Promote return type to rtx_code_label.
15716 (emit_label): Likewise.
15717 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
15718 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
15720 (emit_stack_restore): Likewise.
15721 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
15722 (do_cmp_and_jump): Likewise.
15723 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
15724 from rtx to rtx_code_label.
15725 (gen_move_insn_uncast): New function.
15726 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
15727 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
15728 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
15729 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
15730 invert_jump_1 and redirect_jump_1.
15731 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
15732 do_compare_rtx_and_jump.
15733 (expand_addsub_overflow): Likewise.
15734 (expand_neg_overflow): Likewise.
15735 (expand_mul_overflow): Likewise.
15736 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
15737 return value of gen_move_insn.
15738 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
15739 * loop-doloop.c (add_test): Use rtx_code_label.
15740 (doloop_modify): Likewise.
15741 (doloop_optimize): Likewise.
15742 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
15743 * lra-constraints.c (emit_spill_move): Remove cast of value returned
15745 (inherit_reload_reg): Add cast when calling dump_insn_slim.
15746 (split_reg): Likewise.
15747 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
15749 * optabs.c (expand_binop_directly): Remove casts of values returned by
15751 (expand_unop_direct): Likewise.
15752 (expand_abs): Likewise.
15753 (maybe_emit_unop_insn): Likewise.
15754 (maybe_gen_insn): Promote return type to rtx_insn.
15755 * optabs.h: Update prototype of maybe_gen_insn.
15756 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
15758 * recog.c (struct peep2_insn_data): Promote type of insn field to
15760 (peep2_reinit_state): Use NULL instead of NULL_RTX.
15761 (peep2_attempt): Remove casts of insn in peep2_insn_data.
15762 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
15763 * recog.h (struct insn_gen_fn): Promote return types of function
15764 pointers and operator ().from rtx to rtx_insn.
15765 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
15766 (fill_eager_delay_slots): Likewise.
15767 (relax_delay_slots): Likewise.
15768 (make_return_insns): Likewise.
15769 (dbr_schedule): Likewise.
15770 (optimize_skips): Likewise.
15771 (reorg_redirect_jump): Likewise.
15772 (fill_slots_from_thread): Likewise.
15773 * reorg.h: Update prototypes.
15774 * resource.c (find_dead_or_set_registers): Use dyn_cast to
15775 rtx_jump_insn instead of check. Use it's jump_target method.
15776 * rtl.h (rtx_jump_insn::jump_label): Define new method.
15777 (rtx_jump_insn::jump_target): Define new method.
15778 (rtx_jump_insn::set_jump_target): Define new method.
15779 * rtlanal.c (tablejump_p): Promote type of one local variable.
15780 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
15781 (sched_analyze_insn): Likewise.
15782 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
15783 (print_insn): Likewise.
15784 * stmt.c (label_rtx): Promote return type to rtx_insn.
15785 (force_label_rtx): Likewise.
15786 (jump_target_rtx): Define new function.
15787 (expand_label): Use it, get rid of one cast.
15788 (expand_naked_return): Promote rtx to rtx_code_label.
15789 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
15790 (expand_case): Use rtx_code_label instread of rtx where feasible.
15791 (expand_sjlj_dispatch_table): Likewise.
15792 (emit_case_nodes): Likewise.
15793 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
15794 * store-motion.c (insert_store): Make use of new return type of
15795 gen_move_insn and remove a cast.
15796 (replace_store_insn): Likewise.
15798 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
15800 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
15801 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
15803 2015-05-20 Jeff Law <law@redhat.com>
15805 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
15806 dispose of the jump thread path when the jump threading
15807 opportunity is cancelled.
15809 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15811 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
15812 when printing the caret character.
15814 2015-05-20 Marek Polacek <polacek@redhat.com>
15816 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
15818 2015-05-20 Marek Polacek <polacek@redhat.com>
15820 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
15821 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
15822 * gimple-fold.c (canonicalize_bool): Likewise.
15823 (same_bool_result_p): Likewise.
15824 * tree-if-conv.c (parse_predicate): Likewise.
15826 2015-05-20 Marek Polacek <polacek@redhat.com>
15828 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
15829 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
15831 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15833 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
15834 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
15837 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
15839 * config/mips/mips.h (micromips_globals): Declare.
15841 2015-05-20 David Malcolm <dmalcolm@redhat.com>
15843 * timevar.def (TV_INITIALIZE_RTL): New.
15844 * toplev.c (initialize_rtl): Use an auto_timevar to account this
15845 function's time to TV_INITIALIZE_RTL.
15847 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
15849 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
15850 gimple_build_nop calls.
15851 (chkp_find_bounds_for_elem): Likewise.
15852 (chkp_get_zero_bounds): Likewise.
15853 (chkp_get_none_bounds): Likewise.
15854 (chkp_get_bounds_by_definition): Likewise.
15855 (chkp_generate_extern_var_bounds): Likewise.
15856 (chkp_get_bounds_for_decl_addr): Likewise.
15857 (chkp_get_bounds_for_string_cst): Likewise.
15859 2015-05-20 Bin Cheng <bin.cheng@arm.com>
15861 PR tree-optimization/65447
15862 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
15863 (dump_use, dump_uses): Support to dump sub use.
15864 (record_use): New parameters to support sub use. Remove call to
15866 (record_sub_use, record_group_use): New functions.
15867 (compute_max_addr_offset, split_all_small_groups): New functions.
15868 (group_address_uses, rewrite_use_address): New functions.
15869 (strip_offset): New declaration.
15870 (find_interesting_uses_address): Call record_group_use.
15871 (add_candidate): New assertion.
15872 (infinite_cost_p): Move definition forward.
15873 (add_costs): Check INFTY cost and return immediately.
15874 (get_computation_cost_at): Clear setup cost and dependent bitmap
15876 (determine_use_iv_cost_address): Compute cost for sub uses.
15877 (rewrite_use_address_1): Rename from old rewrite_use_address.
15878 (free_loop_data): Free sub uses.
15879 (tree_ssa_iv_optimize_loop): Call group_address_uses.
15881 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
15882 Jim Wilson <jim.wilson@linaro.org>
15884 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
15885 new fields loadv and storev.
15886 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
15887 Initialize loadv and storev.
15888 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
15889 (cortexa53_extra_costs): Likewise.
15890 (cortexa57_extra_costs): Likewise.
15891 (xgene1_extra_costs): Likewise.
15892 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
15895 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
15897 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
15899 (cortexa8_extra_costs): Likewise.
15900 (cortexa5_extra_costs): Likewise.
15901 (cortexa7_extra_costs): Likewise.
15902 (cortexa12_extra_costs): Likewise.
15903 (cortexa15_extra_costs): Likewise.
15904 (v7m_extra_costs): Likewise.
15906 2015-05-20 Jeff Law <law@redhat.com>
15908 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
15909 instead of open-coded version. Also delete the jump thread created
15910 within this function.
15912 2015-05-20 Alan Modra <amodra@gmail.com>
15914 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
15915 stack adjusting insn. Formatting.
15916 (rs6000_emit_prologue): Track stack adjusting insn, and use of
15917 r12. If possible, emit first -fsplit-stack arg pointer insn
15918 before stack adjust. Don't use r12 to save cr if split-stack.
15920 2015-05-20 Alan Modra <amodra@gmail.com>
15922 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
15924 (rs6000_supports_split_stack): New function.
15925 * gcc/config/rs6000/rs6000.c (machine_function): Add
15926 split_stack_arg_pointer.
15927 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
15928 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
15929 rather than virtual_incoming_args_rtx.
15930 (rs6000_va_start): Likewise.
15931 (split_stack_arg_pointer_used_p): New function.
15932 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
15933 (morestack_ref): New var.
15934 (gen_add3_const, rs6000_expand_split_stack_prologue,
15935 rs6000_internal_arg_pointer, rs6000_live_on_entry,
15936 rs6000_split_stack_space_check): New functions.
15937 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
15938 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
15939 (UNSPECV_SPLIT_STACK_RETURN): Define.
15940 (split_stack_prologue, load_split_stack_limit,
15941 load_split_stack_limit_di, load_split_stack_limit_si,
15942 split_stack_return, split_stack_space_check): New expands and insns.
15943 * gcc/config/rs6000/rs6000-protos.h
15944 (rs6000_expand_split_stack_prologue): Declare.
15945 (rs6000_split_stack_space_check): Declare.
15947 2015-05-20 Alan Modra <amodra@gmail.com>
15949 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
15950 (direct_return): Test vrsave_size rather than vrsave_mask.
15951 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
15952 (rs6000_emit_epilogue): Likewise.
15954 2015-05-20 Alan Modra <amodra@gmail.com>
15956 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
15957 when not saving registers.
15958 (debug_stack_info): Adjust to omit printing unused offsets,
15960 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
15963 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15966 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
15967 value_type to const char *.
15969 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
15971 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
15972 to build a biarch toolchain again.
15974 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
15976 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
15977 or implicit declarations.
15978 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
15980 (get_odr_type): Check type has linkage before adding bases.
15981 (register_odr_type): Check that type has linkage before adding it.
15982 (type_known_to_have_no_deriavations_p): Rename to ..
15983 (type_known_to_have_no_derivations_p): This one.
15984 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
15985 (type_known_to_have_no_derivations_p): This one.
15986 * ipa-polymorphic-call.c
15987 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
15990 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
15992 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
15993 (layout_type): Use RECORD_OR_UNION_TYPE_P.
15995 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15997 * config/s390/s390.c (s390_vector_bool_type_p): New function.
15998 (s390_invalid_binary_op): New function.
15999 (TARGET_INVALID_BINARY_OP): Define macro.
16001 2015-05-19 David Sherwood <david.sherwood@arm.com>
16003 * loop-invariant.c (create_new_invariant): Don't calculate address cost
16004 if mode is not a scalar integer.
16005 (get_inv_cost): Increase computational cost for unused invariants.
16007 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16009 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
16010 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
16011 * config/s390/s390-builtin-types.def: New file.
16012 * config/s390/s390-builtins.def: New file.
16013 * config/s390/s390-builtins.h: New file.
16014 * config/s390/s390-c.c: New file.
16015 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
16016 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
16017 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
16018 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
16020 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
16022 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
16023 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
16024 variable definitions.
16025 (s390_const_operand_ok): New function.
16026 (s390_expand_builtin): Rewrite.
16027 (s390_init_builtins): New function.
16028 (s390_handle_vectorbool_attribute): New function.
16029 (s390_attribute_table): Add s390_vector_bool attribute.
16030 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
16031 (s390_branch_condition_mask): Generate masks for new modes.
16032 (s390_expand_vec_compare_cc): New function.
16033 (s390_mangle_type): Add mangling for vector bool types.
16034 (enum s390_builtin): Remove.
16035 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
16037 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
16038 s390_cpu_cpp_builtins.
16039 (REGISTER_TARGET_PRAGMAS): New macro.
16040 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
16041 (insn_cmp mode attribute): Add new CC modes.
16042 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
16043 (lcbb): New pattern definition.
16044 * config/s390/s390intrin.h: Include vecintrin.h.
16045 * config/s390/t-s390: New file.
16046 * config/s390/vecintrin.h: New file.
16047 * config/s390/vector.md: Include vx-builtins.md.
16048 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
16051 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16053 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
16055 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
16056 (s390_select_ccmode): Likewise.
16057 (s390_canonicalize_comparison): Swap operands if necessary.
16058 (s390_expand_vec_compare_scalar): Expand DFmode compare using
16059 single element vector instructions.
16060 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
16061 (s390_branch_condition_mask): Generate CC masks for the new modes.
16062 * config/s390/s390.md (v0, vf, vd): New mode attributes.
16063 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
16064 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
16065 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
16066 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
16067 (*extend<DSF:mode><BFP:mode>2): New insn definition.
16068 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
16069 (extend<DSF:mode><BFP:mode>2): Turn into expander.
16070 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
16071 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
16072 (sqrt<mode>2): Add vector instruction.
16074 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16076 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
16078 * config/s390/predicates.md (const0_operand, constm1_operand)
16079 (constable_operand): Accept vector operands.
16080 * config/s390/s390-modes.def: Add supported vector modes.
16081 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
16082 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
16083 (s390_bytemask_vector_p, s390_expand_vec_strlen)
16084 (s390_expand_vec_compare, s390_expand_vcond)
16085 (s390_expand_vec_init): Add prototypes.
16086 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
16087 (s390_vector_mode_supported_p): New function.
16088 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
16089 (s390_contiguous_bitmask_vector_p): New function.
16090 (s390_bytemask_vector_p): New function.
16091 (s390_split_ok_p): Vector regs don't work either.
16092 (regclass_map): Add VEC_REGS.
16093 (s390_legitimate_constant_p): Handle vector constants.
16094 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
16095 (legitimate_reload_vector_constant_p): New function.
16096 (s390_preferred_reload_class): Handle CONST_VECTOR.
16097 (s390_reload_symref_address): Likewise.
16098 (s390_secondary_reload): Vector memory instructions only support
16099 short displacements. Rename reload*_nonoffmem* to reload*_la*.
16100 (s390_emit_ccraw_jump): New function.
16101 (s390_expand_vec_strlen): New function.
16102 (s390_expand_vec_compare): New function.
16103 (s390_expand_vcond): New function.
16104 (s390_expand_vec_init): New function.
16105 (s390_dwarf_frame_reg_mode): New function.
16106 (print_operand): Handle addresses with 'O' and 'R' constraints.
16107 (NR_C_MODES, constant_modes): Add vector modes.
16108 (s390_output_pool_entry): Handle vector constants.
16109 (s390_hard_regno_mode_ok): Handle vector registers.
16110 (s390_class_max_nregs): Likewise.
16111 (s390_cannot_change_mode_class): New function.
16112 (s390_invalid_arg_for_unprototyped_fn): New function.
16113 (s390_function_arg_vector): New function.
16114 (s390_function_arg_float): Remove size variable.
16115 (s390_pass_by_reference): Handle vector arguments.
16116 (s390_function_arg_advance): Likewise.
16117 (s390_function_arg): Likewise.
16118 (s390_return_in_memory): Vector values are returned in a VR if
16120 (s390_function_and_libcall_value): Handle vector arguments.
16121 (s390_gimplify_va_arg): Likewise.
16122 (s390_call_saved_register_used): Consider the arguments named.
16123 (s390_conditional_register_usage): Disable v16-v31 for non-vec
16125 (s390_preferred_simd_mode): New function.
16126 (s390_support_vector_misalignment): New function.
16127 (s390_vector_alignment): New function.
16128 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
16129 (TARGET_VECTOR_MODE_SUPPORTED_P)
16130 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
16131 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16132 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
16133 (TARGET_VECTOR_ALIGNMENT): Define target macro.
16134 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
16135 (FIRST_PSEUDO_REGISTER): Increase value.
16136 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
16137 (VECTOR_REG_P): Define macros.
16138 (FIXED_REGISTERS, CALL_USED_REGISTERS)
16139 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
16140 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
16141 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
16142 Add vector registers.
16143 (CANNOT_CHANGE_MODE_CLASS): Call C function.
16144 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
16145 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
16147 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
16148 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
16149 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
16150 (VR*_REGNUM): New constants.
16151 (ALL): New mode iterator.
16152 (INTALL): Remove mode iterator.
16154 (movti): Implement TImode moves for VRs.
16155 Disable TImode splitter for VR targets.
16156 Implement splitting TImode GPR<->VR moves.
16157 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
16158 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
16159 reload<mode>_la_in, reload<mode>_la_out.
16160 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
16161 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
16162 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
16163 (mov<mode> SF SD): Prefer lder, lde for loading.
16164 Add lrl and strl instructions.
16165 Add vector instructions.
16166 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
16167 Call s390_expand_vec_strlen on z13.
16168 (*cc_to_int): Change predicate to nonimmediate_operand.
16169 (addti3): Rename to *addti3. New expander.
16170 (subti3): Rename to *subti3. New expander.
16171 * config/s390/vector.md: New file.
16173 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16175 * common/config/s390/s390-common.c (processor_flags_table): Add
16177 * config.gcc: Add z13.
16178 * config/s390/s390-opts.h (enum processor_type): Add
16179 PROCESSOR_2964_Z13.
16180 * config/s390/s390.c (s390_adjust_priority): Check for
16181 PROCESSOR_2964_Z13.
16182 (s390_reorg): Likewise.
16183 (s390_sched_reorder): Likewise.
16184 (s390_sched_variable_issue): Likewise.
16185 (s390_loop_unroll_adjust): Likewise.
16186 (s390_option_override): Likewise. Default to -mvx when available.
16187 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
16188 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
16189 (TARGET_VX_ABI): Define macros.
16191 (TARGET_DEFAULT): Add MASK_OPT_VX.
16192 * config/s390/s390.md ("cpu" attribute): Add z13.
16193 ("cpu_facility" attribute): Add vec.
16194 * config/s390/s390.opt (processor_type): Add z13.
16195 (mvx): New options.
16196 * doc/invoke.texi: Add z13 option for -march.
16198 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16200 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
16201 mode check to make sure that only scalar integer values are
16204 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16206 * tree.c (verify_type_variant): Fix #undef.
16207 (gimple_canonical_types_compatible_p): Move here from lto.c
16208 (verify_type): Verify TYPE_CANONICAL compatibility.
16209 * tree.h (gimple_canonical_types_compatible_p): Declare.
16211 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16213 PR middle-end/66199
16214 * tree.h (OMP_TEAMS_COMBINED): Define.
16215 * gimplify.c (enum gimplify_omp_var_data): Add
16216 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
16217 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
16218 (omp_notice_variable): Accept both ORT_TEAMS
16219 and ORT_COMBINED_TEAMS. Don't recurse if
16220 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
16221 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
16223 (omp_no_lastprivate): New function.
16224 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
16225 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
16226 notice_outer and set appropriate bits, otherwise make
16227 sure default(none) combined constructs won't complain.
16228 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
16229 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
16230 omp_no_lastprivate either remove the clause or turn it
16231 into OMP_CLAUSE_PRIVATE.
16232 (gimplify_omp_for): Fix up handling of implicit
16233 lastprivate or linear iterators.
16234 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
16235 ORT_COMBINED_TEAMS.
16236 * omp-low.c (lower_omp_for_lastprivate): For combined
16237 for simd use fd.loop.n2 from the for rather than simd.
16239 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16241 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
16242 instead of gen_rtx_raw_REG.
16243 (cris_expand_epilogue): Likewise.
16244 * config/microblaze/microblaze.c (microblaze_classify_address):
16246 * config/sparc/sparc.md: Likewise.
16248 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
16250 * config/alpha/alpha.c (alpha_legitimize_reload_address)
16251 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
16252 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
16253 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
16254 Use CASE_CONST_SCALAR_INT.
16255 (print_operand) <case 'M'>: Use mode_width_operand to check the
16256 value of the constant.
16257 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
16258 * config/alpha/predicates.md (input_operand): Use general_operand
16259 instead of match_code as operand check.
16260 (symbolic_operand): Use match_code with subexpression digits.
16261 * config/alpha/constraints.md (Q): Ditto.
16263 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16265 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
16267 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16269 * config/s390/s390.c (s390_secondary_reload): Fix check for
16270 load/store relative.
16272 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16274 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
16275 alternative_mask to uint64_t.
16277 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16279 PR tree-optimization/66187
16280 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
16281 Pass TYPE_SIGN to tree_int_cst_min_precision. If
16282 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
16284 2015-05-19 David Malcolm <dmalcolm@redhat.com>
16286 * diagnostic.c (diagnostic_report_current_module): Strengthen
16287 local "new_map" from const line_map * to
16288 const line_map_ordinary *.
16289 * genmatch.c (error_cb): Likewise for local "map".
16290 (output_line_directive): Likewise for local "map".
16291 * input.c (expand_location_1): Likewise for local "map".
16292 Pass NULL rather than &map to
16293 linemap_unwind_to_first_non_reserved_loc, since the value is never
16294 read from there, and the value written back not read from here.
16295 (is_location_from_builtin_token): Strengthen local "map" from
16296 const line_map * to const line_map_ordinary *.
16297 (dump_location_info): Strengthen locals "map" from
16298 line_map *, one to const line_map_ordinary *, the other
16299 to const line_map_macro *.
16300 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
16301 const line_map * to const line_map_macro *.
16302 (maybe_unwind_expanded_macro_loc): Add a call to
16303 linemap_check_macro when writing to the "map" field of the
16305 Introduce local const line_map_ordinary * "ord_map", using it in
16306 place of "map" in the part of the function where we know we have
16307 an ordinary map. Strengthen local "m" from const line_map * to
16308 const line_map_ordinary *.
16310 2015-05-19 Nick Clifton <nickc@redhat.com>
16313 * config/msp430/msp430.md (zero_extendhisi2): Add support for
16314 separate source and destination registers.
16316 2015-05-19 Richard Biener <rguenther@suse.de>
16318 PR tree-optimization/66165
16319 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
16320 for no load permutation.
16322 PR tree-optimization/66185
16323 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
16324 when building the SLP node from scalars.
16326 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16327 Tristan Gingold <gingold@adacore.com>
16329 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
16330 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
16331 (expand_stack_restore): Call record_new_stack_level.
16332 (expand_stack_save): Do not call do_pending_stack_adjust.
16333 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
16334 * calls.c (expand_call): Call record_new_stack_level for alloca.
16335 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
16336 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
16337 (update_sjlj_context): New global function.
16338 * except.h (update_sjlj_context): Declare.
16339 * explow.c (record_new_stack_level): New global function.
16340 (allocate_dynamic_stack_space): Call record_new_stack_level.
16341 * explow.h (record_new_stack_level): Declare.
16342 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
16343 * cfgrtl.c (duplicate_insn_chain): Likewise.
16345 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16347 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
16348 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
16349 STACK_GROWS_DOWNWARD as normal if.
16350 (expand_call): Likewise.
16352 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
16355 * config/sh/sh.md (*round_int_even): New insn_and_split and
16356 accompanying new unnamed split.
16358 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16360 * bitmap.c (bitmap_set_range): Handle count==1 specially.
16361 (bitmap_clear_range): Likewise.
16362 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
16363 bitmap_set_range unconditionally.
16364 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16365 * df-scan.c (df_mark_reg): Likewise.
16366 * haifa-sched.c (setup_ref_regs): Likewise.
16367 * sched-rgn.c (update_live_1): Likewise.
16369 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16371 * regs.h (END_HARD_REGNO): Delete.
16372 (END_REGNO): Move to...
16374 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
16375 * caller-save.c (mark_set_regs): Likewise.
16376 * combine.c (move_deaths, distribute_notes): Likewise.
16377 * cse.c (invalidate, invalidate_for_call): Likewise.
16378 * df-scan.c (df_ref_record): Likewise.
16379 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
16380 (record_last_reg_set_info): Likewise.
16381 * reg-stack.c (convert_regs_exit): Likewise.
16382 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
16383 * resource.c (update_live_status): Likewise.
16384 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
16386 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16388 * rtl.h (reg_info): Add an nregs field.
16389 (REG_NREGS): Use it.
16390 (SET_REGNO_RAW): Delete.
16391 (set_regno_raw): New function.
16392 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
16393 (END_REGNO): Redefine in terms of REG_NREGS.
16394 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
16396 * emit-rtl.c (set_mode_and_regno): Likewise.
16397 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
16398 instead of SET_REGNO_RAW.
16400 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16402 * rtl.h (PUT_MODE_RAW): New macro.
16403 (PUT_REG_NOTE_KIND): Use it.
16404 (set_mode_and_regno): Declare.
16405 (gen_raw_REG): Change regno to "unsigned int".
16406 (gen_rtx_REG): Change "unsigned" to "unsigned int".
16407 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
16408 use set_mode_and_regno to change the mode of registers.
16409 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
16410 * emit-rtl.c (set_mode_and_regno): New function.
16411 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
16412 * caller-save.c (reg_save_code): Use set_mode_and_regno.
16413 * expr.c (init_expr_target): Likewise.
16414 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16415 * postreload.c (reload_cse_simplify_operands): Likewise.
16417 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16419 * caller-save.c (init_caller_save): Use word_mode and
16420 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
16421 * expr.c (init_expr_target): Likewise.
16422 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16423 * postreload.c (reload_cse_regs_1): Likewise.
16425 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16427 * rtl.def (REG): Change format to "r".
16428 * rtl.h (rtunion): Remove rt_reg.
16429 (reg_info): New structure.
16430 (rtx_def): Add reg field to main union.
16431 (X0REGATTR): Delete.
16432 (REG_CHECK): New macro.
16433 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
16434 * rtl.c (rtx_format): Document "r".
16435 (rtx_code_size): Handle REG specially.
16436 * gengenrtl.c (special_format): Return true for formats
16438 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
16439 Deal with REG_ATTRS after the field loop.
16440 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
16441 * expmed.c (init_expmed): Call gen_raw_REG instead of
16443 * expr.c (init_expr_target): Likewise.
16444 * regcprop.c (maybe_mode_change): Likewise.
16445 * varasm.c (make_decl_rtl): Likewise.
16446 * final.c (leaf_renumber_regs_insn): Return early after
16448 * genemit.c (gen_exp): Handle 'r' fields.
16449 * genpeep.c (match_rtx): Likewise.
16450 * gensupport.c (subst_pattern_match): Likewise.
16451 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
16452 (alter_constraints, subst_dup): Likewise.
16453 * read-rtl.c (read_rtx_code): Likewise.
16454 * print-rtl.c (print_rtx): Likewise.
16455 * genrecog.c (find_operand, find_matching_operand): Likewise.
16456 (validate_pattern, match_pattern_2): Likewise.
16457 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
16458 (rtx_test::regno_field): New function.
16459 (operator ==, safe_to_hoist_p, transition_parameter_type)
16460 (parameter_type_string, print_parameter_value)
16461 (print_nonbool_test, print_test): Handle new enum values.
16462 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
16463 * lra-constraints.c (operands_match_p): Likewise.
16465 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16467 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
16468 Change type of new_regno to unsigned int.
16469 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
16470 new_regno to unsigned int.
16471 (df_ref_change_reg_with_loc): Remove old_regno parameter.
16472 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
16473 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
16474 (SET_REGNO_RAW): Add space after ",".
16476 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16478 * rtl.h (REG_NREGS): New macro
16479 * alias.c (record_set): Use it.
16480 * cfgcleanup.c (mark_effect): Likewise.
16481 * combine.c (likely_spilled_retval_1): Likewise.
16482 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
16483 (move_deaths, distribute_notes): Likewise.
16484 * cselib.c (cselib_record_set): Likewise.
16485 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16486 * df-scan.c (df_mark_reg): Likewise.
16487 * dse.c (look_for_hardregs): Likewise.
16488 * dwarf2out.c (reg_loc_descriptor): Likewise.
16489 (multiple_reg_loc_descriptor): Likewise.
16490 * expr.c (write_complex_part, read_complex_part): Likewise.
16491 (emit_move_complex): Likewise.
16492 * haifa-sched.c (setup_ref_regs): Likewise.
16493 * ira-lives.c (mark_hard_reg_live): Likewise.
16494 * lra.c (lra_set_insn_recog_data): Likewise.
16495 * mode-switching.c (create_pre_exit): Likewise.
16496 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
16497 (reload_combine_recognize_pattern): Likewise.
16498 (reload_combine_note_use, move2add_record_mode): Likewise.
16499 (reload_cse_move2add): Likewise.
16500 * reg-stack.c (subst_stack_regs_pat): Likewise.
16501 * regcprop.c (kill_value, copy_value): Likewise.
16502 (copyprop_hardreg_forward_1): Likewise.
16503 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
16504 (build_def_use): Likewise.
16505 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
16506 (deps_analyze_insn): Likewise.
16507 * sched-rgn.c (check_live_1, update_live_1): Likewise.
16508 * sel-sched.c (count_occurrences_equiv): Likewise.
16509 * valtrack.c (dead_debug_insert_temp): Likewise.
16511 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16513 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
16514 * dse.c (note_add_store): Likewise.
16515 * ira-lives.c (mark_hard_reg_dead): Likewise.
16516 * loop-invariant.c (mark_reg_store): Likewise.
16517 (mark_reg_death): Likewise.
16518 * postreload.c (reload_combine): Likewise.
16519 (reload_combine_note_store): Likewise.
16520 (reload_combine_note_use): Likewise.
16521 * recog.c (peep2_reg_dead_p): Likewise.
16523 2015-05-19 Alan Modra <amodra@gmail.com>
16525 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
16526 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
16527 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
16529 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
16530 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
16531 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
16532 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
16534 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
16536 * config/mips/mips.md (JOIN_MODE): New mode iterator.
16537 (join2_load_Store<JOIN_MODE:mode>): New pattern.
16538 (join2_loadhi): Likewise.
16539 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
16540 load-load and store-stores.
16541 * config/mips/mips.opt (mload-store-pairs): New option.
16542 (TARGET_LOAD_STORE_PAIRS): New macro.
16543 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
16544 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
16545 * config/mips/mips.c (mips_load_store_bonding_p): New function.
16547 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
16549 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
16551 * dojump.c (do_compare_rtx_and_jump): Likewise.
16552 * expmed.c (emit_store_flag_1): Likewise.
16553 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
16554 * final.c (sprint_ul): Use std::reverse for reversing a string.
16555 * fold-const.c (extract_muldiv_1): Use std::swap.
16556 * genmodes.c (emit_mode_int_n): Likewise.
16557 * ifcvt.c (dead_or_predicable): Likewise.
16558 * ira-build.c (ira_merge_live_ranges): Likewise.
16559 (swap_allocno_copy_ends_if_necessary): Likewise.
16560 * ira.c (ira_setup_alts): Likewise.
16561 * loop-iv.c (iv_analyze_expr): Likewise.
16562 (implies_p): Likewise.
16563 (canon_condition): Likewise.
16564 * lra-constraints.c (swap_operands): Likewise.
16565 * lra-lives.c (lra_merge_live_ranges): Likewise.
16566 * omega.c (swap): Remove.
16568 (omega_unprotect_1): Use std::swap.
16569 (omega_solve_geq): Likewise.
16570 * optabs.c (expand_binop_directly): Likewise.
16571 (expand_binop): Likewise.
16572 (emit_conditional_move): Likewise.
16573 (emit_conditional_add): Likewise.
16574 * postreload.c (reload_cse_simplify_operands): Likewise.
16575 * reg-stack.c (emit_swap_insn): Likewise.
16576 (swap_to_top): Likewise.
16577 (compare_for_stack_reg): Likewise.
16578 (subst_asm_stack_regs): Likewise.
16579 * reload.c (find_reloads): Likewise.
16580 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
16581 * sel-sched.c (invoke_reorder_hooks): Likewise.
16582 (create_block_for_bookkeeping): Likewise.
16583 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
16584 (lambda_matrix_right_hermite): Use std::swap.
16585 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
16586 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
16587 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
16588 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
16589 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
16590 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
16591 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16592 * tree-vrp.c (compare_ranges): Likewise.
16593 * var-tracking.c (add_with_sets): Likewise.
16594 (vt_find_locations): Likewise.
16596 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
16598 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
16600 (FBSD_ENDFILE_SPEC): Likewise.
16601 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
16602 config/freebsd-spec.h.
16603 (ENDFILE_SPEC): Likewise.
16605 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
16606 Richard Henderson <rth@redhat.com>
16609 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
16610 Check for a memory location that is not a reference (using an AND)
16611 to an unaligned location here.
16612 * config/alpha/predicates.md (normal_memory_operand): Remove.
16614 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
16616 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
16617 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
16619 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
16621 * config/mips/mips.c (micromips_globals): New variable.
16622 (mips_set_compression_mode): Save and reinitialize target-dependent
16623 state for microMIPS.
16625 2015-05-18 Martin Liska <mliska@suse.cz>
16627 * dbgcnt.def: Add new counter.
16628 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
16630 2015-05-18 Martin Liska <mliska@suse.cz>
16632 * dbgcnt.def: Sort counters.
16633 * opts.c (common_handle_option): Do not compile if
16634 -fdbg-cnt-list is enabled.
16636 2015-05-18 Tom de Vries <tom@codesourcery.com>
16638 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
16639 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
16640 address operator to va_list operand.
16641 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
16643 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
16645 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
16646 * config/s390/s390.c (s390_gimplify_va_arg): Same.
16647 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
16649 2015-05-18 Tom de Vries <tom@codesourcery.com>
16651 * tree-ssa-tail-merge.c: Fix whitespace.
16653 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
16655 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
16656 cortex-a17, and cortex-a17.cortex-a7.
16658 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
16661 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
16663 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
16666 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
16667 QImode inner modes for TARGET_AVX512BW. Force mask operand
16668 to a register for AVX512F modes.
16670 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16672 * toplev.c (emit_debug_global_declarations): Do not output debug info
16673 when doing slim LTO objects.
16675 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16677 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
16678 odr_types_equivalent_p): Declare.
16679 (odr_type_p): Use gcc_checking_assert.
16680 (type_in_anonymous_namespace_p) Declare.
16681 (type_with_linkage_p): Declare.
16682 * common.opt (Wlto-type-mismatch): New warning.
16683 * ipa-devirt.c (compound_type_base): New function.
16684 (odr_or_derived_type_p): New function.
16685 (odr_types_equivalent_p): New function.
16686 (add_type_duplicate): Simplify.
16687 (type_with_linkage_p): Add hack to prevent false positives on C types
16688 (type_in_anonymous_namespace_p): Likewise.
16689 * tree.c (need_assembler_name_p): Use type_with_linkage.
16690 * tree.h (type_in_anonymous_namespace_p): Remove.
16691 * doc/invoke.texi (-Wlto-type-mismatch): Document
16693 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16695 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
16696 (verify_type): Verify STRING_FLAG.
16698 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16701 * tree-pretty-print.c (percent_K_format): Replace locus pointer
16702 with accessor function.
16703 * tree-diagnostic.c (diagnostic_report_current_function): Use
16704 diagnostic_location function.
16705 (maybe_unwind_expanded_macro_loc): Likewise.
16706 (virt_loc_aware_diagnostic_finalizer): Likewise.
16707 (default_tree_printer): Replace locus pointer with accessor function.
16708 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
16709 (diagnostic_set_info_translated): Initialize second location.
16710 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
16711 (diagnostic_show_locus): Handle two locations. Call
16712 diagnostic_print_caret_line.
16713 (diagnostic_print_caret_line): New.
16714 (default_diagnostic_starter): Use diagnostic_location function.
16715 (diagnostic_report_diagnostic): Use diagnostic_location function.
16716 (verbatim): Do not set text.locus.
16717 * diagnostic.h (struct diagnostic_info): Remove location field.
16718 (struct diagnostic_context): Make caret_chars an array of two.
16719 (diagnostic_location): New inline.
16720 (diagnostic_expand_location): Handle two locations.
16721 (diagnostic_same_line): New inline.
16722 (diagnostic_print_caret_line): Declare.
16723 (CARET_LINE_MARGIN): New constant.
16724 * pretty-print.c (pp_printf): Do not set text.locus.
16725 (pp_verbatim): Do not set text.locus.
16726 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
16727 (struct text_info): Replace locus pointer with locations
16728 array. Add accessor functions.
16730 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
16731 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16734 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
16735 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
16736 large constants in register instead of splitting them.
16738 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
16741 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
16742 replacements in memory addresses.
16743 (get_unaligned_address): Ditto.
16745 2015-05-16 James Bowman <james.bowman@ftdichip.com>
16747 * config/ft32/*: New files for FT32 port.
16748 * doc/install.texi: Add FT32 information.
16749 * doc/invoke.texi: Add FT32 information.
16750 * doc/md.texi: Add FT32 information.
16751 * doc/contrib.texi: Self added.
16753 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
16755 PR tree-optimization/64454
16756 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
16757 (-1 - A -> ~A): Remove unnecessary condition.
16759 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
16761 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
16762 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
16763 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
16765 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
16767 * ipa-chkp.h (chkp_wrap_function): New.
16768 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
16769 (chkp_wrap_function_name): New.
16770 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
16771 to get wrapper name.
16772 * lto-cgraph.c: Include ipa-chkp.h.
16773 (input_cgraph_1): Avoid alias chain for wrappers.
16775 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
16777 PR middle-end/66134
16778 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
16779 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
16781 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16783 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
16784 (AARCH64_FL_SLOWMUL): Delete.
16785 (AARCH64_FL_CRC): Redefine to 1<<3.
16786 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
16788 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16790 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
16793 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
16795 * config/alpha/alpha.md (extendqidi2): Use general_operand
16796 instead of some_operand for operand[1] predicate.
16797 (extendhidi2): Ditto.
16798 (cbranchdi4): Use general_operand instead of some_operand
16799 for operand[1] and operands[2] predicates.
16800 (cstoredi4): Ditto.
16801 * config/alpha/predicates.md (some_operand): Remove unused predicate.
16802 (some_ni_operand): Ditto.
16804 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
16806 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
16807 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
16808 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
16809 low part of the constant using alpha_emit_set_const_1.
16810 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
16812 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
16814 * varasm.c (output_constant_pool_1): Pass down alignment from
16815 constant pool entry's descriptor to output_constant_pool_2.
16816 (output_object_block): Add comment prior to call to
16817 output_constant_pool_1.
16819 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
16821 PR rtl-optimization/65862
16822 * target.def (ira_change_pseudo_allocno_class): New hook.
16823 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
16825 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
16826 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
16828 * ira-costs.c (find_costs_and_classes): Call the hook and change
16829 classes when it is necessary.
16830 * doc/tm.texi: Update.
16832 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
16834 * config/i386/i386.md (sibcall_memory): Check that register with
16835 callee address is not also used as one of the arguments, instead
16836 of checking that it is not live after the sibcall.
16837 (sibcall_pop_memory): Ditto.
16838 (sibcall_value_memory): Ditto.
16839 (sibcall_value_pop_memory): Ditto.
16841 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
16843 * generic-match-head.c (types_match): Handle non-types.
16844 * gimple-match-head.c (types_match): Likewise.
16845 * match.pd: Remove unnecessary TREE_TYPE for types_match.
16847 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
16849 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
16850 (csneg3<mode>_insn): Enable expansion of pattern.
16852 2015-05-14 Nick Clifton <nickc@redhat.com>
16854 * config/rl78/rl78.c (rl78_select_section): Select the correct
16855 default section based upon the category of the decl.
16857 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
16859 PR rtl-optimization/30967
16860 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
16861 destination mode for the cost of scc patterns.
16863 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
16865 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
16866 using SWIM248 mode iterator.
16867 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
16868 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
16869 for operand[2] constraint.
16870 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
16872 2015-05-13 Jakub Jelinek <jakub@redhat.com>
16874 PR middle-end/66133
16875 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
16876 make sure it is never noreturn, even when the task body does not
16878 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
16879 right before GIMPLE_OMP_RETURN.
16880 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
16881 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
16882 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
16884 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16886 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
16887 * tree-ssa-math-opts.c: Include params.h
16888 (pow_synth_sqrt_info): New struct.
16889 (representable_as_half_series_p): New function.
16890 (get_fn_chain): Likewise.
16891 (print_nested_fn): Likewise.
16892 (dump_fractional_sqrt_sequence): Likewise.
16893 (dump_integer_part): Likewise.
16894 (expand_pow_as_sqrts): Likewise.
16895 (gimple_expand_builtin_pow): Use above to attempt to expand
16896 pow as series of square roots. Removed now unused variables.
16898 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
16900 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
16901 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
16902 Remove *p0 and *p1 arguments. Rewrite function.
16903 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
16904 (alpha_split_const_mov): Update calls to alpha_extract_integer and
16905 alpha_emit_set_long_const.
16906 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
16907 (alpha_output_mi_thunk_osf): Ditto.
16908 * config/alpha/alpha.md (movti): Do not check operands[1]
16911 2015-05-13 Richard Biener <rguenther@suse.de>
16913 PR tree-optimization/66129
16914 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
16916 (vect_schedule_slp_instance): Fix typo.
16918 2015-05-13 David Malcolm <dmalcolm@redhat.com>
16920 * common.opt (fdump-internal-locations): New option.
16921 * input.c: Include diagnostic-core.h.
16922 (get_end_location): New function.
16923 (write_digit): New function.
16924 (write_digit_row): New function.
16925 (dump_location_range): New function.
16926 (dump_labelled_location_range): New function.
16927 (dump_location_info): New function.
16928 * input.h (dump_location_info): New prototype.
16929 * toplev.c (compile_file): Handle flag_dump_locations.
16931 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
16933 * gimple-expr.h (is_gimple_constant): Reorder.
16934 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
16936 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
16938 * combine.c (simplify_set): When generating a CC set, if the
16939 source already is in the correct mode, do not wrap it in a
16940 compare. Simplify the rest of that code.
16942 2015-05-13 Richard Biener <rguenther@suse.de>
16944 PR tree-optimization/66123
16945 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
16948 2015-05-13 Richard Biener <rguenther@suse.de>
16950 PR middle-end/66110
16951 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
16953 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
16955 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
16957 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
16958 * aclocal.m4: Regenerated with automake-1.11.6.
16960 2015-05-13 Tom de Vries <tom@codesourcery.com>
16962 PR tree-optimization/66010
16963 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
16964 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
16965 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
16966 and rval based on do_deref.
16968 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
16971 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
16972 link time constants into adress expressions and therefore set
16975 2015-05-13 Jakub Jelinek <jakub@redhat.com>
16978 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
16979 Use SWI248 iterator instead of SWI.
16980 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
16981 Use eq_attr "alternative" "0" instead of match_test in
16982 length_immediate attribute computation.
16983 (*mulvhi4, *mulvhi4_1): New define_insns.
16986 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
16987 SIGNED to get precision of non-negative value.
16989 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
16992 * function.c (diddle_return_value_1): Process bounds first.
16993 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
16996 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16998 PR rtl-optimization/64616
16999 * loop-invariant.c (can_move_invariant_reg): New.
17000 (move_invariant_reg): Call above new function to decide whether
17001 instruction can just be moved, skipping creation of temporary
17004 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17006 PR target/pr66047.c
17007 * i386.c (ix86_function_sseregparm): Only return -1 if local function
17008 with implied regparm is called from -mno-sse function.
17009 (init_cumulative_args): Output error if ix86_function_sseregparm
17010 return -1 and SSE register would be needed.
17011 (function_arg_advance_32): Likewise.
17012 (function_arg_32): Likewise.
17013 * i386.h (ix86_args): Add decl field.
17015 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17018 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
17019 inlines across optimization boundary.
17021 2015-05-12 Jason Merrill <jason@redhat.com>
17023 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
17024 string literal and macro name.
17026 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
17028 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
17029 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
17030 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
17032 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17034 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
17035 (-Wmisleading-indentation): New option.
17036 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
17038 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
17040 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
17041 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
17042 (alpha_extract_integer): Ditto.
17043 (alpha_legitimate_constant_p): Ditto.
17044 (alpha_split_tmode_pair): Ditto.
17045 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
17046 (alpha_expand_mov): Ditto.
17047 (print_operand): Remove handling of 'H' modifier.
17048 <case 'm'>: Remove CONST_DOUBLE handling.
17049 (summarize_insn): Handle CONST_WIDE_INT.
17050 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
17052 (movti): Handle CONST_WIDE_INT.
17053 * config/alpha/constraints.md ('H'): Remove constraint definition.
17054 ('G'): Do not match MODE_FLOAT class.
17055 * config/alpha/predicates.md (const0_operand): Also match
17057 (non_add_const_operand): Ditto.
17058 (non_zero_const_operand): Ditto.
17059 (some_operand): Ditto.
17060 (input_operand): Ditto. Handle CONST_WIDE_INT.
17061 (and_operand): Do not match const_double.
17062 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
17064 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
17067 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
17068 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
17069 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
17070 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
17071 is_mm_seq_cst, is_mm_sync): New accessor functions.
17072 * builtins.c (expand_builtin_sync_operation,
17073 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
17074 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
17075 (get_memmodel, expand_builtin_atomic_compare_exchange,
17076 expand_builtin_atomic_load, expand_builtin_atomic_store,
17077 expand_builtin_atomic_clear): Use new accessor routines.
17078 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
17079 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
17080 (maybe_emit_sync_lock_test_and_set): Use new accessors and
17081 MEMMODEL_SYNC_ACQUIRE.
17082 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
17083 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
17084 expand_atomic_store): Use new accessors.
17085 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
17086 * tsan.c (instrument_builtin_call): Update check for memory model beyond
17087 final enum to use MEMMODEL_LAST.
17088 * c-family/c-common.c: Use new accessor for memmodel_base.
17089 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
17091 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
17092 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
17093 mem_thread_fence, *dmb): Likewise.
17094 * config/alpha/alpha.c (alpha_split_compare_and_swap,
17095 alpha_split_compare_and_swap_12): Likewise.
17096 * config/arm/arm.c (arm_expand_compare_and_swap,
17097 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
17098 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
17099 atomic_loaddi): Likewise.
17100 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
17102 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
17103 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
17105 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
17106 atomic_store<mode>, atomic_compare_and_swap<mode>,
17107 atomic_exchange<mode>): Use new accessors.
17108 * config/mips/mips.c (mips_process_sync_loop): Likewise.
17109 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
17110 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
17111 rs6000_post_atomic_barrier): Add new cases.
17112 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
17113 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
17114 (atomic_load<mode>): Add new cases and use new accessors.
17115 (store_quadpti): Add new cases.
17116 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
17118 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
17119 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
17122 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17124 * ipa-devirt.c (type_with_linkage_p): New function.
17125 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
17127 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
17128 (can_be_name_hashed_p): Simplify.
17129 (hash_odr_name): Check that type has linkage before checking if it is
17131 (types_same_for_odr): Likewise.
17132 (odr_name_hasher::equal): Likewise.
17133 (odr_subtypes_equivalent_p): Likewise.
17134 (warn_types_mismatch): Likewise.
17135 (get_odr_type): Likewise.
17136 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
17137 * ipa-utils.h (odr_type_p): Move offline.
17138 * tree.c (need_assembler_name_p): Fix handling of types
17140 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
17142 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17144 * timevar.c (timevar_enable): Delete in favor of...
17145 (g_timer): New global.
17146 (struct timevar_def): Move to timevar.h inside class timer.
17147 (struct timevar_stack_def): Likewise.
17148 (timevars): Delete global in favor of field "m_timevars" within
17149 class timer in timevar.h
17150 (stack): Likewise, in favor of field "m_stack".
17151 (unused_stack_instances): Likewise, in favor of field
17152 "m_unused_stack_instances".
17153 (start_time): Likewise, in favor of field "m_start_time".
17154 (get_time): Eliminate check for timevar_enable.
17155 (timer::timer): New function, built from part of timevar_init.
17156 (timevar_init): Rewrite idempotency test from using
17157 "timevar_enable" bool to using dynamic allocation of "g_timer".
17158 Move rest of implementation into timer's constructor.
17159 (timevar_push_1): Rename to...
17160 (timer::push): ...this, adding "m_" prefixes to variables that
17161 are now fields of timer.
17162 (timevar_pop_1): Likewise, rename to...
17163 (timer::pop): ...this, and add "m_" prefixes.
17164 (timevar_start): Replace test for "timevar_enable" with one for
17165 "g_timer", and move bulk of implementation to...
17166 (timer::start): ...here, adding "m_" prefixes.
17167 (timevar_stop): Likewise, from here...
17168 (timer::stop): ...to here.
17169 (timevar_cond_start): Likewise, from here...
17170 (timer::cond_start): ...to here.
17171 (timevar_cond_stop): Likewise, from here...
17172 (timer::cond_stop): ...to here.
17173 (validate_phases): Rename to...
17174 (timer::validate_phases): ...this, and add "m_" prefixes. Make
17175 locals "total" and "tv" const.
17176 (timevar_print): Rename to...
17177 (timer::print): ...this, and add "m_" prefixes. Make locals
17178 "total" and "tv" const. Eliminate test for timevar_enable.
17179 * timevar.h (timevar_enable): Eliminate.
17180 (g_timer): New declaration.
17181 (timevar_push_1): Eliminate.
17182 (timevar_pop_1): Eliminate.
17183 (timevar_print): Eliminate.
17184 (class timer): New class.
17185 (timevar_push): Rewrite to use g_timer.
17186 (timevar_pop): Likewise.
17187 * toplev.c (toplev::~toplev): Likewise.
17189 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
17191 * arm-protos.h (arm_sched_autopref): Delete.
17192 (tune_params): Re-organize, use enums for flag values.
17193 (FUSE_OPS): New macro.
17194 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
17195 (ARM_PREFETCH_BENEFICIAL): Likewise.
17196 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
17197 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
17198 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
17199 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
17200 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
17201 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
17202 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
17203 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
17205 (arm_option_override, thumb2_reorg, arm_print_tune_info)
17206 (aarch_macro_fusion_pair_p): Update uses of current_tune.
17207 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
17209 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
17211 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
17214 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
17215 Sandra Loosemore <sandra@codesourcery.com>
17217 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
17219 (REG_CLASS_NAMES): Add "IJMP_REGS".
17220 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
17221 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
17222 use new "c" register constraint.
17223 * config/nios2/constraint.md (c): New register constraint
17224 corresponding to IJMP_REGS.
17226 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17228 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
17229 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
17230 define_splits): Delete, revamp, transmogrify into ...
17231 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17232 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17233 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17236 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17238 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
17239 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
17241 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17243 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
17244 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
17245 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
17246 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
17247 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
17248 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
17249 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
17250 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
17251 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
17252 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17253 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
17254 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
17255 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
17256 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
17257 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
17258 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
17259 and 30 corresponding splitters): Delete.
17261 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17263 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
17266 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17268 * combine.c (recog_for_combine_1): New function, factored out
17269 from recog_for_combine.
17270 (change_zero_ext): New function.
17271 (recog_for_combine): If recog fails, try again with the pattern
17272 modified by change_zero_ext; if that still fails, restore the
17275 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17277 * combine.c (get_undo_marker): New function.
17278 (undo_to_marker): New function, largely factored out from ...
17279 (undo_all): ... this. Adjust.
17281 2015-05-12 Richard Biener <rguenther@suse.de>
17283 PR tree-optimization/66101
17284 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
17285 fixup if we turn a loop exit edge to a fallthru edge.
17287 2015-05-12 Richard Biener <rguenther@suse.de>
17289 PR tree-optimization/37021
17290 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
17291 (SLP_TREE_TWO_OPERATORS): New define.
17292 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
17293 SLP_TREE_TWO_OPERATORS.
17294 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
17296 (vect_build_slp_tree): Adjust.
17297 (vect_analyze_slp_cost_1): Likewise.
17298 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
17299 emitting two vector stmts and mixing the results.
17301 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
17303 * call.c (print_z_candidates): Remove dead code.
17305 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17307 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
17308 and zEC12_simple_fp.
17309 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
17312 2015-05-12 Tom de Vries <tom@codesourcery.com>
17314 PR tree-optimization/66010
17315 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
17317 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
17318 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
17319 va_lists are passed, and remove corresponding handling.
17320 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
17321 do_deref argument to ifn_va_arg.
17322 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
17325 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17328 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
17329 REG before taking its REGNO.
17331 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17333 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
17334 rsp->sign_bit_copies and rsp->nonzero_bits into ...
17335 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
17336 present to get more accurate information about the number of sign bit
17337 copies and non zero bits.
17339 2015-05-12 Richard Biener <rguenther@suse.de>
17341 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
17342 do not allow unrolling.
17344 2015-05-11 Richard Henderson <rth@redhat.com>
17346 * config/i386/i386-modes.def (CCP): New.
17347 * config/i386/i386.c (put_condition_code): Handle it.
17348 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
17350 2015-05-11 Richard Henderson <rth@redhat.com>
17352 * target.def (md_asm_clobbers): Replace with...
17353 (md_asm_adjust): this.
17354 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
17355 (TARGET_MD_ASM_ADJUST): New.
17356 * tm.texi: Rebuild.
17357 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
17358 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
17359 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
17361 * cfgexpand.c (check_operand_nalternatives): Accept vector of
17362 constraints instead of lists of outputs and inputs.
17363 (expand_asm_stmt): Save and restore input_location around the
17364 body of the function. Move asm data into vectors instead of
17365 building tree lists. Generate cleanup sequences as needed,
17366 rather than waiting til the end. Use new md_asm_adjust hook.
17368 * config/vxworks.c: Include vec.h before target.h.
17369 * gimple.c: Likewise.
17370 * incpath.c: Likewise.
17371 * mode-switching.c: Likewise.
17373 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
17374 (cris_md_asm_adjust): this.
17375 (TARGET_MD_ASM_CLOBBERS): Remove.
17376 (TARGET_MD_ASM_ADJUST): New.
17377 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
17378 (ix86_md_asm_adjust): this.
17379 (TARGET_MD_ASM_CLOBBERS): Remove.
17380 (TARGET_MD_ASM_ADJUST): New.
17381 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
17382 (mn10300_md_asm_adjust): this.
17383 (TARGET_MD_ASM_CLOBBERS): Remove.
17384 (TARGET_MD_ASM_ADJUST): New.
17385 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
17386 (rs6000_md_asm_adjust): this.
17387 (TARGET_MD_ASM_CLOBBERS): Remove.
17388 (TARGET_MD_ASM_ADJUST): New.
17389 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
17390 (visium_md_asm_adjust): this.
17391 (TARGET_MD_ASM_CLOBBERS): Remove.
17392 (TARGET_MD_ASM_ADJUST): New.
17394 2015-05-11 Richard Henderson <rth@redhat.com>
17396 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
17397 if noutputs is zero.
17398 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
17400 * cfgexpand.c (expand_asm_operands): Merge into...
17401 (expand_asm_stmt): ... here.
17403 * cfgexpand.c (expand_asm_operands): Don't call
17404 resolve_asm_operand_names.
17405 * stmt.c (resolve_asm_operand_names): Clarify block comment.
17407 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
17409 * dwarf2out.c (gen_member_die): Sanity check that we access
17410 TYPE_MAIN_VARIANT for TYPE_METHODS.
17411 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
17412 checking TYPE_METHODS.
17413 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
17415 (build_distinct_type_copy): Clear TYPE_METHODS.
17416 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
17417 (verify_type): Allow TYPE_METHODS to be error_mark_node.
17418 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
17420 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
17422 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
17423 (emit_pattern_before_setloc): Likewise.
17425 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17427 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
17428 for define_peephole2s.
17429 (get_peephole2_pattern): New function.
17430 (main): Use it. Call validate_pattern.
17432 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17434 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
17435 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
17436 (Last callee saved reg is different for AVR_TINY architecture)
17438 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17440 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
17441 when looking for memory references.
17443 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17446 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
17447 via function pointers.
17449 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17451 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
17452 indirect call by forcing address into a pseudo with -fno-plt.
17453 * common.opt (flag_plt): New option.
17454 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
17455 ([-fno-plt]): Document.
17457 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
17460 * config/rs6000/option-defaults.h: Add space between string literal
17463 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
17465 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
17466 accross ARM targets.
17468 2015-05-11 Christian Bruel <christian.bruel@st.com>
17470 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
17471 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
17473 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17475 PR rtl-optimization/66076
17476 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
17477 Don't grow the heap array if it is already big enough from a
17478 previous iteration.
17480 2015-05-11 Christian Bruel <christian.bruel@st.com>
17482 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
17483 (is_called_in_ARM_mode): Remove.
17484 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
17485 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
17486 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
17487 arm_declare_function_name.
17489 2015-05-11 Christian Bruel <christian.bruel@st.com>
17491 * config/arm/arm.c (arm_option_override): Reoganized and split into :
17492 (arm_option_params_internal); New function.
17493 (arm_option_check_internal): New function.
17494 (arm_option_override_internal): New function.
17495 (thumb_code, thumb1_code): Remove.
17496 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
17497 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
17498 (thumb_code, thumb1_code): Remove.
17499 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
17501 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17503 * config/alpha/alpha.c (alpha_emit_set_const_1)
17504 (alpha_emit_set_long_const, alpha_extract_integer)
17505 (alpha_legitimate_constant_p, alpha_split_const_mov)
17506 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
17507 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17508 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
17510 * config/alpha/predicates.md (mode_mask_operand): Do not match
17512 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17513 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
17514 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
17515 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17516 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
17518 2015-05-11 Jakub Jelinek <jakub@redhat.com>
17521 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
17522 default_binds_local_p_2.
17523 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
17524 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
17526 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17528 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
17530 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17532 Patch by Richard Biener
17533 * coverage.c (coverage_obj_init): Delay building of type variant
17534 until the type is finished.
17536 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17538 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
17539 mismatch between C and C++ type; compoare correctly ARG_TYPES
17540 for non-prototypes and output correctly parameter index for METHOD_TYPE.
17541 (odr_types_equivalent_p): Fix wording of warning about attributes;
17542 it is OK to match prototype and non-prototype.
17544 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17546 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
17547 TYPE_ARG_TYPES list.
17548 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
17549 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
17551 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17553 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
17554 * tree.h (is_lang_specific): Constify.
17556 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
17558 PR tree-optimization/64454
17559 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
17562 2015-05-08 Jason Merrill <jason@redhat.com>
17564 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
17565 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
17566 config/darwin.h, config/darwin9.h, config/elfos.h,
17567 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
17568 config/microblaze/microblaze.h, config/mips/mips.h,
17569 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
17570 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
17571 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
17572 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
17573 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
17574 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
17575 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
17576 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
17577 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
17578 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
17579 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
17580 between string literal and macro name.
17582 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17584 * jump.c: Change argument types to rtx_insn *.
17587 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17589 * lra-constraints.c: Change argument type to rtx_insn *.
17591 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17593 * df-problems.c: Change argument type to rtx_insn *.
17595 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17597 * combine.c: Change argument type to rtx_insn *.
17599 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17602 * rtlanal.c: Change argument type to rtx_insn *.
17604 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17606 * sched-deps.c: Change argument types to rtx_insn *.
17607 * sched-int.h: Adjust.
17609 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17611 * dwarf2cfi.c: Change argument type to rtx_insn *.
17613 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17615 * ira.c (decrease_live_ranges_number): Changetype of local
17616 variable to rtx_insn *.
17617 * recog.c: Change argument types to rtx_insn *.
17620 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17622 * reorg.c: Change argument types to rtx_insn *.
17624 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17626 * ira-color.c: Change argument types to rtx_insn *.
17627 * lra-eliminations.c: Likewise.
17630 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17632 * gcse.c: Change argument types to rtx_insn *.
17634 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17636 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
17638 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17640 * emit-rtl.c (emit_debug_insn_before): Change argument type to
17644 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17646 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
17649 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17651 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
17654 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17656 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
17659 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17661 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
17664 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17666 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
17670 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17672 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
17676 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17678 * except.c (can_nonlocal_goto): Change type of argument to
17682 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17684 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
17687 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17689 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
17690 * cfgrtl.c (can_delete_label_p): Adjust.
17693 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17695 * reorg.c (stop_search_p): Change argument to rtx_insn *.
17697 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17699 * except.c (make_reg_eh_region_note): Change argument to
17701 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
17702 * except.h: Adjust.
17704 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17706 * mode-switching.c (commit_mode_sets): Change type of local
17707 variable from rtx to rtx_insn *.
17709 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
17711 * doc/install.texi (--enable-languages): Add missing jit and lto info.
17712 Add ^ to grep command.
17713 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
17714 arg to last gimple_simplify declaration. Add missing gimple_build
17715 declaration for built-in function case with four tree args.
17717 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17718 Szabolcs Nagy <szabolcs.nagy@arm.com>
17720 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
17721 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
17722 (GNU_USER_DYNAMIC_LINKERN32): Update.
17724 2015-05-08 Richard Biener <rguenther@suse.de>
17726 PR tree-optimization/66036
17727 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17728 Handle strided group loads.
17729 (vect_verify_datarefs_alignment): Likewise.
17730 (vect_enhance_data_refs_alignment): Likewise.
17731 (vect_analyze_group_access): Likewise.
17732 (vect_analyze_data_ref_access): Likewise.
17733 (vect_analyze_data_ref_accesses): Likewise.
17734 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
17735 (vectorizable_load): Likewise.
17737 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
17739 * config/rs6000/rs6000.md: Require operand inequality in one
17742 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
17743 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17745 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
17747 * config/rx/rx.md (movdi, movdf): Likewise.
17748 Likewise for define_peephole2s.
17750 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17752 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
17753 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
17754 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
17755 vtst_u64): Rewrite using gcc vector extensions.
17757 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17759 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
17760 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
17762 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17764 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
17766 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17768 * config/glibc-stdint.h (OPTION_MUSL): Define.
17769 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
17770 Change the definition based on OPTION_MUSL for 64 bit targets.
17771 * config/linux.h (OPTION_MUSL): Redefine.
17772 * config/alpha/linux.h (OPTION_MUSL): Redefine.
17773 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
17774 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
17776 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17777 Szabolcs Nagy <szabolcs.nagy@arm.com>
17779 * config.gcc (LIBC_MUSL): New tm_defines macro.
17780 * config/linux.h (OPTION_MUSL): Define.
17781 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
17782 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
17783 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17784 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17785 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17786 * config/linux.opt (mmusl): New option.
17787 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
17788 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17789 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17790 * configure: Regenerate.
17792 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
17793 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17796 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
17797 * config/i386/knetbsd-gnu64.h: New file.
17799 2015-05-08 Marek Polacek <polacek@redhat.com>
17802 * doc/invoke.texi: Document -Woverride-init-side-effects.
17804 2015-05-07 Marek Polacek <polacek@redhat.com>
17807 * doc/invoke.texi: Document -Wshift-negative-value.
17809 2015-05-06 Aditya Kumar <hiraditya@msn.com>
17811 * gcov-tool.c (do_merge): Refactore to remove int ret.
17812 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
17813 !type == FUNC to type != FUNC.
17814 * reload.h (struct target_reload): Changee to type of
17815 x_spill_indirect_levels from bool to unsigned char.
17817 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
17819 * rtl.h (always_void_p): New function.
17820 * gengenrtl.c (always_void_p): Likewise.
17821 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
17822 with code foo are always VOIDmode.
17823 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
17824 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
17825 compare-elim.c, config/aarch64/aarch64.c,
17826 config/aarch64/aarch64.md, config/alpha/alpha.c,
17827 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
17828 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
17829 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
17830 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17831 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
17832 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
17833 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
17834 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
17835 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
17836 config/ia64/vect.md, config/iq2000/iq2000.c,
17837 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
17838 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
17839 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
17840 config/mep/mep.c, config/microblaze/microblaze.c,
17841 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
17842 config/mn10300/mn10300.c, config/msp430/msp430.c,
17843 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
17844 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
17845 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
17846 config/rs6000/altivec.md, config/rs6000/rs6000.c,
17847 config/rs6000/rs6000.md, config/rs6000/vector.md,
17848 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
17849 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
17850 config/sh/sh.md, config/sh/sh_treg_combine.cc,
17851 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
17852 config/spu/spu.md, config/stormy16/stormy16.c,
17853 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
17854 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
17855 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
17856 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
17857 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
17858 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
17859 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
17860 var-tracking.c: Update calls accordingly.
17862 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17865 PR middle-end/54303
17866 * varasm.c (function_mergeable_rodata_prefix): New function.
17867 (mergeable_string_section): Use it.
17868 (mergeable_constant_section): Use it.
17870 2015-05-07 Jeff Law <law@redhat.com>
17873 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17874 simplifier to narrow arithmetic.
17875 * generic-match-head.c: (types_match, single_use): New functions.
17876 * gimple-match-head.c: (types_match, single_use): New functions.
17878 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17880 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
17883 2015-05-07 Richard Biener <rguenther@suse.de>
17885 PR tree-optimization/66002
17886 * passes.def: Schedule another pass_merge_phi after ifcombine, right
17889 2015-05-07 Marek Polacek <polacek@redhat.com>
17890 Martin Uecker <uecker@eecs.berkeley.edu>
17892 * doc/invoke.texi: Document -fsanitize=bounds-strict.
17893 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
17894 into SANITIZE_NONDEFAULT.
17895 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
17897 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
17900 * config/alpha/alpha.c (alpha_override_options_after_change): New.
17901 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
17902 (alpha_override_options): Move align_loops, align_jumps and
17903 align_functions handling into alpha_override_options_after_change.
17905 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
17906 Chris Jones <chrisj@nvidia.com>
17907 Joshua Conner <jconner@nvidia.com>
17909 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
17910 linking of crtfastmath.o.
17911 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
17913 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17915 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
17916 (cstore<mode>4_unsigned_imm): New expander.
17917 (cstore<mode>4): Remove empty constraint strings. Use the new
17920 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
17923 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
17926 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
17928 * config/aarch64/geniterators.sh: Use standard BRE in sed.
17930 2015-05-06 Alan Modra <amodra@gmail.com>
17933 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
17934 (UNSPEC_NOP): Define.
17935 (reload_vsx_from_gpr<mode>): Add missing DONE.
17936 (reload_gpr_from_vsx<mode>): Likewise.
17937 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
17938 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
17940 2015-05-06 Christian Bruel <christian.bruel@st.com>
17943 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
17944 align_jumps, align_functions into aarch64_override_options_after_change.
17946 2015-05-06 Richard Biener <rguenther@suse.de>
17948 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
17949 vect_transform_slp_perm_load to check if we support a permutation
17950 for basic-block vectorization.
17952 2015-05-06 Nick Clifton <nickc@redhat.com>
17954 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
17955 used, even if it is not being used as a frame pointer.
17957 2015-05-05 Jason Merrill <jason@redhat.com>
17959 * dwarf2out.c (gen_member_die): Don't emit anything for an
17960 anonymous class constructor.
17962 2015-05-05 David Malcolm <dmalcolm@redhat.com>
17964 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
17965 that it reflects the block structure.
17966 (afdo_propagate_edge): Likewise.
17967 (afdo_calculate_branch_prob): Likewise.
17968 (afdo_annotate_cfg): Likewise.
17969 * cfgcleanup.c (equal_different_set_p): Likewise.
17970 (try_crossjump_to_edge): Likewise.
17971 * cgraph.c (cgraph_node::verify_node): Likewise.
17972 * cgraphunit.c (expand_all_functions): Likewise.
17973 * config/i386/i386.c (ix86_expand_copysign): Likewise.
17974 (exact_dependency_1): Likewise.
17975 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
17976 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
17977 * gensupport.c (process_define_subst): Likewise.
17978 * lto-wrapper.c (merge_and_complain): Likewise.
17979 * tree-if-conv.c (if_convertible_bb_p): Likewise.
17980 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
17981 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
17982 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17983 * tree-vect-loop.c (vectorizable_reduction): Likewise.
17984 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
17985 * tree-vect-stmts.c (vectorizable_shift): Likewise.
17986 * tree-vrp.c (vrp_finalize): Likewise.
17987 * tree.c (variably_modified_type_p): Likewise.
17989 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
17991 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
17992 on darwin12 and later.
17993 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
17994 file to pass -rdynamic on darwin12 and later.
17995 * config/darwin.opt (rdynamic): Add.
17997 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
17999 * doc/extend.texi (C Extensions): Update menu for moved Variable
18000 Attributes and Type Attributes sections.
18002 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18005 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
18006 if rep_8byte stringop strategy was specified for 32-bit target.
18008 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
18011 * config/i386/i386.md (vector convert to float spltiter): Check for
18012 xmm16+, when splitting scalar float conversion.
18013 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
18015 2015-05-05 Nick Clifton <nickc@redhat.com>
18017 * config/msp430/msp430-opts.h (enum msp430_regions): New.
18018 * config/msp430/msp430.c (msp430_override_options): Complain if
18019 -mcode-region or -mdata-region is used on a non MSP430X.
18020 (msp430_section_attr): New function. Checks lower, upper and
18022 (msp430_attribute_table): Add lower, upper and either.
18023 (gen_prefix): New function. Generates a prefix for a section
18025 (msp430_select_section): New function - handles the choice of
18026 section for an object. Takes into account memory region
18027 attributes and options.
18028 (msp430_function_section): Use gen_prefix.
18029 (TARGET_SECTION_TYPE_FLAGS): Define.
18030 (msp430_section_type_flags): New function.
18031 (TARGET_ASM_UNIQUE_SECTION): Define.
18032 (msp430_unique_section): New function.
18033 (msp430_output_aligned_decl_common): New function.
18034 (msp430_do_not_relax_short_jumps): New function.
18035 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
18037 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18038 * config/msp430/msp430-protos.h
18039 (msp430_do_not_relax_short_jumps): New prototype.
18040 (msp430_output_aligned_decl_common): New prototype.
18041 * config/msp430/msp430.md (length): New attribute.
18042 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
18043 then use a long code sequence for short jumps.
18044 * config/msp430/msp430.opt (mcode-region): New.
18045 (mdata-region): New.
18046 * doc/invoke.texi: Document new options.
18047 * doc/extend.texi: Document new attributes.
18049 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18051 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
18052 (tune_params): Add field branch_costs.
18053 (aarch64_branch_cost): Declare.
18054 * gcc/config/aarch64.c (generic_branch_cost): New.
18055 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
18056 (cortexa53_tunings): Likewise.
18057 (cortexa57_tunings): Likewise.
18058 (thunderx_tunings): Likewise.
18059 (xgene1_tunings): Likewise.
18060 (aarch64_branch_cost): Define.
18061 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
18063 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18065 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
18066 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
18067 * config/i386/i386.md: Ditto.
18068 * config/i386/winnt.c: Ditto.
18070 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18072 * doc/extend.texi (__atomic Builtins): Move implementation details
18073 to the end of the description, rewrite opening paragraphs, state
18074 difference with __sync builtins, state C11/C++11 assumptions,
18075 weaken itemized descriptions, add explanation of memory model
18076 behaviour, expand description of compare-exchange, simplify text.
18078 2015-05-05 Renlin Li <renlin.li@arm.com>
18080 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
18082 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
18084 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
18085 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18086 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
18087 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18088 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
18089 * configure: Regenerate.
18090 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
18091 * doc/install.texi (aarch64*-*-*): Document new
18092 --enable-fix-cortex-a53-843419 option.
18093 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
18094 and -mno-fix-cortex-a53-843419 options.
18096 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18099 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
18101 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
18103 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
18104 fix overactive TYPE_MIN_VALUE check and add FIXME for type
18105 compatibility problems.
18107 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18109 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
18111 (cbranchsi4_reg): New.
18112 * config/microblaze/microblaze.c
18113 (microblaze_expand_conditional_branch_reg): New.
18114 * config/microblaze/microblaze-protos.h
18115 (microblaze_expand_conditional_branch_reg): New prototype.
18117 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18119 * config/microblaze/microblaze.md (peephole2): New.
18121 2015-05-04 Jeff Law <law@redhat.com>
18124 2015-05-04 Jeff Law <law@redhat.com>
18126 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18127 simplifier to narrow arithmetic.
18128 * generic-match-head.c: (types_match, single_use): New functions.
18129 * gimple-match-head.c: (types_match, single_use): New functions.
18131 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
18134 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
18135 (split_branches): Likewise.
18137 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
18139 * common.opt (fdelete-null-pointer-checks): Init to -1.
18140 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
18141 override flag_delete_null_pointer_checks default.
18142 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
18143 behavior re address zero. Better document target-specific behavior.
18144 (-fisolate-errneous-paths-dereference): Mention relationship to
18145 -fdelete-null-pointer-checks.
18147 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18149 PR tree-optimization/65984
18150 * ubsan.c: Include tree-cfg.h.
18151 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
18152 stmt_could_throw_p test, rename can_throw variable to ends_bb.
18154 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18156 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
18157 to CONST_DOUBLE_P predicate.
18158 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
18159 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
18160 allow only operands that satisfy standard_sse_constant_p predicate.
18161 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
18162 to CONST_DOUBLE_P predicate.
18164 2015-05-04 Jeff Law <law@redhat.com>
18166 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18167 simplifier to narrow arithmetic.
18168 * generic-match-head.c: (types_match, single_use): New functions.
18169 * gimple-match-head.c: (types_match, single_use): New functions.
18171 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
18173 * config/arm/arm.c: Restore bootstrap.
18175 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18177 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
18178 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
18179 as CONST_WIDE_INT, not CONST_DOUBLE.
18180 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
18181 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
18182 (ix86_find_base_term): Do not check for CONST_DOUBLE.
18183 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
18184 (ix86_build_signbit_mask): Rewrite using wide ints.
18185 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
18186 (ix86_rtx_costs): Handle CONST_WIDE_INT.
18187 (find_constant): Ditto.
18188 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
18189 using gen_int_mode.
18190 * config/i386/predicates.md (x86_64_immediate_operand)
18191 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18192 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
18193 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18194 (const0_operand): Also match const_wide_int.
18195 (constm1_operand): Ditto.
18196 (const1_operand): Ditto.
18198 2015-05-04 Richard Biener <rguenther@suse.de>
18200 PR tree-optimization/65965
18201 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
18202 store groups at gaps.
18204 2015-05-04 Richard Biener <rguenther@suse.de>
18206 PR tree-optimization/65935
18207 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
18208 then make sure to apply that swapping to the IL.
18210 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18212 * Makefile.in (PATCHLEVEL_c): New variable.
18213 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
18214 expand the same way as if DEVPHASE_c was non-empty.
18216 2015-05-04 Kai Tietz <ktietz@redhat.com>
18219 * lto-wrapper.c (run_gcc): Open filename
18222 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
18224 * doc/extend.texi (Variable Attributes, Type Attributes): Move
18225 sections up in file, to immediately after the Function Attributes
18228 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
18230 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
18232 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18234 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
18235 (insert_partition_copy_on_edge): Adjust.
18236 (insert_rtx_to_part_on_edge): Likewise.
18237 (insert_part_to_rtx_on_edge): Likewise.
18239 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18241 * function.c (set_return_jump_label): Change type of argument to
18243 * function.h (set_return_jump_label): Adjust.
18245 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18247 * reload.h (struct reg_equivs_t): Change type of init to
18249 * ira.c (fix_reg_equiv_init): Adjust.
18250 * reload1.c (eliminate_regs_1): Likewise.
18251 (init_eliminable_invariants): Likewise.
18253 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18255 * cselib.c (fp_setter_insn): Take a rtx_insn *.
18256 * cselib.h (fp_setter_insn): Adjust.
18258 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18260 * recog.c (struct validate_replace_src_data): Change type of
18261 insn field to rtx_insn *.
18262 (validate_replace_src_group): Change type of argument to rtx_insn *.
18263 * recog.h (validate_replace_src_group): Adjust.
18265 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18267 * haifa-sched.c: Change the type of some variables to rtx_insn *.
18268 * sched-deps.c: Likewise.
18269 * sched-int.h: Likewise.
18270 * sched-rgn.c: Likewise.
18271 * sel-sched.c: Likewise.
18273 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18276 * config/i386/i386.c: Change the type of some arguments to
18278 * config/arm/arm.c: Likewise.
18280 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18282 * lra-constraints.c: Change type of some arguments to rtx_insn *.
18284 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18286 * regcprop.c (kill_autoinc_value): Change type of argument to
18289 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18291 * genrecog.c (print_subroutine): Adjust.
18292 * recog.c (get_bool_attr_mask_uncached): Likewise.
18293 * recog.h (struct recog_data_d): Change the type of insn to
18296 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18298 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
18300 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18302 * df-problems.c (df_set_note): Change type of argument to
18305 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18307 * builtins.c (expand_builtin_trap): Change type of local
18308 variable to rtx_insn *.
18309 (add_sched_insns_for_speculation): Likewise.
18310 (ix86_emit_save_regs): Likewise.
18311 (get_scratch_register_on_entry): Likewise.
18312 (ix86_emit_restore_reg_using_pop): Likewise.
18313 (ix86_emit_leave): Likewise.
18314 (ix86_emit_restore_regs_using_mov): Likewise.
18315 (ix86_expand_epilogue): Likewise.
18317 (rl78_alloc_physical_registers_umul): Likewise.
18318 * cselib.c (discard_useless_locs): Likewise.
18319 (cselib_invalidate_regno): Likewise.
18320 (cselib_invalidate_mem): Likewise.
18321 * function.c (expand_function_start): Likewise.
18322 (emit_use_return_register_into_block): Likewise.
18323 * gcse.c: Likewise.
18324 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
18325 * ifcvt.c (noce_get_alt_condition): Likewise.
18326 * loop-doloop.c (doloop_condition_get): Likewise.
18327 * lra-constraints.c (inherit_in_ebb): Likewise.
18328 * modulo-sched.c (sms_schedule_by_order): Likewise.
18329 * recog.c (next_insn_tests_no_inequality): Likewise.
18330 * reorg.c (emit_delay_sequence): Likewise.
18331 (update_reg_dead_notes): Likewise.
18332 (fix_reg_dead_note): Likewise.
18333 (fill_slots_from_thread): Likewise.
18334 (delete_computation): Likewise.
18336 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
18338 * doc/extend.texi (Variable Attributes): Add menu and proper
18339 @nodes to subsections. Move Microsoft Windows attributes to
18340 their own subsection.
18341 (Type Attributes): Reorganize introduction to remove duplicate
18342 list of attributes. Add menu and proper @nodes to subsections.
18343 Alphabetize the main table of common attributes.
18345 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
18347 * match.pd: New simplification patterns.
18348 (x + (x & 1)) -> ((x + 1) & ~1)
18349 (x & ~(x & y)) -> ((x & ~y))
18350 (x | ~(x | y)) -> ((x | ~y))
18352 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18354 * target.def (attribute_table): Mention that struct attribute_spec
18355 is defined in tree-core.h rather than tree.h
18356 * doc/tm.texi: Regenerate.
18358 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
18360 * genrecog.c (test): Rename to rtx_test. Update rest of file
18363 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
18365 PR translation/65959
18366 * params.h (DEFPARAM): Rename msgid to nocmsgid.
18368 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18370 * gcc/config/aarch64/aarch64-protos.h (tune_params):
18371 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
18372 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
18373 Return value depending on target.
18374 (generic_tunings): Initialize new target settings.
18375 (cortexa53_tunings): Likewise.
18376 (cortexa57_tunings): Likewise.
18377 (thunderx_tunings): Likewise.
18378 (xgene1_tunings): Likewise.
18380 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18382 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
18383 Make Cortex-A53 shift costs more accurate.
18385 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18387 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
18390 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18392 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
18393 Calculate cost of op0 and op1 in PLUS and MINUS cases.
18395 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18397 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18398 Add cost of op0 in the compare-with-fpzero case.
18400 2015-04-30 David Malcolm <dmalcolm@redhat.com>
18402 * builtins.c (fold_builtin_1): Remove spurious second
18404 * cgraph.h (symtab_node::get_availability): Likewise.
18405 * opts.c (common_handle_option): Remove spurious second semicolon.
18406 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18407 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18409 2015-04-30 Caroline Tice <cmtice@google.com>
18411 PR gcov-profile/65929
18412 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
18413 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
18414 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
18415 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
18416 * doc/tm.texi: Regenerate.
18417 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
18418 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
18419 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
18420 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
18422 2015-04-30 Marek Polacek <polacek@redhat.com>
18424 * varasm.c (handle_cache_entry): Fix logic.
18426 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18428 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
18429 (*extrsi5_insn_uxtw_alt): Likewise.
18430 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
18431 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
18434 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18436 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
18439 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18441 * config/aarch64/aarch64.md
18442 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
18443 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
18444 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
18445 appropriately. Handle alternative EON form.
18447 2015-04-30 Renlin Li <renlin.li@arm.com>
18449 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
18450 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
18452 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18455 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
18456 -fstrict-aliasing boundaries.
18458 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18460 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
18461 and [SU]MNEGL patterns.
18463 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18465 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
18466 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
18467 combined arithmetic-shift ops. Properly handle all shift and extend
18468 operations that can occur in combination with PLUS/MINUS.
18469 Rename maybe_fma to compound_p.
18470 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
18471 arithmetic and shift operations.
18473 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18475 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
18476 rather than arith_shift cost when costing ADD/MINUS of an
18479 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18482 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
18485 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
18487 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
18488 are for the same position.
18490 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
18492 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
18494 (vectorize_loops): Use it.
18496 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18498 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
18499 for aggregate types.
18500 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
18501 type to be non_ODR.
18502 * tree.c (need_assembler_name_p): Compute mangled name for
18503 non-fundamental types and integer types.
18505 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
18507 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
18509 * expr.c (expand_expr_real_2): Likewise.
18511 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18513 * tree.c (build_common_builtin_nodes): Do not build
18514 __builtin_alloca_with_align as equivalent of library alloca.
18516 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18518 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
18519 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
18521 * tree.c: Include print-tree.h and ipa-utils.h
18522 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
18523 (free_lang_data_in_cgraph): Call verify_type.
18524 (verify_type_variant): New function.
18525 (verify_type): New function.
18526 * tree.h (verify_type): Declare.
18528 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
18530 * config/mips/mips-cpus.def: (mips4): Change default processor
18531 from PROCESSOR_R8000 to PROCESSOR_R10000.
18533 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
18535 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
18536 la/jalr instead of jal.
18538 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
18541 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
18542 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
18543 (setcc+movzbl peephole2): Check also clobbered reg.
18544 (setcc+andl peephole2): Ditto.
18546 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18549 * config/nvptx/mkoffload.c (target_ilp32): New variable.
18550 (main): Set it depending on "-foffload-abi=[...]".
18551 (compile_native, main): Use it to pass "-m32" or "-m64" to the
18554 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18557 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
18558 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
18559 Flip lane index back at assembly time for bigendian.
18561 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18563 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
18564 * gimplify.c (gimplify_omp_workshare): Use it.
18566 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18568 * Makefile.in (build/genrecog.o): Depend on inchash.h.
18569 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
18571 * genrecog.c: Rewrite most of the code except for the third page.
18573 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18575 * inchash.h, inchash.c: Include bconfig.h for build objects.
18576 * Makefile.in (build/inchash.o): New rule.
18578 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
18581 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
18582 number in type attribute expression.
18584 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18586 * loop-iv.c (canon_condition): Generalize to all types of integer
18589 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
18591 * gimple-walk.c: Prune duplicate or unneeded includes.
18592 (walk_gimple_asm): Only call parse_input_constraint or
18593 parse_output_constraint if their findings are used.
18594 Honour parse_input_constraint and parse_output_constraint
18597 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18599 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
18601 2015-04-29 Tom de Vries <tom@codesourcery.com>
18603 PR tree-optimization/65893
18604 * passes.def (pass_all_optimizations): Move pass_stdarg to after
18607 2015-04-29 Richard Biener <rguenther@suse.de>
18609 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18610 compute GROUP_SIZE for basic-block SLP.
18611 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
18612 take into account gaps.
18613 (vect_get_mask_element): Properly reject references to previous
18615 (vect_transform_slp_perm_load): Likewise.
18617 2015-04-29 Christian Bruel <christian.bruel@st.com>
18620 * config/i386/i386.c (ix86_default_align): New function.
18621 (ix86_override_options_after_change): Call ix86_default_align.
18622 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
18623 (ix86_override_options_after_change): New function.
18625 2015-04-28 Jeff Law <law@redhat.com>
18627 * tree-ssa-dom.c (record_equality); Fix comment typos.
18629 2015-04-28 Tom de Vries <tom@codesourcery.com>
18631 PR tree-optimization/65887
18632 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
18634 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
18636 * doc/extend.texi (Declaring Attributes of Functions): Split into
18637 subsections by target. Alphabetize the table of common attributes.
18638 Rewrite some of the introductory text to reflect the new structure.
18639 Update some cross-references to point to the new subsections.
18640 (Attribute Syntax): Put paragraph about "__" naming here. Remove
18641 duplicate copies in the discussion of function, label, and type
18644 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
18647 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
18649 2015-04-28 Jason Merrill <jason@redhat.com>
18652 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
18653 (finalize_type_size): Respect TYPE_USER_ALIGN.
18654 (layout_type) [ARRAY_TYPE]: Likewise.
18656 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
18658 * config/arm/arm.md (*arm_movt): Fix type attribute.
18659 (*cmpsi_shiftsi): Likewise.
18660 (*cmpsi_shiftsi_swp): Likewise.
18661 (*movsicc_insn): Likewise.
18662 (*cond_move): Likewise.
18663 (*if_plus_move): Likewise.
18664 (*if_move_plus): Likewise.
18665 (*if_arith_move): Likewise.
18666 (*if_move_arith): Likewise.
18667 (*if_shift_move): Likewise.
18668 (*if_move_shift): Likewise.
18669 (*arm_movtas_ze): Likewise.
18670 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
18671 redundancy and type attribute.
18672 (*thumb2_movsi_insn): Fix type attribute.
18673 (*thumb2_addsi_short): Likewise.
18674 (thumb2_addsi3_compare0): Likewise.
18675 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
18676 attributes accordingly.
18678 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18681 * function.c (pad_to_arg_alignment): Add parentheses.
18683 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
18685 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
18686 libgcc/config/frv/elf-lib.h.
18688 2015-04-28 Tom de Vries <tom@codesourcery.com>
18690 * tree-call-cdce.c: Fix example in header comment.
18692 2015-04-28 Richard Biener <rguenther@suse.de>
18694 PR tree-optimization/62283
18695 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
18696 fails fatally and we are vectorizing a basic-block simply
18697 cause the child to be constructed piecewise.
18698 (vect_analyze_slp_cost_1): Adjust.
18699 (vect_detect_hybrid_slp_stmts): Likewise.
18700 (vect_bb_slp_scalar_cost): Likewise.
18701 (vect_get_constant_vectors): For piecewise constructed
18702 constants place them after the last def.
18703 (vect_get_slp_defs): Adjust.
18704 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
18705 externals for basic-block vectorization.
18707 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18710 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
18712 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
18713 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
18714 (AARCH64_TUNE_FMA_STEERING): Likewise.
18715 * config/aarch64/aarch64-cores.def: Set
18716 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
18717 FMUL/FMADD instructions.
18718 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
18719 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
18720 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
18721 * config/aarch64/cortex-a57-fma-steering.h: New file.
18722 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18724 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
18726 * gensupport.c (std_preds): Add missing codes to address_operand entry.
18728 2015-04-28 Richard Biener <rguenther@suse.de>
18730 PR tree-optimization/65851
18731 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
18732 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
18733 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
18734 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
18735 (ccp_visit_phi_node): Adjust.
18736 (evaluate_stmt): For simplifications to SSA names return its
18737 lattice value if that isn't VARYING. Return immediately when
18738 simplified to a constant.
18739 (visit_assignment): Adjust.
18740 (ccp_visit_stmt): Likewise.
18742 2015-04-28 Tom de Vries <tom@codesourcery.com>
18744 PR tree-optimization/65818
18745 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
18748 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18750 * calls.c (save_fixed_argument_area): Don't check
18751 ARGS_GROW_DOWNWARD with the preprocessor.
18752 (restore_fixed_argument_area): Likewise.
18753 (mem_overlaps_already_clobbered_arg_p): Likewise.
18754 (check_sibcall_argument_overlap): Likewise.
18755 (expand_call): Likewise.
18756 (emit_library_call_value_1): Likewise.
18757 (store_one_arg): Likewise.
18758 * function.c (assign_parms): Likewise.
18759 (locate_and_pad_parm): Likewise.
18760 (pad_to_arg_alignment): Likewise.
18761 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18763 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18765 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
18766 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
18767 * calls.c (save_fixed_argument_area): Don't chekc if
18768 ARGS_GROW_DOWNWARD is defined.
18769 (restore_fixed_argument_area): Likewise.
18770 (mem_overlaps_already_clobbered_arg_p): Likewise.
18771 (check_sibcall_argument_overlap): Likewise.
18772 (expand_call): Likewise.
18773 (emit_library_call_value_1): Likewise.
18774 (store_one_arg): Likewise.
18775 * function.c (assign_parms): Likewise.
18776 (locate_and_pad_parm): Likewise.
18777 (pad_to_arg_alignment): Likewise.
18778 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18780 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18782 * defaults.h (gen_epilogue): New function.
18783 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
18785 * cfgrtl.c (cfg_layout_finalize): Likewise.
18786 * df-scan.c: Likewise.
18787 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18788 (reposition_prologue_and_epilogue_notes): Likewise.
18789 * reorg.c (find_end_label): Likewise.
18790 * toplev.c: Likewise.
18792 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18794 * bb-reorder.c (HAVE_return): Don't check if its undefined.
18795 * defaults.h (gen_simple_return): New function.
18796 (gen_simple_return): Likewise.
18797 (HAVE_return): Add default definition to false.
18798 (HAVE_simple_return): Likewise.
18799 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
18800 HAVE_return and HAVE_simple_return are defined.
18801 * function.c (gen_return_pattern): Likewise.
18802 (convert_jumps_to_returns): Likewise.
18803 (thread_prologue_and_epilogue_insns): Likewise.
18804 * reorg.c (find_end_label): Likewise.
18805 (dbr_schedule): Likewise.
18806 * shrink-wrap.c: Likewise.
18807 * shrink-wrap.h: Likewise.
18809 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18811 * defaults.h (EPILOGUE_USES): Add default definition of false.
18812 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
18813 * resource.c (init_resource_info): Likewise.
18815 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18817 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
18819 * dwarf2out.c (field_byte_offset): REmove check if
18820 PCC_BITFIELD_TYPE_MATTERS is defined.
18821 * stor-layout.c (layout_decl): Likewise.
18822 (update_alignment_for_field): Likewise.
18823 (place_field): Likewise.
18825 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18827 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
18829 * regrename.c (check_new_reg_p): Remove check if
18830 HARD_REGNO_RENAME_OK is defined.
18831 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
18833 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18835 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
18836 * cse.c (fold_rtx): Likewise.
18837 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
18838 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
18839 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
18840 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
18841 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
18842 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
18843 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
18844 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
18845 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
18846 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
18848 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
18849 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
18850 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
18851 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
18852 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
18853 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
18854 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
18855 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
18856 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
18857 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
18858 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
18859 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
18860 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
18861 * doc/tm.texi: Regenerate.
18862 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
18863 either true or false.
18865 2015-04-27 Jeff Law <law@redhat.com>
18867 PR tree-optimization/65217
18868 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
18869 of them has a single use, make sure it is the LHS of the implied
18872 2015-04-28 Alan Modra <amodra@gmail.com>
18875 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
18876 (offsettable_ok_by_alignment): Use minimum of decl and toc
18877 pointer alignment. Replace dead code with assertion.
18878 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
18879 case if size exceeds toc pointer alignment.
18880 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
18881 (rs6000_emit_move): Likewise.
18882 * configure.ac: Add linker toc pointer alignment check.
18883 * configure: Regenerate.
18884 * config.in: Regenerate.
18886 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
18888 * config.gcc: Add h8300-*-linux.
18889 * config/h8300/linux.h: New.
18890 * config/h8300/t-linux: New.
18891 * config/h8300/h8300.c (h8300_option_override): Normal mode
18892 is not supported for h8300-*-linux.
18893 (h8300_file_start): Target priority change.
18894 (get_shift_alg): Likewise.
18895 (h8300_shift_need_scratch_p): Likewise.
18896 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18897 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
18899 2015-04-27 Caroline Tice <cmtice@google.com>
18901 * final.c (final_scan_insn): Output cold_function_name as function
18903 * varasm.c (cold_function_name): Make global.
18904 (assemble_start_function): Re-set cold_function_name.
18905 (assemble_end_function): Output cold partition size.
18906 * varasm.h (cold_function_name): Declare global.
18908 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
18910 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
18911 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
18913 (*movxi_internal_avx512f): Ditto.
18914 (define_split): Check for xmm16+, when splitting scalar float_extend.
18915 (*extendsfdf2_mixed): Use "v" constraint.
18916 (define_split): Check for xmm16+, when splitting scalar float_truncate.
18917 (*truncdfsf_fast_sse): Use "v" constraint.
18918 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
18919 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
18920 (define_peephole2): Check for xmm16+, when converting scalar
18922 (define_peephole2): Check for xmm16+, when converting scalar
18924 (*fop_<mode>_comm_mixed): Use "v" constraint.
18925 (*fop_<mode>_comm_sse): Ditto.
18926 (*fop_<mode>_1_mixed): Ditto.
18927 (*sqrt<mode>2_sse): Ditto.
18928 (*ieee_s<ieee_maxmin><mode>3): Ditto.
18930 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18932 * combine.c (simplify_if_then_else): Use std::swap instead
18933 of manually swapping.
18934 (known_cond): Likewise.
18935 (simplify_comparison): Likewise.
18937 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
18940 * config/rs6000/htm.md: Remove all define_expands.
18941 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
18942 UNSPECV_HTM_TABORTWCI): Remove.
18943 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
18944 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
18945 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
18946 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
18947 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
18948 tabortwci_internal): Remove define_insns.
18949 (tabort<wd>c, tabort<wd>ci): New define_insns.
18950 (tabort): Use gpc_reg_operand.
18951 (tcheck): Remove operand.
18952 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
18953 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
18955 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
18956 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
18957 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
18958 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
18959 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
18960 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
18961 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
18962 (tcheck): Remove builtin argument.
18963 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
18965 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
18966 tabortdc and tabortdci builtins when not in 64-bit mode.
18967 Modify code to handle the loss of the HTM define_expands.
18968 Emit code to copy the CR register to TARGET.
18969 (htm_init_builtins): Modify code to handle the loss of the HTM
18971 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
18972 (RS6000_BTC_64BIT): Likewise.
18973 (RS6000_BTC_CR): New macro.
18974 * doc/extend.texi: Update documentation for htm builtins.
18976 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18978 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
18979 of manually swapping.
18980 (simplify_associative_operation): Likewise.
18981 (simplify_binary_operation): Likewise.
18982 (simplify_plus_minus): Likewise.
18983 (simplify_relational_operation): Likewise.
18984 (simplify_ternary_operation): Likewise.
18986 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
18988 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
18989 (xs_hi_nonmemory_operand): Remove error.
18990 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
18991 general_operand rather than xs_hi_general_operand.
18993 2015-04-27 Richard Biener <rguenther@suse.de>
18995 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
18996 (record_equivalences_from_stmt): Valueize rhs.
18997 (record_equality): Canonicalize x and y order via
18998 tree_swap_operands_p. Do not swap operands for same loop depth.
19000 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
19004 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
19005 Add hint how to use own spec file.
19007 2015-04-27 Jakub Jelinek <jakub@redhat.com>
19009 PR tree-optimization/65875
19010 * tree-vrp.c (update_value_range): If in is_new case setting
19011 old_vr to VR_VARYING, also set new_vr to it. Remove
19012 old_vr->type == VR_VARYING test.
19013 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
19014 SSA_PROP_INTERESTING if update_value_range returned true,
19015 but new range is VR_VARYING.
19017 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
19019 * combine.c (sign_extend_short_imm): New.
19020 (set_nonzero_bits_and_sign_copies): Use above new function for sign
19021 extension of src short immediate.
19022 (reg_nonzero_bits_for_combine): Likewise for tem.
19024 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19026 * stor-layout.c (self_referential_component_ref_p): New predicate.
19027 (copy_self_referential_tree_r): Use it.
19028 (self_referential_size): Punt for simple operations directly involving
19029 self-referential component references.
19030 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
19032 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19034 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
19036 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19038 * vec.h (vec): Make splice arguments const. Update definitions
19041 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
19043 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
19046 2015-04-26 Tom de Vries <tom@codesourcery.com>
19048 PR tree-optimization/65826
19049 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
19051 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
19053 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
19054 (*madd3<mode>): Ditto.
19055 (*msub4<mode>): Ditto.
19056 (*msub3<mode>): Ditto.
19057 (*nmadd4<mode>): Ditto.
19058 (*nmadd3<mode>): Ditto.
19059 (*nmadd4<mode>_fastmath): Ditto.
19060 (*nmadd3<mode>_fastmath): Ditto.
19061 (*nmsub4<mode>): Ditto.
19062 (*nmsub3<mode>): Ditto.
19063 (*nmsub4<mode>_fastmath): Ditto.
19064 (*nmsub3<mode>_fastmath): Ditto.
19066 2015-04-24 Jason Merrill <jason@redhat.com>
19069 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
19070 down when building TYPE_CANONICAL.
19071 (build_pointer_type_for_mode): Likewise.
19073 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
19075 * genrecog.c (validate_pattern): Check matching constraint refers
19076 to a lower numbered operand.
19078 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19081 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
19082 save to independent variables use the Save attribute. This will
19083 allow these options to be modified with the #pragma/attribute
19085 (-mallow-movmisalign): Likewise.
19086 (-mallow-df-permute): Likewise.
19087 (-msched-groups): Likewise.
19088 (-malways-hint): Likewise.
19089 (-malign-branch-targets): Likewise.
19090 (-mvectorize-builtins): Likewise.
19091 (-msave-toc-indirect): Likewise.
19093 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
19094 can be set via the #pragma/attribute target support.
19095 (rs6000_opt_vars): Likewise.
19096 (rs6000_inner_target_options): If VSX was set, also set
19097 -mno-avoid-indexed-addresses.
19099 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19101 * config/arm/iterators.md (shiftable_ops): Rename to...
19102 (SHIFTABLE_OPS): ... This. Update use in comments.
19103 (ior_xor): Rename to...
19104 (IOR_XOR): ... This.
19105 (vqh_ops): Rename to...
19106 (VQH_OPS): ... This.
19107 (vqhs_ops): Rename to...
19108 (VQHS_OPS): ... This.
19109 (rshifts): Rename to...
19110 (RSHIFTS): ... This.
19111 (returns): Rename to...
19112 (RETURNS): ... This.
19113 * config/arm/arm.md: Update uses of the above.
19114 * config/arm/neon.md: Likewise.
19116 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19118 * config.host (case ${host}): Add aarch64*-*-linux case.
19119 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
19120 fields to all the cores.
19121 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
19122 Add MCPU_MTUNE_NATIVE_SPECS.
19123 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
19124 field to all extensions.
19125 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
19126 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
19127 Adjust definition of AARCH64_OPT_EXTENSION.
19128 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
19129 (MCPU_MTUNE_NATIVE_SPECS): Define.
19130 * config/aarch64/driver-aarch64.c: New file.
19131 * config/aarch64/x-arch64: New file.
19132 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
19135 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19136 Wei Mi <wmi@google.com>
19138 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
19139 * config/i386/i386.c (extract_base_offset_in_addr): New function.
19140 (ix86_operands_ok_for_move_multiple): Ditto.
19141 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
19142 (movlpd/movhpd to movupd peephole2): Ditto.
19144 2015-04-24 Marek Polacek <polacek@redhat.com>
19147 * input.h (from_macro_expansion_at): Define.
19150 * doc/invoke.texi: Update description of -Wlogical-op.
19152 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19154 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
19155 ternary operator in fprintf and harmonize spacing.
19157 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19159 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
19160 Mark operand1 commutative.
19162 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19164 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
19165 input operands in memory.
19166 (*vec_concatv2si_sse4_1): Ditto.
19167 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
19168 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
19170 (vec_extract_hi_v32hi): Ditto.
19171 (vec_extract_hi_v64hi): Ditto.
19172 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
19174 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19175 Steven Bosscher <steven@gcc.gnu.org>
19177 PR rtl-optimization/34503
19178 * cprop.c (cprop_reg_p): New.
19179 (hash_scan_set): Use above function to check if register can be
19181 (find_avail_set): Return up to two sets, one whose source is a
19182 register and one whose source is a constant. Sets are returned in an
19183 array passed as parameter rather than as a return value.
19184 (cprop_insn): Use a do while loop rather than a goto. Try each of the
19185 sets returned by find_avail_set, starting with the one whose source is
19186 a constant. Use cprop_reg_p to check if register can be propagated.
19187 (do_local_cprop): Use cprop_reg_p to check if register can be
19189 (implicit_set_cond_p): Likewise.
19191 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19193 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
19194 (sem_function::equals): IGNORED_NODES parameter is now unused;
19195 update call of equals_private.
19196 (sem_function::equals_private): Do not call equals_wpa; skip
19197 gimple body matching if there is no body.
19198 (sem_function::init): Add logic to hash tthunk info.
19199 (sem_function::parse): Also parse thunks.
19200 * ipa-icf.h (equals_private): Update declaration.
19202 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19204 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
19205 asterisk from name so this can be generated directly.
19206 (*altivec_stvx_<mode>_internal): Likewise.
19207 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
19208 that this is never called during or after reload/lra.
19209 (rs6000_frame_related): Remove split_reg
19210 argument and logic that references it.
19211 (emit_frame_save): Remove last parameter from call to
19212 rs6000_frame_related.
19213 (rs6000_emit_prologue): Remove last parameter from eight calls to
19214 rs6000_frame_related. Force generation of stvx instruction for
19215 Altivec register saves. Remove split_reg handling, which is no
19217 (rs6000_emit_epilogue): Force generation of lvx instruction for
19218 Altivec register restores.
19220 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19222 * config/rs6000/rs6000.opt (mcrypto): Change option description to
19223 match category changes in ISA 2.07B.
19225 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19227 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
19229 (cmp_op, cmp_type): New code attributes.
19230 (NEON_VCMP, NEON_VACMP): New int iterators.
19231 (cmp_op_unsp): New int attribute.
19232 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
19233 (neon_vceq<mode>): Delete.
19234 (neon_vc<cmp_op><mode>_insn): New pattern.
19235 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
19236 (neon_vcgeu<mode>): Delete.
19237 (neon_vcle<mode>): Likewise.
19238 (neon_vclt<mode>: Likewise.
19239 (neon_vcage<mode>): Likewise.
19240 (neon_vcagt<mode>): Likewise.
19241 (neon_vca<cmp_op><mode>): New define_expand.
19242 (neon_vca<cmp_op><mode>_insn): New pattern.
19243 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
19245 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19247 * tree.h (attribute_value_equal): Declare.
19248 * tree.c (attribute_value_equal): Export.
19250 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19252 * ipa-icf.c (sem_item::compare_attributes): New function.
19253 (sem_item::compare_referenced_symbol_properties): Compare variable
19255 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
19256 (sem_function::param_used_p): New function.
19257 (sem_function::equals_wpa): Fix attribute comparsion; match
19258 parameter type codes; do not compare paremter flags when
19259 they are not used; compare edge flags; compare indirect calls.
19260 (sem_item::update_hash_by_addr_refs): Hash reference type.
19261 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
19262 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
19263 reference use type.
19264 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
19265 * ipa-icf.h (compare_attributes, param_used_p): Declare.
19267 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19269 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
19271 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
19272 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
19273 (sem_item::compare_referenced_symbol_properties): New.
19274 (sem_item::hash_referenced_symbol_properties): New.
19275 (sem_item::compare_cgraph_references): Rename to ...
19276 (sem_item::compare_symbol_references): ... this one; use
19277 compare_referenced_symbol_properties.
19278 (sem_function::equals_wpa): Do not compare
19279 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
19280 DECL_IS_OPERATOR_NEW; compare pointer sizes.
19281 (sem_item::update_hash_by_addr_refs): Call
19282 hash_referenced_symbol_properties.
19283 (sem_item::update_hash_by_local_refs): Cleanup.
19284 (sem_function::merge): Do not mix up symbol properties.
19285 (sem_variable::equals_wpa): Use compare_symbol_references.
19286 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
19287 (sem_item::hash_referenced_symbol_properties): New.
19288 (sem_item::compare_symbol_references): New.
19289 (sem_item::compare_cgraph_references): Remove.
19291 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
19294 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
19295 Emit size of local.
19297 2015-04-23 Nick Clifton <nickc@redhat.com>
19299 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
19300 ATTRIBUTE_UNUSED to x parameter.
19301 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
19303 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19305 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
19306 TARGET_CRYPTO to TARGET_P8_VECTOR>
19307 (crypto_vpermxor_<mode>): Likewise.
19308 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
19309 (BU_CRYPTO_3A): Likewise.
19310 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
19311 (BU_CRYPTO_OVERLOAD_3A): New #define.
19312 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
19313 (VPMSUMH): Likewise.
19314 (VPMSUMW): Likewise.
19315 (VPMSUMD): Likewise.
19316 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
19317 (VPERMXOR_V4SI): Likewise.
19318 (VPERMXOR_V8HI): Likewise.
19319 (VPERMXOR_V16QI): Likewise.
19320 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
19321 BU_CRYPTO_OVERLOAD_2A.
19322 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
19323 BU_CRYPTO_OVERLOAD_3A.
19324 * config/rs6000/rs6000.opt (mcrypto): Change description of
19327 2015-04-23 Richard Biener <rguenther@suse.de>
19329 * passes.def: Remove copy propagation passes run directly after CCP.
19330 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
19332 (ccp_visit_phi_node): Rework to handle first executable edge
19335 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
19337 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19338 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19339 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19340 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
19341 (thumb_legimitimize_reload_address): Remove.
19342 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
19344 (thumb_legimitimize_reload_address): Remove.
19346 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19348 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
19350 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19352 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
19354 (store_multiple): Likewise.
19356 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19358 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
19359 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
19360 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
19361 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
19362 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
19363 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
19364 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
19365 Specify issue_rate value.
19366 (arm_issue_rate): Look up issue rate from tuning structs. Remove
19367 large switch statement.
19368 (arm_marvell_pj4_tune): New struct.
19369 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
19372 2015-04-23 Richard Biener <rguenther@suse.de>
19374 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
19375 (vect_find_last_store_in_slp_instance): Rename to ...
19376 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
19377 (vect_analyze_slp_cost_1): Use vector_load for constant defs
19378 and vec_construct for external defs when estimating prologue cost.
19379 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
19380 Compute costs here only when vectorizing loops.
19381 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
19382 have been determined.
19383 (vect_schedule_slp_instance): Simplify vectorized code placement
19384 and prepare for in-BB external defs.
19385 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
19386 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
19387 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
19389 (vect_model_load_cost): Likewise.
19390 (vectorizable_store): Instead add it here.
19391 (vectorizable_load): Likewise.
19392 (vect_is_simple_use): Dump def type textually.
19394 2015-04-23 Richard Biener <rguenther@suse.de>
19396 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
19397 * cfgloop.c (verify_loop_structure): Verify the root loop node.
19398 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
19399 instead of get_eh_region_from_lp_number.
19400 * loop-init.c (fix_loop_structure): If we removed a loop, reset
19403 2015-04-23 Anton Blanchard <anton@samba.org>
19405 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
19406 need for -mprofile-kernel to save LR to stack.
19408 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19410 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
19412 (insn_is_swappable_p): Return 1 for a convert from double to
19413 single precision when all of its uses are splats of BE element
19416 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19418 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
19420 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19423 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
19424 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
19425 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
19427 (rs6000_builtin_mask_for_load): Return 0 for targets with
19428 efficient unaligned VSX accesses so that the vectorizer will use
19429 direct unaligned loads.
19430 (rs6000_builtin_support_vector_misalignment): Always return true
19431 for targets with efficient unaligned VSX accesses.
19432 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
19433 stores on targets with efficient unaligned VSX accesses is almost
19434 always the same as the cost of an aligned load or store, so model
19436 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
19437 unaligned vectors if we have efficient unaligned VSX accesses.
19438 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
19439 undocumented option.
19441 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19444 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19446 * config.gcc (LIBC_MUSL): New tm_defines macro.
19447 * config/linux.h (OPTION_MUSL): Define.
19448 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19449 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19450 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19452 * config/linux.opt (mmusl): New option.
19453 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19454 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19456 * configure: Regenerate.
19458 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19460 * config.gcc (LIBC_MUSL): New tm_defines macro.
19461 * config/linux.h (OPTION_MUSL): Define.
19462 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19463 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19464 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19466 * config/linux.opt (mmusl): New option.
19467 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19468 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19470 * configure: Regenerate.
19472 2015-04-22 Yury Gribov <y.gribov@samsung.com>
19474 * doc/invoke.texi (-fsanitize-sections): Update description.
19475 * asan.c (set_sanitized_sections): Parse incoming arg.
19476 (section_sanitized_p): Support wildcards.
19478 2015-04-22 Tom de Vries <tom@codesourcery.com>
19480 PR tree-optimization/65823
19481 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
19482 equality between ap_copy and ap.
19484 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19487 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
19489 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19492 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
19494 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19497 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
19498 remove already contained t-files.
19500 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19502 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
19503 Remove unneeded forward declarations.
19504 (suitable_for_tail_call_opt_p): Commentary typo fix.
19506 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19508 * varasm.c (emit_bss): Remove redundant guard.
19510 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19512 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
19514 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19516 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
19518 2015-04-22 Hale Wang <hale.wang@arm.com>
19519 Terry Guo <terry.guo@arm.com>
19521 PR rtl-optimization/64818
19522 * combine.c (can_combine_p): Don't combine user-specified
19523 register if it is in an asm input.
19525 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
19528 * passes.def (early_optimizations): Add pass_dse.
19530 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19532 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
19533 * reorg.c (redundant_insn): Remove ifdef
19534 INSN_REFERENCES_ARE_DELAYED.
19535 * resource.c (mark_referenced_resources): Likewise.
19537 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19539 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
19540 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
19541 * resource.c (mark_set_resources): Likewise.
19543 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19545 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
19546 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19547 (flow_find_head_matching_sequence): Likewise.
19548 (try_head_merge_bb): Likewise.
19549 * combine.c (can_combine_p): Likewise.
19550 (try_combine): Likewise.
19551 (distribute_notes): Likewise.
19552 * df-problems.c (can_move_insns_across): Likewise.
19553 * final.c (final): Likewise.
19554 * gcse.c (insert_insn_end_basic_block): Likewise.
19555 * ira.c (find_moveable_pseudos): Likewise.
19556 * reorg.c (try_merge_delay_insns): Likewise.
19557 (fill_simple_delay_slots): Likewise.
19558 (fill_slots_from_thread): Likewise.
19559 * sched-deps.c (sched_analyze_2): Likewise.
19561 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19563 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
19564 PIC_OFFSET_TABLE_REGNUM.
19566 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19568 * alias.c (init_alias_target): Remove ifdef
19569 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
19570 * df-scan.c (df_insn_refs_collect): Likewise.
19571 (df_get_regular_block_artificial_uses): Likewise.
19572 (df_get_eh_block_artificial_uses): Likewise.
19573 (df_get_entry_block_def_set): Likewise.
19574 (df_get_exit_block_use_set): Likewise.
19575 * emit-rtl.c (gen_rtx_REG): Likewise.
19576 * ira.c (ira_setup_eliminable_regset): Likewise.
19577 * reginfo.c (init_reg_sets_1): Likewise.
19578 * regrename.c (rename_chains): Likewise.
19579 * reload1.c (reload): Likewise.
19580 (eliminate_regs_in_insn): Likewise.
19581 * resource.c (mark_referenced_resources): Likewise.
19582 (init_resource_info): Likewise.
19584 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19586 * defaults.h (MASK_RETURN_ADDR): New definition.
19587 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19590 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19592 * defaults.h (RETURN_ADDR_OFFSET): New definition.
19593 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19594 RETURN_ADDR_OFFSET.
19595 (expand_builtin_frob_return_addr): Likewise.
19597 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19599 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
19600 (try_redirect_by_replacing_jump): Likewise.
19601 (rtl_tidy_fallthru_edge): Likewise.
19602 * combine.c (insn_a_feeds_b): Likewise.
19603 (find_split_point): Likewise.
19604 (simplify_set): Likewise.
19605 * cprop.c (cprop_jump): Likewise.
19606 * cse.c (cse_extended_basic_block): Likewise.
19607 * df-problems.c (can_move_insns_across): Likewise.
19608 * function.c (emit_use_return_register_into_block): Likewise.
19609 * haifa-sched.c (sched_init): Likewise.
19610 * ira.c (find_moveable_pseudos): Likewise.
19611 * loop-invariant.c (find_invariant_insn): Likewise.
19612 * lra-constraints.c (curr_insn_transform): Likewise.
19613 * postreload.c (reload_combine_recognize_const_pattern):
19615 * reload.c (find_reloads): Likewise.
19616 * reorg.c (delete_scheduled_jump): Likewise.
19617 (steal_delay_list_from_target): Likewise.
19618 (steal_delay_list_from_fallthrough): Likewise.
19619 (redundant_insn): Likewise.
19620 (fill_simple_delay_slots): Likewise.
19621 (fill_slots_from_thread): Likewise.
19622 (delete_computation): Likewise.
19623 * sched-rgn.c (add_branch_dependences): Likewise.
19625 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19627 * genconfig.c (main): Always define HAVE_cc0.
19628 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
19630 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19631 (flow_find_head_matching_sequence): Likewise.
19632 (try_head_merge_bb): Likewise.
19633 * cfgrtl.c (rtl_merge_blocks): Likewise.
19634 (try_redirect_by_replacing_jump): Likewise.
19635 (rtl_tidy_fallthru_edge): Likewise.
19636 * combine.c (do_SUBST_MODE): Likewise.
19637 (insn_a_feeds_b): Likewise.
19638 (combine_instructions): Likewise.
19639 (can_combine_p): Likewise.
19640 (try_combine): Likewise.
19641 (find_split_point): Likewise.
19643 (simplify_set): Likewise.
19644 (distribute_notes): Likewise.
19645 * cprop.c (cprop_jump): Likewise.
19646 * cse.c (cse_extended_basic_block): Likewise.
19647 * df-problems.c (can_move_insns_across): Likewise.
19648 * final.c (final): Likewise.
19649 (final_scan_insn): Likewise.
19650 * function.c (emit_use_return_register_into_block): Likewise.
19651 * gcse.c (insert_insn_end_basic_block): Likewise.
19652 * haifa-sched.c (sched_init): Likewise.
19653 * ira.c (find_moveable_pseudos): Likewise.
19654 * loop-invariant.c (find_invariant_insn): Likewise.
19655 * lra-constraints.c (curr_insn_transform): Likewise.
19656 * optabs.c (prepare_cmp_insn): Likewise.
19657 * postreload.c (reload_combine_recognize_const_pattern):
19659 * reload.c (find_reloads): Likewise.
19660 (find_reloads_address_1): Likewise.
19661 * reorg.c (delete_scheduled_jump): Likewise.
19662 (steal_delay_list_from_target): Likewise.
19663 (steal_delay_list_from_fallthrough): Likewise.
19664 (try_merge_delay_insns): Likewise.
19665 (redundant_insn): Likewise.
19666 (fill_simple_delay_slots): Likewise.
19667 (fill_slots_from_thread): Likewise.
19668 (delete_computation): Likewise.
19669 (relax_delay_slots): Likewise.
19670 * sched-deps.c (sched_analyze_2): Likewise.
19671 * sched-rgn.c (add_branch_dependences): Likewise.
19673 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19675 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
19676 that is trivially ded on non cc0 targets.
19677 (simplify_set): Likewise.
19678 (mark_used_regs_combine): Likewise.
19679 * cse.c (new_basic_block): Likewise.
19680 (fold_rtx): Likewise.
19681 (cse_insn): Likewise.
19682 (cse_extended_basic_block): Likewise.
19683 (set_live_p): Likewise.
19684 * rtlanal.c (canonicalize_condition): Likewise.
19685 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19687 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19689 * conditions.h: Define macros even if HAVE_cc0 is undefined.
19690 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
19691 * final.c: Likewise.
19692 * jump.c: Likewise.
19693 * recog.c: Likewise.
19694 * recog.h: Declare functions even when HAVE_cc0 is undefined.
19695 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
19697 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19699 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
19700 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
19701 * builtins.c (expand_builtin): Remove check if
19702 EH_RETURN_DATA_REGNO is defined.
19703 * df-scan.c (df_bb_refs_collect): Likewise.
19704 (df_get_exit_block_use_set): Likewise.
19705 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19706 * ira-lives.c (process_bb_node_lives): Likewise.
19707 * lra-lives.c (process_bb_lives): Likewise.
19709 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19711 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
19712 FIRST_PSEUDO_REG): New.
19713 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
19714 (ARG_POINTER_REGNUM): Define to ARGP_REG.
19715 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
19716 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
19717 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
19718 (FIRST_INT_REG): New.
19719 (LAST_INT_REG): New.
19720 (FIRST_*_REG): Define using *_REG.
19721 (LAST_*_REG): Ditto.
19722 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
19723 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
19724 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
19726 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19728 * expmed.c: (synth_mult): Only assume overlapping
19729 shift with previous steps in alg_sub_t_m2 case.
19731 2015-04-21 Richard Biener <rguenther@suse.de>
19733 PR tree-optimization/65650
19734 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
19735 transitions involving copies.
19736 (set_lattice_value): Adjust for copy lattice state.
19737 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
19738 if that doesn't dominate the merge point.
19739 (bit_value_unop): Adjust what we treat as varying mask.
19740 (bit_value_binop): Likewise.
19741 (bit_value_assume_aligned): Likewise.
19742 (evaluate_stmt): When we simplified to a SSA name record a copy
19743 instead of dropping to varying.
19744 (visit_assignment): Simplify.
19746 * gimple-match.h (gimple_simplify): Add another callback.
19747 * gimple-fold.c (fold_stmt_1): Adjust caller.
19748 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
19749 for the 2nd callback.
19750 * gimple-match-head.c (gimple_simplify): Add a callback that is
19751 used to valueize the stmt operands and use it that way.
19753 2015-04-21 Richard Biener <rguenther@suse.de>
19755 PR tree-optimization/65788
19756 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
19758 2015-04-21 Richard Biener <rguenther@suse.de>
19760 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
19761 vec_construct cost by vec_stmt_cost.
19763 2015-04-21 Richard Biener <rguenther@suse.de>
19765 * cfghooks.h (create_basic_block): Replace with two overloads
19766 for RTL and GIMPLE.
19767 (split_block): Likewise.
19768 * cfghooks.c (split_block): Rename to ...
19769 (split_block_1): ... this.
19770 (split_block): Add two type-safe overloads for RTL and GIMPLE.
19771 (split_block_after_labels): Call split_block_1.
19772 (create_basic_block): Rename to ...
19773 (create_basic_block_1): ... this.
19774 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
19775 (create_empty_bb): Call create_basic_block_1.
19776 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
19777 split_block_after_labels.
19778 * omp-low.c (expand_parallel_call): Likewise.
19779 (expand_omp_target): Likewise.
19780 (simd_clone_adjust): Likewise.
19781 * tree-chkp.c (chkp_get_entry_block): Likewise.
19782 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
19783 create_basic_block overload.
19784 (cgraph_node::expand_thunk): Likewise.
19785 * tree-cfg.c (make_blocks): Likewise.
19786 (handle_abnormal_edges): Likewise.
19787 * tree-inline.c (copy_bb): Likewise.
19789 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19791 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
19793 (*xor_one_cmplsidi3_ze): Likewise.
19795 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
19797 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
19798 use df_remove_problem rather than manually removing problems, leaving
19799 holes in df->problems_in_order[].
19801 2015-04-21 Tom de Vries <tom@codesourcery.com>
19803 PR tree-optimization/65802
19804 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
19806 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19808 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
19810 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
19811 at '.'. Assert that there's enough space for everything.
19813 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19815 PR tree-optimization/64950
19817 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
19820 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
19823 2015-04-20 Shiva Chen <shiva0217@gmail.com>
19825 PR rtl-optimization/64916
19826 * cfgcleanup.c (values_equal_p): New function.
19827 (can_replace_by): Use it.
19829 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
19832 * doc/invoke.texi ([-Wnarrowing]): Update.
19834 2015-04-20 Jeff Law <law@redhat.com>
19836 PR tree-optimization/65658
19837 * tree-ssa-threadupdate.c (redirection_block_p): Remove
19838 redundant test for GIMPLE_ASSIGN in last change.
19840 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
19842 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
19843 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
19844 (legitimize_tls_address): Ditto.
19845 (ix86_expand_move): Ditto.
19846 (ix86_expand_binary_operator): Remove reload_in_progress checks.
19847 (ix86_expand_unary_operator): Ditto.
19848 * config/i386/predicates.md (index_register_operand): Ditto.
19850 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
19852 * reorg.c (try_merge_delay_insns): Improve correctness checking
19853 for targets with multiple delay slots.
19855 2015-04-20 Jeff Law <law@redhat.com>
19857 PR tree-optimization/65658
19858 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
19861 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
19863 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
19864 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
19867 2015-04-20 Jakub Jelinek <jakub@redhat.com>
19870 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
19872 2015-04-20 Richard Biener <rguenther@suse.de>
19874 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
19875 * gimple-fold.c (gimple_build_valueize): New function.
19876 (gimple_build): Always use gimple_build_valueize as valueize hook.
19878 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
19881 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
19882 and overwrite variable parts if <= 1/2 the elements are variable.
19884 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
19886 PR rtl-optimization/65805
19887 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
19888 Don't use difference of offset and previous offset if
19889 update_sp_offset is non-zero.
19890 (eliminate_regs_in_insn): Ditto.
19891 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
19892 lra_eliminate_regs_1 call.
19893 * lra-constraints.c (get_equiv_with_elimination): Ditto.
19895 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
19897 * hash-table.h: Remove version of hash_table that stored value_type *.
19898 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
19899 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
19900 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
19901 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
19902 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
19903 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
19904 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19905 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
19906 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
19907 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
19908 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
19909 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
19910 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
19911 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19912 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
19913 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
19915 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19916 Jakub Jelinek <jakub@redhat.com>
19919 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
19920 subsequent SH_NONE operand does not overwrite an existing *special
19922 (adjust_extract): Handle case where a vec_extract operation is
19923 wrapped in a PARALLEL.
19925 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
19928 * config/i386/i386.c (ix86_binds_local_p): Define only if
19929 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
19931 2015-04-17 Jeff Law <law@redhat.com>
19933 PR tree-optimization/47679
19934 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
19935 * tree-ssa-scopedtables.c: New file.
19936 * tree-ssa-scopedtables.h: New file.
19937 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
19938 (const_and_copies): Change name/type.
19939 (record_const_or_copy): Move into tree-ssa-scopedtables.c
19940 (record_const_or_copy_1): Similarly.
19941 (restore_vars_to_original_value): Similarly.
19942 (pass_dominator::execute): Create and destroy const_and_copies table.
19943 (thread_across_edge): Update passing of const_and_copies.
19944 (record_temporary_equivalence): Use method calls rather than
19945 manipulating const_and_copies directly.
19946 (record_equality, cprop_into_successor_phis): Similarly.
19947 (dom_opt_dom_walker::before_dom_children): Similarly.
19948 (dom_opt_dom_walker::after_dom_children): Similarly.
19949 (eliminate_redundant_computations): Similarly.
19950 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
19951 (record_temporary_equivalence): Likewise.
19952 (invalidate_equivalences): Likewise.
19953 (record_temporary_equivalences_from_phis): Update due to type
19954 change of const_and_copies. Use method calls rather than
19955 manipulating the stack directly.
19956 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
19957 (thread_through_normal_block, thread_across_edge): Likewise.
19958 (thread_across_edge): Likewise.
19959 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
19960 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
19962 (identify_jump_threads): Update due to type change of equiv_stack.
19963 (finalize_jump_threads): Delete the equiv_stack when complete.
19965 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
19967 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19968 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
19969 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
19971 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
19974 * config.gcc: Exit with a comment when we do not have a major version
19975 number for the FreeBSD target.
19977 2015-04-17 Jakub Jelinek <jakub@redhat.com>
19980 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
19981 maybe_allows_mem bitfields.
19982 (maybe_allows_none_start, maybe_allows_none_end,
19983 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
19984 maybe_allows_mem_end): New variables.
19985 (compute_maybe_allows): New function.
19986 (add_constraint): Use it to initialize maybe_allows_reg and
19987 maybe_allows_mem fields.
19988 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
19989 is_address constraints such that those that allow neither mem nor
19990 reg come first, then those that only allow reg but not mem, then
19991 those that only allow mem but not reg, then the rest.
19992 (write_allows_reg_mem_function): New function.
19993 (write_tm_preds_h): Call it.
19994 * stmt.c (parse_output_constraint, parse_input_constraint): Use
19995 the generated insn_extra_constraint_allows_reg_mem function
19996 instead of always setting *allows_reg = true; *allows_mem = true;
19997 for unknown extra constraints.
19999 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20002 * output.h (default_binds_local_p_3): New.
20003 * varasm.c (default_binds_local_p_3): Make it public. Take an
20004 argument to indicate if common symbol may be local. If common
20005 symbol may be local, treat non-external variable as defined
20007 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
20008 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
20009 * config/i386/i386.c (ix86_binds_local_p): New.
20010 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
20011 ix86_binds_local_p.
20013 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20016 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
20017 trying mem_loc_descriptor on XEXP (rtl, 0).
20019 2015-04-17 Martin Liska <mliska@suse.cz>
20021 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20022 Release symbol_compare_collection.
20023 * ipa-reference.c: Add TODO that a vector should be released.
20025 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
20028 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
20029 to new AVR-LibC file layout (bug #44574).
20030 (*avrlibc_devicelib): Same.
20031 * config/avr/avr-mcus.def: Adjust comments.
20032 * config/avr/avr.opt (nodevicelib): Adjust help.
20034 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
20036 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
20038 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
20041 * gimplify.c (gimplify_init_constructor): Always emit a
20042 side-effecting constructor.
20044 2015-04-17 Tom de Vries <tom@codesourcery.com>
20046 PR tree-optimization/64950
20047 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
20048 in cfun->curr_properties.
20049 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
20050 if we generate an IFN_VA_ARG.
20051 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
20052 function if PROP_gimple_lva is not set in src function.
20054 2015-04-17 Tom de Vries <tom@codesourcery.com>
20055 Michael Matz <matz@suse.de>
20057 PR tree-optimization/64950
20058 * gimple-iterator.c (update_modified_stmts): Remove static.
20059 * gimple-iterator.h (update_modified_stmts): Declare.
20060 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
20061 (gimplify_va_arg_internal): New function.
20062 (gimplify_va_arg_expr): Use IFN_VA_ARG.
20063 * gimplify.h (gimplify_va_arg_internal): Declare.
20064 * internal-fn.c (expand_VA_ARG): New unreachable function.
20065 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
20066 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
20067 (expand_ifn_va_arg): New function.
20068 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
20069 (pass_stdarg::execute): Call expand_ifn_va_arg.
20070 (pass_data_lower_vaarg): New pass_data.
20071 (pass_lower_vaarg): New gimple_opt_pass.
20072 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
20073 (make_pass_lower_vaarg): New function.
20074 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
20075 properties_required field.
20076 * passes.def (all_passes): Add pass_lower_vaarg.
20077 * tree-pass.h (PROP_gimple_lva): Add define.
20078 (make_pass_lower_vaarg): Declare.
20080 2015-04-17 Tom de Vries <tom@codesourcery.com>
20082 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
20083 * calls.c (call_expr_flags): Same.
20085 2015-04-17 Tom de Vries <tom@codesourcery.com>
20087 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
20088 (pass_stdarg::execute): ... here.
20090 2015-04-17 Tom de Vries <tom@codesourcery.com>
20091 Michael Matz <matz@suse.de>
20093 * tree-cfg.c (make_blocks_1): Factor out of ...
20094 (make_blocks): ... here.
20095 (make_edges_bb): Factor out of ...
20096 (make_edges): ... here.
20097 (gimple_find_sub_bbs): New function.
20098 * tree-cfg.h (gimple_find_sub_bbs): Declare.
20100 2015-04-17 Tom de Vries <tom@codesourcery.com>
20102 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
20104 2015-04-17 Yury Gribov <y.gribov@samsung.com>
20106 * asan.c (set_sanitized_sections): New function.
20107 (section_sanitized_p): Ditto.
20108 (asan_protect_global): Optionally sanitize user-defined
20110 * asan.h (set_sanitized_sections): Declare new function.
20111 * common.opt (fsanitize-sections): New option.
20112 * doc/invoke.texi (-fsanitize-sections): Document new option.
20113 * opts-global.c (handle_common_deferred_options): Handle new
20116 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20119 * dwarf2out.c (loc_list_from_tree): Return NULL
20120 for DEBUG_EXPR_DECL.
20122 2015-04-17 Christian Bruel <christian.bruel@st.com>
20124 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
20127 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20129 * ira-color.c (setup_left_conflict_sizes_p): Do not process
20130 node itself when computing left conflict subnode size.
20132 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20134 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
20135 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
20136 *fop_<mode>_1_sse using enabled attribute. Use
20137 register_mixssei387nonimm_operand operand 1 predicate. Change
20138 alternative 3 constraints from "x" to "v".
20140 2015-04-16 Richard Biener <rguenther@suse.de>
20142 PR tree-optimization/65774
20143 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
20144 bit-value tracking on.
20146 2015-04-16 Richard Biener <rguenther@suse.de>
20148 PR tree-optimization/64277
20149 * tree-vrp.c (check_array_ref): Fix anti-range handling,
20150 simplify upper bound handling.
20151 (search_for_addr_array): Simplify.
20152 (check_array_bounds): Handle ADDR_EXPRs here.
20153 (check_all_array_refs): Simplify.
20155 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20157 * config/i386/i386.c (print_reg): Rewrite function.
20159 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20161 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
20162 Invert the condition.
20164 2015-04-16 Renlin Li <renlin.li@arm.com>
20166 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
20167 simplifications for UNSIGNED_FLOAT.
20169 2015-04-16 Nick Clifton <nickc@redhat.com>
20171 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
20173 (enum rl78_cpu_type): New.
20174 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
20175 (umulhi3_shift_virt): Remove m constraint from operand 1.
20176 (umulqihi3_virt): Likewise.
20177 * config/rl78/rl78.c (rl78_option_override): Add code to process
20178 -mcpu and -mmul options.
20179 (rl78_alloc_physical_registers): Add code to handle divhi and
20180 divsi valloc attributes.
20181 (set_origin): Likewise.
20182 * config/rl78/rl78.h (RL78_MUL_G14): Define.
20183 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
20184 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
20186 (ASM_SPEC): Pass -mcpu on to assembler.
20187 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
20188 (mulqi3_rl78): Likewise.
20189 (mulhi3_g13): Likewise.
20190 (mulhi3): Generate the G13 or G14 versions of the insn directly.
20191 (mulsi3): Likewise.
20192 (mulhi3_g14): Add clobbers of AX and BC.
20193 (mulsi3_g14): Likewise.
20194 (mulsi3_g13): Likewise.
20195 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
20196 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
20197 * config/rl78/rl78.opt (mmul): Initialise value to
20199 (mcpu): New option.
20200 (m13, m14, mrl78): New option aliases.
20201 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
20202 (MULTILIB_DIRNAMES): Add g13 and g14.
20203 * doc/invoke.texi: Document -mcpu and -mmul options.
20205 2015-04-16 Richard Biener <rguenther@suse.de>
20207 * tree-ssa-ccp.c (likely_value): See if we have operands that
20208 are marked as never simulate again and return CONSTANT in this
20210 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
20211 not have any operands that will be simulated again as
20212 not being simulated again.
20214 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
20216 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
20217 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
20218 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
20220 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
20222 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
20223 *float<SWI48:mode><MODEF:mode>2_sse.
20224 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
20226 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
20229 2015-04-15 Tom de Vries <tom@codesourcery.com>
20232 * function.c (push_dummy_function): New function.
20233 (init_dummy_function_start): Use push_dummy_function.
20234 (pop_dummy_function): New function. Factored out of ...
20235 (expand_dummy_function_end): ... here.
20236 * function.h (push_dummy_function, pop_dummy_function): Declare.
20237 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
20238 pop_dummy_function.
20239 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
20241 2015-04-15 Jeff Law <law@redhat.com>
20243 PR tree-optimization/47679
20244 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
20245 need for forward declaration in upcoming changes.
20246 (record_conditions, record_edge_info): Likewise.
20248 PR rtl-optimization/42522
20249 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
20250 SIGN_EXTRACT as a whole object rather than simplifying
20253 2015-04-15 Jakub Jelinek <jakub@redhat.com>
20256 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
20257 and GIMPLE_PREDICT use break instead of return true. For
20258 GIMPLE_EH_DISPATCH, compare dispatch region.
20260 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
20262 * doc/extend.texi (__sync Builtins): Simplify some text. Update
20263 details about the implementation. Make clear preference for
20264 __atomic builtins. Reduce possibility of future change.
20266 2015-04-15 Nick Clifton <nickc@redhat.com>
20268 * config/rx/rx.opt (mallow-string-insns): New option.
20269 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
20270 builtin if string instructions are denied.
20271 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
20272 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
20274 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
20275 * config/rx/rx.md (movstr): Enable pattern only if string
20276 instructions are allowed.
20277 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
20278 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
20279 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
20280 (MULTILIB_DIRNAMES): Add no-strings.
20281 * doc/invoke.texi: Document -mno-allow-string-insns.
20283 2015-04-15 Alan Modra <amodra@gmail.com>
20287 PR middle-end/36043
20288 * calls.c (load_register_parameters): Don't load past end of
20289 mem unless suitably aligned.
20291 2015-04-15 Nick Clifton <nickc@redhat.com>
20293 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
20294 decrement instruction as being frame related.
20295 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
20297 If zero extending a function address enclose the operation in
20299 (rl78_preferred_reload_class): New function.
20300 (TARGET_PREFERRED_RELOAD_CLASS): Define.
20301 * config/rl78/rl78.md: Remove useless constraints in expanders.
20302 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
20303 (mulhi3_rl78): Likewise.
20304 (mulhi3_g13): Likewise.
20305 (mulsi3_rl78): Likewise.
20306 (es_addr): Move to before the multiply patterns.
20308 2015-04-15 Alan Modra <amodra@gmail.com>
20310 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
20311 and sequence_stack. Add seq.
20312 (seq_stack): Delete.
20313 * function.c (prepare_function_start): Don't access x_last_insn.
20314 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
20315 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
20316 * emit_rtl.c (start_sequence, push_topmost_sequence,
20317 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
20318 sequence accessors.
20319 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
20320 remove_insn): Likewise. Simplify.
20321 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
20322 and pop_topmost_sequence.
20323 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
20325 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
20327 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
20330 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
20333 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20335 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
20336 (LEGACY_INT_REGNO_P): Ditto.
20337 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
20338 (ANY_MASK_REG_P): Remove.
20339 (BND_REG_P): Rename from ANY_BND_REG_P.
20340 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
20341 legacy integer registers. Do not handle MMX_REG_P in a special way.
20342 Merge 64byte and 32byte SSE handling.
20344 2015-04-14 Nick Clifton <nickc@redhat.com>
20346 * expr.c (expand_assignment): Force an address offset computation
20347 into a register before changing its mode.
20348 (expand_expr_real_1): Likewise.
20350 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
20352 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
20353 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
20354 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
20355 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
20356 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
20357 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
20358 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
20359 and __aarch64_vget_lane_any.
20361 2015-04-14 Jakub Jelinek <jakub@redhat.com>
20363 PR rtl-optimization/65761
20364 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
20365 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
20367 2015-04-14 Richard Biener <rguenther@suse.de>
20369 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
20370 (graphite_can_represent_scev): Use POINTER_TYPE_P.
20372 2015-04-14 Richard Biener <rguenther@suse.de>
20374 PR tree-optimization/65758
20375 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
20377 (ccp_lattice_meet): Likewise.
20378 (bit_value_unop): Likewise.
20379 (bit_value_binop): Likewise.
20380 (bit_value_assume_aligned): Likewise.
20382 2015-04-14 Christian Bruel <christian.bruel@st.com>
20384 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
20387 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
20389 PR tree-optimization/63387
20390 * match.pd ((x unord x) | (y unord y) -> (x unord y),
20391 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
20393 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20395 * config/i386/predicates.md (any_QIreg_operand): Rename from
20396 q_regs_operand. Do not process subregs.
20397 (QIreg_operand): Use QI_REGNO_P predicate.
20398 (ext_QIreg_operand): Ditto.
20399 (ext_register_operand): Ditto.
20400 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
20401 (AND splitters): Ditto.
20402 (AND with -65536 splitter): Add SWI48 mode for operand 0.
20403 (AND with -256 splitter): Use any_QIreg_operand predicate and
20404 SWI248 mode for operand 0.
20405 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
20406 mode for operand 0.
20407 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
20409 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
20411 * doc/plugins.texi: Rewrite first introductory paragraph.
20413 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20415 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
20416 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
20418 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20420 * ipa-profie.c (ipa_profile): Check number of parameters
20421 and possible polymorphic call targets before
20424 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
20426 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
20427 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
20429 2015-04-13 Richard Biener <rguenther@suse.de>
20431 PR tree-optimization/65204
20432 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
20433 takens for bit-CCP.
20435 2015-04-13 Richard Biener <rguenther@suse.de>
20438 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
20439 and cond_not_taken_branch_cost to 4 and 2.
20440 (bdver2_cost): Likewise.
20441 (bdver3_cost): Likewise.
20442 (bdver4_cost): Likewise.
20444 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20446 * hash-table.h (hash_table constructor): Add mem stats.
20447 (alloc_entries): Likewise.
20449 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20451 * ipa-cp.c (ipcp_driver): Relase prev_edge.
20452 * passes.c (execute_one_pass): Only add transform if pass has one.
20454 2015-04-12 Joseph Myers <joseph@codesourcery.com>
20456 * config/i386/i386.c (ix86_option_override_internal): Don't set
20457 -fprefetch-loop-arrays if optimizing for size.
20459 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20460 Gerald Pfeifer <gerald@pfeifer.com>
20462 * doc/contrib.texi (Contributors): Add Martin Jambor and
20465 2015-04-12 Jakub Jelinek <jakub@redhat.com>
20467 * BASE-VER: Set to 6.0.0.
20469 PR tree-optimization/65747
20470 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
20471 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
20473 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20475 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
20476 sentence. Improve grammar.
20478 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20480 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
20482 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20485 * ipa-inline-transform.c (speculation_removed): Remove static var.
20486 (check_speculations): New function.
20487 (clone_inlined_nodes): Do not check spculations.
20488 (inline_call): Call check_speculations.
20489 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
20490 consider non-invariants.
20492 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20493 Martin Liska <mliska@suse.cz>
20496 * ipa-icf.c (sem_item::compare_cgraph_references): function and
20497 variable can not match.
20498 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
20499 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
20501 2015-04-11 Jakub Jelinek <jakub@redhat.com>
20503 PR tree-optimization/65735
20504 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
20505 Remove visited_phis argument, add visited_bbs, avoid recursing into the
20506 same bb rather than just into the same phi node.
20507 (thread_through_normal_block): Adjust caller.
20509 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20511 * doc/contrib.texi (Contributors): Add Ira Rosen.
20513 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
20515 * gcov.c (find_source): Fix miswording in error message.
20516 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
20517 (ix86_expand_sse_comi_round): Fix typo in error message.
20519 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20521 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
20523 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
20525 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
20527 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20530 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
20531 Print bad_spills_num and insn_pseudos_num.
20533 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20536 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
20537 when creating +1 values for SImode.
20539 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20542 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
20545 2015-04-10 Jakub Jelinek <jakub@redhat.com>
20546 Iain Sandoe <iain@codesourcery.com>
20549 * configure: Regenerate.
20551 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20554 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
20556 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
20558 * doc/contrib.texi (Contributors): Add John Marino.
20560 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20562 PR tree-optimization/65709
20563 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
20564 TREE_TYPE (TREE_TYPE (t)).
20566 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
20569 * lra-int.h (lra_bad_spill_regno_start): New.
20570 * lra.c (lra_bad_spill_regno_start): New.
20571 (lra): Set up lra_bad_spill_regno_start. Set up
20572 lra_constraint_new_regno_start unconditionally.
20573 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
20576 2015-04-09 Marek Polacek <polacek@redhat.com>
20577 Jakub Jelinek <jakub@redhat.com>
20579 PR middle-end/65554
20580 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
20581 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
20584 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
20586 PR rtl-optimization/65693
20587 * combine.c (is_parallel_of_n_reg_sets): Move outside of
20590 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
20593 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
20594 device specs file if "device-specs%s" didn't resolve to a path.
20596 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20599 * config/i386/i386.c (fixup_modeless_constant): New.
20600 (ix86_expand_args_builtin): Fixup modeless constant operand.
20601 (ix86_expand_round_builtin): Ditto.
20602 (ix86_expand_special_args_builtin): Ditto.
20603 (ix86_expand_builtin): Ditto.
20605 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20608 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
20609 any pow2 integer in between 2 and 0x80000000U inclusive.
20611 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
20613 PR rtl-optimization/65693
20614 * combine.c (is_parallel_of_n_reg_sets): Change first argument
20615 from an rtx_insn * to an rtx.
20616 (try_combine): Adjust both callers. Use it once more.
20618 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20620 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
20621 (chkp_make_static_const_bounds): Search existing
20622 symbol by assembler name. Use make_decl_one_only.
20623 (chkp_get_zero_bounds_var): Remove node search which
20624 is now performed in chkp_make_static_const_bounds.
20625 (chkp_get_none_bounds_var): Likewise.
20627 2015-04-08 Michael Witten <mfwitten@gmail.com>
20629 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
20632 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20634 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
20636 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20638 * doc/extend.texi (__sync Builtins): Fix grammar.
20640 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20642 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
20644 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20646 * varasm.c (emit_local): Move definition of align.
20648 2015-04-08 Julian Brown <julian@codesourcery.com>
20650 * config/nvptx/mkoffload.c (process): Support variable mapping.
20652 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
20654 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
20656 (alpha_write_one_linkage): Correct typo.
20658 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20660 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
20662 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20664 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
20666 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20668 * tree-chkp.h (chkp_insert_retbnd_call): New.
20669 * tree-chkp.c (chkp_insert_retbnd_call): New.
20670 * ipa-split.c (insert_bndret_call_after): Remove.
20671 (split_function): Use chkp_insert_retbnd_call.
20672 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
20673 bounds for instrumented functions.
20675 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
20678 * calls.c (initialize_argument_information): When producing tail
20679 call also turn SSA_NAMES passed by references to original PARM_DECLs
20681 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
20684 * lra-remat.c (do_remat): Process input and non-input insn
20685 registers separately.
20687 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20690 * valtrack.c (debug_lowpart_subreg): New function.
20691 (dead_debug_insert_temp): Use it.
20693 PR middle-end/65680
20694 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
20695 into signed HOST_WIDE_INT the same as negative bit_offset.
20697 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
20699 * ipa-comdats.c (ipa_comdats): Visit all thunks
20700 to set proper comdat group.
20702 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20705 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
20706 on constants for NEON VSTRUCT modes.
20708 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20709 Iain Sandoe <iain@codesourcery.com>
20712 * configure: Regenerate.
20714 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20717 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
20718 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
20719 that LFD is used to load double constants instead of LFS. Add
20720 defaults for all costs structures. Add comments for missing
20721 initialization fields.
20722 (size32_cost): Likewise.
20723 (size64_cost): Likewise.
20724 (rs64a_cost): Likewise.
20725 (mpccore_cost): Likewise.
20726 (ppc403_cost): Likewise.
20727 (ppc405_cost): Likewise.
20728 (ppc440_cost): Likewise.
20729 (ppc476_cost): Likewise.
20730 (ppc601_cost): Likewise.
20731 (ppc603_cost): Likewise.
20732 (ppc604_cost): Likewise.
20733 (ppc604e_cost): Likewise.
20734 (ppc620_cost): Likewise.
20735 (ppc630_cost): Likewise.
20736 (ppccell_cost): Likewise.
20737 (ppc750_cost): Likewise.
20738 (ppc7450_cost): Likewise.
20739 (ppc8540_cost): Likewise.
20740 (ppce300c2c3_cost): Likewise.
20741 (ppce500mc_cost): Likewise.
20742 (ppce500mc64_cost): Likewise.
20743 (ppce5500_cost): Likewise.
20744 (ppce6500_cost): Likewise.
20745 (titan_cost): Likewise.
20746 (power4_cost): Likewise.
20747 (power6_cost): Likewise.
20748 (power7_cost): Likewise.
20749 (power8_cost): Likewise.
20750 (ppca2_cost): Likewise.
20751 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
20753 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
20754 instead of XXLOR to copy SFmode to clear out dirty bits created
20755 when SFmode denormals are generated.
20756 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
20757 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
20759 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20761 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
20762 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
20763 * config/aarch64/aarch64-tune.md: Regenerate.
20765 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20767 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
20768 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
20769 * config/arm/arm-cores.def (exynos-m1): New core.
20770 * config/arm/arm-tune.md: Regenerate.
20771 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
20772 * config/arm/bpabi.h: Likewise.
20774 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
20776 * ipa-cp (set_single_call_flag): Remove too
20777 restrictive assert.
20779 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
20781 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
20782 GOMP_offload_unregister from the destructor.
20784 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
20786 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
20787 flags for instrumentation thunk.
20788 (chkp_produce_thunks): Likewise.
20790 2015-04-05 Martin Liska <mliska@suse.cz>
20793 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
20794 has computed data structure.
20795 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20797 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
20799 * invoke.texi (inline-unit-growth): Increase growth to 20%
20800 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
20802 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
20805 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
20807 (lra_rematerialization_iter): New.
20808 * lra.c (lra): Initialize lra_rematerialization_iter.
20809 Stop updating lra_constraint_new_regno_start after switching of
20810 inheritance and rematerialization.
20811 * lra-remat.c (lra_rematerialization_iter): New.
20812 (lra_remat): Add printing pass iteration. Do rematerialization
20813 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
20815 2015-04-04 Richard Biener <rguenther@suse.de>
20817 PR tree-optimization/64909
20818 PR tree-optimization/65660
20819 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
20820 to take a cost vector for scalar iteration cost.
20821 (vect_get_single_scalar_iteration_cost): Likewise.
20822 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
20823 Compute the scalar iteration cost into a cost vector.
20824 (vect_get_known_peeling_cost): Use the scalar cost vector to
20825 account for the cost of the peeled iterations.
20826 (vect_estimate_min_profitable_iters): Likewise.
20827 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20830 2015-04-04 Alan Modra <amodra@gmail.com>
20834 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
20835 0.0 constant unless TARGET_VSX.
20836 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
20839 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20842 * ipa-inline-transform.c (inline_call): Skip sanity check to work
20845 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20848 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
20849 speculative indirect edges to avoid ordering issue.
20851 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20854 * ipa-inline.c (edge_badness): Add combined size to the denominator.
20856 2015-04-03 Jakub Jelinek <jakub@redhat.com>
20858 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
20859 TYPE_ARTIFICIAL on the .omp_data* types.
20861 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20863 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
20864 instrumentation thunks.
20866 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20868 * config/i386/i386.c (ix86_expand_call): Avoid nested
20869 PARALLEL in returned call value.
20871 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20873 * lto-cgraph.c (input_cgraph_1): Always link instrumented
20874 assembler name with original one.
20876 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20878 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
20880 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20882 Revert parts of r216820.
20883 * config/i386/i386.md (movqi_internal): Correct type calculation
20884 for alternatives 3 and 5.
20886 2015-04-02 Jakub Jelinek <jakub@redhat.com>
20888 PR preprocessor/61977
20889 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
20890 predefine __vector/__bool/__pixel macros nor context sensitive
20891 macros for CLK_ASM.
20892 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
20894 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
20896 * config/pa/pa.c (pa_output_move_double): Directly handle register
20897 indexed memory operand. Simplify handling of scaled register indexed
20900 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20903 * config/i386/linux-common.h (MPX_SPEC): New.
20904 (CHKP_SPEC): Add MPX_SPEC.
20905 * doc/invoke.texi (-fcheck-pointer-boudns): Document
20906 possible issues with '-z bndplt' support in linker.
20908 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20910 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
20911 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
20912 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
20913 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
20914 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
20916 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
20918 * config/i386/sync.md (UNSPEC_MOVA): Remove.
20919 (atomic_load<mode>): Change operand 0 predicate to
20920 nonimmediate_operand and fix up the destination when needed.
20922 (atomic_loaddi_fpu): Use UNSPEC_LDA.
20923 (atomic_store<mode>): Change operand 1 predicate to
20924 nonimmendate_operand and move the source to register when needed.
20926 (atomic_store<mode>_1): Use UNSPEC_STA.
20927 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
20928 Fix moves from memory operand. Use UNSPEC_STA.
20930 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
20932 * expmed.c (strict_volatile_bitfield_p): Check that the access will
20933 not cross a MODESIZE boundary.
20934 (store_bit_field, extract_bit_field): Added assertions in the
20935 strict volatile bitfields code path.
20937 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
20940 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
20941 Increase args array size by one to avoid buffer overflow.
20943 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
20945 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
20947 * ipa-inline.c (edge_badness): Add wrapper penalty.
20948 (sum_callers): Move up.
20949 (inline_small_functions): Set single_caller.
20950 * ipa-inline.h (inline_summary): Add single_caller.
20951 * ipa-split.c (split_function): Set split_part.
20952 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
20953 * cgraph.h (cgraph_node): Add split_part.
20955 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
20958 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
20959 Do not split operands 0 and operands 2 to halfmode.
20960 (atomic_compare_and_swap<mode>): Update for
20961 atomic_compare_and_swap<dwi>_doubleword changes.
20963 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
20965 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
20966 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
20967 no caching is done.
20969 2015-03-31 Martin Liska <mliska@suse.cz>
20972 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
20973 has already filled up function summary.
20974 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20976 2015-03-31 Richard Biener <rguenther@suse.de>
20978 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
20981 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
20983 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
20985 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
20986 (s390_asm_output_function_label): Adapt to new signature of
20987 s390_function_num_hotpatch_hw
20988 Optimise the code generating assembler output.
20989 Add comments to assembler file.
20991 2015-03-31 Richard Biener <rguenther@suse.de>
20993 PR middle-end/65626
20994 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
20995 of the noreturn call so it is last and cleanup_control_flow_bb
20996 can do the CFG part.
20998 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
21001 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
21002 same_comdat_group for external symbols.
21003 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
21004 infinite same_comdat_group traversal loop.
21006 2015-03-31 Jakub Jelinek <jakub@redhat.com>
21009 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
21010 automatically to $headers.
21012 2015-03-30 Jakub Jelinek <jakub@redhat.com>
21015 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
21016 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
21018 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
21020 * ipa-prop.c (param_type_may_change_p): Likewise.
21021 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
21022 (remove_unused_scope_block_p): Add in_ctor_dtor_block
21023 argument. Before inlining, preserve
21024 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
21025 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
21027 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
21029 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21032 * ipa-inline.c (edge_badness): Base denominator on callee's
21035 2015-03-27 Martin Jambor <mjambor@suse.cz>
21038 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
21039 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
21040 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
21041 node_calling_single_call.
21042 * ipa-cp.c (count_callers): New function.
21043 (set_single_call_flag): Likewise.
21044 (initialize_node_lattices): Count callers and set single_flag_call if
21046 (incorporate_penalties): New function.
21047 (good_cloning_opportunity_p): Use it, dump new flags.
21048 (propagate_constants_topo): Set node_within_scc flag if appropriate.
21049 * doc/invoke.texi (ipa-cp-recursion-penalty,
21050 ipa-cp-single-call-pentalty): Document.
21052 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21055 * symtab.c (symtab_node::get_partitioning_class): Register vars
21057 * varpool.c (symbol_table::output_variables) Do not assemble unefined
21058 decls for non-symbols.
21060 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
21063 * output.h (default_binds_local_p_2): New.
21064 * varasm.c (default_binds_local_p_2): Renamed to ...
21065 (default_binds_local_p_3): This. Don't return true on protected
21066 data symbol if protected data may be external.
21067 (default_binds_local_p): Use default_binds_local_p_3.
21068 (default_binds_local_p_1): Likewise.
21069 (default_binds_local_p_2): New.
21070 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
21071 default_binds_local_p_2 if TARGET_MACHO is undefined.
21073 2015-03-27 Jakub Jelinek <jakub@redhat.com>
21076 * config/i386/i386.c (legitimize_pic_address): If base
21077 is SYMBOL_REF or LABEL_REF using %rip addressing, force
21078 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
21080 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21083 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
21086 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21089 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
21090 of optimized out indirect call.
21091 (redirect_to_unreachable): Always build symbol table node for
21092 BUILT_IN_UNREACHABLE
21094 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
21097 * ira-costs.c (record_reg_classes): Process all constraint string
21100 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
21102 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
21106 * config/c6x/constraints.md (S3): New constraint.
21107 * config/c6x/c6x.md (real_jump): Use it.
21109 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21111 PR middle-end/65595
21112 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
21113 do redirection if the call is not optimized out.
21115 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
21118 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
21119 (fchkp-check-incomplete-type): Add LTO.
21120 (fchkp-zero-input-bounds-for-main): Likewise.
21121 (fchkp-first-field-has-own-bounds): Likewise.
21122 (fchkp-narrow-bounds): Likewise.
21123 (fchkp-narrow-to-innermost-array): Likewise.
21124 (fchkp-use-static-bounds): Likewise.
21125 (fchkp-use-static-const-bounds): Likewise.
21126 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21128 2015-03-27 Marek Polacek <polacek@redhat.com>
21130 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
21132 2015-03-27 Marek Polacek <polacek@redhat.com>
21135 * ubsan.c (ubsan_create_edge): New function.
21136 (instrument_bool_enum_load): Call it.
21137 (instrument_nonnull_arg): Likewise.
21138 (instrument_nonnull_return): Likewise.
21139 (instrument_object_size): Likewise.
21141 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21143 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
21146 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21149 * lto-streamer.h (class lto_location_cache): New.
21150 (struct data_in): Add location_cache.
21151 (lto_input_location): Update prototype.
21152 (stream_input_location_now): New.
21153 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
21154 pointer to location.
21155 (stream_input_location): Update.
21156 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
21157 (warn_odr): Apply location cache before warning.
21158 (lto_input_location): Update prototype.
21159 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
21160 Use stream_input_location_now.
21161 * lto-streamer-in.c (lto_location_cache::current_cache): New static
21163 (lto_location_cache::cmp_loc): New function.
21164 (lto_location_cache::apply_location_cache): New function.
21165 (lto_location_cache::accept_location_cache): New function.
21166 (lto_location_cache::revert_location_cache): New function.
21167 (lto_location_cache::input_location): New function.
21168 (lto_input_location): Do location caching.
21169 (stream_input_location_now): New function.
21170 (input_eh_region, input_struct_function_base): Use
21171 stream_input_location_now.
21172 (lto_data_in_create): use new.
21173 (lto_data_in_delete): Use delete.
21174 * tree-streamer-in.c (unpack_ts_block_value_fields,
21175 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
21176 lto_input_ts_exp_tree_pointers): Update for cached location api.
21178 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21181 * passes.def: Add pass_nothrow.
21182 * ipa-pure-const.c: (pass_data_nothrow): New.
21183 (pass_nothrow): New.
21184 (pass_nothrow::execute): New.
21185 (make_pass_nothrow): New.
21186 * tree-pass.h (make_pass_nothrow): Declare.
21188 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21190 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
21191 edge to change by speculation resolution or redirection.
21192 (edge_set_predicate): Likewise.
21193 (inline_summary_t::duplicate): Likewise.
21194 (remap_edge_summaries): Likewise.
21196 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21198 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
21200 (can_inline_edge_p): Relax option matching for always inline functions.
21202 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
21205 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
21206 Check operand 4 and operand 0 for equality.
21207 (avx512f_vextract<shuffletype>32x4_1_maskm):
21208 Check operand 6 and operand 0 for equality.
21209 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
21211 (vec_extract_hi_<mode>_maskm): Ditto.
21213 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21215 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
21216 dead calls back to live.
21217 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
21219 (cgraph_node::verify_node): ... here; verify only callee edges,
21221 * cif-code.def (CILK_SPAWN): New code.
21223 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21225 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
21226 (edge_set_predicate): Use it to mark unreachable edges.
21227 (inline_summary_t::duplicate): Remove unnecesary code.
21228 (remap_edge_summaries): Likewise.
21229 (dump_inline_summary): Report contains_cilk_spawn.
21230 (compute_inline_parameters): Compute contains_cilk_spawn.
21231 (inline_read_section, inline_write_summary): Stream
21232 contains_cilk_spawn.
21233 * ipa-inline.c (can_inline_edge_p): Do not touch
21234 DECL_STRUCT_FUNCTION that may not be available;
21235 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
21236 remove check for callee_fun->can_throw_non_call_exceptions and
21237 replace it by optimization attribute check; check for flag_exceptions.
21238 * ipa-inline-transform.c (inline_call): Maintain
21239 DECL_FUNCTION_PERSONALITY
21240 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
21242 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21244 PR tree-optimization/65551
21245 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
21246 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
21248 2015-03-26 Richard Biener <rguenther@suse.de>
21250 PR middle-end/65555
21251 * tree-cfg.c (verify_gimple_call): Do not require a call to
21252 have no LHS if it wasn't recognized as control altering yet.
21254 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21256 PR tree-optimization/64715
21257 * passes.def: Add another instance of pass_object_sizes before ccp1.
21258 * tree-object-size.c (pass_object_sizes::execute): In
21259 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
21260 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
21261 __bos result and the computed constant. Remove redundant
21262 checks, obsoleted by gimple_call_builtin_p test.
21264 * var-tracking.c (variable_tracking_main_1): Don't track
21265 variables for targetm.no_register_allocation targets.
21267 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
21269 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
21270 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
21272 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
21275 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
21276 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
21277 0.0 is correctly setup.
21278 (extenddftf2_internal): Likewise.
21280 2015-03-25 Sebastian Pop <s.pop@samsung.com>
21282 PR tree-optimization/65177
21283 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
21285 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
21286 edges not adjacent on the path to the original code.
21288 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
21291 * doc/install.texi (Building a native compiler): Document new
21292 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
21293 configuration assumes that the host supports the linker plugin.
21295 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
21298 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
21299 chain for generated call.
21301 2015-03-25 Richard Biener <rguenther@suse.de>
21303 * passes.c (pass_manager::execute_early_local_passes): Guard
21304 execution of pass_chkp_instrumentation_passes with
21305 flag_check_pointer_bounds.
21306 (pass_chkp_instrumentation_passes::gate): Likewise.
21308 2015-03-25 Martin Liska <mliska@suse.cz>
21310 PR tree-optimization/65538
21311 * symbol-summary.h (function_summary::~function_summary):
21312 Relese memory for allocated summaries.
21313 (function_summary::release): New function.
21315 2015-03-25 Jakub Jelinek <jakub@redhat.com>
21318 * lto-streamer-out.c (DFS::worklist): New struct.
21319 (DFS::worklist_vec): New data member.
21320 (DFS::next_dfs_num): Remove.
21321 (DFS::DFS): Rewritten using worklist instead of recursion,
21322 using most of code from DFS::DFS_write_tree.
21323 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
21324 pass it to DFS_write_tree calls.
21325 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
21326 quick initial checks push it into worklist_vec and return.
21328 2015-03-25 Richard Biener <rguenther@suse.de>
21330 PR middle-end/65519
21331 * genmatch.c (expr::gen_transform): Re-write to avoid
21332 using gimple_build.
21334 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21336 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
21338 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21340 * config/arm/arm.opt (print_tune_info): New option.
21341 * config/arm/arm.c (arm_print_tune_info): New function.
21342 (arm_file_start): Call arm_print_tune_info.
21343 * config/arm/arm-protos.h (struct tune_params): Add comment.
21344 * doc/invoke.texi (@item -mprint-tune-info): New item.
21345 (-mtune): mention it in ARM Option Summary.
21347 2015-03-25 DJ Delorie <dj@redhat.com>
21349 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
21352 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
21353 Martin Liska <mliska@suse.cz>
21355 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
21356 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
21357 (sem_item::add_type): New function.
21358 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
21359 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
21360 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
21361 (sem_function::equals_wpa): Fix typo.
21362 * ipa-icf.h (sem_item::add_type): New function.
21363 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
21366 2015-03-24 Jakub Jelinek <jakub@redhat.com>
21368 PR tree-optimization/65533
21369 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
21370 with swapped operands, call vect_free_slp_tree on
21371 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
21374 2015-03-24 Richard Biener <rguenther@suse.de>
21376 PR middle-end/65517
21377 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
21378 for fixup if necessary.
21380 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
21382 * doc/extend.texi (Function Attributes): Add @cindex entries
21383 for all attributes and regularize their format. Delete text
21384 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
21385 information about "eightbit_data", "tiny_data", and "model"
21386 variable attributes to the Variable Attributes section. Fix
21387 some obvious typos and copy-editing issues.
21388 (Variable Attributes, Type Attributes): Likewise add/fix
21389 @cindex entries for all attributes.
21391 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21394 * tree-chkp.c (chkp_build_returned_bound): Ignore
21395 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
21397 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
21400 * config/sh/predicates.md (simple_mem_operand,
21401 displacement_mem_operand): Add test for reg.
21402 (short_displacement_mem_operand): Test for displacement_mem_operand
21403 before invoking sh_disp_addr_displacement.
21404 * config/sh/constraints.md (Sdd, Sra): Simplify.
21405 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
21406 Remove redundant displacement_mem_operand tests.
21408 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
21411 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
21412 the same -mmcu=MCU more than once.
21414 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21417 * ipa-devirt.c: Remove duplicate demangle.h include.
21420 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
21422 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
21423 REG_POINTER on *destptr after adjusting it for prologue size.
21426 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
21427 ultimate_alias_target ()->order ints instead of
21428 ultimate_alias_target () pointers.
21430 2015-03-23 Richard Biener <rguenther@suse.de>
21432 PR tree-optimization/65518
21433 * tree-vect-stmts.c (vectorizable_load): Reject single-element
21434 interleaving cases we generate absymal code for.
21436 2015-03-23 Richard Biener <rguenther@suse.de>
21438 PR tree-optimization/65494
21439 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
21441 (vect_analyze_slp_instance): But do that here, always and once.
21443 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21445 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
21446 adding T or multiplying by T+1 and subracting T.
21448 2015-03-22 Jeff Law <law@redhat.com>
21450 PR rtl-optimization/64317
21451 * Makefile.in (OBJS): Add gcse-common.c
21452 * gcse.c: Include gcse-common.h
21453 (struct modify_pair_s): Move structure definition to gcse-common.h
21454 (compute_transp): Move function to gcse-common.c.
21455 (canon_list_insert): Similarly.
21456 (record_last_mem_set_info): Break out some code and put it into
21457 gcse-common.c. Call into the new common code.
21458 (compute_local_properties): Pass additional arguments to compute_transp.
21459 * postreload-gcse.c: Include gcse-common.h and df.h
21460 (modify_mem_list_set, blocks_with_calls): New variables.
21461 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
21462 (get_bb_avail_insn): Pass in the expression index too.
21463 (alloc_mem): Allocate memory for the new bitmaps and lists.
21464 (free_mem): Free memory for the new bitmaps and lists.
21465 (insert_expr_in_table): Record a bitmap index for each entry we
21467 (record_last_mem_set_info): Call into common code in gcse-common.c.
21468 (get_bb_avail_insn): If no available insn was found in the requested
21469 BB. If BB has a single predecessor, see if the expression is
21470 transparent in BB and available in that single predecessor.
21471 (compute_expr_transp): New wrapper for compute_transp.
21472 (eliminate_partially_redundant_load): Pass expression's bitmap_index
21473 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
21474 (gcse_after_reload_main): If there are elements in the hash table,
21475 then compute transparency for all the elements in the hash table.
21476 * gcse-common.h: New file.
21477 * gcse-common.c: New file.
21479 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
21481 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
21483 (System Headers): Likewise.
21485 (Traditional macros): Likewise.
21486 (Invocation): Likewise.
21487 (Option Index): Likewise.
21488 * doc/cppopts.texi (-M): Likewise.
21489 (-finput-charset): Likewise.
21490 (--help): Likewise.
21491 * doc.invoke.texi (AVR Options): Likewise.
21492 (V850 Options): Likewise.
21494 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
21497 * ipa-devirt.c: Include demangle.h
21498 (odr_type_d): Add field rtti_broken.
21499 (odr_subtypes_equivalent_p): Do not require name to match.
21500 (compare_virtual_tables): Fix typo; if type already has ODR violation,
21501 bypass the tests; be ready for function referneces in vtables that are
21502 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
21503 (warn_odr): Give up for nameless types.
21504 (warn_types_mismatch): Report mismatch in mangled names;
21505 report mismatch in anonymous namespaces; look into component types to
21506 give useful error; report when mismatch is dragged in from other ODR
21508 (odr_types_equivalent_p): Match types for being polymorphic; avoid
21509 duplicated diagnostics.
21510 (add_type_duplicate): Reorder checks so more informative ones come
21511 first; fix typo; do not output "the extra base is defined here" when
21513 (BINFO_N_BASE_BINFOS): Relax sanity check.
21515 2015-03-22 Martin Liska <mliska@suse.cz>
21516 Jakub Jelinek <jakub@redhat.com>
21518 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
21519 masks that can potentially include a builtin.
21520 (ix86_add_new_builtins): Introduce fast filter for isa values
21521 that cannot trigger builtin inclusion.
21523 2015-03-22 Martin Liska <mliska@suse.cz>
21525 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
21526 (sem_item::update_hash_by_local_refs): Likewise.
21527 (sem_variable::get_hash): Empty line is fixed.
21528 (sem_item_optimizer::execute): Include adding of hash references.
21529 (sem_item_optimizer::update_hash_by_addr_refs): New function.
21530 (sem_item_optimizer::build_hash_based_classes): Use local hash.
21531 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
21532 (sem_item::update_hash_by_local_refs): Likewise.
21534 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21537 * ipa-comdats.c (enqueue_references): Walk through thunks.
21538 (ipa_comdats): Likewise.
21539 (set_comdat_group_1): New function.
21541 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21544 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
21547 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
21548 Gerald Pfeifer <gerald@pfeifer.com>
21550 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
21552 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
21553 Sandra Loosemore <sandra@codesourcery.com>
21555 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
21556 function parameter declaration.
21557 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
21558 Update arguments to nios2_adjust_call_address().
21559 (sibcall_internal): Rename from *sibcall.
21560 (sibcall_value_internal): Rename from *sibcall_value.
21561 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
21562 (nios2_large_got_address): Add target temp reg parameter.
21563 (nios2_got_address): Adjust call to nios2_large_got_address, add
21564 force_reg around it.
21565 (nios2_load_pic_address): Add target temp reg parameter, replace call
21566 to nios2_got_address with corresponding code.
21567 (nios2_legitimize_constant_address): Update call to
21568 nios2_load_pic_address.
21569 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
21570 to use temp reg for PIC loading purposes.
21571 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
21572 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21573 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
21575 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21577 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
21578 usage of "the @option{...}".
21579 (-Wopenmp-simd): Likewise.
21580 (-fsanitize-recover): Likewise.
21581 (-fsanitize-undefined-trap-on-error): Likewise.
21583 (tracer-dynamic-coverage-feedback): Likewise.
21584 (reorder-block-duplicate-feedback): Likewise.
21585 (loop-unroll-jam-size): Likewise.
21588 (-mabs=legacy): Likewise.
21589 (-mupper-regs-df): Likewise.
21590 (-mupper-regs-sf): Likewise.
21591 (-mpointers-to-nested-functions): Likewise.
21593 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21595 * doc/extend.texi (Cilk Plus Builtins): Add markup.
21597 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21599 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
21600 additional index entries and cross-references.
21601 (-fchkp-check-incomplete-type): Likewise.
21602 (-fchkp-first-field-has-own-bounds): Likewise.
21603 (-fchkp-narrow-to-innermost-array): Likewise.
21604 (-fchkp-use-fast-string-functions): Likewise.
21605 (-fchkp-use-nochk-string-functions): Likewise.
21606 (-fchkp-use-static-const-bounds): Likewise.
21607 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21608 (-fchkp-instrument-marked-only): Likewise.
21609 (-fchkp-use-wrappers): Likewise.
21610 (-static-libmpx): Likewise.
21611 (-static-libmpxwrappers): Likewise.
21612 * doc/extend.texi (bnd_legacy): Likewise.
21613 (bnd_instrument): Likewise.
21614 (bnd_variable_size): Likewise.
21615 (Pointer Bounds Checker builtins): Likewise.
21617 2015-03-21 Tom de Vries <tom@codesourcery.com>
21619 PR tree-optimization/65458
21620 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
21621 * cgraph.h (cgraph_node): Add parallelized_function field.
21622 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
21623 (input_overwrite_node): Read parallelized_function field.
21624 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
21625 parallelized_function on cgraph_node for child_fn.
21626 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
21627 Remove include of gt-tree-parloops.h.
21628 (parallelized_functions): Remove static variable.
21629 (parallelized_function_p): Rewrite using parallelized_function field of
21631 (create_loop_fn): Remove adding to parallelized_functions.
21632 * Makefile.in (GTFILES): Remove tree-parloops.c
21634 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
21636 PR rtl-optimization/64366
21637 * lra.c (lra_update_insn_regno_info): Consider regs in
21638 CALL_INSN_FUNCTION_USAGE memory.
21640 2015-03-20 Richard Biener <rguenther@suse.de>
21642 PR middle-end/64715
21643 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
21644 for type comparison and gcc_checking_assert.
21645 (chrec_fold_plus_poly_poly): Likewise.
21646 (chrec_fold_multiply_poly_poly): Likewise.
21647 (chrec_convert_1): Likewise.
21648 * gimplify.c (gimplify_expr): Remove premature folding of
21649 &X + CST to &MEM[&X, CST].
21651 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21653 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
21655 (ipa_inline): Recompute inline_failed codes.
21656 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21657 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
21660 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
21662 PR rtl-optimization/60851
21663 * recog.c (constrain_operands): Accept a pseudo register before reload
21664 for LRA enabled targets.
21666 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
21669 * config/rs6000/predicates.md (easy_fp_constant): Remove special
21670 -ffast-math handling that kept non-0 constants live in the RTL
21671 until reload. Remove logic testing the number of instructions it
21672 took to create a constant in a GPR that was never used, due to a
21673 test for soft-float earlier.
21674 (memory_fp_constant): Delete, no longer used.
21676 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
21677 alternatives for loading non-0 constants into GPRs for hard
21678 floating point that is no longer needed due to changes in
21679 easy_fp_constant. Add support for loading 0.0 into GPRs.
21680 (mov<mode>_hardfloat32): Likewise.
21681 (mov<mode>_hardfloat64): Likewise.
21682 (mov<mode>_64bit_dm): Likewise.
21683 (movtd_64bit_nodm): Likewise.
21684 (pre-reload move FP constant define_split): Delete define_split,
21685 since it is no longer used.
21686 (extenddftf2_internal): Remove GHF constraints that are not valid
21689 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
21691 PR rtl-optimization/63491
21692 * lra-constraints.c (check_and_process_move): Use src instead of
21693 sreg. Remove some dead code.
21695 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
21698 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
21699 (sem_variable::merge): Likewise.
21701 2015-03-19 Martin Liska <mliska@suse.cz>
21704 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
21705 all fields of cgraph_thunk_info.
21707 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
21709 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
21710 clone instrumented thunks.
21712 2015-03-19 Richard Biener <rguenther@suse.de>
21715 2015-03-10 Richard Biener <rguenther@suse.de>
21717 PR middle-end/63155
21718 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
21719 * tree-ssa-coalesce.c: Include timevar.h.
21720 (attempt_coalesce): Handle graph being NULL.
21721 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
21722 Split out abnormal coalescing to ...
21723 (perform_abnormal_coalescing): ... this function.
21724 (coalesce_ssa_name): Perform abnormal coalescing without computing
21726 (verify_ssa_coalescing_worker): New function.
21727 (verify_ssa_coalescing): Likewise.
21729 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
21730 Jakub Jelinek <jakub@redhat.com>
21733 * tsan.c (instrument_gimple): Clear tail call flag on
21736 2015-03-19 Jakub Jelinek <jakub@redhat.com>
21739 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
21740 call in the return bb.
21741 (find_split_points): Add RETURN_BB argument, don't call
21743 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
21744 if true append TSAN_FUNC_EXIT internal call after the call to
21745 the split off function.
21746 (execute_split_functions): Call find_return_bb here.
21747 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
21748 Adjust find_split_points and split_function calls.
21750 2015-03-18 DJ Delorie <dj@redhat.com>
21752 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
21753 (iorqi3_virt): Likewise.
21755 2015-03-18 Tom de Vries <tom@codesourcery.com>
21757 * tree-parloops.c (parallelize_loops): Make static.
21758 * tree-parloops.h (parallelize_loops): Remove extern declaration.
21760 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
21762 PR middle-end/64491
21764 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
21766 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
21767 condition would be removed due to undefined behaviour.
21769 2015-03-18 Martin Liska <mliska@suse.cz>
21772 * cgraph.c (cgraph_node::get_create): Remove unnecessary
21773 xstrdup_for_dump wrapper.
21774 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
21776 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
21777 with xstrdup_for_dump.
21778 (sem_variable::equals): Likewise.
21779 (sem_item_optimizer::read_section): Use symtab_node::name instead of
21781 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
21782 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
21783 symtab_node::asm_name with xstrdup_for_dump.
21784 (congruence_class::dump): Use symtab_node::name instead of
21786 * ipa-icf.h (symtab_node::name): Remove.
21787 (symtab_node::asm_name): Likewise.
21789 2015-03-18 Jakub Jelinek <jakub@redhat.com>
21791 PR tree-optimization/65450
21792 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
21794 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
21795 it instead of duplicate_ssa_name_ptr_info.
21798 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
21800 2015-03-18 Richard Biener <rguenther@suse.de>
21802 * tree-data-ref.h (struct access_matrix): Remove.
21803 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
21804 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
21805 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
21806 (am_vector_index_for_loop): Likewise.
21807 (struct data_reference): Remove access_matrix member.
21808 (DR_ACCESS_MATRIX): Remove.
21809 (lambda_vector_new): Add comment.
21810 (lambda_matrix_new): Use XOBNEWVEC.
21812 2015-03-18 Richard Biener <rguenther@suse.de>
21814 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
21815 (pass_ch::execute): Cleanup the CFG only if we did sth.
21816 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
21818 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21820 * expmed.c (synth_mult): Use std::swap instead of manually
21821 swapping algorithms.
21823 2015-03-18 Jakub Jelinek <jakub@redhat.com>
21826 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
21828 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
21831 * config/avr/avr.opt (-nodevicelib): New option.
21832 * doc/invoke.texi (AVR Options): Document it.
21833 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
21834 libgcc.a, libc.a, libm.a.
21835 * config/avr/specs.h: Same.
21836 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
21837 which don't (directly) depend on the device. Print more help.
21838 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
21839 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
21840 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
21842 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
21843 for specs file name.
21844 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
21845 * config/avr/avr-mcus.def: Adjust initializers and comments.
21847 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
21849 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
21850 DECL_ONE_ONLY to check if decl is one only.
21851 * ipa-split.c (consider_split): Limit splitt of one only functions.
21853 2015-03-16 Jakub Jelinek <jakub@redhat.com>
21855 PR tree-optimization/65427
21856 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
21858 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
21860 2015-03-16 Marek Polacek <polacek@redhat.com>
21862 * cgraph.h (add_new_static_var): Remove declaration.
21863 * varpool.c (add_new_static_var): Remove function.
21865 2015-03-16 Jakub Jelinek <jakub@redhat.com>
21867 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
21868 instead of vec<tree> * with vec_alloc and release for args.
21871 PR middle-end/65431
21872 * omp-low.c (delete_omp_context): Only splay_tree_delete
21873 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
21874 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
21876 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
21879 * cfgexpand.c (align_base): New function.
21880 (alloc_stack_frame_space): Call it.
21881 (expand_stack_vars): Align prev_frame to be sure
21882 data->asan_vec elements aligned properly.
21884 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
21886 PR middle-end/65409
21887 * expr.c (store_field): Do not do a direct block copy if the source is
21888 a PARALLEL with BLKmode.
21890 2015-03-16 Tom de Vries <tom@codesourcery.com>
21892 PR middle-end/65414
21894 2015-03-12 Tom de Vries <tom@codesourcery.com>
21896 PR rtl-optimization/64895
21897 * lra-lives.c (check_pseudos_live_through_calls): Use
21898 actual_call_used_reg_set instead of call_used_reg_set, if available.
21900 2015-03-16 Alan Modra <amodra@gmail.com>
21903 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
21904 Modify Z->r bswapdi splitter to use dest in place of scratch.
21905 In r->Z and Z->r bswapdi splitter rename word_high, word_low
21906 to word1, word2 and rearrange logic to suit.
21907 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
21908 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
21909 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
21910 Add one '?' on r->r. Modify Z->r splitter to avoid need for
21913 2015-03-14 Jakub Jelinek <jakub@redhat.com>
21915 PR tree-optimization/65369
21916 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
21917 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
21918 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
21920 PR tree-optimization/65418
21921 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
21922 are casts in the first PLUS_EXPR operand, ensure tbias and
21923 *totallowp are in the inner type.
21925 PR rtl-optimization/65401
21926 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
21927 argument. If true, adjust_address_nv of x with big-endian
21928 correction for the mode widening to GET_MODE (y).
21929 (make_field_assignment): Don't do MEM mode widening here.
21930 Use MEM_P instead of GET_CODE == MEM.
21932 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
21934 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
21935 the external decls.
21937 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21940 * config/arm/arm.c (arm_gen_constant, AND case): Use
21941 ARM_SIGN_EXTEND when constructing AND mask.
21943 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21945 * graph.c (print_graph_cfg): Make function names visible and append
21946 parenthesis to it. Also make groups of basic blocks belonging to the
21947 same function visible.
21949 2015-03-12 Richard Biener <rguenther@suse.de>
21951 PR middle-end/44563
21952 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
21953 to avoid quadratic behavior with inline expansion splitting blocks.
21954 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
21955 with the successor if the predecessor will be merged with it.
21956 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
21957 entry block with its successor.
21959 2015-03-13 Richard Biener <rguenther@suse.de>
21961 PR middle-end/44563
21962 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
21963 (cleanup_tree_cfg_1): Do not call it.
21964 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
21965 (fixup_noreturn_call): Mark the stmt as control altering.
21966 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
21968 (pass_data_fixup_cfg): Produce a dump file.
21969 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
21970 (need_noreturn_fixup): New global.
21971 (pass_dominator::execute): Fixup queued noreturn calls.
21972 (optimize_stmt): Queue calls that became noreturn for fixup.
21973 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
21974 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
21975 (el_to_fixup): New global.
21976 (eliminate_dom_walker::before_dom_childre): Queue calls that
21977 became noreturn for fixup.
21978 (eliminate): Fixup queued noreturn calls.
21979 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
21980 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
21981 (substitute_and_fold_dom_walker::before_dom_children): Queue
21982 alls that became noreturn for fixup.
21983 (substitute_and_fold): Fixup queued noreturn calls.
21985 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
21987 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
21988 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
21989 are building; for methods check ODR type of class they belong to if
21990 they may lead to a polymorphic call.
21991 (sem_function::compare_polymorphic_p): Be bit smarter about testing
21992 when function may lead to a polymorphic call.
21993 (sem_function::compare_type_list): Remove.
21994 (sem_variable::equals): Update use of compatible_types_p.
21995 (sem_variable::parse_tree_refs): Remove.
21996 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
21998 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
22000 (func_checker::compatible_polymorphic_types_p): Break out from ...
22001 (unc_checker::compatible_types_p): ... here.
22002 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
22004 (unc_checker::compatible_types_p): Update.
22005 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
22008 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22010 PR rtl-optimization/65235
22011 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
22012 When first element of vec_concat is const_int, calculate its size
22013 using second element.
22015 2015-03-12 Richard Biener <rguenther@suse.de>
22017 PR middle-end/65270
22018 * fold-const.c (operand_equal_p): Fix ordering of resetting
22019 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
22021 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
22023 * config/s390/s390.c (s390_reorg): Move code to output nops after label
22025 (s390_asm_output_function_label): Likewise.
22026 * config/s390/s390.c (s390_asm_output_function_label):
22027 Fix function label alignment with -mhtopatch.
22028 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
22029 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
22030 ("nop_2_byte"): New define_insn.
22031 ("nop_4_byte"): Likewise.
22032 ("nop_6_byte"): Likewise.
22033 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
22034 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
22036 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22039 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
22042 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22045 * toplev.c (process_options): Restrict Pointer Bounds Checker
22046 usage with Address Sanitizer.
22048 2015-03-12 Richard Biener <rguenther@suse.de>
22050 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
22052 * omp-low.c (expand_omp_taskreg): Split block before removing
22054 (expand_omp_target): Likewise.
22055 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
22056 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
22057 stmt to split_block.
22059 2015-03-12 Tom de Vries <tom@codesourcery.com>
22061 PR rtl-optimization/64895
22062 * lra-lives.c (check_pseudos_live_through_calls): Use
22063 actual_call_used_reg_set instead of call_used_reg_set, if available.
22065 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22067 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
22068 (cgraph_node::remove): Likewise.
22069 (cgraph_node::get_untransformed_body): Likewise.
22070 * varpool.c (varpool_node::remove): Likewise.
22071 (varpool_node::get_constructor): Add sanity check.
22073 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
22075 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
22077 (-fabi-compat-version): Likewise.
22078 (-ffriend-injection): Likewise.
22079 (-Wdeclaration-after-statement): Likewise.
22080 (-fomit-frame-pointer): Likewise.
22081 (-ftree-coalesce-inlined-vars): Likewise.
22082 (-fvisibility=): Likewise.
22083 * doc/extend.texi (Typeof): Likewise.
22084 (Zero Length): Likewise.
22085 (Escaped Newlines): Likewise.
22086 (Compound Literals): Likewise.
22087 (Function Attributes): Likewise.
22088 (Label Attributes): Likewise.
22089 (Type Attributes): Likewise.
22090 (Function Names): Likewise.
22091 (Other Builtins): Likewise.
22092 (Function Specific Option Pragmas): Likewise.
22093 (C++ Interface): Likewise.
22095 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
22097 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
22099 2015-03-11 Marek Polacek <polacek@redhat.com>
22101 PR tree-optimization/65388
22102 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
22104 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22107 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
22108 * configure: Regenerate.
22109 * config.in: Regenerate.
22110 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
22111 [-mn-flash]: Document it.
22112 [__AVR_ARCH__]: Document avrtiny.
22114 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
22115 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
22116 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
22118 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22120 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
22122 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22125 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
22126 allow reloads of PLUS in floating point/VSX registers.
22128 2015-03-11 Junmo Park <junmoz.park@samsung.com>
22130 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
22131 crypto_sha256_fast.
22132 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
22134 2015-03-11 Richard Biener <rguenther@suse.de>
22136 PR tree-optimization/65310
22137 * tree-sra.c (build_ref_for_offset): Also preserve larger
22140 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
22142 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
22144 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22147 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
22149 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
22151 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22153 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
22154 (sem_function::equals_wpa): ... here.
22156 2015-03-10 Marek Polacek <polacek@redhat.com>
22157 Jakub Jelinek <jakub@redhat.com>
22160 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
22161 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
22164 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22167 * config/rs6000/t-linux: For powerpc64* target set
22168 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
22170 2015-03-10 Richard Biener <rguenther@suse.de>
22172 PR middle-end/44563
22173 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
22174 for redirect_all_calls.
22176 2015-03-10 Marek Polacek <polacek@redhat.com>
22178 * gdbinit.in (pcfun): Define and document.
22180 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
22182 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
22183 of libgomp-plugin.h.
22184 (find_target_compiler): Support a case when the path to gcc is
22185 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
22186 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
22187 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
22189 (main): Use GCC_INSTALL_NAME as target_driver_name.
22190 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
22192 (mkoffload.o): Remove obsolete include path and defines.
22193 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
22195 2015-03-10 Richard Biener <rguenther@suse.de>
22197 PR middle-end/63155
22198 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22199 * tree-ssa-coalesce.c: Include timevar.h.
22200 (attempt_coalesce): Handle graph being NULL.
22201 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22202 Split out abnormal coalescing to ...
22203 (perform_abnormal_coalescing): ... this function.
22204 (coalesce_ssa_name): Perform abnormal coalescing without computing
22206 (verify_ssa_coalescing_worker): New function.
22207 (verify_ssa_coalescing): Likewise.
22209 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22212 * config.gcc (extra_options) [avr]: Remove.
22213 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
22214 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
22215 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
22217 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
22218 (-mmcu=): Add Var and MissingArgError properties.
22220 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
22221 * config/avr/t-multilib: Regenerate.
22222 * config/avr/specs.h: New file.
22223 * config/avr/driver-avr.c: New file.
22224 * config/avr/genopt.sh: Remove file.
22225 * config/avr/avr-tables.opt: Remove file.
22226 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
22227 * config/avr/avr-c.c: Same.
22228 * avr-arch.h: Same.
22229 (avr_current_device): Remove proto.
22230 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
22231 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
22232 (EXTRA_SPEC_FUNCTIONS): Define.
22233 (avr_devicespecs_file): New specs function proto.
22234 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
22235 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
22236 (avr_current_device): Remove definition and usage.
22237 (avr_set_core_architecture): New static function.
22238 (avr_option_override): Use it.
22239 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
22240 (mcu_name): New static array.
22241 (comparator, avr_archs_str, avr_mcus_str): New static functions.
22242 (avr_inform_devices, avr_inform_core_architectures): New functions.
22243 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
22244 (avrlibc.h) [WITH_AVRLIBC]: Include.
22245 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
22246 (print_mcu): Rewrite from scratch.
22247 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
22248 Forward to avr-specific specs defined in device-specs file.
22249 * config/avr/t-avr (driver-avr.o): New rule.
22250 (avr-devices.o): Depend on avr-arch.h.
22251 (avr-mcus): No more depend on avr-tables.opt.
22252 (avr-tables.opt): Remove rule.
22253 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
22255 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22257 * c-family/c.opt (fchkp-use-wrappers): New.
22258 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
22259 (chkp_wrap_function): New.
22260 (chkp_build_instrumented_fndecl): Support wrapped
22262 * doc/invoke.texi (-fcheck-pointer-bounds): New.
22263 (-fchkp-check-incomplete-type): New.
22264 (-fchkp-first-field-has-own-bounds): New.
22265 (-fchkp-narrow-bounds): New.
22266 (-fchkp-narrow-to-innermost-array): New.
22267 (-fchkp-optimize): New.
22268 (-fchkp-use-fast-string-functions): New.
22269 (-fchkp-use-nochk-string-functions): New.
22270 (-fchkp-use-static-bounds): New.
22271 (-fchkp-use-static-const-bounds): New.
22272 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
22273 (-fchkp-check-read): New.
22274 (-fchkp-check-write): New.
22275 (-fchkp-store-bounds): New.
22276 (-fchkp-instrument-calls): New.
22277 (-fchkp-instrument-marked-only): New.
22278 (-fchkp-use-wrappers): New.
22279 (-static-libmpx): New.
22280 (-static-libmpxwrappers): New.
22282 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22284 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
22285 (CHKP_SPEC): Add wrappers library.
22286 * c-family/c.opt (static-libmpxwrappers): New.
22288 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22290 * config/i386/linux-common.h (LIBMPX_LIBS): New.
22291 (LIBMPX_SPEC): New.
22293 * gcc.c (CHKP_SPEC): New.
22294 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
22295 * c-family/c.opt (static-libmpx): New.
22297 2015-03-10 Richard Biener <rguenther@suse.de>
22299 PR middle-end/44563
22300 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
22302 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
22303 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
22304 (cgraph_add_edge_to_call_site_hash): Likewise.
22305 (cgraph_node::get_edge): Likewise.
22306 (cgraph_edge::set_call_stmt): Likewise.
22307 (cgraph_edge::remove_caller): Likewise.
22309 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
22311 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
22312 (callee_saved_gpr_regs_size): ... this.
22313 (callee_saved_regs_first_regno): Rename to ...
22314 (callee_saved_first_gpr_regno): ... this.
22315 (callee_saved_regs_last_regno) Rename to ...
22316 (callee_saved_last_gpr_regno): ... this.
22317 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
22319 (nds32_initial_elimination_offset): Likewise.
22320 (nds32_expand_prologue): Likewise.
22321 (nds32_expand_epilogue): Likewise.
22322 (nds32_expand_prologue_v3push): Likewise.
22323 (nds32_expand_epilogue_v3pop): Likewise.
22324 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
22325 Adjust renamed variables.
22326 (nds32_output_stack_pop): Likewise.
22328 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
22330 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
22333 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22335 PR rtl-optimization/65321
22336 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
22338 * var-tracking.c (use_narrower_mode): Likewise.
22340 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22342 PR tree-optimization/65355
22343 * varasm.c (notice_global_symbol): Do not produce RTL.
22344 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
22346 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
22347 check for section anchors.
22349 2015-03-10 Alan Modra <amodra@gmail.com>
22352 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
22353 to be single-arch by default. Set cpu_is_64bit for powerpc64
22354 given --with-cpu=native.
22355 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
22356 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
22358 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
22359 rs6000_isa_flags rather than TARGET_64BIT.
22361 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
22362 Kaz Kojima <kkojima@gcc.gnu.org>
22364 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
22366 2015-03-09 Jakub Jelinek <jakub@redhat.com>
22369 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
22370 on a TREE_BINFO, instead use BINFO_TYPE.
22372 2015-03-09 Richard Biener <rguenther@suse.de>
22374 PR middle-end/65270
22375 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
22376 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
22377 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
22378 of that. When comparing dereferences compare alignment.
22379 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
22381 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22383 * ipa-inline-analysis.c (check_callers): Check
22384 node->can_remove_if_no_direct_calls_and_refs_p.
22385 (growth_likely_positive): Reorganize to call
22386 can_remove_if_no_direct_calls_p later.
22387 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
22388 will_be_removed_from_program_if_no_direct_calls_p): Add
22389 will_inline parameter.
22390 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
22391 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22392 Handle inliner case correctly.
22394 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
22396 PR tree-optimization/63743
22397 * cfgexpand.c (reorder_operands): Also reorder if only second operand
22398 had its definition forwarded by TER.
22400 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22403 * ipa-utils.h (types_odr_comparable): Add strict argument.
22404 * ipa-devirt.c: Fix whitespace;
22405 (odr_hasher): Remove.
22406 (odr_name_hasher, odr_vtable_hasher): New hashers.
22407 (can_be_name_hashed_p): New predicate.
22408 (hash_type_name): remove.
22409 (hash_odr_name): New.
22410 (odr_name_hasher::hash): new.
22411 (can_be_vtable_hashed_p): New.
22412 (hash_odr_vtable): New.
22413 (odr_vtable_hasher::hash): New.
22414 (types_same_for_odr): Add strict parameter.
22415 (types_odr_comparable): Likewise.
22416 (odr_name_hasher::equal): New.
22417 (odr_vtable_hasher::equal): New.
22418 (odr_name_hasher::remove): New.
22419 (odr_hash_type): Change to hash_table<odr_name_hasher>.
22420 (odr_vtable_hash_type): New.
22421 (odr_vtable_hash): New.
22422 (odr_subtypes_equivalent_p): Do strict comparsion.
22423 (add_type_duplicate): Merge type names; cleanup; avoid type
22425 (register_odr_type): Initialize vtable hash.
22426 (build_type_inheritance_graph): Likewise
22427 (get_odr_type): Reorg to use two hashes.
22428 (dump_possible_polymorphic_call_targets): Move sanity check after debug
22430 (ipa_devirt): Dump type_inheritance_graph.
22431 (types_same_for_odr): Add strict mode.
22433 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22436 * cgraph.h (symtab_node): Add definition_alignment,
22437 can_increase_alignment_p and increase_alignment.
22438 * symtab.c (symtab_node::can_increase_alignment_p,
22439 increase_alignment_1, symtab_node::increase_alignment,
22440 symtab_node::definition_alignment): New.
22441 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
22442 can_increase_alignment_p.
22443 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
22444 * tree-vect-stmts.c (ensure_base_align): Likewise.
22445 * varasm.c (function_section_1): Use definition_alignment.
22446 (assemble_start_function): Likewise.
22447 (emit_local): likewise.
22448 (build_constant_desc): Likewsie.
22449 (output_constant_def_contents): Likewise.
22450 (place_block_symbol): Likewise.
22451 (output_object_block): Likewise.
22453 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22456 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
22457 when outputting debug.
22459 2015-03-07 Marek Polacek <polacek@redhat.com>
22460 Martin Uecker <uecker@eecs.berkeley.edu>
22463 * doc/invoke.texi: Update description of -fsanitize=bounds.
22465 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
22467 * tree-ssa-phiopt.c (neg_replacement): Remove.
22468 (tree_ssa_phiopt_worker): Remove negate optimization.
22470 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22473 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
22475 2015-03-06 Richard Biener <rguenther@suse.de>
22477 PR middle-end/64928
22478 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
22479 and liveout_obstack members.
22480 (calculate_live_on_exit): Remove.
22481 (calculate_live_ranges): Change declaration.
22482 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
22483 (new_tree_live_info): Adjust.
22484 (calculate_live_ranges): Delete livein when not wanted.
22485 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
22486 Deal with partly deleted live info.
22487 (loe_visit_block): Remove temporary bitmap by using
22488 bitmap_ior_and_compl_into.
22489 (live_worklist): Adjust accordingly.
22490 (calculate_live_on_exit): Make static.
22491 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
22492 we do not need livein.
22494 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
22496 * real.c (real_from_string): Fix typo in assertion.
22498 2015-03-06 Alex Velenko <alex.velenko@arm.com>
22500 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
22503 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22505 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
22507 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
22510 * lra-assigns.c (find_hard_regno_for): Rename to
22511 find_hard_regno_for_1. Add a new parameter.
22512 (find_hard_regno_for): New function using find_hard_regno_for_1.
22514 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22516 PR rtl-optimization/65067
22517 * expmed.c (store_bit_field, extract_bit_field): Reworked the
22518 strict volatile bitfield handling.
22520 2015-03-05 Martin Liska <mliska@suse.cz>
22523 * ipa-icf.c (sem_variable::equals): Compare variables types.
22525 2015-03-05 Richard Henderson <rth@redhat.com>
22528 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
22529 correctly check weak symbol binding.
22531 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
22533 PR middle-end/65315
22534 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
22537 2015-03-05 Martin Liska <mliska@suse.cz>
22539 * ipa-inline.c (inline_small_functions): Set default value to
22540 prevent warning during bootstrap.
22541 * tree.h: Add pragma guard that ignores false positives during
22544 2015-03-05 Richard Biener <rguenther@suse.de>
22546 PR tree-optimization/65310
22547 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22548 Properly preserve alignment of the base of the access.
22550 2015-03-05 Richard Biener <rguenther@suse.de>
22553 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
22554 Compare dependence info.
22556 2015-03-05 Richard Biener <rguenther@suse.de>
22558 PR middle-end/65233
22559 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
22561 (walk_ssa_copies): Revert last chage. Instead do not walk
22562 SSA names registered for SSA update.
22564 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22567 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
22568 vtable references for their containing type.
22569 (sem_function::equals_wpa): Compare TYPE_RESTRICT
22570 and type attributes.
22572 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
22574 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
22575 before negating it.
22576 * stor-layout.c (finalize_record_size): Revert latest change.
22578 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
22580 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
22582 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22584 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
22585 for correct comdat handling.
22586 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22588 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
22589 (used_from_object_file_p_worker): Remove.
22590 (cgraph_node::only_called_directly_or_alised): Add
22591 used_from_object_file_p.
22592 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
22593 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
22594 can_remove_if_no_direct_calls_and_refs_p.
22596 2015-03-04 Nick Clifton <nickc@redhat.com>
22598 * config/rl78/rl78.h (enum reg_class): Remove real registers from
22599 General register class.
22600 * config/rl78/rl78-real.md: Replace general register constraints
22601 with real+virtual register constraints.
22603 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22605 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
22606 from checking for -mhtm option.
22608 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22610 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
22611 (struct ipa_sra_check_caller_data): Add has_thunk field.
22612 (ipa_sra_check_caller): Check for thunk.
22613 (ipa_sra_preliminary_function_checks): Give up on function with
22615 (ipa_early_sra): Use call_for_symbol_and_aliases.
22617 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
22620 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
22621 called for __stack_chk_guard symbol.
22623 2015-03-03 DJ Delorie <dj@redhat.com>
22625 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
22627 (*addhi3_real): Likewise.
22628 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
22629 pattern to match incrementing memory.
22630 * config/rl78/predicates.md (rl78_1_2_operand): New.
22631 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
22632 it's the same and only mem.
22633 (rl78_alloc_physical_registers_op2): If there's effectively only
22634 one MEM, transcode it into HL.
22635 (rl78_far_p): Reject addresses that aren't legitimate.
22637 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22639 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
22642 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
22644 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22646 Implement call0 ABI for xtensa
22647 * config/xtensa/constraints.md ("a" constraint): Include stack
22648 pointer in case of call0 ABI.
22649 ("q" constraint): Make empty in case of call0 ABI.
22650 ("D" constraint): Include stack pointer in case of call0 ABI.
22651 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
22652 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
22654 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
22656 (xtensa_regno_to_class): Make it a local variable in the
22657 function xtensa_regno_to_class.
22658 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
22659 macro, function prototype and implementation.
22660 (reg_nonleaf_alloc_order): Make it a local variable in the
22661 function order_regs_for_local_alloc.
22662 (xtensa_conditional_register_usage): New function.
22663 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
22664 (xtensa_valid_move): Allow direct moves to stack pointer
22665 register in call0 ABI.
22666 (xtensa_setup_frame_addresses): Only spill register windows in
22668 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
22669 call0 ABI respectively.
22670 (xtensa_function_arg_1): Only mark a7 register for copying in
22672 (xtensa_call_save_reg): New function.
22673 (compute_frame_size): Add space for callee saved register
22674 storage to the frame size in call0 ABI.
22675 (xtensa_expand_prologue): Generate code to set up stack frame
22676 and save callee-saved registers in call0 ABI.
22677 (xtensa_expand_epilogue): New function.
22678 (xtensa_set_return_address): New function.
22679 (xtensa_return_addr): Calculate return address in call0 ABI.
22680 (xtensa_builtin_saveregs): Only mark a7 register for copying and
22681 emit copying code in windowed ABI.
22682 (order_regs_for_local_alloc): Add preferred register allocation
22683 order for non-leaf function in call0 ABI.
22684 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
22685 (xtensa_asm_trampoline_template): Add trampoline generation for
22687 (xtensa_trampoline_init): Add trampoline initialization for
22689 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
22691 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
22692 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
22693 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
22694 ABI call-used registers.
22695 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
22696 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
22698 (REG_CLASS_CONTENTS): Include all registers into the preferred
22699 reload registers set, adjust the set in the
22700 xtensa_conditional_register_usage.
22701 (xtensa_regno_to_class): Drop variable declaration.
22702 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
22704 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
22706 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
22707 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
22708 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
22709 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
22710 location in call0 ABI.
22711 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
22712 stack adjustment size when handling exception.
22713 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
22714 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
22716 ("return" pattern): Generate ret.n/ret in call0 ABI.
22717 ("epilogue" pattern): Expand epilogue.
22718 ("nonlocal_goto" pattern): Use default in call0 ABI.
22719 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
22720 emit eh_set_a0_* depending on ABI.
22721 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
22722 ("eh_set_a0_call0", "blockage"): New patterns.
22724 2015-03-03 Martin Liska <mliska@suse.cz>
22727 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
22729 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22732 * config/rs6000/rs6000-tables.opt: Regenerate table.
22734 2015-03-03 Renlin Li <renlin.li@arm.com>
22736 * doc/md.texi (@item ^): Change ? into ^.
22738 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
22740 * doc/tm.texi: Regenerated.
22742 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22744 * builtins.c (expand_builtin_return_addr): Add
22745 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
22746 surrounding #ifdef.
22747 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
22749 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
22751 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
22753 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
22756 2015-03-03 Martin Jambor <mjambor@suse.cz>
22757 Eric Botcazou <ebotcazou@adacore.com>
22759 * tree-sra.c (ipa_sra_check_caller_data): New type.
22760 (has_caller_p): Removed.
22761 (ipa_sra_check_caller): New function.
22762 (ipa_sra_preliminary_function_checks): Use it.
22764 2015-03-03 Martin Liska <mliska@suse.cz>
22766 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
22767 instead of if branch.
22769 2015-03-03 Martin Liska <mliska@suse.cz>
22772 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
22774 2015-03-23 Jeff Law <law@redhat.com>
22776 PR tree-optimization/65241
22777 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
22778 hash table if INSERT is true.
22780 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22783 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
22785 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22788 * config/avr/avr.c (context.h, tree-pass.h): Include them.
22789 (avr_pass_data_recompute_notes): New static variable.
22790 (avr_pass_recompute_notes): New class.
22791 (avr_register_passes): New static function.
22792 (avr_option_override): Call it.
22794 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22796 Fix various problems with specs file generation.
22799 * config.gcc (extra_gcc_objs) [avr]: Remove.
22800 * config/avr/driver-avr.c: Remove file.
22801 * config/avr/t-avr (driver-avr.o): Remove rule.
22802 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
22803 INCLUDES to build. Depend on TM_H.
22804 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
22805 build warnings. Fix non-matching types and non-existing %-codes.
22807 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
22808 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
22809 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
22810 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
22811 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
22812 (LIBGCC_SPEC): Remove definitions.
22814 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22816 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
22817 to create a register in testing mode.
22819 2015-03-03 Martin Liska <mliska@suse.cz>
22820 Jan Hubicka <hubicka@ucw.cz>
22823 * cgraph.c (cgraph_node::has_thunk_p): New function.
22824 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
22825 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
22826 (sem_function::merge): Assert is changed.
22828 2015-03-03 Martin Liska <mliska@suse.cz>
22829 Martin Jambor <mjambor@suse.cz>
22832 * ipa-icf.c (sem_item_optimizer::execute): Change function
22833 return value to boolean.
22834 (sem_item_optimizer::merge_classes): Likewise.
22835 (ipa_icf_driver): Return TODO_remove_functions in case there's
22836 a merge operation processed.
22837 * ipa-icf.h: Change function return value to boolean.
22839 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22842 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
22843 processor type for 64-bit little endian PowerPC.
22845 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22846 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
22847 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
22848 printing built-in mask so it does not pass NULL pointers.
22850 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
22853 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
22856 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
22857 !ISA_HAS_FP_CONDMOVE.
22859 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
22861 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
22864 2015-03-02 Ulrich Drepper <drepper@gmail.com>
22866 * doc/invoke.texi (Options for Code Generation Conventions):
22867 Fix URL of DSO paper.
22869 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22872 * ipa-inline.c (check_callers): Looks for recursion.
22873 (inline_to_all_callers): Give up on uninlinable or recursive edges.
22874 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
22875 summary of inline clones.
22876 (do_estimate_growth_1): Fix recursion check.
22878 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22881 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
22884 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22885 Aldy Hernandez <aldyh@redhat.com>
22888 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
22889 when checking TYPE_BINFO.
22891 2015-03-02 Richard Biener <rguenther@suse.de>
22894 * ipa-icf-gimple.c: Include builtins.h.
22895 (func_checker::compare_memory_operand): Compare base alignment.
22897 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
22900 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
22901 are never passed by reference.
22903 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
22906 * tree-chkp.c (chkp_check_lower): Don't check against
22907 zero bounds for already instrumented functions.
22908 (chkp_check_upper): Likewise.
22909 (chkp_fini): Clean pass local data to avoid wrong reusage.
22911 2015-02-28 Martin Liska <mliska@suse.cz>
22912 Jan Hubicka <hubicka@ucw.cz>
22914 * ipa-icf.c (sem_variable::equals): Improve debug output;
22915 get variable constructor.
22916 (sem_variable::parse): Do not filter out too early; give up on
22917 volatile and register vars.
22918 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
22920 * ipa-icf.h (sem_variable::init): Do not set ctor.
22921 (sem_variable::ctor): Remove.
22923 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
22925 PR middle-end/65233
22926 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
22928 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22930 * ipa-icf.c: Include stor-layout.h
22931 (sem_function::compare_cgraph_references): Rename to ...
22932 (sem_item::compare_cgraph_references): ... this one.
22933 (sem_variable::equals_wpa): New function
22934 (sem_variable::equals): Do not check stuff already verified by
22936 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
22937 * ipa-icf.h (sem_item): Add compare_cgraph_references.
22938 (sem_function): Remove compare_cgraph_references.
22939 (sem_variable): Turns equals_wpa into non-inline.
22941 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22943 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
22944 (sem_item::add_expr): New function.
22945 (sem_function::hash_stmt): Handle operands of most statements.
22946 (sem_variable::get_hash): Hash the actual constructor.
22947 * ipa-icf.h (sem_item): Add add_expr.
22948 (sem_function): Update prototype of hash_stmt
22950 2015-02-28 Martin Liska <mliska@suse.cz>
22951 Jan Hubicka <hubicka@ucw.cz>
22954 * ipa-icf-gimple.c (func_checker::compare_function_decl):
22956 (func_checker::compare_variable_decl): Skip symtab vars.
22957 (func_checker::compare_cst_or_decl): Update.
22958 * ipa-icf.c (sem_function::parse): Do not consider aliases.
22959 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
22960 use correct symtab predicates.
22961 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
22962 (sem_variable::parse): Update comment.
22963 (sem_item_optimizer::build_graph): Consider ultimate aliases
22966 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22968 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
22971 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22973 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
22974 (sem_variable::merge) Likewise.
22976 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22978 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
22979 target; also match flag_ipa_devirt.
22981 2015-03-01 Martin Liska <mliska@suse.cz>
22982 Jan Hubicka <hubicka@ucw.cz>
22984 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
22985 Validate variable alignment.
22986 * ipa-icf.c (sem_function::equals_private): Be more precise
22987 about non-common function attributes.
22988 (sem_variable::equals): Likewise.
22990 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22993 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
22994 across COMDAT group boundary.
22996 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22999 * ipa-icf.c (clear_decl_rtl): New function.
23000 (sem_function::merge): Clear RTL before forming alias.
23001 (sem_variable::merge): Clear RTL before forming alias.
23003 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23006 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
23008 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
23010 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
23013 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23015 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
23016 a typo in the description.
23018 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23021 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23022 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23023 * lra-constraints.c: Include "params.h".
23024 (EBB_PROBABILITY_CUTOFF): Use
23025 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
23026 (lra_inheritance): Use '<' instead of '<=' for
23027 EBB_PROBABILITY_CUTOFF.
23028 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
23031 2015-02-27 Martin Liska <mliska@suse.cz>
23033 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
23034 vector length condition.
23036 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
23038 * doc/extend.texi (x86 transactional memory intrinsics):
23039 Reorganize discussion of _xbegin. Clarify that the return
23040 value is a bit mask. Expand example and move to end of section.
23042 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23043 Aldy Hernandez <aldyh@redhat.com>
23045 PR rtl-optimization/65220
23046 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
23048 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23051 * lra-remat.c (update_scratch_ops): New.
23052 (do_remat): Call it.
23053 * lra.c (lra_register_new_scratch_op): New. Take code from ...
23054 (remove_scratches): ... here.
23055 * lra-int.h (lra_register_new_scratch_op): New prototype.
23057 2015-02-27 Marek Polacek <polacek@redhat.com>
23060 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
23061 -Wformat-signedness anymore.
23063 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23065 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
23067 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
23069 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23071 * config/s390/s390.c (enum s390_builtin):
23072 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
23073 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
23074 (s390_init_builtins): Generate new builtin functions.
23075 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
23076 (s390_sfpc, s390_efpc): New pattern definitions.
23078 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23080 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
23081 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
23082 (s390_builtin_decls): New array.
23083 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
23084 (s390_builtin_decl): New function.
23085 (TARGET_BUILTIN_DECL): Define macro.
23087 2015-02-27 Richard Biener <rguenther@suse.de>
23089 PR middle-end/63175
23090 * builtins.c (get_object_alignment_2): Make sure to re-apply
23091 the ANDed mask after recursing to its operand gets us a new
23092 misalignment bit position.
23094 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
23095 Martin Liska <mliska@suse.cz>
23098 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
23099 Use address_matters_p.
23100 (redirect_all_callers, set_addressable): New functions.
23101 (sem_function::merge): Reorganize and fix merging issues.
23102 (sem_variable::merge): Likewise.
23103 (sem_variable::compare_sections): Remove.
23104 * common.opt (fmerge-all-constants, fmerge-constants): Remove
23106 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
23108 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
23110 (address_matters_1): New function.
23111 (symtab_node::address_matters_p): New function.
23112 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
23113 check for merged flag.
23114 * cgraph.h (address_matters_p): Declare.
23115 (symtab_node::address_taken_from_non_vtable_p): Remove.
23116 (symtab_node::address_can_be_compared_p): New method.
23117 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
23118 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
23120 (comdat_can_be_unshared_p_1) Use address_matters_p.
23121 (update_vtable_references): Fix formating.
23122 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
23123 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
23124 * cgraphclones.c: Preserve merged and icf_merged flags.
23126 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
23128 * doc/extend.texi (Function Attributes): Fix spelling and typos.
23129 (Label Attributes): Likewise.
23130 (Cilk Plus Builtins): Likewise.
23131 (ARC SIMD Built-in Functions): Likewise.
23132 (ARM C Language Extensions (ACLE)): Likewise.
23133 (PowerPC Built-in Functions): Likewise.
23134 (PowerPC Hardware Transactional Memory Built-in Functions):
23137 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23139 PR tree-optimization/65216
23140 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
23141 new stmt and new SSA_NAME for lhs whenever the arguments have
23142 changed and weren't just swapped. Fix comment typo.
23144 PR tree-optimization/65215
23145 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
23146 for PDP endian targets.
23147 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
23148 Fix up formatting issues.
23149 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
23150 size is smaller than the original, adjust MEM_REF offset by the
23151 difference of sizes. Use is_gimple_mem_ref_addr instead of
23152 is_gimple_min_invariant test to avoid adding address temporaries.
23154 2015-02-26 Martin Liska <mliska@suse.cz>
23155 Jan Hubicka <hubicka@ucw.cz>
23158 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
23159 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
23160 (sem_item_optimizer::process_cong_reduction): Include division by
23161 sensitive references.
23162 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
23163 * ipa-ref.c (ipa_ref::address_matters_p): New function.
23164 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
23166 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
23169 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
23171 * config/avr/avr.c: Same.
23172 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
23173 Refuse any constant address not in 0..0xbf.
23174 * config/avr/avr.md (*mov<mode>, *movsf): Remove
23175 tiny_valid_direct_memory_access_range from insn conditions.
23176 (mov<mode>): Don't special-case expansion of avrtiny addresses.
23178 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
23181 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
23182 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
23183 * config/sh/predicates.md (const_logical_operand): New predicate.
23184 * config/sh/sh.md: Add new peephole2 patterns.
23186 2015-02-26 Marek Polacek <polacek@redhat.com>
23189 * ipa-inline.c (early_inliner): Recompute inline parameters.
23191 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23194 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
23195 instructions with TImode operands are included in the analysis.
23197 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23199 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
23200 of an EDGE_FSM_THREAD.
23202 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
23204 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
23206 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
23209 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
23211 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23213 PR tree-optimization/65048
23214 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
23215 (thread_through_all_blocks): Call valid_jump_thread_path.
23216 Remove invalid FSM jump-thread paths.
23218 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23220 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
23221 (ipa_write_optimization_summaries): Likewise.
23222 * tree-streamer.h: Include data-streamer.h.
23223 (streamer_mode_table): Declare extern variable.
23224 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
23225 * lto-streamer-out.c (lto_output_init_mode_table,
23226 lto_write_mode_table): New functions.
23227 (produce_asm_for_decls): Call lto_write_mode_table when streaming
23229 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
23230 (lto_create_simple_input_block): Add mode_table argument to the
23231 lto_input_block constructors.
23232 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
23234 * data-streamer-in.c (string_for_index): Likewise.
23235 * ipa-inline-analysis.c (inline_read_section): Likewise.
23236 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
23237 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
23238 * lto-streamer-in.c (lto_read_body_or_constructor,
23239 lto_input_toplevel_asms): Likewise.
23240 (lto_input_mode_table): New function.
23241 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
23242 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
23243 Use bp_pack_machine_mode.
23244 * real.h (struct real_format): Add name field.
23245 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
23246 (class lto_input_block): Add mode_table member.
23247 (lto_input_block::lto_input_block): Add mode_table_ argument,
23248 initialize mode_table.
23249 (struct lto_file_decl_data): Add mode_table field.
23250 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
23251 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
23252 unpack_ts_decl_common_value_fields,
23253 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
23254 * tree-streamer.c (streamer_mode_table): New variable.
23255 * real.c (ieee_single_format, mips_single_format,
23256 motorola_single_format, spu_single_format, ieee_double_format,
23257 mips_double_format, motorola_double_format,
23258 ieee_extended_motorola_format, ieee_extended_intel_96_format,
23259 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
23260 ibm_extended_format, mips_extended_format, ieee_quad_format,
23261 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
23262 decimal_single_format, decimal_double_format, decimal_quad_format,
23263 ieee_half_format, arm_half_format, real_internal_format): Add name
23265 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
23267 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
23270 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
23271 reordering for selective scheduling.
23273 2015-02-26 Terry Guo <terry.guo@arm.com>
23275 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
23276 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
23277 (arm_arch_no_volatile_ce): Declare new global variable.
23278 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
23279 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
23280 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
23281 (TARGET_NO_VOLATILE_CE): New macro.
23282 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
23283 volatile memory access in IT block
23285 2015-02-25 Kai Tietz <ktietz@redhat.com>
23287 PR tree-optimization/61917
23288 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
23289 that reduc_def_stmt is null.
23291 2015-02-25 Martin Liska <mliska@suse.cz>
23293 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
23294 hard register variables.
23296 2015-02-25 Kai Tietz <ktietz@redhat.com>
23299 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
23300 (symtab::noninterposable_alias): Likewise.
23302 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
23305 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
23307 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
23309 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
23312 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
23313 as split condition; force split via '#' in output pattern.
23315 2015-02-25 Richard Biener <rguenther@suse.de>
23316 Kai Tietz <ktietz@redhat.com>
23318 PR tree-optimization/61917
23319 * tree-vect-loop.c (vectorizable_reduction): Allow
23320 vect_internal_def without reduction to exit graceful.
23322 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23325 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
23326 only with NONDEBUG_INSN_P.
23328 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23330 Use variadic macros with avr-log.c.
23332 * config/avr/avr-protos.h (avr_vdump): New prototype.
23333 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
23334 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
23335 * config/avr/avr-log.c: Adjust comments.
23336 (avr_vdump): New function.
23337 (avr_vadump): Pass caller as 2nd argument instead of format string.
23338 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
23339 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
23341 2015-02-25 Jakub Jelinek <jakub@redhat.com>
23344 * target.def (target_option_stream_in): New target hook.
23345 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
23346 targetm.target_option.post_stream_in if non-NULL.
23347 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
23348 * doc/tm.texi: Updated.
23349 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
23351 (TARGET_OPTION_POST_STREAM_IN): Redefine.
23353 2015-02-24 Jeff Law <law@redhat.com>
23356 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
23357 of operand 0 and operand 2.
23358 (zero_cost_loop_end, loop_end): Similarly.
23360 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
23362 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
23365 2015-02-24 DJ Delorie <dj@redhat.com>
23367 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
23368 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
23369 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
23370 instead of hardcoding SImode.
23372 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
23374 * omp-low.c (create_omp_child_function): Tag entrypoint
23375 functions with a special attribute.
23377 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23380 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
23382 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
23384 PR rtl-optimization/65123
23385 * lra-remat.c (operand_to_remat): Check hard regs in insn
23388 2015-02-24 Nick Clifton <nickc@redhat.com>
23390 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
23393 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
23396 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
23397 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
23398 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
23399 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
23400 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
23401 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
23402 (BUILT_IN_GOACC_PARALLEL): Specify as
23403 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
23404 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
23405 * builtin-types.def
23406 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23407 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23408 Remove function types.
23409 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
23410 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23411 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23412 New function types.
23414 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
23416 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
23418 2015-02-24 Jakub Jelinek <jakub@redhat.com>
23420 PR tree-optimization/65170
23421 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
23422 if val[1] < 0, clear also val[2] and return 3.
23424 2015-02-24 Alan Modra <amodra@gmail.com>
23427 * config/rs6000/rs6000.c (get_memref_parts): Only return true
23428 when *base is a reg. Handle nested plus addresses. Simplify
23431 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
23433 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
23434 use natural alignment when optimizing for size.
23436 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
23439 * config/sh/sh.md (movsicc_true+3): Remove peephole.
23440 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
23441 * config/sh/sh.c (replace_n_hard_rtx): Remove.
23443 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
23446 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
23447 too big for a wide_int. Implement missing wrapping operation.
23449 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
23452 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
23453 instead of const_int 4294901760.
23455 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
23457 * config/avr/t-avr: Fix typo in comment.
23459 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
23461 * doc/rtl.texi (fma): Clarify documentation.
23463 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
23466 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
23467 over input_location.
23469 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23471 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
23472 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
23473 restrict alignments to absolute_biggest_alignment.
23474 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
23476 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
23477 * doc/tm.texi: Regenerate.
23478 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
23480 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
23483 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
23485 2015-02-20 Richard Biener <rguenther@suse.de>
23487 PR tree-optimization/65136
23488 * tree-ssa-propagate.c: Include cfgloop.h.
23489 (replace_phi_args_in): Avoid replacing loop latch edge PHI
23490 arguments with constants.
23492 2015-02-20 Jakub Jelinek <jakub@redhat.com>
23493 Martin Liska <mliska@suse.cz>
23496 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
23497 don't try to create_thunk if stdarg_p. If
23498 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
23499 redirect_callers if possible.
23500 (sem_item_optimizer::execute): Call unregister_hooks here...
23501 (ipa_icf_driver): ... instead of here.
23503 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23505 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
23506 Mark operand 0 as earlyclobber in 2nd alternative.
23507 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
23508 Write negated shift amount into QI lowpart operand 0 and use it
23510 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23512 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23514 * cgraph.h (clone_function_name_1): Declare.
23515 * cgraphclones.c (clone_function_name_1): New function.
23516 (clone_function_name): Use it.
23517 * lto-partition.c: Include "stringpool.h".
23518 (must_not_rename, maybe_rewrite_identifier)
23519 (validize_symbol_for_target): New static functions.
23520 (privatize_symbol_name): Use must_not_rename.
23521 (promote_symbol): Call validize_symbol_for_target.
23522 (lto_promote_cross_file_statics): Likewise.
23523 (lto_promote_statics_nonwpa): Likewise.
23525 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
23528 * config/avr/avr.md (pushhi_insn): New insn.
23529 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
23531 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23532 Jakub Jelinek <jakub@redhat.com>
23534 * tree-streamer.c (preload_common_nodes): Don't preload
23535 TI_VA_LIST* for offloading.
23536 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
23539 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
23541 * config/pa/pa.c (pa_emit_move_sequence): Always force
23542 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
23545 * config/pa/pa.c (pa_reloc_rw_mask): New function.
23546 (TARGET_ASM_RELOC_RW_MASK): Define.
23547 (pa_cannot_force_const_mem): Revert previous change.
23549 2015-02-19 Martin Jambor <mjmabor@suse.cz>
23550 Jan Hubicka <hubicka@ucw.cz>
23553 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
23554 across jump functions.
23556 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
23558 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
23560 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
23562 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
23564 2015-02-19 Richard Henderson <rth@redhat.com>
23566 PR middle-end/65074
23567 * varasm.c (default_binds_local_p_2): Don't test node->definition;
23568 test DECL_EXTERNAL independent of symtab_node.
23570 2015-02-19 Jakub Jelinek <jakub@redhat.com>
23573 * varpool.c (varpool_node::get_constructor): Return early
23574 if this->lto_file_data is NULL.
23576 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23578 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
23579 (rank_for_schedule_debug): Update.
23580 (ready_sort): Make static. Move sorting logic to ...
23581 (ready_sort_debug, ready_sort_real): New static functions.
23582 (schedule_block): Sort both debug insns and real insns in preparation
23583 for ready list trimming. Improve debug output.
23584 * sched-int.h (ready_sort): Remove global declaration.
23586 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
23588 * ipa-icf.c (sem_function::equals_private): Adjust.
23589 (sem_function::bb_dict_test): Take a vec<int> * instead of
23591 * ipa-icf.h (bb_dict_test): Likewise.
23593 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23595 PR gcov-profile/64634
23596 * tree-eh.c (frob_into_branch_around): Fix up typos
23597 in function comment.
23598 (lower_catch): Put eh_seq resulting from EH lowering of
23599 the cleanup sequence after the cleanup rather than before it.
23601 2015-02-18 Tom de Vries <tom@codesourcery.com>
23603 * common.opt (fstdarg-opt): New option.
23604 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
23605 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
23606 (@item -fstdarg-opt): New item.
23608 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
23611 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
23612 for common symbols.
23614 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23616 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
23618 (ALL_HOST_OBJS): Add mkoffload.o.
23619 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
23621 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
23623 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
23624 (compare_virtual_tables): Be smarter about skipping typeinfos;
23625 do sane output on virtual table table mismatch.
23626 (warn_odr): Be ready for forward declarations of enums;
23627 output sane info on base mismatch and virtual table mismatch.
23628 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
23629 when only one type is polymorphic.
23630 (get_odr_type): Fix hashtable corruption.
23631 (dump_odr_type): Dump mangled names.
23633 2015-02-18 Richard Biener <rguenther@suse.de>
23635 PR tree-optimization/65063
23636 * tree-predcom.c (determine_unroll_factor): Return 1 if we
23637 have replaced looparound PHIs.
23639 2015-02-18 Martin Liska <mliska@suse.cz>
23641 * lto-streamer.c (lto_streamer_init): Encapsulate
23642 streamer_check_handled_ts_structures with checking macro.
23644 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23647 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
23648 section if !implicit_section.
23649 (cgraph_node::create_version_clone_with_body): Likewise.
23650 * trans-mem.c (ipa_tm_create_version): Likewise.
23652 2015-02-18 Richard Biener <rguenther@suse.de>
23654 PR tree-optimization/62217
23655 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
23658 2015-02-18 Marek Polacek <polacek@redhat.com>
23661 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
23662 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
23663 is in range [-16K, -1]. Don't issue run-time error if
23664 (ptr > ptr + offset).
23666 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
23668 * doc/install.texi (nvptx-*-none): New section.
23669 * doc/invoke.texi (Nvidia PTX Options): Likewise.
23670 * config/nvptx/nvptx.opt: Update.
23672 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
23673 (access_check): New functions, copied from
23674 config/i386/intelmic-mkoffload.c.
23675 (main): For non-installed testing, look in all COMPILER_PATHs for
23678 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
23680 2015-02-18 Andrew Pinski <apinski@cavium.com>
23681 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
23683 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
23684 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
23686 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23688 * ipa-visibility.c (function_and_variable_visibility): Only
23689 check locality if node is not already local.
23690 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23691 call_for_symbol_and_aliases instead of
23692 call_for_symbol_thunks_and_aliases.
23693 (ipa_inline): Likewise.
23694 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23695 first walk aliases.
23696 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23697 call_for_symbol_and_aliases.
23698 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23699 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23700 (ipa_propagate_frequency): Update.
23701 (ipa_profile): Add opt_for_fn gueards.
23703 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23705 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
23706 * doc/invoke.texi (SH options): Document it.
23707 * config/sh/sh.c (sh_insn_length_adjustment): Check
23708 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
23710 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
23712 * common.opt (fipa-cp-alignment): New.
23713 * ipa-cp.c (ipcp_store_alignment_results): Check
23714 flag_ipa_cp_alignment.
23715 * opts.c (default_options_table): Enable -fipa-cp-alignment for
23717 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
23718 * doc/invoke.texi: Document -fipa-cp-alignment.
23720 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23723 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
23724 to nil. Adjust comments.
23726 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23728 * ipa-visibility.c (function_and_variable_visibility): Only
23729 check locality if node is not already local.
23730 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23731 call_for_symbol_and_aliases instead of
23732 call_for_symbol_thunks_and_aliases.
23733 (ipa_inline): Likewise.
23734 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23735 first walk aliases.
23736 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23737 call_for_symbol_and_aliases.
23738 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23739 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23740 (ipa_propagate_frequency): Update.
23741 (ipa_profile): Add opt_for_fn guards.
23743 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
23745 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
23746 skipping of "strange" tokens.
23748 2015-02-17 Jeff Law <law@redhat.com>
23750 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
23753 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
23755 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
23756 as forcing a HARD_DEP between instructions, thereby
23757 disallowing rewriting to break dependencies.
23759 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23761 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
23762 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
23763 variables in boundary that have no inlitalizer encoded and are
23765 * varasm.c (default_binds_local_p_2): External definitions do not
23766 count as definitions here.
23768 2015-02-16 Jeff Law <law@redhat.com>
23770 PR tree-optimization/64823
23771 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
23773 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23774 threading through blocks with PHIs, but no statements.
23775 (thread_through_normal_block): Distinguish between blocks where
23776 we did not process all the statements and blocks with no statements.
23778 2015-02-16 Jakub Jelinek <jakub@redhat.com>
23779 James Greenhalgh <james.greenhalgh@arm.com>
23782 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
23783 section if not linkonce. Fix up formatting.
23784 (cgraph_node::create_version_clone_with_body): Copy section.
23785 * trans-mem.c (ipa_tm_create_version): Likewise.
23787 2015-02-16 Richard Biener <rguenther@suse.de>
23789 PR tree-optimization/65077
23790 * tree-ssa-structalias.c (get_constraint_for_1): Handle
23791 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
23792 (find_func_aliases): Allow float values to carry pointers again.
23794 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
23796 * doc/install.texi (Specific): Reorder targets list to put
23797 aarch64 in alphabetical order. Add a link to aarch64*-*-*
23800 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23801 David Edelsohn <dje.gcc@gmail.com>
23804 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
23805 mapping class to external variable or function reference.
23806 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
23809 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
23812 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
23813 ASM_WEAKEN_DECL if defined.
23815 2015-02-16 Richard Biener <rguenther@suse.de>
23818 * varasm.c (default_file_start): For LTO produced units
23819 emit <artificial> as file directive.
23821 2015-02-16 Richard Biener <rguenther@suse.de>
23823 PR tree-optimization/63593
23824 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
23825 stmts and releasing SSA names until...
23826 (execute_pred_commoning): ... after processing all chains.
23828 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23831 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
23832 external functions.
23834 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
23836 * doc/bugreport.texi: Adjust section titles throughout the file
23837 to use "Title Case".
23838 * doc/extend.texi: Likewise.
23839 * doc/gcov.texi: Likewise.
23840 * doc/implement-c.texi: Likewise.
23841 * doc/implement-cxx.texi: Likewise.
23842 * doc/invoke.texi: Likewise.
23843 * doc/objc.texi: Likewise.
23844 * doc/standards.texi: Likewise.
23845 * doc/trouble.texi: Likewise.
23847 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
23849 * cgraph.h (symtab_node::has_aliases_p): Simplify.
23850 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
23851 * tree.c (lookup_binfo_at_offset): Make static.
23852 (get_binfo_at_offset): Do not shadow offset; add explanatory
23855 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
23857 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
23858 for all floading point loads and stores except those using a register
23860 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
23863 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
23865 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
23866 (do_estimate_growth_1): Record if any uninlinable edge was seen.
23867 (estimate_growth): Handle uninlinable edges correctly.
23868 (check_callers): New.
23869 (growth_likely_positive): Handle aliases correctly.
23871 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
23873 * ipa-chkp.c: Use iterate_direct_aliases.
23874 * symtab.c (resolution_used_from_other_file_p): Move inline.
23875 (symtab_node::create_reference): Fix formating.
23876 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23877 (symtab_node::iterate_reference): Move inline.
23878 (symtab_node::iterate_referring): Move inline.
23879 (symtab_node::iterate_direct_aliases): Move inline.
23880 (symtab_node::used_from_object_file_p_worker): Inline into ...
23881 (symtab_node::used_from_object_file_p): ... this one; move inline.
23882 (symtab_node::call_for_symbol_and_aliases): Move inline;
23883 use iterate_direct_aliases.
23884 (symtab_node::call_for_symbol_and_aliases_1): New method.
23885 (cgraph_node::call_for_symbol_and_aliases): Move inline;
23886 use iterate_direct_aliases.
23887 (cgraph_node::call_for_symbol_and_aliases_1): New method.
23888 (varpool_node::call_for_node_and_aliases): Rename to ...
23889 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
23890 use iterate_direct_aliases.
23891 (varpool_node::call_for_symbol_and_aliases_1): New method.
23892 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
23893 (ipa_discover_readonly_nonaddressable_var): Update.
23894 * ipa-devirt.c: Fix formating.
23895 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
23897 (cgraph_node::call_for_symbol_and_aliases): Move inline.
23898 (cgraph_node::call_for_symbol_and_aliases_1): New function..
23899 * cgraph.h (used_from_object_file_p_worker): Remove.
23900 (resolution_used_from_other_file_p): Move inline.
23901 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23902 (symtab_node::iterate_reference): Move inline.
23903 (symtab_node::iterate_referring): Move inline.
23904 (symtab_node::iterate_direct_aliases): Move inline.
23905 (symtab_node::used_from_object_file_p_worker): Inline into ...
23906 (symtab_node::used_from_object_file_p): Move inline.
23907 * tree-emutls.c (ipa_lower_emutls): Update.
23908 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
23909 (varpool_node::call_for_node_and_aliases): Remove.
23911 2015-02-14 Jakub Jelinek <jakub@redhat.com>
23913 PR tree-optimization/62209
23914 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
23915 op == range->exp, insert seq and gimplified code after labels
23916 instead of after the phi.
23918 2015-02-13 Jeff Law <law@redhat.com>
23921 Revert my change for tree-optimization/64823.
23923 2015-02-13 Jakub Jelinek <jakub@redhat.com>
23925 PR tree-optimization/65053
23926 * tree-ssa-phiopt.c (value_replacement): When moving assign before
23927 cond, either reset VR on lhs or set it to phi result VR.
23929 2015-02-13 Jeff Law <law@redhat.com>
23931 PR tree-optimization/64823
23932 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
23933 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23934 threading through blocks with PHIs, but no statements.
23935 (thread_through_normal_block): Distinguish between blocks where
23936 we did not process all the statements and blocks with no statements.
23938 PR rtl-optimization/47477
23939 * match.pd (convert (plus/minus (convert @0) (convert @1): New
23940 simplifier to narrow arithmetic.
23942 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
23945 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
23946 polymorphic call info when type is not known to be preserved.
23948 2015-02-13 Maritn Jambor <mjambor@suse.cz>
23951 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
23952 (inline_call): Use it.
23954 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
23956 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
23957 GOMP_DEVICE_NVIDIA_PTX.
23959 2015-02-13 Jakub Jelinek <jakub@redhat.com>
23962 * stmt.c (emit_case_nodes): Use void_type_node instead of
23963 NULL_TREE as LABEL_DECL type.
23965 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
23967 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
23969 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
23970 symbolic references to data to be forced to constant memory on the
23973 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
23975 PR tree-optimization/65002
23976 * tree-cfg.c (pass_data_fixup_cfg): Don't update
23978 * tree-sra.c (some_callers_have_no_vuse_p): New.
23979 (ipa_early_sra): Reject functions whose callers
23980 assume function is read only.
23982 2015-02-13 Richard Biener <rguenther@suse.de>
23985 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
23986 for LTO produced CUs.
23988 2015-02-13 Bin Cheng <bin.cheng@arm.com>
23990 PR tree-optimization/64705
23991 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
23992 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
23993 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
23994 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
23995 expand_simple_operations.
23997 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
23998 Richard Henderson <rth@redhat.com>
24001 * cgraphunit.c (cgraph_node::finalize_function): Set definition
24002 before notice_global_symbol.
24003 (varpool_node::finalize_decl): Likewise.
24004 * varasm.c (default_binds_local_p_2): Rename from
24005 default_binds_local_p_1, add weak_dominate argument. Use direct
24006 returns instead of assigning to local variable. Unify varpool and
24007 cgraph paths via symtab_node. Reject undef weak variables before
24008 testing visibility. Reorder tests for simplicity.
24009 (default_binds_local_p): Use default_binds_local_p_2.
24010 (default_binds_local_p_1): Likewise.
24011 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
24013 (default_elf_asm_output_external): Emit visibility when specified.
24015 2015-02-13 Alan Modra <amodra@gmail.com>
24017 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
24018 code setting up r11 for out-of-line fp restore.
24020 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
24022 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
24023 (muser-mode): Likewise.
24025 2015-02-13 Alan Modra <amodra@gmail.com>
24027 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
24028 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
24030 2015-02-12 David Howells <dhowells@redhat.com>
24032 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
24034 * tree-ssa-uninit.c (dump_predicates): Likewise.
24035 * opts.c (print_filtered_help): Likewise.
24037 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24039 * dwarf2out.c (output_die): Use "%s", name instead of name to
24040 avoid -Wformat-security warning.
24042 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
24043 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24044 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
24045 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24047 2015-02-12 Jason Merrill <jason@redhat.com>
24049 * common.opt (-flifetime-dse): New.
24051 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24054 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
24056 PR tree-optimization/65014
24057 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
24058 use original second operand of arg0 or arg1 instead of
24059 that adjusted by STRIP_NOPS.
24061 2015-02-11 Jeff Law <law@redhat.com>
24064 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
24065 that needs to be queued, just queue it for a single cycle.
24067 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
24069 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
24070 bodies of thunks; comment on why.
24071 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
24072 symbols are extern.
24074 2015-02-11 Richard Henderson <rth@redhat.com>
24077 * tree-eh.c (mark_reachable_handlers): Mark source and destination
24078 regions of __builtin_eh_copy_values.
24080 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24082 PR middle-end/65003
24083 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
24084 ultimate alias is MEM with SYMBOL_REF satisfying
24085 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
24086 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
24088 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
24090 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
24091 "diagnostic-core.h".
24092 (main): Initialize progname, and call diagnostic_initialize.
24094 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
24095 instead of __OPENMP_TARGET__.
24097 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
24098 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
24099 hard-coding PTX_ID.
24101 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
24103 * doc/sourcebuild.texi (pie_enabled): Document.
24105 2015-02-11 Martin Liska <mliska@suse.cz>
24108 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
24109 a return value for call to a function that is noreturn.
24111 2015-02-11 Richard Biener <rguenther@suse.de>
24114 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
24117 2015-02-11 Andrew Pinski <apinski@cavium.com>
24120 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
24121 Change the first argument type to size_type_node and add another
24123 (aarch64_simd_expand_builtin): Handle the new argument to
24124 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
24125 print an out when the first two arguments are not
24126 nonzero integer constants.
24127 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24128 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
24130 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24133 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
24134 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
24135 (ix86_set_current_function): Rewritten.
24136 (ix86_add_new_builtins): Temporarily clear current_target_pragma
24137 when creating builtin fndecls.
24139 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24142 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
24144 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
24145 have no comdat group.
24146 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
24147 (lto_output_varpool_node): Always output alias info.
24148 (output_refs): Output refs of boundary aliases, too.
24149 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
24150 (output_symtab): Output call eges in thunks in boundary.
24151 (get_alias_symbol): Remove.
24152 (input_node, input_varpool_node): Do not special case weakrefs.
24153 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
24154 alias and thunks targets in the boundary; do not take removed symbols
24155 from their comdat groups.
24156 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
24157 (cgraph_node::global_info): Remove.
24158 (cgraph_node::rtl_info): Look through aliases and thunks.
24159 * cgrpah.h (global_info): Remove.
24160 (non_local_p): Remove.
24162 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24163 Sandra Loosemore <sandra@codesourcery.com>
24165 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
24166 to inline asm. List dialects in proper order.
24168 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24169 Sandra Loosemore <sandra@codesourcery.com>
24171 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
24173 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24175 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
24176 modified) reference to Solaris.
24178 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
24180 * doc/extend.texi (Extended Asm): Fix typos.
24182 2015-02-10 Jakub Jelinek <jakub@redhat.com>
24185 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
24187 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
24190 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
24191 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
24192 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
24193 * config/sh/constraints.md (Ara, Add): New constraints.
24194 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
24196 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
24197 atomic_mem_operand_0. Don't use force_reg on the memory address.
24198 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
24199 Sra constraint. Convert to insn_and_split. Add workaround for
24201 (atomic_compare_and_swap<mode>_hard): Copy to
24202 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
24203 Use atomic_mem_operand_0 predicate.
24204 (atomic_compare_and_swap<mode>_soft_gusa,
24205 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
24206 AraAdd constraints.
24207 (atomic_compare_and_swap<mode>_soft_tcb,
24208 atomic_compare_and_swap<mode>_soft_imask,
24209 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
24210 atomic_mem_operand_0 predicate and SraSdd constraints.
24211 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
24213 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
24214 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
24215 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
24216 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
24217 force_reg on the memory address.
24218 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
24219 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
24220 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
24221 atomic_mem_operand_1 predicate and Sra constraint.
24222 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
24223 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24224 Use atomic_mem_operand_1 predicate.
24225 (atomic_<fetchop_name><mode>_hard): Copy to
24226 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24227 Use atomic_mem_operand_1 predicate.
24228 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
24229 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24230 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
24231 insn_and_split. Use atomic_mem_operand_1 predicate.
24232 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
24233 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
24234 Use atomic_mem_operand_1 predicate.
24235 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
24236 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24237 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
24238 in generated insn with original mem operand before emitting the insn.
24239 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
24240 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
24241 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
24242 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
24243 Use atomic_mem_operand_1 predicate and AraAdd constraints.
24244 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
24245 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
24246 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
24247 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
24248 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
24249 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
24250 atomic_not_fetch<mode>_soft_tcb,
24251 atomic_<fetchop_name>_fetch<mode>_soft_imask,
24252 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
24253 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
24254 Use atomic_mem_operand_1 predicate and SraSdd constraints.
24256 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
24258 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
24259 and 3 earlyclobber operands.
24261 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24263 * common.opt (fstack-reuse): Mark as optimization.
24265 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24268 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
24270 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
24272 PR tree-optimization/64326
24273 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
24275 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
24277 PR gcov-profile/61889
24278 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
24280 2015-02-10 Richard Biener <rguenther@suse.de>
24282 PR tree-optimization/64995
24283 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
24284 value we use is final.
24285 (visit_reference_op_store): Always valueize op.
24286 (visit_use): Properly valueize vuses.
24288 2015-02-10 Richard Biener <rguenther@suse.de>
24290 PR tree-optimization/64909
24291 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
24292 pass a scalar-stmt count estimate to the cost model.
24293 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
24295 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
24297 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
24298 enabled by default together with var-tracking.
24300 2015-02-10 Nick Clifton <nickc@redhat.com>
24302 * config/rl78/rl78.c: Remove DIV attribute code accidentally
24303 included in previous rl78 commit.
24305 2015-02-10 Richard Biener <rguenther@suse.de>
24307 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
24308 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
24309 return the bitpack.
24311 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24313 PR gcov-profile/61889
24314 * config.in: regenerate.
24315 * configure.in: Likewise.
24316 * configure.ac: Check for ftw.h.
24317 * gcov-tool.c: Check for ftw.h before using nftw.
24319 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24322 * ipa-visibility.c (update_visibility_by_resolution_info): Only
24323 assert when not in lto mode.
24325 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24327 * ira-color.c (setup_left_conflict_sizes_p): Simplify
24328 initialization/assignment of conflict_size.
24330 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
24333 * ipa-cp.c (gather_caller_stats): Skip thunks.
24334 (propagate_constants_topo): Skip aliases.
24336 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
24339 * config/sh/sh.c (sh_option_override): Don't change
24340 -freorder-blocks-and-partition to -freorder-blocks even when
24341 unwinding is enabled.
24342 (sh_can_follow_jump): Return false if the followee jump is
24343 a crossing jump when -freorder-blocks-and-partition is specified.
24344 * config/sh/sh.md (*jump_compact_crossing): New insn.
24346 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
24347 Kaz Kojima <kkojima@gcc.gnu.org>
24350 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
24351 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
24352 (sh_can_redirect_branch): Rename to ...
24353 (sh_can_follow_jump): ... this. Constify argument types.
24354 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
24355 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
24356 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
24357 * doc/tm.texi: Regenerate.
24359 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24362 * builtins.c (expand_builtin): Call targetm.expand_builtin
24363 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
24365 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24368 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
24370 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24373 * ipa-icf.c (set_local): New function.
24374 (sem_function::merge): Use it.
24376 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24378 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
24379 (add_type_duplicate): Fix comparison of BINFOs.
24381 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24383 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
24384 on getting VOID pointer.
24386 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24389 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
24392 2015-02-09 Richard Biener <rguenther@suse.de>
24394 * genmatch.c (replace_id): Copy expr_type.
24396 2015-02-09 Richard Biener <rguenther@suse.de>
24398 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
24399 (streamer_write_tree_bitfields): Declare.
24400 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
24401 properly unpack padding.
24402 (unpack_value_fields): Inline ...
24403 (streamer_read_tree_bitfields): ... here.
24404 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
24405 and properly add padding bits.
24406 (streamer_pack_tree_bitfields): Fold into ...
24407 (streamer_write_tree_bitfields): ... this new function,
24408 exposing the bitpack object.
24409 * lto-streamer-out.c (lto_write_tree_1): Call
24410 streamer_write_tree_bitfields.
24412 2015-02-09 Richard Biener <rguenther@suse.de>
24414 PR tree-optimization/54000
24415 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
24416 (struct ivopts_data): Add loop_loc member.
24417 (tree_ssa_iv_optimize_loop): Dump loop location.
24418 (create_new_ivs): Likewise, also dump number of IVs generated.
24420 2015-02-09 Martin Liska <mliska@suse.cz>
24422 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
24423 just if not yet registered.
24424 (ipa_icf_generate_summary): Register callgraph hooks.
24426 2015-02-08 Andrew Pinski <apinski@cavium.com>
24428 * config/aarch64/aarch64.c (gty_dummy): Delete.
24430 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24433 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
24434 (cgraph_node::local_p): Remove thunk related FIXME.
24436 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24439 * i386.c (ix86_function_regparm): Look through aliases to see if callee
24440 is local and optimized.
24441 (ix86_function_sseregparm): Likewise; also use target's SSE math
24442 settings; error out instead of silently generating wrong code
24444 (init_cumulative_args): Look through aliases.
24446 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24449 * ipa-split.c (execute_split_functions): Split if function has aliases.
24451 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24454 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
24455 aliases before trying to expand it.
24456 (cgraph_node::expand_thunk): Fix formating.
24458 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
24460 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
24461 (Using Assembly Language with C): Expand introduction.
24462 (Basic Asm): Copy-edit. Add more information about uses of
24464 (Extended Asm): Copy-edit. Document new escape syntax and
24466 (Global Reg Vars): Copy-edit.
24467 (Local Reg Vars): Likewise.
24469 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
24473 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
24474 (DBX_CONTIN_CHAR): Define.
24476 2015-02-06 Sebastian Pop <s.pop@samsung.com>
24477 Brian Rzycki <b.rzycki@samsung.com>
24479 PR tree-optimization/64878
24480 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
24481 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
24482 Stop recursion at loop phi nodes after having visited a loop phi node.
24484 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24486 * toplev.c (process_options): Change flag_ipa_ra before creating
24487 optimization_{default,current}_node.
24490 * cgraphunit.c (cgraph_node::expand_thunk): If
24491 restype is not is_gimple_reg_type nor the thunk_fndecl
24492 returns aggregate_value_p, set restmp to a temporary variable
24493 instead of resdecl.
24495 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
24497 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
24499 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24502 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
24503 add a general secondary reload handler for SDmode, unless we have
24504 both read/write support for SDmode.
24506 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24508 PR middle-end/64937
24509 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
24510 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
24511 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
24512 1 before, push it to abstract_vec.
24513 (dwarf2out_abstract_function): Adjust caller. Don't call
24514 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
24515 DECL_ABSTRACT_P flags for all abstract_vec elts.
24517 2015-02-06 Renlin Li <renlin.li@arm.com>
24519 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
24521 * tree-ssa.c (execute_update_addresses_taken): Likewise.
24523 2015-02-06 Jeff Law <law@redhat.com>
24526 * config/h8300/h8300.c (push): New argument "in_prologue".
24527 Pass "in_prologue" along to "F".
24528 (h8300_push_pop): Corresponding changes.
24529 (h8300_expand_prologue): Likewise.
24530 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
24532 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24534 PR rtl-optimization/64957
24536 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
24537 IOR rather than for AND.
24539 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
24542 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
24543 of shift-add and (add + shift) operations. Rename local variable.
24545 2015-02-05 Jeff Law <law@redhat.com>
24548 * config/h8300/constraints.md (U): Correctly dectect
24549 "eightbit_data" memory addresses.
24550 * config/h8300/h8300.c (eightbit_constant_address_p): Also
24551 handle (const (plus (symbol_ref (x)))) where x is declared
24552 as an 8-bit data memory address.
24553 * config/h8300/h8300.md (call, call_value): Correctly detect
24554 "funcvec" functions.
24557 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
24558 24 to 28 bits for the H8/300.
24560 2015-02-06 Alan Modra <amodra@gmail.com>
24563 * config/rs6000/rs6000.c (chain_already_loaded): New function.
24564 (rs6000_call_aix): Use it.
24566 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
24568 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
24571 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
24573 * config/h8300/constraints.md ("U" constraint): Use strict
24574 variant of REG_OK_FOR_BASE_P after reload has started.
24576 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
24578 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
24579 define to zero if !TARGET_NEON.
24580 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
24582 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24583 Trevor Saunders <tsaunders@mozilla.com>
24586 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
24588 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24591 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
24592 when removing varpool nodes.
24594 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24597 * varpool.c (varpool_node::remove): Fix order of variables.
24599 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24602 * ipa-inline.c (inline_small_functions): Fix ordering issue between
24603 speculation resolution and key updates.
24605 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24607 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
24608 about not letting any speculative edges unupdated.
24610 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24613 * gcov-io.c (gcov_var): Export.
24615 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24617 PR middle-end/64922
24618 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
24619 edges that become speculative.
24621 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24623 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
24624 or DW_LANG_Fortran08.
24625 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
24627 (gen_compile_unit_die): Handle "GNU Fortran2003" and
24628 "GNU Fortran2008" language strings.
24629 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
24630 * langhooks.h (lang_GNU_Fortran): New prototype.
24631 * langhooks.c (lang_GNU_Fortran): New function.
24632 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
24635 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24637 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
24638 (RTX_OK_FOR_OLO10_P): Likewise.
24640 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24642 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
24644 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24646 PR middle-end/64922
24647 * gimple.c: Include gimple-ssa.h.
24648 (maybe_remove_unused_call_args): New function.
24649 * gimple.h (maybe_remove_unused_call_args): Declare.
24650 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
24651 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
24652 * gimple-fold.c (gimple_fold_call): Likewise.
24654 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
24656 PR rtl-optimization/64905
24657 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
24658 pointer alignment if it isn't needed.
24660 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24662 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
24663 cortex-a72.cortex-a53.
24664 * config/aarch64/aarch64-tune.md: Regenerate.
24665 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
24667 2015-02-04 Nick Clifton <nickc@redhat.com>
24669 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
24672 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24674 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
24675 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
24676 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
24678 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
24679 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
24680 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
24681 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
24682 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
24683 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
24684 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
24685 * tree-core.h (enum built_in_function): In between
24686 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
24687 for builtins that use DEF_BUILTIN_CHKP macro.
24689 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
24692 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
24693 operands for tcc_comparison exprs. Fix typos.
24696 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
24697 of two XORs that have an intervening AND or IOR.
24700 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
24701 simplification of XOR of AND to not allocate new rtx before
24702 committing to a simplification.
24704 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24706 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
24707 manual swaps in all peepholes.
24709 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24711 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
24712 of manual swapping implementation.
24713 (aarch64_expand_vec_perm_const_1): Likewise.
24715 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
24717 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
24718 (generic_addrcost_table): Remove NAMED_PARAM.
24719 (cortexa57_addrcost_table): Likewise.
24720 (xgene1_addrcost_table): Likewise.
24721 (generic_regmove_table): Likewise.
24722 (cortexa53_regmove_table): Likewise.
24723 (xgene1_regmove_table): Likewise.
24724 (generic_vector_table): Likewise.
24725 (cortexa57_vector_table): Likewise.
24726 (xgene1_vector_table): Likewise.
24727 (generic_tunings): Likewise.
24728 (cortexa53_tunings): Likewise.
24729 (cortexa57_tunings): Likewise.
24730 (xgene1_tunings): Likewise.
24732 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24734 * config/arm/arm-cores.def: Add cortex-a72 and
24735 cortex-a72.cortex-a53.
24736 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
24737 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
24738 * config/arm/arm-tune.md: Regenerate.
24739 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
24740 "cortex-a72.cortex-a53".
24741 * doc/invoke.texi (ARM Options/-mtune): Likewise.
24743 2015-02-04 Nick Clifton <nickc@redhat.com>
24746 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
24748 (nonimmediate_di_operand): Likewise.
24750 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
24751 prefixes of known F5 using MSP430 MCUs.
24753 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24755 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
24756 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
24757 instead of __builtin_sqrt.
24759 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
24761 * varasm.c (do_assemble_alias): Follow transparent alias
24763 (default_assemble_visibility): Follow transparent alias
24764 chain for decl name.
24766 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24768 PR middle-end/62103
24769 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
24770 to compute size of referenced value in the constant case.
24772 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24774 PR rtl-optimization/64756
24775 * cse.c (invalidate_dest): New function.
24776 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
24777 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
24778 invalidate and do not record it.
24780 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
24783 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
24784 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
24785 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
24786 atomic_nand<mode>_soft_tcb): New insns.
24787 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
24788 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
24789 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
24790 Split into atomic_not_fetchsi_hard if operands[0] is unused.
24791 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
24792 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24793 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
24794 atomic_not<mode>_hard if operands[0] is unused.
24795 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
24796 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
24797 if operands[0] is unused.
24798 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
24799 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
24800 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
24801 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24803 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
24804 into atomic_not<mode>_soft_tcb if operands[0] is unused.
24805 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
24806 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
24807 if operands[0] is unused.
24808 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
24809 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
24810 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
24811 atomic_nand_fetchsi_hard if operands[0] is unused.
24812 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
24813 atomic_nand<mode>_hard if operands[0] is unused.
24814 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
24815 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
24816 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
24817 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24818 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
24819 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
24820 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
24821 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24822 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
24823 atomic_not<mode>_hard if operands[0] is unused.
24824 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
24825 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24827 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
24828 into atomic_not<mode>_soft_tcb if operands[0] is unused.
24829 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
24830 atomic_nand<mode>_hard if operands[0] is unused.
24831 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
24832 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24834 2015-02-03 David Malcolm <dmalcolm@redhat.com>
24837 * Makefile.in (GCC_OBJS): Add gcc-main.o.
24838 * gcc-main.c: New file, containing "main" taken from gcc.c.
24839 * gcc.c (do_self_spec): Free decoded_options.
24840 (class driver): Move declaration to gcc.h.
24841 (main): Move declaration and implementation to new file
24843 (driver_get_configure_time_options): New function.
24844 * gcc.h (class driver): Move this declaration here, from
24846 (driver_get_configure_time_options): New declaration.
24848 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
24850 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
24851 cross-module inlining.
24852 * cgraph.h (cgraph_node): Add flag merged.
24853 * ipa-icf.c (sem_function::merge): Maintain it.
24855 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
24857 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
24858 instead of OBJECT_P.
24860 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
24863 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
24864 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
24865 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
24866 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
24868 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24871 * combine.c (reg_n_sets_max): New variable.
24872 (can_change_dest_mode, reg_nonzero_bits_for_combine,
24873 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
24874 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
24875 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
24876 (rest_of_handle_combine): Initialize reg_n_sets_max.
24878 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
24880 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
24881 if some always_inline was inlined, apply changes before inlining
24884 2015-02-02 David Malcolm <dmalcolm@redhat.com>
24887 * config/arm/arm.c (arm_option_override): Set
24888 arm_selected_arch/cpu/tune to NULL on entry.
24890 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
24891 Andrew Pinski <pinskia@gcc.gnu.org>
24892 Jakub Jelinek <jakub@gcc.gnu.org>
24895 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
24896 integer typing for small model. Use IN_RANGE.
24898 2015-02-02 Richard Biener <rguenther@suse.de>
24900 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
24901 * tree-vrp.c (vrp_valueize_1): Likewise.
24903 2015-02-02 Alan Modra <amodra@gmail.com>
24905 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
24906 than mem for toc_restore.
24907 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
24908 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
24909 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
24911 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
24914 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
24915 explicit default options.
24917 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
24920 * ipa-utils.c (ipa_merge_profiles): Add release argument.
24921 * ipa-icf.c (sem_function::merge): Do not release body when merging.
24922 * ipa-utils.h (ipa_merge_profiles): Update prototype.
24924 2015-02-01 Jakub Jelinek <jakub@redhat.com>
24927 * cfgexpand.c (deep_ter_debug_map): New variable.
24928 (avoid_deep_ter_for_debug): New function.
24929 (expand_debug_expr): If TERed SSA_NAME is in
24930 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
24931 instead of trying to expand SSA_NAME's def stmt.
24932 (expand_debug_locations): When expanding debug bind
24933 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
24934 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
24936 (pass_expand::execute): Call avoid_deep_ter_for_debug on
24937 all debug bind stmts. Delete deep_ter_debug_map after
24938 expand_debug_location if non-NULL and clear it.
24940 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
24943 * config/sh/sync.md (atomic_fetch_notsi_hard,
24944 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
24945 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
24946 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
24947 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
24948 atomic_not_fetch<mode>_soft_imask): New insns.
24950 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24952 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
24953 (rank_for_schedule_debug): Split from ...
24954 (rank_for_schedule): ... this.
24955 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
24956 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
24958 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
24960 * doc/md.texi (Machine Constraints): Alphabetize table by target.
24961 * doc/extend.texi (x86 Variable Attributes): Move section to
24962 correct alphabetization after renaming.
24963 (x86 Type Attributes): Likewise.
24964 (Target Builtins): Re-alphabetize menu.
24965 (x86 Built-in Functions): Move section to correct alphabetization
24967 (x86 transactional memory intrinsics): Likewise.
24968 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
24969 and x86 Windows Options in table and menu.
24970 (x86 Options): Move section to correct alphabetization after
24972 (x86 Windows Options): Likewise.
24974 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
24976 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
24977 preferred names of the architecture and its 32- and 64-bit
24979 * doc/invoke.texi: Likewise.
24980 * doc/md.texi: Likewise.
24982 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
24985 * config/i386/predicates.md (address_no_seg_operand): Reject
24986 non-CONST_INT_P operands in invalid mode.
24988 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
24990 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
24991 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
24992 * config/i386/predicates.md (address_no_seg_operand): Call
24993 address_operand with VOIDmode.
24994 (vsib_address_operand): Ditto.
24995 (address_mpx_no_base_operand): Ditto.
24996 (address_mpx_no_index_operand): Ditto.
24998 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25001 * lra-constraints.c (original_subreg_reg_mode): New.
25002 (simplify_operand_subreg): Try to simplify subreg of const. Use
25003 original_subreg_reg_mode for it.
25004 (swap_operands): Update original_subreg_reg_mode.
25005 (curr_insn_transform): Set up original_subreg_reg_mode.
25007 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25010 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
25012 (process_alt_operands): Use it.
25013 (curr_insn_transform): Check the optional reload pseudo class is
25016 2015-01-30 Joseph Myers <joseph@codesourcery.com>
25018 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
25019 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
25021 * toplev.h (init_asm_output): Update comment on use of
25022 UNKNOWN_LOCATION with fatal_error.
25023 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
25024 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
25025 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
25026 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
25027 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
25028 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
25029 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
25030 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
25031 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
25032 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
25033 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
25034 fatal_error changed to pass input_location as first argument.
25036 2015-01-30 Martin Liska <mliska@suse.cz>
25038 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
25039 in #pragma GCC diagnostic guards.
25041 2015-01-30 Richard Biener <rguenther@suse.de>
25043 PR tree-optimization/64829
25044 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
25045 not add a widening conversion pattern but hand off extra
25046 widenings to callers.
25047 (vect_recog_widen_mult_pattern): Handle extra widening produced
25048 by vect_handle_widen_op_by_const.
25049 (vect_recog_widen_shift_pattern): Likewise.
25050 (vect_pattern_recog_1): Remove excess vertical space in dumping.
25051 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
25052 (vect_init_vector_1): Likewise.
25053 (vect_get_vec_def_for_operand): Likewise.
25054 (vect_finish_stmt_generation): Likewise.
25055 (vectorizable_load): Likewise.
25056 (vect_analyze_stmt): Likewise.
25057 (vect_is_simple_use): Likewise.
25059 2015-01-29 Jeff Law <law@redhat.com>
25061 * combine.c (try_combine): Fix typo in comment.
25063 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
25066 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
25067 (rs6000_stack_info): Add assert.
25068 (rs6000_output_savres_externs): New function, split off from...
25069 (rs6000_output_function_prologue): ... here. Do not call it for
25072 2015-01-29 Jeff Law <law@redhat.com>
25075 * combine.c (try_combine): If I0 is a memory load and I3 a store
25076 to a related address, increase the "goodness" of doing a 4-insn
25077 combination with I0-I3.
25078 (make_field_assignment): Handle SUBREGs in the ior+and case.
25080 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
25082 PR tree-optimization/64746
25083 * tree-if-conv.c (mask_exists): New function.
25084 (predicate_mem_writes): Save created mask with given size for further
25086 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
25087 (ifcvt_repair_bool_pattern): Collect all statements that are root
25088 of bool pattern and use iterative algorithm to remove multiple uses
25089 of predicates, display number of required iterations.
25091 2015-01-29 Richard Biener <rguenther@suse.de>
25093 PR tree-optimization/64853
25094 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
25095 stmt will get simulated again.
25096 * tree-ssa-ccp.c (valueize_op_1): Likewise.
25098 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25100 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
25101 return_in_pc. Remove redundant assignments.
25102 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
25103 (arm_expand_epilogue): Don't compare boolean with true in if condition.
25105 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
25107 * config/i386/i386.c (ix86_mode_after): Make static.
25109 2015-01-29 Richard Biener <rguenther@suse.de>
25111 PR tree-optimization/64844
25112 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
25113 dump cost model analysis.
25114 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25115 Do not register adjusted load/store costs here.
25117 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25118 Uros Bizjak <ubizjak@gmail.com>
25120 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
25121 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
25122 using x86_use_pseudo_pic_reg.
25123 * config/i386/i386.c (ix86_conditional_register_usage): Remove
25124 support for fixed PIC register.
25125 (ix86_use_pseudo_pic_reg): Not static any more.
25127 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25129 PR middle-end/64805
25130 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
25131 to avoid error in cgraph node verification.
25133 2015-01-29 Marek Polacek <polacek@redhat.com>
25135 * doc/standards.texi: Reflect that the default for C is gnu11.
25137 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
25140 * reorg.c (switch_text_sections_between_p): New function.
25141 (relax_delay_slots): Call it when testing if the jump insn
25142 is removable. Use targetm.can_follow_jump when testing if
25143 the conditional branch can follow an unconditional jump.
25145 2015-01-27 Caroline Tice <cmtice@google.com>
25147 Committing VTV Cywin/Ming patch for Patrick Wollgast
25148 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
25149 if -fvtable-verify=preinit/std is used.
25150 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
25151 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
25152 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
25153 if -fvtable-verify=preinit/std is used.
25154 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25155 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
25156 if -fvtable-verify=preinit/std is used.
25157 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
25158 * config/i386/mingw32.h (LIB_SPEC): Likewise.
25159 * varasm.c (assemble_variable): Add code to properly set the comdat
25160 section and name for the .vtable_map_vars section in case the
25161 target is PE or COFF.
25163 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25166 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
25167 make sane BB profile.
25168 (cgraph_node::expand_thunk): Make sane BB profile.
25169 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
25170 * cgraph.h (init_lowered_empty_function): Update prototype.
25171 * config/i386/i386.c (make_resolver_func): Update call.
25172 * predict.c (gate): Disable branch prediction pass if
25173 profile is already there.
25175 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25177 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
25178 * opth-gen.awk: Likewise.
25179 * common.opt: Mark flag_fp_contract_mode as Optimization.
25181 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
25183 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
25184 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
25186 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
25189 * config/sh/predicates.md (atomic_arith_operand,
25190 atomic_logical_operand): Remove.
25191 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
25192 (atomic_arith_operand_0): New predicate.
25193 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
25194 Use atomic_arith_operand_0 for input values.
25195 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
25196 atomic_compare_and_swap<mode>_soft_gusa,
25197 atomic_compare_and_swap<mode>_soft_tcb,
25198 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
25199 arith_reg_operand instead of register_operand.
25200 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
25201 atomic_arith_operand_0 for newval input.
25202 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
25203 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
25204 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
25205 arith_reg_operand instead of register_operand.
25206 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
25207 fetchop_predicate_1, fetchop_constraint_1_llcs,
25208 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
25209 fetchop_constraint_1_imask): New code iterator attributes.
25210 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
25211 register_operand. Use fetchop_predicate_1.
25212 (atomic_fetch_<fetchop_name>si_hard,
25213 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
25214 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
25215 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
25216 and arith_reg_operand instead of register_operand. Use
25217 fetchop_predicate_1, fetchop_constraint_1_gusa.
25218 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
25219 and arith_reg_operand instead of register_operand. Use
25220 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
25222 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
25223 and arith_reg_operand instead of register_operand. Use
25224 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
25226 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
25227 register_operand. Use atomic_logical_operand_1.
25228 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
25229 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
25230 arith_reg_operand instead of register_operand.
25231 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
25232 Use arith_reg_dest and arith_reg_operand instead of register_operand.
25233 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
25234 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
25235 register_operand. Use fetchop_predicate_1.
25236 (atomic_<fetchop_name>_fetchsi_hard,
25237 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
25238 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25239 fetchop_constraint_1_llcs.
25240 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
25241 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25242 fetchop_constraint_1_gusa.
25243 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
25244 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25245 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
25246 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
25247 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25248 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
25249 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
25250 register_operand. Use atomic_logical_operand_1.
25251 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
25252 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
25253 arith_reg_operand instead of register_operand.
25254 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
25255 arith_reg_operand instead of register_operand. Use logical_operand
25256 and K08. Adjust asm sequence to allow R0 usage.
25257 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
25258 arith_reg_operand instead of register_operand. Use logical_operand
25261 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25264 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
25265 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
25266 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
25267 only get_full_len HOST_WIDE_INTs from get_val () array rather than
25268 all bits in *val_wide.
25270 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
25272 * varpool.c (tls_model_names): Fix names.
25273 (varpool_node::dump): Dump tls- prefix for tls models.
25275 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
25276 Bernd Schmidt <bernds@codesourcery.com>
25277 Nathan Sidwell <nathan@codesourcery.com>
25279 * config/nvptx/mkoffload.c: New file.
25280 * config/nvptx/t-nvptx: Add build rules for it.
25281 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
25282 (extra_programs): Add mkoffload.
25283 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
25285 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
25287 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
25289 PR middle-end/64809
25290 * cfgexpand.c (reorder_operands): Skip debug gimples.
25292 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
25294 PR tree-optimization/64277
25295 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
25296 range info when possible to refine estimation.
25298 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25300 PR tree-optimization/64718
25301 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
25302 be a 16bit unsigned integer when n->range is 16.
25303 (bswap_replace): Convert src to that type if necessary for all bswap
25304 sizes. Fix rotation right notation in nearby comment. Use bswap_type
25305 set in pass_optimize_bswap::execute ().
25307 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
25309 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
25310 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
25311 integer and floating point variants.
25312 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
25314 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
25316 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
25317 for all vector modes.
25319 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25322 * doc/sourcebuild.texi (comdat_group): Document.
25324 2015-01-28 Terry Guo <terry.guo@arm.com>
25326 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
25328 2015-01-27 David Malcolm <dmalcolm@redhat.com>
25330 * toplev.c (print_version): Add param "show_global_state", and
25331 only print GGC and plugin information if it is true.
25332 (init_asm_output): Pass in "true" for the new param when calling
25334 (process_options): Likewise.
25335 (toplev::main): Likewise.
25336 * toplev.h (print_version): Add new param to decl.
25338 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25342 * tree.c (lookup_binfo_at_offset): New function.
25343 (get_binfo_at_offset): Use it.
25345 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25348 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
25349 on vtable being vtable.
25351 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
25353 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
25354 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
25355 -mhotpatch= option.
25356 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
25357 -mno-hotpatch options. Change syntax of -mhotpatch= option.
25358 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
25360 (s390_hotpatch_trampoline_halfwords_max): Renamed.
25361 (s390_hotpatch_hw_max): New name.
25362 (s390_hotpatch_trampoline_halfwords): Renamed.
25363 (s390_hotpatch_hw_before_label): New name.
25364 (get_hotpatch_attribute): Removed.
25365 (s390_hotpatch_hw_after_label): New name.
25366 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
25368 (s390_attribute_table): Ditto.
25369 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
25370 (s390_function_num_hotpatch_hw): New name.
25371 Remove special handling of inline functions and hotpatching.
25372 Return number of nops before and after the function label.
25373 (s390_can_inline_p): Removed.
25374 (s390_asm_output_function_label): Emit a configurable number of nops
25375 after the function label.
25376 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
25377 (TARGET_CAN_INLINE_P) Removed.
25378 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
25380 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25381 Jiong Wang <jiong.wang@arm.com>
25383 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
25385 (cb<optab><mode>1): Likewise.
25386 * config/aarch64/iterators.md (bcond): New define_code_attr.
25388 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25390 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
25393 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25395 * config/s390/s390.c (s390_register_move_cost): Increase costs for
25398 2015-01-27 Richard Biener <rguenther@suse.de>
25400 * tree-vrp.c (update_value_range): Intersect the range with
25401 old recorded SSA name range information.
25403 2015-01-27 Nick Clifton <nickc@redhat.com>
25405 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
25406 BC, DE and HL registers directly, not via AX.
25407 When decrementing the stack pointer by a large amount, transfer SP
25408 into AX and perform the subtraction there.
25409 (rl78_expand_epilogue): Perform the inverse of the above
25412 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25414 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
25416 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25417 Yury Gribov <y.gribov@samsung.com>
25420 * ubsan.c (ubsan_source_location): Refactor code.
25421 (ubsan_type_descriptor): Update type size. Refactor code.
25423 2015-01-27 Richard Biener <rguenther@suse.de>
25425 PR tree-optimization/56273
25426 PR tree-optimization/59124
25427 PR tree-optimization/64277
25428 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
25429 from the first VRP pass.
25431 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25434 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
25435 handle the first argument in the same loop as all the other arguments.
25437 PR rtl-optimization/61058
25438 * jump.c (cleanup_barriers): Update basic block boundaries
25439 if BLOCK_FOR_INSN is non-NULL on PREV.
25441 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
25443 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
25444 bounds narrowing, already instrumented calls and calls to
25445 not instrumentable functions.
25447 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25449 PR tree-optimization/64807
25450 * wide-int.cc (wi::divmod_internal): Clear
25451 b_dividend[dividend_blocks_needed].
25453 2015-01-26 DJ Delorie <dj@redhat.com>
25455 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
25456 volatile memory references.
25458 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
25461 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
25463 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
25464 shifts if it already fits into K08.
25466 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25469 * ipa-inline.c (inline_small_functions): Print "unknown" even
25470 if edge->call_stmt is non-NULL, but has builtins or unknown
25473 PR middle-end/64421
25474 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
25475 with asterisk, skip the first character.
25477 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25480 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
25483 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
25486 * config/i386/i386.md (*movdi_internal): Also check operand 0
25487 to determine TYPE_LEA operand.
25488 (*movsi_internal): Ditto.
25490 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25492 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
25493 OPTION_MASK_QUAD_MEMORY_ATOMIC.
25495 2015-01-26 Renlin Li <renlin.li@arm.com>
25497 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
25499 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
25502 2015-01-26 Richard Biener <rguenther@suse.de>
25504 PR middle-end/64764
25505 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
25506 combining two BIT_AND_EXPR predicates.
25508 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25511 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
25513 2015-01-26 Terry Guo <terry.guo@arm.com>
25515 * config/arm/arm.c (arm_file_start): Update the assignment of
25516 Tag_ABI_HardFP_use.
25518 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
25520 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
25522 config/arm/arm.md: Include the new Cortex-A57 model.
25523 (generic_sched): Don't use generic_sched when tuning for
25526 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
25527 Uros Bizjak <ubizjak@gmail.com>
25529 * config/i386/i386.c (get_builtin_code_for_version): Add
25530 support for BMI and BMI2 multiversion functions.
25532 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25534 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
25535 (extract_bit_field): Likewise.
25536 (extract_low_bits): Likewise.
25537 (expand_mult): Likewise.
25538 (expand_mult_highpart_adjust): Likewise.
25540 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
25542 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
25543 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
25544 * config/i386/i386.c (processor_model): Add
25545 M_INTEL_COREI7_BROADWELL.
25546 (arch_names_table): Add "broadwell".
25548 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
25557 * config/sh/sh-protos.h
25558 (sh_extending_set_of_reg::can_use_as_unextended_reg,
25559 sh_extending_set_of_reg::use_as_unextended_reg,
25560 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
25561 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
25562 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
25563 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
25564 (sh_treg_insns): New class.
25565 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
25566 (scope_counter): New class.
25567 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
25568 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
25569 sh_extending_set_of_reg::can_use_as_unextended_reg,
25570 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
25571 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
25572 sh_split_treg_set_expr): New functions.
25573 (addsubcosts): Handle treg_set_expr.
25574 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
25575 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
25576 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
25577 (sh_insn_operands_modified_between_p): Make non-static.
25578 * config/sh/predicates.md (zero_extend_movu_operand): Allow
25579 simple_mem_operand in addition to displacement_mem_operand.
25580 (zero_extend_operand): Don't allow zero_extend_movu_operand.
25581 (treg_set_expr, treg_set_expr_not_const01,
25582 arith_reg_or_treg_set_expr): New predicates.
25583 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
25584 arith_or_int_operand instead of logical_operand. Convert to
25585 insn_and_split. Try to optimize constant operand in splitter.
25586 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
25587 (*tstqi_t_zero): Delete.
25588 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
25589 (tstsi_t_and_not): Delete.
25590 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
25591 Convert to insn_and_split.
25592 (unnamed split, tstsi_t_zero_extract_xor,
25593 tstsi_t_zero_extract_subreg_xor_little,
25594 tstsi_t_zero_extract_subreg_xor_big): Delete.
25595 (*tstsi_t_shift_mask): New insn_and_split.
25596 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
25597 to recombine with surrounding insns when splitting.
25598 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
25599 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
25600 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
25601 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
25602 (*cbranch_div0s: Delete.
25603 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25604 Try to recombine with surrounding insns when splitting. Add operand
25606 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
25607 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
25608 *addc_r_r_msb, *addc_2r_msb): Delete.
25609 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
25611 (*addc_negreg_t): New insn_and_split.
25612 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25613 Try to recombine with surrounding insns when splitting.
25614 Add operand order variants.
25615 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
25616 insn_and_split patterns.
25617 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
25618 surrounding insns when splitting.
25619 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
25620 (*rotcl): Likewise. Add zero_extract variant.
25621 (*ashrsi2_31): New insn_and_split.
25622 (*negc): Convert to insn_and_split. Use treg_set_expr.
25623 (*zero_extend<mode>si2_disp_mem): Update comment.
25624 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
25626 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
25627 with surrounding insns when splitting.
25628 (any_treg_expr_to_reg): New insn_and_split.
25629 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
25630 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
25631 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
25632 *zero_extract_2): New single bit zero extract patterns.
25633 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
25634 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
25635 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
25636 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
25638 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
25639 register_operand for set source.
25641 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
25643 * i386.opt (prefetch_sse): New targetsave.
25644 * i386.c (ix86_function_specific_save): Save prefetch_sse.
25645 (ix86_function_specific_restore): Restore prefetch_sse and initialize
25646 ix86_cost/ix86_tune_cost.
25648 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25650 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
25651 Support the JIT by using 0 as the language type.
25653 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
25656 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
25657 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
25658 (mark_regno_live, process_bb_lives): Pass new parameter value to
25659 make_hard_regno_born.
25661 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25663 PR rtl-optimization/63637
25664 PR rtl-optimization/60663
25665 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
25666 if elt->cost is MAX_COST for ASM_OPERANDS.
25667 (find_sets_in_insn): Fix up comment typo.
25668 (cse_insn): Don't set src_volatile for all non-volatile
25669 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
25670 or with "memory" clobber. Set elt->cost to MAX_COST
25671 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
25672 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
25674 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25676 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
25679 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25681 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
25682 libgcc/config/i386/elf-lib.h.
25684 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25687 * gcc.c (print_configuration): Don't print a blank line at the end
25689 (run_attempt): ... but here unstead.
25691 PR middle-end/64734
25692 * omp-low.c (scan_sharing_clauses): Don't ignore
25693 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
25694 on target data/update constructs.
25696 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
25699 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
25700 (DEBUG_RELOAD): Removed define.
25701 (m32c_limit_reload_class): Enable traces with if DEBUG0.
25702 (m32c_function_arg): Added a type cast.
25703 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
25704 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
25705 * config/m32c/bitops.md (andqi3_16): Likewise.
25706 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
25707 (push_a01_l): Likewise.
25709 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25712 * main.c (main): Construct toplev instances with init_signals=true.
25713 * toplev.c (general_init): Add param "init_signals", and use it to
25714 conditionalize the calls to signal and host_hooks.extra_signals.
25715 (toplev::toplev): Add param "init_signals".
25716 (toplev::main): When invoking general_init, pass m_init_signals
25717 to control whether signal-handlers are installed.
25718 * toplev.h (toplev::toplev): Add param "init_signals".
25719 (toplev::m_init_signals): New field.
25721 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25724 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
25725 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
25726 latter may be affected by the former (e.g. on i686).
25728 2015-01-23 Martin Liska <mliska@suse.cz>
25730 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
25731 false positive during profiledbootstrap.
25733 2015-01-23 Tom de Vries <tom@codesourcery.com>
25736 * lto-opts.c (lto_write_options): Output non-explicit conservative
25738 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
25739 (append_compiler_options): Pass -fopenacc through.
25741 2015-01-23 Tom de Vries <tom@codesourcery.com>
25744 * lto-opts.c (lto_write_options): Output non-explicit conservative
25746 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
25747 (append_compiler_options): Pass -fopenmp through.
25749 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25752 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
25755 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
25756 * diagnostic.def (DK_ICE_NOBT): New kind.
25757 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
25758 like DK_ICE, but never print backtrace.
25759 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
25760 (internal_error_no_backtrace): New function.
25761 * gcc.c (execute): Use internal_error_no_backtrace instead of
25764 2015-01-22 Jeff Law <law@redhat.com>
25767 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
25768 improve code density for small immediate to memory case.
25769 (insv): Better handle bitfield assignments when the field is
25770 being set to all ones.
25771 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
25774 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25775 Jakub Jelinek <jakub@redhat.com>
25777 PR middle-end/64729
25778 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
25779 for !TARGET_LIBC_PROVIDES_SSP version and
25780 -fstack-protector-{all,strong,explicit} otherwise.
25781 * config/freebsd.h (LINK_SSP_SPEC): Handle
25782 -fstack-protector-{strong,explicit}.
25784 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
25785 H.J. Lu <hongjiu.lu@intel.com>
25788 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
25791 2015-01-22 Wei Mi <wmi@google.com>
25793 PR rtl-optimization/64557
25794 * dse.c (record_store): Call get_addr for mem_addr.
25795 (check_mem_read_rtx): Likewise.
25797 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
25799 * fold-const.c (const_binop): Add early return for non-tcc_binary.
25801 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
25803 * toplev.c (init_local_tick): Process the failure when read
25804 fails for random_seed.
25806 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
25807 'pretty_name' to avoid memory overflow.
25809 2015-01-22 Richard Biener <rguenther@suse.de>
25811 PR middle-end/64728
25812 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
25813 abnormal coalescing on undefined SSA names.
25815 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
25819 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
25821 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
25823 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
25825 PR middle-end/63325
25826 * fold-const.c (fold_checksum_tree): Don't include value of
25827 expr->decl_with_vis.symtab_node in the checksum.
25829 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25831 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
25833 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
25836 * gcc.c (insert_comments): New function.
25837 (try_generate_repro): Call it.
25838 (append_text): Removed.
25840 2015-01-22 Richard Biener <rguenther@suse.de>
25842 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
25843 with IL incompatible options. Properly honor user optimize
25846 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
25848 PR rtl-optimization/64682
25849 * combine.c (distribute_notes): When moving a death note for
25850 a register that is set in the new I2, make sure to put it
25851 before that new I2.
25853 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
25855 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
25856 not TARGET_DEFAULT.
25858 2015-01-21 Jakub Jelinek <jakub@redhat.com>
25861 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
25862 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
25863 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
25866 * doc/invoke.texi (-fsanitize=vptr): Document.
25868 PR rtl-optimization/62078
25869 * dse.c: Include cfgcleanup.h.
25870 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
25871 anything call purge_all_dead_edges and cleanup_cfg at the end
25874 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
25876 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
25879 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25881 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
25884 2015-01-21 David Sherwood <david.sherwood@arm.com>
25885 Tejas Belagod <Tejas.Belagod@arm.com>
25887 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
25888 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
25889 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
25892 2015-01-21 David Sherwood <david.sherwood@arm.com>
25893 Tejas Belagod <Tejas.Belagod@arm.com>
25895 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
25896 (aarch64_reverse_mask): New decls.
25897 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
25898 (insn_count): New mode_attr.
25899 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
25900 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
25901 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
25902 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
25903 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
25904 (aarch64_simd_st4): New patterns.
25905 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
25906 (aarch64_reverse_mask): New functions.
25908 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
25910 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
25912 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
25913 addressing modes for BE.
25914 (aarch64_print_operand): Add 'R' specifier.
25915 (aarch64_simd_disambiguate_copy): Delete.
25916 (aarch64_simd_emit_reg_reg_move): New function.
25917 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
25918 in define_splits for structural moves.
25919 (mov<mode>): Use less restrictive predicates.
25920 (*aarch64_mov<mode>): Simplify and only allow for LE.
25921 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
25923 2015-01-21 Alan Hayward <alan.hayward@arm.com>
25925 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
25927 2015-01-21 Richard Henderson <rth@redhat.com>
25930 * ccmp.c (used_in_cond_stmt_p): Remove.
25931 (expand_ccmp_expr): Don't use it.
25933 2015-01-21 Nick Clifton <nickc@redhat.com>
25935 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
25938 2015-01-21 Richard Biener <rguenther@suse.de>
25940 PR middle-end/64313
25941 * tree-core.h (builtin_info, builtin_info_type): Turn from
25942 an object with two arrays into an array of an object with
25943 decl and two flags, implicit_p and declared_p.
25944 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
25945 set_builtin_decl, set_builtin_decl_implicit_p,
25946 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
25947 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
25948 * builtins.c (builtin_info): Adjust.
25949 * gimplify.c (gimplify_addr_expr): References to builtins
25950 that have been declared by the user makes them eligible for
25951 use by the compiler. Call set_builtin_decl_implicit_p on them.
25953 2015-01-20 Jeff Law <law@redhat.com>
25956 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
25957 allow pc-relative addresses in operand predicates or constraints.
25959 2015-01-21 Bin Cheng <bin.cheng@arm.com>
25961 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
25962 neon on aarch32 processors for stringops.
25964 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25967 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
25969 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25972 * ipa-inline.c: Include lto-streamer.h
25973 (report_inline_failed_reason): Output source file differences and
25974 flags on optimization/target node mismatch.
25975 (can_inline_edge_p): Consider caller to be the outer inline function;
25976 be less restrictive about matching opimize and optimize_size attributes.
25977 (inline_account_function_p): Break out from ...
25978 (inline_small_functions): ... here.
25979 * ipa-inline-transform.c (clone_inlined_nodes): Use
25980 inline_account_function_p.
25981 (inline_call): Use optimize attribution; use inline_account_function_p.
25982 (inline_transform): Use opt_for_fn.
25983 * ipa-inline.h (inline_account_function_p): Declare.
25985 2015-01-20 Jakub Jelinek <jakub@redhat.com>
25988 * dwarf2out.c (decl_piece_node): Don't put bitsize into
25989 mode if bitsize <= 0.
25990 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
25991 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
25992 sizes and positions.
25994 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
25996 * config/nios2/nios2.c (nios2_asm_file_end): Implement
25997 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
25999 (TARGET_ASM_FILE_END): Define.
26001 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26003 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
26004 (struct tune_params): Use the enum.
26005 * arm.c (arm_*_tune): Update.
26006 (arm_option_override): Update.
26008 2015-01-20 Richard Biener <rguenther@suse.de>
26011 * ipa-reference.c (add_static_var): Inline ...
26012 (analyze_function): ... here after splitting out from ...
26013 (is_proper_for_analysis): ... this.
26015 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
26018 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
26019 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
26020 replace the conditional with it's true branch.
26021 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
26022 (arm_lra_p): Remove.
26024 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
26026 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
26028 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26030 * config/tilegx/mul-tables.c: Move symtab.h include after
26031 coretypes.h include.
26032 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
26033 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
26034 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
26035 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
26036 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26038 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
26042 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26044 PR rtl-optimization/64081
26045 * loop-iv.c (def_pred_latch_p): New function.
26046 (latch_dominating_def): Allow specific cases with non-single
26048 (iv_get_reaching_def): Likewise.
26049 (check_complex_exit_p): New function.
26050 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26051 with exits not executing on any iteration.
26053 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26056 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
26057 to set branch cost.
26059 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26062 * i386.c (gate): Check flag_expensive_optimizations and
26064 (ix86_option_override_internal): Drop optimize_size condition
26065 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
26066 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
26067 MASK_PREFER_AVX128.
26068 (ix86_avx256_split_vector_move_misalign,
26069 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
26070 * sse.md (all uses of TARGET_PREFER_AVX128): Add
26071 optimize_insn_for_speed_p check.
26073 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
26075 * config/mips/mips.h (FP_ASM_SPEC): New define.
26076 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
26079 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
26082 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
26083 nullptr for insn when reaching the first insn.
26084 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
26085 (sh_insn_operands_modified_between_p): Add nullptr check.
26086 (sh_find_extending_set_of_reg): Fix log message. Don't accept
26087 sign extending mem load if the insn contains any UNSPEC or
26090 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26092 * params.def (inline-unit-growth): Drop to 15%.
26093 * invoke.texi (inline-unit-growth): Document change.
26095 2015-01-19 Martin Liska <mliska@suse.cz>
26098 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
26099 function for second argument of OBJ_TYPE_REF.
26101 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26104 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
26105 whether function is an alias.
26107 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26109 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
26112 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
26114 PR rtl-optimization/64671
26115 * lra-remat.c (operand_to_remat): Don't consider jump and call
26118 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
26121 * config/rs6000/default64.h: Include rs6000-cpus.def.
26122 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
26123 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
26124 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
26126 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
26128 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
26129 pseudo-op to specify assembler dialect.
26131 2015-01-19 Martin Liska <mliska@suse.cz>
26134 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
26135 Handle safe potentially removed nodes during filtering.
26137 2015-01-19 Martin Liska <mliska@suse.cz>
26139 * doc/extend.texi (no_icf): Add new attribute description.
26140 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
26141 where the pass attempts to merge a function with no_icf attribute.
26143 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26146 * doc/md.texi (ARM Options): Document register constraints.
26148 2015-01-19 Jiong Wang <jiong.wang@arm.com>
26149 Andrew Pinski <apinski@cavium.com>
26152 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
26153 (ashl<mode>3): Don't expand if operands[2] is not constant.
26155 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26158 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
26159 Match xor-and-xor RTL pattern.
26161 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26163 PR rtl-optimization/64081
26164 * loop-iv.c (def_pred_latch_p): New function.
26165 (latch_dominating_def): Allow specific cases with non-single
26167 (iv_get_reaching_def): Likewise.
26168 (check_complex_exit_p): New function.
26169 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26170 with exits not executing on any iteration.
26172 2015-01-19 Jakub Jelinek <jakub@redhat.com>
26174 * common.opt (fgraphite): Fix a typo.
26176 2015-01-19 Felix Yang <felix.yang@huawei.com>
26178 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
26180 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
26181 uminp, smax_nanp, smin_nanp): New builtins.
26182 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
26183 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
26184 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
26185 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
26186 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
26187 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
26188 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
26189 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
26190 vpminnms_f32): Rewrite using builtin functions.
26192 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
26195 * omp-low.c (offload_symbol_decl): Remove variable.
26196 (get_offload_symbol_decl): Remove function.
26197 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
26198 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
26199 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
26200 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
26201 BUILT_IN_GOACC_UPDATE don't pass it at all.
26203 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26205 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
26208 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26210 * ipa-chkp.c (chkp_produce_thunks): Add early param
26211 to split thunks production into two passes. Keep
26212 'always_inline' function bodies after the first pass.
26213 (pass_data_ipa_chkp_early_produce_thunks): New.
26214 (pass_ipa_chkp_early_produce_thunks): New.
26215 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
26216 chkp_produce_thunks signature.
26217 (make_pass_ipa_chkp_early_produce_thunks): New.
26218 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
26219 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
26220 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
26222 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26224 * cgraph.c (cgraph_node::dump): Dump profile flags.
26226 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
26229 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
26230 reg appear first in the parallel.
26232 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26234 * ipa-reference.c (set_reference_optimization_summary,
26235 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
26237 (ignore_module_statics): New static var.
26238 (propagate_bits): If ipa-reference is disabled, do not look into local
26240 (analyze_function): Disable analysis when ipa_reference is disabled.
26241 (generate_summary): Do not dump when reference is disabled;
26242 collect vars accessed from functions with ipa-reference disabled.
26243 (get_read_write_all_from_node): When ipa-reference is disabled, use the
26245 (gate): Enable for LTO.
26246 (ignore_edge_p): New function.
26247 (propagate): Skip functions w/o ipa-reference analysis.
26248 * optc-save-gen.awk: Handle optimize_debug correctly.
26249 * opth-gen.awk: Likewise.
26250 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
26251 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
26252 fira-share-save-slots, fira-share-spill-slots,
26253 fmodulo-sched-allow-regmoves, fpartial-inlining,
26254 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
26255 ftracer, ftree-parallelize-loops, fassociative-math,
26256 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
26258 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
26259 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
26261 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
26264 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26267 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
26269 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
26271 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
26273 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
26274 Remove duplicate option listings.
26276 2015-01-18 Felix Yang <felix.yang@huawei.com>
26278 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
26279 (autofdo_source_profile::get_callsite_total_count,
26280 function_instance::get_function_instance_by_decl,
26281 string_table::get_index, string_table::get_index_by_decl,
26282 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
26283 Fix comment typos. Reformatting and minor code rearrangement.
26285 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26287 * config/rs6000/rs6000.md (probe_stack): Delete.
26288 (probe_stack_address): New.
26290 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26292 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
26293 to test for 32-bit ABIs, not !TARGET_POWERPC64.
26295 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26297 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
26298 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
26299 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
26301 (rs6000_libcall_value): Use the new function.
26303 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
26305 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
26307 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
26309 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
26310 implement a more precise life analysis for it during backward scan.
26312 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
26314 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
26316 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
26318 PR rtl-optimization/52773
26319 * calls.c (emit_library_call_value): When pushing arguments use
26320 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
26321 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
26322 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
26324 2015-01-17 Jeff Law <law@redhat.com>
26326 PR rtl-optimization/32790
26327 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
26328 not ZERO_EXTEND in SET_DESTs.
26330 2015-01-17 Alan Modra <amodra@gmail.com>
26332 * cprop.c (do_local_cprop): Revert last change.
26334 2015-01-16 DJ Delorie <dj@redhat.com>
26335 Nick Clifton <nickc@redhat.com>
26337 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
26338 (addhi3_real): Likewise. Fix [HL+0] syntax.
26339 (subqi3_real): Likewise.
26340 (subhi3_real): Likewise.
26341 (cbranchqi4_real): Likewise. Allow saddr,#imm.
26342 (cbranchhi4_real): Likewise.
26343 (cbranchhi4_real_inverted): Likewise.
26344 (cbranchsi4_real_lt): Likewise.
26345 (cbranchsi4_real_ge): Likewise.
26346 (cbranchsi4_real_ge): Likewise.
26347 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
26348 (sub<mode>3_virt): Likewise.
26349 (cbranchqi4_virt): Likewise.
26350 (cbranchhi4_virt): Likewise.
26351 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
26352 always use '[reg+imm]' even when imm is zero.
26353 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
26354 (rl78_general_operand): New.
26355 (rl78_nonimmediate_operand): New.
26356 (rl78_nonfar_operand): Use them.
26357 (rl78_nonfar_nonimm_operand): Likewise.
26358 (rl78_stack_based_mem): Fix.
26359 * config/rl78/constraints.md (Ibqi): New.
26364 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
26365 (iorqi3): Likewise.
26366 (xorqi3): Likewise.
26367 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
26369 * config/rl78/constrains (Qs8): New constraint.
26370 * config/rl78/rl78.c (rl78_flags_already_set): New function.
26371 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
26372 * config/rl78/rl78-real.md (update_Z): New attribute.
26373 Update patterns to set it.
26374 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
26375 shorter compare and branch sequence can be used.
26376 (cbranchhi4_real): Likewise.
26377 (cbranchhi4_real_inverted): Likewise.
26379 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
26380 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
26382 * config/rl78/rl78.c (rl78_get_name_encoding): New.
26383 (rl78_option_override): Allow -mes0 only if C.
26384 (characterize_address): Support subregs of symbol_refs.
26385 (rl78_addr_space_address_mode): Move. Add __near.
26386 (rl78_far_p): Likewise.
26387 (rl78_addr_space_pointer_mode): Likewise.
26388 (rl78_as_legitimate_address): Likewise.
26389 (rl78_addr_space_subset_p): Likewise.
26390 (rl78_addr_space_convert): Likewise.
26391 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
26392 symbols with -mes0.
26393 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
26395 (rl78_alloc_physical_registers_op1): Change logic to prefer
26396 symbol[BC] addressing.
26397 (frodata_section): New.
26398 (rl78_asm_init_sections): Initialize it.
26399 (rl78_select_section): Put __far readonly symbols in .frodata.
26400 (rl78_make_type_far): New.
26401 (rl78_insert_attributes): Force all readonly symbols to be
26403 (rl78_asm_out_integer): New.
26404 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
26405 * config/rl78/rl78.opt (-mes0): New.
26407 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
26408 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
26409 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
26410 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
26411 (rl78_saddr_p): New.
26412 (rl78_output_aligned_common): New.
26413 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
26414 (rl78_handle_saddr_attribute): New.
26415 (rl78_handle_naked_attribute): New.
26416 (rl78_attribute_table): Add saddr.
26417 (rl78_print_operand_1): Don't print '!' on saddr operands.
26418 (rl78_print_operand_1): Strip encodings.
26420 (rl78_strip_name_encoding): New.
26421 (rl78_attrlist_to_encoding): New.
26422 (rl78_encode_section_info): New.
26423 (rl78_asm_init_sections): New.
26424 (rl78_select_section): New.
26425 (rl78_output_labelref): New.
26426 (rl78_output_aligned_common): New.
26427 (rl78_asm_out_integer): New.
26428 (rl78_asm_ctor_dtor): New.
26429 (rl78_asm_constructor): New.
26430 (rl78_asm_destructor): New.
26432 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
26433 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
26434 (transcode_memory_rtx): Update.
26435 (rl78_expand_epilogue): Use A_REG instead of 0.
26437 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26439 * config/arm/arm-protos.h (struct tune_params): New field
26440 sched_autopref_queue_depth.
26441 * config/arm/arm.c (sched-int.h): Include header.
26442 (arm_first_cycle_multipass_dfa_lookahead_guard,)
26443 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
26444 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
26445 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
26446 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
26447 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
26448 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
26449 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
26450 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
26451 * config/arm/t-arm (arm.o): Update.
26452 * haifa-sched.c (update_insn_after_change): Update.
26453 (rank_for_schedule): Use auto-prefetcher model, if requested.
26454 (autopref_multipass_init): New static function.
26455 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
26456 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
26457 variable for debug dumps.
26458 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
26459 (autopref_multipass_dfa_lookahead_guard): New global function that
26460 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
26461 (init_h_i_d): Update.
26462 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
26463 * sched-int.h (enum autopref_multipass_data_status): New const enum.
26464 (autopref_multipass_data_): Structure for auto-prefetcher data.
26465 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
26466 (struct _haifa_insn_data:autopref_multipass_data): New field.
26467 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
26468 (autopref_multipass_dfa_lookahead_guard): Declare.
26470 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26472 * rtlanal.c (get_base_term): Handle SCRATCH.
26474 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26476 * config/aarch64/aarch64.c
26477 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
26478 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26480 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
26481 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26483 2015-01-17 Alan Modra <amodra@gmail.com>
26485 * cprop.c (do_local_cprop): Disallow replacement of fixed
26488 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26491 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
26494 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
26496 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
26497 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
26499 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26501 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
26502 * config/arm/thumb1.md: ... Here.
26504 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26506 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
26507 TImode for TARGET_32BIT.
26509 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26511 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
26512 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
26514 (rs6000_abi_word_mode): New function.
26516 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26518 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
26519 instead of UNITS_PER_WORD to describe the size of stack slots.
26521 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26523 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
26524 as rs6000_promote_function_mode. Move comment to there.
26525 (rs6000_promote_function_mode): New function.
26527 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26529 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
26530 -mpowerpc64 is active.
26532 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26534 PR middle-end/64353
26535 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
26538 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26540 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
26541 introduced in revision 219724.
26543 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26544 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26547 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
26548 destination is not a GP reg.
26549 (*movdi_aarch64): Likewise.
26551 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
26554 * config/rs6000/default64.h: Revert ISA change.
26556 2015-01-16 Richard Biener <rguenther@suse.de>
26558 PR middle-end/64614
26559 * tree-ssa-uninit.c: Include tree-cfg.h.
26560 (MAX_SWITCH_CASES): New define.
26561 (convert_control_dep_chain_into_preds): Handle switch statements.
26562 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
26563 (normalize_one_pred_1): Do not split bit-manipulations.
26566 2015-01-16 Richard Biener <rguenther@suse.de>
26568 PR tree-optimization/64568
26569 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
26570 complex load rewriting for TARGET_MEM_REFs.
26572 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
26574 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
26576 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
26579 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
26581 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
26582 (aarch64_lra_p): Remove.
26584 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26587 * ipa-chkp.h (chkp_instrumentable_p): New.
26588 * ipa-chkp.c: Include tree-inline.h.
26589 (chkp_instrumentable_p): New.
26590 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
26591 Fix processing of not instrumentable functions.
26592 (chkp_versioning): Use chkp_instrumentable_p. Warn about
26593 not instrumentable functions.
26594 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
26595 chkp_instrumentable_p.
26596 * tree-inline.h (copy_forbidden): New.
26597 * tree-inline.c (copy_forbidden): Not static anymore.
26599 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26601 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
26604 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26606 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
26607 type OP_OUT to OP_INOUT.
26609 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26611 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
26612 (high x) y) to y if x and y have the same base.
26614 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26616 * config/arm/cortex-a57.md: New.
26617 * config/aarch64/aarch64.md: Include it.
26618 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
26619 * config/aarch64/aarch64-tune.md: Regenerate.
26621 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
26624 * ccmp.c (expand_ccmp_next): New function.
26625 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
26626 and compare insn sequence.
26627 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
26628 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
26629 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
26630 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
26631 (*ccmp_ior): Changed to ccmp_ior<mode>.
26632 (cmp<mode>): New pattern.
26633 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
26635 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
26637 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
26639 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
26640 _mm256_bsrli_epi128): New.
26641 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
26643 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26645 * expmed.c (store_bit_field_using_insv): Improve warning message.
26646 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
26648 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26650 PR rtl-optimization/64011
26651 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
26652 there is partial overflow.
26654 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26656 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
26658 (nds32_expand_epilogue_v3pop): Likewise.
26659 * config/nds32/nds32.md (sibcall): Define this for sibling call
26661 (sibcall_register): Likewise.
26662 (sibcall_immediate): Likewise.
26663 (sibcall_value): Likewise.
26664 (sibcall_value_register): Likewise.
26665 (sibcall_value_immediate): Likewise.
26666 (sibcall_epilogue): Likewise.
26667 (epilogue): Pass false to indicate this is not a sibcall epilogue.
26668 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
26669 (nds32_expand_epilogue_v3pop): Likewise.
26671 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26673 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
26674 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
26675 (return_internal): New.
26676 (return): Define this named pattern.
26677 (simple_return): Define this named pattern.
26678 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
26679 pattern instead of unspec_volatile_func_return.
26680 (nds32_expand_epilogue_v3pop): Likewise.
26681 (nds32_can_use_return_insn): New function.
26683 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26685 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
26686 * config/nds32/nds32.md (pop25return): New.
26687 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
26688 pop25return pattern.
26690 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26692 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
26693 -mforbid-fp-as-gp, and -mex9 options.
26695 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26697 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
26698 remove -mgp-direct option.
26700 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26702 * doc/invoke.texi (--param early-inlining-insns): Update default value.
26703 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
26705 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26707 * ipa-inline.c (inline_small_functions): Work around hints
26710 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
26713 * doc/invoke.texi (Option Summary): Document new Nios II
26715 (Nios II Options): Likewise.
26716 * config/nios2/nios2.opt: Add -mgpopt= option support.
26717 Modify existing -mgpopt and -mno-gpopt options to be aliases.
26718 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
26719 * config/nios2/nios2.c (nios2_option_override): Adjust
26720 -mgpopt defaulting.
26721 (nios2_in_small_data_p): Return true for explicit small data
26722 sections even with -G0.
26723 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
26726 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26729 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
26731 (inline_call): Fix removal of aliases.
26733 2015-01-15 Jakub Jelinek <jakub@redhat.com>
26735 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
26736 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
26737 * opts.c (common_handle_option): Add -fsanitize=vptr.
26738 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
26739 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
26740 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
26741 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
26742 (ubsan_expand_vptr_ifn): New prototype.
26743 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
26744 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
26745 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
26746 expand_LOOP_VECTORIZED): Make argument nameless, remove
26748 (expand_UBSAN_VPTR): New function.
26749 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
26751 (UBSAN_VPTR): New internal function.
26752 * sanopt.c (tree_map_traits): Renamed to ...
26753 (sanopt_tree_map_traits): ... this.
26754 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
26755 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
26756 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
26757 (maybe_optimize_ubsan_vptr_ifn): New function.
26758 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
26759 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
26761 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
26762 internal calls like pure functions for aliasing, even when they
26763 have other side-effects that prevent making them ECF_PURE.
26764 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
26765 (ubsan_expand_vptr_ifn): New function.
26767 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
26769 PR rtl-optimization/64110
26770 * stmt.c (parse_output_constraint): Process '^' and '$'.
26771 (parse_input_constraint): Ditto.
26772 * lra-constraints.c (process_alt_operands): Process the new
26774 * ira-costs.c (record_reg_classes): Process the new constraint
26776 * genoutput.c (indep_constraints): Add '^' and '$'.
26777 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
26778 * doc/md.texi: Add description of the new constraints.
26780 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
26781 Bernd Schmidt <bernds@codesourcery.com>
26782 Cesar Philippidis <cesar@codesourcery.com>
26783 James Norris <jnorris@codesourcery.com>
26784 Tom de Vries <tom@codesourcery.com>
26785 Ilmir Usmanov <i.usmanov@samsung.com>
26786 Dmitry Bocharnikov <dmitry.b@samsung.com>
26787 Evgeny Gavrin <e.gavrin@samsung.com>
26788 Jakub Jelinek <jakub@redhat.com>
26790 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
26791 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26792 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26793 New function types.
26794 * builtins.c: Include "gomp-constants.h".
26795 (expand_builtin_acc_on_device): New function.
26796 (expand_builtin, is_inexpensive_builtin): Handle
26797 BUILT_IN_ACC_ON_DEVICE.
26798 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
26800 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
26802 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
26803 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
26804 i386/intelmic-offload.h.
26805 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
26806 to libgomp and its dependencies.
26807 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
26808 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
26809 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
26810 * config/ia64/hpux.h (LIB_SPEC): Likewise.
26811 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26812 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
26813 * doc/generic.texi: Update for OpenACC changes.
26814 * doc/gimple.texi: Likewise.
26815 * doc/invoke.texi: Likewise.
26816 * doc/sourcebuild.texi: Likewise.
26817 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
26818 GF_OMP_FOR_KIND_OACC_LOOP.
26819 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
26820 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
26821 GF_OMP_TARGET_KIND_OACC_UPDATE,
26822 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26824 * gimple.c: Update comments for OpenACC changes.
26825 * gimple.def: Likewise.
26826 * gimple.h: Likewise.
26827 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
26828 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26829 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
26830 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26831 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
26833 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
26834 * gimplify.c: Include "gomp-constants.h".
26835 Update comments for OpenACC changes.
26836 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
26837 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
26838 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26839 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
26840 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26841 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26842 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
26843 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26844 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
26846 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
26847 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
26848 OMP_CLAUSE_SET_MAP_KIND.
26849 (gimplify_oacc_cache): New function.
26850 (gimplify_omp_for): Handle OACC_LOOP.
26851 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
26853 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
26854 OACC_EXIT_DATA, OACC_UPDATE.
26855 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
26856 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
26857 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
26858 (gimplify_body): Consider flag_openacc next to flag_openmp.
26859 * lto-streamer-out.c: Include "gomp-constants.h".
26860 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
26861 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
26862 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
26863 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
26864 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
26865 (BUILT_IN_ACC_ON_DEVICE): New builtins.
26866 * omp-low.c: Include "gomp-constants.h".
26867 Update comments for OpenACC changes.
26868 (struct omp_context): Add reduction_map, gwv_below, gwv_this
26870 (extract_omp_for_data, use_pointer_for_field, install_var_field)
26871 (new_omp_context, delete_omp_context, scan_sharing_clauses)
26872 (create_omp_child_function, scan_omp_for, scan_omp_target)
26873 (check_omp_nesting_restrictions, lower_reduction_clauses)
26874 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
26875 Update for OpenACC changes.
26876 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
26877 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
26878 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
26879 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26880 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
26881 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
26883 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26884 Handle GF_OMP_FOR_KIND_OACC_LOOP.
26885 (expand_omp_target, lower_omp_target): Handle
26886 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26887 GF_OMP_TARGET_KIND_OACC_UPDATE,
26888 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
26889 GF_OMP_TARGET_KIND_OACC_DATA.
26890 (pass_expand_omp::execute, execute_lower_omp)
26891 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
26893 (offload_symbol_decl): New variable.
26894 (oacc_get_reduction_array_id, oacc_max_threads)
26895 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
26896 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
26897 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
26898 (oacc_gimple_assign, oacc_initialize_reduction_data)
26899 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
26901 (is_targetreg_ctx): Remove function.
26902 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
26903 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
26904 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26905 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
26906 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
26907 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
26908 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
26909 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
26910 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
26911 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
26912 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
26913 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
26914 * tree-core.h: Update comments for OpenACC changes.
26915 (enum omp_clause_map_kind): Remove.
26916 (struct tree_omp_clause): Change type of map_kind member from enum
26917 omp_clause_map_kind to unsigned char.
26918 * tree-inline.c: Update comments for OpenACC changes.
26919 * tree-nested.c: Likewise. Include "gomp-constants.h".
26920 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
26921 (convert_tramp_reference_stmt, convert_gimple_call): Update for
26922 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
26923 OMP_CLAUSE_SET_MAP_KIND.
26924 * tree-pretty-print.c: Include "gomp-constants.h".
26925 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
26926 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
26927 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
26928 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
26929 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26930 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
26931 instead of OMP_CLAUSE_MAP_*.
26932 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
26933 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
26934 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26935 * tree-streamer-in.c: Include "gomp-constants.h".
26936 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
26937 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
26938 * tree-streamer-out.c: Include "gomp-constants.h".
26939 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
26941 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
26942 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
26943 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
26944 * tree.c (omp_clause_num_ops): Update accordingly.
26945 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
26947 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
26948 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
26949 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
26950 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
26951 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
26952 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
26953 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
26954 (OMP_CLAUSE_SET_MAP_KIND): New macro.
26955 * varpool.c (varpool_node::get_create): Consider flag_openacc next
26957 * config/i386/intelmic-offload.h: New file.
26958 * config/nvptx/offload.h: Likewise.
26960 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26962 * explow.h: Remove duplicate contents.
26963 * dojump.h: Likewise.
26965 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
26967 * arm.c (arm_xgene_tune): Add default initializer for instruction
26970 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26974 * ipa.c (symbol_table::remove_unreachable_nodes):
26975 Do not put abstract origins into boundary.
26977 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
26979 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
26980 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
26982 2015-01-15 Steve Ellcey <sellcey@mips.com>
26984 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
26985 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
26986 builtins.def, and chkp-builtins.def.
26988 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
26990 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
26993 2015-01-15 Richard Biener <rguenther@suse.de>
26995 PR tree-optimization/61743
26996 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
26997 information on PHIs for some simple cases.
26999 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27001 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
27003 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
27004 * config/arm/arm-cores.def (xgene1): New entry.
27005 * config/arm/arm-tables.opt: Regenerate.
27006 * config/arm/arm-tune.md: Regenerate.
27007 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
27009 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27011 * tree-if-conv.c: Include hash-map.h.
27012 (aggressive_if_conv): New variable.
27013 (fold_build_cond_expr): Add simplification of non-zero condition.
27014 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
27015 destination block is not always executed.
27016 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
27017 than two predecessors if AGGRESSIVE_IF_CONV is true.
27018 (if_convertible_stmt_p): Fix commentary.
27019 (all_preds_critical_p): New function.
27020 (has_pred_critical_p): New function.
27021 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
27022 BB can have more than two predecessors and all incoming edges can be
27024 (predicate_bbs): Skip predication for loop exit block, use build2_loc
27025 to compute predicate for true edge.
27026 (find_phi_replacement_condition): Delete this function.
27027 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
27028 Allow interchange PHI arguments if EXTENDED is false.
27029 Change check that block containing reduction statement candidate
27030 is predecessor of phi-block since phi may have more than two arguments.
27031 (phi_args_hash_traits): New helper structure.
27032 (struct phi_args_hash_traits): New type.
27033 (phi_args_hash_traits::hash): New function.
27034 (phi_args_hash_traits::equal_keys): New function.
27035 (gen_phi_arg_condition): New function.
27036 (predicate_scalar_phi): Add handling of phi nodes with more than two
27037 arguments, delete COND and TRUE_BB arguments, insert body of
27038 find_phi_replacement_condition to predicate ordinary phi nodes.
27039 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
27040 delete call of find_phi_replacement_condition and invoke
27041 predicate_scalar_phi with two arguments.
27042 (insert_gimplified_predicates): Add assert that non-predicated block
27043 don't have statements to insert.
27044 (ifcvt_split_critical_edges): New function.
27045 (ifcvt_split_def_stmt): Likewise.
27046 (ifcvt_walk_pattern_tree): Likewise.
27047 (stmt_is_root_of_bool_pattern): Likewise.
27048 (ifcvt_repair_bool_pattern): Likewise.
27049 (ifcvt_local_dce): Likewise.
27050 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
27051 is copy of inner or outer loop force_vectorize field, invoke
27052 ifcvt_split_critical_edges, ifcvt_local_dce and
27053 ifcvt_repair_bool_pattern for aggressive if-conversion.
27055 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
27057 * config/aarch64/aarch64.md: Include xgene1.md.
27058 * config/aarch64/xgene1.md: New file.
27060 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27062 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
27063 xgene1 (APM XGene-1) core definition.
27064 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
27065 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
27066 * doc/invoke.texi: Document -mcpu=xgene1.
27068 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27070 * dojump.h: New header file.
27071 * explow.h: Likewise.
27072 * expr.h: Remove includes.
27073 Move expmed.c prototypes to expmed.h.
27074 Move dojump.c prototypes to dojump.h.
27075 Move alias.c prototypes to alias.h.
27076 Move explow.c prototypes to explow.h.
27077 Move calls.c prototypes to calls.h.
27078 Move emit-rtl.c prototypes to emit-rtl.h.
27079 Move varasm.c prototypes to varasm.h.
27080 Move stmt.c prototypes to stmt.h.
27081 (saved_pending_stack_adjust): Move to dojump.h.
27082 (adjust_address): Move to explow.h.
27083 (adjust_address_nv): Move to emit-rtl.h.
27084 (adjust_bitfield_address): Likewise.
27085 (adjust_bitfield_address_size): Likewise.
27086 (adjust_bitfield_address_nv): Likewise.
27087 (adjust_automodify_address_nv): Likewise.
27088 * explow.c (expr_size): Move to expr.c.
27089 (int_expr_size): Likewise.
27090 (tree_expr_size): Likewise.
27091 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27092 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27093 * genemit.c (main): Generate includes statistics.h, real.h,
27094 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
27096 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
27097 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
27098 explow.h, emit-rtl.h, stmt.h.
27099 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
27100 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
27101 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
27102 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
27103 emit-rtl.h, varasm.h, stmt.h.
27104 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
27105 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
27106 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
27107 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
27108 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27109 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
27110 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
27111 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
27112 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
27113 tm.h tree.h varasm.h vec.h wide-int.h.
27114 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27115 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27116 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
27117 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
27118 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
27119 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
27120 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
27121 * loop-iv.c: Likewise.
27122 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
27123 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
27124 statistics.h stmt.h tree.h varasm.h wide-int.h.
27125 * lra-constraints.c: Likewise.
27126 * lra-eliminations.c: Likewise.
27127 * lra-lives.c: Likewise.
27128 * lra-remat.c: Likewise.
27129 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27130 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
27131 statistics.h stmt.h tree.h varasm.h wide-int.h.
27132 * hw-doloop.c: Likewise.
27133 * ira-color.c: Likewise.
27134 * ira-emit.c: Likewise.
27135 * loop-doloop.c: Likewise.
27136 * loop-invariant.c: Likewise.
27137 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27138 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
27139 statistics.h stmt.h tree.h varasm.h wide-int.h.
27140 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
27141 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
27142 statistics.h stmt.h tree.h varasm.h wide-int.h.
27143 * combine-stack-adj.c: Likewise.
27146 * ifcvt.c: Likewise.
27147 * ira-costs.c: Likewise.
27148 * jump.c: Likewise.
27149 * lra-coalesce.c: Likewise.
27150 * lra-spills.c: Likewise.
27151 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27152 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
27153 stmt.h varasm.h wide-int.h.
27154 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27155 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27157 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
27158 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
27159 statistics.h stmt.h varasm.h wide-int.h.
27160 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
27161 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
27162 varasm.h wide-int.h.
27163 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
27164 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27165 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
27166 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
27167 statistics.h stmt.h.
27168 * config/tilepro/tilepro.c: Likewise.
27169 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
27170 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
27171 * config/pdp11/pdp11.c: Likewise.
27172 * config/xtensa/xtensa.c: Likewise.
27173 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
27174 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27176 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27177 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27178 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
27179 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27180 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27181 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
27182 * rtl-chkp.c: Likewise.
27183 * tree-chkp-opt.c: Likewise.
27184 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
27185 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27186 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
27187 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27188 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27189 statistics.h stmt.h.
27190 * tree-vect-data-refs.c: Likewise.
27191 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
27192 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27193 rtl.h statistics.h stmt.h varasm.h.
27194 * internal-fn.c: Likewise.
27195 * ipa-icf-gimple.c: Likewise.
27196 * lto-section-out.c: Likewise.
27197 * tree-data-ref.c: Likewise.
27198 * tree-nested.c: Likewise.
27199 * tree-outof-ssa.c: Likewise.
27200 * tree-predcom.c: Likewise.
27201 * tree-pretty-print.c: Likewise.
27202 * tree-scalar-evolution.c: Likewise.
27203 * tree-ssa-strlen.c: Likewise.
27204 * tree-vect-loop.c: Likewise.
27205 * tree-vect-patterns.c: Likewise.
27206 * tree-vect-slp.c: Likewise.
27207 * tree-vect-stmts.c: Likewise.
27208 * tsan.c: Likewise.
27209 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27210 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
27212 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
27213 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27214 statistics.h stmt.h varasm.h.
27215 * loop-unroll.c: Likewise.
27216 * ubsan.c: Likewise.
27217 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
27218 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
27220 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27221 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
27222 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
27223 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27224 statistics.h stmt.h.
27225 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
27226 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27227 statistics.h stmt.h varasm.h.
27228 * gimple-match-head.c: Likewise.
27229 * lto-cgraph.c: Likewise.
27230 * lto-section-in.c: Likewise.
27231 * lto-streamer-in.c: Likewise.
27232 * lto-streamer-out.c: Likewise.
27233 * tree-affine.c: Likewise.
27234 * tree-cfg.c: Likewise.
27235 * tree-cfgcleanup.c: Likewise.
27236 * tree-if-conv.c: Likewise.
27237 * tree-into-ssa.c: Likewise.
27238 * tree-ssa-alias.c: Likewise.
27239 * tree-ssa-copyrename.c: Likewise.
27240 * tree-ssa-dse.c: Likewise.
27241 * tree-ssa-forwprop.c: Likewise.
27242 * tree-ssa-live.c: Likewise.
27243 * tree-ssa-math-opts.c: Likewise.
27244 * tree-ssa-pre.c: Likewise.
27245 * tree-ssa-sccvn.c: Likewise.
27246 * tree-tailcall.c: Likewise.
27247 * tree-vect-generic.c: Likewise.
27248 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27249 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
27250 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27251 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
27252 * varasm.c: Likewise.
27253 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27254 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
27256 * init-regs.c: Likewise.
27258 * omp-low.c: Likewise.
27259 * stack-ptr-mod.c: Likewise.
27260 * tree-ssa-reassoc.c: Likewise.
27261 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27262 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
27264 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27265 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
27266 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27267 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
27268 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27269 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
27270 * tree-ssa-phiopt.c: Likewise.
27271 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27272 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27273 * config/fr30/fr30.c: Likewise.
27274 * config/frv/frv.c: Likewise.
27275 * expr.c: Likewise.
27276 * final.c: Likewise.
27277 * optabs.c: Likewise.
27278 * passes.c: Likewise.
27279 * simplify-rtx.c: Likewise.
27280 * stmt.c: Likewise.
27281 * toplev.c: Likewise.
27282 * var-tracking.c: Likewise.
27283 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27284 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27285 * lower-subreg.c: Likewise.
27286 * postreload-gcse.c: Likewise.
27288 * reginfo.c: Likewise.
27289 * store-motion.c: Likewise.
27290 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27291 fixed-value.h hashtab.h real.h stmt.h varasm.h.
27292 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27293 fixed-value.h hashtab.h statistics.h stmt.h.
27294 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27295 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27296 * except.c: Likewise.
27297 * explow.c: Likewise.
27298 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27299 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
27301 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27302 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
27303 * tree-ssa-structalias.c: Likewise.
27304 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27305 fixed-value.h insn-config.h real.h statistics.h.
27306 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27307 fixed-value.h insn-config.h real.h statistics.h stmt.h.
27308 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27309 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27310 * cfgbuild.c: Likewise.
27311 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27312 fixed-value.h real.h rtl.h statistics.h stmt.h.
27313 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27314 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27315 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27316 fixed-value.h real.h statistics.h stmt.h.
27317 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27318 fixed-value.h real.h statistics.h stmt.h varasm.h.
27319 * cprop.c: Likewise.
27320 * modulo-sched.c: Likewise.
27321 * postreload.c: Likewise.
27322 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27323 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
27324 statistics.h stmt.h varasm.h.
27325 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
27326 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27327 rtl.h statistics.h stmt.h varasm.h.
27328 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
27329 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
27331 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27332 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
27334 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
27335 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
27337 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
27338 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27339 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27340 function.h real.h statistics.h stmt.h varasm.h.
27341 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27342 insn-config.h real.h statistics.h stmt.h.
27343 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27344 statistics.h stmt.h.
27345 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
27346 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
27347 statistics.h stmt.h varasm.h.
27348 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
27349 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
27350 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27351 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
27352 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
27353 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27354 statistics.h stmt.h varasm.h.
27355 * ipa-polymorphic-call.c: Likewise.
27356 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
27357 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27358 statistics.h stmt.h.
27359 * config/c6x/c6x.c: Likewise.
27360 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
27361 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27362 statistics.h stmt.h varasm.h.
27363 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
27364 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
27366 * ipa-split.c: Likewise.
27367 * tree-eh.c: Likewise.
27368 * tree-ssa-dce.c: Likewise.
27369 * tree-ssa-loop-niter.c: Likewise.
27370 * tree-vrp.c: Likewise.
27371 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
27372 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
27374 * config/nds32/nds32-fp-as-gp.c: Likewise.
27375 * config/nds32/nds32-intrinsic.c: Likewise.
27376 * config/nds32/nds32-isr.c: Likewise.
27377 * config/nds32/nds32-md-auxiliary.c: Likewise.
27378 * config/nds32/nds32-memory-manipulation.c: Likewise.
27379 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27380 * config/nds32/nds32-predicates.c: Likewise.
27381 * config/nds32/nds32.c: Likewise.
27382 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
27383 fixed-value.h hashtab.h real.h statistics.h.
27384 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
27385 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27386 * config/arm/arm.c: Likewise.
27387 * config/avr/avr.c: Likewise.
27388 * config/bfin/bfin.c: Likewise.
27389 * config/h8300/h8300.c: Likewise.
27390 * config/i386/i386.c: Likewise.
27391 * config/ia64/ia64.c: Likewise.
27392 * config/iq2000/iq2000.c: Likewise.
27393 * config/m32c/m32c.c: Likewise.
27394 * config/m32r/m32r.c: Likewise.
27395 * config/m68k/m68k.c: Likewise.
27396 * config/mcore/mcore.c: Likewise.
27397 * config/mep/mep.c: Likewise.
27398 * config/mips/mips.c: Likewise.
27399 * config/mn10300/mn10300.c: Likewise.
27400 * config/moxie/moxie.c: Likewise.
27401 * config/pa/pa.c: Likewise.
27402 * config/rl78/rl78.c: Likewise.
27403 * config/rx/rx.c: Likewise.
27404 * config/s390/s390.c: Likewise.
27405 * config/sh/sh.c: Likewise.
27406 * config/sparc/sparc.c: Likewise.
27407 * config/spu/spu.c: Likewise.
27408 * config/stormy16/stormy16.c: Likewise.
27409 * config/v850/v850.c: Likewise.
27410 * config/vax/vax.c: Likewise.
27411 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
27412 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27413 * config/msp430/msp430.c: Likewise.
27414 * predict.c: Likewise.
27415 * value-prof.c: Likewise.
27416 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
27417 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
27418 * config/microblaze/microblaze.c: Likewise.
27419 * config/nios2/nios2.c: Likewise.
27420 * config/rs6000/rs6000.c: Likewise.
27421 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27422 insn-config.h real.h rtl.h statistics.h stmt.h.
27423 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27424 insn-config.h real.h statistics.h stmt.h.
27425 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
27426 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27427 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
27428 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27429 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
27430 fixed-value.h real.h statistics.h stmt.h.
27431 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
27432 fixed-value.h statistics.h stmt.h.
27433 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
27436 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27438 * gengtype.c (create_user_defined_type): Workaround
27439 -Wmaybe-uninitialized false positives.
27440 * cse.c (fold_rtx): Likewise.
27441 * loop-invariant.c (gain_for_invariant): Likewise.
27443 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
27445 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
27446 set the memory attributes in all cases but clear MEM_EXPR if need be.
27448 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27450 PR tree-optimization/64434
27451 * cfgexpand.c (reorder_operands): New function.
27452 (expand_gimple_basic_block): Insert call of reorder_operands if
27455 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
27457 * config/mips/micromips.md (*swp): Remove explicit parallel.
27458 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
27459 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
27460 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
27461 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
27462 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
27463 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
27464 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
27465 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
27466 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
27467 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
27468 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
27469 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
27470 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
27471 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
27472 (mips_wrdsp): Likewise.
27473 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
27475 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
27476 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
27477 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
27478 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
27479 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
27480 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
27481 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
27482 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
27483 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
27485 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27487 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
27488 (mips_print_operand): Support 'y' to print exact log2 in decimal
27490 * config/mips/mips.h (ISA_HAS_LSA): New define.
27491 (ISA_HAS_DLSA): Likewise.
27492 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
27493 * config/mips/predicates.md (const_immlsa_operand): New predicate.
27495 2015-01-15 Martin Liska <mliska@suse.cz>
27498 * optc-save-gen.awk: Add support for array types.
27500 2015-01-15 Richard Biener <rguenther@suse.de>
27502 PR middle-end/64365
27503 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
27504 for MEM_REF access functions with the same base can never partially
27507 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
27509 * common.opt: New option -fstack-protector-explicit.
27510 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
27511 (stack_protect_decl_phase): Handle stack_protect attribute for
27512 explicit stack protection requests.
27513 (expand_used_vars): Similarly.
27514 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
27515 * doc/extend.texi: Add documentation for "stack_protect" attribute.
27516 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
27518 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
27521 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
27523 (sh_extending_set_of_reg): New struct.
27524 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
27525 sh_remove_reg_dead_or_unused_notes): New Declarations.
27526 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
27527 sh_find_extending_set_of_reg, sh_split_tst_subregs,
27528 sh_extending_set_of_reg::use_as_extended_reg): New functions.
27529 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
27530 convert to insn_and_split and use new function sh_split_tst_subregs.
27532 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
27534 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
27536 (Optimization Options): Move -fuse-ld documentation to...
27537 (Link Options): ...here.
27539 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27541 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
27543 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
27544 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
27545 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
27546 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
27547 instead of ZR for the memory operand of LL/SC.
27548 (compare_and_swap_12, sync_add<mode>): Likewise.
27549 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
27550 (sync_new_<optab>_12, sync_nand_12): Likewise.
27551 (sync_old_nand_12, sync_new_nand_12): Likewise.
27552 (sync_sub<mode>, sync_old_add<mode>): Likewise.
27553 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
27554 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
27555 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
27556 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
27557 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
27558 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
27559 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
27560 * doc/md.texi (ZC): Update description.
27562 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27564 * builtins.c (expand_builtin_atomic_exchange): Remove error when
27565 memory model is CONSUME.
27566 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
27567 expand_builtin_atomic_store): Change invalid memory model errors to
27569 (expand_builtin_atomic_clear): Change invalid model errors to warnings
27570 and issue warning for CONSUME.
27572 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
27574 * lto-cgraph: Update function comments for
27575 lto_symtab_encoder_encode_*.
27577 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27579 * Makefile.in (site.exp): Do not set ENABLE_LTO.
27581 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27583 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
27584 * lto-cgraph.c (select_what_to_stream): Remove argument, use
27585 lto_stream_offload_p instead.
27586 * lto-streamer.h (select_what_to_stream): Remove argument.
27587 * passes.c (ipa_write_summaries): Likewise.
27588 * tree-pass.h (ipa_write_summaries): Likewise.
27590 2015-01-14 Richard Biener <rguenther@suse.de>
27592 PR tree-optimization/59354
27593 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
27594 groups larger than the slp group size as having gaps.
27596 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27598 PR middle-end/59448
27599 * builtins.c (get_memmodel): Promote consume to acquire always.
27601 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27604 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
27607 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27610 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
27612 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
27613 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
27614 AVX512VBMI, as it implies AVX512BW.
27616 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27619 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
27620 (vec_unpacks_hi_v16sf): Ditto.
27622 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27624 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
27627 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27629 * doc/invoke.texi (mapcs): Mention deprecation.
27630 (mapcs-frame): Likewise.
27632 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
27635 * config/arm/arm.c (callee_saved_reg_p): Define.
27636 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
27637 register is callee saved instead of !call_used_regs[reg].
27638 (thumb1_compute_save_reg_mask): Likewise.
27640 2015-01-14 Hale Wang <hale.wang@arm.com>
27642 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
27645 2015-01-14 Richard Biener <rguenther@suse.de>
27648 * tree-inline.c (insert_debug_decl_map): Check destination
27649 function MAY_HAVE_DEBUG_STMTS.
27650 (insert_init_debug_bind): Likewise.
27651 (insert_init_stmt): Remove redundant check.
27652 (remap_gimple_stmt): Drop debug stmts if the destination
27653 function has var-tracking assignments disabled.
27655 2015-01-14 Martin Liska <mliska@suse.cz>
27657 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
27658 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
27660 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27663 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
27664 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
27666 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27668 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
27669 level from an ARCH; do not inject the default.
27670 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
27671 MIPS_ISA_LEVEL_SPEC.
27672 (MIPS_ISA_NAN2008_SPEC): Update comment.
27673 (BASE_DRIVER_SELF_SPECS): Likewise.
27674 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
27675 MIPS_DEFAULT_ISA_LEVEL_SPEC.
27676 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
27677 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
27678 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
27680 2015-01-14 Richard Biener <rguenther@suse.de>
27682 PR tree-optimization/64493
27683 PR tree-optimization/64495
27684 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
27685 assign the proper vectorized PHI to the inner loop exit PHIs.
27687 2015-01-14 Joey Ye <joey.ye@arm.com>
27689 * config/arm/arm.c (arm_compute_save_reg_mask):
27690 Do not save lr in case of tail call.
27691 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
27693 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
27695 * tree-vrp.c (check_array_ref): Emit more warnings
27696 for warn_array_bounds >= 2.
27697 * common.opt: New option -Warray-bounds=.
27698 * doc/invoke.texi: Document -Warray-bounds=.
27700 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
27702 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
27703 (mforbid-fp-as-gp): Remove.
27705 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
27706 (nds32_symbol_load_store_p): Remove.
27707 (nds32_fp_as_gp_check_available): Clean up implementation.
27708 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
27710 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
27711 fp-as-gp and ex9 cases.
27713 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27715 * tree-profile.c (init_ic_make_global_vars): Drop workaround
27716 for bintuils bug 14342.
27717 (init_ic_make_global_vars): Likewise.
27718 (gimple_init_edge_profiler): Likewise.
27719 (gimple_gen_ic_func_profiler): Likewise.
27721 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27723 * ipa-inline.c (inline_small_functions): Swap the operands in
27726 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27729 * ipa-inline-analysis.c (node_growth_cache): Remove.
27730 (initialize_growth_caches): Do not initialize it.
27731 (free_growth_caches): Do not free it.
27732 (do_estimate_growth): Rename to ...
27733 (estimate_growth): ... this one; drop growth cache code.
27734 (growth_likely_positive): Always go the heuristics way.
27735 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
27736 (reset_edge_caches): Do not reset node growth.
27737 (heap_edge_removal_hook): Do not maintain cache.
27738 (inline_small_functions): Likewise; strenghten sanity check.
27739 (ipa_inline): Do not maintain caches.
27740 * ipa-inline.h (node_growth_cache): Remove.
27741 (do_estimate_growth): Remove to ...
27742 (estimate_growth): this one; remove inline version.
27743 (reset_node_growth_cache): Remove.
27745 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27748 * ipa-inline.c (inline_small_functions): Update callee keys after
27749 resolving speculation
27750 (inline_small_functions): Always check monotonicity of the queue.
27752 2015-01-13 Marek Polacek <polacek@redhat.com>
27754 PR middle-end/64391
27755 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
27757 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27759 PR rtl-optimization/64286
27760 * ree.c (combine_reaching_defs): Move part of comment earlier,
27761 remove !SCALAR_INT_MODE_P check.
27762 (add_removable_extension): Don't add vector mode
27763 extensions if all uses of the source register aren't the same
27766 2015-01-13 Renlin Li <renlin.li@arm.com>
27768 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
27769 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
27771 2015-01-13 Martin Liska <mliska@suse.cz>
27773 * ipa-icf.c (sem_function::equals_private): Call new functions
27774 cl_target_option_print_diff and cl_optimization_print_diff.
27775 * optc-save-gen.awk (cl_target_option_print_diff): New function.
27776 (cl_optimization_print_diff): Likewise.
27777 * opth-gen.awk: Likewise.
27779 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
27781 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
27782 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
27783 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
27784 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
27785 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
27786 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
27788 2015-01-13 Andrew Pinski <apinski@cavium.com>
27790 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
27791 instead of src mode.
27793 2015-01-13 Richard Biener <rguenther@suse.de>
27796 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
27799 2015-01-13 Andrew Pinski <apinski@cavium.com>
27801 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
27803 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
27805 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27807 PR middle-end/63974
27808 * cfgexpand.c (expand_computed_goto): Don't call
27809 convert_memory_address here.
27811 2015-01-13 Richard Biener <rguenther@suse.de>
27813 PR tree-optimization/64406
27814 * tree-loop-distibution.c (pass_loop_distribution::execute):
27815 Reset the SCEV hashtable if we distributed anything.
27817 2015-01-13 Richard Biener <rguenther@suse.de>
27819 PR tree-optimization/64404
27820 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
27821 SLP types for CSEd loads.
27823 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27825 PR tree-optimization/64436
27826 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
27827 merge of two symbolic numbers for a bitwise OR to ...
27828 (perform_symbolic_merge): This. Also fix computation of the range and
27829 end of the symbolic number corresponding to the result of a bitwise OR.
27831 2015-01-13 Richard Biener <rguenther@suse.de>
27833 PR tree-optimization/64568
27834 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
27835 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
27837 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27839 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
27840 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
27842 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27844 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
27845 target-specific symbol_ref flag.
27846 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
27847 resides in rodata section.
27848 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
27849 (nds32_encode_section_info): New function.
27851 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27853 * config/nds32/nds32.md (call): Use pseudo instruction bal which
27854 clobbers TA_REGNUM if large code model is specified.
27855 (call_register): Likewise.
27856 (call_immediate): Likewise.
27857 (call_value): Likewise.
27858 (call_value_register): Likewise.
27859 (call_value_immediate): Likewise.
27861 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27863 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
27864 (TARGET_CMODEL_MEDIUM): New macro.
27865 (TARGET_CMODEL_LARGE): New macro.
27866 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
27867 code model setting in assembly code.
27869 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27871 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27872 Remove MASK_GP_DIRECT flag.
27873 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
27874 one of the multilib default options.
27875 * config/nds32/nds32.opt (mgp-direct): Remove.
27876 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
27877 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
27879 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27881 * config/nds32/nds32.opt (mcmodel): Add new option.
27882 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
27883 to describe code model.
27885 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
27888 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
27890 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
27892 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
27893 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27894 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
27895 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
27896 __builtin_sh_set_fpscr.
27898 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
27900 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
27901 after a funtion name just to indicate it is a function.
27902 ([-fsanitize-undefined-trap-on-error]): Likewise.
27903 ([-fdbg-cnt=]): Likewise.
27904 ([-mmemcpy]): Likewise.
27905 ([-mflush-func]): Likewise.
27906 ([-msynci]): Likewise.
27908 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
27910 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
27913 2015-01-12 Jakub Jelinek <jakub@redhat.com>
27915 PR tree-optimization/64563
27916 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
27917 instead of != VR_VARYING.
27920 * config/i386/i386.c (ix86_expand_prologue): Add
27921 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
27923 PR tree-optimization/64454
27924 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
27925 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
27926 for signed or [0, op1 - 1] for unsigned modulo.
27927 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
27928 even if op1 does not satisfy integer_pow2p.
27931 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
27933 2015-01-12 Jeff Law <law@redhat.com>
27936 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
27937 (trunchiqi2, truncsihi2): Similarly.
27939 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
27940 rather than calling F.
27942 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
27944 * tsan.c (instrument_expr): Use force_gimple_operand.
27945 Use may_be_nonaddressable_p instead of is_gimple_addressable.
27947 2015-01-12 Richard Biener <rguenther@suse.de>
27949 PR tree-optimization/64530
27950 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
27953 2015-01-12 Richard Biener <rguenther@suse.de>
27955 PR middle-end/64357
27956 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
27959 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27961 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
27962 Cortex-A17 tuning parameters.
27963 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
27965 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27967 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
27968 * config/arm/arm.c (arm_macro_fusion_p): New function.
27969 (arm_macro_fusion_pair_p): Likewise.
27970 (TARGET_SCHED_MACRO_FUSION_P): Define.
27971 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
27972 (ARM_FUSE_NOTHING): Likewise.
27973 (ARM_FUSE_MOVW_MOVT): Likewise.
27974 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
27975 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
27976 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
27977 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
27978 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
27979 arm_cortex_a5_tune): Specify fuseable_ops value.
27981 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
27984 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
27985 test for PIE with copy reloc.
27986 * configure: Regenerated.
27988 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27990 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
27992 (arm_tls_descseq_addr): Likewise.
27993 (arm_gen_movmemqi): Likewise.
27994 (arm_expand_epilogue_apcs_frame): Likewise.
27995 (arm_expand_epilogue): Likewise.
27996 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
27999 2015-01-12 Martin Liska <mliska@suse.cz>
28002 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
28003 volatility for correct operands.
28005 2015-01-12 Martin Liska <mliska@suse.cz>
28007 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
28008 indication that a function is not leaf.
28009 (sem_function::compare_polymorphic_p): Likewise.
28011 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28013 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
28014 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
28015 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
28016 fold-const.h, tree-check.h.
28018 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28022 * ipa-inline.c (compute_uninlined_call_time,
28023 compute_inlined_call_time): Use counts for extra precision when
28025 (big_speedup_p): Fix formating.
28026 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
28027 (relative_time_benefit): Remove.
28028 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
28029 merge guessed and read profile paths.
28030 (inline_small_functions): Count only !optimize_size functions into
28031 initial size; be more lax about sanity check when profile is used;
28032 be sure to update inlined function profile when profile is read.
28034 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28037 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
28038 cost when edge becomes direct.
28039 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
28040 is resolved or when introducing new speculation.
28042 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
28046 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
28047 '||' to fix typo issue.
28049 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
28050 accept and return NULL.
28052 2015-01-12 Martin Liska <mliska@suse.cz>
28054 * cgraph.c (cgraph_edge::remove_callee): Move function to header
28055 file for being inlined.
28056 (cgraph_set_edge_callee): Delete.
28057 (cgraph_edge::redirect_callee): Move function to header file
28059 (cgraph_edge::make_direct): Use new function.
28060 (cgraph_edge::dump_edge_flags): New function created from
28061 static dump_edge_flags function.
28062 (cgraph_node::dump): Use new function.
28063 (cgraph_edge::verify_count_and_frequency): New function created
28064 from verify_edge_count_and_frequency.
28065 (cgraph_edge::verify_corresponds_to_fndecl): New function created
28066 from verify_edge_corresponds_to_fndecl.
28067 (verify_edge_corresponds_to_fndecl): Delete.
28068 (cgraph_node::verify_node): Use new function.
28069 * cgraph.h (cgraph_edge::set_callee): New function.
28070 (cgraph_edge::dump_edge_flags): Likewise.
28071 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
28073 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
28075 * ipa-utils.c (estimate_function_body_sizes): Do not
28076 free node params when called late with early=true.
28078 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
28080 * doc/md.texi (Instruction Patterns): Rewrite text for
28082 (Example): Likewise.
28084 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
28086 * doc/invoke.texi (Option Summary): Break long lines.
28087 [(-fdiagnostics-color)]: Put long literal in @smallexample
28089 [(-fsanitize-recover)]: Likewise.
28090 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
28091 [(-ffast-math)]: Likewise.
28092 [(--param max-inline-insns-recursive)]: Likewise.
28093 [(--param max-inline-recursive-depth)]: Likewise.
28094 [(-mno-text-section-literals)]: Likewise.
28096 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
28098 * doc/install.texi: Update for libgomp being renamed from "GNU
28099 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
28101 * doc/sourcebuild.texi: Likewise.
28103 2015-01-10 Anthony Green <green@moxielogic.com>
28105 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
28106 mul.x availability for moxiebox configuration.
28108 2015-01-09 Anthony Green <green@moxielogic.com>
28110 * config/moxie/moxie.md: Tabify assembly output.
28112 2015-01-09 Anthony Green <green@moxielogic.com>
28114 * config/moxie/moxie.md (CC_REG): Correct register definition.
28116 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
28118 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
28119 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
28122 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28124 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
28126 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
28127 Jakub Jelinek <jakub@redhat.com>
28129 PR middle-end/64412
28130 * lto-streamer.h (lto_stream_offload_p): New declaration.
28131 * lto-streamer.c (lto_stream_offload_p): New variable.
28132 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
28133 at the same time as section_name_prefix.
28134 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
28135 if lto_stream_offload_p.
28136 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
28137 stream TREE_TARGET_OPTION if lto_stream_offload_p.
28138 (write_ts_function_decl_tree_pointers): Don't
28139 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
28140 * tree-streamer-in.c (unpack_value_fields): Don't stream
28141 TREE_TARGET_OPTION in if ACCEL_COMPILER.
28142 (lto_input_ts_function_decl_tree_pointers): Don't stream
28143 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
28144 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
28145 instead of section_name_prefix string comparisons.
28147 2015-01-09 Jakub Jelinek <jakub@redhat.com>
28149 PR rtl-optimization/64536
28150 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
28153 2015-01-09 Michael Collison <michael.collison@linaro.org>
28155 PR tree-optimization/64322
28156 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
28157 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
28159 2015-01-09 Tom de Vries <tom@codesourcery.com>
28161 PR rtl-optimization/64539
28162 * regcprop.c (kill_clobbered_values): Factor out of ...
28163 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
28164 instead of note_stores with kill_clobbered_value.
28166 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28168 * ginclude/unwind-arm-common.h: Revert previous commit.
28170 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28172 * config.gcc (arm*-*-freebsd*): New configuration.
28173 * config/arm/freebsd.h: New file.
28174 * config.host: Add extra components for arm*-*-freebsd*.
28175 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
28176 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
28178 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28180 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
28182 * config/rs6000/t-rtems: Add e6500 multilibs.
28184 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28186 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
28189 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28191 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
28192 MULTILIB_EXCEPTIONS.
28194 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28196 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
28197 MULTILIB_EXCEPTIONS.
28199 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28201 * config/arm/t-rtems-eabi: Rename to...
28202 * config/arm/t-rtems: ...this.
28203 * config/arm/rtems-eabi.h: Rename to...
28204 * config/arm/rtems.h: ...this.
28205 * config.gcc (arm*-*-rtems*): Reflect changes above.
28207 2015-01-09 Richard Biener <rguenther@suse.de>
28209 PR tree-optimization/64410
28210 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
28212 (execute_update_addresses_taken): Deal with that.
28213 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
28214 loads/stores for complex variables.
28216 2015-01-09 Martin Liska <mliska@suse.cz>
28218 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
28220 (func_checker::compare_memory_operand): New function.
28221 (func_checker::compare_operand): Split case to newly
28223 (func_checker::compare_cst_or_decl): New function.
28224 (func_checker::compare_gimple_call): Identify
28226 (func_checker::compare_gimple_assign): Likewise.
28227 * ipa-icf-gimple.h: New function.
28229 2015-01-09 Martin Liska <mliska@suse.cz>
28232 * sreal.c (sreal::dump): Change unsigned format to signed for
28234 (sreal::to_double): Replace exp2 with scalbln.
28236 2015-01-09 Martin Liska <mliska@suse.cz>
28238 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
28239 * ipa-icf.c (sem_function::equals_private): Add support for target and
28240 (sem_item_optimizer::merge_classes): Remove redundant function
28241 optimization flags comparison.
28242 * tree.h (target_opts_for_fn): New function.
28244 2015-01-09 Tom de Vries <tom@codesourcery.com>
28246 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
28248 2015-01-09 Kito Cheng <kito@0xlab.org>
28250 PR rtl-optimization/64348
28251 * lra-constraints.c (split_reg): Fix caller-save store/restore
28252 instruction generation.
28254 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
28256 PR gcov-profile/61790
28257 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
28258 long long. Fallback to int64_t if host doesn't have long long and
28259 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
28261 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28263 PR tree-optimization/63989
28264 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
28265 from 1000 to 10000.
28266 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
28267 (get_stridx): If we don't have a record for certain SSA_NAME,
28268 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
28269 constant offset, call get_stridx_plus_constant.
28270 (get_stridx_plus_constant): New function.
28271 (zero_length_string): Don't use get_stridx here.
28274 PR middle-end/64388
28275 * dse.c (struct insn_info): Mention frame_read set also
28276 before reload for tail calls on some targets.
28277 (scan_insn): Revert 2014-12-22 change. Set frame_read
28278 also before reload for tail calls if
28279 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
28280 instead of add_non_frame_wild_read for non-const/memset
28281 tail calls after reload.
28283 2015-01-08 Jason Merrill <jason@redhat.com>
28285 * ubsan.c (do_ubsan_in_current_function): New.
28286 (pass_ubsan::gate): Use it.
28287 * ubsan.h: Declare it.
28288 * convert.c (convert_to_integer): Use it.
28290 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28293 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
28294 compare_code when it is unconditionally overwritten afterwards.
28295 Use ix86_reverse_condition instead of reverse_condition. Don't
28296 change code if *reverse_condition* returned UNKNOWN and don't
28297 swap ct/cf and negate diff in that case.
28299 2015-01-08 Mike Stump <mikestump@comcast.net>
28301 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
28302 (pass_tsan_O0::gate): Likewise.
28303 * extend.texi (Function Attributes): Add no_sanitize_thread
28306 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
28308 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
28309 for registering builtins.
28310 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
28311 add -fopenmp to the argv_obstack used when invoking
28312 compile_for_target.
28314 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
28315 add "-m32" or "-m64" to argv_obstack.
28316 (generate_host_descr_file): Likewise, when invoking host_compiler.
28317 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
28320 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28322 * config/sh/sh-mem.cc: Use constant as second operand when emitting
28325 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28328 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
28329 constant load if constant operand fits into I08.
28331 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28334 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
28335 and TREE_THIS_VOLATILE for MEM_REFs.
28336 (build5_stat): Fix up initialization of TREE_READONLY and
28337 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
28339 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
28342 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
28343 of r for the second alternative of the destination operand.
28345 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
28348 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
28350 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28352 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
28354 ([-fivar-visibility], [-fvisibility]): Likewise.
28356 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28358 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
28359 the file where @code, @command, etc is more appropriate.
28361 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
28363 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
28364 of -mrecip= documentation.
28366 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28369 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
28370 correct reload handler if -m32 -mpowerpc64 is used.
28372 2015-01-06 Tom de Vries <tom@codesourcery.com>
28374 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
28376 2015-01-08 Christian Bruel <christian.bruel@st.com>
28379 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
28381 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
28383 PR tree-optimization/63259
28384 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
28385 if optab exists for 16bit byteswap.
28387 2015-01-06 Jakub Jelinek <jakub@redhat.com>
28389 * opts.c (common_handle_option): Add support for
28390 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
28391 * doc/invoke.texi: Document -fno-sanitize=all,
28392 -f{,no-}sanitize-recover=all. Document that
28393 -fsanitize=float-cast-overflow is not enabled
28394 by -fsanitize=undefined. Fix up documentation
28395 of -f{,no-}sanitize-recover.
28397 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
28399 * config.gcc: Add Visium support.
28400 * configure.ac: Likewise.
28401 * configure: Regenerate.
28402 * doc/extend.texi (interrupt attribute): Add Visium.
28403 * doc/invoke.texi: Document Visium options.
28404 * doc/install.texi: Document Visium target.
28405 * doc/md.texi: Document Visium constraints.
28406 * common/config/visium: New directory.
28407 * config/visium: Likewise.
28409 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28411 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
28412 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
28414 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28416 * combine.c (combine_validate_cost): Do not count the cost of a
28417 split I2 twice. Do not display it twice in the dump, either.
28419 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28421 Revert parts of r219199.
28422 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
28424 ([-Wtraditional]): Restore markup on <limits.h>.
28426 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
28429 * doc/invoke.texi: Document -Wsuggest-override.
28431 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
28433 PR rtl-optimization/64287
28434 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
28435 (process_options): Disable flag_ipa_ra if profiling.
28437 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
28439 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
28441 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
28443 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
28444 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
28445 put under #if TARGET_LOOPS guard.
28447 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
28449 * config/i386/i386.c (output_387_binary_op): Use std::swap.
28451 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
28453 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
28454 * rtl.h (refers_to_regno_p): Add overload.
28456 * bt-load.c: Likewise.
28457 * combine.c: Likewise.
28458 * df-scan.c: Likewise.
28459 * sched-deps.c: Likewise.
28460 * config/s390/s390.c: Likewise.
28461 * config/m32r/m32r.c: Likewise.
28462 * config/rs6000/spe.md: Likewise.
28463 * config/rs6000/rs6000.c: Likewise.
28464 * config/pa/pa.c: Likewise.
28465 * config/stormy16/stormy16.c: Likewise.
28466 * config/cris/cris.c: Likewise.
28467 * config/arc/arc.md: Likewise.
28468 * config/arc/arc.c: Likewise.
28469 * config/sh/sh.md: Likewise.
28470 * config/sh/sh.c: Likewise.
28471 * config/frv/frv.c: Likewise.
28473 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28476 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
28477 call as cleanup of the whole body.
28478 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
28479 * tsan.c (replace_func_exit): New function.
28480 (instrument_func_exit): Moved earlier.
28481 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
28482 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
28484 (tsan_pass): Don't call instrument_func_exit.
28485 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
28486 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
28490 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
28491 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
28492 it to libubsan handler instead of EXPR. Fold comparisons earlier,
28493 if the result is integer_zerop, return NULL_TREE.
28494 * convert.c (convert_to_integer): Pass expr as ARG.
28496 PR tree-optimization/64465
28497 * tree-inline.c (redirect_all_calls): During inlining
28498 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
28499 changed the stmt to a non-throwing call.
28501 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28503 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
28504 etc markup throughout the file.
28506 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28508 Enable experimental TSAN support for Ada.
28509 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
28511 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28513 PR tree-optimization/64494
28514 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
28515 clear SSA_NAME_ANTI_RANGE_P flag.
28517 2015-01-05 Marek Polacek <polacek@redhat.com>
28519 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
28521 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28523 Update copyright years.
28525 * gcc.c (process_command): Update copyright notice dates.
28526 * gcov-dump.c: Ditto.
28528 * doc/cpp.texi: Bump @copying's copyright year.
28529 * doc/cppinternals.texi: Ditto.
28530 * doc/gcc.texi: Ditto.
28531 * doc/gccint.texi: Ditto.
28532 * doc/gcov.texi: Ditto.
28533 * doc/install.texi: Ditto.
28534 * doc/invoke.texi: Ditto.
28536 * auto-profile.c, auto-profile.h: Fix up Copyright line.
28538 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
28540 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
28542 ([-fvtable-verify], [-fvtv-debug]): Likewise.
28543 ([-Wabi]): Likewise.
28544 ([-fmessage-length]): Likewise.
28545 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
28546 ([-Wno-discarded-qualifiers]): Likewise.
28547 ([-Wnodiscarded-array-qualifiers]): Likewise.
28548 ([-Wno-virtual-move-assign]): Likewise.
28549 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
28550 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
28551 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
28552 ([-fsanitize-undefined-trap-on-error]): Likewise.
28553 ([-floop-interchange]): Likewise.
28554 ([-ftree-coalesce-inlined-vars]): Likewise.
28555 ([-fvect-cost-model]): Likewise.
28556 ([-flto]): Likewise.
28557 ([--param]): Likewise.
28558 (Spec Files): Likewise.
28559 ([-mstrict-align]): Likewise.
28560 ([-mfix-cortex-a53-835769]): Likewise.
28561 ([-march], [-mtune]): Likewise.
28562 ([-mpic-register]): Likewise.
28563 ([-munaligned-access]): Likewise.
28564 ([-msp8]): Likewise.
28565 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
28566 (AVR Built-in Macros): Likewise.
28567 ([-mpreferred-stack-boundary]): Likewise.
28568 ([-mtune-crtl]): Likewise.
28569 ([-mashf]): Likewise.
28570 ([-mmcu=]): Likewise.
28571 ([-minrt]): Likewise.
28572 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
28573 ([-mupper-regs]): Likewise.
28574 ([-matomic-model]): Likewise.
28575 ([-mdiv]): Likewise.
28576 ([-mzdcbranch]): Likewise.
28577 ([-mdisable-callt]): Likewise.
28578 ([-msoft-float]): Likewise.
28579 ([-m8byte-align]): Likewise.
28580 ([-fstack-reuse]): Likewise.
28582 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28584 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
28585 Fix markup, light copy-editing.
28586 ([-fauto-profile]): Rewrite to fix formatting and content
28589 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28591 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
28592 Copy-edit description.
28593 ([-fisolate-erroneous-paths-attribute]): Likewise.
28594 * common.opt (fisolate-erroneous-paths-dereference):
28595 Copy-edit description.
28596 (fisolate-erroneous-paths-attribute): Likewise.
28598 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28600 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
28603 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28605 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
28606 ([-fvtv-debug]): Likewise.
28607 ([-Wc++-compat]): Likewise.
28608 ([-Wc++11-compat]): Likewise.
28609 ([-Wc++14-compat]): Likewise.
28610 ([-Wno-sized-deallocation]): Likewise.
28611 ([-femit-class-debug-always]): Likewise.
28612 ([-femit-struct-debug-detailed]): Likewise.
28613 ([-fno-keep-inline-dllexport]): Likewise.
28614 ([-fira-algorithm]): Likewise.
28615 ([-fira-region]): Likewise.
28616 ([-flra-remat]): Likewise.
28617 ([-fipa-ra]): Likewise.
28618 ([-fhoist-adjacent-loads]): Likewise.
28619 ([-fisolate-erroneous-paths-dereference]): Likewise.
28620 ([-fisolate-erroneous-paths-attribute]): Likewise.
28621 ([-ftree-switch-conversion]): Likewise.
28622 ([-ftree-tail-merge]): Likewise.
28623 ([-ftree-loop-if-convert]): Likewise.
28624 ([-ftree-loop-if-convert-stores]): Likewise.
28625 ([-ftree-loop-distribution]): Likewise.
28626 ([-ftree-loop-distribute-patterns]): Likewise.
28627 ([-flto-compression-level]): Likewise.
28628 ([-flto-report]): Likewise.
28629 ([-flto-report-wpa]): Likewise.
28630 ([-fuse-linker-plugin]): Likewise.
28631 ([-mfix-cortex-a53-835769]): Likewise.
28632 ([-mno-fix-cortex-a53-835769]): Likewise.
28633 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
28634 explicit listing; add a note to the discussion indicating they
28635 exist. Reorder table to group similar options. Add missing
28636 @opindex entries. Add @need commands throughout the table to
28637 allow it to be split across multiple pages.
28638 ([-m8bit-idiv]): Fix @opindex.
28639 ([-mavx256-split-unaligned-load]): Likewise.
28640 ([-mavx256-split-unaligned-store]): Likewise.
28641 ([-mstack-protector-guard]): Likewise.
28642 ([-mcpu=]): Likewise.
28643 ([-mcpu]): Likewise.
28644 ([-mpointer-size=]): Likewise.
28646 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
28648 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
28649 instead of `m' constraint. Likewise for unnamed movb comparison
28650 patterns using reg_before_reload_operand predicate.
28651 * config/pa/predicates.md (reg_before_reload_operand): Tighten
28652 predicate to reject register index and LO_SUM DLT memory forms
28655 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28657 * doc/invoke.texi (Option Summary): Fix spelling of
28658 -fdevirtualize-at-ltrans.
28659 ([-fdevirtualize]): Fix markup.
28660 ([-fdevirtualize-speculatively]): Fix typo.
28661 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
28662 implementor-speaky.
28663 * common.opt (fdevirtualize-at-ltrans): Likewise.
28664 * ipa-devirt.c: Fix typos in comments throughout the file.
28665 (ipa_devirt): Fix typos in format strings for dump output.
28667 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28669 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
28670 discussion of defaults, light copy-editing.
28672 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28674 * tsan.c (instrument_expr): corrected previous checkin.
28676 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28678 Instrument bit field and unaligned accesses for TSAN.
28679 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
28680 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
28681 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
28682 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
28683 unaligned memory regions.
28685 2015-01-01 Anthony Green <green@moxielogic.com>
28687 * config/moxie/predicates.md (moxie_general_movsrc_operand):
28688 Restrict move source register offsets to 16 bits.
28690 Copyright (C) 2015 Free Software Foundation, Inc.
28692 Copying and distribution of this file, with or without modification,
28693 are permitted in any medium without royalty provided the copyright
28694 notice and this notice are preserved.