1 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
2 David Edelsohn <dje.gcc@gmail.com>
4 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5 EH_FRAME_THROUGH_COLLECT2.
6 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
8 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
10 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11 * except.c (switch_to_exception_section): Use a read-only section
12 even if EH_FRAME_SECTION_NAME is undefined.
13 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
14 * collect2.c (write_c_file_stat): Provide dbase on AIX.
15 (scan_prog_file): Don't export __dso_handle nor
17 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
18 (EH_TABLES_CAN_BE_READ_ONLY): Define.
19 (ASM_OUTPUT_DWARF_PCREL): Define.
20 (ASM_OUTPUT_DWARF_DATAREL): Define.
21 (EH_FRAME_THROUGH_COLLECT2): Define.
22 (EH_FRAME_IN_DATA_SECTION): Delete.
23 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
24 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
26 (rs6000_asm_output_dwarf_datarel): Declare.
27 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
28 (rs6000_aix_asm_output_dwarf_datarel): New.
29 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
30 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
31 (EH_FRAME_THROUGH_COLLECT2): Define.
32 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
33 (EH_FRAME_THROUGH_COLLECT2): Define.
34 (EH_TABLES_CAN_BE_READ_ONLY): Define.
35 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
36 (EH_FRAME_THROUGH_COLLECT2): New.
37 (ASM_OUTPUT_DWARF_DATAREL): New.
38 * doc/tm.texi: Regenerate.
40 2015-09-18 Richard Biener <rguenther@suse.de>
42 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
44 (schedule_generic_params_dies_gen): Likewise.
45 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
46 work as possible, retaining unhandled cases.
47 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
48 clear out generic_type_instances at the end.
49 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
50 (dwarf2out_early_finish): ... here. Do most of
51 gen_remaining_tmpl_value_param_die_attribute here.
53 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
55 PR tree-optimization/67283
56 * tree-sra.c (type_consists_of_records_p): Rename to...
57 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
58 (completely_scalarize_record): Rename to...
59 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
60 (scalarize_elem): New.
61 (analyze_all_variable_accesses): Follow renamings.
63 2015-09-18 Richard Biener <rguenther@suse.de>
65 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
68 2015-09-18 Richard Biener <rguenther@suse.de>
70 PR tree-optimization/66142
71 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
72 treat MEM[&x] and x the same.
73 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
74 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
75 when we simplified sth.
76 (vn_reference_maybe_forwprop_address): Likewise.
77 (valueize_refs_1): When we simplified through
78 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
79 set valueized_anything to true.
80 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
81 one ref kills the other instead of just a offset-based test.
82 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
83 for the operand_equal_p test to compare bases and also compare
86 2015-09-17 Christian Bruel <christian.bruel@st.com>
88 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
90 2015-09-17 Richard Henderson <rth@redhat.com>
93 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
94 pointers that encode the alignment of the object.
96 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
98 PR rtl-optimization/66790
99 * df-problems.c (LIVE): Amend documentation.
101 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
103 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
105 (GTFILES): Replace optabs.c with optabs-libfunc.c.
106 * genopinit.c (main): Add an include guard to insn-opinit.h.
107 Protect the rtx_code parts with NUM_RTX_CODE.
108 * optabs.h: Split parts out to...
109 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these
111 * optabs.c: Split parts out to...
112 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these
114 * cilk-common.c: Include optabs-query.h rather than optabs.h.
115 * fold-const.c: Likewise.
116 * target-globals.c: Likewise.
117 * tree-if-conv.c: Likewise.
118 * tree-ssa-forwprop.c: Likewise.
119 * tree-ssa-loop-prefetch.c: Likewise.
120 * tree-ssa-math-opts.c: Include optabs-tree.h rather than
121 optabs.h. Remove unncessary include files.
122 * tree-ssa-phiopt.c: Likewise.
123 * tree-ssa-reassoc.c: Likewise.
124 * tree-switch-conversion.c: Likewise.
125 * tree-vect-data-refs.c: Likewise.
126 * tree-vect-generic.c: Likewise.
127 * tree-vect-loop.c: Likewise.
128 * tree-vect-patterns.c: Likewise.
129 * tree-vect-slp.c: Likewise.
130 * tree-vect-stmts.c: Likewise.
131 * tree-vrp.c: Likewise.
132 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
133 rather than optabs.h.
134 * expr.c: Include optabs-tree.h.
135 * function.c: Likewise.
137 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
140 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
141 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
142 * config/arm/arm.c: Include common/common-target.h.
143 (use_return_insn): Return 0 if the static chain register was saved
144 above a non-APCS frame.
145 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
146 (struct scratch_reg): New.
147 (get_scratch_register_on_entry): New function.
148 (release_scratch_register_on_entry): Likewise.
149 (arm_emit_probe_stack_range): Likewise.
150 (output_probe_stack_range): Likewise.
151 (arm_expand_prologue): Factor out code dealing with the IP register
152 for nested function and adjust it for stack checking.
153 Invoke arm_emit_probe_stack_range if static builtin stack checking
155 (thumb1_expand_prologue): Sorry out if static builtin stack checking
157 (arm_expand_epilogue): Add the saved static chain register, if any, to
158 the amount of pre-pushed registers to pop.
159 (arm_frame_pointer_required): Return true if static stack checking is
160 enabled and we want to catch the exception with the EABI unwinder.
161 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
162 (UNSPEC_PROBE_STACK_RANGE): Likewise.
163 * config/arm/arm.md (probe_stack): New insn.
164 (probe_stack_range): Likewise.
166 2015-09-17 Richard Biener <rguenther@suse.de>
168 * genmatch.c (parser::parse_expr): Improve error message
169 for mis-placed flags.
171 2015-09-17 Richard Biener <rguenther@suse.de>
173 * passes.c (rest_of_decl_compilation): Always call early_global_decl
174 debug hook when we created a varpool node.
175 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
176 dwarf2out_early_global_decl, when not just add location or
177 value attributes to existing DIEs.
179 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
181 * config/aarch64/aarch64.md (copysigndf3): New.
182 (copysignsf3): Likewise.
184 2015-09-17 David S. Miller <davem@davemloft.net>
186 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
188 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
190 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
191 (HARD_REGNO_CALLER_SAVE_MODE): Define.
192 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
193 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
194 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
195 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
196 provide when flag_pic.
198 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
200 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
201 object_allocator change.
203 2015-09-17 Bin Cheng <bin.cheng@arm.com>
205 PR tree-optimization/66388
206 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New
208 (dump_iv): Dump no_overflow information.
209 (alloc_iv): Initialize new field for struct iv.
210 (mark_bivs): Count number of no_overflow bivs.
211 (find_deriving_biv_for_expr, record_biv_for_address_use): New
213 (idx_find_step): Call new functions above.
214 (add_candidate_1, add_candidate): New paramter.
215 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
216 (get_computation_aff): Simplify convertion of cand for BIV.
217 (get_computation_cost_at): Step cand's base if necessary.
219 2015-09-17 Bin Cheng <bin.cheng@arm.com>
221 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
223 (tree_simplify_using_condition): Ditto.
224 (simplify_using_initial_conditions): Ditto.
225 (loop_exits_before_overflow): Pass new argument to function
226 simplify_using_initial_conditions. Remove case for type conversions
228 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
230 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
231 in iv base using loop initial conditions.
233 2015-09-16 Jeff Law <law@redhat.com>
235 PR tree-optimization/47679
236 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
237 (free_all_edge_infos): Use it.
238 (allocate_edge_info): Free preexisting edge info data.
239 (pass_dominator::execute): Set up initial edge info structures.
240 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
242 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument. If
243 non-null, then push/pop markers appropriately.
244 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
245 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
248 2015-09-16 James Bowman <james.bowman@ftdichip.com>
250 * config/ft32/ft32.c Fix the memory address space predicate.
252 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
255 * config/sh/sh.md (call_pcrel): Add early clobber to scratch
257 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
259 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
261 * toplev.h (check_global_declaration): Remove declaration.
262 * toplev.c (check_global_declaration): Move to ...
263 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
264 (analyze_functions): Update call.
266 2015-09-16 David S. Miller <davem@davemloft.net>
268 * lra-constraints.c (simplify_operand_subreg): Do not assume that
269 lowpart of a SUBREG has offset zero.
271 2015-09-16 Jeff Law <law@redhat.com>
273 PR tree-optimization/47679
274 * tree-ssa-dom.c (enum expr_kind): Moved from here to
275 tree-ssa-scopedtables.h.
276 (struct hashable_expr, class expr_hash_elt): Likewise.
277 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
278 Move associated methods into tree-ssa-scopedtables.c.
279 (avail_expr_hash, initialize_expr_from_cond): Similarly.
280 (hashable_expr_equal_p, add_expr_commutative): Likewise.
281 (add_hashable_expr): Likewise.
282 (record_cond): Delete element directly.
283 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
284 private copy ctor and assignment operator methods.
285 (expr_elt_hasher): Inline trivial methods.
286 (initialize_expr_from_cond): Prototype.
287 * tree-ssa-scopedtables.c: Add necessary includes, functions and
288 methods that were previously in tree-ssa-dom.c. Improve various
291 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
293 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
295 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
298 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
301 2015-09-16 Richard Biener <rguenther@suse.de>
304 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
305 location of possibly shared trees.
307 2015-09-16 Richard Biener <rguenther@suse.de>
310 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
312 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
314 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
315 offset and size computations instead of HOST_WIDE_INT.
317 2015-09-16 Richard Biener <rguenther@suse.de>
320 * fold-const.c (extract_muldiv_1): Properly extend multiplication
321 result before builting a tree via wide_int_to_tree.
323 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
325 * Makefile.in: Add memory-block.cc
326 (pool_allocator::initialize): Use fixed block size.
327 (pool_allocator::release): Use memory_block_pool.
328 (pool_allocator::allocate): Likewise.
329 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
331 * cfg.c (initialize_original_copy_tables): Likewise.
332 * cselib.c (elt_list_pool, elt_loc_list_pool,
333 cselib_val_pool): Likewise.
334 * df-problems.c (df_chain_alloc): Likewise.
335 * df-scan.c (df_scan_alloc): Likewise.
336 * dse.c (cse_store_info_pool, rtx_store_info_pool,
337 read_info_type_pool, insn_info_type_pool, bb_info_pool,
338 group_info_pool, deferred_change_pool): Likewise.
339 * et-forest.c (et_nodes, et_occurrences): Likewise.
340 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
341 ipcp_agg_lattice_pool): Likewise.
342 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
343 * ipa-profile.c (histogram_pool): Likewise.
344 * ipa-prop.c (ipa_refdesc_pool): Likewise.
345 * ira-build.c (live_range_pool, allocno_pool, object_pool,
346 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
347 * ira-color.c (update_cost_record_pool): Likewise.
348 * lra-lives.c (lra_live_range_pool): Likewise.
349 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
350 * memory-block.cc: New file.
351 * memory-block.h: New file.
352 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
353 * sched-deps.c (sched_deps_init): Likewise.
354 * sel-sched-ir.c (sched_lists_pool): Likewise.
355 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
356 * tree-sra.c (access_pool): Likewise.
357 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
358 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
359 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
360 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
361 * tree-ssa-strlen.c (strinfo_pool): Likewise.
362 * tree-ssa-structalias.c (variable_info_pool): Likewise.
363 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
364 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
366 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
368 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
370 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
373 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
375 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
376 to pass TLS call argument, according to current ABI.
377 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
378 callx0 for TLS call, according to current ABI.
380 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
382 * tree-eh.c (lower_try_finally_dup_block): Clear location information
383 on stack restore statements.
384 (decide_copy_try_finally): Do not consider a stack restore statement as
387 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
389 * config/alpha/alpha.c (alpha_expand_block_clear): Use
390 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
392 2015-09-15 Jeff Law <law@redhat.com>
394 PR tree-optimization/47679
395 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
396 methods and private members.
397 (avail_exprs_stack): Similarly. Change type of global
398 from a pair of expr_hash_elt_t to the new class.
399 (expr_elt_hasher::hash): Corresponding changes.
400 (expr_elt_hasher::equal): Similarly.
401 (avail_expr_hash): Similarly.
402 (pass_dominator::execute): Similarly.
403 (dom_opt_dom_walker::thread_across_edge): Similarly.
404 (record_cond): Similarly.
405 (dom_opt_dom_walker::before_dom_children): Similarly.
406 (dom_opt_dom_walker::after_dom_children): Similarly.
407 (lookup_avail_expr): Likewise.
408 (initialize_hash_element): Now a expr_hash_elt constructor.
409 (initialize_hash_element_from_expr): Similarly.
410 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
411 (free_expr_hash_elt): Call dtor for the element.
412 (remove_local_expressions_from_table): Now the "pop_to_marker"
413 method in the available_exprs_stack class.
414 (avail_expr_stack::record_expr): Method factored out.
415 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
417 (hashable_expr_equal_p): Fix formatting.
419 2015-09-15 David Malcolm <dmalcolm@redhat.com>
421 * input.h (location_get_source_line): Drop "expanded_location"
422 param in favor of a file and line number.
423 * input.c (location_get_source_line): Likewise.
424 (dump_location_info): Update for change in signature of
425 location_get_source_line.
426 * diagnostic.c (diagnostic_print_caret_line): Likewise.
428 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
430 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
431 Bump to 4KB for SJLJ exceptions.
432 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
433 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
434 * doc/tm.texi: Regenerate.
436 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
438 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
439 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
442 2015-09-15 Richard Biener <rguenther@suse.de>
444 PR tree-optimization/67470
445 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
446 structure for PHI hoisting by inserting a forwarder block
449 2015-09-15 Christian Bruel <christian.bruel@st.com>
451 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
452 (arm_option_print): New function.
454 2015-09-15 Christian Bruel <christian.bruel@st.com>
457 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
458 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
459 Remove flags parameter.
460 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
461 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
462 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
463 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
464 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
465 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
466 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
467 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
469 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
471 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
473 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
474 AARCH64_VALID_SIMD_DREG_MODE.
476 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
478 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
479 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
480 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
481 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
482 aarch64_ld4_lane<mode>): Combine together, making...
483 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
484 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
485 aarch64_st4_lane<mode>): Combine together, making...
486 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
487 * config/aarch64/iterators.md (nregs): Add comment.
489 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
491 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
492 Change operand mode from <V_TWO_ELEM> to BLK.
493 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
494 (aarch64_vec_store_lanesoi_lane<mode): Likewise
495 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
496 (aarch64_ld2_lane<mode>): Likewise.
497 (aarch64_st2_lane<VQ:mode>): Likewise.
498 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
500 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
502 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
503 Change operand mode from <V_FOUR_ELEM> to BLK.
504 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
505 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
506 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
507 (aarch64_ld4_lane<mode>): Likewise.
508 (aarch64_st4_lane<mode>): Likewise.
509 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
511 2015-09-15 Richard Biener <rguenther@suse.de>
514 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
515 transfer EH info from old to new stmt.
516 (replace_call_with_value): Likewise.
517 (replace_call_with_call_and_fold): Likewise.
518 (gimple_fold_builtin_memory_op): Likewise.
519 (gimple_fold_builtin_memset): Likewise.
520 (gimple_fold_builtin_stpcpy): Likewise.
521 (gimple_fold_call): Likewise.
523 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
525 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
527 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
528 (aarch64_simd_intEI_type_node): Likewise.
529 (aarch64_simd_builtin_std_type): Remove EImode case.
530 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
531 * config/aarch64/aarch64-modes.def: Remove EImode.
533 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
535 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
536 Change operand mode from <V_THREE_ELEM> to BLK.
537 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
538 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
539 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
540 (aarch64_ld3_lane<mode>): Likewise.
541 (aarch64_st3_lane<mode>): Likewise.
542 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
544 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
546 * config/aarch64/aarch64-simd.md
547 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
548 Change all TImode operands to BLKmode.
549 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
550 Change all EImode operands to BLKmode.
551 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
552 Change all OImode operands to BLKmode.
554 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
555 and call set_mem_size.
556 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
558 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
560 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
562 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
564 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
566 (vec_store_lanesci_lane<mode>): Rename to...
567 (aarch64_vec_store_lanesci_lane<mode>): ...this.
569 (vec_store_lanesxi_lane<mode>): Rename to...
570 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
572 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
573 aarch64_st4_lane<mode>): Follow renaming.
575 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
577 * config/s390/s390.c (s390_const_operand_ok): Add missing
580 2015-09-15 Richard Biener <rguenther@suse.de>
583 * lto-streamer.h (lto_location_cache::current_sysp): Properly
585 * lto-streamer-out.c (clear_line_info): Likewise.
587 2015-09-15 Richard Biener <rguenther@suse.de>
589 * doc/match-and-simplify.texi: Fix wording.
591 2015-09-15 Bin Cheng <bin.cheng@arm.com>
593 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
594 unnecessary type conversion in op1.
596 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
598 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
599 (dup_block_and_redirect): Delete function.
600 (can_dup_for_shrink_wrapping): New function.
601 (fix_fake_fallthrough_edge): New function.
602 (try_shrink_wrapping): Rewrite function.
603 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
605 2015-09-14 Rich Felker <dalias@libc.org>
607 * configure.ac: Change target pattern for sh TLS support
608 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
609 * configure: Regenerate.
611 2015-09-14 Jeff Law <law@redhat.com>
613 PR tree-optimization/47679
614 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
615 type rather than void *.
617 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
620 * diagnostic.c (diagnostic_initialize): Do not set
621 some_warnings_are_errors.
622 (diagnostic_finish): Use DK_WERROR count instead.
623 (diagnostic_report_diagnostic): Do not set
624 some_warnings_are_errors.
625 * diagnostic.h (struct diagnostic_context): Remove
626 some_warnings_are_errors.
628 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
630 * config/sparc/predicates.md (const_all_ones_operand): Use
631 CONSTM1_RTX to simplify definition.
633 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
636 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
639 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
641 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
642 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
643 OPT_fshow_column to handled saved option cases.
644 (append_compiler_options): Do not skip the above added options.
646 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
649 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
650 nopcrelative_literal_loads.
651 (aarch64_classify_address): Likewise.
652 (aarch64_constant_pool_reload_icode): Define.
653 (aarch64_secondary_reload): Handle secondary reloads for
655 (aarch64_override_options): Handle nopcrelative_literal_loads.
656 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
657 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
659 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
660 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
661 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
663 * doc/invoke.texi (mpc-relative-literal-loads): Document.
665 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
668 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
669 sync_compare_and_swap_optab libcall to target_oval.
671 2015-09-14 Marek Polacek <polacek@redhat.com>
673 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
675 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
677 2015-09-11 Mark Wielaard <mjw@redhat.com>
680 * toplev.c (check_global_declaration): Check and use
681 warn_unused_const_variable.
682 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
683 (-Wunused-variable): Remove non-constant. For C implies
684 -Wunused-const-variable.
685 (-Wunused-const-variable): New.
687 2015-09-14 Richard Biener <rguenther@suse.de>
689 * doc/match-and-simplify.texi: Update for changed syntax
690 of inner ifs and the new switch expression.
692 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
694 * config/i386/haswell.md: New file describing Haswell pipeline.
695 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
696 haswell-like processors.
697 (ix86_reassociation_width): Increase reassociation width for 64-bit
698 Haswell processor family.
699 * config/i386/i386.md: Introduce haswell cpu and include new md file.
701 2015-09-14 Richard Biener <rguenther@suse.de>
703 * doc/match-and-simplify.texi: Fixup some formatting issues
704 and document the 's' flag.
706 2015-09-13 Olivier Hainque <hainque@adacore.com>
707 Eric Botcazou <ebotcazou@adacore.com>
709 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
710 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
711 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
712 (TARGET_CPU_gr5): Likewise.
713 (TARGET_CPU_gr6): Likewise.
714 (MULTILIB_DEFAULTS): Likewise.
715 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
716 for mcpu=gr5 and mcpu=gr6.
717 (MULTILIB_DIRNAMES): Adjust accordingly.
719 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
721 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
722 (mem_ref_p): Likewise.
723 (outermost_indep_loop): Adjust.
724 (mem_ref_in_stmt): Likewise.
725 (determine_max_movement): Likewise.
726 (mem_ref_alloc): Likewise.
727 (record_mem_ref_loc): Likewise.
728 (set_ref_stored_in_loop): Likewise.
729 (mark_ref_stored): Likewise.
730 (gather_mem_refs_stmt): Likewise.
731 (mem_refs_may_alias_p): Likewise.
732 (for_all_locs_in_loop): Likewise.
733 (struct rewrite_mem_ref_loc): Likewise.
734 (rewrite_mem_refs): Likewise.
735 (struct first_mem_ref_loc_1): Likewise.
736 (first_mem_ref_loc): Likewise.
737 (struct sm_set_flag_if_changed): Likewise.
738 (execute_sm_if_changed_flag_set): Likewise.
739 (execute_sm): Likewise.
740 (hoist_memory_references):
741 (struct ref_always_accessed): Likewise.
742 (ref_always_accessed_p): Likewise.
743 (refs_independent_p): Likewise.
744 (record_dep_loop): Likewise.
745 (ref_indep_loop_p_1): Likewise.
746 (ref_indep_loop_p_2): Likewise.
747 (ref_indep_loop_p): Likewise.
748 (can_sm_ref_p): Likewise.
749 (find_refs_for_sm): Likewise.
750 (tree_ssa_lim_finalize): Likewise.
752 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
754 * dwarf2out.c (dw_attr_ref): Remove typedef.
755 (dw_line_info_ref): Likewise.
756 (pubname_ref): Likewise.
757 (dw_ranges_ref): Likewise.
758 (dw_ranges_by_label_ref): Likewise.
759 (comdat_type_node_ref): Likewise.
761 (get_AT_low_pc): Likewise.
762 (get_AT_hi_pc): Likewise.
763 (get_AT_string): Likewise.
764 (get_AT_flag): Likewise.
765 (get_AT_unsigned): Likewise.
766 (get_AT_ref): Likewise.
767 (get_AT_file): Likewise.
768 (remove_AT): Likewise.
769 (print_die): Likewise.
770 (check_die): Likewise.
771 (die_checksum): Likewise.
772 (attr_checksum_ordered): Likewise.
773 (struct checksum_attributes): Likewise.
774 (collect_checksum_attributes): Likewise.
775 (die_checksum_ordered): Likewise.
776 (same_die_p): Likewise.
777 (is_declaration_die): Likewise.
778 (clone_die): Likewise.
779 (clone_as_declaration): Likewise.
780 (copy_declaration_context): Likewise.
781 (break_out_comdat_types): Likewise.
782 (copy_decls_walk): Likewise.
783 (output_location_lists): Likewise.
784 (external_ref_hasher::hash): Likewise.
785 (optimize_external_refs_1): Likewise.
786 (build_abbrev_table): Likewise.
787 (size_of_die): Likewise.
788 (unmark_all_dies): Likewise.
789 (size_of_pubnames): Likewise.
790 (output_die_abbrevs): Likewise.
791 (output_die): Likewise.
792 (output_pubnames): Likewise.
793 (add_ranges_num): Likewise.
794 (add_ranges_by_labels): Likewise.
795 (add_high_low_attributes): Likewise.
796 (gen_producer_string): Likewise.
797 (dwarf2out_set_name): Likewise.
798 (new_line_info_table): Likewise.
799 (prune_unused_types_walk_attribs): Likewise.
800 (prune_unused_types_update_strings): Likewise.
801 (prune_unused_types): Likewise.
802 (resolve_addr): Likewise.
803 (optimize_location_lists_1): Likewise.
804 (index_location_lists): Likewise.
805 (dwarf2out_finish): Likewise.
807 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
809 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
811 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
813 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
814 (dump_asserts_for): Adjust.
815 (register_new_assert_for): Likewise.
816 (process_assert_insertions): Likewise.
817 (insert_range_assertions): Likewise.
819 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
821 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
823 (new_temp_expr_table): Adjust.
824 (free_temp_expr_table): Likewise.
825 (version_to_be_replaced_p): Likewise.
826 (make_dependent_on_partition): Likewise.
827 (add_to_partition_kill_list): Likewise.
828 (remove_from_partition_kill_list): Likewise.
829 (add_dependence): Likewise.
830 (finished_with_expr): Likewise.
831 (process_replaceable): Likewise.
832 (kill_expr): Likewise.
833 (kill_virtual_exprs): Likewise.
834 (mark_replaceable): Likewise.
835 (find_replaceable_in_bb): Likewise.
836 (find_replaceable_exprs): Likewise.
837 (debug_ter): Likewise.
839 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
841 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
842 (struct btr_user): Rename from btr_user_s.
843 (struct btr_def): Rename from btr_def_s.
844 (find_btr_def_group): Adjust.
845 (add_btr_def): Likewise.
846 (new_btr_user): Likewise.
847 (note_other_use_this_block): Likewise.
848 (compute_defs_uses_and_gen): Likewise.
849 (link_btr_uses): Likewise.
850 (build_btr_def_use_webs): Likewise.
851 (block_at_edge_of_live_range_p): Likewise.
852 (btr_def_live_range): Likewise.
853 (combine_btr_defs): Likewise.
854 (move_btr_def): Likewise.
855 (migrate_btr_def): Likewise.
856 (migrate_btr_defs): Likewise.
858 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
860 * var-tracking.c (shared_hash_def): Rename to shared_hash.
861 (shared_hash): Remove typedef.
862 (struct dataflow_set): Adjust.
863 (shared_hash_unshare): Likewise.
864 (dataflow_set_merge): Likewise.
865 (vt_initialize): Likewise.
866 (vt_finalize): Likewise.
868 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
870 * var-tracking.c (struct location_chain): Rename from
872 (struct variable_part): Adjust.
873 (variable_htab_free): Likewise.
874 (unshare_variable): Likewise.
875 (get_init_value): Likewise.
876 (get_addr_from_local_cache): Likewise.
877 (drop_overlapping_mem_locs): Likewise.
878 (val_reset): Likewise.
879 (struct variable_union_info): Likewise.
880 (variable_union): Likewise.
881 (find_loc_in_1pdv): Likewise.
882 (insert_into_intersection): Likewise.
883 (intersect_loc_chains): Likewise.
884 (canonicalize_loc_order_check): Likewise.
885 (canonicalize_values_mark): Likewise.
886 (canonicalize_values_star): Likewise.
887 (canonicalize_vars_star): Likewise.
888 (variable_merge_over_cur): Likewise.
889 (remove_duplicate_values): Likewise.
890 (variable_post_merge_new_vals): Likewise.
891 (variable_post_merge_perm_vals): Likewise.
892 (find_mem_expr_in_1pdv): Likewise.
893 (dataflow_set_preserve_mem_locs): Likewise.
894 (dataflow_set_remove_mem_locs): Likewise.
895 (variable_part_different_p): Likewise.
896 (onepart_variable_different_p): Likewise.
897 (find_src_set_src): Likewise.
898 (dump_var): Likewise.
899 (set_slot_part): Likewise.
900 (clobber_slot_part): Likewise.
901 (delete_slot_part): Likewise.
902 (vt_expand_var_loc_chain): Likewise.
903 (emit_note_insn_var_location): Likewise.
904 (vt_finalize): Likewise.
906 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
908 * dse.c (store_info_t): Remove typedef.
909 (group_info_t): Likewise.
910 (const_group_info_t): Likewise.
911 (deferred_change_t): Likewise.
912 (get_group_info): Adjust.
913 (free_store_info): Likewise.
914 (canon_address): Likewise.
915 (clear_rhs_from_active_local_stores): Likewise.
916 (record_store): Likewise.
917 (replace_read): Likewise.
918 (check_mem_read_rtx): Likewise.
919 (scan_insn): Likewise.
920 (remove_useless_values): Likewise.
921 (dse_step1): Likewise.
922 (dse_step2_init): Likewise.
923 (dse_step2_nospill): Likewise.
924 (scan_stores_nospill): Likewise.
925 (scan_reads_nospill): Likewise.
926 (dse_step3_exit_block_scan): Likewise.
927 (dse_step3): Likewise.
928 (dse_step5_nospill): Likewise.
929 (dse_step6): Likewise.
931 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
933 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
934 (alias_set_entry): Remove typedef.
935 (alias_set_subset_of): Adjust.
936 (alias_sets_conflict_p): Likewise.
937 (init_alias_set_entry): Likewise.
938 (get_alias_set): Likewise.
939 (new_alias_set): Likewise.
940 (record_alias_subset): Likewise.
942 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
944 * doc/install.texi (Downloading the source): Mark up
945 contrib/download_prerequisites properly and drop leading "./".
947 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
949 * config/arc/arc.h: Remove define of STRUCT_VALUE.
950 * config/lm32/lm32.h: Likewise.
951 * config/mep/mep.h: Likewise.
952 * config/visium/visium.h: Likewise.
953 * system.h: Poison STRUCT_VALUE macro.
955 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
957 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
960 2015-09-11 David S. Miller <davem@davemloft.net>
962 * config/sparc/constraints.md: Make "U" constraint a real register
964 * config/sparc/sparc.c (TARGET_LRA_P): Define.
965 (D_MODES, DF_MODES): Add missing cast.
966 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
967 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
968 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
970 * config/sparc/sparc.h (PROMOTE_MODE): Define.
971 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
972 provide these insn when flag_pic.
974 2015-09-11 Jeff Law <law@redhat.com>
976 PR tree-optimization/47679
977 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
978 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
979 member with m_. Update inline member functions as necessary. Add
981 * tree-ssa-scopedtables.c: Update const_and_copies's member
982 functions to use m_ prefix to access the stack.
984 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
986 * graphite-optimize-isl.c (disable_tiling): Remove.
987 (get_schedule_for_band): Do not use disable_tiling.
988 (get_prevector_map): Delete function.
989 (enable_polly_vector): Remove.
990 (get_schedule_for_band_list): Remove dead code.
992 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
994 * graphite-optimize-isl.c (get_tile_map): Refactor.
995 (get_schedule_for_band): Same.
996 (getScheduleForBand): Same.
997 (get_prevector_map): Same.
998 (get_schedule_for_band_list): Same.
999 (get_schedule_map): Same.
1000 (get_single_map): Same.
1001 (apply_schedule_map_to_scop): Same.
1002 (optimize_isl): Same.
1004 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1007 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
1009 * config/aarch64/iterators.md (GPF_TF_F16): New.
1012 2015-09-10 Nathan Sidwell <nathan@acm.org>
1014 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
1015 (nvptx_reorg): Adjust comments.
1017 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
1020 * configure.ac: Check if setenv and unsetenv are declared.
1021 * configure: Rebuild.
1022 * config.in: Rebuild.
1023 * system.h: Declare setenv and unsetenv if not declared.
1025 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1027 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
1028 commentary to simplify permute mask adjustment equation.
1029 (special_handling_values): Add SH_VPERM.
1030 (const_load_sequence_p): New function.
1031 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
1032 the mask loaded from the constant pool.
1033 (adjust_vperm): New function.
1034 (handle_special_swappables): Call adjust_vperm.
1035 (dump_swap_insn_table): Handle SH_VPERM.
1037 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
1039 * shrink-wrap.c (requires_stack_frame_p): Remove static.
1040 * shrink-wrap.h (requires_stack_frame_p): Put back.
1042 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
1044 * reload1.c (elimination_costs_in_insn): Locally turn
1045 -Wmaybe-uninitialized into a warning.
1047 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
1049 * shrink-wrap.c (requires_stack_frame_p): Make static.
1050 (prepare_shrink_wrap): Likewise.
1051 (dup_block_and_redirect): Likewise.
1052 * shrink-wrap.h: Remove declarations of those functions.
1054 2015-09-10 Mark Wielaard <mjw@redhat.com>
1056 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
1058 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
1061 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
1062 missing simplify_gen_subreg.
1064 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1066 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
1067 the vector element is bigger than 64 bit.
1069 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1071 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
1072 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
1074 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1076 * config/s390/s390.c: Add V1TImode to constant pool modes.
1078 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1081 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
1082 predicate. Set predicable_short_it attr to "no".
1084 2015-09-10 Jiong Wang <jiong.wang@arm.com>
1086 PR rtl-optimization/67421
1087 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
1088 left wide shift tranformation.
1090 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1092 * common/config/arc/arc-common.c: Remove references to A5.
1093 * config/arc/arc-opts.h: Likewise.
1094 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
1095 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
1096 * config/arc/t-arc-newlib: Likewise.
1098 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1100 * config/arc/arc.md (length): Fix attribute length for conditional
1101 executed instructions with long immediate.
1103 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1105 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
1106 type for second alternative.
1108 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
1110 * doc/invoke.texi (Downloading GCC): Mention
1111 contrib/download_prerequisites script.
1113 2015-09-10 Jakub Jelinek <jakub@redhat.com>
1116 * gimplify.c (gimplify_omp_for): If inner stmt is not found
1117 for combined loop, assert seen_error () and return GS_ERROR.
1120 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
1121 if decl is already in outer->variables.
1124 * gimplify.c (gimplify_scan_omp_clauses): Instead of
1125 asserting that decl is not specified in octx->variables,
1126 break out of the loop if it is.
1129 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
1130 iterator is not explicitly determined, but is defined inside
1131 of the combined workshare region, handle it like if it has
1132 DECL_EXPR in OMP_FOR_PRE_BODY.
1134 2015-09-09 Nathan Sidwell <nathan@acm.org>
1136 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
1137 (*cmp<mode>): Add assembler spacing.
1138 (setcc_int<mode>, set_cc_float<mode>): Likewise.
1139 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
1141 (write_func_decl_from_insn): Refactor argument loops & comma emission.
1142 (nvptx_expand_call): Likewise.
1143 (nvptx_output_call_insn): Likewise.
1144 (nvptx_reorg_subreg): Add spacing.
1146 2015-09-09 Marek Polacek <polacek@redhat.com>
1149 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
1152 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1155 * doc/invoke.texi ([Wsubobject-linkage]): Document.
1157 2015-09-09 Tom de Vries <tom@codesourcery.com>
1159 * params-list.h: Add missing copyright notice.
1161 2015-09-09 Nathan Sidwell <nathan@acm.org>
1163 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
1164 sel_truesi, not andsi.
1166 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1168 * config/arm/arm.md (*subsi3_compare0): Rename to...
1169 (subsi3_compare0): ... This.
1170 (modsi3): New define_expand.
1171 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
1172 when operand is power of 2.
1174 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1176 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
1177 (*neg<mode>2_compare0): Rename to...
1178 (neg<mode>2_compare0): ... This.
1179 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
1180 Move check for speed inside the if-then-elses. Reflect
1181 CSNEG sequence in MOD by power of 2 case.
1183 2015-09-09 Alan Modra <amodra@gmail.com>
1186 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1187 reload replacement for PRE_MODIFY address reg.
1189 2015-09-09 Sebastian Pop <s.pop@samsung.com>
1191 PR tree-optimization/53852
1192 * config.in: Regenerate.
1193 * configure: Regenerate.
1194 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
1195 * graphite-optimize-isl.c (optimize_isl): Stop computation when
1196 PARAM_MAX_ISL_OPERATIONS is reached.
1197 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
1198 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
1199 result equal to isl_stat_ok as the status now can be isl_error_quota.
1200 (subtract_commutative_associative_deps): Same.
1201 (compute_deps): Same.
1203 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1204 Sebastian Pop <s.pop@samsung.com>
1206 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1207 Return the parameter if it was saved in corresponding
1208 parameter_rename_map of the region.
1209 (copy_def): Copy def from sese region to the newly created region.
1210 (copy_internal_parameters): Copy all the internal parameters defined
1211 within a region to the newly created region.
1212 (graphite_regenerate_ast_isl): Copy parameters to the new region before
1213 translating isl to gimple.
1214 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
1215 the loop-nest does not have any data-references.
1216 (build_graphite_scops): Create a scop only when there is at least one
1218 (contains_only_close_phi_nodes): Deleted.
1219 (print_graphite_scop_statistics): Deleted
1220 (print_graphite_statistics): Deleted
1221 (limit_scops): Deleted.
1222 (build_scops): Removed call to limit_scops.
1223 * sese.c (new_sese): Construct.
1224 (free_sese): Destruct.
1225 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
1227 (set_rename): Pass sese region so that parameters inside the region can
1228 be added to its parameter_rename_map.
1229 (rename_uses): Pass sese region.
1230 (graphite_copy_stmts_from_block): Do not copy parameters that have been
1231 generated in the header of the scop. For each SSA_NAME in the
1232 parameter_rename_map rename its usage.
1233 (invariant_in_sese_p_rec): Return false if tree t is defined outside
1235 (scalar_evolution_in_region): If the tree t is invariant just return t.
1236 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
1237 struct sese to keep track of all the parameters which need renaming.
1238 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
1240 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
1242 2015-09-08 Tom de Vries <tom@codesourcery.com>
1244 * Makefile.in (generated_files): Add params.list.
1245 (params.list, s-params.list): Add rule.
1246 * params.h (enum compiler_param): Include params-list.h. Move define
1247 DEFPARAM, include params.def and undef DEFPARAM ...
1248 * params-list.h: ... here. New file.
1250 2015-09-08 David Malcolm <dmalcolm@redhat.com>
1252 * pretty-print.h (printer_fn): Fix typo in comment.
1254 2015-09-07 Jeff Law <law@redhat.com>
1256 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
1258 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1260 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
1261 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
1262 (arm_neon_fp16_hw): New.
1264 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1266 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
1267 UNITS_PER_WORD >= 4.
1269 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1271 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
1272 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
1273 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
1274 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
1275 (aarch64_float_extend_lo_v2df): Rename to...
1276 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
1278 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
1279 (float_extend_lo): Add v4sf.
1281 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
1282 * config/aarch64/iterators.md (VQ_HSF): New iterator.
1283 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
1284 (Vwide): New mode_attr.
1286 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1288 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
1289 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
1290 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
1291 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
1292 V4HF and V8HF variants to iterator.
1294 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
1296 * config/aarch64/iterators.md (VDQF_F16): New.
1297 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
1299 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1301 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
1302 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1303 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
1304 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
1305 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
1306 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1307 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
1308 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
1309 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
1310 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
1311 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
1312 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1313 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
1314 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
1315 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
1316 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
1317 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
1318 vld1q_dup_f16): New.
1320 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1322 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
1323 Reparameterize to...
1324 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
1325 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
1326 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
1328 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
1330 (float_truncate_lo_): Use BUILTIN_VDF iterator.
1332 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
1334 * config/aarch64/iterators.md (VDF, Vdtype): New.
1335 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
1337 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1339 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
1340 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
1341 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
1342 Add __builtin_aarch64_simd_hf.
1343 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
1344 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
1345 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
1346 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
1347 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
1348 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
1349 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
1350 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
1351 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
1353 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
1354 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
1355 (VDC, Vdbl): Add V4HF.
1357 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1359 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
1360 V4HFmode and V8HFmode.
1361 (aarch64_split_simd_move): Add case for V8HFmode.
1362 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
1363 (aarch64_simd_builtin_std_type): Handle HFmode.
1364 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
1366 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
1367 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
1368 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
1370 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
1373 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
1374 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
1376 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
1377 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
1378 vst1q_lane_f16): New.
1379 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
1380 (VALLDI_F16, VALL_F16): New.
1381 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
1382 Add cases for V4HF and V8HF.
1383 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
1385 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1387 * config/arm/arm-builtins.c (VAR11, VAR12): New.
1388 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
1389 vld4_dup): Add v4hf variant.
1390 (vget_high, vget_low): Add v8hf variant.
1391 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
1392 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
1393 v4hf and v8hf variants.
1395 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
1397 (V_DOUBLE): Add case for V4HF.
1399 (V_HALF): Add case for V8HF.
1400 (VDQX): Add V4HF, V8HF.
1401 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
1402 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
1404 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
1405 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
1406 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
1407 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
1408 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
1409 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
1410 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
1411 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
1412 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
1414 (neon_vcreate, neon_vreinterpretv8qi<mode>,
1415 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1416 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
1417 Change VDX to VD_RE.
1419 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
1420 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
1421 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
1423 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
1424 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
1425 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
1426 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
1427 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
1428 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
1429 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
1430 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
1431 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
1433 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1435 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
1436 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
1437 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
1438 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
1439 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1440 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
1441 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
1442 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
1443 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
1444 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
1447 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1449 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
1451 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
1453 * config/arm/arm-builtins.c (v8hf_UP): New.
1454 (arm_init_simd_builtin_types): Initialise Float16x8_t.
1456 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
1458 * config/arm/arm_neon.h (float16x8_t): New typedef.
1460 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1462 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
1463 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
1464 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
1465 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
1466 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1467 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
1468 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
1469 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
1470 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1471 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
1473 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
1475 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
1476 non-alphanumeric characters in the symbol name.
1478 2015-09-07 Marek Polacek <polacek@redhat.com>
1481 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
1484 2015-09-07 Marek Polacek <polacek@redhat.com>
1486 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
1488 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
1490 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
1493 2015-09-04 Jakub Jelinek <jakub@redhat.com>
1496 * tree-ssa-live.c: Include cfgloop.h.
1497 (remove_unused_locals): Clear loop->simduid if simduid is about
1498 to be removed from cfun->local_decls.
1500 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1503 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
1506 2015-09-04 Tom de Vries <tom@codesourcery.com>
1508 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
1510 2015-09-04 Jeff Law <law@redhat.com>
1512 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
1513 unnecessary constructor. It's now trivial and implemented inside...
1514 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
1515 constructor. Add comments to various methods. Remove unused
1517 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
1518 * tree-vrp.c (identify_jump_threads): Likewise.
1519 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
1521 (thread_across_edge): Similarly.
1522 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
1523 arguments in constructor call.
1525 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
1527 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
1528 temp path contains a '-'.
1530 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1531 Petr Murzin <petr.murzin@intel.com>
1532 Kirill Yukhin <kirill.yukhin@intel.com>
1534 * config/i386/i386-builtin-types.def
1535 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
1536 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
1537 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
1538 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
1539 * config/i386/i386.c
1540 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
1541 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1542 IX86_BUILTIN_SCATTERALTDIV16SI.
1543 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
1544 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
1545 __builtin_ia32_scatteraltdiv8si.
1546 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
1547 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1548 IX86_BUILTIN_SCATTERALTDIV16SI.
1549 (ix86_vectorize_builtin_scatter): New.
1550 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
1551 ix86_vectorize_builtin_scatter.
1553 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1554 Petr Murzin <petr.murzin@intel.com>
1555 Kirill Yukhin <kirill.yukhin@intel.com>
1557 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
1558 * doc/tm.texi: Regenerate.
1559 * target.def: Add scatter builtin.
1560 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
1561 for loads/stores in case of gather/scatter accordingly.
1562 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1563 (vect_check_gather): Rename to ...
1564 (vect_check_gather_scatter): this.
1565 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
1566 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
1567 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1568 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
1569 and new checkings for it accordingly.
1571 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1572 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1573 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
1575 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
1577 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
1579 (mulv16qi3): New define_expand.
1581 2015-09-03 Martin Sebor <msebor@redhat.com>
1584 * doc/extend.texi (Other Builtins): Document when the address
1585 of a built-in function can be taken.
1587 2015-09-03 Richard Biener <rguenther@suse.de>
1589 * dwarf2out.c (flush_limbo_die_list): Split out from ...
1590 (dwarf2out_early_finish): ... here.
1591 (dwarf2out_finish): Do not call dwarf2out_early_finish but
1592 flush_limbo_die_list. Assert we have no deferred asm names.
1594 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1596 * optabs.c (expand_binop): Don't create a broadcast vector with a
1597 source element wider than the inner mode.
1599 2015-09-03 Richard Biener <rguenther@suse.de>
1601 * varasm.c (output_constant): Use fold_convert instead of
1604 2015-09-03 Tom de Vries <tom@codesourcery.com>
1606 PR tree-optimization/65637
1607 * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
1610 2015-09-03 Tom de Vries <tom@codesourcery.com>
1612 PR tree-optimization/65637
1613 * omp-low.c (find_phi_with_arg_on_edge): New function.
1614 (expand_omp_for_static_chunk): Fix inner loop phi.
1616 2015-09-03 Tom de Vries <tom@codesourcery.com>
1618 PR tree-optimization/65637
1619 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
1622 2015-09-03 Tom de Vries <tom@codesourcery.com>
1624 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
1626 2015-09-03 Tom de Vries <tom@codesourcery.com>
1628 * doc/invoke.texi (parloops-chunk-size): Add item.
1629 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
1630 * tree-parloops.c: Include params.h.
1631 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
1632 param parloops-chunk-size is used.
1634 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1637 * fold-const.c (fold_binary_loc) : Move
1638 Transform (x >> c) << c into x & (-1<<c) or
1639 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
1640 types using simplify and match.
1641 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
1642 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
1644 2015-09-03 Richard Biener <rguenther@suse.de>
1647 * tree-ssa-structalias.c (ctor_for_analysis): New function.
1648 (create_variable_info_for_1): Use ctor_for_analysis instead
1650 (create_variable_info_for): Likewise.
1652 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
1655 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
1656 in new callgraph edge.
1658 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
1663 * config/aarch64/aarch64-simd.md
1664 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
1665 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
1666 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
1667 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
1669 2015-09-02 Alan Modra <amodra@gmail.com>
1671 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
1672 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
1673 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
1675 2015-09-02 Alan Modra <amodra@gmail.com>
1678 * config/rs6000/predicates.md (current_file_function_operand): Don't
1679 return true for weak symbols.
1680 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
1682 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
1683 Andrew Bennett <andrew.bennett@imgtec.com>
1685 * config/mips/mips-opts.h (mips_cb_setting): New enum.
1686 * config/mips/mips-protos.h: Add definitions for
1687 mips_output_jump and mips_output_equal_conditional_branch
1688 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
1690 (mips_emit_compare): Add support for the MIPS R6 conditional
1692 (mips_process_sync_loop): Likewise.
1693 (mips_output_order_conditional_branch): Likewise.
1694 (mips16_build_call_stub): Change MIPS_CALL to
1696 (mips_print_operand_punctuation): Update 's' case to only
1697 apply to micromips r2.
1698 (mips_adjust_insn_length): Add support for forbidden slot
1700 (mips_avoid_hazard): Likewise.
1701 (mips_reorg_process_insns): Likewise.
1702 (mips_output_jump): New function.
1703 (mips_output_equal_conditional_branch): Likewise.
1704 (mips_output_conditional_branch): Use jrc/bc if compact
1705 branch support is enabled. Ensure the forbidden slots
1706 between the two branch instructions is filled with a nop.
1707 (mips_option_override): Add support to process the compact
1708 branch option and set the correct defaults. Prevent
1709 non-explict relocs being using for MIPS R6.
1710 (mips_trampoline_init): Add compact branch support.
1711 (mips_mult_zero_zero_cost): Allow zero initialisation of
1712 accumulators with TARGET_DSP.
1713 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
1714 (TARGET_CB_MAYBE): New define.
1715 (TARGET_CB_ALWAYS): New define.
1716 (ISA_HAS_DELAY_SLOTS): New define.
1717 (ISA_HAS_COMPACT_BRANCHES): New define.
1718 (ISA_HAS_JRC): New define.
1719 (MIPS_BRANCH_C): New define.
1720 (MIPS_CALL): Removed.
1721 (MICROMIPS_J): Removed.
1722 * config/mips/mips.md (compact_form): New attr.
1723 (hazard): Add support for forbidden slots.
1724 (define_delay): Add support for compact branches.
1725 (*branch_order<mode>): Likewise.
1726 (*branch_order<mode>_inverted): Likewise.
1727 (*branch_equality<mode>): Likewise.
1728 (*branch_equality<mode>_inverted): Likewise.
1729 (*jump_absolute): Likewise.
1730 (*jump_pic): Likewise.
1731 (indirect_jump): Use mips_output_jump to produce assembly output.
1732 (tablejump_<mode>"): Likewise.
1733 (*<optab>"): Likewise.
1734 (<optab>_internal): Likewise.
1735 (sibcall_internal): Likewise.
1736 (sibcall_value_internal): Likewise.
1737 (sibcall_value_multiple_internal): Likewise.
1738 (call_internal): Likewise.
1739 (call_split): Likewise.
1740 (call_internal_direct): Likewise.
1741 (call_direct_split): Likewise.
1742 (call_value_internal): Likewise.
1743 (call_value_split): Likewise.
1744 (call_value_internal_direct): Likewise.
1745 (call_value_direct_split): Likewise.
1746 (call_value_multiple_internal): Likewise.
1747 (call_value_multiple_split): Likewise.
1748 (mips_get_fcsr_mips16_<mode>): Likewise.
1749 (mips_set_fcsr_mips16_<mode>): Likewise.
1750 (tls_get_tp_mips16_<mode>): Likewise.
1751 * config/mips/mips.opt: Add -mcompact-branches option.
1752 * config/mips/predicates.md (order_operator): Ensure the
1753 conditional compact branches are only used if the ISA them.
1754 * doc/invoke.texi: Document -mcompact-branches option.
1756 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
1759 * lra-lives.c (process_bb_lives): Process move pseudos with the
1760 same value for copies and preferences
1761 * lra-constraints.c (match_reload): Create match reload pseudo
1762 with the same value from single dying input pseudo.
1764 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1767 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
1769 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
1771 * trans-mem.c: Add contributed-by.
1772 * trans-mem.h: Same.
1774 2015-09-01 Richard Biener <rguenther@suse.de>
1776 * expr.c (expand_expr_real_1): For expanding TERed defs
1777 set the current location to that of the def if not UNKNOWN.
1779 2015-09-01 David Sherwood <david.sherwood@arm.com>
1781 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
1783 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1785 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
1786 then_cost, else_cost fields. Change branch_cost field to unsigned
1788 (end_ifcvt_sequence): Call set_used_flags on each insn in the
1791 (noce_simple_bbs): New function.
1792 (noce_try_move): Bail if basic blocks are not simple.
1793 (noce_try_store_flag): Likewise.
1794 (noce_try_store_flag_constants): Likewise.
1795 (noce_try_addcc): Likewise.
1796 (noce_try_store_flag_mask): Likewise.
1797 (noce_try_cmove): Likewise.
1798 (noce_try_minmax): Likewise.
1799 (noce_try_abs): Likewise.
1800 (noce_try_sign_mask): Likewise.
1801 (noce_try_bitop): Likewise.
1802 (bbs_ok_for_cmove_arith): New function.
1803 (noce_emit_all_but_last): Likewise.
1804 (noce_emit_insn): Likewise.
1805 (noce_emit_bb): Likewise.
1806 (noce_try_cmove_arith): Handle non-simple basic blocks.
1807 (insn_valid_noce_process_p): New function.
1808 (contains_mem_rtx_p): Likewise.
1809 (bb_valid_for_noce_process_p): Likewise.
1810 (noce_process_if_block): Allow non-simple basic blocks
1813 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
1815 * tree-ssa-dom.c (record_equivalences_from_phis,
1816 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
1817 (lookup_avail_expr): Likewise, and remove comment and unused temp.
1819 2015-09-01 Nick Clifton <nickc@redhat.com>
1821 * config/msp430/msp430.opt (mcpu): Fix typo.
1823 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1825 * config/aarch64/aarch64.c (aarch64_set_current_function):
1826 Re-layout any vector parameters have non-simd layout.
1827 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
1829 (aarch64_simd_expand_args): Delete call to the above.
1831 2015-08-31 Mike Frysinger <vapier@gentoo.org>
1833 * doc/invoke.texi (asan-stack): Add space before option.
1835 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1837 * tree.h (zerop): New function.
1838 * tree.c (zerop): Likewise.
1839 (element_precision): Handle expressions.
1840 * match.pd (define_predicates): Add zerop.
1841 (x <= +Inf): Fix comment.
1842 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
1843 * fold-const.c (fold_binary_loc): ... here. Remove.
1845 2015-08-31 Richard Biener <rguenther@suse.de>
1848 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
1850 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1852 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
1853 (CEXPI): New operator list.
1854 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
1855 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
1857 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
1859 2015-08-31 Tom de Vries <tom@codesourcery.com>
1861 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
1862 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
1864 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
1865 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
1866 (rewrite_into_loop_closed_ssa): ... here.
1867 (replace_uses_in_dominated_bbs): Remove function.
1868 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
1869 rewrite_into_loop_closed_ssa_1.
1871 2015-08-31 Michael Matz <matz@suse.de>
1873 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
1874 enter entry and exit blocks for reverse post order.
1876 2015-08-31 Richard Biener <rguenther@suse.de>
1878 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
1879 (lto_location_cache::current_sysp): Likewise.
1880 (output_block::current_sysp): Likewise.
1881 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
1882 (lto_location_cache::apply_location_cache): Properly record
1883 system header locations.
1884 (lto_location_cache::input_location): Input whether a file
1886 * lto-streamer-out.c (lto_output_location): Stream whether a file
1889 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1892 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
1894 2015-08-31 Tom de Vries <tom@codesourcery.com>
1896 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
1897 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
1898 Improve function header comments.
1900 2015-08-30 Michael Collison <michael.collison@linaro.org>
1903 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
1906 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1908 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
1909 special_handling bitfield.
1910 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
1911 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
1912 that represents a general xxpermdi.
1913 (insn_is_swappable_p): Add handling for vec_concat of two
1914 doublewords, which maps to a specific xxpermdi.
1915 (adjust_xxpermdi): New function.
1916 (adjust_concat): Likewise.
1917 (handle_special_swappables): Call adjust_xxpermdi and
1919 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
1921 2015-08-30 Rich Felker <dalias@libc.org>
1923 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
1924 case instead of sh[123456ble]-*-*.
1926 2015-08-29 Anatoly Sokolov <aesok@post.ru>
1928 * ira.c (print_unform_and_important_classes,
1929 print_translated_classes): Remove reg_class_names static array.
1930 (print_unform_and_important_classes): Rename to ...
1931 (print_uniform_and_important_classes): ... this.
1932 (ira_debug_allocno_classes): Update accordingly.
1934 2015-08-29 Tom de Vries <tom@codesourcery.com>
1936 PR tree-optimization/46193
1937 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
1940 2015-08-28 Jeff Law <law@redhat.com>
1943 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1944 unable to find X NE 0 in the tables, return X as the simplified
1946 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1947 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
1949 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1950 after removing the control flow statement and unnecessary edges.
1952 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
1955 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
1956 PR tree-optimization/67283
1957 * tree-sra.c (type_consists_of_records_p): Rename to...
1958 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1960 (completely_scalarize_record): Rename to...
1961 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
1963 (scalarize_elem): New.
1965 2015-08-28 Jiong Wang <jiong.wang@arm.com>
1967 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
1968 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
1969 (aarch64_symbol_type): Likewise.
1970 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1972 (aarch64_expand_mov_immediate): Likewise.
1973 (aarch64_print_operand): Likewise.
1974 (aarch64_classify_tls_symbol): Likewise.
1976 2015-08-28 Richard Biener <rguenther@suse.de>
1978 * cgraphunit.c (symbol_table::compile): Move early debug generation
1980 (symbol_table::finalize_compilation_unit): ... back here and
1981 add a !seen_error () guard.
1983 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1985 * toplev.c (process_options): Do not use flag_loop_block,
1986 flag_loop_interchange, and flag_loop_strip_mine. Add check for
1987 flag_loop_optimize_isl.
1989 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1991 * Makefile.in (OBJS): Remove graphite-blocking.o and
1992 graphite-interchange.o.
1993 * common.opt (floop-strip-mine, floop-interchange, floop-block):
1994 Alias of floop-nest-optimize.
1995 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
1996 Document as alias of -floop-nest-optimize.
1997 * graphite-blocking.c: Remove.
1998 * graphite-interchange.c: Remove.
1999 * graphite-optimize-isl.c: Include dumpfile.h.
2000 (getScheduleForBand): Add dump for tiled loops. Use
2001 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
2002 * graphite-poly.c (scop_max_loop_depth): Remove.
2003 (print_scattering_function_1): Remove.
2004 (print_scattering_function): Remove.
2005 (print_scattering_functions): Remove.
2006 (debug_scattering_function): Remove.
2007 (debug_scattering_functions): Remove.
2008 (apply_poly_transforms): Remove use of flag_loop_block,
2009 flag_loop_strip_mine, and flag_loop_interchange.
2010 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
2012 (print_pdr_access_layout): Remove.
2013 (print_pdr): Print ISL representation.
2014 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
2015 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2017 (openscop_print_pbb_domain): Remove.
2018 (print_pbb): Remove call to print_scattering_function.
2019 (openscop_print_scop_context): Remove.
2020 (print_scop_context): Do not print matrices anymore.
2021 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
2022 SCOP_TRANSFORMED_SCHEDULE.
2023 (print_isl_set): Add printing of a new line.
2024 (print_isl_map): Same.
2025 (print_isl_aff): Same.
2026 (print_isl_constraint): Same.
2027 (loop_to_lst): Remove.
2028 (scop_to_lst): Remove.
2029 (lst_indent_to): Remove.
2030 (print_lst): Remove.
2031 (debug_lst): Remove.
2032 (dot_lst_1): Remove.
2034 (reverse_loop_at_level): Remove.
2035 (reverse_loop_for_pbbs): Remove.
2036 * graphite-poly.h (pdr_dim_iter_domain): Remove.
2037 (pdr_nb_params): Remove.
2038 (pdr_alias_set_dim): Remove.
2039 (pdr_subscript_dim): Remove.
2040 (pdr_iterator_dim): Remove.
2041 (pdr_parameter_dim): Remove.
2042 (same_pdr_p): Remove.
2043 (struct poly_scattering): Remove.
2044 (struct poly_bb): Remove _original, _transformed, _saved.
2045 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
2046 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
2047 (PBB_NB_LOCAL_VARIABLES): Remove.
2048 (PBB_NB_SCATTERING_TRANSFORM): Remove.
2049 (schedule_to_scattering): Remove.
2050 (number_of_write_pdrs): Remove.
2051 (pbb_dim_iter_domain): Remove.
2052 (pbb_nb_params): Remove.
2053 (pbb_nb_scattering_orig): Remove.
2054 (pbb_nb_scattering_transform): Remove.
2055 (pbb_nb_dynamic_scattering_transform): Remove.
2056 (pbb_nb_local_vars): Remove.
2057 (pbb_iterator_dim): Remove.
2058 (pbb_parameter_dim): Remove.
2059 (psco_scattering_dim): Remove.
2060 (psct_scattering_dim): Remove.
2061 (psct_local_var_dim): Remove.
2062 (psco_iterator_dim): Remove.
2063 (psct_iterator_dim): Remove.
2064 (psco_parameter_dim): Remove.
2065 (psct_parameter_dim): Remove.
2066 (psct_dynamic_dim): Remove.
2067 (psct_static_dim): Remove.
2068 (psct_add_local_variable): Remove.
2069 (new_lst_loop): Remove.
2070 (new_lst_stmt): Remove.
2073 (lst_add_loop_under_loop): Remove.
2074 (lst_depth): Remove.
2075 (lst_dewey_number): Remove.
2076 (lst_dewey_number_at_depth): Remove.
2079 (lst_find_pbb): Remove.
2080 (find_lst_loop): Remove.
2081 (lst_find_first_pbb): Remove.
2082 (lst_empty_p): Remove.
2083 (lst_find_last_pbb): Remove.
2084 (lst_contains_p): Remove.
2085 (lst_contains_pbb): Remove.
2086 (lst_create_nest): Remove.
2087 (lst_remove_from_sequence): Remove.
2088 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
2089 (lst_niter_for_loop): Remove.
2090 (pbb_update_scattering): Remove.
2091 (lst_update_scattering_under): Remove.
2092 (lst_update_scattering): Remove.
2093 (lst_insert_in_sequence): Remove.
2094 (lst_replace): Remove.
2095 (lst_substitute_3): Remove.
2096 (lst_distribute_lst): Remove.
2097 (lst_remove_all_before_including_pbb): Remove.
2098 (lst_remove_all_before_excluding_pbb): Remove.
2099 (struct scop): Remove original_schedule, transformed_schedule, and
2101 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
2102 (SCOP_SAVED_SCHEDULE): Remove.
2103 (poly_scattering_new): Remove.
2104 (poly_scattering_free): Remove.
2105 (poly_scattering_copy): Remove.
2106 (store_scattering_pbb): Remove.
2107 (store_lst_schedule): Remove.
2108 (restore_lst_schedule): Remove.
2109 (store_scattering): Remove.
2110 (restore_scattering_pbb): Remove.
2111 (restore_scattering): Remove.
2112 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2113 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
2114 compute the scattering polyhedron dimension from the dimension of
2116 (build_scop_scattering): Update call to
2117 build_pbb_scattering_polyhedrons.
2118 (build_poly_scop): Remove call to scop_to_lst.
2119 * graphite.c (graphite_transform_loops): Add call to print_scop.
2120 (gate_graphite_transforms): Remove use of flag_loop_block,
2121 flag_loop_interchange, and flag_loop_strip_mine.
2123 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2125 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
2126 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
2127 -floop-nest-optimize.
2128 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
2129 (generate_luj_sepclass): Remove.
2130 (generate_luj_options): Remove.
2131 (set_options): Remove opt_luj.
2132 (scop_to_isl_ast): Remove opt_luj.
2133 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
2134 flag_loop_unroll_jam.
2135 (getPrevectorMap_full): Remove.
2136 (getScheduleForBandList): Remove map_sepcl.
2137 (getScheduleMap): Same.
2138 (apply_schedule_map_to_scop): Remove sepcl.
2139 (optimize_isl): Same.
2140 * graphite-poly.c (apply_poly_transforms): Remove check for
2141 flag_loop_unroll_jam.
2142 (new_poly_bb): Remove map_sepclass.
2143 * graphite-poly.h (struct poly_bb): Same.
2144 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
2145 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
2146 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
2147 * toplev.c (process_options): Remove flag_loop_unroll_jam.
2149 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
2152 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
2154 (UNSPEC_ADD_CARRY): Remove.
2155 (addqi3_cconly_overflow): New expander.
2156 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
2157 Adjust for changed add<mode>3_carry.
2158 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
2159 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
2160 (<plusminus_insn><mode>3_carry): Remove expander.
2161 (*<plusminus_insn><mode>3_carry): Split insn pattern to
2162 add<mode>3_carry and sub<mode>3_carry.
2163 (plusminus_carry_mnemonic): Remove code attribute.
2164 (add<mode>3_carry): Canonicalize insn pattern.
2165 (*addsi3_carry_zext): Ditto.
2166 (sub<mode>3_carry): Ditto.
2167 (*subsi3_carry_zext): Ditto.
2168 (adcx<mode>3): Remove insn pattern.
2169 (addcarry<mode>): New insn pattern.
2170 (subborrow<mode>): Ditto.
2171 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
2172 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
2173 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
2174 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
2175 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
2176 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
2177 Rewrite expander to not clobber carry flag chains.
2179 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
2181 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
2182 instead of a rotate.
2184 2015-08-27 Marek Polacek <polacek@redhat.com>
2187 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
2188 an entry into an irreducible region.
2190 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2192 * configure: Regenerate.
2194 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2196 PR tree-optimization/67283
2197 * tree-sra.c (type_consists_of_records_p): Rename to...
2198 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2200 (completely_scalarize_record): Rename to...
2201 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2202 (scalarize_elem): New.
2204 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2206 * tree-sra.c (completely_scalarize_var): Rename to...
2207 (create_total_scalarization_access): ... Here. Drop call to
2208 completely_scalarize_record.
2210 (analyze_all_variable_accesses): Replace completely_scalarize_var
2211 with create_total_scalarization_access and completely_scalarize_record.
2213 2015-08-27 Alan Modra <amodra@gmail.com>
2216 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
2219 2015-08-27 Richard Biener <rguenther@suse.de>
2221 * passes.c (rest_of_decl_compilation): Guard early_global_decl
2222 call with !seen_error ().
2223 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
2224 early debug generation and finish...
2225 (symbol_table::compile): ... here to put it after a !seen_error ()
2228 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2230 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
2233 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2234 Andre Vieira <andre.simoesdiasvieira@arm.com>
2236 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
2237 (*cb<optab><mode>1): Likewise.
2238 (*tb<optab><mode>1): Likewise.
2239 (*cb<optab><mode>1): Likewise.
2240 * config/aarch64/iterators.md (inv_cb): New code attribute.
2242 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
2243 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
2245 2015-08-27 Richard Biener <rguenther@suse.de>
2247 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
2249 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2251 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
2254 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2256 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
2259 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
2261 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
2262 floating point in VSX registers.
2263 (rs6000_output_move_128bit): Always print out the set insn if we
2264 can't generate an appropriate 128-bit move.
2265 (rs6000_generate_compare): Add support for IEEE 128-bit floating
2266 point in VSX registers comparisons.
2267 (rs6000_expand_float128_convert): Likewise.
2269 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
2270 predicate for only GPR hard registers.
2272 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
2273 modes to iterators. Add new iterators for moving 128-bit values in
2274 scalar FPR registers and VSX registers.
2275 (FMOVE128): Likewise.
2276 (FMOVE128_FPR): Likewise.
2277 (FMOVE128_GPR): Likewise.
2278 (FMOVE128_VSX): Likewise.
2279 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
2284 (RELOAD): Add IEEE 128-bit floating point modes.
2285 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
2286 floating point in VSX registers modes.
2287 (signbit<mode>2, IBM128 iterator): Likewise.
2288 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
2289 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2291 (neg<mode>2, TFIFKF iterator): Likewise.
2292 (negtf2_internal): Likewise.
2294 (abs<mode>2, TFIFKF iterator): Likewise.
2295 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
2296 VSX insn support for negate, absolute value, and negative absolute
2298 (ieee_128bit_vsx_neg<mode>2): Likewise.
2299 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2300 (ieee_128bit_vsx_abs<mode>2): Likewise.
2301 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2302 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2303 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2304 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
2305 floating point in VSX registers.
2306 (unpack<mode>_dm): Likewise.
2307 (unpack<mode>_nodm): Likewise.
2308 (pack<mode>): Likewise.
2309 (unpackv1ti): Likewise.
2310 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
2311 (packv1ti): Likewise.
2312 (pack<mode>, FMOVE128_VSX iterator): Likewise.
2313 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
2315 (extenddftf2_internal): Likewise.
2316 (trunctfdf2): Likewise.
2317 (trunctfdf2_internal2): Likewise.
2318 (fix_trunc_helper): Likewise.
2319 (fix_trunctfdi2"): Likewise.
2320 (floatditf2): Likewise.
2321 (floatuns<mode>tf2): Likewise.
2322 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2323 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2324 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2325 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2326 (float<SDI:mode><IFKF:mode>2): Likewise.
2327 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2329 2015-08-26 Renlin Li <renlin.li@arm.com>
2331 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
2333 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2334 Jiong Wang <jiong.wang@arm.com>
2336 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
2337 (tlsie_tiny_<mode>): New define_insn.
2338 (tlsie_tiny_sidi): Likewise.
2339 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2341 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
2342 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
2344 (aarch64_expand_mov_immediate): Likewise.
2345 (aarch64_print_operand): Likewise.
2346 (arch64_classify_tls_symbol): Likewise.
2348 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2350 * config/arm/arm-arches.def: Replace single value flags with
2351 an initializer built from ARM_FSET_MAKE_CPU1.
2352 * config/arm/arm-cores.def: Likewise.
2353 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
2354 derivation from the ARM_CORE macro definition, use the given value
2356 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
2357 ARM_ARCH macro definition, use the given value instead.
2359 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2361 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
2363 (struct builtin_description): Replace field mask with field
2365 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
2366 (IWMMXT2_BUILTIN): Likewise.
2367 (IWMMXT2_BUILTIN2): Likewise.
2368 (FP_BUILTIN): Likewise.
2369 (CRC32_BUILTIN): Likewise.
2370 (CRYPTO_BUILTIN): Likewise.
2371 (iwmmx_mbuiltin): Likewise.
2372 (iwmmx2_mbuiltin): Likewise.
2373 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
2374 struct builtin_description.
2376 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2378 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
2379 (struct builtin_description): Change type of mask to unsigned
2381 * config/arm/arm-protos.h (insn_flags): Declare as type
2383 (tune_flags): Likewise.
2384 * config/arm/arm.c (feature_count): New.
2385 (insn_flags): Define as type arm_feature_set.
2386 (tune_flags): Likewise.
2387 (struct processors): Define field flags as type arm_feature_set.
2388 (all_cores): Update for change to struct processors.
2389 (all_architectures): Likewise.
2390 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
2392 (arm_option_override_internal): Likewise.
2393 (arm_option_override): Likewise.
2395 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2396 Jiong Wang <jiong.wang@arm.com>
2398 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
2399 tls size for tiny, small, large memory model.
2400 (aarch64_load_symref_appropriately): Support new symbol types.
2401 (aarch64_expand_mov_immediate): Likewise.
2402 (aarch64_print_operand): Likewise.
2403 (aarch64_classify_tls_symbol): Likewise.
2404 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
2405 (aarch64_symbol_type): Likewise.
2406 * config/aarch64/aarch64.md (tlsle): Deleted.
2407 (tlsle12_<mode>): New define_insn.
2408 (tlsle24_<mode>): Likewise.
2409 (tlsle32_<mode>): Likewise.
2410 (tlsle48_<mode>): Likewise.
2411 * doc/sourcebuild.texi (AArch64-specific attributes): Document
2414 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2416 * config/arm/arm-protos.h (FL_NONE): New.
2418 (arm_feature_set): New.
2419 (ARM_FSET_MAKE): New.
2420 (ARM_FSET_MAKE_CPU1): New.
2421 (ARM_FSET_MAKE_CPU2): New.
2422 (ARM_FSET_CPU1): New.
2423 (ARM_FSET_CPU2): New.
2424 (ARM_FSET_EMPTY): New.
2425 (ARM_FSET_ANY): New.
2426 (ARM_FSET_HAS_CPU1): New.
2427 (ARM_FSET_HAS_CPU2): New.
2428 (ARM_FSET_HAS_CPU): New.
2429 (ARM_FSET_ADD_CPU1): New.
2430 (ARM_FSET_ADD_CPU2): New.
2431 (ARM_FSET_DEL_CPU1): New.
2432 (ARM_FSET_DEL_CPU2): New.
2433 (ARM_FSET_UNION): New.
2434 (ARM_FSET_INTER): New.
2435 (ARM_FSET_XOR): New.
2436 (ARM_FSET_EXCLUDE): New.
2437 (AFM_FSET_IS_EMPTY): New.
2438 (ARM_FSET_CPU_SUBSET): New.
2440 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2442 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
2443 SYMBOL_TLSLE to SYMBOL_TLSLE24.
2444 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2446 (aarch64_expand_mov_immediate): Likewise.
2447 (aarch64_print_operand): Likewise.
2448 (aarch64_classify_symbol): Likewise.
2450 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2452 * config/aarch64/aarch64.opt (mtls-size): New entry.
2453 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
2454 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
2455 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
2457 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2459 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
2460 ARM_CORE entry. Fix some white-space.
2461 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
2462 ARM_CORE definition.
2464 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2466 * fold-const.c (fold_binary_loc) : Move Optimize
2467 root(x)*root(y) as root(x*y) to match.pd.
2468 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
2469 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
2470 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
2471 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
2472 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
2473 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
2474 (mult (exps:s @0) (exps:s @1)) : New simplifier.
2475 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
2476 (rdiv @0 (exps:s @1)) : New simplifier.
2478 2015-08-25 Joseph Myers <joseph@codesourcery.com>
2480 * gcc.c (driver::finalize): Only assign to extra_specs if
2483 2015-08-25 Marek Polacek <polacek@redhat.com>
2486 * varasm.c (declare_weak): Return after giving an error.
2488 2015-08-25 David Malcolm <dmalcolm@redhat.com>
2490 * gcc-main.c (main): Add params to driver ctor.
2491 * gcc.c (class env_manager): New.
2493 (env_manager::init): New.
2494 (env_manager::get): New.
2495 (env_manager::xput): New.
2496 (env_manager::restore): New.
2497 Poison getenv and putenv.
2498 (DEFAULT_TARGET_SYSTEM_ROOT): New.
2499 (target_system_root): Update initialization to use
2500 DEFAULT_TARGET_SYSTEM_ROOT.
2501 (struct spec_list): Add field "default_ptr".
2502 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
2503 (init_spec): Likewise.
2504 (set_spec): Clear field "default_ptr".
2505 (read_specs): Free "spec" and "buffer".
2506 (xputenv): Reimplement in terms of env_manager.
2507 (process_command): Replace ::getenv calls with calls to the
2508 env_manager singleton.
2509 (process_brace_body): Free string in three places.
2510 (driver::driver): New.
2511 (driver::~driver): New.
2512 (used_arg): Convert from a function to...
2513 (class used_arg_t): ...this class, and...
2514 (used_arg): ...this new global instance.
2515 (used_arg_t::finalize): New function.
2516 (getenv_spec_function): Add "const" to local "value". Replace
2517 ::getenv call with call to the env_manager singleton.
2518 (path_prefix_reset): New function.
2519 (driver::finalize): New function.
2520 * gcc.h (driver::driver): New.
2521 (driver::~driver): New.
2522 (driver::finalize): New.
2524 2015-08-25 Nathan Sidwell <nathan@acm.org>
2526 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
2527 target doesn't have one.
2529 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2532 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
2534 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2537 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
2538 a define_insn, remove second alternative.
2540 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
2541 Joseph Myers <joseph@codesourcery.com>
2543 * gcc.c (struct switchstr): Expand comment.
2545 2015-08-25 Nathan Sidwell <nathan@acm.org>
2547 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
2548 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
2550 2015-08-25 Richard Biener <rguenther@suse.de>
2553 * genmatch.c (expr::gen_transform): Verify the result of
2554 builtin_decl_implicit.
2555 (dt_simplify::gen_1): Likewise.
2557 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2559 * config/arm/constraints.md: Also list Cs and US ARM-specific
2560 constraints as used.
2562 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
2565 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
2567 (nonpic_symbol_mentioned_p): Likewise.
2568 (sh_delegitimize_address): Likewise.
2569 (sh_function_ok_for_sibcall): Take into account weak symbols.
2570 (sh_expand_sym_label2reg): New.
2571 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
2572 * config/sh/sh.md (UNSPEC_PCREL): New enum.
2573 (call_pcrel): Use sh_expand_sym_label2reg.
2574 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
2575 (symPCREL_label2reg) New expand.
2577 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2579 * graphite-poly.c: Change type of region from void* to sese.
2580 * graphite-poly.h (struct scop): Changing the type of scop::region
2581 from void* to sese. Change accessor macro accordingly.
2582 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
2584 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2586 * graphite-scop-detection.c (stmt_simple_for_scop_p):
2587 Constrain only on INTEGER_TYPE.
2589 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2592 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
2593 -mefficient-unaligned-vsx on ISA 2.7.
2595 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
2596 option to a masked option.
2598 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
2599 logic for -mefficient-unaligned-vsx so that it is set via an arch
2600 ISA option, instead of being set if -mtune=power8 is set. Move
2601 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
2602 near other default option handling.
2604 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2606 * genflags.c (gen_macro): Delete.
2607 (gen_proto): Don't create GEN.*CALL.* macros.
2608 * gensupport.h (get_file_location): Declare.
2609 * gensupport.c (rtx_locs): New variable.
2610 (read_md_rtx): Record rtx locations.
2611 (get_file_location): New function.
2612 * target-insns.def (call, call_pop, call_value, call_value_pop)
2613 (sibcall, sibcall_value): New patterns.
2614 * gentarget-def.c (parse_argument): New function.
2615 (def_target_insn): Use it. Handle optional operands. Raise an
2616 error if an .md pattern has the wrong number of operands for the
2617 pattern name. Remove the names of unused operands from the prototype.
2618 * builtins.c (expand_builtin_apply): Use targetm functions
2619 instead of HAVE_call_value and GEN_CALL_VALUE.
2620 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
2621 and sibcall_value_pop.
2622 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
2624 * config/alpha/alpha.md (untyped_call): Likewise.
2625 * config/iq2000/iq2000.md (untyped_call): Likewise.
2626 * config/m68k/m68k.md (untyped_call): Likewise.
2627 * config/mips/mips.md (untyped_call): Likewise.
2628 * config/pa/pa.md (untyped_call): Likewise.
2629 * config/rs6000/rs6000.md (untyped_call): Likewise.
2630 * config/sparc/sparc.md (untyped_call): Likewise.
2631 * config/tilegx/tilegx.md (untyped_call): Likewise.
2632 * config/tilepro/tilepro.md (untyped_call): Likewise.
2633 * config/visium/visium.md (untyped_call): Likewise.
2634 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
2635 gen_call_value instead of GEN_CALL_VALUE.
2636 * config/arm/arm.md (untyped_call): Likewise.
2637 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
2640 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2642 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
2643 (have_cbranchcc4): New variable.
2644 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
2645 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
2646 (if_convert): Initialize have_cbranchcc4.
2648 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2650 * builtins.c (expand_cmpstrn): Rename to...
2651 (expand_cmpstrn_or_cmpmem): ...this.
2652 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
2653 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
2654 Remove mode argument.
2655 (expand_builtin): Update accordingly.
2657 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2659 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
2660 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
2661 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
2662 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
2663 Add predicates for operands 0 and 3.
2664 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
2666 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
2667 immediate_operand to nonmemory_operand.
2669 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2671 * df-scan.c (df_insn_info_init_fields): New function, split out
2673 (df_insn_create_insn_record): ...here.
2674 (df_insn_info_free_fields): New function, split out from...
2675 (df_insn_info_delete): ...here.
2676 (df_insn_rescan): Use the new functions instead of freeing and
2677 reallocating the df_insn_info.
2679 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2681 * doc/install.texi (Binaries): Remove links no longer valid.
2683 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
2685 * config/nvptx/mkoffload.c (process): Replace
2686 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
2688 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
2691 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
2693 2015-08-24 Renlin Li <renlin.li@arm.com>
2695 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
2696 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
2697 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
2698 * config/arm/constraints.md ("j"): Add check for high code.
2700 2015-08-24 Tom de Vries <tom@codesourcery.com>
2702 PR tree-optimization/65468
2703 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
2706 2015-08-24 Nathan Sidwell <nathan@acm.org>
2708 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
2709 change to nvptx_type_from_mode call. Use arg_promotion for both
2710 split and non-split args.
2712 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2714 * target-insns.def (movstr): New pattern.
2715 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
2716 (expand_movstr): Use targetm rather than HAVE_movstr/
2719 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2721 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
2724 2015-08-24 Andrew Pinski <apinski@cavium.com>
2726 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
2727 AARCH64_EXTRA_TUNING_OPTION.
2728 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
2729 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
2730 of the argument to AARCH64_EXTRA_TUNING_OPTION.
2731 * config/aarch64/aarch64.c: Remove the last argument to
2732 AARCH64_EXTRA_TUNING_OPTION.
2734 2015-08-23 Nathan Sidwell <nathan@acm.org>
2736 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
2738 (nvptx_declare_function_name): Insert formatting tabs for
2741 2015-08-23 Tom de Vries <tom@codesourcery.com>
2743 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
2744 parm_decl, rather than generating a dummy default def in cfun.
2745 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
2746 ssa_name from cfun and child_fn do not share a stmt as def stmt.
2747 (move_stmt_op): Handle PARM_DECl.
2748 (gather_ssa_name_hash_map_from): New function.
2749 (move_sese_region_to_fn): Add default defs for function params, and add
2750 them to vars_map. Release copied ssa names.
2751 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
2753 2015-08-23 Tom de Vries <tom@codesourcery.com>
2755 * doc/sourcebuild.texi: Rename vect_no_int_max with
2756 vect_no_int_min_max. Update description.
2758 2015-08-22 Andrew Pinski <apinski@cavium.com>
2760 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
2761 * config/aarch64/aarch64-protos.h
2762 (aarch64_fusion_pairs_index): New enum.
2763 (aarch64_fusion_pairs): Base the shifted value on the index instead
2764 Rewrite AARCH64_FUSE_ALL to be based on the end index.
2765 of the argument to AARCH64_FUSION_PAIR.
2766 * config/aarch64/aarch64.c: Remove the last argument to
2767 AARCH64_FUSION_PAIR.
2769 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
2771 * dominance.c (new_zero_array): Define.
2772 (dom_info): Redefine as class with proper encapsulation.
2773 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
2775 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
2776 allocations/deallocations. Pass function as parameter (instead of
2778 (dom_info::get_idom): Define accessor method.
2779 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
2780 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
2781 (calculate_dominance_info): Adjust to use dom_info class.
2782 (verify_dominators): Likewise.
2784 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
2786 * print-rtl.c (print_rtx): Check the correct range for
2787 flag_dump_unnumbered_links to behave as documented.
2789 PR rtl-optimization/67227
2790 PR rtl-optimization/64164
2791 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
2792 (nonoverlapping_memrefs_p): Test offsets and sizes when given
2793 identical gimple_reg exprs.
2795 2015-08-21 Nathan Sidwell <nathan@acm.org>
2797 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
2799 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
2800 crtl->stack_alignment_needed to determine alignment.
2801 (nvptx_get_drap_rtx): New.
2802 (TARGET_GET_DRAP_RTX): Override.
2803 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
2805 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2807 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
2809 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2811 * configure.ac: Remove uwin* cases.
2812 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
2813 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
2814 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
2815 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
2816 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
2817 i[34567]86-*-uwin*, powerpc-*-beos*.
2819 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
2821 * gencodes.c (gencodes): Print the comma for the preceding
2822 enum value rather than the current one. Use aliased enum values
2823 rather than #defines for compiled-out patterns.
2824 (main): Update accordingly. Replace LAST_INSN_CODE with
2826 * lra.c (insn_code_data): Update accordingly.
2827 (finish_insn_code_data_once, get_static_insn_data): Likewise.
2828 * recog.h (target_recog): Likewise.
2829 (preprocess_insn_constraints): Change parameter to unsigned int.
2830 * recog.c (preprocess_insn_constraints): Likewise.
2831 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
2832 * tree-vect-stmts.c (vectorizable_operation): Simplify.
2834 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
2836 PR rtl-optimization/61657
2837 * loop-iv.c (iv_number_of_iterations): Declare up and down as
2838 unsigned. Remove superflous uint64_t cast.
2840 2014-08-21 Felix Yang <felix.yang@huawei.com>
2841 Jiji Jiang <jiangjiji@huawei.com>
2843 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
2844 and get builtin function code directly from CALL.
2845 (gimple_stringop_fixed_value): Modified accordingly.
2846 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
2847 accordingly and only accept BUILT_IN_NORMAL string operations.
2849 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
2851 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
2853 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2855 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
2857 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
2858 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
2859 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
2860 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
2861 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
2862 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
2863 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
2864 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
2865 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
2866 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
2868 * match.pd (SIN ) : New Operator.
2869 (TAN) : New Operator.
2870 (mult (SQRT@1 @0) @1) : New simplifier.
2871 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
2872 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2873 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2874 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
2875 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
2876 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
2877 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
2878 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
2879 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
2880 (rdiv @0 (POW:s @1 @2)) : New simplifier.
2882 2015-08-21 Bin Cheng <bin.cheng@arm.com>
2884 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
2885 loop if EXPR is simplified to const value.
2887 2015-08-21 Yury Gribov <y.gribov@samsung.com>
2889 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2890 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
2892 2015-08-21 Richard Biener <rguenther@suse.de>
2895 * gimple-fold.c (replace_stmt_with_simplification): Assert
2896 seq is empty when replacing a call with itself but different
2898 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
2899 a call require that it is const.
2901 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2903 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
2904 * builtins.c (get_object_alignment_2): Adjust.
2905 * varasm.c (align_variable): Likewise.
2906 (get_variable_align): Likewise.
2907 (build_constant_desc): Likewise.
2908 (force_const_mem): Likewise.
2909 * doc/tm.texi.in: Likewise.
2910 * doc/tm.texi: Regenerate.
2912 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2914 * genconfig.c (main): Always define HAVE_cc0.
2915 * recog.c (rest_of_handle_peephole2): Adjust.
2917 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2919 * reorg.c (relax_delay_slots): Don't use #if to check value of
2922 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2924 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
2925 * targhooks.c (default_have_conditional_execution): Adjust.
2927 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
2929 * rtl.h (rtvec_all_equal_p): Declare.
2930 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
2931 * rtl.c (rtvec_all_equal_p): New function.
2932 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
2933 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
2934 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
2935 * config/arm/arm.c (neon_vdup_constant): Likewise.
2936 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
2937 * config/tilegx/constraints.md (W, Y): Likewise.
2938 * config/tilepro/constraints.md (W, Y): Likewise.
2939 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
2940 (classify_immediate): Use unwrap_const_vec_duplicate.
2941 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
2942 (reg_or_v2s8bit_operand): Likewise.
2943 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
2944 (reg_or_v4s8bit_operand): Likewise.
2946 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2948 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
2949 (vec_shasigma_be): New #define.
2950 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
2951 (VPMSUMH): Likewise.
2952 (VPMSUMW): Likewise.
2953 (VPMSUMD): Likewise.
2954 (VPMSUM): New BU_P8V_OVERLOAD_2.
2955 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
2956 entries for VEC_MADD and VEC_VPMSUM.
2958 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
2960 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
2961 Multiply argument avr_n_flash by 64 to match unit of "KiB".
2962 (avr_pgm_check_var_decl): Same.
2964 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
2966 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
2967 initialization of HFmode scalar type (float16_t) to...
2968 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
2971 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
2973 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
2974 having an -mfp16-format.
2976 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
2978 * config/i386/predicates.md (vector_all_ones_operand): Use
2979 CONSTM1_RTX to simplify definition.
2981 2015-08-20 Richard Biener <rguenther@suse.de>
2983 * toplev.c (compile_file): Remove loop calling late_global_decl
2985 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
2986 on decls we assembled.
2988 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
2990 * common/config/aarch64/aarch64-common.c
2991 (AARCH64_CPU_NAME_LENGTH): Delete.
2992 (aarch64_option_extension): New.
2993 (all_extensions): Likewise.
2994 (processor_name_to_arch): Likewise.
2995 (arch_to_arch_name): Likewise.
2997 (all_architectures): Likewise.
2998 (aarch64_get_extension_string_for_isa_flags): Likewise.
2999 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
3001 * config/aarch64/aarch64-protos.h
3002 (aarch64_get_extension_string_for_isa_flags): New.
3003 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
3004 (aarch64_option_print): Get the string to print from
3005 aarch64_get_extension_string_for_isa_flags.
3006 (aarch64_declare_function_name): Likewise.
3007 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
3008 (MCPU_TO_MARCH_SPEC): This.
3009 (ASM_CPU_SPEC): Use it.
3010 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
3011 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
3012 (EXTRA_SPEC_FUNCTIONS): Use it.
3014 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
3016 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
3017 expansion when !ISA_HAS_LWL_LWR.
3018 (mips_block_move_straight): Update the size of elements copied to
3019 account for alignment when !ISA_HAS_LWL_LWR.
3020 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
3022 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3024 * expr.c (expand_expr_real_2): Check gimple statement during
3027 2015-08-19 Magnus Granberg <zorry@gentoo.org>
3029 * common.opt (fstack-protector): Initialize to -1.
3030 (fstack-protector-all): Likewise.
3031 (fstack-protector-strong): Likewise.
3032 (fstack-protector-explicit): Likewise.
3033 * configure.ac: Add --enable-default-ssp.
3034 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
3035 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
3037 * doc/install.texi: Document --enable-default-ssp.
3038 * config.in: Regenerated.
3039 * configure: Likewise.
3041 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
3043 PR rtl-optimization/64164
3044 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
3045 (parm_in_stack_slot_p): ... this. Disregard mode, what
3046 matters is whether the parm will live in a pseudo or a stack
3048 (expand_one_ssa_partition): Deal with params without a default
3049 def. Disregard mode.
3050 * cfgexpand.h: Renamed function declaration.
3051 * tree-ssa-coalesce.c: Adjust.
3052 * function.c (split_complex_args): Allocate stack slot for
3053 unassigned parms before splitting.
3054 (parm_in_unassigned_mem_p): New. Use it instead of
3055 parm_maybe_byref_p throughout this file.
3056 (assign_parm_setup_block): Use it. Accept pseudos in the
3057 expand-assigned rtl.
3058 (assign_parm_setup_reg): Drop BLKmode requirement.
3059 (assign_parm_setup_stack): Allocate and fill in the address of
3060 unassigned MEM parms.
3062 2015-08-19 David Sherwood <david.sherwood@arm.com>
3064 * genmodes.c (emit_mode_unit_size_inline): New function.
3065 (emit_mode_unit_precision_inline): New function.
3066 (emit_insn_modes_h): Emit new #define. Emit new functions.
3067 (emit_mode_unit_size): New function.
3068 (emit_mode_unit_precision): New function.
3069 (emit_mode_adjustments): Add mode_unit_size adjustments.
3070 (emit_insn_modes_c): Emit new arrays.
3071 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
3072 use new inline methods.
3074 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3076 * config/aarch64/aarch64.c (bit_count): Delete prototype
3078 (aarch64_print_operand): Use popcount_hwi instead of the above.
3080 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3082 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
3085 2015-08-19 Marek Polacek <polacek@redhat.com>
3088 * gimple-ssa-isolate-paths.c
3089 (insert_trap_and_remove_trailing_statements): Rename to ...
3090 (insert_trap): ... this. Don't remove trailing statements; split
3092 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
3094 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
3097 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
3098 conditionalize the whole on __GNUC__. Add fallback code
3099 depending neither on undefined nor implementation-defined behaviour.
3101 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3103 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
3104 whitespaces with tab.
3106 2015-08-19 Florian Weimer <fweimer@redhat.com>
3108 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
3109 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
3110 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
3111 Move Name_Ids instantiation to the Prj.Proc package, to avoid
3114 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3116 * config/arm/arm.c (bounds_check): Use %wd print format
3117 for HOST_WIDE_INT arguments.
3119 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3121 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
3122 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
3123 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
3124 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
3125 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
3126 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
3127 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
3128 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
3129 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
3132 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
3134 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
3135 function.c, graphite-scop-detection.c, haifa-sched.c,
3136 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
3137 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
3138 varasm.c: Remove typedefs of structs.
3140 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3142 * config/rs6000/altivec.h (vec_adde): New define.
3143 (vec_addec): Likewise.
3144 (vec_double): Likewise.
3145 (vec_bperm): Likewise.
3147 * config/rs6000/rs6000-builtin.def (ADDE): New
3148 BU_ALTIVEC_OVERLOAD_3.
3150 (DOUBLE): New BU_VSX_OVERLOAD_1.
3151 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
3152 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
3153 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
3154 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
3155 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
3156 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
3157 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
3158 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
3159 and P8V_BUILTIN_VEC_VBPERMQ.
3161 2015-08-18 Jason Merrill <jason@redhat.com>
3163 * print-tree.c (print_node): Handle TREE_BINFO.
3165 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3168 * builtins.c (expand_builtin_signbit): Add asserts to make sure
3169 we can expand BUILT_IN_SIGNBIT inline.
3170 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
3171 * doc/extend.texi: Document the type-generic __builtin_signbit.
3173 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
3175 PR rtl-optimization/67218
3176 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
3177 (simplify_unary_operation_1): Use it.
3179 2015-08-18 Marek Polacek <polacek@redhat.com>
3182 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
3183 if the call isn't valid.
3184 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
3185 gimple_call_builtin_p.
3186 (call_may_clobber_ref_p_1): Likewise.
3187 (stmt_kills_ref_p): Likewise.
3189 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
3191 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
3192 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
3193 (mips_hard_regno_scratch_ok): Likewise.
3194 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
3195 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
3197 2015-08-18 Bin Cheng <bin.cheng@arm.com>
3199 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
3200 (determine_value_range): Call refine_value_range_using_guard for
3201 each loop initial condition to improve value range.
3203 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
3205 * config/i386/i386.c: Remove include of fibheap.h.
3207 2015-08-17 Richard Biener <rguenther@suse.de>
3209 PR tree-optimization/67221
3210 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
3211 (sccvn_dom_walker::before_dom_children): Mark backedges of
3212 non-executable blocks as not executable.
3214 2015-08-17 David Sherwood <david.sherwood@arm.com>
3216 * config/arm/arm.c (neon_element_bits): Replace call to
3217 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
3218 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
3219 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
3220 (neon_vdup_lane<mode>): Likewise.
3221 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
3222 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
3223 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
3224 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
3225 * config/spu/spu.c (arith_immediate_p): Likewise.
3226 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3227 * expr.c (expand_expr_real_2): Likewise.
3228 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
3229 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3230 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3231 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
3233 * fold-const.c (fold_binary_loc): Replace call to
3234 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
3235 GET_MODE_UNIT_PRECISION (m).
3237 2015-08-17 Mike Stump <mikestump@comcast.net>
3239 * config/arm/arm.c (arm_block_move_unaligned_straight):
3240 Emit normal move instead of unaligned load when source or destination
3241 are appropriately aligned.
3243 2015-08-17 Richard Biener <rguenther@suse.de>
3244 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3247 * match.pd (div (coss (op @0) : New simplifier.
3249 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
3251 PR rtl-optimization/64164
3254 PR rtl-optimization/67000
3257 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3258 * tree-ssa-copyrename.c: Removed.
3259 * opts.c (default_options_table): Drop -ftree-copyrename. Add
3260 -ftree-coalesce-vars.
3261 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3262 * common.opt (ftree-copyrename): Ignore.
3263 (ftree-coalesce-inlined-vars): Likewise.
3264 * doc/invoke.texi: Remove the ignored options above.
3265 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3266 * tree-ssa-coalesce.h: ... here.
3267 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3268 headers required by it.
3269 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3270 across variables when flag_tree_coalesce_vars. Check register
3271 use and promoted modes to allow coalescing. Do not coalesce
3272 maybe-byref parms with SSA_NAMEs of other variables, or
3273 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
3274 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3275 with its member functions to tree-ssa-coalesce.c.
3276 (var_map_base_init): Likewise. Renamed to
3277 compute_samebase_partition_bases.
3278 (partition_view_normal): Drop want_bases parameter.
3279 (partition_view_bitmap): Likewise.
3280 * tree-ssa-live.h: Adjust declarations.
3281 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
3282 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3283 default defs at the entry point.
3284 (dump_part_var_map): New.
3285 (compute_optimized_partition_bases): New, called by...
3286 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3287 of compute_samebase_partition_bases. Adjust.
3288 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3289 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
3290 (ssa_default_def_partition): New.
3291 (get_rtl_for_parm_ssa_default_def): New.
3292 (align_local_variable, add_stack_var): Support anonymous SSA
3294 (defer_stack_allocation): Likewise. Declare earlier.
3295 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3296 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3297 Do no record deferred-allocation marker in
3298 SA.partition_to_pseudo.
3299 (expand_stack_vars): Adjust check for the marker in it.
3300 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
3301 redundant MEM attr setting.
3302 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
3304 (expand_one_stack_var): ... this. New wrapper to check and
3305 skip already expanded SSA partitions.
3306 (record_alignment_for_reg_var): New, factored out of...
3307 (expand_one_var): ... this.
3308 (expand_one_ssa_partition): New.
3309 (adjust_one_expanded_partition_var): New.
3310 (expand_one_register_var): Check and skip already expanded SSA
3312 (expand_used_vars): Don't create DECLs for anonymous SSA
3313 names. Expand all SSA partitions, then adjust all SSA names.
3314 (pass::execute): Replace the loops that set
3315 SA.partition_to_pseudo from partition leaders and cleared
3316 DECL_RTL for multi-location variables, and that which used to
3317 rename vars and set attrs, with one that clears DECL_RTL and
3318 checks that PARMs and RESULTs default_defs match DECL_RTL.
3319 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3320 * emit-rtl.c: Include stor-layout.h.
3321 (set_reg_attrs_for_parm): Handle NULL decl.
3322 (set_reg_attrs_for_decl_rtl): Take mode from expression if
3324 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
3325 rather than its possibly-NULL DECL.
3326 * explow.c (promote_ssa_mode): New.
3327 * explow.h (promote_ssa_mode): Declare.
3328 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3329 (read_complex_part): Export.
3330 * expr.h (read_complex_part): Declare.
3331 * cfgexpand.h (parm_maybe_byref_p): Declare.
3332 * function.c: Include cfgexpand.h.
3333 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3334 (use_register_for_parm_decl): Wrapper for the above to
3335 special-case the result_ptr.
3336 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3337 (split_complex_args): Take assign_parm_data_all argument.
3338 Pass it to rtl_for_parm. Set up rtl and context for split
3339 args. Reset complex parm before fetching its default decl
3341 (assign_parms_unsplit_complex): Use the default-def complex
3342 parm rtl if it matches the components.
3343 (assign_parms_augmented_arg_list): Adjust.
3344 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3345 multiple locations. Recognize split complex args.
3346 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3347 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
3348 (assign_parm_setup_block): Prefer SSA-assigned location, and
3349 fill in its address if the memory location of a maybe-byref
3350 parm was not assigned by cfgexpand.
3351 (assign_parm_setup_reg): Likewise. Adjust its mode as
3352 needed. Use entry_parm for equiv if stack_parm is NULL. Make
3353 sure passed_pointer parms don't need conversion. Copy address
3355 (assign_parm_setup_stack): Prefer SSA-assigned location.
3356 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
3357 rtl before testing for pointer bounds. Special-case result_ptr.
3358 (expand_function_start): Maybe reset DECL_RTL of result.
3359 Prefer SSA-assigned location for result and static chain.
3360 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
3361 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
3362 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3363 anonymous SSA names. Use promote_ssa_mode.
3364 (get_temp_reg): Likewise.
3365 (remove_ssa_form): Adjust.
3366 * stor-layout.c (layout_decl): Don't set mem attributes of
3368 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3369 and get its reg_usage for reg invalidation.
3370 (compute_bb_dataflow): Pass it insn.
3371 (emit_notes_in_bb): Likewise.
3373 2015-08-14 Marek Polacek <polacek@redhat.com>
3375 * tree-core.h (tree_base): Fix typo.
3377 2015-08-14 Marek Polacek <polacek@redhat.com>
3380 * gimple.c (infer_nonnull_range_by_attribute): Check that the
3381 nonnull argument position is not outside function arguments.
3383 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
3386 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
3387 'lconst_atomic' with 'const_atomic'.
3388 (atomic_fetch_<optab><mode>): Likewise.
3389 (atomic_<optab>_fetch<mode>): Likewise.
3390 * config/aarch64/iterators.md (lconst-atomic): Move below
3392 (const_atomic): New.
3394 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
3395 Bernd Schmidt <bernds@codesourcery.com>
3397 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
3399 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
3400 (DWARF2_DEBUGGING_INFO): Don't define.
3401 * debug.h (dwarf2_lineno_debug_hooks): Declare.
3402 * toplev.c (process_options): Add a case for it.
3403 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
3404 (dwarf2out_init): Skip most initializations if
3405 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
3407 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
3408 DWARF2_LINENO_DEBUGGING_INFO.
3409 * opts.c (set_debug_level): Likewise.
3411 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
3413 * config/arm/types.md (is_neon_type): Add missing types.
3415 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
3417 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
3419 * config/i386/i386.c (PTA_SKYLAKE): New macros.
3420 (processor_alias_table): Add skylake description.
3421 (enum processor_model): Add skylake processor.
3422 (arch_names_table): Add skylake record.
3423 * doc/invoke.texi: Add skylake item.
3425 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
3427 * ira-int.h: Include recog.h.
3428 * ira-build.c: Don't include recog.h.
3429 * ira-color.c: Likewise.
3430 * ira-conflicts.c: Likewise.
3431 * ira-costs.c: Likewise.
3432 * ira-emit.c: Likewise.
3433 * ira-lives.c: Likewise.
3435 * sched-deps.c: Likewise.
3436 * sel-sched.c: Likewise.
3437 * target-globals.c: Likewise.
3439 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
3442 * reload1.c (elimination_costs_in_insn): Make it obvious to the
3443 compiler that the n_dups and n_operands loop bounds are invariant.
3445 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3447 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
3448 expressions in A and B.
3450 2015-08-13 Richard Biener <rguenther@suse.de>
3452 * tree.c (nonnull_arg_p): Move from ...
3453 * tree-vrp.c (nonnull_arg_p): ... here.
3454 * tree.h (nonnull_arg_p): Declare.
3455 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
3456 here, register ptr != 0 for nonnull_arg_p pointer arguments.
3457 Properly initialize static chain and by-reference result pointer.
3458 (run_scc_vn): Adjust.
3460 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3462 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
3465 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3467 * config/aarch64/aarch64-protos.h
3468 (aarch64_gen_atomic_cas): Declare.
3469 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
3470 Choose appropriate instruction pattern for the target.
3471 (aarch64_gen_atomic_cas): New.
3472 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
3473 (atomic_compare_and_swap<mode>_1): Rename to
3474 aarch64_compare_and_swap<mode>. Fix some indentation.
3475 (aarch64_compare_and_swap<mode>_lse): New.
3476 (aarch64_atomic_cas<mode>): New.
3478 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3480 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
3483 2015-08-13 Richard Biener <rguenther@suse.de>
3485 PR tree-optimization/67191
3486 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
3487 assert we value-numbered last stmts operand because it can validly
3488 trigger for unreachable code.
3490 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3492 PR rtl-optimization/67103
3493 * ifcvt.c (noce_try_store_flag_constants): Move
3494 x = (-(test != 0) & (b - a)) + a transformation to...
3495 (noce_try_cmove): ... Here. Try it if normal conditional
3498 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3500 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
3502 * config/mips/mips.md (processor): Remove w32 and w64.
3504 2015-08-13 Richard Biener <rguenther@suse.de>
3506 PR tree-optimization/66502
3507 PR tree-optimization/67167
3508 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
3510 (vn_phi_lookup): Adjust.
3511 (vn_phi_insert): Likewise.
3512 (visit_phi): Prefer to value-number to another PHI node
3513 over value-numbering to a PHI argument.
3514 (init_scc_vn): Mark DFS back edges.
3516 2015-08-13 Richard Biener <rguenther@suse.de>
3518 * gimple.h (gcall::code_): New constant static member.
3519 (gcond::code_): Likewise.
3520 * gimple.c (gcall::code_): Define.
3521 (gcond::code_): Likewise.
3522 (is_a_helper <const gcond *>): Add.
3523 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
3524 and forward to a new gcall overload with less checking and a
3525 cheaper way to access the operand.
3526 (gimple_call_lhs_ptr): Likewise.
3527 (gimple_call_set_lhs): Likewise.
3528 (gimple_call_internal_p): Likewise.
3529 (gimple_call_with_bounds_p): Likewise.
3530 (gimple_call_set_with_bounds): Likewise.
3531 (gimple_call_internal_fn): Likewise.
3532 (gimple_call_set_ctrl_altering): Likewise.
3533 (gimple_call_ctrl_altering_p): Likewise.
3534 (gimple_call_fntype): Likewise.
3535 (gimple_call_fn): Likewise.
3536 (gimple_call_fn_ptr): Likewise.
3537 (gimple_call_set_fndecl): Likewise.
3538 (gimple_call_fndecl): Likewise.
3539 (gimple_call_chain): Likewise.
3540 (gimple_call_num_args): Likewise.
3541 (gimple_call_arg): Likewise.
3542 (gimple_call_arg_ptr): Likewise.
3543 (gimple_call_set_arg): Likewise.
3544 (gimple_call_noreturn_p): Likewise.
3545 (gimple_cond_code): Likewise.
3546 (gimple_cond_lhs): Likewise.
3547 (gimple_cond_rhs): Likewise.
3548 (gimple_has_lhs): Reduce checking.
3550 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3553 * match.pd (div (mult @0 @1) @1) : New simplifier.
3555 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3558 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
3559 predicate to allow construction of vector constants using the
3560 VSLDOI vector shift instruction.
3562 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
3565 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
3566 the number of bytes to be shifted left and filled in with either
3567 all zero or all one bits.
3568 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
3570 (output_vec_const_move): On power8, generate XXLORC to generate
3571 a vector constant with all 1's. Do a split if we need to use a
3574 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
3575 properly test for the MSB.
3577 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
3578 vector constants that can be created with VSLDOI.
3580 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3583 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3584 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3585 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3586 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3587 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3588 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3589 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3590 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3591 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3593 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
3595 * config/xtensa/constraints.md (define_constraint "Y"): New
3597 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
3598 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3599 * config/xtensa/predicates.md (move_operand): Match constants
3600 and symbols in the presence of TARGET_AUTO_LITPOOLS.
3601 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
3602 immediate references to TLS data.
3603 (xtensa_emit_move_sequence): Don't force constants to memory in
3604 the presence of TARGET_AUTO_LITPOOLS.
3605 (print_operand): Add 'y' format, same as default, but capable of
3606 printing SF mode constants as well.
3607 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
3608 (movsf_internal): Add movi pattern that loads literal.
3609 (movsf, movdf): Don't force constants to memory in the presence
3610 of TARGET_AUTO_LITPOOLS.
3611 (movdf_internal): Add 'Y' constraint.
3612 * config/xtensa/xtensa.opt (mauto-litpools): New option.
3613 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
3615 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3617 * config/arm/arm-fpus.def: Replace booleans with feature flags.
3619 * config/arm/arm.c (ARM_FPU): Update macro.
3620 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
3621 (TARGET_FP16): Likewise.
3622 (TARGET_CRYPTO): Likewise.
3623 (TARGET_NEON): Likewise.
3624 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
3627 2015-08-12 Tom de Vries <tom@codesourcery.com>
3631 * doc/install.texi: Remove --with_host_libstdcxx item. Update
3632 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
3633 accordingly. Mention default for --with-stage1-ldflags.
3635 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3637 * config/arm/arm.h (arm_fpu_feature_set): New.
3638 (ARM_FPU_FSET_HAS): New.
3642 (FPU_FL_CRYPTO): New.
3644 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3646 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
3647 after -mcmodel=large -fPIC sorry.
3649 2015-08-12 Richard Biener <rguenther@suse.de>
3651 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
3652 comparison operand order and commutative ternary op operand order.
3653 (sccvn_dom_walker::cond_stack): New state to track temporary
3655 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
3657 (sccvn_dom_walker::record_cond): Add a single temporary conditional
3659 (sccvn_dom_walker::record_conds): Add a temporary conditional
3660 expressions and all related expressions also true/false.
3661 (sccvn_dom_walker::before_dom_children): Record temporary
3662 expressions based on the controlling condition of a single
3663 predecessor. When trying to simplify a conditional statement
3664 lookup expressions we might have inserted earlier.
3666 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
3669 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
3670 to ARM core registers.
3672 2015-08-12 Nathan Sidwell <nathan@acm.org>
3674 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
3675 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
3677 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
3679 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
3681 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
3683 2015-08-12 Richard Biener <rguenther@suse.de>
3685 * gimple.h (remove_pointer): New trait.
3686 (GIMPLE_CHECK2): New inline template function.
3687 (gassign::code_): New constant static member.
3688 (is_a_helper<const gassign *>): Add.
3689 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
3690 and forward to a new gassign overload with less checking and a
3691 cheaper way to access the operand.
3692 (gimple_assign_lhs_ptr): Likewise.
3693 (gimple_assign_set_lhs): Likewise.
3694 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
3696 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
3698 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
3700 (gimple_assign_rhs_code): Likewise.
3701 * gimple.c (gassign::code_): Define.
3703 2015-08-12 Richard Biener <rguenther@suse.de>
3705 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3706 Eliminate edges marked as not executable by SCCVN.
3707 * tree-ssa-sccvn.c: Include gimple-iterator.h.
3708 (cond_dom_walker): Rename to sccvn_dom_walker.
3709 (sccvn_dom_walker::before_dom_children): Value-number defs
3711 (run_scc_vn): Remove loop value-numbering all SSA names.
3712 Drop not visited SSA names to varying.
3714 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3716 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3717 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3718 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3719 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3720 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3721 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3722 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3723 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3724 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3726 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
3729 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
3730 to enum feature_priority and feature_list.
3731 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
3732 and isa_names_table.
3734 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
3736 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
3739 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3743 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
3744 account when deciding what was the command-line status.
3746 2015-08-11 Nathan Sidwell <nathan@acm.org>
3748 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
3750 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
3751 we're not the only contributor to target phi.
3753 2015-08-11 Jiong Wang <jiong.wang@arm.com>
3755 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
3758 2015-08-11 Tom de Vries <tom@codesourcery.com>
3760 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
3762 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
3764 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
3766 * config/i386/i386.md (cpu): Remove knl.
3768 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3772 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
3773 open-coded sequence.
3774 * omp-low.c (oacc_process_reduction_data): Remove handline of
3775 GOMP_DEVICE_HOST_NONSHM.
3777 * lto-streamer-in.c (lto_input_mode_table): Adjust to
3778 GET_MODE_INNER changes.
3780 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3781 Ilya Verbin <ilya.verbin@intel.com>
3783 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
3786 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3788 * doc/options.texi (EnabledBy): Document that the argument must be
3790 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
3791 Not enabled by -Wall.
3792 * optc-gen.awk: Give nicer error messages. Detect if the argument
3793 of EnabledBy is not a Common option.
3794 * common.opt (Wnull-dereference): Not enabled by -Wall.
3795 * opt-functions.awk (lang_enabled_by): Nicer error messages.
3797 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
3799 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
3800 model == 0x4f as Broadwell.
3802 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3804 PR rtl-optimization/67028
3805 * combine.c (simplify_comparison): Fix comment. Rearrange code.
3806 Add test to see if a const_int fits in the new mode.
3808 2015-08-07 DJ Delorie <dj@redhat.com>
3810 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
3812 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
3814 PR rtl-optimization/67029
3815 * ira-color.c: Include "recog.h" before including "ira-int.h".
3816 * target-globals.c: Likewise.
3817 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
3818 adds an alternative_mask argument and use it instead of
3819 preferred_alternatives.
3820 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
3821 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
3822 * sched-deps.c: Include "ira-int.h" after including "ira.h".
3823 (sched_analyze_insn): Update call to
3824 ira_implicitly_set_insn_hard_regs.
3825 * sel-sched.c: Include "ira-int.h" after including "ira.h".
3826 (implicit_clobber_conflict_p): Update call to
3827 ira_implicitly_set_insn_hard_regs.
3829 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3831 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
3833 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
3836 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
3837 currently_expanding_to_rtl is set.
3839 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
3841 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
3842 * configure: Regenerate.
3844 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3845 Jiong Wang <jiong.wang@arm.com>
3847 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3848 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3849 (REG_CLASS_NAMES): Likewise.
3850 (REG_CLASS_CONTENTS): Likewise.
3851 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3852 (aarch64_register_move_cost): Likewise.
3853 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3855 * config/aarch64/constraints.md (Uc0): New constraint.
3857 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3859 * config/aarch64/constraints.md (Usf): Add the test of
3860 aarch64_is_noplt_call_p.
3862 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3864 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
3866 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
3867 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
3868 (call_symbol): Likewise.
3870 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3872 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
3873 for vectorizing multiplication patterns.
3874 * tree-vectorizer.h: Adjust the number of patterns.
3876 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3878 * config/i386/sse.md (*vec_concatv2df): Declare added
3879 alternatives as sselog type.
3881 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3883 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
3886 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3888 * config/s390/s390.c (s390_expand_tbegin): Expand either
3889 tbegin_1_z13 or tbegin_1 depending on VX flag.
3890 * config/s390/s390.md ("tbegin_1_z13"): New expander.
3892 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3894 * config/s390/s390.opt: Clarify description for -mzvector
3895 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
3898 2015-08-06 Richard Biener <rguenther@suse.de>
3900 * gimple.h (gimple_call_set_fn): Access op member directly.
3901 (gimple_call_chain_ptr): Likewise.
3902 (gimple_call_set_chain): Likewise.
3903 (gimple_cond_lhs_ptr): Likewise.
3904 (gimple_cond_set_lhs): Likewise.
3905 (gimple_cond_rhs_ptr): Likewise.
3906 (gimple_cond_set_rhs): Likewise.
3907 (gimple_cond_true_label): Likewise.
3908 (gimple_cond_set_true_label): Likewise.
3909 (gimple_cond_set_false_label): Likewise.
3910 (gimple_cond_false_label): Likewise.
3911 (gimple_label_label): Likewise.
3912 (gimple_label_set_label): Likewise.
3913 (gimple_goto_set_dest): Likewise.
3914 (gimple_asm_input_op): Likewise.
3915 (gimple_asm_input_op_ptr): Likewise.
3916 (gimple_asm_set_input_op): Likewise.
3917 (gimple_asm_output_op): Likewise.
3918 (gimple_asm_output_op_ptr): Likewise.
3919 (gimple_asm_set_output_op): Likewise.
3920 (gimple_asm_clobber_op): Likewise.
3921 (gimple_asm_set_clobber_op): Likewise.
3922 (gimple_asm_label_op): Likewise.
3923 (gimple_asm_set_label_op): Likewise.
3924 (gimple_switch_index): Likewise.
3925 (gimple_switch_index_ptr): Likewise.
3926 (gimple_return_retval_ptr): Likewise.
3927 (gimple_return_retval): Likewise.
3928 (gimple_return_set_retval): Likewise.
3929 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
3930 (gimple_switch_label): Likewise.
3931 (gimple_switch_set_label): Likewise.
3933 2015-08-06 Richard Biener <rguenther@suse.de>
3935 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
3936 bool comparison canonicalization and restrict to integers.
3938 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
3940 * coretypes.h (enum symbol_visibility): Relocate here.
3941 * flag-types.h (enum symbol_visibility): Remove.
3942 * tree-core.h (enum symbol_visibility): Remove.
3944 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
3947 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
3948 for no_split_stack function attribute along with
3950 (rs6000_expand_split_stack_prologue): Likewise.
3952 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3953 Jeff Law <law@redhat.com>
3956 * doc/invoke.texi (Wnull-dereference): New.
3957 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
3958 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
3959 Warn for potential NULL dereferences.
3960 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
3961 * ubsan.c (instrument_nonnull_arg): Call
3962 infer_nonnull_range_by_attribute.
3963 (instrument_nonnull_return): Likewise.
3964 * common.opt (Wnull-dereference); New.
3965 * gimple.c (infer_nonnull_range): Remove bool arguments.
3966 (infer_nonnull_range_by_dereference): New.
3967 (infer_nonnull_range_by_attribute): New.
3968 * gimple.h: Update declarations.
3970 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3972 * gensupport.c (sequence_num): Replace with...
3973 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
3974 ...these new variables.
3975 (init_rtx_reader_args_cb): Update accordingly.
3976 (get_num_code_insns): Likewise.
3977 (read_md_rtx): Rework to use a while loop and get_c_test.
3978 Use the new counters. Remove redundant DEFINE_SUBST case.
3979 * genoutput.c (gen_split): Delete.
3980 (main): Don't call it.
3982 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3984 * gensupport.h (get_c_test): Declare.
3985 * gensupport.c (get_c_test): New function.
3986 * genconditions.c (main): Use it.
3987 * genrecog.c (validate_pattern): Likewise.
3988 (match_pattern_1): Likewise. Remove c_test argument.
3989 (match_pattern): Update accordingly and remove c_test argument.
3990 (main): Update accordingly.
3992 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3994 * gensupport.h (get_num_insn_codes): Declare.
3995 * gensupport.c (get_num_insn_codes): New function.
3996 * genattrtab.c (optimize_attrs): Rename max_insn_code to
3998 (main): Likewise. Use get_num_insn_codes.
3999 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
4001 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4004 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
4005 is zero- rather than sign-extended.
4007 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4009 * target-insns.def (can_extend): Delete.
4011 2015-08-05 Richard Biener <rguenther@suse.de>
4013 PR tree-optimization/67121
4014 * tree-if-conv.c (combine_blocks): Clear range-info produced
4015 by stmts no longer executed conditionally.
4017 2015-08-05 Nick Clifton <nickc@redhat.com>
4019 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
4020 to allow identical far pointers to remain.
4022 2015-08-05 Richard Biener <rguenther@suse.de>
4025 * match.pd: Compare address bases with == if they are decls
4026 or SSA names, not operand_equal_p. Otherwise fail.
4028 2015-08-05 Richard Biener <rguenther@suse.de>
4030 PR tree-optimization/67055
4031 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
4034 * g++.dg/torture/pr67055.C: New testcase.
4036 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
4038 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
4040 (define_attr "enabled"): Handle avx521vl and noavx512vl.
4041 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
4042 AVX-512 alternative out of SSE.
4043 (define_insn "*vec_concatv2df"): Ditto.
4045 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
4047 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
4048 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
4049 CODE_FOR_avx_ptestv4di.
4050 * config/i386/sse.md (define_mode_iterator V_AVX): New.
4051 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
4052 (define_insn "avx_ptest256"): Merge this ...
4053 (define_insn "sse4_1_ptest"): And this ...
4054 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
4056 2015-08-05 Richard Biener <rguenther@suse.de>
4058 PR tree-optimization/67109
4059 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
4060 against too big groups. Print whether this is a load or store
4061 group. Rename from ...
4062 (vect_analyze_group_access): ... this which is now a wrapper
4063 dissolving an invalid group.
4064 (vect_analyze_data_ref_accesses): Print whether this is a load
4067 2015-08-05 Richard Biener <rguenther@suse.de>
4070 * match.pd: Guard const_binop result checking against NULL_TREE
4073 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
4075 * cse.c (cse_insn): Restoring old behaviour for src_eqv
4076 when dest and value in the REG_EQUAL are same and dest
4079 2015-08-04 Anatoly Sokolov <aesok@post.ru>
4081 * config/moxie/moxie.h (PRINT_OPERAND,
4082 PRINT_OPERAND_ADDRESS): Remove macros.
4083 * config/moxie/moxie-protos.h (moxie_print_operand,
4084 moxie_print_operand_address): Remove declaration.
4085 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
4086 TARGET_PRINT_OPERAND_ADDRESS): Define.
4087 (moxie_print_operand, moxie_print_operand_address): Make static.
4089 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4092 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
4093 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
4095 2015-08-04 Richard Biener <rguenther@suse.de>
4097 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
4099 (dt_operand::gen_gimple_expr): Adjust.
4101 2015-08-04 Richard Biener <rguenther@suse.de>
4103 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
4104 bool compares on RHS.
4105 * match.pd: Add X ==/!= !X is false/true pattern.
4107 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
4109 * config/aarch64/aarch64.c: Change inner loop statement cost
4110 to be consistent with other targets.
4112 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
4114 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
4117 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
4119 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
4120 (machine_function): Remove pseudos field.
4122 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4124 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4125 Exit early and use target_option_current_node if processing current
4128 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4130 * doc/extend.texi (AArch64 Function Attributes): New node.
4131 (AArch64 Pragmas): Likewise.
4133 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4135 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4136 Initialize simd builtins if TARGET_SIMD.
4137 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
4138 Make sure that the builtins are initialized only once no matter how
4139 many times the function is called.
4140 (aarch64_init_builtins): Unconditionally initialize crc builtins.
4141 (aarch64_relayout_simd_param): New function.
4142 (aarch64_simd_expand_args): Use above during argument expansion.
4143 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
4144 simd builtins if TARGET_SIMD.
4145 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
4147 (aarch64_relayout_simd_types): Likewise.
4149 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4151 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
4152 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
4153 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
4154 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4156 (aarch64_reset_previous_fndecl): New function.
4157 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
4159 * config/aarch64/aarch64-c.c: New file.
4160 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
4161 Push and pop options at beginning and end. Remove ifdef
4162 __ARM_FEATURE_CRC32.
4163 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
4164 Add pragma +nothing+simd and +nothing+crypto where appropriate.
4165 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
4166 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
4168 (aarch64_register_pragmas): Likewise.
4169 (aarch64_reset_previous_fndecl): Likewise.
4170 (aarch64_process_target_attr): Likewise.
4171 (aarch64_override_options_internal): Likewise.
4173 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4175 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
4177 (aarch64_can_inline_p): Likewise.
4178 (TARGET_CAN_INLINE_P): Define.
4180 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4182 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4183 Remove static. Handle OPT_mgeneral_regs_only,
4184 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
4185 OPT_momit_leaf_frame_pointer.
4186 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
4187 (aarch64_attr_opt_type): New enum.
4188 (aarch64_attribute_info): New struct.
4189 (aarch64_handle_attr_arch): New function.
4190 (aarch64_handle_attr_cpu): Likewise.
4191 (aarch64_handle_attr_tune): Likewise.
4192 (aarch64_handle_attr_isa_flags): Likewise.
4193 (aarch64_attributes): New table.
4194 (aarch64_process_one_target_attr): New function.
4195 (num_occurences_in_str): Likewise.
4196 (aarch64_process_target_attr): Likewise.
4197 (aarch64_option_valid_attribute_p): Likewise.
4198 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4199 * config/aarch64/aarch64-protos.h: Include input.h
4200 (aarch64_handle_option): Declare prototype.
4202 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4204 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
4205 * config/aarch64/aarch64.c: Include target-globals.h
4206 (aarch64_previous_fndecl): New variable.
4207 (aarch64_set_current_function): New function.
4208 (TARGET_SET_CURRENT_FUNCTION): Define.
4210 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4212 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
4213 (explicit_arch): Likewise.
4214 (x_aarch64_isa_flags): Likewise.
4215 (mgeneral-regs-only): Mark as Save.
4216 (mfix-cortex-a53-835769): Likewise.
4217 (mcmodel=): Likewise.
4218 (mstrict-align): Likewise.
4219 (momit-leaf-frame-pointer): Likewise.
4220 (mtls-dialect): Likewise.
4221 (master=): Likewise.
4222 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
4223 (aarch64_isa_flags): Remove extern declaration.
4224 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
4225 to indicate success or failure.
4226 (aarch64_validate_march): Likewise.
4227 (aarch64_validate_mtune): Likewise.
4228 (aarch64_isa_flags): Delete.
4229 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
4230 instead of aarch64_isa_flags.
4231 (aarch64_get_tune_cpu): New function.
4232 (aarch64_get_arch): Likewise.
4233 (aarch64_override_options): Use above and set up explicit_tune_core
4235 (aarch64_print_extension): Move earlier in file. Add isa_flags
4236 argument and use that instead of the global aarch64_isa_flags.
4237 (aarch64_option_save): New function.
4238 (aarch64_option_restore): Likewise.
4239 (aarch64_option_print): Likewise.
4240 (aarch64_declare_function_name): Likewise.
4241 (aarch64_start_file): Delete.
4242 (TARGET_ASM_FILE_START): Do not define.
4243 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
4244 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
4247 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4249 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
4250 flag_omit_leaf_frame_pointer to 2.
4252 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4254 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
4256 (TARGET_FIX_ERR_A53_835769): New macro.
4257 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4258 handling of opts->x_aarch64_fix_a53_err835769.
4259 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
4260 than aarch64_fix_a53_err835769.
4261 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
4262 * config/aarch64/aarch64-linux.h: Likewise.
4264 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
4266 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
4267 ix86_expand_int_movcc as boolean.
4269 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4271 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
4272 (aarch64_cpu_string): Likewise.
4273 (aarch64_tune_string): Likewise.
4274 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
4275 (aarch64_parse_extension): Return aarch64_parse_opt_result.
4276 Add extra argument to put result into.
4277 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
4278 (aarch64_parse_cpu): Add arguments to put results into. Return
4279 aarch64_parse_opt_result.
4280 (aarch64_parse_tune): Likewise.
4281 (aarch64_override_options_after_change_1): New function.
4282 (aarch64_override_options_internal): New function.
4283 (aarch64_validate_mcpu): Likewise.
4284 (aarch64_validate_march): Likewise.
4285 (aarch64_validate_mtune): Likewise.
4286 (aarch64_override_options): Update to reflect above changes.
4287 Move some logic into aarch64_override_options_internal.
4288 Initialize target_option_default_node and target_option_current_node.
4289 (aarch64_override_options_after_change): Move logic into
4290 aarch64_override_options_after_change_1 and call it with global_options.
4291 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
4292 flag values from that.
4294 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4296 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4297 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
4298 * config/aarch64/aarch64.c (struct processor): Add arch field.
4299 (all_architectures): Handle above, move above all_cores.
4300 (all_cores): Handle above.
4301 (aarch64_parse_arch): Handle above changes.
4302 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
4303 above. Update comments.
4304 (armv8.1-a): Likewise.
4305 * config/aarch64/aarch64-cores.def: Update according to above.
4306 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
4307 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
4308 aarch64_arch_driver_info.
4310 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4312 * config/aarch64/aarch64.c (struct processor): Add ident field.
4313 Rename core sched_core.
4314 (all_cores): Handle above changes.
4315 (all_architectures): Likewise.
4316 (aarch64_parse_arch): Likewise.
4317 (aarch64_override_options): Likewise.
4319 2015-08-04 Richard Biener <rguenther@suse.de>
4321 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
4322 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
4323 comparisons embedded in [VEC_]COND_EXPRs.
4325 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
4327 * tree-if-conv.c: Fix various typos in comments.
4328 * tree-vect-stmts.c: Likewise.
4330 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4332 PR tree-optimization/67043
4333 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
4334 preheader after hoisting invariant in it.
4335 (find_defs): Force recomputation of all luids.
4337 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
4339 * config/rs6000/htm.md (tabort.): Restrict the source operand to
4340 using a base register.
4342 2015-08-03 David Malcolm <dmalcolm@redhat.com>
4344 * main.c (main): Pass in NULL for toplev's external_timer.
4345 * timevar.c: Include coretypes.h.
4346 (class timer::named_items): New.
4347 (timer::named_items::named_items): New.
4348 (timer::named_items::~named_items): New.
4349 (timer::named_items::push): New.
4350 (timer::named_items::pop): New.
4351 (timer::named_items::print): New.
4352 (timer::timer): Initialize field "m_jit_client_items".
4353 (timer::~timer): New.
4354 (timer::push): Move bulk of implementation to...
4355 (timer::push_internal): ...here. New function.
4356 (timer::pop): Move bulk of implementation to...
4357 (timer::pop_internal): ...here. New function.
4358 (timer::push_client_item): New.
4359 (timer::pop_client_item): New.
4360 (timer::print_row): New function, taken from timer::print.
4361 (timer::print): Print "GCC items" header if we also have client
4362 items. Move row-printing to timer::print_row. Print any client
4364 (timer::get_topmost_item_name): New method.
4365 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
4366 (TV_JIT_CLIENT_CODE): New.
4367 * timevar.h (timer::push_client_item): New declaration.
4368 (timer::pop_client_item): New declaration.
4369 (timer::get_topmost_item_name): New method.
4370 (timer::push_internal): New declaration.
4371 (timer::pop_internal): New declaration.
4372 (timer::print_row): New declaration.
4373 (timer::named_items): New declaration.
4374 (timer::m_jit_client_items): New field.
4375 (timer): Add friend class named_items.
4376 (auto_timevar::auto_timevar): Add timer param.
4377 (auto_timevar::~auto_timevar): Use field "m_timer".
4378 (auto_timevar::m_timer): New field.
4379 * toplev.c (initialize_rtl): Add g_timer as param when
4380 constructing auto_timevar instance.
4381 (toplev::toplev): Add "external_timer" param, and use it to
4382 initialize the "g_timer" global if non-NULL.
4383 (toplev::~toplev): If this created "g_timer", delete it.
4384 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
4385 with "external_timer" timer *.
4387 2015-08-03 Alexander Basov <coohpt@gmail.com>
4392 * cfgexpand.c (expand_one_var): Add check if stack is going to
4393 be used in naked function.
4394 * expr.c (expand_expr_addr_expr_1): Remove excess checking
4395 whether expression should not reside in MEM.
4396 * function.c (use_register_for_decl): Do not use registers for
4397 non-register things (volatile, float, BLKMode) in naked functions.
4399 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
4402 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
4403 Adjust splits to match new pattern.
4405 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4407 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
4410 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
4411 point in VSX registers.
4413 * config/rs6000/constraints.md (wb constraint): Document unused
4415 (we constraint): Likewise.
4416 (wo constraint): Likewise.
4417 (wp constraint): New constraint for IEEE 128-bit floating point in
4419 (wq constraint): Likewise.
4421 * config/rs6000/predicates.md (easy_fp_constant): Add support for
4422 IEEE 128-bit floating point in VSX registers.
4423 (easy_scalar_constant): Likewise.
4425 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
4426 constraints (wp, wq) for IEEE 128-bit floating point in VSX
4428 (rs6000_init_hard_regno_mode_ok): Likewise.
4430 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
4431 floating point in VSX registers.
4440 (vsx_le_permute_<mode>): Add support to properly swap bytes for
4441 IEEE 128-bit floating point in VSX registers on little endian.
4442 (vsx_le_undo_permute_<mode>): Likewise.
4443 (vsx_le_perm_load_<mode>): Likewise.
4444 (vsx_le_perm_store_<mode>): Likewise.
4445 (splitters for IEEE 128-bit fp moves): Likewise.
4447 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
4450 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
4451 floating point in VSX registers.
4454 * doc/md.text (Machine Constraints): Document wp and wq
4455 constraints on PowerPC.
4457 2015-08-03 Jeff Law <law@redhat.com>
4460 PR gcov-profile/66899
4461 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
4462 iterate over the jump threading paths when an element in the
4463 jump threading paths array is eliminated.
4465 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
4467 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
4469 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
4471 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
4472 is_use_properly_guarded the variable def_preds. Free its
4473 contents before returning.
4474 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
4475 (is_use_properly_guarded): Replace local variable def_preds with
4476 a parameter. Adjust accordingly. Only update *def_preds if it's
4479 2015-08-03 Richard Biener <rguenther@suse.de>
4481 * genmatch.c (simplify::for_subst_vec): New member.
4482 (binary_ok): New helper for for lowering.
4483 (lower_for): Delay substituting operators into result expressions
4484 if we can merge the results eventually again.
4485 (capture_info::walk_result): Adjust for user_id appearing as
4486 result expression operator.
4487 (expr::gen_transform): Likewise.
4488 (dt_simplify::gen_1): Likewise.
4489 (dt_simplify::gen): Pass not substituted operators to tail
4490 functions or initialize local variable with it.
4491 (decision_tree::gen): Adjust function signature.
4492 * match.pd: Fix tests against global code and add default
4493 cases to switch stmts.
4495 2015-08-03 Richard Biener <rguenther@suse.de>
4497 * genmatch.c (dt_simplify::gen): Create captures array
4498 with an initializer.
4500 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4502 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
4503 the host compiler is affected by placement new aliasing bug.
4504 * configure: Regenerate.
4505 * Makefile.in (ALIASING_FLAGS): New variable.
4506 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
4508 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4511 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
4512 (negmulsf3_vfp): Likewise.
4513 (muldf3negdf_vfp): Disable for -frounding-math.
4514 (mulsf3negsf_vfp): Likewise.
4515 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
4516 fix MULT cost with -frounding-math.
4518 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4520 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
4521 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
4522 explicit. Prefer to add the flag whenever possible.
4523 (noce_process_if_block): Try noce_try_store_flag_constants before
4526 2015-08-03 Richard Biener <rguenther@suse.de>
4528 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
4529 New hash-map to record equivalent transforms.
4530 (dt_node::analyze): Populate the equivalent transforms hash-map.
4531 (dt_simplify::info): Add reference to hash-map entry.
4532 (dt_simplify::gen): If we have split out a function for the
4533 transform, generate a call to it.
4534 (sinfo_hashmap_traits::hash): New function.
4535 (compare_op): New helper function for ...
4536 (sinfo_hashmap_traits::equal_keys): ... this new function.
4537 (decision_tree::gen): Split out common equivalent transforms
4540 2015-08-03 Richard Biener <rguenther@suse.de>
4542 * gimple-fold.c (fold_gimple_assign): Remove folding of
4543 the comparison in COND_EXPRs.
4545 2015-08-03 Richard Biener <rguenther@suse.de>
4547 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
4548 on the rhs of assignments first simplify the embedded
4551 2015-08-03 Richard Biener <rguenther@suse.de>
4553 PR tree-optimization/66917
4554 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
4556 (DR_VECT_AUX): New macro.
4557 (set_dr_misalignment): Adjust.
4558 (dr_misalignment): Likewise.
4559 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4560 Compute whether the base is at least element aligned.
4561 * tree-vect-stmts.c (ensure_base_align): Adjust.
4562 (vectorizable_store): If the base is not element aligned
4563 preserve alignment of the original access if misalignment is unknown.
4564 (vectorizable_load): Likewise.
4566 2015-08-02 Martin Sebor <msebor@redhat.com>
4568 * c-family/c.opt (-Wframe-address): New warning option.
4569 * doc/invoke.texi (Wframe-address): Document it.
4570 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
4571 Clarify possible effects of calling the functions with non-zero
4572 arguments and mention -Wframe-address.
4573 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
4575 2015-08-01 Michael Collison <michael.collison@linaro.org
4576 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4578 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
4579 (*arm_umin_cmp): Likewise.
4581 2015-08-01 Caroline Tice <cmtice@google.com>
4584 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
4586 (vtbl_find_mangled_name): New function.
4587 (vtbl_register_mangled_name): New function.
4588 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
4589 mangled name in mangled name vectors.
4590 (find_or_create_vtbl_map_node): Ditto.
4591 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
4592 update recursion_depth on function entry; pass it to every recursive
4593 call; automatically exit if depth > 25 (give up looking at that point).
4594 (verify_bb_vtables): Initialize recursion_depth and pass it to
4595 var_is_used_for_virtual_call_p.
4596 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
4597 global variable decls.
4598 (vtbl_register_mangled_name): New extern function decl.
4600 2015-08-01 Tom de Vries <tom@codesourcery.com>
4602 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
4604 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
4606 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
4607 operation_no_trapping_overflow. Allow non-overflow operations.
4608 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
4611 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4614 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
4616 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4618 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
4619 Enable for TARGET_32BIT.
4620 (*if_move_neg): Likewise.
4622 2015-07-31 Nick Clifton <nickc@redhat.com>
4624 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
4625 Returns true for __model__.
4626 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4628 2015-07-31 Alan Modra <amodra@gmail.com>
4631 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
4632 (rs6000_emit_prologue): Set it.
4633 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
4635 2015-07-31 Richard Biener <rguenther@suse.de>
4637 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
4638 -> X == (C1 ^ C2) which is already implemented in match.pd.
4639 Remove redundant dispatching to fold_relational_const.
4640 Move unordered self and NaN compares ...
4641 * match.pd: ... as patterns here. Remove some stray captures
4644 2015-07-31 Petr Murzin <petr.murzin@intel.com>
4646 * config/i386/i386.c
4647 (bdesc_special_args): Convert mask type from signed to unsigned for
4649 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
4650 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
4651 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
4652 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
4653 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
4654 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
4655 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
4656 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
4657 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
4658 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
4659 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
4660 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
4661 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
4662 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
4663 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
4664 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
4665 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
4666 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
4667 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
4668 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
4669 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
4670 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
4671 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
4672 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
4673 * config/i386/i386-builtin-types.def
4674 (V16QI_FTYPE_V16SI): Remove.
4675 (V8DF_FTYPE_V8SI): Ditto.
4676 (V8HI_FTYPE_V8DI): Ditto.
4677 (V8SI_FTYPE_V8DI): Ditto.
4678 (V8SF_FTYPE_V8DF): Ditto.
4679 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
4680 (V16HI_FTYPE_V16SI): Ditto.
4681 (V16SF_FTYPE_V16HI): Ditto.
4682 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
4683 (V16SF_FTYPE_V16SI): Ditto.
4684 (V4DI_FTYPE_V4DI): Ditto.
4685 (V16SI_FTYPE_V16SF): Ditto.
4686 (V16SF_FTYPE_FLOAT): Ditto.
4687 (V8DF_FTYPE_DOUBLE): Ditto.
4688 (V8DI_FTYPE_INT64): Ditto.
4689 (V8DI_FTYPE_V4DI): Ditto.
4690 (V16QI_FTYPE_V8DI): Ditto.
4691 (UINT_FTYPE_V4SF): Ditto.
4692 (UINT64_FTYPE_V4SF): Ditto.
4693 (UINT_FTYPE_V2DF): Ditto.
4694 (UINT64_FTYPE_V2DF): Ditto.
4695 (V16SI_FTYPE_V16SI): Ditto.
4696 (V8DI_FTYPE_V8DI): Ditto.
4697 (V16SI_FTYPE_PV4SI): Ditto.
4698 (V16SF_FTYPE_PV4SF): Ditto.
4699 (V8DI_FTYPE_PV2DI): Ditto.
4700 (V8DF_FTYPE_PV2DF): Ditto.
4701 (V4DI_FTYPE_PV2DI): Ditto.
4702 (V4DF_FTYPE_PV2DF): Ditto.
4703 (V16SI_FTYPE_PV2SI): Ditto.
4704 (V16SF_FTYPE_PV2SF): Ditto.
4705 (V8DI_FTYPE_PV4DI): Ditto.
4706 (V8DF_FTYPE_PV4DF): Ditto.
4707 (V8SF_FTYPE_FLOAT): Ditto.
4708 (V4SF_FTYPE_FLOAT): Ditto.
4709 (V4DF_FTYPE_DOUBLE): Ditto.
4710 (V8SF_FTYPE_PV4SF): Ditto.
4711 (V8SI_FTYPE_PV4SI): Ditto.
4712 (V4SI_FTYPE_PV2SI): Ditto.
4713 (V8SF_FTYPE_PV2SF): Ditto.
4714 (V8SI_FTYPE_PV2SI): Ditto.
4715 (V16SF_FTYPE_PV8SF): Ditto.
4716 (V16SI_FTYPE_PV8SI): Ditto.
4717 (V8DI_FTYPE_V8SF): Ditto.
4718 (V4DI_FTYPE_V4SF): Ditto.
4719 (V2DI_FTYPE_V4SF): Ditto.
4720 (V64QI_FTYPE_QI): Ditto.
4721 (V32HI_FTYPE_HI): Ditto.
4722 (V8UHI_FTYPE_V8UHI): Ditto.
4723 (V16UHI_FTYPE_V16UHI): Ditto.
4724 (V32UHI_FTYPE_V32UHI): Ditto.
4725 (V2UDI_FTYPE_V2UDI): Ditto.
4726 (V4UDI_FTYPE_V4UDI): Ditto.
4727 (V8UDI_FTYPE_V8UDI): Ditto.
4728 (V4USI_FTYPE_V4USI): Ditto.
4729 (V8USI_FTYPE_V8USI): Ditto.
4730 (V16USI_FTYPE_V16USI): Ditto.
4731 (V2DF_FTYPE_V2DF_UINT64): Ditto.
4732 (V2DI_FTYPE_V2DF_V2DF): Ditto.
4733 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
4734 (V8DF_FTYPE_V8DF_V8DI): Ditto.
4735 (V4SF_FTYPE_V4SF_UINT64): Ditto.
4736 (V4SI_FTYPE_V4SF_V4SF): Ditto.
4737 (V16SF_FTYPE_V16SF_V16SI): Ditto.
4738 (V64QI_FTYPE_V32HI_V32HI): Ditto.
4739 (V32HI_FTYPE_V16SI_V16SI): Ditto.
4740 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
4741 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
4742 (V32HI_FTYPE_V64QI_V64QI): Ditto.
4743 (V32HI_FTYPE_V32HI_V32HI): Ditto.
4744 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
4745 (V16SI_FTYPE_V16SI_V4SI): Ditto.
4746 (V16SI_FTYPE_V16SI_V16SI): Ditto.
4747 (V16SI_FTYPE_V32HI_V32HI): Ditto.
4748 (V16SI_FTYPE_V16SI_SI): Ditto.
4749 (V8DI_FTYPE_V8DI_V8DI): Ditto.
4750 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
4751 (V8DI_FTYPE_V16SI_V16SI): Ditto.
4752 (V8DI_FTYPE_V8DI_V2DI): Ditto.
4753 (QI_FTYPE_QI): Ditto.
4754 (SI_FTYPE_SI): Ditto.
4755 (DI_FTYPE_DI): Ditto.
4756 (QI_FTYPE_QI_QI): Ditto.
4757 (QI_FTYPE_QI_INT): Ditto.
4758 (HI_FTYPE_HI_INT): Ditto.
4759 (SI_FTYPE_SI_INT): Ditto.
4760 (DI_FTYPE_DI_INT): Ditto.
4761 (HI_FTYPE_V16QI_V16QI): Ditto.
4762 (SI_FTYPE_V32QI_V32QI): Ditto.
4763 (DI_FTYPE_V64QI_V64QI): Ditto.
4764 (QI_FTYPE_V8HI_V8HI): Ditto.
4765 (HI_FTYPE_V16HI_V16HI): Ditto.
4766 (SI_FTYPE_V32HI_V32HI): Ditto.
4767 (QI_FTYPE_V4SI_V4SI): Ditto.
4768 (QI_FTYPE_V8SI_V8SI): Ditto.
4769 (QI_FTYPE_V2DI_V2DI): Ditto.
4770 (QI_FTYPE_V4DI_V4DI): Ditto.
4771 (QI_FTYPE_V8DI_V8DI): Ditto.
4772 (HI_FTYPE_V16SI_V16SI): Ditto.
4773 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
4774 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
4775 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
4776 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
4777 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
4778 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
4779 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
4780 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
4781 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
4782 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
4783 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
4784 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
4785 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
4786 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
4787 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
4788 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
4789 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
4790 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
4791 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
4792 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
4793 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
4794 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
4795 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
4796 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
4797 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
4798 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
4799 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
4800 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
4801 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
4802 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
4803 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
4804 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
4805 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
4806 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
4807 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
4808 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
4809 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
4810 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
4811 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
4812 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
4813 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
4814 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
4815 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
4816 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
4817 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
4818 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
4819 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
4820 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
4821 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
4822 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
4823 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
4824 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
4825 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
4826 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
4827 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
4828 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
4829 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
4830 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
4831 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
4832 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
4833 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
4834 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
4835 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
4836 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
4837 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
4838 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
4839 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
4840 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
4841 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
4842 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
4843 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
4844 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
4845 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
4846 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
4847 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
4848 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
4849 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
4850 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
4851 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
4852 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
4853 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
4854 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
4855 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
4856 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
4857 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
4858 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
4859 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
4860 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
4861 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
4862 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
4863 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
4864 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
4865 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
4866 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
4867 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
4868 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
4869 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
4870 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
4871 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
4872 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
4873 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
4874 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
4875 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
4876 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
4877 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
4878 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
4879 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
4880 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
4881 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
4882 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
4883 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
4884 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
4885 (HI_FTYPE_HI): Ditto.
4886 (HI_FTYPE_V16QI): Ditto.
4887 (SI_FTYPE_V32QI): Ditto.
4888 (DI_FTYPE_V64QI): Ditto.
4889 (QI_FTYPE_V8HI): Ditto.
4890 (HI_FTYPE_V16HI): Ditto.
4891 (SI_FTYPE_V32HI): Ditto.
4892 (QI_FTYPE_V4SI): Ditto.
4893 (QI_FTYPE_V8SI): Ditto.
4894 (HI_FTYPE_V16SI): Ditto.
4895 (QI_FTYPE_V2DI): Ditto.
4896 (QI_FTYPE_V4DI): Ditto.
4897 (QI_FTYPE_V8DI): Ditto.
4898 (V16QI_FTYPE_HI): Ditto.
4899 (V32QI_FTYPE_SI): Ditto.
4900 (V64QI_FTYPE_DI): Ditto.
4901 (V8HI_FTYPE_QI): Ditto.
4902 (V16HI_FTYPE_HI): Ditto.
4903 (V32HI_FTYPE_SI): Ditto.
4904 (V4SI_FTYPE_QI): Ditto.
4905 (V4SI_FTYPE_HI): Ditto.
4906 (V8SI_FTYPE_QI): Ditto.
4907 (V8SI_FTYPE_HI): Ditto.
4908 (V2DI_FTYPE_QI): Ditto.
4909 (V4DI_FTYPE_QI): Ditto.
4910 (HI_FTYPE_HI_HI): Ditto.
4911 (SI_FTYPE_SI_SI): Ditto.
4912 (DI_FTYPE_DI_DI): Ditto.
4913 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
4914 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
4915 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
4916 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
4917 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
4918 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
4919 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
4920 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
4921 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
4922 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
4923 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
4924 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
4925 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
4926 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
4927 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
4928 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
4929 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
4930 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
4931 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
4932 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
4933 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
4934 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
4935 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
4936 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
4937 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
4938 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
4939 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
4940 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
4941 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
4942 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
4943 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
4944 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
4945 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
4946 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
4947 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
4948 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
4949 (V16SI_FTYPE_HI): Ditto.
4950 (V8DI_FTYPE_QI): Ditto.
4951 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
4952 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
4953 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
4954 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
4955 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
4956 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
4957 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
4958 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
4959 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
4960 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
4961 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
4962 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
4963 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
4964 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
4965 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
4966 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
4967 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
4968 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
4969 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
4970 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
4971 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
4972 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
4973 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
4974 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
4975 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
4976 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
4977 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
4978 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
4979 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
4980 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
4981 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
4982 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
4983 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
4984 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
4985 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
4986 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
4987 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
4988 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
4989 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
4990 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
4991 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
4992 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
4993 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
4994 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
4995 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
4996 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
4997 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
4998 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
4999 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5000 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5001 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5002 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5003 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
5004 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5005 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5006 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5007 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5008 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5009 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5010 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5011 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5012 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5013 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5014 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5015 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5016 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
5017 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
5018 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
5019 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5020 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
5021 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
5022 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
5023 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
5024 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
5025 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
5026 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
5027 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
5028 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
5029 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
5030 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
5031 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
5032 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
5033 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
5034 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
5035 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
5036 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
5037 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
5038 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
5039 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
5040 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
5041 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
5042 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
5043 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
5044 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
5045 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
5046 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
5047 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
5048 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
5049 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
5050 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
5051 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
5052 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
5053 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
5054 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
5055 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
5056 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
5057 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
5058 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
5059 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
5060 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
5061 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
5062 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
5063 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
5064 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
5065 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
5066 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
5067 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
5068 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
5069 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
5070 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
5071 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
5072 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
5073 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
5074 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
5075 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
5076 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
5077 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
5078 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
5079 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
5080 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
5081 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
5082 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
5083 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
5084 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
5085 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
5086 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
5087 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
5088 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
5089 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
5090 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
5091 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
5092 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
5093 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
5094 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
5095 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
5096 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
5097 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
5098 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
5099 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
5100 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
5101 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
5102 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
5103 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
5104 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
5105 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
5106 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
5107 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
5108 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
5109 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
5110 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
5111 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
5112 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
5113 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
5114 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
5115 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
5116 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
5117 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
5118 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
5119 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
5120 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
5121 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
5122 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
5123 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
5124 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
5125 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
5126 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
5127 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
5128 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
5129 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
5130 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
5131 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
5132 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
5133 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
5134 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
5135 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
5136 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
5137 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
5138 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
5139 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
5140 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
5141 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
5142 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
5143 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
5144 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
5145 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
5146 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
5147 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
5148 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
5149 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
5150 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
5151 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
5152 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
5153 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
5154 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
5155 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
5156 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
5157 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
5158 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
5159 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
5160 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
5161 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
5162 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
5163 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
5164 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
5165 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
5166 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
5167 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
5168 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
5169 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
5170 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
5171 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
5172 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
5173 (QI_FTYPE_V8DF_INT_QI): Ditto.
5174 (QI_FTYPE_V4DF_INT_QI): Ditto.
5175 (QI_FTYPE_V2DF_INT_QI): Ditto.
5176 (HI_FTYPE_V16SF_INT_HI): Ditto.
5177 (QI_FTYPE_V8SF_INT_QI): Ditto.
5178 (QI_FTYPE_V4SF_INT_QI): Ditto.
5179 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
5181 2015-07-31 Richard Biener <rguenther@suse.de>
5183 * gimple-fold.c (fold_gimple_assign): Remove folding of
5186 2015-07-31 Tom de Vries <tom@codesourcery.com>
5188 PR tree-optimization/66846
5189 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5190 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
5191 (expand_omp_target) [ENABLE_CHECKING]: Same.
5192 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
5193 cfun if !LOOPS_NEED_FIXUP.
5194 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
5195 that omp_for already has its own loop struct.
5196 * tree-parloops.c (create_phi_for_local_result)
5197 (create_call_for_reduction): Handle simple latch bb.
5198 (create_parallel_loop): Add simple latch bb to preserve
5199 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
5200 (gen_parallel_loop): Remove call to cancel_loop_tree.
5201 (parallelize_loops): Skip loops that are inner loops of parallelized
5203 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
5204 verify_loop_structure.
5206 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5208 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
5209 * config/v850/v850.md (RV_REGNUM): New constants.
5210 * config/v850/v850.c (v850_libcall_value): New functions.
5211 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
5212 (TARGET_LIBCALL_VALUE): Define.
5214 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5216 * rtl.h (lowpart_subreg): Move in file.
5217 * loop-iv.c (lowpart_subreg): Move to...
5218 * simplify-rtx.c (lowpart_subreg): ...here.
5219 (simplify_binary_operation_1): Use lowpart_subreg instead of
5220 simplify_gen_subreg.
5221 * expr.c (expand_expr_real_2): Ditto.
5222 * emit-rtl.c (gen_lowpart_common): Ditto.
5223 * combine.c (gen_lowpart_for_combine): Ditto.
5224 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
5225 expand_debug_source_expr): Ditto.
5227 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
5229 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
5230 (expand_builtin_atomic_clear): Remove support for atomic_clear
5233 2015-07-30 Richard Biener <rguenther@suse.de>
5235 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
5236 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
5237 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
5238 redundant operand canonicalization.
5240 2015-07-30 David Sherwood <david.sherwood@arm.com>
5242 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
5243 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
5244 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
5245 * config/arm/arm.c (neon_valid_immediate): Likewise.
5246 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
5247 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
5248 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
5249 (expand_vec_perm_vpshufb2_vpermq): Likewise.
5250 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
5251 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5252 * config/i386/sse.md
5253 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
5254 (*ssse3_palignr<mode>_perm): Likewise.
5255 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
5256 * config/spu/spu.c (arith_immediate_p): Likewise.
5257 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5258 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
5260 2015-07-30 Richard Biener <rguenther@suse.de>
5262 * genmatch.c (decision_tree::gen_gimple): Merge with ...
5263 (decision_tree::gen_generic): ... this into ...
5264 (decision_tree::gen): ... this.
5265 (main): Adjust callers.
5267 2015-07-30 Richard Biener <rguenther@suse.de>
5269 * genmatch.c (verbose): New global.
5270 (warning_at): Add overload with source_location.
5271 (capture_info::capture_info): Add bool whether generating gimple
5272 or generic. Add gimple member.
5273 (capture_info::cinfo): Add capture member.
5274 (capture_info::walk_match): Record capture. Warn on
5276 (capture_info::walk_c_expr): Add more fragments captures cannot
5277 escape through. Warn on escaped captures.
5278 (dt_simplify::gen_1): Warn on operands we force to have no
5280 (main): Initialize verbose.
5281 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
5283 2015-07-30 Richard Biener <rguenther@suse.de>
5286 * match.pd: Allow both operands to independently have conversion
5287 when simplifying compares of addresses.
5289 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
5293 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
5294 around those cases that need one.
5296 2015-07-29 Aditya Kumar <hiraditya@msn.com>
5298 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
5300 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
5302 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
5303 New. Copied from config/i386/gnu-user.h.
5304 (ASM_COMMENT_START): Likewise.
5305 (DBX_REGISTER_NUMBER): Likewise.
5307 2015-07-29 Richard Biener <rguenther@suse.de>
5309 * gimple-fold.c (fold_gimple_cond): Remove.
5310 (fold_stmt_1): Do not call it.
5312 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
5314 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
5315 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
5317 * config/aarch64/aarch64-modes.def: Add HFmode.
5319 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5320 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
5322 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
5323 aarch64_promoted_type): New.
5325 (aarch64_float_const_representable_p): Disable HFmode.
5326 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
5327 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
5328 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
5330 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
5331 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
5333 * config/aarch64/iterators.md (GPF_F16): New.
5335 2015-07-29 Richard Biener <rguenther@suse.de>
5337 * match.pd: Merge address comparison patterns and make them
5338 handle some more cases.
5340 2015-07-29 Richard Biener <rguenther@suse.de>
5342 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
5343 (parser::parse_capture): Add bool argument on whether to reject
5345 (parser::parse_expr): Adjust.
5346 (parser::parse_op): Likewise.
5347 (parser::parse_pattern): Likewise.
5349 2015-07-29 Richard Biener <rguenther@suse.de>
5351 * gimple-fold.c (has_use_on_stmt): New function.
5352 (replace_stmt_with_simplification): Use it to allow
5353 abnormals originally referenced in the stmt.
5354 (fold_stmt_1): Canonicalize operand order.
5356 2015-07-28 David Sherwood <david.sherwood@arm.com>
5358 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
5359 GET_MODE_INNER unconditionally.
5360 * config/spu/spu.c (arith_immediate_p): Likewise.
5361 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
5362 * expmed.c (synth_mult): Remove check for VOIDmode result from
5364 (expand_mult_const): Likewise.
5365 * fold-const.c (fold_binary_loc): Replace call to element_precision
5366 with call to GET_MODE_PRECISION.
5367 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
5369 (emit_mode_inner): Likewise.
5370 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
5372 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
5373 (GET_MODE_UNIT_PRECISION): Likewise.
5374 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
5375 * simplify-rtx.c (simplify_immed_subreg): Likewise.
5376 * stor-layout.c (bitwise_type_for_mode): Update assert.
5377 (element_precision): Remove.
5379 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5381 * target-insns.def (reload_load_address): New targetm instruction
5383 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
5385 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5387 * target-insns.def (atomic_test_and_set): New targetm instruction
5389 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
5390 HAVE_*/gen_* interface.
5392 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5394 * target-insns.def (can_extend, ptr_extend): New targetm instruction
5396 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
5397 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5398 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5399 * rtlanal.c (nonzero_bits1): Likewise.
5400 (num_sign_bit_copies1): Likewise.
5402 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5404 * target-insns.def (eh_return): New targetm instruction pattern.
5405 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
5407 * function.c (thread_prologue_and_epilogue_insns): Remove
5408 preprocessor condition.
5410 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5412 * target-insns.def (indirect_jump): New targetm instruction pattern.
5413 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
5416 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5418 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
5419 instead of nonimmediate_operand. Remove C condiition.
5421 2015-07-28 Richard Biener <rguenther@suse.de>
5423 * match.pd: Add more simplification of address comparisons.
5425 2015-07-28 Richard Biener <rguenther@suse.de>
5427 * match.pd: Re-order two cases in comparison with max/min
5428 value simplification to make it apply for bools.
5430 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5432 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
5433 Handle simple SIGN_EXTEND or ZERO_EXTEND.
5434 (aarch64_rtx_costs): Properly strip extend or extract before
5435 passing down to rtx costs again.
5437 2015-07-28 Nick Clifton <nickc@redhat.com>
5439 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
5440 Optimizes the case where -mes0 is active and a constant symbolic
5442 * config/rl78/rl78-protos.h: Prototype the new function.
5443 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
5445 2015-07-28 Tom de Vries <tom@codesourcery.com>
5447 * tree-parloops.c (reduc_stmt_res): New function.
5448 (initialize_reductions, add_field_for_reduction)
5449 (create_phi_for_local_result, create_loads_for_reductions)
5450 (create_stores_for_reduction, build_new_reduction): Handle case that
5451 reduc_stmt is a phi.
5452 (gather_scalar_reductions): Allow double_reduc reductions.
5454 2015-07-28 Richard Biener <rguenther@suse.de>
5456 * fold-const.c (fold_comparison): Remove equality folding
5457 of decl addresses ...
5458 * match.pd: ... here and merge with existing pattern.
5460 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
5462 PR tree-optimization/66828
5463 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
5464 from int64_t to uint64_t.
5466 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
5468 * opts-common.c (read_cmdline_option): List DriverOnly enum values
5469 as valid only in the error message of the driver, not in the
5470 messages of the language compilers.
5472 2015-07-27 Tom de Vries <tom@codesourcery.com>
5474 * tree-parloops.c (gather_scalar_reductions): Simplify function
5477 2015-07-27 Marek Polacek <polacek@redhat.com>
5479 * ipa-devirt.c (types_same_for_odr): Fix typo.
5481 2015-07-27 Jason Merrill <jason@redhat.com>
5484 * dwarf2out.c (gen_inlined_subroutine_die): Check
5485 cgraph_function_possibly_inlined_p.
5487 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5489 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
5490 Place integer variant first.
5491 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5493 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5496 * config/arm/arm-builtins.c (enum arm_builtins):
5497 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
5498 (ARM_BUILTIN_NEON_BASE): Rename macro to....
5499 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
5500 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
5501 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
5503 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5506 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
5507 Add qualifier_lane_index.
5508 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
5509 (arm_getlane_qualifiers): Use qualifier_lane_index.
5510 (arm_lanemac_qualifiers): Rename to...
5511 (arm_mac_n_qualifiers): ...this.
5512 (LANEMAC_QUALIFIERS): Rename to...
5513 (MAC_N_QUALIFIERS): ...this.
5514 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
5515 (arm_setlane_qualifiers): Use qualifier_lane_index.
5516 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
5517 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
5518 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
5519 (arm_expand_neon_builtin): Handle qualifier_lane_index.
5521 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
5522 * config/arm/arm.c (bounds_check): Likewise, improve error message.
5523 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
5524 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
5525 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
5526 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
5527 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
5528 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
5529 qualifiers to TERNOP_IMM.
5530 (vdup_lane): Change qualifiers to GETLANE.
5531 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
5532 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
5533 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
5534 vqdmlsl_n): Change qualifiers to MAC_N.
5536 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
5537 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
5538 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
5539 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
5540 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
5541 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
5542 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
5543 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
5544 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
5545 Remove call to neon_lane_bounds.
5547 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5549 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5550 Place integer variant first.
5552 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
5554 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
5555 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
5556 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
5557 for armv6kz targets.
5558 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
5559 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
5560 (FL_FOR_ARCH6ZK): Remove.
5561 (FL_FOR_ARCH6KZ): New.
5562 (arm_arch6zk): New declaration.
5563 * config/arm/arm-tables.opt: Regenerate.
5564 * config/arm/arm.c (arm_arch6kz): New.
5565 (arm_option_override): Set arm_arch6kz.
5566 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
5567 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
5568 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
5570 2015-07-27 Marek Polacek <polacek@redhat.com>
5574 * doc/invoke.texi: Document -Wtautological-compare.
5576 2015-07-27 Richard Biener <rguenther@suse.de>
5578 * genmatch.c (decision_tree::gen_gimple): Split out large
5579 subtrees into separate functions.
5580 (decision_tree::gen_generic): Likewise.
5582 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
5584 * config/alpha/alpha.c: Use SUBREG_P predicate.
5585 * config/alpha/predicates.md: Ditto.
5587 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5589 * config.host (s390*-*-*): Include driver-native.c only when
5590 building with s390* as host *and* target.
5592 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
5595 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
5596 T bit register modified_between_p check.
5598 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5600 * config/i386/i386.c: Use SUBREG_P predicate.
5601 * config/i386/i386.md: Ditto.
5602 * config/i386/sse.md: Ditto.
5603 * config/i386/predicates.md: Ditto.
5605 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5608 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
5609 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
5611 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5613 * Makefile.in: Remove use of TREEBROWSER.
5614 * config.in: Regenerated.
5615 * configure: Regenerated.
5616 * configure.ac: Remove definition of TREEBROWSER.
5617 * tree-browser.c: Removed.
5618 * tree-browser.def: Removed.
5620 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5622 * graphite-scop-detection.c: Include gimple-pretty-print.h.
5623 (stmt_simple_for_scop_p): Print when a stmt is not handled in
5625 (scopdet_basic_block_info): Print when a loop or bb cannot be
5626 represented in Graphite.
5628 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5631 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
5632 execution guard when min_size is less than size_needed.
5634 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5636 * doc/install.texi: Document supported versions of ISL.
5638 2015-07-25 Jeff Law <law@redhat.com>
5642 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5643 unable to find X NE 0 in the tables, return X as the simplified
5645 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5646 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5648 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5649 after removing the control flow statement and unnecessary edges.
5651 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
5654 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5656 PR rtl-optimization/64164
5657 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5658 * tree-ssa-copyrename.c: Removed.
5659 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5660 -ftree-coalesce-vars.
5661 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5662 * common.opt (ftree-copyrename): Ignore.
5663 (ftree-coalesce-inlined-vars): Likewise.
5664 * doc/invoke.texi: Remove the ignored options above.
5665 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5666 * tree-ssa-coalesce.h: ... here.
5667 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5668 headers required by it.
5669 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5670 across variables when flag_tree_coalesce_vars. Check register
5671 use and promoted modes to allow coalescing. Moved to
5672 tree-ssa-coalesce.c.
5673 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5674 with its member functions to tree-ssa-coalesce.c.
5675 (var_map_base_init): Likewise. Renamed to
5676 compute_samebase_partition_bases.
5677 (partition_view_normal): Drop want_bases parameter.
5678 (partition_view_bitmap): Likewise.
5679 * tree-ssa-live.h: Adjust declarations.
5680 * tree-ssa-coalesce.c: Include explow.h.
5681 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5682 default defs at the entry point.
5683 (dump_part_var_map): New.
5684 (compute_optimized_partition_bases): New, called by...
5685 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5686 of compute_samebase_partition_bases. Adjust.
5687 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5688 * cfgexpand.c (leader_merge): New.
5689 (get_rtl_for_parm_ssa_default_def): New.
5690 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5691 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5692 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5693 redundant MEM attr setting.
5694 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5696 (expand_one_stack_var): ... this. New wrapper to check and
5697 skip already expanded SSA partitions.
5698 (record_alignment_for_reg_var): New, factored out of...
5699 (expand_one_var): ... this.
5700 (expand_one_ssa_partition): New.
5701 (adjust_one_expanded_partition_var): New.
5702 (expand_one_register_var): Check and skip already expanded SSA
5704 (expand_used_vars): Don't create DECLs for anonymous SSA
5705 names. Expand all SSA partitions, then adjust all SSA names.
5706 (pass::execute): Replace the loops that set
5707 SA.partition_to_pseudo from partition leaders and cleared
5708 DECL_RTL for multi-location variables, and that which used to
5709 rename vars and set attrs, with one that clears DECL_RTL and
5710 checks that PARMs and RESULTs default_defs match DECL_RTL.
5711 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5712 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5713 * explow.c (promote_ssa_mode): New.
5714 * explow.h (promote_ssa_mode): Declare.
5715 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5716 * function.c: Include cfgexpand.h.
5717 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5718 (use_register_for_parm_decl): Wrapper for the above to
5719 special-case the result_ptr.
5720 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5721 (split_complex_args): Take assign_parm_data_all argument.
5722 Pass it to rtl_for_parm. Set up rtl and context for split
5724 (assign_parms_augmented_arg_list): Adjust.
5725 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5726 multiple locations. Recognize split complex args.
5727 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5728 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5729 (assign_parm_setup_block): Prefer SSA-assigned location.
5730 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5731 if stack_parm is NULL.
5732 (assign_parm_setup_stack): Prefer SSA-assigned location.
5733 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5734 rtl before testing for pointer bounds. Special-case result_ptr.
5735 (expand_function_start): Maybe reset DECL_RTL of result.
5736 Prefer SSA-assigned location for result and static chain.
5737 Factor out DECL_RESULT and SET_DECL_RTL.
5738 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5739 anonymous SSA names. Use promote_ssa_mode.
5740 (get_temp_reg): Likewise.
5741 (remove_ssa_form): Adjust.
5742 * stor-layout.c (layout_decl): Don't set mem attributes of
5744 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5745 and get its reg_usage for reg invalidation.
5746 (compute_bb_dataflow): Pass it insn.
5747 (emit_notes_in_bb): Likewise.
5749 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5751 * config/i386/i386.c (ix86_va_start): Remove
5752 unneeded !TARGET_64BIT check.
5753 (ix86_gimplify_va_arg): Ditto.
5755 2015-07-24 Tom de Vries <tom@codesourcery.com>
5757 * graphite-sese-to-poly.c (build_poly_scop): Always call
5758 rewrite_commutative_reductions_out_of_ssa.
5760 2015-07-24 Tom de Vries <tom@codesourcery.com>
5762 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
5763 flag_associative_math to FLOAT_TYPE_P. Honour
5764 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
5766 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5769 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
5770 and "%qD" in warning_at instead of "%q+D" in warning.
5772 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5774 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
5775 (ix86_function_abi): Cleanup.
5777 2015-07-24 Michael Darling <darlingm@gmail.com>
5780 * acinclude.m4: Reflects renaming of configure.in to configure.ac
5781 * configure: Likewise
5782 * configure.ac: Likewise
5783 * doc/install.texi: Likewise
5784 * doc/tm.texi: Likewise
5785 * doc/tm.texi.in: Likewise
5787 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5789 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
5790 manually swapping values.
5791 * cse.c (fold_rtx): Likewise.
5792 * lra-eliminations.c (form_sum): Likewise.
5794 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5797 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
5798 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
5799 (*jcc_1, *jcc_2, jump, simple_return_internal)
5800 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
5801 Set length_nobnd attribute instead of length attribute.
5802 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
5803 (length_nobnd): Remove attribute.
5804 (length): Remove length_nobnd processing.
5806 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
5808 * gimplify.c (omp_default_clause): New function. Reorganize flow
5809 for clarity. Broken out of ...
5810 (omp_notice_variable): ... here.
5812 2015-07-24 Gary Funck <gary@intrepid.com>
5815 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
5816 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
5818 2015-07-24 Tom de Vries <tom@codesourcery.com>
5820 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
5821 exit-first loop transform.
5823 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5826 * tree-cfg.c (struct replace_decls_d): New struct.
5827 (replace_block_vars_by_duplicates_1): New function.
5828 (replace_block_vars_by_duplicates): Use it to replace the decls
5829 in the value exprs by duplicates.
5831 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5833 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
5834 -shared, -symbolic, -rdynamic.
5836 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5839 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
5840 -dynamic-linker within %{!static %{!shared, and -rdynamic within
5843 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5846 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
5847 edge summary is available.
5849 2015-07-24 Richard Biener <rguenther@suse.de>
5851 * genmatch.c (struct dt_node): Add statistic fields.
5852 (dt_node::analyze): New method.
5853 (decision_tree::gen_gimple): Call analyze on the root node
5854 and print statistics to stderr.
5855 (decision_tree::gen_generic): Likewise.
5857 2015-07-24 Richard Biener <rguenther@suse.de>
5859 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
5860 against the highest or lowest possible integer ...
5861 * match.pd: ... as patterns here.
5863 2015-07-24 Richard Biener <rguenther@suse.de>
5865 * genmatch.c (struct capture_info): Add same_as field.
5866 (capture_info::capture_info): Initialize same_as.
5867 (capture_info::walk_match): Compute same_as.
5868 (capture_info::walk_result): Compute stuff for the leader.
5869 (capture_info::walk_c_expr): Likewise.
5870 (dt_simplify::gen_1): Only look at leaders when deciding
5871 to force no side-effects or emit side-effects of omitted operands.
5873 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5875 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
5876 reg note to the GPR -> FPR save instructions.
5878 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5880 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
5882 (s390_expand_insv): Don't generate risbg pattern for constant zero
5884 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
5885 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
5888 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5890 * config/s390/s390.c (s390_reorg): Clean up handling of processors
5893 (s390_issue_rate): Likewise.
5894 (s390_sched_reorder): Likewise.
5895 (s390_sched_variable_issue): Likewise.
5896 (s390_loop_unroll_adjust): Likewise.
5897 (s390_option_override): Likewise.
5899 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5901 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
5902 processor capabilities with -march=native.
5903 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
5904 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
5905 (S390_TARGET_BITS_STRING): Macro to simplify specs.
5907 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5909 * config/s390/s390.c (s390_issue_rate): Handle
5910 PROCESSOR_2094_Z9_EC.
5911 (s390_option_override): Likewise.
5912 (s390_adjust_priority): Likewise.
5914 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5916 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
5917 when cross compiling.
5919 2015-07-24 Richard Biener <rguenther@suse.de>
5921 * fold-const.c (maybe_canonicalize_comparison_1): Move
5922 A code CST canonicalization ...
5923 * match.pd: ... to a pattern here.
5925 2015-07-24 Jiong Wang <jiong.wang@arm.com>
5928 2015-07-22 Jiong Wang <jiong.wang@arm.com>
5930 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
5931 (HONOR_REG_ALLOC_ORDER): Define.
5933 2015-07-24 Richard Biener <rguenther@suse.de>
5935 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
5936 * fold-const.c (fold_comparison): Move parameter does not
5937 alias &local simplification ...
5938 * match.pd: ... as a pattern here.
5940 2015-07-24 Richard Biener <rguenther@suse.de>
5942 * gimple-fold.c (replace_stmt_with_simplification): Special-case
5943 valueizing call operands.
5944 * gimple-match-head.c (maybe_push_res_to_seq): Take
5945 number of call arguments from ops array.
5946 (do_valueize): New function.
5947 (gimple_simplify): Return true if valueization changed
5948 any operand even if the result didn't simplify further.
5950 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5953 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
5955 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5958 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
5960 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5962 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
5965 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5967 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
5970 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
5972 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
5973 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
5975 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
5976 ms_va_list_type_node initialization.
5978 2015-07-23 Jeff Law <law@redhat.com>
5981 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5982 unable to find X NE 0 in the tables, return X as the simplified
5984 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5985 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5987 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5988 after removing the control flow statement and unnecessary edges.
5990 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
5992 * tree-pass.h (get_current_pass_name): Removed.
5994 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5996 PR rtl-optimization/64164
5997 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5998 * tree-ssa-copyrename.c: Removed.
5999 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6000 -ftree-coalesce-vars.
6001 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6002 * common.opt (ftree-copyrename): Ignore.
6003 (ftree-coalesce-inlined-vars): Likewise.
6004 * doc/invoke.texi: Remove the ignored options above.
6005 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6006 * tree-ssa-coalesce.h: ... here.
6007 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6008 headers required by it.
6009 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6010 across variables when flag_tree_coalesce_vars. Check register
6011 use and promoted modes to allow coalescing. Moved to
6012 tree-ssa-coalesce.c.
6013 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6014 with its member functions to tree-ssa-coalesce.c.
6015 (var_map_base_init): Likewise. Renamed to
6016 compute_samebase_partition_bases.
6017 (partition_view_normal): Drop want_bases parameter.
6018 (partition_view_bitmap): Likewise.
6019 * tree-ssa-live.h: Adjust declarations.
6020 * tree-ssa-coalesce.c: Include explow.h.
6021 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6022 default defs at the entry point.
6023 (dump_part_var_map): New.
6024 (compute_optimized_partition_bases): New, called by...
6025 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6026 of compute_samebase_partition_bases. Adjust.
6027 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6028 * cfgexpand.c (leader_merge): New.
6029 (get_rtl_for_parm_ssa_default_def): New.
6030 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6031 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6032 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6033 redundant MEM attr setting.
6034 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6036 (expand_one_stack_var): ... this. New wrapper to check and
6037 skip already expanded SSA partitions.
6038 (record_alignment_for_reg_var): New, factored out of...
6039 (expand_one_var): ... this.
6040 (expand_one_ssa_partition): New.
6041 (adjust_one_expanded_partition_var): New.
6042 (expand_one_register_var): Check and skip already expanded SSA
6044 (expand_used_vars): Don't create DECLs for anonymous SSA
6045 names. Expand all SSA partitions, then adjust all SSA names.
6046 (pass::execute): Replace the loops that set
6047 SA.partition_to_pseudo from partition leaders and cleared
6048 DECL_RTL for multi-location variables, and that which used to
6049 rename vars and set attrs, with one that clears DECL_RTL and
6050 checks that PARMs and RESULTs default_defs match DECL_RTL.
6051 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6052 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6053 * explow.c (promote_ssa_mode): New.
6054 * explow.h (promote_ssa_mode): Declare.
6055 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6056 * function.c: Include cfgexpand.h.
6057 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6058 (use_register_for_parm_decl): Wrapper for the above to
6059 special-case the result_ptr.
6060 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6061 (split_complex_args): Take assign_parm_data_all argument.
6062 Pass it to rtl_for_parm. Set up rtl and context for split
6064 (assign_parms_augmented_arg_list): Adjust.
6065 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6066 multiple locations. Recognize split complex args.
6067 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6068 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6069 (assign_parm_setup_block): Prefer SSA-assigned location.
6070 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6071 if stack_parm is NULL.
6072 (assign_parm_setup_stack): Prefer SSA-assigned location.
6073 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6074 rtl before testing for pointer bounds. Special-case result_ptr.
6075 (expand_function_start): Maybe reset DECL_RTL of result.
6076 Prefer SSA-assigned location for result and static chain.
6077 Factor out DECL_RESULT and SET_DECL_RTL.
6078 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6079 anonymous SSA names. Use promote_ssa_mode.
6080 (get_temp_reg): Likewise.
6081 (remove_ssa_form): Adjust.
6082 * stor-layout.c (layout_decl): Don't set mem attributes of
6084 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6085 and get its reg_usage for reg invalidation.
6086 (compute_bb_dataflow): Pass it insn.
6087 (emit_notes_in_bb): Likewise.
6089 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
6092 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
6094 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
6095 (rs6000_emit_2insn_and): Handle dot forms.
6096 * config/rs6000/rs6000.md (and<mode>3): Adjust.
6097 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
6098 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
6100 2015-07-23 Richard Biener <rguenther@suse.de>
6102 * generic-match-head.c: Include cgraph.h.
6103 * gimple-match-head.c: Likewise.
6104 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
6106 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
6107 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
6110 2015-07-23 Richard Biener <rguenther@suse.de>
6112 * gimple-fold.c (fold_gimple_cond): Do not require folding
6113 results to pass valid_gimple_rhs_p.
6114 * tree-cfg.h (fold_cond_expr_cond): Remove.
6115 * tree-cfg.c (fold_cond_expr_cond): Likewise.
6116 (make_edges): Do not call it.
6117 * tree-inline.c (tree_function_versioning): Likewise.
6119 2015-07-23 Tom de Vries <tom@codesourcery.com>
6121 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
6122 vect_force_simple_reduction.
6123 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
6124 (vect_is_simple_reduction_1): Add and handle
6125 need_wrapping_integral_overflow parameter.
6126 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
6127 need_wrapping_integral_overflow parameter.
6128 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
6129 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
6132 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
6134 PR tree-optimization/66926,66951
6135 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
6136 INNER_LOOP and fix up condition for renaming virtual operands.
6138 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6140 * combine.c (try_combine): Use std::swap instead of manually
6143 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
6145 * config/mips/i6400.md: New file.
6146 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
6147 (mips64r6): Likewise.
6149 * config/mips/mips-tables.opt: Regenerate.
6150 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
6151 (mips_issue_rate): Add support for i6400.
6152 (mips_multipass_dfa_lookahead): Likewise.
6153 * config/mips/mips.h (TUNE_I6400): Define.
6154 * config/mips/mips.md: Include i6400.md.
6155 (processor): Add i6400.
6156 * doc/invoke.texi (-march=@var{arch}): Add i6400.
6158 2015-07-23 Richard Biener <rguenther@suse.de>
6161 * match.pd: Guard widen and sign-change comparison simplification
6164 2015-07-23 Richard Biener <rguenther@suse.de>
6166 PR tree-optimization/66945
6167 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
6168 ::before_dom_children): Force the propagators idea of
6169 non-executable edges to materialize, not what the folder
6172 2015-07-23 Richard Biener <rguenther@suse.de>
6174 * gimple.h (gimple_cond_make_false): Use 0 != 0.
6175 (gimple_cond_make_true): Use 1 != 0.
6177 2015-07-22 DJ Delorie <dj@redhat.com>
6179 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
6182 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
6183 (ashrhi3): Likewise.
6184 (lshrhi3): Likewise.
6185 (movhi): Take advantage of zero-extend to load small constants.
6187 (and<mode>3): Likewise.
6188 (zero_extendqihi2): Likewise.
6189 (zero_extendqisi2): New.
6190 * config/msp430/constraints.md (N,O): New.
6191 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
6193 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
6196 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
6197 to enum feature_priority and feature_list.
6198 (fold_builtin_cpu): Add F_AES to enum processor_features
6199 and isa_names_table.
6201 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
6204 * config/i386/linux-common.h (MPX_SPEC): Use linker option
6205 for 64bit target only.
6207 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
6209 * config/nvptx/nvptx.c: Expand some comments.
6211 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
6213 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
6214 (cortex_a53_advsimd): ...This.
6216 2015-07-22 Richard Biener <rguenther@suse.de>
6218 * genmatch.c (expr::gen_transform): Clarify error message
6219 and display location.
6221 2015-07-22 Richard Biener <rguenther@suse.de>
6223 * genmatch.c (struct operand): Add location member.
6224 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
6226 (struct simplify): Remove match_location and result_location
6228 (elsehwere): Adjust.
6230 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
6232 * config/mips/m5100.md: New file.
6233 * config/mips/mips-cpus.def (m5100, m5101): Define.
6234 * config/mips/mips-tables.opt: Regenerate.
6235 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
6236 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
6237 -march=m5101 to -mips32r5.
6238 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
6239 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
6241 * config/mips/mips.md: Include m5100.md.
6242 (processor): Add m5100.
6243 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
6245 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
6247 * config/mips/mips-cpus.def (interaptiv): Define.
6248 * config/mips/mips-tables.opt: Regenerate.
6249 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
6251 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
6252 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
6254 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6257 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6258 (HONOR_REG_ALLOC_ORDER): Define.
6260 2015-07-22 Richard Biener <rguenther@suse.de>
6262 PR tree-optimization/66952
6263 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
6264 blocks we end up executing unconditionally reset all SSA
6265 info such as range and alignment.
6266 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
6267 * tree-ssanames.c (reset_flow_sensitive_info): New function.
6269 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6271 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
6274 2015-07-22 Richard Biener <rguenther@suse.de>
6276 * genmatch.c (parser::parse_result): Properly handle
6277 match with result operands and conditions.
6279 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6282 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6283 Add qualifier_struct_load_store_lane_index.
6284 (aarch64_types_loadstruct_lane_qualifiers): Use
6285 qualifier_struct_load_store_lane_index for lane index argument for
6287 (aarch64_types_storestruct_lane_qualifiers): Ditto.
6288 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6289 (aarch64_simd_expand_args): Add new argument describing mode of
6290 builtin. Check lane bounds for arguments with
6291 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6292 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
6293 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6294 (aarch64_simd_expand_builtin): Handle arguments with
6295 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
6296 aarch64_simd_expand_args.
6297 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
6298 vst[234]_lane with BUILTIN_VALLDIF.
6299 * config/aarch64/aarch64-simd.md:
6300 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
6301 endianness reversal on lane index.
6302 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
6303 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
6304 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
6305 (vec_store_lanesci_lane<mode>): Ditto.
6306 (vec_store_lanesxi_lane<mode>): Ditto.
6307 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
6308 reversal of lane index.
6309 (aarch64_ld3_lane<mode>): Ditto.
6310 (aarch64_ld4_lane<mode>): Ditto.
6311 (aarch64_st2_lane<mode>): Ditto.
6312 (aarch64_st3_lane<mode>): Ditto.
6313 (aarch64_st4_lane<mode>): Ditto.
6314 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
6315 to qmode. Add new mode parameter. Update uses.
6316 (__LD3_LANE_FUNC): Ditto.
6317 (__LD4_LANE_FUNC): Ditto.
6318 (__ST2_LANE_FUNC): Ditto.
6319 (__ST3_LANE_FUNC): Ditto.
6320 (__ST4_LANE_FUNC): Ditto.
6322 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
6324 * doc/invoke.texi (Language Independent Options): Rename node to
6325 Diagnostic Message Formatting Options.
6327 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
6330 * lra-remat.c (operand_to_remat): Prevent using insns with input
6331 subregs processed separately by IRA.
6333 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
6335 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
6337 (single_imm_use): Check for iterator node.
6338 (num_imm_uses): Likewise.
6339 * tree-ssa-operands.c (has_zero_uses_1): Delete.
6340 (single_imm_use_1): Check for iterator node.
6342 2015-07-21 Mike Frysinger <vapier@gentoo.org>
6343 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6345 * configure.ac: Add check for new options in isl-0.15.
6346 * config.in, configure: Rebuilt.
6347 * graphite-blocking.c: Include <isl/constraint.h>
6348 * graphite-interchange.c, graphite-poly.c: Likewise.
6349 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
6350 * graphite.c: Likewise.
6351 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
6353 * graphite-dependences.c: Include <isl/constraint.h>.
6354 (max_number_of_out_dimensions): Returns isl_stat.
6355 (extend_schedule_1): Likewise
6356 (extend_schedule): Corresponding changes.
6357 * graphite-optimize-isl.c: Include <isl/constraint.h> and
6359 (getSingleMap): Change return type of isl_stat.
6360 (optimize_isl): Conditionally use
6361 isl_options_set_schedule_serialize_sccs.
6362 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
6363 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
6365 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
6368 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
6369 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
6371 2015-07-21 Richard Biener <rguenther@suse.de>
6373 PR tree-optimization/66948
6374 * genmatch.c (capture_info::walk_match): Also recurse to
6375 captures. Properly compute expr state from captures of
6377 * match.pd: Add single-use guards to
6378 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
6380 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6382 * config/nvptx/mkoffload.c (process): Add static destructor call.
6384 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6387 * match.pd (A - B -> A + (-B)): Don't allow folding
6388 when type if a fixed-point type.
6390 2015-07-20 DJ Delorie <dj@redhat.com>
6392 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
6393 (iorqi3_real): Likewise for set1.
6395 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
6397 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
6400 2015-07-20 Aditya Kumar <hiraditya@msn.com>
6402 * graphite-isl-ast-to-gimple.c:
6403 Refactor so that each function can access 'region'. This will help
6404 maintain a parameter rename_map within a region.
6406 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6408 * config/rs6000/rs6000.md (*lt0_disi): New.
6410 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6413 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
6414 "available letters" comment.
6415 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
6416 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
6417 and_2rld_operand): Delete.
6418 (and_operand): Adjust.
6419 (rotate_mask_operator): New.
6420 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
6421 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
6422 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
6423 extract_ME): Delete.
6424 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6425 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
6426 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
6427 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6428 rs6000_emit_2insn_and): New.
6429 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
6430 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
6431 includes_rldic_lshift_p, includes_rldicr_lshift_p,
6432 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
6433 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6434 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
6435 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
6436 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6437 rs6000_emit_2insn_and): New.
6438 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
6439 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
6441 <NOT>: Don't fall through to next case.
6442 <AND>: Handle the various rotate-and-mask cases directly.
6443 <IOR>: Always cost as one insn.
6444 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
6445 (and<mode>3): Adjust expander for the new patterns.
6446 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
6447 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
6448 (*and<mode>3_imm_dot_shifted): New.
6449 (*and<mode>3_mask): Delete, rewrite as ...
6450 (and<mode>3_mask): ... New.
6451 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
6452 (andsi3_internal0_nomc): Delete.
6453 (*andsi3_internal6): Delete.
6454 (*and<mode>3_2insn): New.
6455 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
6456 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
6457 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
6458 *insvdi_internal3): Delete.
6459 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
6460 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
6461 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
6462 *ior<mode>_mask): New.
6463 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
6464 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6465 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6466 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6468 (ashr<mode>3): Delete expander.
6469 (*ashr<mode>3): Rename to ...
6470 (ashr<mode>3): ... This.
6471 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
6472 (*rotldi3_internal4, *rotldi3_internal5 and split,
6473 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
6474 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
6475 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
6476 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
6477 (splitter for loading a mask): Adjust.
6478 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
6480 2015-07-20 Marek Polacek <polacek@redhat.com>
6482 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
6483 output_add_clobbers, output_added_clobbers_hard_reg_p,
6484 gen_rtx_scratch): Remove declarations.
6486 2015-07-20 Marek Polacek <polacek@redhat.com>
6489 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
6491 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6493 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
6494 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
6496 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6498 * combine.c (combine_simplify_rtx): Move simplification step
6499 before various transformations/substitutions.
6501 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
6503 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
6504 (struct int_traits): Likewise.
6506 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6508 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
6509 function to vmsdbgout_function_decl.
6511 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6514 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
6515 from misaligned positions.
6516 (ix86_expand_pinsr): Reject insertions to misaligned positions.
6518 2015-07-18 Sebastian Pop <s.pop@samsung.com>
6522 * Makefile.in: Removed omega.o.
6523 * common.opt: Document flag fcheck-data-deps as deprecated.
6524 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
6525 its associated params: omega-max-vars, omega-max-geqs,
6526 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
6527 omega-max-keys, omega-eliminate-redundant-constraints.
6528 * doc/loop.texi: Remove all the section on Omega.
6529 * graphite-blocking.c: Include missing params.h: it used to be
6530 included through tree-data-ref.h and omega.h.
6531 * graphite-isl-ast-to-gimple.c: Same.
6532 * graphite-optimize-isl.c: Same.
6533 * graphite-sese-to-poly.c: Same.
6537 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
6538 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
6539 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
6540 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
6541 * passes.def: Remove pass_check_data_deps.
6542 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
6543 (dump_conflict_function): Same.
6544 (dump_subscript): Same.
6545 (print_direction_vector): Same.
6546 (print_dir_vectors): Same.
6547 (print_lambda_vector): Same.
6548 (print_dist_vectors): Same.
6549 (dump_data_dependence_relation): Same.
6550 (dump_data_dependence_relations): Same.
6551 (dump_dist_dir_vectors): Same.
6553 (init_omega_eq_with_af): Removed.
6554 (omega_extract_distance_vectors): Removed.
6555 (omega_setup_subscript): Removed.
6556 (init_omega_for_ddr_1): Removed.
6557 (init_omega_for_ddr): Removed.
6558 (ddr_consistent_p): Removed.
6559 (compute_affine_dependence): Do not use omega to check data
6561 (compute_data_dependences_for_bb): Removed.
6562 (analyze_all_data_dependences): Removed.
6563 (tree_check_data_deps): Removed.
6564 * tree-data-ref.h: Do not include omega.h.
6565 (compute_data_dependences_for_bb): Removed.
6566 (tree_check_data_deps): Removed.
6567 * tree-ssa-loop.c (pass_check_data_deps): Removed.
6568 (make_pass_check_data_deps): Removed.
6569 * tree-ssa-phiopt.c: Include params.h.
6570 * tree-vect-data-refs.c: Same.
6571 * tree-vect-slp.c: Same.
6573 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6575 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
6576 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
6577 (mem->fpreg splitters): Ditto.
6578 (general_operand->nonimmediate_operand splitter): Use explicit modes.
6579 Disable DFmode for TARGET_64BIT.
6581 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
6584 * config/i386/i386.c (ix86_expand_prologue): Replicate static
6587 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6589 * config/nvptx/mkoffload.c (process): Constify host data.
6590 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6592 (generate_host_descr_file): Likewise.
6594 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
6595 Sebastian Pop <s.pop@samsung.com>
6598 * graphite-dependences.c (add_pdr_constraints): Renamed
6599 pdr->extent to pdr->subscript_sizes.
6600 * graphite-interchange.c (build_linearized_memory_access): Add
6601 back all gcc_assert's that the "isl_int to isl_val conversion"
6602 patch has removed. Refactored.
6603 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
6604 * graphite-poly.c (new_poly_dr): Same.
6605 (free_poly_dr): Same.
6606 * graphite-poly.h (struct poly_dr): Same.
6607 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
6608 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
6609 * graphite-scop-detection.h: Fix space.
6610 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
6611 back all gcc_assert's removed by a previous patch.
6612 (wrap): Remove the_isl_ctx global variable that the same patch has
6614 (build_loop_iteration_domains): Same.
6615 (add_param_constraints): Same.
6616 (pdr_add_data_dimensions): Same. Refactored.
6617 (build_poly_dr): Renamed extent to subscript_sizes.
6619 2015-07-17 Marek Polacek <polacek@redhat.com>
6621 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
6622 * match.pd: ... here.
6624 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6626 * config/nvptx/mkoffload.c (process): Constify target data.
6627 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6628 Constify target data.
6629 (generate_target_offloadend_file): Likewise.
6631 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
6633 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
6634 to allow renaming of PHI arguments on edges incoming from outer
6635 loop header, add corresponding check before start PHI iterator.
6636 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
6637 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
6638 with true force_vectorize. Set-up dominator for outer loop too.
6639 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
6640 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
6641 was marked with force_vectorize and has restricted cfg.
6642 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
6644 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
6645 do peeling for outer loops.
6647 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
6648 Matthias Klose <doko@ubuntu.com>
6650 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
6651 build-sysroot, sysroot from the `Miscenalleous configure options' to
6652 the `Directories' section and strip trailing `/' from with_sysroot.
6653 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
6654 * configure: Regenerated.
6656 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6659 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
6660 (TARGET_HARD_DF_REGS): Ditto.
6661 (TARGET_HARD_XF_REGS): Ditto.
6662 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
6663 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
6664 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
6665 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
6666 (*movsf_internal): Add alternatives 16 and 17. Enable
6667 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
6669 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6671 PR rtl-optimization/66891
6672 * calls.c (expand_call): Wrap precompute_register_parameters with
6673 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
6675 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6677 * config/nvptx/mkoffload.c (process): Constify mapping variables.
6678 Define target data struct and initialize it.
6680 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
6682 PR rtl-optimization/66626
6683 * ira.h (emit-rtl.h): Include.
6684 (non_spilled_static_chain_regno_p): New.
6685 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
6686 unless it is non spilled static chain pseudo.
6687 (assign_hard_rego): Spill memory profitable allocno unless it is
6688 non spilled static chain pseudo.
6689 (allocno_spill_priority_compare): Put non spilled static chain
6690 pseudo at the end of sorted array.
6691 (improve_allocation): Do nothing if we have static chain and
6693 (allocno__priority_compare_func): Put non spilled static chain
6694 pseudo at the beginning of sorted array.
6695 (move_spill_restore): Ignore non spilled static chain pseudo.
6696 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
6697 to non spilled static chain pseudo.
6698 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
6699 pseudo at the beginning of sorted array.
6700 (spill_for): Spill non spilled static chain pseudo last.
6701 * lra-constraints.c (lra_constraints): Remove static chain pseudo
6702 check for equivalence.
6704 2015-07-16 Martin Liska <mliska@suse.cz>
6707 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
6708 dst_ctx if it does not exist.
6710 2015-07-16 Martin Liska <mliska@suse.cz>
6712 * hash-set.h (remove): New function.
6713 (iterator): New iteration class for hash_set.
6715 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6717 * genattrtab.c (make_canonical): Add a file_location parameter.
6718 Use fatal_at rather than fatal.
6719 (get_attr_value): Likewise. Update call to make_canonical.
6720 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
6721 (make_internal_attr): Update calls accordingly.
6723 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6725 * read-md.h (message_with_line, error_with_line): Delete.
6726 * read-md.c (message_with_line, error_with_line): Delete.
6727 * gensupport.h: Include read-md.h.
6728 (md_rtx_info): New structure.
6729 (read_md_rtx): Use it. Return a bool success value.
6730 * gensupport.c (read_md_rtx): Likewise.
6731 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
6732 (main): Update after interface changes.
6733 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
6734 (main): Update after interface changes.
6735 * genattrtab.c (insn_code_number): Delete.
6736 (optimize_attrs): Add a max_insn_code parameter and use it instead
6737 of insn_code_number.
6738 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
6739 Use *_at rather than *_with_line functions.
6740 (gen_insn): Likewise.
6741 (gen_delay): Likewise.
6742 (gen_insn_reserv): Likewise.
6743 (gen_bypass): Take an md_rtx_info rather than an rtx.
6744 (main): Update after interface changes. Use a local max_insn_code
6745 variable instead of insn_code_number.
6746 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
6747 an rtx. Use fatal_at rather than fatal.
6748 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
6749 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
6750 (gen_absence_set, gen_final_absence_set, gen_automaton)
6751 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
6752 (main): Update after interface changes.
6753 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
6755 (main): Update after interface changes.
6756 * genconditions.c (main): Use new read_md_rtx interface.
6757 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
6758 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
6759 (main): Update after interface changes.
6760 * genemit.c (insn_code_number, insn_index_number): Delete.
6761 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6762 Use fatal_at rather than fatal.
6763 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
6765 (gen_split): Likewise.
6766 (main): Update after interface changes.
6767 * genextract.c (line_no): Delete.
6768 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6769 Update call to walk_rtx.
6770 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
6771 rather than message_with_line.
6772 (walk_rtx): Add an md_rtx_info argument. Update call to
6773 VEC_safe_set_locstr.
6774 (main): Update after interface changes.
6775 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
6776 and lineno. Use error_at rather than separate message_with_line
6777 calls and have_error assignments.
6778 (main): Update after interface changes.
6779 * genmddump.c (main): Use new read_md_rtx interface.
6780 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
6781 (main): Update after interface changes.
6782 * genoutput.c (next_code_number): Delete.
6783 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6784 (gen_peephole, gen_expand, gen_split): Likewise.
6785 (note_constraint): Likewise. Use *_at rather than *_with_line
6787 (main): Update after interface changes.
6788 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
6790 (main): Update after interface changes.
6791 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
6792 than an rtx and lineno.
6793 (process_define_constraint): Likewise.
6794 (process_define_register_constraint): Likewise.
6795 (main): Update after interface changes.
6796 * genrecog.c (next_insn_code, pattern_lineno): Delete.
6797 (validate_pattern): Replace top-level rtx with an md_rtx_info.
6798 Use *_at rather than *_with_line functions.
6799 (match_pattern_2): Likewise.
6800 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
6801 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
6802 Use *_at rather than *_with_line functions.
6803 * gentarget-def.c (add_insn): New function.
6804 (main): Use it. Use new read_md_rtx interface.
6806 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6808 * gensupport.h (compute_test_codes): Take a file_location rather
6810 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
6811 rather than *_with_line functions.
6812 (process_define_predicate): Update call to compute_test_codes.
6813 * genpreds.c (validate_exp): Take a file_location rather than a
6814 line number. Use *_at functions rather than *_with_line functions.
6815 (process_define_predicate): Update call to validate_exp.
6816 (constraint_data): Replace lineno field with a file_location.
6817 (add_constraint): Take a file_location rather than a line number.
6818 Use *_at functions rather than *_with_line functions. Fix error
6819 message for address constraints. Update after changes to
6820 validate_exp, constraint_data and compute_test_codes.
6821 (process_define_constraint): Update accordingly.
6822 (process_define_register_constraint): Likewise.
6824 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6826 * genoutput.c (data): Use a file_location to record the source
6829 (idata, idata_end): Remove initialization.
6830 (constraint_data): Replace lineno with a file_location.
6831 (output_insn_data): Update after changes to data.
6832 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
6833 (scan_operands): Likewise, using *_at rather than *_with_line
6835 (process_template): Likewise.
6836 (validate_insn_alternatives): Likewise.
6837 (validate_insn_operands): Likewise.
6838 (validate_optab_operands): Likewise.
6839 (init_insn_for_nothing): Initialize idata and idata_end.
6840 (note_constraint): Update after changes to constraint_data,
6841 using at rather than with_line functions.
6842 (mdep_constraint_len): Take a file_location rather than a
6843 line number. Use at rather than with_line functions.
6845 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6847 * read-md.h (fatal_at): Declare.
6848 * read-md.c (fatal_at): New function.
6849 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
6850 to record the source position.
6851 (check_attr_test): Take a file_location instead of a line number.
6852 Use fatal_at instead of fatal.
6853 (check_attr_value): Update after above changes, using "at"
6854 rather than "with_line" reporting functions.
6855 (convert_set_attr_alternative): Likewise.
6856 (gen_attr): Likewise.
6857 (check_defs): Likewise. Don't assign to read_md_filename.
6858 (gen_insn): Update initialization after above changes.
6859 (gen_delay): Likewise.
6860 (write_insn_cases): Print the filename for a define_peephole.
6861 (gen_insn_reserv): Take a line number as argument and update
6862 the call to check_attr_test.
6863 (main): Pass a line number to gen_insn_reserv.
6865 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6867 * read-md.h (file_location): New structure.
6868 (directive_handler_t): Take a file_location rather than a line number.
6869 (message_at, error_at): Declare.
6870 (read_skip_construct): Delete.
6871 * read-md.c (message_with_line_1): Replace with...
6872 (message_at_1): ...this new function.
6873 (message_at, error_at): New functions.
6874 (message_with_line, error_with_line): Update to use message_at_1.
6875 (handle_enum): Take a file_location rather than a line number
6876 and use error_at for error reporting.
6877 (handle_include): Likewise.
6878 (read_skip_construct): Likewise. Make static.
6879 (handle_file): Update after above changes. Pass a file_location
6880 rather than a line number to handle_directive.
6881 * gensupport.c (queue_elem): Replace separate filename and lineno
6882 with a file_location.
6883 (queue_pattern): Replace filename and lineno arguments with a
6884 file_location. Update after change to queue_elem.
6885 (process_define_predicate): Replace lineno argument with a
6886 file_location and use error_at for error reporting. Update
6887 after above changes.
6888 (process_rtx): Likewise.
6889 (subst_pattern_match): Likewise.
6890 (get_alternatives_number): Likewise.
6891 (alter_predicate_for_insn): Likewise.
6892 (rtx_handle_directive): Likewise.
6893 (is_predicable): Update after above changes, using error_at rather
6894 than error_with_line.
6895 (has_subst_attribute): Likewise.
6896 (identify_predicable_attribute): Likewise.
6897 (alter_attrs_for_subst_insn): Likewise.
6898 (process_one_cond_exec): Likewise.
6899 (process_substs_on_one_elem): Likewise.
6900 (process_define_subst): Likewise.
6901 (check_define_attr_duplicates): Likewise.
6902 (read_md_rtx): Update after change to queue_elem.
6904 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6906 * genoutput.c (next_index_number): Delete.
6907 (data): Remove index_number.
6908 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
6909 (main): Remove manipulation of next_index_number.
6911 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6913 * genattrtab.c (check_attr_value): Remove handling of null attrs.
6914 (make_canonical): Likewise.
6916 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
6918 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
6919 instead of adjust_address_nv.
6920 (restore_stack_nonlocal): Likewise.
6921 (nonlocal_goto): Likewise.
6923 2015-07-16 Tom de Vries <tom@codesourcery.com>
6925 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
6926 not have a corresponding loop header phi.
6928 2015-07-16 Tom de Vries <tom@codesourcery.com>
6930 * tree-parloops.c (create_loads_for_reductions): Handle case that
6931 reduction is unused.
6933 2015-07-16 Richard Biener <rguenther@suse.de>
6935 PR tree-optimization/66894
6936 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
6937 about deriving NE_EXPR from truncated values.
6939 2015-07-16 Martin Liska <mliska@suse.cz>
6942 (object_allocator): Add new class.
6943 (pool_allocator::initialize): Use the underlying class.
6944 (pool_allocator::allocate): Likewise.
6945 (pool_allocator::remove): Likewise.
6946 (operator new): A new generic allocator.
6947 * asan.c (struct asan_mem_ref): Remove unused members.
6948 (asan_mem_ref_new): Replace new operator with
6949 object_allocator::allocate.
6950 (free_mem_ref_resources): Change deallocation.
6951 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
6952 with object_allocator.
6953 * config/sh/sh.c (add_constant): Replace new operator with
6954 object_allocator::allocate.
6955 (sh_reorg): Change call to a release method.
6956 * cselib.c (struct elt_list): Remove unused members.
6957 (new_elt_list): Replace new operator with
6958 object_allocator::allocate.
6959 (new_elt_loc_list): Likewise.
6960 (new_cselib_val): Likewise.
6961 (unchain_one_elt_list): Change delete operator with remove method.
6962 (unchain_one_elt_loc_list): Likewise.
6963 (unchain_one_value): Likewise.
6964 (cselib_finish): Release newly added static allocators.
6965 * cselib.h (struct cselib_val): Remove unused members.
6966 (struct elt_loc_list): Likewise.
6967 * df-problems.c (df_chain_alloc): Replace pool_allocator with
6969 * df-scan.c (struct df_scan_problem_data): Likewise.
6970 (df_scan_alloc): Likewise.
6971 * df.h (struct dataflow): Likewise.
6972 * dse.c (struct read_info_type): Likewise.
6973 (struct insn_info_type): Likewise.
6974 (struct dse_bb_info_type): Likewise.
6975 (struct group_info): Likewise.
6976 (struct deferred_change): Likewise.
6977 (get_group_info): Likewise.
6978 (delete_dead_store_insn): Likewise.
6979 (free_read_records): Likewise.
6980 (replace_read): Likewise.
6981 (check_mem_read_rtx): Likewise.
6982 (scan_insn): Likewise.
6983 (dse_step1): Likewise.
6984 (dse_step7): Likewise.
6985 * et-forest.c (struct et_occ): Remove unused members.
6986 (et_new_occ): Use allocate instead of new operator.
6987 (et_new_tree): Likewise.
6988 (et_free_tree): Call release method explicitly.
6989 (et_free_tree_force): Likewise.
6990 (et_free_pools): Likewise.
6991 (et_split): Use remove instead of delete operator.
6992 * et-forest.h (struct et_node): Remove unused members.
6993 * ipa-cp.c: Change pool_allocator to object_allocator.
6994 * ipa-inline-analysis.c: Likewise.
6995 * ipa-profile.c: Likewise.
6996 * ipa-prop.c: Likewise.
6997 * ipa-prop.h: Likewise.
6998 * ira-build.c (initiate_cost_vectors): Cast return value.
6999 (ira_allocate_cost_vector): Likewise.
7000 * ira-color.c (struct update_cost_record): Remove unused members.
7001 * lra-int.h (struct lra_live_range): Likewise.
7002 (struct lra_copy): Likewise.
7003 (struct lra_insn_reg): Likewise.
7004 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
7005 * lra.c (new_insn_reg): Replace new operator with allocate method.
7006 (free_insn_regs): Same for operator delete.
7007 (finish_insn_regs): Release new static allocator.
7008 (finish_insn_recog_data): Likewise.
7009 (lra_free_copies): Replace delete operator with remove method.
7010 (lra_create_copy): Replace operator new with allocate method.
7011 (invalidate_insn_data_regno_info): Same for remove method.
7012 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
7013 (free_debug_insn_changes): Replace delete operator with remove method.
7014 (replace_oldest_value_reg): Replace operator new with allocate method.
7015 (pass_cprop_hardreg::execute): Release new static variable.
7016 * sched-deps.c (sched_deps_init): Change pool_allocator to
7018 * sel-sched-ir.c: Likewise.
7019 * sel-sched-ir.h: Likewise.
7020 * stmt.c (expand_case): Likewise.
7021 (expand_sjlj_dispatch_table): Likewise.
7022 * tree-sra.c (struct access): Remove unused members.
7023 (struct assign_link): Likewise.
7024 (sra_deinitialize): Release newly added static pools.
7025 (create_access_1):Replace operator new with allocate method.
7026 (build_accesses_from_assign): Likewise.
7027 (create_artificial_child_access): Likewise.
7028 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
7029 pool_allocator to object_allocator.
7030 * tree-ssa-pre.c: Likewise.
7031 * tree-ssa-reassoc.c: Likewise.
7032 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7033 * tree-ssa-strlen.c: Likewise.
7034 * tree-ssa-structalias.c: Likewise.
7035 * var-tracking.c (onepart_pool_allocate): New function.
7036 (unshare_variable): Use the newly added function.
7037 (variable_merge_over_cur): Likewise.
7038 (variable_from_dropped): Likewise.
7039 (variable_was_changed): Likewise.
7040 (set_slot_part): Likewise.
7041 (emit_notes_for_differences_1): Likewise.
7042 (vt_finalize): Release newly added static pools.
7044 2015-07-16 Martin Jambor <mjambor@suse.cz>
7046 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
7047 all uses. Fix two typos in its general comment.
7048 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
7050 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
7052 * config/i386/linux-common.h (LINK_MPX): New.
7053 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
7054 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
7055 indicating '-z bndplt' support by linker.
7056 * configure: Regenerate.
7057 * config.in: Regenerate.
7059 2015-07-16 Richard Biener <rguenther@suse.de>
7061 * fold-const.c (fold_widened_comparison): Remove.
7062 (fold_sign_changed_comparison): Likewise.
7063 (fold_comparison): Move widened and sign-changed comparison
7065 * match.pd: ... to patterns here.
7066 * generic-match-head.c: Include target.h.
7067 * gimple-match-head.c: Likewise.
7069 2015-07-16 Richard Biener <rguenther@suse.de>
7071 * tree-ssa-dom.c (dom_valueize): New function.
7072 (record_temporary_equivalences): Also record equivalences
7073 for dominating stmts that have uses of equivalences we are
7076 2015-07-16 Bin Cheng <bin.cheng@arm.com>
7078 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
7079 add_autoinc_candidates.
7080 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
7081 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
7082 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
7083 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
7085 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
7086 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
7087 Remove parameter struct iv*. Call add_autoinc_candidates here.
7088 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
7089 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
7091 (find_iv_candidates): Call new functions.
7093 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
7095 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
7096 uninitialized-variable warning.
7098 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
7101 * config/sh/sh.md (movdi): Split simple reg move to two movsi
7102 when the destination is R0.
7104 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
7107 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
7108 * config/i386/i386.c (ix86_expand_pextr): New function.
7109 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
7110 for non-lowpart subregs.
7111 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
7112 (insv<mode>): Use SWI248 mode iterator.
7113 (insv<mode>_1): Ditto.
7115 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7116 Sebastian Pop <s.pop@samsung.com>
7118 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
7119 iterator to use_stmt.
7121 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7122 Sebastian Pop <s.pop@samsung.com>
7124 * graphite-scop-detection.c (build_scops_1): Discard scops for
7127 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7128 Sebastian Pop <s.pop@samsung.com>
7130 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
7131 case of a return statement in scop.
7133 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7134 Sebastian Pop <s.pop@samsung.com>
7136 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
7137 INTEGER_TYPE parameters.
7138 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
7139 VECTOR_CST in scan_tree_for_params.
7140 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
7142 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7144 * gimple-pretty-print.h: Don't include pretty-print.h.
7145 * tree-streamer.h: Don't include lto-streamer.h.
7146 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
7147 * gimple-streamer-in.c: Remove redundant includes.
7148 * gimple-streamer-out.c: Likewise.
7149 * ipa-devirt.c: Likewise.
7150 * ipa-icf.c: Likewise.
7151 * ipa-inline-analysis.c: Likewise.
7152 * ipa-polymorphic-call.c: Likewise.
7153 * ipa-profile.c: Likewise.
7154 * ipa-prop.c: Likewise.
7155 * ipa-pure-const.c: Likewise.
7156 * lto-cgraph.c: Likewise.
7157 * lto-streamer-in.c: Likewise.
7158 * lto-streamer-out.c: Likewise.
7159 * lto-streamer.c: Likewise.
7160 * tree-streamer-in.c: Likewise.
7161 * tree-streamer-out.c: Likewise.
7162 * tree-streamer.c: Likewise.
7164 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7166 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
7168 * opts.c: Remove multiline #include comment.
7170 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
7172 * config/nvptx/mkoffload.c (process): Add C++ protection to
7175 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7178 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
7179 null before IEEE 128-bit floating point support patch.
7181 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7183 * simplify-rtx.c (simplify_ternary_operation): Add simplification
7184 for (!c) != {0,...,0} ? a : b for vector modes.
7186 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
7187 Martin Jambor <mjambor@suse.cz>
7189 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
7190 struct func_body_info* instead of struct ipa_node_params*, expecting
7191 fbi->info to be filled in. Replace throughout. Adjust call to
7192 ipa_load_from_parm_agg.
7193 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
7194 instead of struct ipa_node_params*. Adjust calls to other functions
7195 so that they pass either fbi or fbi->info.
7196 (set_switch_stmt_execution_predicate): Likewise.
7197 (will_be_nonconstant_predicate): Likewise.
7198 (compute_bb_predicates): Likewise.
7199 (estimate_function_body_sizes): Move asserts earlier. Fill in
7200 struct func_body_info, replace parms_info with fbi.info. Adjust
7201 calls to functions that now accept struct func_body_info.
7202 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
7203 (struct func_body_info): Likewise.
7204 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
7205 remove static. Adjust callers.
7206 (ipa_load_from_parm_agg): Remove.
7207 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
7208 (func_body_info): Likewise.
7209 (ipa_load_from_parm_agg): Adjust prototype.
7211 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7213 * gensupport.c (rtx_handle_directive): Adjust.
7214 * read-rtl.c (apply_iterators): Take vector to add rtxs to
7215 instead of expr list rtx.
7216 (add_define_attr_for_define_subst): Likewise.
7217 (add_define_subst_attr): Likewise.
7218 (read_subst_mapping): Likewise.
7219 (read_rtx): Likewise.
7220 * rtl.h (read_rtx): Adjust.
7222 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7224 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
7226 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7229 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
7230 (*tls_local_dynamic_base_64_<mode>): Ditto.
7231 (*tls_local_dynamic_base_64_largepic): Ditto.
7232 (tls_global_dynamic_64_<mode>): Update expander pattern.
7233 (tls_local_dynamic_base_64_<mode>): Ditto.
7235 2015-07-15 Richard Biener <rguenther@suse.de>
7237 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
7238 and bool_var == 1 -> bool_var simplifications ...
7239 * match.pd: ... to patterns here. Factor out negate_expr_p
7240 cases from the A - B -> A + (-B) patterns as negate_expr_p
7241 predicate and add a -(A + B) -> (-B) - A pattern.
7243 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7245 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
7247 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
7248 Robert Suchanek <robert.suchanek@imgtec.com>
7250 * config/mips/mips.c (mips_int_mask): New enum.
7251 (mips_shadow_set): Likewise.
7252 (int_mask): New variable.
7253 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
7254 (machine_function): Add int_mask and use_shadow_register_set.
7255 (mips_attribute_table): Add attribute handlers for interrupt and
7256 use_shadow_register_set.
7257 (mips_interrupt_mask): New static function.
7258 (mips_handle_interrupt_attr): Likewise.
7259 (mips_handle_use_shadow_register_set_attr): Likewise.
7260 (mips_use_shadow_register_set): Change return type to enum
7261 mips_shadow_set. Add argument handling for use_shadow_register_set
7263 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
7264 compare with mips_shadow_set enum.
7265 (mips_compute_frame_info): Add interrupt mask and
7266 use_shadow_register_set to per-function information structure.
7267 Add a stack slot for EPC unconditionally.
7268 (mips_expand_prologue): Compare use_shadow_register_set value
7269 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
7270 masked interrupt register but in EIC mode use K0 and save Cause in K0.
7271 EPC saved and restored unconditionally. Use PMODE_INSN macro when
7272 copying the stack pointer from the shadow register set.
7273 * config/mips/mips.h (SR_IM0): New define.
7274 * config/mips/mips.md (mips_rdpgpr): Rename to...
7275 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
7276 * doc/extend.texi (Declaring Attributes of Functions): Document
7277 optional arguments for interrupt and use_shadow_register_set
7280 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7282 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
7283 interrupt attribute.
7284 (mips_expand_prologue): Disable the floating point unit in an ISR.
7285 * config/mips/mips.h (SR_COP1): New define.
7287 2015-07-15 Richard Biener <rguenther@suse.de>
7289 * genmatch.c (parser::peek, parser::peek_ident): Add argument
7290 to tell how many tokens to peek ahead (default 1).
7291 (parser::eat_token, parser::eat_ident): Return token consumed.
7292 (parser::parse_result): Parse new switch statement.
7293 * match.pd: Use case statements where appropriate.
7295 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7297 PR rtl-optimization/58066
7298 * calls.c (expand_call): Precompute register parameters before stack
7299 alignment is performed.
7301 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7303 PR rtl-optimization/66838
7304 * postreload.c (reload_cse_move2add): Also process
7305 CALL_INSN_FUNCTION_USAGE when resetting information of
7306 call-clobbered registers.
7308 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7309 Cesar Philippidis <cesar@codesourcery.com>
7310 Chung-Lin Tang <cltang@codesourcery.com>
7312 * config/nios2/constraints.md (U, v): New constraints.
7313 * config/nios2/predicates.md (rdprs_dcache_operand): New.
7314 (ldstex_memory_operand): New.
7315 * config/nios2/sync.md: New file.
7316 * config/nios2/nios2.md (unspecv): Add new builtin function
7318 (rdprs, flushd, flushda, wrpie, eni): New patterns.
7319 (top-level): Include sync.md.
7320 * config/nios2/nios2.c (N2_FTYPES): Add function types for
7322 (N2_BUILTINS): Add arch field setting, add new builtins.
7323 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
7325 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
7326 Also handle ldex/stex/ldsex/stsex builtins.
7327 (nios2_expand_rdprs_builtin): New function.
7328 (nios2_expand_cache_builtin): New function.
7329 (nios2_expand_wrpie_builtin): New function.
7330 (nios2_expand_eni_builtin): New function.
7331 (nios2_expand_builtin): Add arch field handling and new builtin
7333 * doc/extend.texi (Altera Nios II Built-in Functions): Document
7335 * doc/md.texi (Machine Constraints): Document U and v constraints.
7337 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7338 Cesar Philippidis <cesar@codesourcery.com>
7339 Chung-Lin Tang <cltang@codesourcery.com>
7341 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
7342 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
7343 callee_save_reg_size and uses_anonymous_args fields.
7344 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
7345 (nios2_create_cfa_notes): New function.
7346 (nios2_adjust_stack): New function for adjusting stack.
7347 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
7348 Use nios2_adjust_stack.
7349 (nios2_expand_epilogue): Likewise.
7350 (nios2_expand_return): New function.
7351 (nios2_can_use_return_insn): Update for CDX pop.n usage.
7352 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
7353 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
7354 * config/nios2/nios2.md (return): Use nios2_expand_return.
7356 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7357 Cesar Philippidis <cesar@codesourcery.com>
7358 Chung-Lin Tang <cltang@codesourcery.com>
7360 * config/nios2/predicates.md (pop_operation): New.
7361 (ldwm_operation, stwm_operation): New.
7362 (nios2_hard_register_operand): New.
7363 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
7364 (ldstwm_operation_p): Declare.
7365 (gen_ldstwm_peep): Declare.
7366 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
7367 (base_reg_adjustment_p): New.
7368 (pop_operation_p): New.
7369 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
7370 (nios2_ldstwm_regset_p): New.
7371 (ldstwm_operation_p): New.
7373 (nios2_ldst_parallel): New.
7374 (struct ldswm_operand): Declare.
7375 (compare_ldstwm_operands): New.
7376 (can_use_cdx_ldstw): New.
7377 (gen_ldstwm_peep): New.
7378 * config/nios2/nios2-ldstwm.sml: New.
7379 * config/nios2/nios2.md: Include ldstwm.md.
7380 * config/nios2/ldstwm.md: Generated.
7382 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7383 Cesar Philippidis <cesar@codesourcery.com>
7384 Chung-Lin Tang <cltang@codesourcery.com>
7386 * config/nios2/nios2.h (LABEL_ALIGN): Define.
7387 (REG_ALLOC_ORDER): Define.
7388 (ADJUST_REG_ALLOC_ORDER): Define.
7389 (HONOR_REG_ALLOC_ORDER): Define.
7390 (CDX_REG_P): Define.
7391 (ANDCLEAR_INT): Define.
7392 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
7393 (nios2_label_align): Declare.
7394 (nios2_cdx_narrow_form_p): Declare.
7395 (nios2_adjust_reg_alloc_order): Declare.
7396 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
7398 (nios2_large_unspec_reloc_p): New function, split from...
7399 (nios2_legitimate_pic_operand_p): ...here.
7400 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
7401 (nios2_print_operand_punct_valid_p): New.
7402 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
7403 (split_mem_address): New.
7404 (split_alu_insn): New.
7406 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
7407 (enum nios2_add_insn_kind): New.
7408 (nios2_add_insn_names, nios2_add_insn_narrow): New.
7409 (nios2_add_insn_classify): New.
7410 (nios2_add_insn_asm): New.
7411 (nios2_cdx_narrow_form_p): New.
7412 (label_align, min_labelno, max_labelno): New.
7414 (nios2_label_align): New.
7415 (nios2_adjust_reg_alloc_order): New.
7416 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7417 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7418 * config/nios2/constraints.md (P): New constraint.
7419 * config/nios2/predicates.md (const_and_operand): New.
7421 (stack_memory_operand): New.
7422 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
7423 (length): Update to use nios2_cdx_narrow_form_p().
7424 (type): Add new insn type values.
7425 (control, alu, st, ld, shift): Update insn reservations with
7426 new insn type values.
7427 (*high, *lo_sum): Define new insn patterns for constant generation.
7428 (movqi_internal, movhi_internal, movsi_internal): Reduce
7429 alternatives, update asm template to handle CDX variants, update
7431 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
7432 template, update type attributes.
7433 (extendhisi2, extendqi<mode>2): Likewise.
7434 (addsi3): Change to use function for asm string.
7435 (subsi3): Add CDX notation to asm template, update type attributes.
7436 (negsi3, one_cmplsi3): Likewise.
7437 (andsi3): New pattern, specialized from logical patterns.
7438 (<code>si3): Remove and case, combine alternatives, update asm
7440 (<shift_op>si3): Add CDX notation, update type attributes.
7441 (rotrsi3): Update type attribute.
7442 (*merge, extzv, insv): New insn patterns.
7443 (return): Change to define_expand.
7444 (simple_return): Add CDX notation, update type attributes.
7445 (indirect_jump): Add CDX notation.
7446 (jump): Update asm cases, update length attribute expression.
7447 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
7448 (nios2_cbranch): Update asm cases and length attribute expression
7449 to handle CDX variants.
7450 (nios2_cmp<code>): Update asm template.
7451 (nop): Add CDX notation, update type attributes.
7452 (trap): Add CDX notation.
7453 (ctrapsi4): Update asm cases and length attribute expression to
7455 * doc/md.texi (Machine Constraints): Document P constraint.
7457 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7458 Cesar Philippidis <cesar@codesourcery.com>
7459 Chung-Lin Tang <cltang@codesourcery.com>
7461 * config/nios2/nios2.h (SMALL_INT12): New macro.
7462 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
7463 (nios2_valid_addr_expr_p): Use it.
7464 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
7465 with implicit "io" instructions on R2.
7466 * config/nios2/constraints.md (w): New constraint.
7467 * config/nios2/predicates.md (ldstio_memory_operand): New.
7468 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
7469 operand predicate and constraint.
7470 (ld<bh>io_signed, st<bhw>io>): Likewise.
7471 * doc/md.texi (Machine Constraints): Document w constraint.
7473 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7474 Cesar Philippidis <cesar@codesourcery.com>
7475 Chung-Lin Tang <cltang@codesourcery.com>
7477 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
7478 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
7479 Nios II architecture level.
7480 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
7481 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
7482 (OPTION_DEFAULT_SPECS): Define.
7483 (ASM_SPEC): Add -march= spec strings.
7484 * config/nios2/nios2.c (nios2_option_override): Check for
7485 conflicts involving new options.
7486 * config.gcc (nios2*-*-*): Support --with-arch=.
7487 * doc/invoke.texi (Option Summary, Nios II Options): Document
7488 -march=, -mbmx, and -mcdx.
7490 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
7492 PR rtl-optimization/66626
7493 * lra-constraints.c (lra_constraints): Prevent equivalence
7494 substitution for static chain pseudo in functions with nonlocal
7497 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7499 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
7500 (nios2_emit_stack_limit_check): Add size parameter. Handle
7501 -fstack-limit-symbol as well as -fstack-limit-register.
7502 (nios2_expand_prologue): Emit only a single stack limit check,
7503 even if multiple stack adjustments are required.
7504 (nios2_option_override): Diagnose unsupported combination of -fpic
7505 and -stack-limit-symbol.
7507 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
7509 * Makefile.in (top_srcdir): New.
7510 * configure.ac: Use AM_ZLIB.
7511 * configure: Regeneated.
7513 2015-07-14 Matthias Klose <doko@ubuntu.com>
7516 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
7518 2015-07-14 Richard Biener <rguenther@suse.de>
7520 PR tree-optimization/66863
7521 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
7522 what we record for conversion use stmt lhs inequalities.
7524 2015-07-14 Richard Biener <rguenther@suse.de>
7526 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
7527 (decision_tree::gen_gimple): Likewise.
7529 2015-07-14 Tom de Vries <tom@codesourcery.com>
7531 * gcc.c (greater_than_spec_func): Declare forward.
7532 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
7533 -ftree-parallelize-loops={0,1}.
7534 (static_spec_functions): Add greater_than_spec_func function with name
7536 (greater_than_spec_func): New function.
7538 2015-07-14 Richard Biener <rguenther@suse.de>
7540 * tree-ssa-dom.c (record_temporary_equivalences): Merge
7541 wideing type conversion case from record_equivalences_from_incoming_edge
7542 and use record_equality to record equivalences.
7543 (record_equivalences_from_incoming_edge): Call
7544 record_temporary_equivalences.
7546 2015-07-14 Richard Biener <rguenther@suse.de>
7548 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
7549 (struct if_expr): New.
7550 (struct with_expr): Likewise.
7551 (is_a_helper): Add helpers for if_expr and with_expr.
7552 (struct simplify): Add simplify_kind enum and member. Remove
7554 (simplify::simplify): Adjust.
7555 (lower_commutative): Adjust.
7556 (lower_opt_convert): Likewise.
7557 (lower_cond): Likewise.
7558 (replace_id): Handle with_expr and if_expr.
7559 (lower_for): Adjust.
7560 (dt_simplify::gen_1): New recursive worker, split out from ...
7561 (dt_simplify::gen): ... here. Deal with if and with expansion
7563 (capture_info::capture_info): Take context argument
7564 (capture_info::walk_result): Only analyze specific result.
7565 (parser::parse_result): New function.
7566 (parser::parse_simplify): Adjust to parse ifs with then end
7568 (parser::parse_if): Simplify.
7569 (parser::parse_pattern): Pass down simplify kind.
7570 * match.pd: Convert if structure to new syntax.
7572 2015-07-13 Marek Polacek <polacek@redhat.com>
7574 * rtl.c (rtx_equal_p_cb): Fix typo.
7576 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
7578 * omega.h: Don't include config.h, don't include params.h again if
7579 omega.h has already been included.
7580 * graphite-poly.h: Include sese.h.
7581 * graphite.c: Don't include sese.h, remove needless includes and
7582 minimize includes outside #ifdef HAVE_isl block.
7583 * graphite-blocking.c: Don't include sese.h, remove needless includes,
7584 and wrap entire file in #ifdef HAVE_isl
7585 * graphite-dependences.c: Likewise.
7586 * graphite-interchange.c: Likewise.
7587 * graphite-isl-ast-to-gimple.c: Likewise.
7588 * graphite-optimize-isl.c: Likewise.
7589 * graphite-poly.c: Likewise.
7590 * graphite-scop-detection.c: Likewise.
7591 * graphite-sese-to-poly.c: Likewise.
7593 2015-07-13 Tom de Vries <tom@codesourcery.com>
7595 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
7597 2015-07-13 Renlin Li <renlin.li@arm.com>
7600 * simplify-rtx.c (simplify_const_relational_operation): Add
7601 side_effects_p checks.
7603 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
7605 * bitmap.h: Fix double word typos.
7608 * cfgloopmanip.c: Same.
7611 * cgraphclones.c: Same.
7613 * config/aarch64/aarch64-protos.h: Same.
7614 * config/aarch64/aarch64.c: Same.
7615 * config/aarch64/aarch64.md: Same.
7616 * config/arm/arm.md: Same.
7617 * config/arm/arm1020e.md: Same.
7618 * config/arm/arm1026ejs.md: Same.
7619 * config/arm/arm926ejs.md: Same.
7620 * config/arm/fa526.md: Same.
7621 * config/arm/fa606te.md: Same.
7622 * config/arm/fa626te.md: Same.
7623 * config/arm/fa726te.md: Same.
7624 * config/arm/fmp626.md: Same.
7625 * config/darwin.c: Same.
7626 * config/epiphany/epiphany.c: Same.
7627 * config/frv/frv.c: Same.
7628 * config/ft32/ft32.c: Same.
7629 * config/gnu-user.h: Same.
7630 * config/h8300/constraints.md: Same.
7631 * config/i386/i386.c: Same.
7632 * config/i386/i386.md: Same.
7633 * config/iq2000/iq2000.md: Same.
7634 * config/mips/mips.c: Same.
7635 * config/mmix/mmix.md: Same.
7636 * config/moxie/moxie.c: Same.
7637 * config/nds32/nds32.md: Same.
7638 * config/pa/pa.h: Same.
7639 * config/rs6000/aix.h: Same.
7640 * config/rs6000/rs6000.h: Same.
7641 * config/sh/sh.c: Same.
7642 * config/tilegx/tilegx.md: Same.
7643 * config/tilepro/gen-mul-tables.cc: Same.
7646 * doc/invoke.texi: Same.
7648 * dwarf2out.c: Same.
7653 * hash-table.h: Same.
7654 * internal-fn.c: Same.
7656 * ipa-devirt.c: Same.
7659 * ipa-profile.c: Same.
7664 * reg-stack.c: Same.
7670 * tree-inline.c: Same.
7672 * tree-ssa-dom.c: Same.
7673 * tree-ssa-loop-ivopts.c: Same.
7674 * tree-ssa-structalias.c: Same.
7675 * tree-ssa-tail-merge.c: Same.
7676 * tree-ssa-ter.c: Same.
7677 * tree-ssa-threadupdate.c: Same.
7678 * tree-ssa-uninit.c: Same.
7679 * tree-ssanames.c: Same.
7680 * tree-vect-loop-manip.c: Same.
7686 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7689 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
7690 tree_ssa_phiopt_worker): Call it.
7692 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7694 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
7695 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
7698 2015-07-11 Marek Polacek <polacek@redhat.com>
7701 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
7702 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
7703 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
7704 rather than bb_has_abnormal_call_pred.
7705 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
7706 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
7707 rather than bb_has_abnormal_call_pred.
7709 2015-07-10 Anatoly Sokolov <aesok@post.ru>
7711 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7712 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
7713 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7714 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
7715 v850_legitimate_address_p): New functions.
7716 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7718 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
7721 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
7722 indirect sibcall with register arguments if register available
7723 for argument passing.
7724 (init_cumulative_args): Set cfun->machine->arg_reg_available
7725 to (cum->nregs > 0) or to true if function has a variable
7727 (function_arg_advance_32): Set cfun->machine->arg_reg_available
7728 to false if cum->nregs <= 0.
7729 * config/i386/i386.h (machine_function): Add arg_reg_available.
7731 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7733 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
7734 and gen_higpart instead of gen_rtx_SUBREG.
7735 * config/i386/i386.md
7736 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
7737 (read-modify peephole2): Use gen_lowpart instead of
7738 gen_rtx_SUBREG for operand 5.
7740 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7742 * config/tilepro/gen-mul-tables.cc (main): Change include list for
7744 * config/tilepro/mul-tables.c: Regenerate.
7745 * config/tilegx/mul-tables.c: Regenerate.
7747 2015-07-10 Richard Biener <rguenther@suse.de>
7749 * fold-const.c (distribute_bit_expr): Remove.
7750 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
7751 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
7752 to A & (B | C) and simplifying A << C1 << C2 to ...
7753 * match.pd: ... patterns here.
7755 2015-07-10 Jiong Wang <jiong.wang@arm.com>
7757 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7758 Mark mem as READONLY and NOTRAP for PIC symbol.
7760 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7762 * gimple-predict.h: New file.
7763 (gimple_predict_predictor, gimple_predict_set_predictor,
7764 gimple_predict_outcome, gimple_predict_set_outcome,
7765 gimple_build_predict): Relocate here.
7766 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
7767 gimple_predict_outcome, gimple_predict_set_outcome): Move to
7769 * gimple.c (gimple_build_predict): Move to gimple-predict.h
7770 * basic-block.h: Don't include cfghooks.h.
7771 * backend.h: Don't include predict.h.
7772 * cfghooks.h: Include predict.h.
7773 * gimple-pretty-print.c: Include gimple-predict.h.
7774 * gimplify.c: Likwise.
7775 * predict.c: Adjust includes.
7776 * tree-inline.c: Likewise.
7778 * auto-inc-dec.c: Likewise.
7779 * auto-profile.c: Likewise.
7780 * bb-reorder.c: Likewise.
7781 * builtins.c: Likewise.
7782 * caller-save.c: Likewise.
7783 * calls.c: Likewise.
7784 * cfganal.c: Likewise.
7785 * cfgbuild.c: Likewise.
7787 * cfgcleanup.c: Likewise.
7788 * cfgexpand.c: Likewise.
7789 * cfghooks.c: Likewise.
7790 * cfgloopanal.c: Likewise.
7791 * cfgloop.c: Likewise.
7792 * cfgloopmanip.c: Likewise.
7793 * cfgrtl.c: Likewise.
7794 * cgraph.c: Likewise.
7795 * cgraphunit.c: Likewise.
7796 * combine.c: Likewise.
7797 * cprop.c: Likewise.
7800 * dojump.c: Likewise.
7802 * except.c: Likewise.
7803 * expmed.c: Likewise.
7805 * final.c: Likewise.
7806 * fold-const.c: Likewise.
7807 * function.c: Likewise.
7808 * fwprop.c: Likewise.
7809 * gcc-plugin.h: Likewise.
7811 * genattrtab.c: Likewise.
7812 * genemit.c: Likewise.
7813 * gengtype.c: Likewise.
7814 * genopinit.c: Likewise.
7815 * genoutput.c: Likewise.
7816 * genpreds.c: Likewise.
7817 * genrecog.c: Likewise.
7818 * gimple-fold.c: Likewise.
7819 * gimple-iterator.c: Likewise.
7820 * gimple-ssa-isolate-paths.c: Likewise.
7821 * gimple-ssa-strength-reduction.c: Likewise.
7822 * graph.c: Likewise.
7823 * graphite-blocking.c: Likewise.
7824 * graphite.c: Likewise.
7825 * graphite-dependences.c: Likewise.
7826 * graphite-interchange.c: Likewise.
7827 * graphite-isl-ast-to-gimple.c: Likewise.
7828 * graphite-optimize-isl.c: Likewise.
7829 * graphite-poly.c: Likewise.
7830 * graphite-scop-detection.c: Likewise.
7831 * graphite-sese-to-poly.c: Likewise.
7832 * haifa-sched.c: Likewise.
7833 * ifcvt.c: Likewise.
7834 * internal-fn.c: Likewise.
7835 * ipa-cp.c: Likewise.
7836 * ipa-profile.c: Likewise.
7837 * ipa-split.c: Likewise.
7838 * ipa-utils.c: Likewise.
7839 * ira-build.c: Likewise.
7840 * ira-color.c: Likewise.
7841 * ira-conflicts.c: Likewise.
7842 * ira-costs.c: Likewise.
7843 * ira-emit.c: Likewise.
7844 * ira-lives.c: Likewise.
7846 * loop-doloop.c: Likewise.
7847 * loop-init.c: Likewise.
7848 * loop-invariant.c: Likewise.
7849 * loop-unroll.c: Likewise.
7850 * lower-subreg.c: Likewise.
7851 * lra-assigns.c: Likewise.
7853 * lra-coalesce.c: Likewise.
7854 * lra-constraints.c: Likewise.
7855 * lra-lives.c: Likewise.
7856 * lto-cgraph.c: Likewise.
7857 * lto-streamer-in.c: Likewise.
7858 * mode-switching.c: Likewise.
7859 * modulo-sched.c: Likewise.
7860 * omp-low.c: Likewise.
7861 * optabs.c: Likewise.
7862 * passes.c: Likewise.
7863 * postreload.c: Likewise.
7864 * postreload-gcse.c: Likewise.
7865 * profile.c: Likewise.
7866 * recog.c: Likewise.
7867 * regstat.c: Likewise.
7868 * reload1.c: Likewise.
7869 * reorg.c: Likewise.
7870 * rtlanal.c: Likewise.
7871 * sched-ebb.c: Likewise.
7872 * sel-sched-ir.c: Likewise.
7874 * shrink-wrap.c: Likewise.
7875 * simplify-rtx.c: Likewise.
7877 * store-motion.c: Likewise.
7878 * tracer.c: Likewise.
7879 * trans-mem.c: Likewise.
7880 * tree-call-cdce.c: Likewise.
7881 * tree-cfg.c: Likewise.
7882 * tree-cfgcleanup.c: Likewise.
7883 * tree-chkp.c: Likewise.
7884 * tree-complex.c: Likewise.
7885 * tree-eh.c: Likewise.
7886 * tree-if-conv.c: Likewise.
7887 * tree-loop-distribution.c: Likewise.
7888 * tree-outof-ssa.c: Likewise.
7889 * tree-parloops.c: Likewise.
7890 * tree-predcom.c: Likewise.
7891 * tree-pretty-print.c: Likewise.
7892 * tree-profile.c: Likewise.
7893 * tree-sra.c: Likewise.
7894 * tree-ssa.c: Likewise.
7895 * tree-ssa-coalesce.c: Likewise.
7896 * tree-ssa-dce.c: Likewise.
7897 * tree-ssa-dom.c: Likewise.
7898 * tree-ssa-forwprop.c: Likewise.
7899 * tree-ssa-ifcombine.c: Likewise.
7900 * tree-ssa-loop-ch.c: Likewise.
7901 * tree-ssa-loop-im.c: Likewise.
7902 * tree-ssa-loop-ivcanon.c: Likewise.
7903 * tree-ssa-loop-ivopts.c: Likewise.
7904 * tree-ssa-loop-manip.c: Likewise.
7905 * tree-ssa-loop-prefetch.c: Likewise.
7906 * tree-ssa-loop-unswitch.c: Likewise.
7907 * tree-ssa-math-opts.c: Likewise.
7908 * tree-ssa-phiopt.c: Likewise.
7909 * tree-ssa-pre.c: Likewise.
7910 * tree-ssa-reassoc.c: Likewise.
7911 * tree-ssa-sink.c: Likewise.
7912 * tree-ssa-tail-merge.c: Likewise.
7913 * tree-ssa-threadedge.c: Likewise.
7914 * tree-ssa-threadupdate.c: Likewise.
7915 * tree-switch-conversion.c: Likewise.
7916 * tree-tailcall.c: Likewise.
7917 * tree-vect-data-refs.c: Likewise.
7918 * tree-vect-loop.c: Likewise.
7919 * tree-vect-loop-manip.c: Likewise.
7920 * tree-vectorizer.c: Likewise.
7921 * tree-vrp.c: Likewise.
7922 * ubsan.c: Likewise.
7923 * value-prof.c: Likewise.
7924 * varasm.c: Likewise.
7925 * var-tracking.c: Likewise.
7926 * config/aarch64/aarch64-builtins.c: Likewise.
7927 * config/aarch64/aarch64.c: Likewise.
7928 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7929 * config/alpha/alpha.c: Likewise.
7930 * config/arc/arc.c: Likewise.
7931 * config/arm/arm.c: Likewise.
7932 * config/avr/avr.c: Likewise.
7933 * config/bfin/bfin.c: Likewise.
7934 * config/c6x/c6x.c: Likewise.
7935 * config/cr16/cr16.c: Likewise.
7936 * config/cris/cris.c: Likewise.
7937 * config/darwin.c: Likewise.
7938 * config/darwin-c.c: Likewise.
7939 * config/epiphany/epiphany.c: Likewise.
7940 * config/epiphany/mode-switch-use.c: Likewise.
7941 * config/epiphany/resolve-sw-modes.c: Likewise.
7942 * config/fr30/fr30.c: Likewise.
7943 * config/frv/frv.c: Likewise.
7944 * config/ft32/ft32.c: Likewise.
7945 * config/h8300/h8300.c: Likewise.
7946 * config/i386/i386.c: Likewise.
7947 * config/i386/winnt.c: Likewise.
7948 * config/ia64/ia64.c: Likewise.
7949 * config/iq2000/iq2000.c: Likewise.
7950 * config/lm32/lm32.c: Likewise.
7951 * config/m32c/m32c.c: Likewise.
7952 * config/m32r/m32r.c: Likewise.
7953 * config/m68k/m68k.c: Likewise.
7954 * config/mcore/mcore.c: Likewise.
7955 * config/mep/mep.c: Likewise.
7956 * config/microblaze/microblaze.c: Likewise.
7957 * config/mips/mips.c: Likewise.
7958 * config/mmix/mmix.c: Likewise.
7959 * config/mn10300/mn10300.c: Likewise.
7960 * config/moxie/moxie.c: Likewise.
7961 * config/msp430/msp430.c: Likewise.
7962 * config/nds32/nds32.c: Likewise.
7963 * config/nds32/nds32-cost.c: Likewise.
7964 * config/nds32/nds32-fp-as-gp.c: Likewise.
7965 * config/nds32/nds32-intrinsic.c: Likewise.
7966 * config/nds32/nds32-isr.c: Likewise.
7967 * config/nds32/nds32-md-auxiliary.c: Likewise.
7968 * config/nds32/nds32-memory-manipulation.c: Likewise.
7969 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7970 * config/nds32/nds32-predicates.c: Likewise.
7971 * config/nios2/nios2.c: Likewise.
7972 * config/nvptx/nvptx.c: Likewise.
7973 * config/pa/pa.c: Likewise.
7974 * config/pdp11/pdp11.c: Likewise.
7975 * config/rl78/rl78.c: Likewise.
7976 * config/rs6000/rs6000.c: Likewise.
7977 * config/rx/rx.c: Likewise.
7978 * config/s390/s390.c: Likewise.
7979 * config/sh/sh.c: Likewise.
7980 * config/sh/sh-mem.cc: Likewise.
7981 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7982 * config/sh/sh_treg_combine.cc: Likewise.
7983 * config/sparc/sparc.c: Likewise.
7984 * config/spu/spu.c: Likewise.
7985 * config/stormy16/stormy16.c: Likewise.
7986 * config/tilegx/tilegx.c: Likewise.
7987 * config/tilepro/tilepro.c: Likewise.
7988 * config/v850/v850.c: Likewise.
7989 * config/vax/vax.c: Likewise.
7990 * config/visium/visium.c: Likewise.
7991 * config/xtensa/xtensa.c: Likewise.
7993 2015-07-10 Richard Biener <rguenther@suse.de>
7995 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
7996 (decision_tree::gen_gimple): Likewise.
7997 (decision_tree::gen_generic): Likewise.
7999 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8002 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
8003 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
8005 2015-07-10 Jakub Jelinek <jakub@redhat.com>
8008 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
8009 or ORT_TASK contexts.
8010 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
8013 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8015 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
8018 2015-07-10 Tom de Vries <tom@codesourcery.com>
8020 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
8021 insert nit + 1 bound.
8023 2015-07-10 Richard Biener <rguenther@suse.de>
8025 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
8026 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
8027 (if_convertible_loop_p_1): For this always compute bb predicates.
8028 (if_convertible_loop_p): And free them.
8030 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8032 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
8035 2015-07-10 Richard Biener <rguenther@suse.de>
8037 PR tree-optimization/66823
8038 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
8041 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
8043 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
8044 to handle mips[32|64]r3 and mips[32|64]r5.
8046 2015-07-09 Jakub Jelinek <jakub@redhat.com>
8049 * tree-nested.c (get_static_chain): Or in a flag into
8050 info->static_chain_added.
8051 (get_frame_field, get_nonlocal_debug_decl): Likewise.
8052 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
8054 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
8055 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
8058 PR tree-optimization/66718
8059 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
8061 (vect_simd_lane_linear): New function.
8062 (vectorizable_simd_clone_call): Support using linear arguments for
8063 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
8065 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8068 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
8070 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
8072 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
8073 Use machine mode, not enum machine_mode in the prototype.
8075 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
8076 classify 128-bit floating point support.
8077 (FLOAT128_IBM_P): Likewise.
8078 (FLOAT128_VECTOR_P): Likewise.
8079 (FLOAT128_2REG_P): Likewise.
8080 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
8081 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
8082 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8083 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8085 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
8086 tests against TFmode/TDmode, since those modes do not use VSX
8088 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
8090 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
8091 tests against TFmode, etc.
8092 (invalid_e500_subreg): Add tests against IFmode/KFmode.
8093 (reg_offset_addressing_ok_p): Likewise.
8094 (rs6000_legitimate_offset_address_p): Likewise.
8095 (rs6000_legitimize_address): Likewise.
8096 (rs6000_legitimize_reload_address): Likewise.
8097 (rs6000_legitimate_address_p): Clean up tests against TFmode and
8098 TDmode to use the new helper macros, which will include IFmode and
8100 (rs6000_emit_move): Likewise.
8101 (rs6000_darwin64_record_arg_recurse): Likewise.
8102 (print_operand): Likewise.
8103 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
8104 that uses a single vector register as a vector and not as a
8105 floating point register in terms of the calling sequence.
8106 (rs6000_discover_homogeneous_aggregate): Likewise.
8107 (rs6000_return_in_memory): Likewise.
8108 (init_cumulative_args): Likewise.
8109 (rs6000_function_arg_boundary): Likewise.
8110 (rs6000_function_arg_advance_1): Likewise.
8111 (rs6000_function_arg): Likewise.
8112 (rs6000_pass_by_reference): Likewise.
8113 (rs6000_gimplify_va_arg): Likewise.
8114 (rs6000_secondary_reload_memory): Use machine_mode not enum
8116 (rs6000_split_multireg_move): Use new helper macros.
8117 (spe_func_has_64bit_regs_p): Likewise.
8118 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
8119 (output_toc): Use new helper macros.
8120 (rs6000_register_move_cost): Likewise.
8121 (rs6000_function_value): Add IEEE 128-bit floating point calling
8123 (rs6000_libcall_value): Likewise.
8124 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
8125 floating point support.
8126 (rs6000_vector_mode_supported_p): Likewise.
8128 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
8130 PR rtl-optimization/66782
8131 * lra-int.h (struct lra_insn_recog_data): Add comment about
8132 clobbered hard regs for arg_hard_regs.
8133 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
8134 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
8135 Add condition for processing used hard regs.
8136 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
8137 Process clobbered hard regs.
8139 2015-07-09 Michael Matz <matz@suse.de>
8141 * genmatch.c (fprintf_indent): New function.
8142 (operand::gen_transform): Add indent parameter.
8143 (expr::gen_transform, c_expr::gen_transform,
8144 capture::gen_transform): Ditto and use fprintf_indent.
8145 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
8146 (dt_operand::gen, dt_operand::gen_predicate,
8147 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
8148 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
8149 (decision_tree::gen_gimple): Adjust calls and indent generated
8151 (decision_tree::gen_generic): Ditto.
8152 (write_predicate): Ditto.
8154 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8157 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
8158 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
8159 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
8160 {GENERAL,SSE,MMX}_REG_P where appropriate.
8162 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8164 * lto-streamer.h: Don't include target.h and alloc-pool.h.
8165 * builtins.c: Adjust includes.
8166 * gimple.c: Likewise.
8167 * ipa-icf.c: Likewise.
8168 * lto-opts.c: Likewise.
8169 * ipa-reference.c: Likewise.
8170 * lto-section-out.c: Likewise.
8171 * lto-streamer-in.c: Likewise.
8172 * lto-streamer-out.c: Likewise.
8173 * opts-global.c: Likewise.
8174 * symtab.c: Likewise.
8175 * tree-chkp.c: Likewise.
8176 * tree-ssa-live.c: Likewise.
8177 * tree-streamer-in.c: Likewise.
8178 * tree-streamer-out.c: Likewise.
8179 * config/darwin.c: Likewise.
8180 * config/i386/winnt.c: Likewise.
8182 2015-07-09 Richard Biener <rguenther@suse.de>
8184 * genmatch.c (struct expr): Add force_single_use flag.
8185 (expr::expr): Add copy constructor.
8186 (capture_info::walk_match): Gather force_single_use captures.
8187 (expr::gen_transform): Use possibly NULLified sequence.
8188 (dt_simplify::gen): Apply single-use restrictions by NULLifying
8189 seq if any constrained expr is not single-use.
8190 (parser::parse_expr): Refactor to allow multiple flags. Handle
8191 's' flag to force an expression have a single-use if the pattern
8192 simplifies to more than one statement.
8193 * match.pd: Convert most single_use conditionals to :s flags.
8195 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8197 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
8198 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8199 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8201 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8203 * flags.h: Don't include flag-types.h or options.h.
8204 * opts-common.c: Adjust includes.
8205 * opts-global.c: Likewise.
8206 * common/config/epiphany/epiphany-common.c: Likewise.
8208 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8211 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
8214 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8217 * config/i386/i386.c (ix86_return_in_memory): Return true
8218 if int_size_in_bytes returns negative for IA MCU.
8220 2015-07-09 Marek Polacek <polacek@redhat.com>
8222 PR tree-optimization/66718
8223 * Makefile.in (OBJS): Add gimple-laddress.o.
8224 * passes.def: Schedule pass_laddress.
8225 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
8226 * tree-pass.h (make_pass_laddress): Declare.
8227 * gimple-laddress.c: New file.
8229 2015-07-09 Richard Biener <rguenther@suse.de>
8231 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
8233 2015-07-09 Richard Biener <rguenther@suse.de>
8235 PR tree-optimization/66807
8236 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
8238 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
8240 * function.c (stack_protect_epilogue): Use if rather than switch for
8241 check targetm.have_stack_protect_test.
8243 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8245 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
8246 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
8247 * config/arc/arc.h: Likewise.
8248 * config/arm/arm.h: Likewise.
8249 * config/bfin/bfin.h: Likewise.
8250 * config/epiphany/epiphany.h: Likewise.
8251 * config/frv/frv.h: Likewise.
8252 * config/ia64/ia64.h: Likewise.
8253 * config/iq2000/iq2000.h: Likewise.
8254 * config/lm32/lm32.h: Likewise.
8255 * config/m32r/m32r.h: Likewise.
8256 * config/mcore/mcore.h: Likewise.
8257 * config/mep/mep.h: Likewise.
8258 * config/microblaze/microblaze.h: Likewise.
8259 * config/mips/mips.h: Likewise.
8260 * config/mmix/mmix.h: Likewise.
8261 * config/mn10300/mn10300.h: Likewise.
8262 * config/nds32/nds32.h: Likewise.
8263 * config/nios2/nios2.h: Likewise.
8264 * config/pa/pa.h: Likewise.
8265 * config/rl78/rl78.h: Likewise.
8266 * config/sh/sh.h: Likewise.
8267 * config/sparc/sparc.h: Likewise.
8268 * config/stormy16/stormy16.h: Likewise.
8269 * config/tilegx/tilegx.h: Likewise.
8270 * config/tilepro/tilepro.h: Likewise.
8271 * config/v850/v850.h: Likewise.
8272 * config/xtensa/xtensa.h: Likewise.
8273 * doc/tm.texi: Regenerate.
8274 * doc/tm.texi.in: Adjust.
8275 * combine.c (simplify_set): Likewise.
8276 (simplify_comparison): Likewise.
8277 * expr.c (store_constructor): Likewise.
8278 * internal-fn.c (expand_arith_overflow): Likewise.
8279 * reload.c (push_reload): Likewise.
8280 (find_reloads): Likewise.
8281 (find_reloads_subreg_address): Likewise.
8282 * reload1.c (eliminate_regs_1): Likewise.
8283 * rtlanal.c (nonzero_bits1): Likewise.
8284 (num_sign_bit_copies1): Likewise.
8285 * simplify-rtx.c (simplify_truncation): Likewise.
8287 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8289 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
8290 of AUTO_INC_DEC with the preprocessor.
8291 * combine.c (combine_instructions): Likewise.
8292 (can_combine_p): Likewise.
8293 (try_combine): Likewise.
8294 * emit-rtl.c (try_split): Likewise.
8295 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8296 * lower-subreg.c (resolve_simple_move): Likewise.
8297 * lra.c (update_inc_notes): Likewise.
8298 * recog.c (asm_operand_ok): Likewise.
8299 (constrain_operands): Likewise.
8300 * regrename.c (scan_rtx_address): Likewise.
8301 * reload.c (update_auto_inc_notes): Likewise.
8302 (reg_inc_found_and_valid_p): Likewise.
8303 * reload1.c (reload): Likewise.
8304 (emit_input_reload_insns): Likewise.
8305 (delete_output_reload): Likewise.
8306 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8307 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8309 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8311 * rtl.h: Always define AUTO_INC_DEC.
8312 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
8313 * combine.c (combine_instructions): Likewise.
8314 (can_combine_p): Likewise.
8315 (try_combine): Likewise.
8316 * emit-rtl.c (try_split): Likewise.
8317 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8318 * lower-subreg.c (resolve_simple_move): Likewise.
8319 * lra.c (update_inc_notes): Likewise.
8320 * recog.c (asm_operand_ok): Likewise.
8321 (constrain_operands): Likewise.
8322 * regrename.c (scan_rtx_address): Likewise.
8323 * reload.c (update_auto_inc_notes): Likewise.
8324 (find_equiv_reg): Likewise.
8325 * reload1.c (reload): Likewise.
8326 (reload_as_needed): Likewise.
8327 (choose_reload_regs): Likewise.
8328 (emit_input_reload_insns): Likewise.
8329 (delete_output_reload): Likewise.
8330 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8331 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8333 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8335 * combine.c (can_combine_def_p): Don't check the value of
8336 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
8337 (combinable_i3pat): Likewise.
8338 (mark_used_regs_combine): Likewise.
8339 * regrename.c (rename_chains): Likewise.
8340 * reload.c (find_reloads_address): Likewise.
8341 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8343 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8345 * combine.c (update_rsp_from_reg_equal): Don't check if
8346 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
8347 (reg_nonzero_bits_for_combine): Likewise.
8348 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
8350 * config/frv/frv.h: Likewise.
8351 * config/lm32/lm32.h: Likewise.
8352 * config/mep/mep.h: Likewise.
8353 * config/mips/mips.h: Likewise.
8354 * config/rs6000/rs6000.h: Likewise.
8355 * config/sh/sh.h: Likewise.
8356 * config/tilegx/tilegx.h (enum reg_class): Likewise.
8357 * config/tilepro/tilepro.h: Likewise.
8358 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
8359 * doc/tm.texi: Regenerate.
8360 * doc/tm.texi.in: Adjust.
8361 * rtlanal.c (nonzero_bits1): Likewise.
8363 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8365 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
8366 with the preprocessor.
8367 (combine_instructions): Likewise.
8368 (try_combine): Likewise.
8370 (distribute_notes): Likewise.
8372 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8374 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
8376 (simplify_set): Likewise.
8377 * cse.c (cse_insn): Likewise.
8378 * fold-const.c (fold_single_bit_test): Likewise.
8379 (fold_unary_loc): Likewise.
8380 * postreload.c (reload_cse_simplify_set): Likewise.
8381 (reload_cse_simplify_operands): Likewise.
8383 2015-07-08 Jiong Wang <jiong.wang@arm.com>
8385 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
8386 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
8388 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8391 * config/i386/x86intrin.h: Include <adxintrin.h> even if
8392 __iamcu__ is defined.
8394 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8396 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
8398 2015-07-08 Iain Sandoe <iain@codesourcery.com>
8401 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
8402 names from preservation.
8404 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8407 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
8409 (function_arg_advance_32): Don't pass vectors in registers for
8411 (function_arg_32): Likewise.
8412 (ix86_return_in_memory): Don't return vectors in registers for
8415 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
8418 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
8419 hard regno live at the start of BB with incoming abnormal edges.
8420 * lra-lives.c (process_bb_lives): Ditto.
8422 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8425 * config/nvptx/mkoffload.c (main): Create an offload image only in
8426 64-bit configurations.
8428 2015-07-08 Martin Liska <mliska@suse.cz>
8431 * tree-sra.c (create_access_1): Call ctor without brackets.
8432 (create_artificial_child_access): Likewise.
8434 2015-07-08 Richard Biener <rguenther@suse.de>
8436 PR tree-optimization/66793
8437 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
8438 Properly split the block after stmts ending it.
8440 2015-07-08 Richard Biener <rguenther@suse.de>
8442 PR tree-optimization/66794
8443 * passes.c (execute_function_todo): Assert that post-dominators
8445 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
8446 Free post-dominators.
8448 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8450 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
8453 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8455 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
8456 more than or equal 8 and less than 32 when optimizing for size.
8458 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8460 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
8461 COSTS_N_INSNS (1) and increment it appropriately throughout the
8464 2015-07-08 Richard Biener <rguenther@suse.de>
8466 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
8468 2015-07-08 Alan Modra <amodra@gmail.com>
8470 * target.def (rtx_costs): Remove "code" param, add "mode".
8471 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
8472 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
8473 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
8474 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
8475 call. Track mode when given in rtx.
8476 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
8477 (default_address_cost): Pass Pmode to rtx_cost.
8478 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
8479 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
8481 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
8482 (notreg_cost): Add mode param. Use it.
8483 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
8484 mode param and pass to set_src_cost. Update all calls.
8485 (hash_scan_set): Formatting.
8486 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
8487 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
8489 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
8490 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
8491 emit_store_flag): Update set_src_cost and rtx_cost calls.
8492 * auto-inc-dec.c (attempt_change): Likewise.
8493 * calls.c (precompute_register_parameters): Likewise.
8494 * combine.c (expand_compound_operation, make_extraction,
8495 force_to_mode, distribute_and_simplify_rtx): Likewise.
8496 * dojump.c (prefer_and_bit_test): Likewise.
8497 * dse.c (find_shift_sequence): Likewise.
8498 * expr.c (compress_float_constant): Likewise.
8499 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
8500 * ifcvt.c (noce_try_sign_mask): Likewise.
8501 * loop-doloop.c (doloop_optimize): Likewise.
8502 * loop-invariant.c (create_new_invariant): Likewise.
8503 * lower-subreg.c (shift_cost, compute_costs): Likewise.
8504 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
8505 lshift_cheap_p): Likewise.
8506 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
8507 try_replace_in_use, reload_cse_move2add): Likewise.
8508 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
8510 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8511 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8512 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
8513 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
8514 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
8515 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
8517 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
8518 * config/arc/arc.c (arc_rtx_costs): Likewise.
8519 * config/arm/arm.c (arm_rtx_costs): Likewise.
8520 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
8521 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8522 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
8523 * config/cris/cris.c (cris_rtx_costs): Likewise.
8524 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
8525 * config/frv/frv.c (frv_rtx_costs): Likewise.
8526 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
8527 * config/i386/i386.c (ix86_rtx_costs): Likewise.
8528 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
8529 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
8530 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
8531 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
8532 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
8533 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
8534 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
8535 * config/mep/mep.c (mep_rtx_cost): Likewise.
8536 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
8537 * config/mips/mips.c (mips_rtx_costs): Likewise.
8538 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
8539 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
8540 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
8541 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
8542 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
8543 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
8544 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
8545 * config/pa/pa.c (hppa_rtx_costs): Likewise.
8546 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
8547 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
8548 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
8549 * config/s390/s390.c (s390_rtx_costs): Likewise.
8550 * config/sh/sh.c (sh_rtx_costs): Likewise.
8551 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
8552 * config/spu/spu.c (spu_rtx_costs): Likewise.
8553 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
8554 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
8555 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
8556 * config/v850/v850.c (v850_rtx_costs): Likewise.
8557 * config/vax/vax.c (vax_rtx_costs): Likewise.
8558 * config/visium/visium.c (visium_rtx_costs): Likewise.
8559 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
8560 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
8561 "code" param, and pass as outer_code to first rtx_cost call. Pass
8562 mode to rtx_cost calls.
8563 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
8565 (aarch64_rtx_costs_wrapper): Update.
8566 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
8567 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
8569 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
8571 (avr_operand_rtx_cost): Similarly.
8572 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
8573 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
8574 * config/mips/mips.c (mips_stack_address_p): Comment typo.
8575 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
8576 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
8577 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
8579 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
8580 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
8581 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
8582 * doc/tm.texi: Regenerate.
8584 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
8586 * tree-core.h: Include symtab.h.
8587 * rtl.h: Include hard-reg-set.h but not flags.h.
8588 (HARD_CONST): Remove condition compilation involving HARD_CONST since
8589 hard-reg-set.h is always included.
8590 * regs.h: Don't include hard-reg-set.h or rtl.h.
8591 * cfg.h: Include dominance.h.
8592 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
8593 * backend.h: New. Aggregate commonly used backend header files.
8594 * gimple-ssa.h: Don't include tree-hasher.h.
8595 * ssa.h: New. Aggregate commonly used SSA header files.
8596 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
8597 * sel-sched-ir.h: Flatten includes.
8598 * lra-int.h: Flatten completely.
8599 * sel-sched-dump.h: Flatten includes.
8600 * ira-int.h: Flatten includes.
8601 * gimple-streamer.h: Remove all includes.
8602 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
8603 * resource.h: Flatten hard-reg-set.h and df.h.
8604 * sched-int.h: Flatten insn-arrt.h and df.h.
8605 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
8606 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
8607 * genattrtab.c (write_header): Adjust generated includes.
8608 * genautomata.c (main): Likewise.
8609 * genconditions.c (write-header): Likewise.
8610 * genemit.c (main): Likewise.
8611 * gengtype.c (open_base_files): Likewise.
8612 * genopinit.c (main): Likewise.
8613 * genoutput.c (output_prologue): Likewise.
8614 * genpeep.c (main): Likewise.
8615 * genpreds.c (write_insn_preds_c): Likewise.
8616 * genrecog.c (write_header): Likewise.
8617 * alias.c: Adjust includes.
8619 * attribs.c: Likewise.
8620 * auto-inc-dec.c: Likewise.
8621 * auto-profile.c: Likewise.
8622 * bb-reorder.c: Likewise.
8623 * bt-load.c: Likewise.
8624 * builtins.c: Likewise.
8625 * caller-save.c: Likewise.
8626 * calls.c: Likewise.
8629 * cfganal.c: Likewise.
8630 * cfgbuild.c: Likewise.
8631 * cfgcleanup.c: Likewise.
8632 * cfgexpand.c: Likewise.
8633 * cfghooks.c: Likewise.
8634 * cfgloop.c: Likewise.
8635 * cfgloopanal.c: Likewise.
8636 * cfgloopmanip.c: Likewise.
8637 * cfgrtl.c: Likewise.
8638 * cgraph.c: Likewise.
8639 * cgraphbuild.c: Likewise.
8640 * cgraphclones.c: Likewise.
8641 * cgraphunit.c: Likewise.
8642 * cilk-common.c: Likewise.
8643 * combine-stack-adj.c: Likewise.
8644 * combine.c: Likewise.
8645 * compare-elim.c: Likewise.
8646 * convert.c: Likewise.
8647 * coverage.c: Likewise.
8648 * cppbuiltin.c: Likewise.
8649 * cprop.c: Likewise.
8651 * cselib.c: Likewise.
8652 * data-streamer-in.c: Likewise.
8653 * data-streamer-out.c: Likewise.
8654 * data-streamer.c: Likewise.
8655 * dbxout.c: Likewise.
8658 * debug.c: Likewise.
8659 * df-core.c: Likewise.
8660 * df-problems.c: Likewise.
8661 * df-scan.c: Likewise.
8663 * dojump.c: Likewise.
8664 * dominance.c: Likewise.
8665 * domwalk.c: Likewise.
8666 * double-int.c: Likewise.
8668 * dumpfile.c: Likewise.
8669 * dwarf2asm.c: Likewise.
8670 * dwarf2cfi.c: Likewise.
8671 * dwarf2out.c: Likewise.
8672 * emit-rtl.c: Likewise.
8673 * et-forest.c: Likewise.
8674 * except.c: Likewise.
8675 * explow.c: Likewise.
8676 * expmed.c: Likewise.
8678 * final.c: Likewise.
8679 * fixed-value.c: Likewise.
8680 * fold-const.c: Likewise.
8681 * function.c: Likewise.
8682 * fwprop.c: Likewise.
8683 * gcc-plugin.h: Likewise.
8684 * gcse-common.c: Likewise.
8686 * generic-match-head.c: Likewise.
8687 * ggc-page.c: Likewise.
8688 * gimple-builder.c: Likewise.
8689 * gimple-expr.c: Likewise.
8690 * gimple-fold.c: Likewise.
8691 * gimple-iterator.c: Likewise.
8692 * gimple-low.c: Likewise.
8693 * gimple-match-head.c: Likewise.
8694 * gimple-pretty-print.c: Likewise.
8695 * gimple-ssa-isolate-paths.c: Likewise.
8696 * gimple-ssa-strength-reduction.c: Likewise.
8697 * gimple-streamer-in.c: Likewise.
8698 * gimple-streamer-out.c: Likewise.
8699 * gimple-walk.c: Likewise.
8700 * gimple.c: Likewise.
8701 * gimplify-me.c: Likewise.
8702 * gimplify.c: Likewise.
8703 * godump.c: Likewise.
8704 * graph.c: Likewise.
8705 * graphite-blocking.c: Likewise.
8706 * graphite-dependences.c: Likewise.
8707 * graphite-interchange.c: Likewise.
8708 * graphite-isl-ast-to-gimple.c: Likewise.
8709 * graphite-optimize-isl.c: Likewise.
8710 * graphite-poly.c: Likewise.
8711 * graphite-scop-detection.c: Likewise.
8712 * graphite-sese-to-poly.c: Likewise.
8713 * graphite.c: Likewise.
8714 * haifa-sched.c: Likewise.
8715 * hw-doloop.c: Likewise.
8716 * ifcvt.c: Likewise.
8717 * init-regs.c: Likewise.
8718 * internal-fn.c: Likewise.
8719 * ipa-chkp.c: Likewise.
8720 * ipa-comdats.c: Likewise.
8721 * ipa-cp.c: Likewise.
8722 * ipa-devirt.c: Likewise.
8723 * ipa-icf-gimple.c: Likewise.
8724 * ipa-icf.c: Likewise.
8725 * ipa-inline-analysis.c: Likewise.
8726 * ipa-inline-transform.c: Likewise.
8727 * ipa-inline.c: Likewise.
8728 * ipa-polymorphic-call.c: Likewise.
8729 * ipa-profile.c: Likewise.
8730 * ipa-prop.c: Likewise.
8731 * ipa-pure-const.c: Likewise.
8732 * ipa-ref.c: Likewise.
8733 * ipa-reference.c: Likewise.
8734 * ipa-split.c: Likewise.
8735 * ipa-utils.c: Likewise.
8736 * ipa-visibility.c: Likewise.
8738 * ira-build.c: Likewise.
8739 * ira-color.c: Likewise.
8740 * ira-conflicts.c: Likewise.
8741 * ira-costs.c: Likewise.
8742 * ira-emit.c: Likewise.
8743 * ira-lives.c: Likewise.
8746 * langhooks.c: Likewise.
8748 * loop-doloop.c: Likewise.
8749 * loop-init.c: Likewise.
8750 * loop-invariant.c: Likewise.
8751 * loop-iv.c: Likewise.
8752 * loop-unroll.c: Likewise.
8753 * lower-subreg.c: Likewise.
8754 * lra-assigns.c: Likewise.
8755 * lra-coalesce.c: Likewise.
8756 * lra-constraints.c: Likewise.
8757 * lra-eliminations.c: Likewise.
8758 * lra-lives.c: Likewise.
8759 * lra-remat.c: Likewise.
8760 * lra-spills.c: Likewise.
8762 * lto-cgraph.c: Likewise.
8763 * lto-compress.c: Likewise.
8764 * lto-opts.c: Likewise.
8765 * lto-section-in.c: Likewise.
8766 * lto-section-out.c: Likewise.
8767 * lto-streamer-in.c: Likewise.
8768 * lto-streamer-out.c: Likewise.
8769 * lto-streamer.c: Likewise.
8771 * mode-switching.c: Likewise.
8772 * modulo-sched.c: Likewise.
8773 * omega.c: Likewise.
8774 * omp-low.c: Likewise.
8775 * optabs.c: Likewise.
8776 * opts-global.c: Likewise.
8777 * passes.c: Likewise.
8778 * plugin.c: Likewise.
8779 * postreload-gcse.c: Likewise.
8780 * postreload.c: Likewise.
8781 * predict.c: Likewise.
8782 * print-rtl.c: Likewise.
8783 * print-tree.c: Likewise.
8784 * profile.c: Likewise.
8786 * realmpfr.c: Likewise.
8787 * recog.c: Likewise.
8789 * reg-stack.c: Likewise.
8790 * regcprop.c: Likewise.
8791 * reginfo.c: Likewise.
8792 * regrename.c: Likewise.
8793 * regstat.c: Likewise.
8794 * reload.c: Likewise.
8795 * reload1.c: Likewise.
8796 * reorg.c: Likewise.
8797 * resource.c: Likewise.
8798 * rtl-chkp.c: Likewise.
8799 * rtlanal.c: Likewise.
8800 * rtlhooks.c: Likewise.
8801 * sanopt.c: Likewise.
8802 * sched-deps.c: Likewise.
8803 * sched-ebb.c: Likewise.
8804 * sched-rgn.c: Likewise.
8805 * sched-vis.c: Likewise.
8806 * sdbout.c: Likewise.
8807 * sel-sched-dump.c: Likewise.
8808 * sel-sched-ir.c: Likewise.
8809 * sel-sched.c: Likewise.
8811 * shrink-wrap.c: Likewise.
8812 * simplify-rtx.c: Likewise.
8813 * stack-ptr-mod.c: Likewise.
8815 * stor-layout.c: Likewise.
8816 * store-motion.c: Likewise.
8817 * stringpool.c: Likewise.
8818 * symtab.c: Likewise.
8819 * target-globals.c: Likewise.
8820 * targhooks.c: Likewise.
8821 * toplev.c: Likewise.
8822 * tracer.c: Likewise.
8823 * trans-mem.c: Likewise.
8824 * tree-affine.c: Likewise.
8825 * tree-browser.c: Likewise.
8826 * tree-call-cdce.c: Likewise.
8827 * tree-cfg.c: Likewise.
8828 * tree-cfgcleanup.c: Likewise.
8829 * tree-chkp-opt.c: Likewise.
8830 * tree-chkp.c: Likewise.
8831 * tree-chrec.c: Likewise.
8832 * tree-complex.c: Likewise.
8833 * tree-data-ref.c: Likewise.
8834 * tree-dfa.c: Likewise.
8835 * tree-diagnostic.c: Likewise.
8836 * tree-dump.c: Likewise.
8837 * tree-eh.c: Likewise.
8838 * tree-emutls.c: Likewise.
8839 * tree-if-conv.c: Likewise.
8840 * tree-inline.c: Likewise.
8841 * tree-into-ssa.c: Likewise.
8842 * tree-iterator.c: Likewise.
8843 * tree-loop-distribution.c: Likewise.
8844 * tree-nested.c: Likewise.
8845 * tree-nrv.c: Likewise.
8846 * tree-object-size.c: Likewise.
8847 * tree-outof-ssa.c: Likewise.
8848 * tree-parloops.c: Likewise.
8849 * tree-phinodes.c: Likewise.
8850 * tree-predcom.c: Likewise.
8851 * tree-pretty-print.c: Likewise.
8852 * tree-profile.c: Likewise.
8853 * tree-scalar-evolution.c: Likewise.
8854 * tree-sra.c: Likewise.
8855 * tree-ssa-address.c: Likewise.
8856 * tree-ssa-alias.c: Likewise.
8857 * tree-ssa-ccp.c: Likewise.
8858 * tree-ssa-coalesce.c: Likewise.
8859 * tree-ssa-copy.c: Likewise.
8860 * tree-ssa-copyrename.c: Likewise.
8861 * tree-ssa-dce.c: Likewise.
8862 * tree-ssa-dom.c: Likewise.
8863 * tree-ssa-dse.c: Likewise.
8864 * tree-ssa-forwprop.c: Likewise.
8865 * tree-ssa-ifcombine.c: Likewise.
8866 * tree-ssa-live.c: Likewise.
8867 * tree-ssa-loop-ch.c: Likewise.
8868 * tree-ssa-loop-im.c: Likewise.
8869 * tree-ssa-loop-ivcanon.c: Likewise.
8870 * tree-ssa-loop-ivopts.c: Likewise.
8871 * tree-ssa-loop-manip.c: Likewise.
8872 * tree-ssa-loop-niter.c: Likewise.
8873 * tree-ssa-loop-prefetch.c: Likewise.
8874 * tree-ssa-loop-unswitch.c: Likewise.
8875 * tree-ssa-loop.c: Likewise.
8876 * tree-ssa-math-opts.c: Likewise.
8877 * tree-ssa-operands.c: Likewise.
8878 * tree-ssa-phiopt.c: Likewise.
8879 * tree-ssa-phiprop.c: Likewise.
8880 * tree-ssa-pre.c: Likewise.
8881 * tree-ssa-propagate.c: Likewise.
8882 * tree-ssa-reassoc.c: Likewise.
8883 * tree-ssa-sccvn.c: Likewise.
8884 * tree-ssa-scopedtables.c: Likewise.
8885 * tree-ssa-sink.c: Likewise.
8886 * tree-ssa-strlen.c: Likewise.
8887 * tree-ssa-structalias.c: Likewise.
8888 * tree-ssa-tail-merge.c: Likewise.
8889 * tree-ssa-ter.c: Likewise.
8890 * tree-ssa-threadedge.c: Likewise.
8891 * tree-ssa-threadupdate.c: Likewise.
8892 * tree-ssa-uncprop.c: Likewise.
8893 * tree-ssa-uninit.c: Likewise.
8894 * tree-ssa.c: Likewise.
8895 * tree-ssanames.c: Likewise.
8896 * tree-stdarg.c: Likewise.
8897 * tree-streamer-in.c: Likewise.
8898 * tree-streamer-out.c: Likewise.
8899 * tree-streamer.c: Likewise.
8900 * tree-switch-conversion.c: Likewise.
8901 * tree-tailcall.c: Likewise.
8902 * tree-vect-data-refs.c: Likewise.
8903 * tree-vect-generic.c: Likewise.
8904 * tree-vect-loop-manip.c: Likewise.
8905 * tree-vect-loop.c: Likewise.
8906 * tree-vect-patterns.c: Likewise.
8907 * tree-vect-slp.c: Likewise.
8908 * tree-vect-stmts.c: Likewise.
8909 * tree-vectorizer.c: Likewise.
8910 * tree-vrp.c: Likewise.
8913 * ubsan.c: Likewise.
8914 * valtrack.c: Likewise.
8915 * value-prof.c: Likewise.
8916 * var-tracking.c: Likewise.
8917 * varasm.c: Likewise.
8918 * varpool.c: Likewise.
8919 * vmsdbgout.c: Likewise.
8920 * vtable-verify.c: Likewise.
8922 * wide-int.cc: Likewise.
8923 * xcoffout.c: Likewise.
8924 * config/aarch64/aarch64-builtins.c: Likewise.
8925 * config/aarch64/aarch64.c: Likewise.
8926 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8927 * config/alpha/alpha.c: Likewise.
8928 * config/arc/arc.c: Likewise.
8929 * config/arm/aarch-common.c: Likewise.
8930 * config/arm/arm-builtins.c: Likewise.
8931 * config/arm/arm-c.c: Likewise.
8932 * config/arm/arm.c: Likewise.
8933 * config/avr/avr-c.c: Likewise.
8934 * config/avr/avr-log.c: Likewise.
8935 * config/avr/avr.c: Likewise.
8936 * config/bfin/bfin.c: Likewise.
8937 * config/c6x/c6x.c: Likewise.
8938 * config/cr16/cr16.c: Likewise.
8939 * config/cris/cris.c: Likewise.
8940 * config/darwin-c.c: Likewise.
8941 * config/darwin.c: Likewise.
8942 * config/epiphany/epiphany.c: Likewise.
8943 * config/epiphany/mode-switch-use.c: Likewise.
8944 * config/epiphany/resolve-sw-modes.c: Likewise.
8945 * config/fr30/fr30.c: Likewise.
8946 * config/frv/frv.c: Likewise.
8947 * config/ft32/ft32.c: Likewise.
8948 * config/h8300/h8300.c: Likewise.
8949 * config/i386/i386-c.c: Likewise.
8950 * config/i386/i386.c: Likewise.
8951 * config/i386/msformat-c.c: Likewise.
8952 * config/i386/winnt-cxx.c: Likewise.
8953 * config/i386/winnt-stubs.c: Likewise.
8954 * config/i386/winnt.c: Likewise.
8955 * config/ia64/ia64-c.c: Likewise.
8956 * config/ia64/ia64.c: Likewise.
8957 * config/iq2000/iq2000.c: Likewise.
8958 * config/lm32/lm32.c: Likewise.
8959 * config/m32c/m32c-pragma.c: Likewise.
8960 * config/m32c/m32c.c: Likewise.
8961 * config/m32r/m32r.c: Likewise.
8962 * config/m68k/m68k.c: Likewise.
8963 * config/mcore/mcore.c: Likewise.
8964 * config/mep/mep-pragma.c: Likewise.
8965 * config/mep/mep.c: Likewise.
8966 * config/microblaze/microblaze-c.c: Likewise.
8967 * config/microblaze/microblaze.c: Likewise.
8968 * config/mips/mips.c: Likewise.
8969 * config/mmix/mmix.c: Likewise.
8970 * config/mn10300/mn10300.c: Likewise.
8971 * config/moxie/moxie.c: Likewise.
8972 * config/msp430/msp430-c.c: Likewise.
8973 * config/msp430/msp430.c: Likewise.
8974 * config/nds32/nds32-cost.c: Likewise.
8975 * config/nds32/nds32-fp-as-gp.c: Likewise.
8976 * config/nds32/nds32-intrinsic.c: Likewise.
8977 * config/nds32/nds32-isr.c: Likewise.
8978 * config/nds32/nds32-md-auxiliary.c: Likewise.
8979 * config/nds32/nds32-memory-manipulation.c: Likewise.
8980 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8981 * config/nds32/nds32-predicates.c: Likewise.
8982 * config/nds32/nds32.c: Likewise.
8983 * config/nios2/nios2.c: Likewise.
8984 * config/nvptx/nvptx.c: Likewise.
8985 * config/pa/pa.c: Likewise.
8986 * config/pdp11/pdp11.c: Likewise.
8987 * config/rl78/rl78-c.c: Likewise.
8988 * config/rl78/rl78.c: Likewise.
8989 * config/rs6000/rs6000-c.c: Likewise.
8990 * config/rs6000/rs6000.c: Likewise.
8991 * config/rx/rx.c: Likewise.
8992 * config/s390/s390-c.c: Likewise.
8993 * config/s390/s390.c: Likewise.
8994 * config/sh/sh-c.c: Likewise.
8995 * config/sh/sh-mem.cc: Likewise.
8996 * config/sh/sh.c: Likewise.
8997 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8998 * config/sh/sh_treg_combine.cc: Likewise.
8999 * config/sol2-c.c: Likewise.
9000 * config/sol2-cxx.c: Likewise.
9001 * config/sol2-stubs.c: Likewise.
9002 * config/sol2.c: Likewise.
9003 * config/sparc/sparc-c.c: Likewise.
9004 * config/sparc/sparc.c: Likewise.
9005 * config/spu/spu-c.c: Likewise.
9006 * config/spu/spu.c: Likewise.
9007 * config/stormy16/stormy16.c: Likewise.
9008 * config/tilegx/mul-tables.c: Likewise.
9009 * config/tilegx/tilegx-c.c: Likewise.
9010 * config/tilegx/tilegx.c: Likewise.
9011 * config/tilepro/mul-tables.c: Likewise.
9012 * config/tilepro/tilepro-c.c: Likewise.
9013 * config/tilepro/tilepro.c: Likewise.
9014 * config/v850/v850-c.c: Likewise.
9015 * config/v850/v850.c: Likewise.
9016 * config/vax/vax.c: Likewise.
9017 * config/visium/visium.c: Likewise.
9018 * config/vms/vms-c.c: Likewise.
9019 * config/vms/vms.c: Likewise.
9020 * config/vxworks.c: Likewise.
9021 * config/xtensa/xtensa.c: Likewise.
9023 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
9025 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
9026 Remove operand constraints. Change operand 2 predicate to
9027 nonmemory operand. Limit const_int values to mode bitsize. Only
9028 allow const_int values less than 32 when optimizing for size.
9029 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
9030 Remove operand constraints.
9031 (*bt<mode>): Use SImode for const_int values less than 32.
9032 (regmode): Remove mode attribute.
9034 2015-07-07 Anatoly Sokolov <aesok@post.ru>
9036 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9037 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
9038 moxie_legitimate_address_p): New functions.
9039 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9041 2015-07-07 Tom de Vries <tom@codesourcery.com>
9043 PR tree-optimization/66642
9044 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
9045 header comment. Rename split_edge variable to edge_at_split. Split
9046 exit edge to create new loop exit bb. Insert loop exit phis in new
9049 2015-07-07 Tom de Vries <tom@codesourcery.com>
9051 * tree-cfg.c (get_virtual_phi): New function.
9052 * tree-cfg.h (get_virtual_phi): Declare.
9053 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
9054 (rewrite_virtuals_into_loop_closed_ssa): New function.
9055 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
9057 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
9058 (transform_to_exit_first_loop_alt): Use
9059 rewrite_virtuals_into_loop_closed_ssa.
9061 2015-07-07 Richard Biener <rguenther@suse.de>
9063 * fold-const.c (fold_binary_loc): Move
9064 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
9065 * match.pd: ... here.
9066 Add (X * C1) % C2 -> 0 simplification pattern derived from
9069 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
9072 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
9073 change for target/65249.
9075 2015-07-07 Paulo Matos <pmatos@broadcom.com>
9077 * symtab.c (address_matters_1): Fix typo in comment above.
9078 (can_increase_alignment_p): Likewise.
9080 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9082 * function.c (free_after_compilation): Clear PROP_cfg in
9085 2015-07-07 Richard Biener <rguenther@suse.de>
9087 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
9089 (add_control_edge): Remove excessive vertical space in dumping.
9090 (process_ssa_edge_worklist): Simulate at most one statement and
9091 return whether we did. Do not simulate PHIs if they are in a
9092 BB not yet simulated.
9093 (ssa_propagate): Adjust to always drain the BB worklist whenever
9094 a BB is available there, likewise the VARYING edges list before
9095 the interesting edge list.
9097 2015-07-07 Christian Bruel <christian.bruel@st.com>
9100 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
9102 2015-07-07 Richard Biener <rguenther@suse.de>
9105 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
9108 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9110 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
9111 modes for operands 0 and 3. Use SImode for operands 2 and 3.
9112 Copy operand 0 to a temporary if !ext_register_operand. Remove
9113 ancient extract_bit_field workaround.
9114 (insv<mode>_1): Rename from mov<mode>_insv_1.
9115 (*insvqi): Rename from *movqi_insv_2.
9116 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
9117 for renamed insvsi_1.
9118 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
9120 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
9122 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
9123 call to nvptx_reorg_subreg.
9125 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
9127 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
9128 * graphite-dependencies.c, graphite-interchange.c,
9129 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
9130 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
9133 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
9135 * match.pd: Remove element_mode inside HONOR_*.
9136 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
9137 (~X | X -> -1, ~X ^ X -> -1): Merge.
9138 * tree.c (build_each_one_cst): New function.
9139 * tree.h (build_each_one_cst): Likewise.
9141 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9143 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9146 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
9148 * config.gcc <mips*-*-*>: Add fused-madd.opt.
9149 * config/mips/mips.opt (mfused-madd): Remove.
9150 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
9151 * config/mips/mips.h (TARGET_MIPS8000): New.
9152 (ISA_HAS_FP_MADD4_MSUB4): Remove.
9153 (ISA_HAS_FP_MADDF_MSUBF): Remove.
9154 (ISA_HAS_FP_MADD3_MSUB3): Remove.
9155 (ISA_HAS_NMADD4_NMSUB4): Remove.
9156 (ISA_HAS_NMADD3_NMSUB3): Remove.
9157 (ISA_HAS_FUSED_MADD4): New.
9158 (ISA_HAS_UNFUSED_MADD4): New.
9159 (ISA_HAS_FUSED_MADDF): New.
9160 (ISA_HAS_FUSED_MADD3): New.
9161 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
9162 (*fma<mode>4_madd3) New.
9163 (*fma<mode>4_madd4) New.
9164 (*fma<mode>4_maddf) New.
9166 (*fms<mode>4_msub3) New.
9167 (*fms<mode>4_msub4) New.
9169 (*fnma<mode>4_nmadd3) New.
9170 (*fnma<mode>4_nmadd4) New.
9172 (*fnms<mode>4_nmsub3) New.
9173 (*fnms<mode>4_nmsub4) New.
9174 (*madd4<mode>) Modify to be unfused only.
9175 (*msub4<mode>) Modify to be unfused only.
9176 (*nmadd4<mode>) Modify to be unfused only.
9177 (*nmsub4<mode>) Modify to be unfused only.
9178 (*madd3<mode>) Remove.
9179 (*msub3<mode>) Remove.
9180 (*nmadd3<mode>) Remove.
9181 (*nmsub3<mode>) Remove.
9182 (*nmadd3<mode>_fastmath) Remove.
9183 (*nmsub3<mode>_fastmath) Remove.
9184 (*nmadd4<mode>_fastmath) Update condition.
9185 (*nmsub4<mode>_fastmath) Update condition.
9187 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9190 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
9191 alignment attribute, exploring one level down for records and arrays.
9193 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9195 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
9196 modes for operands 0 and 1. Use SImode for operands 2 and 3.
9197 Copy operand 1 to a temporary if !ext_register_operand. Remove
9198 ancient extract_bit_field workaround.
9199 (*extv<mode>): Rename from *mov<mode>_extv_1.
9200 (*extvqi): Rename from *movqi_extv_1.
9201 (extzv<mode>): Rename from extzv. Use SWI248 modes for
9202 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
9203 to a temporary if !ext_register_operand. Remove ancient
9204 extract_bit_field workaround.
9205 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
9206 (*extzvqi): Rename from *movqi_extzv_2.
9207 (*testqi_ext_3): Remove modes from const_int_operand predicated
9208 operands. Add "n" constraint.
9209 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
9210 operand. Add "J" constraint.
9211 (*btsq, *btrq, *btcq peephole2s): Remove mode from
9212 const_0_to_63 predicated operand.
9213 (regmode): New insn attribute.
9214 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
9215 to nonmemory_operand. Use regmode insn attribute.
9216 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
9217 (*jcc_bt<mode>_mask): Remove mode from operand 3.
9218 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
9219 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
9220 operands. Use "N" constraint instead of "n".
9222 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9224 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
9226 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9229 * config/i386/i386.c (iamcu_cost): New.
9230 (m_IAMCU): Likewise.
9231 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
9232 (processor_target_table): Add an entry for "iamcu".
9233 (processor_alias_table): Likewise.
9234 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
9235 (ix86_adjust_cost): Likewise.
9236 (ia32_multipass_dfa_lookahead): Likewise.
9237 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
9238 * config/i386/x86-tune.def: Updated for m_IAMCU.
9240 2015-07-06 Richard Biener <rguenther@suse.de>
9242 PR tree-optimization/66772
9243 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
9244 values are available in the PHI node BB when there are
9245 still unexecutable edges.
9247 2015-07-06 Richard Biener <rguenther@suse.de>
9249 PR tree-optimization/66767
9250 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
9251 Make sure to build the alignment test on a SSA name without
9252 final alignment info valid only if the alignment test
9255 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
9258 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
9259 loop start when inserting LSETUP.
9261 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9264 * config/i386/i386.c (ix86_option_override_internal): Allow
9265 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
9267 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9269 * read-md.c (decimal_string): Rename to ...
9270 (md_decimal_string): ... this.
9271 (handle_enum): Reflect this.
9273 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9276 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
9278 2015-07-06 Richard Biener <rguenther@suse.de>
9281 * match.pd: Add missing constraint of y to REAL_CST in
9282 REAL_CST - x CMP y to y - CST CMP x simplification.
9284 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
9286 PR tree-optimization/66757
9287 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
9289 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
9290 Sandra Loosemore <sandra@codesourcery.com>
9292 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
9293 Delete extern declaration.
9294 (gprel_constant_p): Add extern declaration.
9295 * config/nios2/constraints.md ("S"): Use gprel_constant_p
9296 instead of nios2_symbol_ref_in_small_data_p.
9297 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
9298 (nios2_symbol_ref_in_small_data_p): Make static.
9299 (gprel_constant_p): Make non-static.
9301 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9303 * doc/fragments.texi (Target Fragment): Convert debian.org
9305 * doc/install.texi (Configuration): Ditto.
9307 2015-07-05 Jakub Jelinek <jakub@redhat.com>
9309 PR tree-optimization/66718
9310 * tree-vect-stmts.c (vectorizable_call): Replace uses of
9311 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
9313 PR tree-optimization/66718
9314 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
9315 vectorizable_load, vectorizable_condition): Move vectype,
9316 nunits, ncopies computation after checking what kind of statement
9319 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9321 * target-insns.def (extv, extzv, insv): New targetm instruction
9323 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
9325 * recog.c (simplify_while_replacing): Likewise.
9327 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9329 * target-insns.def (doloop_begin, doloop_end): New targetm
9330 instruction patterns.
9331 * loop-init.c: Include target.h.
9332 (pass_loop2::gate): Use the new targetm patterns instead of
9333 HAVE_*/gen_* interface.
9334 (pass_rtl_doloop::gate): Likewise.
9335 (pass_rtl_doloop::execute): Remove preprocessor condition.
9336 * hw-doloop.c: Build unconditionally.
9337 * loop-doloop.c: Likewise.
9338 (doloop_optimize): Use the new targetm patterns instead of
9339 HAVE_*/gen_* interface.
9340 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
9341 * modulo-sched.c (doloop_register_get): Likewise.
9343 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9345 * target-insns.def (clear_cache): New targetm instruction pattern.
9346 * builtins.c (expand_builtin___clear_cache): Use it instead of
9347 HAVE_*/gen_* interface.
9349 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9351 * target-insns.def (allocate_stack, check_stack, probe_stack)
9352 (probe_stack_address, split_stack_prologue, split_stack_space_check):
9353 New targetm instruction patterns.
9354 * explow.c (allocate_dynamic_stack_space): Use them instead of
9355 HAVE_*/gen_* interface.
9356 (emit_stack_probe): Likewise.
9357 (probe_stack_range): Likewise.
9358 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9360 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9362 * target-insns.def (stack_protect_set, stack_protect_test): New
9363 targetm instruction patterns.
9364 * cfgexpand.c (stack_protect_prologue): Use them instead of
9365 HAVE_*/gen_* interface.
9366 * function.c (stack_protect_epilogue): Likewise.
9368 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9370 * expr.h (gen_move_insn_uncast): Delete.
9371 * expr.c (gen_move_insn_uncast): Delete.
9373 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9375 * target-insns.def (restore_stack_block, restore_stack_function)
9376 (restore_stack_nonlocal, save_stack_block, save_stack_function)
9377 (save_stack_nonlocal): New targetm instruction patterns.
9378 * builtins.c (expand_builtin_apply): Use them instead of
9379 HAVE_*/gen_* interface.
9380 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
9382 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9384 * target-insns.def (trap): New targetm instruction pattern.
9385 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
9387 * explow.c (allocate_dynamic_stack_space): Likewise.
9388 * ifcvt.c (find_if_header): Likewise.
9390 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9392 * target-insns.def (prefetch): New targetm instruction pattern.
9393 * tree-ssa-loop-prefetch.c: Include targeth.
9394 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
9395 of HAVE_*/gen_* interface.
9396 * builtins.c (expand_builtin_prefetch): Likewise.
9397 * toplev.c (process_options): Likewise.
9399 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9401 * target-insns.def (untyped_call, untyped_return): New targetm
9402 instruction patterns.
9403 * builtins.c (expand_builtin_apply): Use them instead of
9404 HAVE_*/gen_* interface.
9405 (result_vector): Define unconditionally.
9407 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9409 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
9410 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
9411 (nonlocal_goto_receiver): New targetm instruction patterns.
9412 * builtins.c (expand_builtin_setjmp_setup): Use them instead
9413 of HAVE_*/gen_* interface.
9414 (expand_builtin_setjmp_receiver): Likewise.
9415 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
9416 * except.c (expand_dw2_landing_pad_for_region): Likewise.
9418 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9420 * target.def: Add code_for_* hooks.
9421 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
9422 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
9423 * target-insns.def (casesi, tablejump): New targetm instruction
9425 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
9426 (do_tablejump): Likewise.
9427 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
9428 (expand_sjlj_dispatch_table): Likewise.
9429 * targhooks.c (default_case_values_threshold): Likewise.
9431 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
9433 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
9434 Use rtx_insn * instead of rtx.
9435 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
9436 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
9437 (nios2_call_tls_get_addr): Likewise.
9438 (nios2_emit_expensive_div): Likewise.
9439 (nios2_emit_move_sequence): Change return type to bool.
9440 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
9441 Change return type to bool.
9443 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9446 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
9448 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
9451 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
9452 of register_operand. Remove constraint.
9454 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
9456 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
9459 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
9461 * attribs.c (decl_attributes): Guard inform with the return value
9462 of the preceding warning.
9464 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9466 * doc/invoke.texi (moverride): Move to correct section.
9468 2015-07-03 Richard Biener <rguenther@suse.de>
9470 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
9472 (dt_operand::gen_gimple_expr): After valueizing operands
9473 re-canonicalize operand order for commutative tree codes.
9475 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
9478 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
9480 (__crc32w): Likewise.
9481 (__crc32d): Likewise.
9482 (__rdpmc): Likewise.
9483 (__rdtscp): Likewise.
9485 (_rdtscp): Likewise.
9486 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
9489 2015-07-03 Richard Biener <rguenther@suse.de>
9491 * fold-const.c (fold_mathfn_compare): Remove.
9492 (fold_inf_compare): Likewise.
9493 (fold_comparison): Move floating point comparison simplifications...
9494 * match.pd: ... to patterns here. Introduce simple_comparisons
9495 operator list and use it for patterns formerly in fold_comparison.
9497 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9499 PR tree-optimization/66119
9500 * toplev.c (process_options): Don't set up default values for
9501 the sra_max_scalarization_size_{speed,size} parameters.
9502 * tree-sra (analyze_all_variable_accesses): If no values
9503 have been set for the sra_max_scalarization_size_{speed,size}
9504 parameters, call get_move_ratio to get target defaults.
9506 2015-07-03 Richard Biener <rguenther@suse.de>
9508 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
9509 * match.pd: ... here.
9511 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
9514 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
9515 is not actually the default on FreeBSD.
9517 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9519 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
9521 (CMPGE_8HI): Likewise.
9522 (CMPGE_4SI): Likewise.
9523 (CMPGE_2DI): Likewise.
9524 (CMPGE_U16QI): Likewise.
9525 (CMPGE_U8HI): Likewise.
9526 (CMPGE_U4SI): Likewise.
9527 (CMPGE_U2DI): Likewise.
9528 (CMPLE_16QI): Likewise.
9529 (CMPLE_8HI): Likewise.
9530 (CMPLE_4SI): Likewise.
9531 (CMPLE_2DI): Likewise.
9532 (CMPLE_U16QI): Likewise.
9533 (CMPLE_U8HI): Likewise.
9534 (CMPLE_U4SI): Likewise.
9535 (CMPLE_U2DI): Likewise.
9536 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9537 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
9538 ALTIVEC_BUILTIN_VEC_CMPLE.
9539 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
9540 floating-point vector modes.
9541 (vector_nlt<mode>): New define_expand.
9542 (vector_nltu<mode>): Likewise.
9543 (vector_ngt<mode>): Likewise.
9544 (vector_ngtu<mode>): Likewise.
9546 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9548 PR rtl-optimization/66706
9549 * combine.c (make_compound_operation): If an AND of SUBREG of
9550 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
9552 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
9554 * tree-pass.h (make_pass_ch_vect): New.
9555 * passes.def: Add pass_ch_vect just before pass_if_conversion.
9557 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
9558 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
9559 make_pass_ch_vect): New.
9560 (pass_ch): Extend ch_base.
9562 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
9563 (ch_base::copy_headers): ...here.
9565 2015-07-02 Richard Biener <rguenther@suse.de>
9567 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
9568 * fold-const.c (get_pointer_modulus_and_residue): Remove.
9569 (fold_binary_loc): Implement (T)ptr & CST in terms of
9570 get_pointer_alignment_1.
9571 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
9572 Make sure to build the alignment test on a SSA name without
9573 final alignment info valid only after the prologue.
9575 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
9577 * config/cris/cris.md ("epilogue"): Remove condition.
9578 ("prologue"): Ditto.
9580 2015-07-02 Richard Biener <rguenther@suse.de>
9582 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
9583 parameter to record a condition that is false.
9584 (record_conditions): When recording an extra NE_EXPR that is
9585 true also record a EQ_EXPR that is false.
9587 2015-07-02 Bin Cheng <bin.cheng@arm.com>
9589 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
9590 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
9591 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
9592 (set_iv, find_interesting_uses_address, add_candidate_1): New
9593 argument to alloc_iv.
9594 (find_interesting_uses_op, find_interesting_uses_cond): Don't
9595 duplicate struct iv.
9596 (free_loop_data): Don't free struct iv explicitly.
9597 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
9599 2015-07-01 DJ Delorie <dj@redhat.com>
9601 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
9603 (SUPPORTS_DISCRIMINATOR): Define.
9605 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9608 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
9609 there are no CALLs in the same pattern.
9611 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9613 PR rtl-optimization/61047
9614 * rtlanal.c (get_initial_register_offset): New function.
9615 (rtx_addr_can_trap_p_1): Check offsets of stack references.
9617 2015-07-01 Richard Biener <rguenther@suse.de>
9619 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
9620 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
9621 ~X CMP C -> X CMP' ~C to ...
9622 * match.pd: ... patterns here.
9624 2015-07-01 Nick Clifton <nickc@redhat.com>
9626 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
9627 a 16-bit value into a 20-bit memory slot.
9629 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9631 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9632 "aarch64_tiny", "aarch64_small", "aarch64_large",
9633 "aarch64_little_endian", "aarch64_big_endian".
9635 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9637 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
9638 Document "aarch64_small_fpic".
9640 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9642 * configure.ac: Add check for aarch64 assembler -fpic relocation
9644 * configure: Regenerate.
9645 * config.in: Regenerate.
9646 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
9647 to -fPIC if not support of -fpic relocation modifier in assembler.
9649 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9652 * rtl.c (classify_insn): Handle returns in PARALLELs.
9654 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
9657 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
9658 to true if the function is nested and if not optimizing.
9659 (convert_local_omp_clauses): Initialize need_frame to true if the
9660 function contains nested functions and if not optimizing.
9662 2015-07-01 Richard Biener <rguenther@suse.de>
9664 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
9665 (X & Y) ^ Y -> ~X & Y transforms to ...
9666 * match.pd: ... here.
9668 2015-07-01 Richard Biener <rguenther@suse.de>
9670 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
9671 of converts to avoid uninteresting noise from the conversion
9672 simplifying patterns.
9674 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
9676 * config/c6x/c6x.c (try_rename_operands): Do not depend on
9677 gcc_assert evaluating its argument for side-effect.
9679 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
9682 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
9685 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9687 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
9688 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
9689 (hash_scc): Add this_ref_p and ref_p parameters and pass them
9690 to the inner DFS walk.
9692 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9694 * target-insns.def (jump): New targetm instruction pattern.
9695 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
9696 instead of gen_jump.
9697 (fix_up_crossing_landing_pad): Likewise.
9698 (add_labels_and_missing_jumps): Likewise.
9699 (fix_crossing_conditional_branches): Likewise.
9700 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9701 (force_nonfallthru_and_redirect): Likewise.
9702 * cse.c (cse_insn): Likewise.
9703 * expmed.c (expand_divmod): Likewise.
9704 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
9705 * haifa-sched.c (init_before_recovery): Likewise.
9706 (sched_create_recovery_edges): Likewise.
9707 * ifcvt.c (find_cond_trap): Likewise.
9708 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
9709 (expand_float, expand_fix): Likewise.
9710 * stmt.c (emit_jump): Likewise.
9712 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9714 * defaults.h (HAVE_load_multiple, gen_load_multiple)
9715 (HAVE_store_multiple, gen_store_multiple): Delete.
9716 * target-insns.def (load_multiple, store_multiple): New targetm
9717 instruction patterns.
9718 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
9719 of HAVE_*/gen_* interface.
9721 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9723 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
9724 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
9725 (gen_mem_signal_fence): Delete.
9726 * target-insns.def (mem_signal_fence, mem_thread_fence)
9727 (memory_barrier): New targetm instruction patterns.
9728 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
9730 (expand_mem_signal_fence): Likewise.
9732 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9734 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
9735 * target-insns.def (epilogue, prologue, sibcall_prologue): New
9736 targetm instruction patterns.
9737 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
9739 * calls.c (expand_call): Likewise.
9740 * cfgrtl.c (cfg_layout_finalize): Likewise.
9741 * df-scan.c (df_get_entry_block_def_set): Likewise.
9742 (df_get_exit_block_use_set): Likewise.
9743 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
9744 * final.c (final_start_function): Likewise.
9745 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9746 (reposition_prologue_and_epilogue_notes): Likewise.
9747 * reorg.c (find_end_label): Likewise.
9748 * toplev.c (process_options): Likewise.
9750 2015-06-30 David Malcolm <dmalcolm@redhat.com>
9752 * typed-splay-tree.h: New file.
9754 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
9757 * lra-int.h (lra_substitute_pseudo): Add a parameter.
9758 (lra_substitute_pseudo_within_insn): Ditto.
9759 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
9761 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
9762 to lra_substitute_pseudo.
9763 * lra-lives.c (process_bb_lives): Add an argument to
9764 lra_substitute_pseudo_within_insn call.
9765 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
9766 argument to lra_substitute_pseudo and
9767 lra_substitute_pseudo_within_insn calls.
9768 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
9770 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9772 * configure: Regenerated.
9774 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9776 * config.gcc: Support i[34567]86-*-elfiamcu target.
9777 * config/i386/iamcu.h: New.
9778 * config/i386/i386.opt: Add -miamcu.
9779 * doc/invoke.texi: Document -miamcu.
9780 * common/config/i386/i386-common.c (ix86_handle_option): Turn
9781 off x87/MMX/SSE/AVX codegen for -miamcu.
9782 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9783 __iamcu/__iamcu__ for -miamcu.
9784 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
9785 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
9786 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
9787 * config/i386/i386.c (ix86_option_override_internal): Ignore and
9788 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
9789 MCU by default. Default long double to 64-bit for Intel MCU.
9790 Turn on -freg-struct-return for Intel MCU. Issue an error when
9791 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
9793 (function_arg_advance_32): Pass value whose size is no larger
9794 than 8 bytes in registers for Intel MCU.
9795 (function_arg_32): Likewise.
9796 (ix86_return_in_memory): Return value whose size is no larger
9797 than 8 bytes in registers for Intel MCU.
9798 (iamcu_alignment): New function.
9799 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
9801 (ix86_local_alignment): Don't increase alignment for Intel MCU.
9802 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
9805 2015-06-30 Marek Polacek <polacek@redhat.com>
9807 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
9808 both operands of the resulting expression.
9810 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
9811 the final expression with the operand's type and then convert
9812 it to the type of the expression.
9814 2015-06-30 Richard Biener <rguenther@suse.de>
9816 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
9817 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
9818 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
9819 * match.pd: ... to patterns here.
9821 2015-06-30 Richard Biener <rguenther@suse.de>
9823 PR tree-optimization/66704
9824 * tree-vect-data-refs.c (vect_setup_realignment): Use
9825 make_ssa_name for non-SSA name source.
9827 2015-06-30 Jakub Jelinek <jakub@redhat.com>
9830 * omp-low.c (simd_clone_adjust): Handle addressable linear
9831 or uniform parameters or non-gimple type uniform parameters.
9833 2015-06-30 Richard Biener <rguenther@suse.de>
9835 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
9836 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
9837 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
9838 * match.pd: ... here.
9839 Add a few cases of A - B -> A + (-B) when B "easily" negates.
9840 Move (x & y) | x -> x and friends before
9841 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
9843 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9845 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
9846 -mfix-ut699 is not specified.
9847 (leon3_load): Rename into...
9848 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
9851 2015-06-30 Marek Polacek <polacek@redhat.com>
9853 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
9854 * match.pd: ... here.
9856 2015-06-30 Richard Biener <rguenther@suse.de>
9858 * target-insns.def (canonicalize_funcptr_for_compare): Add.
9859 * fold-const.c (build_range_check): Replace uses of
9860 HAVE_canonicalize_funcptr_for_compare.
9861 (fold_widened_comparison): Likewise.
9862 (fold_sign_changed_comparison): Likewise.
9863 * dojump.c: Include "target.h".
9864 (do_compare_and_jump): Replace uses of
9865 HAVE_canonicalize_funcptr_for_compare and
9866 gen_canonicalize_funcptr_for_compare.
9867 * expr.c (do_store_flag): Likewise.
9869 2015-06-30 Tom de Vries <tom@codesourcery.com>
9871 PR tree-optimization/66652
9872 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
9873 max_loop_iterations to determine if nit + 1 overflows.
9875 2015-06-30 Richard Biener <rguenther@suse.de>
9877 * tree-vrp.c (register_edge_assert_for_2): Also register
9878 asserts for dominating conversion results.
9880 2015-06-30 Bin Cheng <bin.cheng@arm.com>
9882 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
9885 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
9888 * configure.ac: Fix filds and fildq test for 64-bit.
9889 * configure: Regenerated.
9891 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
9893 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
9894 (nvptx_reorg): Here. Keep the non-subreg pieces.
9896 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
9898 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
9899 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9901 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
9903 * config/i386/i386.md (*jcc_1): Use %! in asm template.
9904 Set attribute "length_nobnd" instead of "length".
9907 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
9909 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
9911 * config/nios2/nios2.c (nios2_delegitimize_address): Make
9912 assert less restrictive.
9914 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9917 * cgraphunit.c (cgraph_node::finalize_function): Do not call
9918 do_warn_unused_parameter.
9919 * function.c (do_warn_unused_parameter): Move from here.
9920 * function.h (do_warn_unused_parameter): Do not declare.
9922 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9925 * gcc.target/arm/armv-sync-comp-swap.c: New.
9926 * gcc.target/arm/armv-sync-op-acquire.c: New.
9927 * gcc.target/arm/armv-sync-op-full.c: New.
9928 * gcc.target/arm/armv-sync-op-release.c: New.
9930 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9933 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
9934 initial acquire barrier with final barrier.
9936 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9939 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
9940 initial acquire barrier with final barrier.
9942 2015-06-29 Richard Henderson <rth@redhat.com>
9944 * config/i386/constraints.md (Bf): New constraint.
9945 * config/i386/i386-c.c (ix86_target_macros): Define
9946 __GCC_ASM_FLAG_OUTPUTS__.
9947 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
9949 * doc/extend.texi (FlagOutputOperands): Document them.
9951 2015-06-29 Jiong Wang <jiong.wang@arm.com>
9953 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
9954 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
9956 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
9957 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
9958 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
9959 (aarch64_symbol_context): Ditto.
9960 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
9961 and use new pattern name.
9962 (aarch64_expand_mov_immediate): Ditto.
9963 (aarch64_print_operand): Ditto.
9964 (aarch64_classify_tls_symbol): Ditto.
9966 2015-06-29 Marek Polacek <polacek@redhat.com>
9967 Marc Glisse <marc.glisse@inria.fr>
9969 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
9970 * match.pd: ... pattern here.
9972 2015-06-29 Tom de Vries <tom@codesourcery.com>
9974 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
9977 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9979 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
9980 feature description, split out the native option, add a link to
9981 the feature documentation, rearrange and slightly rewrite text.
9982 (Aarch64 options, -mcpu): Likewise.
9983 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
9984 +rdma implies Adv. SIMD.
9986 2015-06-29 Marek Polacek <polacek@redhat.com>
9989 * function.c (stack_protect_epilogue): Remove a cast to int.
9990 * doc/invoke.texi: Update -Wswitch-bool description.
9992 2015-06-29 Richard Biener <rguenther@suse.de>
9994 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
9995 * fold-const.c (fold_binary_loc): Move &A - &B simplification
9996 via ptr_difference_const ...
9997 * match.pd: ... here.
9998 When matching (X ^ Y) == Y also match with swapped operands.
10000 2015-06-29 Richard Biener <rguenther@suse.de>
10002 * lto-streamer.h (LTO_major_version): Bump to 5.
10004 2015-06-29 Richard Biener <rguenther@suse.de>
10006 PR tree-optimization/66677
10007 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
10008 STMT_VINFO_VEC_STMT clobbering less strict.
10010 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10012 PR middle-end/64130
10013 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
10014 division, compute max and min when value ranges for dividend and
10015 divisor are available.
10017 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
10018 Sandra Loosemore <sandra@codesourcery.com>
10020 * regrename.h (regrename_do_replace): Change to return bool.
10021 * regrename.c (rename_chains): Check return value of
10022 regname_do_replace.
10023 (regrename_do_replace): Re-validate the modified insns and
10024 return bool status.
10025 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10026 Update to match rename_chains changes.
10027 * config/c6x/c6x.c (try_rename_operands): Assert that
10028 regrename_do_replace returns true.
10030 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
10032 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
10033 operand 2 here. Use copy_addr_to_reg to copy non-index
10034 register operand 2 to a temporary.
10035 (<mode>_stx): Ditto for operand 1.
10036 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
10037 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
10038 (ix86_store_bounds): Ditto.
10040 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
10042 * print-tree.c (print_node) [TREE_VEC]: Print its length.
10044 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
10046 * gimple.c (gimple_call_set_fndecl): Remove.
10047 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
10048 build1_loc directly instead of build_fold_addr_expr_loc.
10050 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10052 * hash-map.h (hash_map::traverse): Use the definition of the
10053 Key typedef rather than the typedef itself.
10055 2015-06-26 Martin Jambor <mjambor@suse.cz>
10058 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
10059 NULL instead of calling dump_enabled_p.
10061 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10063 * config/aarch64/aarch64.opt: (override): New.
10064 * doc/invoke.texi (override): Document.
10065 * config/aarch64/aarch64.c (aarch64_flag_desc): New
10066 (aarch64_fusible_pairs): Likewise.
10067 (aarch64_tuning_flags): Likewise.
10068 (aarch64_tuning_override_function): Likewise.
10069 (aarch64_tuning_override_functions): Likewise.
10070 (aarch64_parse_one_option_token): Likewise.
10071 (aarch64_parse_boolean_options): Likewise.
10072 (aarch64_parse_fuse_string): Likewise.
10073 (aarch64_parse_tune_string): Likewise.
10074 (aarch64_parse_one_override_token): Likewise.
10075 (aarch64_parse_override_string): Likewise.
10076 (aarch64_override_options): Parse the -override string if it
10079 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10081 * config/aarch64/aarch64-protos.h (tune_params): Remove
10082 const from members.
10083 (aarch64_tune_params): Remove const, change to no longer be
10085 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
10086 change to no longer be a pointer, initialize to generic_tunings.
10087 (aarch64_min_divisions_for_recip_mul): Change dereference of
10088 aarch64_tune_params to member access.
10089 (aarch64_reassociation_width): Likewise.
10090 (aarch64_rtx_mult_cost): Likewise.
10091 (aarch64_address_cost): Likewise.
10092 (aarch64_branch_cost): Likewise.
10093 (aarch64_rtx_costs): Likewise.
10094 (aarch64_register_move_cost): Likewise.
10095 (aarch64_memory_move_cost): Likewise.
10096 (aarch64_sched_issue_rate): Likewise.
10097 (aarch64_builtin_vectorization_cost): Likewise.
10098 (aarch64_override_options): Take a copy of the selected tuning
10099 struct in to aarch64_tune_params, rather than just setting
10100 a pointer, change dereferences of aarch64_tune_params to member
10102 (aarch64_override_options_after_change): Change dereferences of
10103 aarch64_tune_params to member access.
10104 (aarch64_macro_fusion_p): Likewise.
10105 (aarch_macro_fusion_pair_p): Likewise.
10106 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
10108 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10110 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
10111 (aarch64_tune_flags): Likewise.
10112 (AARCH64_TUNE_FMA_STEERING): Likewise.
10113 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
10114 to AARCH64_FL_USE_FMA_STEERING_PASS.
10115 (cortex-a57.cortex-a53): Likewise.
10116 (cortex-a72): Use cortexa72_tunings.
10117 (cortex-a72.cortex-a53): Likewise.
10118 (exynos-m1): Likewise.
10119 * config/aarch64/aarch64-protos.h (tune_params): Add
10120 a field: extra_tuning_flags.
10121 * config/aarch64/aarch64-tuning-flags.def: New.
10122 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
10123 (aarch64_extra_tuning_flags): Likewise.
10124 (aarch64_tune_params): Declare here.
10125 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
10126 (cortexa53_tunings): Likewise.
10127 (cortexa57_tunings): Likewise.
10128 (thunderx_tunings): Likewise.
10129 (xgene1_tunings): Likewise.
10130 (cortexa72_tunings): New.
10131 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
10132 (gate): Check against aarch64_tune_params.
10133 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
10136 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10138 * config/aarch64/aarch64-fusion-pairs.def: New.
10139 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
10140 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
10141 aarch64_fusion_pairs.
10142 (AARCH64_FUSE_MOV_MOVK): Likewise.
10143 (AARCH64_FUSE_ADRP_ADD): Likewise.
10144 (AARCH64_FUSE_MOVK_MOVK): Likewise.
10145 (AARCH64_FUSE_ADRP_LDR): Likewise.
10146 (AARCH64_FUSE_CMP_BRANCH): Likewise.
10148 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10150 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
10151 SYMBOL_SMALL_GOT_28K.
10152 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
10153 relocation modifiers.
10154 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
10155 (ldr_got_small_28k_<mode>): New.
10156 (ldr_got_small_28k_sidi): New.
10157 * config/aarch64/iterators.md (got_modifier): New mode iterator.
10158 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
10159 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10160 SYMBOL_SMALL_GOT_28K.
10161 (aarch64_rtx_costs): Add costs for new instruction sequences.
10162 (initialize_aarch64_code_model): Initialize new model.
10163 (aarch64_classify_symbol): Recognize new model and new symbol classification.
10164 (aarch64_asm_preferred_eh_data_format): Support new model.
10165 (aarch64_load_symref_appropriately): Generate new instruction
10166 sequences for -fpic.
10167 (TARGET_USE_PSEUDO_PIC_REG): New definition.
10168 (aarch64_use_pseudo_pic_reg): New function.
10170 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10172 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10173 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
10174 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
10175 (aarch64_expand_mov_immediate): Ditto.
10176 (aarch64_print_operand): Ditto.
10177 (aarch64_classify_symbol): Ditto.
10179 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
10181 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
10183 2015-06-26 Bin Cheng <bin.cheng@arm.com>
10186 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
10187 assertion failed. Remove assertion itself.
10189 2015-06-26 Richard Biener <rguenther@suse.de>
10191 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
10192 and -A CMP CST -> A CMP -CST which is redundant with a pattern
10194 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
10195 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
10196 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
10197 * match.pd: ... patterns here.
10199 2015-06-26 Marek Polacek <polacek@redhat.com>
10201 * match.pd ((x | y) & ~(x & y) -> x ^ y,
10202 (x | y) & (~x ^ y) -> x & y): New patterns.
10204 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10206 * rtl.h (emit): Add an optional boolean parameter to control
10207 whether barriers are emitted.
10208 * emit-rtl.c (emit): Likewise.
10209 * gensupport.c (get_emit_function): Return null rather than "emit".
10210 * genemit.c (gen_emit_seq): Handle the null return value.
10211 Don't emit barriers after the final instruction in the sequence.
10212 * gentarget-def.c (main): Don't emit barriers after the instruction.
10214 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10216 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
10217 TARGET_UNIFIED_ASM.
10219 2015-06-26 Richard Biener <rguenther@suse.de>
10221 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
10223 2015-06-26 Richard Biener <rguenther@suse.de>
10225 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
10226 irrespective on whether the inner operation has a single use
10227 of both off are constant.
10229 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
10230 Segher Boessenkool <segher@kernel.crashing.org>
10233 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
10234 before doing PUT_MODE or PUT_CODE on operands to avoid
10235 in-place RTX modification.
10237 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10239 * gentarget-def.c (def_target_insn): Cast return of strtol to
10242 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10244 * gimple.h (gimple_call_set_fn): Move inline function.
10245 * gimple.c (gimple_call_set_fn): Relocate here.
10247 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
10251 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
10252 the replacement insn will work.
10254 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10256 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
10259 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10261 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
10262 * cgraph.h: Include ipa-ref.h and plugin-api.h.
10263 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
10264 (symtab_node::address_can_be_compared_p): Move function.
10265 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
10267 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
10268 * auto-profile.c: Likewise.
10269 * bb-reorder.c: Likewise.
10270 * builtins.c: Likewise.
10271 * calls.c: Likewise.
10272 * cfgexpand.c: Likewise.
10273 * cgraphbuild.c: Likewise.
10274 * cgraphclones.c: Likewise.
10275 * cgraphunit.c: Likewise.
10276 * combine.c: Likewise.
10277 * coverage.c: Likewise.
10278 * data-streamer-in.c: Likewise.
10279 * data-streamer-out.c: Likewise.
10280 * data-streamer.c: Likewise.
10281 * dbxout.c: Likewise.
10282 * dwarf2out.c: Likewise.
10283 * except.c: Likewise.
10284 * expr.c: Likewise.
10285 * final.c: Likewise.
10286 * fold-const.c: Likewise.
10287 * ggc-page.c: Likewise.
10288 * gimple-fold.c: Likewise.
10289 * gimple-iterator.c: Likewise.
10290 * gimple-pretty-print.c: Likewise.
10291 * gimple-streamer-in.c: Likewise.
10292 * gimple-streamer-out.c: Likewise.
10293 * gimple.c: Likewise.
10294 * gimplify.c: Likewise.
10295 * ipa-chkp.c: Likewise.
10296 * ipa-comdats.c: Likewise.
10297 * ipa-cp.c: Likewise.
10298 * ipa-devirt.c: Likewise.
10299 * ipa-icf-gimple.c: Likewise.
10300 * ipa-icf.c: Likewise.
10301 * ipa-inline-analysis.c: Likewise.
10302 * ipa-inline-transform.c: Likewise.
10303 * ipa-inline.c: Likewise.
10304 * ipa-polymorphic-call.c: Likewise.
10305 * ipa-profile.c: Likewise.
10306 * ipa-prop.c: Likewise.
10307 * ipa-pure-const.c: Likewise.
10308 * ipa-ref.c: Likewise.
10309 * ipa-reference.c: Likewise.
10310 * ipa-split.c: Likewise.
10311 * ipa-utils.c: Likewise.
10312 * ipa-visibility.c: Likewise.
10314 * langhooks.c: Likewise.
10315 * lto-cgraph.c: Likewise.
10316 * lto-compress.c: Likewise.
10317 * lto-opts.c: Likewise.
10318 * lto-section-in.c: Likewise.
10319 * lto-section-out.c: Likewise.
10320 * lto-streamer-in.c: Likewise.
10321 * lto-streamer-out.c: Likewise.
10322 * lto-streamer.c: Likewise.
10323 * omp-low.c: Likewise.
10324 * opts-global.c: Likewise.
10325 * passes.c: Likewise.
10326 * predict.c: Likewise.
10327 * print-tree.c: Likewise.
10328 * profile.c: Likewise.
10330 * sanopt.c: Likewise.
10331 * stor-layout.c: Likewise.
10332 * symtab.c: Likewise.
10333 * toplev.c: Likewise.
10334 * trans-mem.c: Likewise.
10335 * tree-cfg.c: Likewise.
10336 * tree-chkp.c: Likewise.
10337 * tree-eh.c: Likewise.
10338 * tree-emutls.c: Likewise.
10339 * tree-inline.c: Likewise.
10340 * tree-nested.c: Likewise.
10341 * tree-parloops.c: Likewise.
10342 * tree-pretty-print.c: Likewise.
10343 * tree-profile.c: Likewise.
10344 * tree-sra.c: Likewise.
10345 * tree-ssa-alias.c: Likewise.
10346 * tree-ssa-live.c: Likewise.
10347 * tree-ssa-loop-ivcanon.c: Likewise.
10348 * tree-ssa-loop-ivopts.c: Likewise.
10349 * tree-ssa-pre.c: Likewise.
10350 * tree-ssa-sccvn.c: Likewise.
10351 * tree-ssa-strlen.c: Likewise.
10352 * tree-ssa-structalias.c: Likewise.
10353 * tree-streamer-in.c: Likewise.
10354 * tree-streamer-out.c: Likewise.
10355 * tree-streamer.c: Likewise.
10356 * tree-switch-conversion.c: Likewise.
10357 * tree-tailcall.c: Likewise.
10358 * tree-vect-data-refs.c: Likewise.
10359 * tree-vect-stmts.c: Likewise.
10360 * tree-vectorizer.c: Likewise.
10361 * tree.c: Likewise.
10362 * tsan.c: Likewise.
10363 * ubsan.c: Likewise.
10364 * value-prof.c: Likewise.
10365 * varasm.c: Likewise.
10366 * varpool.c: Likewise.
10367 * config/arm/arm.c: Likewise.
10368 * config/bfin/bfin.c: Likewise.
10369 * config/c6x/c6x.c: Likewise.
10370 * config/cris/cris.c: Likewise.
10371 * config/darwin-c.c: Likewise.
10372 * config/darwin.c: Likewise.
10373 * config/i386/i386.c: Likewise.
10374 * config/i386/winnt.c: Likewise.
10375 * config/microblaze/microblaze.c: Likewise.
10376 * config/mips/mips.c: Likewise.
10377 * config/rs6000/rs6000.c: Likewise.
10378 * config/rx/rx.c: Likewise.
10379 * config/s390/s390.c: Likewise.
10380 * config/tilegx/mul-tables.c: Likewise.
10382 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10384 * config/aarch64/aarch64.c, config/alpha/alpha.c,
10385 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
10386 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
10387 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
10388 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10389 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10390 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10391 config/microblaze/microblaze.c, config/mips/mips.c,
10392 config/mmix/mmix.c, config/mn10300/mn10300.c,
10393 config/moxie/moxie.c, config/msp430/msp430.c,
10394 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10395 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10396 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10397 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10398 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10399 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10400 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
10401 target-def.h include.
10402 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
10404 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10406 * Makefile.in (TARGET_DEF): Add target-insns.def.
10407 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
10408 (build/gentarget-def.o): New rule.
10409 (genprogrtl): Add target-def.
10410 * target-insns.def, gentarget-def.c: New files.
10411 * target.def: Add targetm.have_* and targetm.gen_* hooks,
10412 based on the contents of target-insns.def.
10413 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
10414 (HAVE_return, gen_return): Delete.
10415 * target-def.h: Include insn-target-def.h.
10416 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
10417 instead of direct calls. Rely on them to do the appropriate assertions.
10418 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
10419 (convert_jumps_to_returns): Use targetm interface instead of
10421 (thread_prologue_and_epilogue_insns): Likewise.
10422 * reorg.c (find_end_label, dbr_schedule): Likewise.
10423 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
10424 * shrink-wrap.c (convert_to_simple_return): Likewise.
10425 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
10427 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10429 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
10430 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10431 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
10432 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
10433 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10434 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10435 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10436 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
10437 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
10438 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10439 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10440 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10441 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10442 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10443 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10444 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
10447 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10449 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
10450 (unbounded_int_hashmap_traits::key_type): Likewise.
10451 * hash-map.h (hash_map): Get the key type from the traits.
10452 * hash-traits.h (default_hash_traits): By default, inherit from the
10453 template parameter.
10454 * alias.c (alias_set_traits): Delete.
10455 (alias_set_entry_d::children): Use alias_set_hash as the first
10456 template parameter.
10457 (record_alias_subset): Update accordingly.
10458 * except.c (tree_hash_traits): Delete.
10459 (type_to_runtime_map): Use tree_hash as the first template parameter.
10460 (init_eh): Update accordingly.
10461 * genmatch.c (capture_id_map_hasher): Delete.
10462 (cid_map_t): Use nofree_string_hash as first template parameter.
10463 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
10464 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10465 Use symbol_compare_hash as the first template parameter in
10466 subdivide_hash_map.
10467 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
10468 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
10469 template parameter.
10470 * passes.c (pass_registry_hasher): Delete.
10471 (name_to_pass_map): Use nofree_string_hash as the first template
10473 (register_pass_name): Update accordingly.
10474 * sanopt.c (sanopt_tree_map_traits): Delete.
10475 (sanopt_tree_triplet_map_traits): Delete.
10476 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
10477 template parameter.
10478 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
10479 the first template parameter.
10480 * sese.c (rename_map_hasher): Delete.
10481 (rename_map_type): Use tree_ssa_name_hash as the first template
10483 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
10484 (function_summary::m_map): Use map_hash as the first template
10486 (function_summary::release): Update accordingly.
10487 * tree-if-conv.c (phi_args_hash_traits): Delete.
10488 (predicate_scalar_phi): Use tree_operand_hash as the first template
10489 parameter to phi_arg_map.
10490 * tree-inline.h (dependence_hasher): Delete.
10491 (copy_body_data::dependence_map): Use dependence_hash as the first
10492 template parameter.
10493 * tree-inline.c (remap_dependence_clique): Update accordingly.
10494 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
10495 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
10497 (addr_stridxptr): Update accordingly.
10498 * value-prof.c (profile_id_traits): Delete.
10499 (cgraph_node_map): Use profile_id_hash as the first template
10501 (init_node_map): Update accordingly.
10502 * config/alpha/alpha.c (string_traits): Delete.
10503 (machine_function::links): Use nofree_string_hash as the first
10504 template parameter.
10505 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
10506 * config/m32c/m32c.c (pragma_traits): Delete.
10507 (pragma_htab): Use nofree_string_hash as the first template parameter.
10508 (m32c_note_pragma_address): Update accordingly.
10509 * config/mep/mep.c (pragma_traits): Delete.
10510 (pragma_htab): Use nofree_string_hash as the first template parameter.
10511 (mep_note_pragma_flag): Update accordingly.
10512 * config/mips/mips.c (mips16_flip_traits): Delete.
10513 (mflip_mips16_htab): Use nofree_string_hash as the first template
10515 (mflip_mips16_use_mips16_p): Update accordingly.
10516 (local_alias_traits): Delete.
10517 (mips16_local_aliases): Use nofree_string_hash as the first template
10519 (mips16_local_alias): Update accordingly.
10521 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10523 * hash-map-traits.h (default_hashmap_traits): Delete.
10525 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10527 * hash-map-traits.h (unbounded_hashmap_traits): New class.
10528 (unbounded_int_hashmap_traits): Likewise.
10529 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
10531 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10533 * ipa-icf.h (symbol_compare_hash): New class.
10534 (symbol_compare_hashmap_traits): Use it.
10535 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
10536 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
10537 (mem_alloc_description::reverse_mem_map_t): Remove redundant
10538 default_hashmap_traits.
10539 * sanopt.c (sanopt_tree_triplet_hash): New class.
10540 (sanopt_tree_triplet_map_traits): Use it.
10542 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10544 * gengtype-parse.c (require_template_declaration): Allow '+' in
10545 template parameters. Consolidate cases.
10546 * hash-traits.h (int_hash): New class.
10547 * alias.c (alias_set_hash): New structure.
10548 (alias_set_traits): Use it.
10549 * symbol-summary.h (function_summary::map_hash): New class.
10550 (function_summary::summary_hashmap_traits): Use it.
10551 * tree-inline.h (dependence_hash): New class.
10552 (dependence_hasher): Use it.
10553 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
10554 * value-prof.c (profile_id_hash): New class.
10555 (profile_id_traits): Use it.
10557 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10559 * config/mips/mips.c (mips16_flip_traits): Use it.
10560 (local_alias_traits, mips16_local_aliases): Convert from a map of
10561 rtxes to a map of symbol names.
10562 (mips16_local_alias): Update accordingly.
10564 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10566 * hash-traits.h (string_hash, nofree_string_hash): New classes.
10567 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
10568 * passes.c (pass_registry_hasher): Likewise.
10569 * config/alpha/alpha.c (string_traits): Likewise.
10570 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
10571 * config/m32c/m32c.c (pragma_traits): Likewise.
10572 * config/mep/mep.c (pragma_traits): Likewise.
10574 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10576 * tree-hash-traits.h (tree_hash): New class.
10577 * except.c: Include tree-hash-traits.h.
10578 (tree_hash_traits): Use tree_hash.
10580 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10582 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
10583 * sese.c: Include tree-hash-traits.h.
10584 (rename_map_hasher): Use tree_ssa_name_hasher.
10586 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10588 * tree-hash-traits.h (tree_decl_hash): New class.
10589 * tree-ssa-strlen.c: Include tree-hash-traits.h.
10590 (stridxlist_hash_traits): Use tree_decl_hash.
10592 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10594 * tree-hash-traits.h: New file.
10595 (tree_operand_hash): New class.
10596 * sanopt.c: Include tree-hash-traits.h.
10597 (sanopt_tree_map_traits): Use tree_operand_hash.
10598 * tree-if-conv.c: Include tree-hash-traits.h.
10599 (phi_args_hash_traits): Use tree_operand_hash.
10600 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
10601 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
10603 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10605 * hash-map-traits.h: Include hash-traits.h.
10606 (simple_hashmap_traits): New class.
10607 * mem-stats.h (hash_map): Change the default traits to
10608 simple_hashmap_traits<default_hash_traits<Key> >.
10610 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10612 * hash-table.h: Update comments.
10614 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10616 * hash-traits.h (default_hash_traits): New structure.
10617 * hash-set.h (default_hashset_traits): Delete.
10618 (hash_set): Use default_hash_traits<Key> instead of
10619 default_hashset_traits. Delete hash_entry type and use Key directly.
10620 * ipa-devirt.c (pair_traits): Delete.
10621 (default_hash_traits <type_pair>): Override.
10622 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
10623 (odr_types_equivalent_p, add_type_duplicate): Likewise.
10625 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10627 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
10629 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10631 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
10632 (has_is_empty, is_empty_helper): Delete.
10633 (has_mark_deleted, mark_deleted_helper): Delete.
10634 (has_mark_empty, mark_empty_helper): Delete.
10635 (hash_table::is_deleted): Call the Descriptor unconditionally.
10636 (hash_table::is_empty): Likewise.
10637 (hash_table::mark_deleted): Likewise.
10638 (hash_table::mark_empty): Likewise.
10640 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10642 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
10643 redundant typedefs and members.
10644 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
10645 redundant typedefs.
10646 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
10647 * ipa-devirt.c (odr_name_hasher): Likewise.
10648 (polymorphic_call_target_hasher): Likewise.
10649 * ira-costs.c (cost_classes_hasher): Likewise.
10650 * statistics.c (stats_counter_hasher): Likewise.
10651 * trans-mem.c (log_entry_hasher): Likewise.
10652 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10653 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
10654 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
10655 * var-tracking.c (variable_hasher): Likewise.
10656 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
10657 Remove redundant typedefs and members.
10659 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10661 * hash-traits.h (ggc_cache_hasher): Rename to...
10662 (ggc_cache_remove): ...this and remove typedefs.
10663 (ggc_cache_ptr_hash): New class.
10664 * hash-table.h: Update commentary.
10665 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
10666 rather than ggc_cache_hasher.
10667 (const_wide_int_hasher, reg_attr_hasher): Likewise.
10668 (const_double_hasher, const_fixed_hasher): Likewise.
10669 * function.c (insn_cache_hasher): Likewise.
10670 * trans-mem.c (tm_wrapper_hasher): Likewise.
10671 * tree.h (tree_decl_map_cache_hasher): Likewise.
10672 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
10673 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
10674 * ubsan.c (tree_type_map_cache_hasher): Likewise.
10675 * varasm.c (tm_clone_hasher): Likewise.
10676 * config/i386/i386.c (dllimport_hasher): Likewise.
10677 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
10678 (tree_hasher): Likewise.
10680 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10682 * hash-traits.h (ggc_hasher): Rename to...
10683 (ggc_remover): ...this and remove typedefs.
10684 (ggc_cache_hasher): Update accordingly. Add typedefs.
10685 (ggc_ptr_hash): New class.
10686 * hash-table.h: Update comment.
10687 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
10689 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
10690 (tree_descriptor_hasher): Likewise.
10691 * cgraph.c (function_version_hasher): Likewise.
10692 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
10693 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
10694 (dw_loc_list_hasher, addr_hasher): Likewise.
10695 * function.h (used_type_hasher): Likewise.
10696 * function.c (temp_address_hasher): Likewise.
10697 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
10698 * libfuncs.h (libfunc_hasher): Likewise.
10699 * lto-streamer.h (decl_state_hasher): Likewise.
10700 * optabs.c (libfunc_decl_hasher): Likewise.
10701 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
10702 * varasm.c (section_hasher, object_block_hasher): Likewise.
10703 (const_rtx_desc_hasher): Likewise.
10704 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
10705 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
10707 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10709 * hash-traits.h (free_ptr_hash): New class.
10710 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
10711 rather than typed_free_remove. Remove redudant typedefs.
10712 (external_ref_hasher): Likewise.
10713 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
10714 (ehspec_hasher): Likewise.
10715 * ggc-common.c (saving_hasher): Likewise.
10716 * gimplify.c (gimplify_hasher): Likewise.
10717 * haifa-sched.c (delay_i2_hasher): Likewise.
10718 * loop-invariant.c (invariant_expr_hasher): Likewise.
10719 * loop-iv.c (biv_entry_hasher): Likewise.
10720 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
10721 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
10722 * tree-cfg.c (locus_discrim_hasher): Likewise.
10723 * tree-eh.c (finally_tree_hasher): Likewise.
10724 * tree-into-ssa.c (var_info_hasher): Likewise.
10725 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
10726 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
10727 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
10728 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
10729 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
10730 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
10731 (shared_bitmap_hasher): Likewise.
10732 * tree-ssa-threadupdate.c (redirection_data): Likewise.
10733 * tree-vectorizer.h (peel_info_hasher): Likewise.
10734 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
10735 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
10737 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10739 * hash-table.h: Update comments.
10740 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
10741 (nofree_ptr_hash): New class.
10742 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
10743 than typed_noop_remove. Remove redudant typedefs.
10744 * attribs.c (attribute_hasher): Likewise.
10745 * cfg.c (bb_copy_hasher): Likewise.
10746 * cselib.c (cselib_hasher): Likewise.
10747 * dse.c (invariant_group_base_hasher): Likewise.
10748 * dwarf2cfi.c (trace_info_hasher): Likewise.
10749 * dwarf2out.c (macinfo_entry_hasher): Likewise.
10750 (comdat_type_hasher, loc_list_hasher): Likewise.
10751 * gcse.c (pre_ldst_expr_hasher): Likewise.
10752 * genmatch.c (id_base): Likewise.
10753 * genrecog.c (test_pattern_hasher): Likewise.
10754 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
10755 * haifa-sched.c (delay_i1_hasher): Likewise.
10756 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
10757 * ipa-icf.h (congruence_class_group_hash): Likewise.
10758 * ipa-profile.c (histogram_hash): Likewise.
10759 * ira-color.c (allocno_hard_regs_hasher): Likewise.
10760 * lto-streamer.h (string_slot_hasher): Likewise.
10761 * lto-streamer.c (tree_entry_hasher): Likewise.
10762 * plugin.c (event_hasher): Likewise.
10763 * postreload-gcse.c (expr_hasher): Likewise.
10764 * store-motion.c (st_expr_hasher): Likewise.
10765 * tree-sra.c (uid_decl_hasher): Likewise.
10766 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
10767 (ssa_name_var_hash): Likewise.
10768 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
10769 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
10770 * tree-ssa-pre.c (pre_expr_d): Likewise.
10771 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
10772 * vtable-verify.h (registration_hasher): Likewise.
10773 * vtable-verify.c (vtbl_map_hasher): Likewise.
10774 * config/arm/arm.c (libcall_hasher): Likewise.
10775 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
10776 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
10777 * config/sol2.c (comdat_entry_hasher): Likewise.
10778 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
10779 (print_fold_checksum, fold_checksum_tree): Likewise.
10780 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
10781 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
10782 (fold_build_call_array_loc): Likewise.
10783 * tree-ssa-ccp.c (gimple_htab): Likewise.
10784 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
10785 rather than pointer_type.
10787 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10789 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
10790 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
10792 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10794 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
10795 (ggc_hasher::ggc_mx): Likewise.
10796 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
10797 that duplicate ggc_hasher ones.
10799 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10801 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
10802 (gt_cleare_cache): Check here for deleted and empty entries.
10803 Replace handle_cache_entry with a call to keep_cache_entry.
10804 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
10805 (ggc_cache_hasher::keep_cache_entry): New function.
10806 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
10807 (tm_wrapper_hasher::keep_cache_entry): New function.
10808 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
10809 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10810 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
10811 (type_cache_hasher::keep_cache_entry): New function.
10812 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
10813 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10814 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
10815 (tree_type_map_cache_hasher::keep_cache_entry): New function.
10816 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
10817 (tm_clone_hasher::keep_cache_entry): New function.
10818 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
10819 (dllimport_hasher::keep_cache_entry): New function.
10821 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10823 * hash-table.h: Include hash-traits.h.
10824 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
10825 (ggc_cache_hasher): Move to...
10826 * hash-traits.h: ...this new file.
10828 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10830 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
10831 struct cl_optimization.
10832 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
10833 * tree.c (make_node_stat): Allocate cl_optimization struct.
10834 (copy_node_stat): Allocate and copy cl_optimization struct.
10836 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10838 * function.h (struct incoming_args): Move struct.
10839 (pass_by_reference, reference_callee_copied): Remove prototypes.
10840 * emit-rtl.h (struct incoming_args): Relocate struct here.
10841 * calls.h (pass_by_reference, reference_callee_copied): Relocate
10843 * function.c (pass_by_reference, reference_callee_copied): Move.
10844 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
10845 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
10846 * ipa-chkp.c: Include calls.h.
10848 2015-06-25 Andrew Macleod <amacleod@redhat.com>
10850 * alias.h (alias_set_type): Move typedef.
10851 * coretypes.h (alias_set_type): Relocate typedef here.
10852 * rtl.h: Don't include alias.h.
10854 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10856 * cgraph.h (cgraph_rtl_info): Move to rtl.h
10857 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
10859 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
10860 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
10862 * calls.c: Include hard-reg-set.h before rtl.h.
10865 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10866 Vladimir Makarov <vmakarov@redhat.com>
10868 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
10871 2015-06-25 Richard Biener <rguenther@suse.de>
10873 * fold-const.c (fold_binary_loc): Move simplification of
10874 (X <<>> C1) & C2 ...
10875 * match.pd: ... here.
10877 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
10879 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
10881 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10883 * match.pd: Add patterns for vec_conds between 1 and 0.
10885 2015-06-25 Richard Biener <rguenther@suse.de>
10887 * tree-vect-stmts.c (vectorizable_conversion): Do not set
10888 STMT_VINFO_VEC_STMT for SLP.
10889 (vectorizable_store): Likewise.
10890 (vectorizable_load): Likewise.
10891 (vect_transform_stmt): Catch SLP vectorization clobbering
10892 STMT_VINFO_VEC_STMT.
10894 2015-06-25 Richard Biener <rguenther@suse.de>
10896 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
10898 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
10899 cleanup resulting dead code and parameters.
10900 (vect_transform_slp_perm_load): Adjust.
10902 2015-06-25 Nick Clifton <nickc@redhat.com>
10904 * config/bfin/bfin.c (bfin_expand_prologue): Set
10905 current_function_static_stack_size if flag_stack_usage_info is set.
10906 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10907 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
10908 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10909 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
10911 2015-06-25 Tom de Vries <tom@codesourcery.com>
10913 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
10914 comment that the generated IV is unsigned.
10916 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10919 * config/arm/arm.c (arm_dbx_register_number): Return
10920 DWARF_FRAME_REGISTERS by default.
10922 2015-06-25 Tom de Vries <tom@codesourcery.com>
10924 * dominance.c (calculate_dominance_info): Fix verify_dominators call
10925 argument. Call verify_dominator when reusing dominator info.
10927 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
10930 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
10931 an additional element of the unspec vector. Modify indices
10933 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
10934 * config/sh/sh.c (prepare_move_operands): Pass incremented
10935 const_int to gen_GOTaddr2picreg.
10936 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
10938 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10940 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
10941 Condition on TARGET_FLOAT.
10943 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10945 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
10948 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10950 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
10952 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
10953 aarch64_err_no_fpadvsimd.
10955 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
10956 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
10957 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
10958 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
10959 Turn error into assert, test TARGET_FLOAT.
10960 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
10963 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
10966 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
10968 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
10970 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
10972 2015-06-24 Renlin Li <renlin.li@arm.com>
10974 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
10975 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
10977 2015-06-24 Richard Biener <rguenther@suse.de>
10979 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
10981 (lower_opt_convert): Support lowering of conditional view_convert.
10982 (parser::parse_operation): Likewise.
10983 (parser::parse_for): Likewise.
10985 2015-06-24 Renlin Li <renlin.li@arm.com>
10987 * varasm.c (emit_local): Use unsigned int for align variable.
10989 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10992 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
10993 for negative numbers.
10995 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10997 PR rtl-optimization/66306
10998 * reload.c (find_reloads): Swap the match_dup info for
10999 commutative operands.
11001 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11003 * config/s390/vx-builtins.md
11004 ("vec_scatter_element<mode>_<non_vec_int>")
11005 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
11006 attribute with bhfgq.
11008 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11010 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
11012 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11014 * config/s390/s390-builtin-types.def: Add flag to indicate the
11015 options under which the function type is needed.
11016 * config/s390/s390-builtins.def: Add flag to indicate the options
11017 under which the builtin is enabled.
11018 * config/s390/s390-builtins.h: Add flags parameter to macro
11020 (bflags_for_builtin): New function.
11021 (flags_for_builtin): Renamed to ...
11022 (opflags_for_builtin): ... this.
11023 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
11024 flags_for_builtin to bflags_for_builtin and
11025 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
11026 * config/s390/s390.c: Add initialization of bflags_builtin and
11027 opflags_builtin arrays.
11028 Remove code for flags_builtin.
11029 (s390_init_builtins): Only create builtin function types if one of
11030 their flags is active.
11031 Only create builtins if all of their flags are active.
11032 (s390_expand_builtin): Rename flags_for_builtin to
11033 opflags_for_builtin.
11035 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11037 * config/s390/vecintrin.h: Remove internal builtins.
11039 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11041 * config/s390/s390.c (s390_secondary_reload): Fix check for
11042 GENERAL_REGS register class.
11044 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11046 * config/s390/s390.c (s390_support_vector_misalignment): Call
11047 default implementation for !TARGET_VX.
11049 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11051 * config/s390/s390.c (s390_legitimate_constant_p): Add
11054 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11056 * config/s390/s390.c (s390_vector_abi): New variable definition.
11057 (s390_check_type_for_vector_abi): New function.
11058 (TARGET_ASM_FILE_END): New macro definition.
11059 (s390_asm_file_end): New function.
11060 (s390_function_arg): Call s390_check_type_for_vector_abi.
11061 (s390_gimplify_va_arg): Likewise.
11062 * configure: Regenerate.
11063 * configure.ac: Check for .gnu_attribute Binutils feature.
11065 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
11068 * config/bfin/bfin.c (hwloop_optimize): Initialize
11069 JUMP_LABEL for newly created jump.
11071 2015-06-23 Tristan Gingold <gingold@adacore.com>
11073 * collect-utils.c (collect_wait): Unlink the response file here
11075 (do_wait): ...here.
11076 (utils_cleanup): ...and here.
11078 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
11080 * df-scan.c: Don't include target-def.h.
11081 * targhooks.c: Likewise.
11082 * config/arm/arm-c.c: Likewise.
11083 * config/i386/i386-c.c: Likewise.
11084 * config/nds32/nds32-cost.c: Likewise.
11085 * config/nds32/nds32-fp-as-gp.c: Likewise.
11086 * config/nds32/nds32-intrinsic.c: Likewise.
11087 * config/nds32/nds32-isr.c: Likewise.
11088 * config/nds32/nds32-md-auxiliary.c: Likewise.
11089 * config/nds32/nds32-memory-manipulation.c: Likewise.
11090 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11091 * config/nds32/nds32-predicates.c: Likewise.
11093 2015-06-23 Richard Biener <rguenther@suse.de>
11095 PR tree-optimization/66636
11096 * tree-vect-stmts.c (vectorizable_store): Properly compute the
11097 def type for further defs for strided stores.
11099 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
11101 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
11102 conditional selects.
11103 (setcc_int<mode>, setcc_float<mode>): Reformat.
11105 2015-06-23 Marek Polacek <polacek@redhat.com>
11107 * match.pd ((x + y) - (x | y) -> x & y,
11108 (x + y) - (x & y) -> x | y): New patterns.
11110 2015-06-23 Ludovic Courtès <ludo@gnu.org>
11113 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
11114 '-dynamic-linker' within %{!shared: ...}.
11116 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
11119 * config/i386/predicates.md (addsub_vm_operator): New predicate.
11120 (addsub_vs_operator): Ditto.
11121 (addsub_vs_parallel): Ditto.
11122 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
11123 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
11124 Put minus RTX before plus and adjust vec_merge selector.
11125 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
11126 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
11127 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
11128 (addsub vec_merge splitters): New combiner splitters.
11129 (addsub vec_select/vec_concat splitters): Ditto.
11131 2015-06-23 Bin Cheng <bin.cheng@arm.com>
11133 PR tree-optimization/66449
11134 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
11135 POINTER_PLUS_EXPR for pointers.
11137 2015-06-23 Alan Modra <amodra@gmail.com>
11139 * rtlanal.c (commutative_operand_precedence): Correct comments.
11140 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
11141 declaration. Return an int. Distinguish REG,REG return from
11143 (struct simplify_plus_minus_op_data): Make local to function.
11144 (simplify_plus_minus): Don't set canonicalized if merely sorting
11145 registers. Avoid packing ops if nothing changes. White space fixes.
11147 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
11149 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
11150 -fdump-ada-spec is passed but not if -fsyntax-only is.
11152 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
11155 * lra-lives.c (process_bb_lives): Check insn copying the same
11156 reload pseudo and don't create a copy for it.
11158 2015-06-22 Tom de Vries <tom@codesourcery.com>
11160 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
11163 2015-06-22 Tom de Vries <tom@codesourcery.com>
11165 * builtins.def (DEF_GOMP_BUILTIN): Test
11166 'flag_tree_parallelize_loops > 1' instead of
11167 'flag_tree_parallelize_loops'. Test flag_cilkplus.
11169 2015-06-22 Tom de Vries <tom@codesourcery.com>
11171 * dominance.c (calculate_dominance_info): Verify dominators if
11174 2015-06-22 Marek Polacek <polacek@redhat.com>
11176 * match.pd ((x ^ y) ^ (x | y) -> x & y,
11177 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
11178 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
11179 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
11181 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
11184 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
11185 cost of embedded comparison.
11187 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11190 * config/rs6000/predicates.md (altivec_register_operand): Permit
11191 virtual stack registers.
11192 (vsx_register_operand): Likewise.
11193 (vfloat_operand): Likewise.
11194 (vint_operand): Likewise.
11195 (vlogical_operand): Likewise.
11197 2015-06-22 Richard Biener <rguenther@suse.de>
11199 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
11200 and single_scalar_iteration_cost members.
11201 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
11202 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
11203 (vect_get_single_scalar_iteration_cost): Remove.
11204 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11205 Use LOOP_VINFO_SCALAR_ITERATION_COST.
11206 * tree-vect-loop.c (destroy_loop_vec_info): Free
11208 (vect_get_single_scalar_iteration_cost): Compute result into
11209 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
11210 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
11211 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
11212 (vect_estimate_min_profitable_iters): Use them.
11214 2015-06-22 Christian Bruel <christian.bruel@st.com>
11217 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
11218 (TARGET_INSERT_ATTRIBUTES): Define.
11219 (thumb_flipper): New var.
11220 * config/arm/arm.opt (-mflip-thumb): New switch.
11222 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11223 Martin Liska <mliska@suse.cz>
11226 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
11227 construction of arg_types.
11228 (sem_function::sem_function): Likewise.
11229 (sem_function::~sem_function): Remove destruction of arg_types.
11230 (sem_function::compatible_parm_types_p): New function.
11231 (sem_function::equals_wpa): Reorg matching of return values
11232 and parameter types.
11233 (sem_function::equals_private): Reorg mathcing of argument types.
11234 (sem_function::parse_tree_args): Remove.
11235 * ipa-icf.h (init_wpa): Do not call it.
11236 (parse_tree_args): Remove.
11237 (compatible_parm_types_p): Declare.
11238 (result_type): Remove.
11239 (arg_types): Remove.
11241 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11244 * ipa-polymorphic-call.c
11245 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
11246 initializing alias oracle; fix formating; set base_alias_set if it
11249 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
11251 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
11252 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
11253 (find_inc): Likewise.
11254 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
11256 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11257 * df-scan.c (df_swap_refs): Remove.
11258 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
11259 * dominance.c (link_roots): Use std::swap instead of manually swapping.
11260 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
11261 * fold-const.c (fold_relational_const): Likewise.
11262 * genattrtab.c (simplify_test_exp): Likewise.
11263 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
11264 gimple_simplify): Likewise.
11265 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
11266 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
11267 * ipa-devirt.c (add_type_duplicate): Likewise.
11268 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
11269 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
11270 * lra.c (lra_create_copy): Likewise.
11271 * lto-streamer-out.c (DFS::DFS): Likewise.
11272 * modulo-sched.c (get_sched_window): Likewise.
11273 * omega.c (omega_pretty_print_problem): Likewise.
11274 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
11275 * reload1.c (reloads_unique_chain_p): Likewise.
11276 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
11277 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
11279 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
11281 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
11282 predicate_mem_writes): Likewise.
11283 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
11284 * tree-predcom.c (combine_chains): Likewise.
11285 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
11286 refs_may_alias_p_1): Likewise.
11287 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
11288 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
11289 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
11290 number_of_iterations_cond): Likewise.
11291 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
11292 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11293 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
11294 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
11295 * tree-vrp.c (extract_range_from_binary_expr_1,
11296 extract_range_from_unary_expr_1): Likewise.
11298 2015-06-20 Marek Polacek <polacek@redhat.com>
11300 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
11302 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
11305 * config/sh/sh.c (prepare_move_operands): Replace subreg
11306 index term with R0 for base and index addressing.
11308 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
11310 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
11312 (movsf_aarch64): Change condition from register_operand to
11313 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
11314 load1. Change type for alternative 7 to store1.
11315 (movdf_aarch64): Likewise.
11317 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
11319 * config/vax/vax.md: Adjust sign/zero extend patterns to
11320 handle SUBREGs in operands[1].
11322 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11324 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
11325 of manually swapping.
11326 (expand_vec_perm_interleave2): Likewise.
11328 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
11330 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
11331 reuse bounds created for abnormal ssa names.
11333 2015-06-19 Jakub Jelinek <jakub@redhat.com>
11335 * config/nvptx/nvptx.md (allocate_stack): Rename to...
11336 (allocate_stack_<mode>): ... this, and add :P on both
11337 match_operand and unspec.
11338 (allocate_stack): New expander.
11340 2015-06-19 Christian Bruel <christian.bruel@st.com>
11344 * config/arm/arm.c (arm_set_current_function): Handle
11345 explicit default options.
11347 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11349 * config/i386/i386.md (*movsicc_noc_zext): New insn.
11350 (zero-extended cmove with mem peephole2): New pattern.
11351 (cmove with mem peephole2): Merge patterns.
11353 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11355 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
11357 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
11359 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
11360 * config/mips/mips.md (*madd4<mode>): Ditto.
11361 (*nmadd3<mode>) Ditto.
11362 (*nmadd4<mode>_fastmath): Ditto.
11363 (*nmadd3<mode>_fastmath): Ditto.
11364 (*nmsub4<mode>): Ditto.
11365 (*nmsub3<mode>): Ditto.
11366 (*nmsub4<mode>_fastmath): Ditto.
11367 (*nmsub3<mode>_fastmath): Ditto.
11369 2015-06-18 Michael Matz <matz@suse.de>
11371 PR middle-end/66253
11372 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
11373 grouped strided stores.
11374 (vectorizable_load): Don't use the DR from first_stmt in
11375 the non-SLP grouped strided case.
11377 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11380 * function.c (assign_bounds): Add arguments assign_regs,
11381 assign_special, assign_bt.
11382 (assign_parms): For vararg functions handle bounds in BT
11383 and special slots after incoming vararg bounds.
11385 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11387 PR middle-end/66568
11388 * cfgexpand.c (expand_return): Handle missing bounds.
11389 (expand_gimple_stmt_1): Likewise.
11390 * tree-chkp.c (chkp_expand_zero_bounds): New.
11391 * tree-chkp.h (chkp_expand_zero_bounds): New.
11393 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11395 PR middle-end/66567
11396 * ipa-chkp.c (chkp_maybe_create_clone): Require
11397 functions to be instrumentable.
11398 * tree-chkp.c (chkp_replace_function_pointer): Use
11399 chkp_instrumentable_p instead of attribute check.
11401 2015-06-18 Richard Biener <rguenther@suse.de>
11403 PR tree-optimization/66510
11404 * tree-vect-stmts.c (vectorizable_load): Properly compute the
11405 number of vector loads for SLP permuted loads.
11406 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
11407 check the stride for loop vectorization.
11408 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
11409 vectorization factor.
11410 (vect_analyze_group_access): If the group size is not a power
11411 of two require a epilogue loop.
11412 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
11413 compute and optimizing and alias test pruning after final
11414 vectorization factor computation.
11415 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
11417 (vect_transform_slp_perm_load): Properly compute the original
11418 number of vector load stmts.
11420 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11422 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
11423 "unlikely character , in @var" warning.
11425 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
11427 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
11428 (ix86_function_arg_advance): Ditto.
11429 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
11431 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11433 * function.h (struct rtl_data): Remove struct and accessor macros.
11434 * emit-rtl.h (struct rtl_data): Relocate to here.
11435 * Makefile.in (GTFILES): Add emit-rtl.h.
11436 * df-core.c: Include emit-rtl.h.
11437 * genattrtab.c: Likewise.
11438 * genconditions.c: Likewise.
11439 * genpreds.c: Likewise.
11440 * genrecog.c: Likewise.
11441 * regcprop.c: Likewise.
11442 * resource.c: Likewise.
11443 * sched-rgn.c: Likewise.
11444 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11445 * config/i386/winnt.c: Likewise.
11447 2015-06-17 Jakub Jelinek <jakub@redhat.com>
11449 PR middle-end/66429
11450 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
11451 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
11452 and has_force_vectorize_loops flags from cfun into
11454 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
11455 if simduid is non-NULL.
11456 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
11457 * passes.def (pass_simduid_cleanup): Add new pass after loop
11459 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
11460 indirection from htab argument's type.
11461 (shrink_simd_arrays): New function.
11462 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
11463 Don't call adjust_simduid_builtins if there are no loops.
11464 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
11465 (pass_simduid_cleanup::execute): New method.
11466 (make_pass_simduid_cleanup): New function.
11468 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
11470 * tree-core.h (tree_target_option): Make opts field a pointer to a
11471 cl_target_option instead of an instance of the struct.
11472 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
11474 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
11475 TARGET_OPTION_NODE.
11476 (copy_node_stat): Allocate and copy struct cl_target_option.
11478 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11480 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
11481 Remove conditional exposure of prototypes.
11482 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
11483 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
11484 definitions in tree.h with functions.
11485 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
11487 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
11489 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
11491 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
11492 (*cmp<mode>_signed): ... this.
11493 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
11494 (*cmp<mode>_unsigned): ... this. Remove %b.
11496 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11498 * coretypes.h: Include input.h and as-a.h.
11499 * rtl.h: Include input.h and as-a.h for generator files.
11500 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
11501 * vec.c: Don't include diagnostic-core.h.
11502 * alias.c: Do not include input.h, line-map.h or is-a.h.
11503 * asan.c: Likewise.
11504 * attribs.c: Likewise.
11505 * auto-inc-dec.c: Likewise.
11506 * auto-profile.c: Likewise.
11507 * bb-reorder.c: Likewise.
11508 * bt-load.c: Likewise.
11509 * builtins.c: Likewise.
11510 * caller-save.c: Likewise.
11511 * calls.c: Likewise.
11512 * ccmp.c: Likewise.
11514 * cfganal.c: Likewise.
11515 * cfgbuild.c: Likewise.
11516 * cfgcleanup.c: Likewise.
11517 * cfgexpand.c: Likewise.
11518 * cfghooks.c: Likewise.
11519 * cfgloop.c: Likewise.
11520 * cfgloop.h: Likewise.
11521 * cfgloopanal.c: Likewise.
11522 * cfgloopmanip.c: Likewise.
11523 * cfgrtl.c: Likewise.
11524 * cgraph.c: Likewise.
11525 * cgraphbuild.c: Likewise.
11526 * cgraphclones.c: Likewise.
11527 * cgraphunit.c: Likewise.
11528 * cilk-common.c: Likewise.
11529 * combine-stack-adj.c: Likewise.
11530 * combine.c: Likewise.
11531 * compare-elim.c: Likewise.
11532 * convert.c: Likewise.
11533 * coverage.c: Likewise.
11534 * cppbuiltin.c: Likewise.
11535 * cprop.c: Likewise.
11537 * cselib.c: Likewise.
11538 * data-streamer-in.c: Likewise.
11539 * data-streamer-out.c: Likewise.
11540 * data-streamer.c: Likewise.
11541 * dbxout.c: Likewise.
11544 * debug.c: Likewise.
11545 * df-core.c: Likewise.
11546 * df-problems.c: Likewise.
11547 * df-scan.c: Likewise.
11550 * diagnostic-core.h: Likewise.
11551 * diagnostic.c: Likewise.
11552 * dojump.c: Likewise.
11553 * dominance.c: Likewise.
11554 * domwalk.c: Likewise.
11555 * double-int.c: Likewise.
11557 * dumpfile.c: Likewise.
11558 * dumpfile.h: Likewise.
11559 * dwarf2asm.c: Likewise.
11560 * dwarf2cfi.c: Likewise.
11561 * dwarf2out.c: Likewise.
11562 * emit-rtl.c: Likewise.
11563 * et-forest.c: Likewise.
11564 * except.c: Likewise.
11565 * explow.c: Likewise.
11566 * expmed.c: Likewise.
11567 * expr.c: Likewise.
11568 * final.c: Likewise.
11569 * fixed-value.c: Likewise.
11570 * fold-const.c: Likewise.
11571 * function.c: Likewise.
11572 * fwprop.c: Likewise.
11573 * gcc-plugin.h: Likewise.
11574 * gcse.c: Likewise.
11575 * generic-match-head.c: Likewise.
11576 * ggc-page.c: Likewise.
11577 * gimple-builder.c: Likewise.
11578 * gimple-expr.c: Likewise.
11579 * gimple-fold.c: Likewise.
11580 * gimple-iterator.c: Likewise.
11581 * gimple-low.c: Likewise.
11582 * gimple-match-head.c: Likewise.
11583 * gimple-pretty-print.c: Likewise.
11584 * gimple-ssa-isolate-paths.c: Likewise.
11585 * gimple-ssa-strength-reduction.c: Likewise.
11586 * gimple-streamer-in.c: Likewise.
11587 * gimple-streamer-out.c: Likewise.
11588 * gimple-streamer.h: Likewise.
11589 * gimple-walk.c: Likewise.
11590 * gimple.c: Likewise.
11591 * gimplify-me.c: Likewise.
11592 * gimplify.c: Likewise.
11593 * godump.c: Likewise.
11594 * graph.c: Likewise.
11595 * graphite-blocking.c: Likewise.
11596 * graphite-dependences.c: Likewise.
11597 * graphite-interchange.c: Likewise.
11598 * graphite-isl-ast-to-gimple.c: Likewise.
11599 * graphite-optimize-isl.c: Likewise.
11600 * graphite-poly.c: Likewise.
11601 * graphite-scop-detection.c: Likewise.
11602 * graphite-sese-to-poly.c: Likewise.
11603 * graphite.c: Likewise.
11604 * haifa-sched.c: Likewise.
11605 * hw-doloop.c: Likewise.
11606 * ifcvt.c: Likewise.
11607 * init-regs.c: Likewise.
11608 * input.c: Likewise.
11609 * internal-fn.c: Likewise.
11610 * ipa-chkp.c: Likewise.
11611 * ipa-comdats.c: Likewise.
11612 * ipa-cp.c: Likewise.
11613 * ipa-devirt.c: Likewise.
11614 * ipa-icf-gimple.c: Likewise.
11615 * ipa-icf.c: Likewise.
11616 * ipa-inline-analysis.c: Likewise.
11617 * ipa-inline-transform.c: Likewise.
11618 * ipa-inline.c: Likewise.
11619 * ipa-polymorphic-call.c: Likewise.
11620 * ipa-profile.c: Likewise.
11621 * ipa-prop.c: Likewise.
11622 * ipa-pure-const.c: Likewise.
11623 * ipa-ref.c: Likewise.
11624 * ipa-reference.c: Likewise.
11625 * ipa-split.c: Likewise.
11626 * ipa-utils.c: Likewise.
11627 * ipa-visibility.c: Likewise.
11629 * ira-build.c: Likewise.
11630 * ira-color.c: Likewise.
11631 * ira-conflicts.c: Likewise.
11632 * ira-costs.c: Likewise.
11633 * ira-emit.c: Likewise.
11634 * ira-lives.c: Likewise.
11636 * jump.c: Likewise.
11637 * langhooks.c: Likewise.
11639 * loop-doloop.c: Likewise.
11640 * loop-init.c: Likewise.
11641 * loop-invariant.c: Likewise.
11642 * loop-iv.c: Likewise.
11643 * loop-unroll.c: Likewise.
11644 * lower-subreg.c: Likewise.
11645 * lra-assigns.c: Likewise.
11646 * lra-coalesce.c: Likewise.
11647 * lra-constraints.c: Likewise.
11648 * lra-eliminations.c: Likewise.
11649 * lra-lives.c: Likewise.
11650 * lra-remat.c: Likewise.
11651 * lra-spills.c: Likewise.
11653 * lto-cgraph.c: Likewise.
11654 * lto-compress.c: Likewise.
11655 * lto-opts.c: Likewise.
11656 * lto-section-in.c: Likewise.
11657 * lto-section-out.c: Likewise.
11658 * lto-streamer-in.c: Likewise.
11659 * lto-streamer-out.c: Likewise.
11660 * lto-streamer.c: Likewise.
11662 * mode-switching.c: Likewise.
11663 * modulo-sched.c: Likewise.
11664 * omega.c: Likewise.
11665 * omp-low.c: Likewise.
11666 * optabs.c: Likewise.
11667 * opts-global.c: Likewise.
11668 * opts.h: Likewise.
11669 * passes.c: Likewise.
11670 * plugin.c: Likewise.
11671 * postreload-gcse.c: Likewise.
11672 * postreload.c: Likewise.
11673 * predict.c: Likewise.
11674 * pretty-print.h: Likewise.
11675 * print-rtl.c: Likewise.
11676 * print-tree.c: Likewise.
11677 * profile.c: Likewise.
11678 * real.c: Likewise.
11679 * realmpfr.c: Likewise.
11680 * recog.c: Likewise.
11682 * reg-stack.c: Likewise.
11683 * regcprop.c: Likewise.
11684 * reginfo.c: Likewise.
11685 * regrename.c: Likewise.
11686 * regstat.c: Likewise.
11687 * reload.c: Likewise.
11688 * reload1.c: Likewise.
11689 * reorg.c: Likewise.
11690 * resource.c: Likewise.
11691 * rtl-chkp.c: Likewise.
11692 * rtl-error.c: Likewise.
11693 * rtlanal.c: Likewise.
11694 * rtlhooks.c: Likewise.
11695 * sanopt.c: Likewise.
11696 * sched-deps.c: Likewise.
11697 * sched-ebb.c: Likewise.
11698 * sched-rgn.c: Likewise.
11699 * sched-vis.c: Likewise.
11700 * sdbout.c: Likewise.
11701 * sel-sched-dump.c: Likewise.
11702 * sel-sched-ir.c: Likewise.
11703 * sel-sched.c: Likewise.
11704 * sese.c: Likewise.
11705 * shrink-wrap.c: Likewise.
11706 * simplify-rtx.c: Likewise.
11707 * stack-ptr-mod.c: Likewise.
11708 * statistics.c: Likewise.
11709 * stmt.c: Likewise.
11710 * stor-layout.c: Likewise.
11711 * store-motion.c: Likewise.
11712 * streamer-hooks.c: Likewise.
11713 * stringpool.c: Likewise.
11714 * symtab.c: Likewise.
11715 * target-globals.c: Likewise.
11716 * targhooks.c: Likewise.
11717 * toplev.c: Likewise.
11718 * tracer.c: Likewise.
11719 * trans-mem.c: Likewise.
11720 * tree-affine.c: Likewise.
11721 * tree-browser.c: Likewise.
11722 * tree-call-cdce.c: Likewise.
11723 * tree-cfg.c: Likewise.
11724 * tree-cfgcleanup.c: Likewise.
11725 * tree-chkp-opt.c: Likewise.
11726 * tree-chkp.c: Likewise.
11727 * tree-chrec.c: Likewise.
11728 * tree-complex.c: Likewise.
11729 * tree-data-ref.c: Likewise.
11730 * tree-dfa.c: Likewise.
11731 * tree-diagnostic.c: Likewise.
11732 * tree-dump.c: Likewise.
11733 * tree-eh.c: Likewise.
11734 * tree-emutls.c: Likewise.
11735 * tree-if-conv.c: Likewise.
11736 * tree-inline.c: Likewise.
11737 * tree-into-ssa.c: Likewise.
11738 * tree-iterator.c: Likewise.
11739 * tree-loop-distribution.c: Likewise.
11740 * tree-nested.c: Likewise.
11741 * tree-nrv.c: Likewise.
11742 * tree-object-size.c: Likewise.
11743 * tree-outof-ssa.c: Likewise.
11744 * tree-parloops.c: Likewise.
11745 * tree-phinodes.c: Likewise.
11746 * tree-predcom.c: Likewise.
11747 * tree-pretty-print.c: Likewise.
11748 * tree-profile.c: Likewise.
11749 * tree-scalar-evolution.c: Likewise.
11750 * tree-sra.c: Likewise.
11751 * tree-ssa-address.c: Likewise.
11752 * tree-ssa-alias.c: Likewise.
11753 * tree-ssa-ccp.c: Likewise.
11754 * tree-ssa-coalesce.c: Likewise.
11755 * tree-ssa-copy.c: Likewise.
11756 * tree-ssa-copyrename.c: Likewise.
11757 * tree-ssa-dce.c: Likewise.
11758 * tree-ssa-dom.c: Likewise.
11759 * tree-ssa-dse.c: Likewise.
11760 * tree-ssa-forwprop.c: Likewise.
11761 * tree-ssa-ifcombine.c: Likewise.
11762 * tree-ssa-live.c: Likewise.
11763 * tree-ssa-loop-ch.c: Likewise.
11764 * tree-ssa-loop-im.c: Likewise.
11765 * tree-ssa-loop-ivcanon.c: Likewise.
11766 * tree-ssa-loop-ivopts.c: Likewise.
11767 * tree-ssa-loop-manip.c: Likewise.
11768 * tree-ssa-loop-niter.c: Likewise.
11769 * tree-ssa-loop-prefetch.c: Likewise.
11770 * tree-ssa-loop-unswitch.c: Likewise.
11771 * tree-ssa-loop.c: Likewise.
11772 * tree-ssa-math-opts.c: Likewise.
11773 * tree-ssa-operands.c: Likewise.
11774 * tree-ssa-phiopt.c: Likewise.
11775 * tree-ssa-phiprop.c: Likewise.
11776 * tree-ssa-pre.c: Likewise.
11777 * tree-ssa-propagate.c: Likewise.
11778 * tree-ssa-reassoc.c: Likewise.
11779 * tree-ssa-sccvn.c: Likewise.
11780 * tree-ssa-scopedtables.c: Likewise.
11781 * tree-ssa-sink.c: Likewise.
11782 * tree-ssa-strlen.c: Likewise.
11783 * tree-ssa-structalias.c: Likewise.
11784 * tree-ssa-tail-merge.c: Likewise.
11785 * tree-ssa-ter.c: Likewise.
11786 * tree-ssa-threadedge.c: Likewise.
11787 * tree-ssa-threadupdate.c: Likewise.
11788 * tree-ssa-uncprop.c: Likewise.
11789 * tree-ssa-uninit.c: Likewise.
11790 * tree-ssa.c: Likewise.
11791 * tree-ssanames.c: Likewise.
11792 * tree-stdarg.c: Likewise.
11793 * tree-streamer-in.c: Likewise.
11794 * tree-streamer-out.c: Likewise.
11795 * tree-streamer.c: Likewise.
11796 * tree-switch-conversion.c: Likewise.
11797 * tree-tailcall.c: Likewise.
11798 * tree-vect-data-refs.c: Likewise.
11799 * tree-vect-generic.c: Likewise.
11800 * tree-vect-loop-manip.c: Likewise.
11801 * tree-vect-loop.c: Likewise.
11802 * tree-vect-patterns.c: Likewise.
11803 * tree-vect-slp.c: Likewise.
11804 * tree-vect-stmts.c: Likewise.
11805 * tree-vectorizer.c: Likewise.
11806 * tree-vrp.c: Likewise.
11807 * tree.c: Likewise.
11808 * tsan.c: Likewise.
11809 * ubsan.c: Likewise.
11810 * valtrack.c: Likewise.
11811 * value-prof.c: Likewise.
11812 * var-tracking.c: Likewise.
11813 * varasm.c: Likewise.
11814 * varpool.c: Likewise.
11815 * vmsdbgout.c: Likewise.
11816 * vtable-verify.c: Likewise.
11818 * wide-int.cc: Likewise.
11819 * xcoffout.c: Likewise.
11820 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
11821 * common/common-targhooks.c: Likewise.
11822 * config/aarch64/aarch64-builtins.c: Likewise.
11823 * config/aarch64/aarch64.c: Likewise.
11824 * config/alpha/alpha.c: Likewise.
11825 * config/arc/arc.c: Likewise.
11826 * config/arm/aarch-common.c: Likewise.
11827 * config/arm/arm-builtins.c: Likewise.
11828 * config/arm/arm-c.c: Likewise.
11829 * config/arm/arm.c: Likewise.
11830 * config/avr/avr-c.c: Likewise.
11831 * config/avr/avr-log.c: Likewise.
11832 * config/avr/avr.c: Likewise.
11833 * config/bfin/bfin.c: Likewise.
11834 * config/c6x/c6x.c: Likewise.
11835 * config/cr16/cr16.c: Likewise.
11836 * config/cris/cris.c: Likewise.
11837 * config/darwin-c.c: Likewise.
11838 * config/darwin.c: Likewise.
11839 * config/default-c.c: Likewise.
11840 * config/epiphany/epiphany.c: Likewise.
11841 * config/epiphany/mode-switch-use.c: Likewise.
11842 * config/epiphany/resolve-sw-modes.c: Likewise.
11843 * config/fr30/fr30.c: Likewise.
11844 * config/frv/frv.c: Likewise.
11845 * config/ft32/ft32.c: Likewise.
11846 * config/glibc-c.c: Likewise.
11847 * config/h8300/h8300.c: Likewise.
11848 * config/i386/i386-c.c: Likewise.
11849 * config/i386/i386.c: Likewise.
11850 * config/i386/msformat-c.c: Likewise.
11851 * config/i386/winnt-cxx.c: Likewise.
11852 * config/i386/winnt-stubs.c: Likewise.
11853 * config/i386/winnt.c: Likewise.
11854 * config/ia64/ia64-c.c: Likewise.
11855 * config/ia64/ia64.c: Likewise.
11856 * config/iq2000/iq2000.c: Likewise.
11857 * config/lm32/lm32.c: Likewise.
11858 * config/m32c/m32c-pragma.c: Likewise.
11859 * config/m32c/m32c.c: Likewise.
11860 * config/m32r/m32r.c: Likewise.
11861 * config/m68k/m68k.c: Likewise.
11862 * config/mcore/mcore.c: Likewise.
11863 * config/mep/mep-pragma.c: Likewise.
11864 * config/mep/mep.c: Likewise.
11865 * config/microblaze/microblaze-c.c: Likewise.
11866 * config/microblaze/microblaze.c: Likewise.
11867 * config/mips/mips.c: Likewise.
11868 * config/mmix/mmix.c: Likewise.
11869 * config/mn10300/mn10300.c: Likewise.
11870 * config/moxie/moxie.c: Likewise.
11871 * config/msp430/msp430-c.c: Likewise.
11872 * config/msp430/msp430.c: Likewise.
11873 * config/nds32/nds32-cost.c: Likewise.
11874 * config/nds32/nds32-fp-as-gp.c: Likewise.
11875 * config/nds32/nds32-intrinsic.c: Likewise.
11876 * config/nds32/nds32-isr.c: Likewise.
11877 * config/nds32/nds32-md-auxiliary.c: Likewise.
11878 * config/nds32/nds32-memory-manipulation.c: Likewise.
11879 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11880 * config/nds32/nds32-predicates.c: Likewise.
11881 * config/nds32/nds32.c: Likewise.
11882 * config/nios2/nios2.c: Likewise.
11883 * config/nvptx/nvptx.c: Likewise.
11884 * config/pa/pa.c: Likewise.
11885 * config/pdp11/pdp11.c: Likewise.
11886 * config/rl78/rl78-c.c: Likewise.
11887 * config/rl78/rl78.c: Likewise.
11888 * config/rs6000/rs6000-c.c: Likewise.
11889 * config/rs6000/rs6000.c: Likewise.
11890 * config/rx/rx.c: Likewise.
11891 * config/s390/s390-c.c: Likewise.
11892 * config/s390/s390.c: Likewise.
11893 * config/sh/sh-c.c: Likewise.
11894 * config/sh/sh-mem.cc: Likewise.
11895 * config/sh/sh.c: Likewise.
11896 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11897 * config/sh/sh_treg_combine.cc: Likewise.
11898 * config/sol2-c.c: Likewise.
11899 * config/sol2-cxx.c: Likewise.
11900 * config/sol2-stubs.c: Likewise.
11901 * config/sol2.c: Likewise.
11902 * config/sparc/sparc-c.c: Likewise.
11903 * config/sparc/sparc.c: Likewise.
11904 * config/spu/spu-c.c: Likewise.
11905 * config/spu/spu.c: Likewise.
11906 * config/stormy16/stormy16.c: Likewise.
11907 * config/tilegx/mul-tables.c: Likewise.
11908 * config/tilegx/tilegx-c.c: Likewise.
11909 * config/tilegx/tilegx.c: Likewise.
11910 * config/tilepro/mul-tables.c: Likewise.
11911 * config/tilepro/tilepro-c.c: Likewise.
11912 * config/tilepro/tilepro.c: Likewise.
11913 * config/v850/v850-c.c: Likewise.
11914 * config/v850/v850.c: Likewise.
11915 * config/vax/vax.c: Likewise.
11916 * config/visium/visium.c: Likewise.
11917 * config/vms/vms-c.c: Likewise.
11918 * config/vms/vms.c: Likewise.
11919 * config/vxworks.c: Likewise.
11920 * config/winnt-c.c: Likewise.
11921 * config/xtensa/xtensa.c: Likewise.
11923 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
11925 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
11927 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
11929 2015-06-17 Richard Biener <rguenther@suse.de>
11931 PR tree-optimization/66251
11932 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
11933 stmts for SLP strided stores.
11936 2015-05-22 Richard Biener <rguenther@suse.de>
11938 PR tree-optimization/66251
11939 * tree-vect-stmts.c (vectorizable_conversion): Properly
11940 set STMT_VINFO_VEC_STMT even for the SLP case.
11942 2015-05-26 Michael Matz <matz@suse.de>
11944 PR middle-end/66251
11945 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
11946 STMT_VINFO_VEC_STMT, also with SLP.
11948 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
11951 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
11952 (*avx_addsubv4df3_1s): Ditto.
11953 (*sse3_addsubv2df3_1): Ditto.
11954 (*sse3_addsubv2df3_1s): Ditto.
11955 (*avx_addsubv8sf3_1): Ditto.
11956 (*avx_addsubv8sf3_1s): Ditto.
11957 (*sse3_addsubv4sf3_1): Ditto.
11958 (*sse3_addsubv4sf3_1s): Ditto.
11960 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
11962 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
11963 (SYSROOT_SUFFIX_SPEC): Update.
11964 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
11965 (STARTFILE_PREFIX_SPEC): Update.
11966 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
11967 (MULTILIB_REQUIRED): New.
11968 (MULTILIB_OSDIRNAMES): New.
11969 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
11970 (MULTILIB_REQUIRED): New.
11971 (MULTILIB_OSDIRNAMES): New.
11973 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
11975 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
11976 * config/aarch64/aarch64-options-extensions.def: Update "fP",
11977 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
11978 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
11979 (AARCH64_FL_PAN): New.
11980 (AARCH64_FL_LOR): New.
11981 (AARCH64_FL_RDMA): New.
11982 (AARCH64_FL_FOR_ARCH8_1): New.
11983 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
11984 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
11986 2015-06-16 Martin Liska <mliska@suse.cz>
11988 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
11989 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
11992 2015-06-16 Richard Biener <rguenther@suse.de>
11994 * tree-vect-stmts.c (vectorizable_store): Adjust.
11995 (vectorizable_load): Likewise.
11996 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11998 (vect_create_data_ref_ptr): Likewise.
11999 (bump_vector_ptr): Adjust.
12001 2015-06-16 Richard Biener <rguenther@suse.de>
12003 * tree-vect-stmts.c (vectorizable_load): Properly start loads
12004 with the first element if this is grouped loads.
12006 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
12008 * config/arm/arm-protos.h (struct tune_params): Rename
12009 log_op_non_sc to log_op_non_short_circuit, and rename enum
12010 values to expand SC to SHORT_CIRCUIT.
12011 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
12012 to LOG_OP_NON_SHORT_CIRCUIT.
12013 (arm_fastmul_tune):Likewise
12014 (arm_strongarm_tune): Likewise.
12015 (arm_xscale_tune): Likewise.
12016 (arm_9e_tune): Likewise.
12017 (arm_marvell_pj4_tune): Likewise.
12018 (arm_v6t2_tune): Likewise.
12019 (arm_cortex_tune): Likewise.
12020 (arm_cortex_a8_tune): Likewise.
12021 (arm_cortex_a7_tune): Likewise.
12022 (arm_cortex_a15_tune): Likewise.
12023 (arm_cortex_a53_tune): Likewise.
12024 (arm_cortex_a57_tune): Likewise.
12025 (arm_xgene1_tune): Likewise.
12026 (arm_cortex_a5_tune): Likewise.
12027 (arm_cortex_a9_tune): Likewise.
12028 (arm_cortex_a12_tune): Likewise.
12029 (arm_v7m_tune): Likewise.
12030 (arm_cortex_m7_tune): Likewise.
12031 (arm_v6m_tune): Likewise.
12032 (arm_fa726te_tune): Likewise.
12034 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
12036 * altivec.md: Delete UNSPEC_VMLADDUHM.
12037 (mulv4si3_p8): New pattern.
12038 (mulv4si3): Use it for POWER8.
12039 (mulv8hi3): Use vmladduhm with zero addend.
12040 (altivec_vmladduhm): Descriptive RTL.
12042 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
12044 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
12045 to use neon_move instead of mov_imm.
12046 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
12047 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
12049 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
12050 aarch64_float_const_zero_rtx_p check before TFmode check.
12051 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
12053 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
12054 code and attributes to match. Change condition from register_operand
12055 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
12056 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
12059 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
12062 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
12063 there is no parent.
12065 2015-06-14 Shiva Chen <shiva0217@gmail.com>
12067 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
12068 HOST_WIDE_INT parameter.
12070 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
12073 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
12074 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
12076 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
12078 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
12080 * rtl.h (classify_insn): Declare.
12081 * emit-rtl.c (classify_insn): Move to...
12082 * rtl.c: ...here and add generator support.
12083 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
12084 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
12085 * genemit.c (gen_emit_seq): New function.
12086 (gen_expand, gen_split): Use it.
12088 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
12090 * tree.c (make_vector_stat): Fix comment to state that the
12091 function returns a VECTOR_CST.
12093 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
12095 * gensupport.h (add_implicit_parallel): Declare.
12096 * genrecog.c (add_implicit_parallel): Move to...
12097 * gensupport.c (add_implicit_parallel): ...here.
12098 (process_one_cond_exec): Use it.
12099 * genemit.c (gen_insn): Likewise.
12101 2015-06-13 Iain Sandoe <iain@codesourcery.com>
12104 * passes.c (rest_of_decl_compilation): Do not register globals for
12105 early debug if they are declared in built-ins.
12107 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
12109 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
12111 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12113 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
12115 (noce_try_cmove_arith): Likewise.
12116 (noce_get_alt_condition): Likewise.
12118 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12120 * common/config/i386/i386-common.c
12121 (OPTION_MASK_ISA_MWAITX_SET): New.
12122 (ix86_handle_option): Handle mwaitx.
12123 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
12124 (x86_64-*-*): Likewise.
12125 * config/i386/mwaitxintrin.h: New header.
12126 * config/i386/cpuid.h (bit_MWAITX): Define.
12127 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12129 * config/i386/i386.opt (mwaitx): New.
12130 * config/i386/i386-builtin-types.def
12131 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
12132 * config/i386/i386-c.c: Define __MWAITX__ if needed.
12133 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
12135 (ix86_option_override_internal): Handle new option.
12136 (processor_alias_table): Added PTA_MWAITX.
12137 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
12138 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
12139 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
12140 IX86_BUILTIN_MONITORX built-ins.
12141 * config/i386/i386.h (TARGET_MWAITX): New.
12142 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
12144 (mwaitx): New pattern.
12145 (monitorx_<mode>): New pattern.
12146 * config/i386/x86intrin.h: Include mwaitxintrin.h.
12147 * doc/extend.texi: Document monitorx and mwaitx builtins.
12148 * doc/invoke.texi: Document -mmwaitx option.
12150 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
12152 * emit-rtl.c (need_atomic_barrier_p): Mask model with
12153 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
12155 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12157 * dbxout.c (xcoff_debug_hooks): Provide a function for
12158 register_main_translation_unit hook.
12160 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12162 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
12163 variants cases from switch.
12164 (rs6000_post_atomic_barrier): Same.
12165 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
12166 (rs6000_expand_atomic_exchange): Same.
12167 (rs6000_expand_atomic_op): Same.
12168 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
12169 SYNC variants cases from switch.
12170 (atomic_load): Same.
12171 (atomic_store): Same.
12173 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
12175 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
12176 CONST_INT for goto.
12178 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
12181 * dwarf2out.c (check_die): Check for common duplicate attributes.
12182 (add_location_or_const_value_attribute): Do not add duplicate
12184 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
12186 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
12187 (gen_type_die_with_usage): Call check_die.
12188 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
12190 2015-06-11 Jason Merrill <jason@redhat.com>
12192 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
12195 2015-06-11 Marek Polacek <polacek@redhat.com>
12197 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
12199 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
12202 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
12203 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
12204 (*addx_extend_sp32): Fix pasto.
12205 (*subx_extend): Rename into...
12206 (*subx_extend_sp32): ...this.
12207 (*adddi3_extend_sp32): Add earlyclobber.
12208 (*subdi3_insn_sp32): Likewise.
12209 (*subdi3_extend_sp32): Likewise.
12210 (*and_not_di_sp32): Likewise.
12211 (*or_not_di_sp32): Likewise.
12212 (*xor_not_di_sp32): Likewise.
12213 (*negdi2_sp32): Likewise.
12214 (*one_cmpldi2_sp32): Likewise.
12216 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
12218 * debug.h (struct gcc_debug_hooks): Add a
12219 register_main_translation_unit hook.
12220 * debug.c (do_nothing_debug_hooks): Provide a function for this
12222 * dbxout.c (dbx_debug_hooks): Likewise.
12223 * sdbout.c (sdb_debug_hooks): Likewise.
12224 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12225 * dwarf2out.c (main_translation_unit): New global variable.
12226 (dwarf2out_register_main_translation_unit): New function
12227 implementing the new hook.
12228 (dwarf2_debug_hooks): Assign
12229 dwarf2out_register_main_translation_unit to this new hook.
12230 (dwarf2out_init): Associate any main translation unit to
12233 2015-06-11 Marek Polacek <polacek@redhat.com>
12235 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
12237 2015-06-11 Marek Polacek <polacek@redhat.com>
12239 * match.pd: Use single_use throughout.
12241 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12243 * config/arm/arm.c (arm_option_params_internal): When optimising
12244 for speed set max_insns_skipped when arm_restrict_it.
12246 2015-06-11 Christian Bruel <christian.bruel@st.com>
12249 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
12251 (arm_cpu_builtins): New function.
12252 (arm_pragma_target_parse): Call arm_cpu_builtins.
12253 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
12254 (arm_register_target_pragmas): Likewise.
12255 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
12256 Call arm_register_target_pragmas.
12257 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
12258 (arm_pragma_target_parse): Likewise.
12260 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
12262 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
12263 of the second operand.
12265 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
12268 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
12269 to prepare mask operand for AVX512 modes.
12271 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12274 * doc/md.texi (Machine Constraints): Document that on the PowerPC
12275 if you use a constraint that targets a VSX register, you must use
12276 %x<n> in the template.
12278 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
12280 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
12281 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
12282 (define_insn "trap"): New definition.
12284 2015-06-10 Richard Biener <rguenther@suse.de>
12286 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
12288 (vect_supported_load_permutation_p): ... here. Handle
12289 supportable permutations in reductions.
12290 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
12291 for vectorizing strided group loads.
12293 2015-06-10 Jakub Jelinek <jakub@redhat.com>
12296 * config/i386/i386.c (ix86_split_long_move): For collisions
12297 involving direct tls segment refs, move the UNSPEC_TP possibly
12298 wrapped in ZERO_EXTEND out of the address for lea, to each of
12301 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12303 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
12304 dmb sy. Adjust tabs.
12306 2015-06-10 Tom de Vries <tom@codesourcery.com>
12308 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
12310 2015-06-10 Martin Liska <mliska@suse.cz>
12313 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
12314 all enum values in mem_alloc_origin.
12315 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
12317 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
12318 * bitmap.c (bitmap_register): Likewise.
12319 (dump_bitmap_statistics): Likewise.
12320 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
12321 (ggc_record_overhead): Likewise.
12322 * hash-map.h: Likewise.
12323 * hash-set.h: Likewise.
12324 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
12325 * hash-table.h: Likewise.
12326 * vec.c (vec_prefix::register_overhead): Likewise.
12327 (vec_prefix::release_overhead): Likewise.
12328 (dump_vec_loc_statistics): Likewise.
12330 2015-06-09 Christian Bruel <christian.bruel@st.com>
12333 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
12334 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
12335 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
12336 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
12337 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
12338 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
12339 (arm_valid_target_attribute_p): Likewise.
12340 (arm_set_current_function, arm_can_inline_p): Likewise.
12341 (arm_valid_target_attribute_rec): Likewise.
12342 (arm_previous_fndecl): New variable.
12343 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12344 (TARGET_CAN_INLINE_P): Define.
12345 (arm_asm_trampoline_template): Emit mode.
12346 (arm_file_start): Don't set unified syntax.
12347 (arm_declare_function_name): Set unified syntax and mode.
12348 (arm_option_override): Init target_option_default_node.
12349 and target_option_current_node.
12350 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
12351 (*call_symbol): Likewise.
12352 * doc/extend.texi: Document ARM/Thumb target attribute.
12353 * doc/invoke.texi: Likewise.
12355 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12358 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12359 PR rtl-optimization/64164
12360 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12361 * tree-ssa-copyrename.c: Removed.
12362 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12363 -ftree-coalesce-vars.
12364 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12365 * common.opt (ftree-copyrename): Ignore.
12366 (ftree-coalesce-inlined-vars): Likewise.
12367 * doc/invoke.texi: Remove the ignored options above.
12368 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12369 * tree-ssa-coalesce.h: ... here.
12370 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12371 headers required by it.
12372 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12373 across variables when flag_tree_coalesce_vars. Check register
12374 use and promoted modes to allow coalescing. Moved to
12375 tree-ssa-coalesce.c.
12376 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12377 with its member functions to tree-ssa-coalesce.c.
12378 (var_map_base_init): Likewise. Renamed to
12379 compute_samebase_partition_bases.
12380 (partition_view_normal): Drop want_bases parameter.
12381 (partition_view_bitmap): Likewise.
12382 * tree-ssa-live.h: Adjust declarations.
12383 * tree-ssa-coalesce.c: Include explow.h.
12384 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12385 default defs at the entry point.
12386 (dump_part_var_map): New.
12387 (compute_optimized_partition_bases): New, called by...
12388 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12389 of compute_samebase_partition_bases. Adjust.
12390 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12391 * cfgexpand.c (leader_merge): New.
12392 (get_rtl_for_parm_ssa_default_def): New.
12393 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12394 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12395 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12396 redundant MEM attr setting.
12397 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12399 (expand_one_stack_var): ... this. New wrapper to check and
12400 skip already expanded SSA partitions.
12401 (record_alignment_for_reg_var): New, factored out of...
12402 (expand_one_var): ... this.
12403 (expand_one_ssa_partition): New.
12404 (adjust_one_expanded_partition_var): New.
12405 (expand_one_register_var): Check and skip already expanded SSA
12407 (expand_used_vars): Don't create DECLs for anonymous SSA
12408 names. Expand all SSA partitions, then adjust all SSA names.
12409 (pass::execute): Replace the loops that set
12410 SA.partition_to_pseudo from partition leaders and cleared
12411 DECL_RTL for multi-location variables, and that which used to
12412 rename vars and set attrs, with one that clears DECL_RTL and
12413 checks that PARMs and RESULTs default_defs match DECL_RTL.
12414 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12415 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12416 * explow.c (promote_ssa_mode): New.
12417 * explow.h (promote_ssa_mode): Declare.
12418 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12419 * function.c: Include cfgexpand.h.
12420 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12421 (use_register_for_parm_decl): Wrapper for the above to
12422 special-case the result_ptr.
12423 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12424 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12425 multiple locations.
12426 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12427 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12428 (assign_parm_setup_block): Prefer SSA-assigned location.
12429 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12430 if stack_parm is NULL.
12431 (assign_parm_setup_stack): Prefer SSA-assigned location.
12432 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12433 rtl before testing for pointer bounds. Special-case result_ptr.
12434 (expand_function_start): Maybe reset DECL_RTL of result.
12435 Prefer SSA-assigned location for result and static chain.
12436 Factor out DECL_RESULT and SET_DECL_RTL.
12437 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12438 anonymous SSA names. Use promote_ssa_mode.
12439 (get_temp_reg): Likewise.
12440 (remove_ssa_form): Adjust.
12441 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12442 and get its reg_usage for reg invalidation.
12443 (compute_bb_dataflow): Pass it insn.
12444 (emit_notes_in_bb): Likewise.
12445 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12446 fail assert on conversion between unsigned types.
12448 2015-06-09 Tom de Vries <tom@codesourcery.com>
12450 PR tree-optimization/65460
12451 * omp-low.c (expand_omp_target): Set parallelized_function on
12452 cgraph_node for child_fn.
12454 2015-06-09 Tom de Vries <tom@codesourcery.com>
12456 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
12457 parallelized_function before add_new_function.
12459 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
12461 * gcc-plugin.h: Move decls to plugin.h and include it.
12462 * plugin.h: Relocate decls from gcc-plugin.h
12463 * ggc-page.c: Include required header files.
12464 * passes.c: Likewise.
12465 * cgraphunit.c: Likewise.
12467 2015-06-09 Tom de Vries <tom@codesourcery.com>
12469 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
12471 2015-06-09 Jason Merrill <jason@redhat.com>
12474 * toplev.c (check_global_declaration): Don't warn about a clone.
12476 2015-06-09 Marek Polacek <polacek@redhat.com>
12478 PR tree-optimization/66299
12479 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
12480 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
12483 2015-06-09 Richard Biener <rguenther@suse.de>
12485 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
12486 (vect_analyze_slp_instance): Instead do not falsely drop
12489 2015-06-09 Richard Biener <rguenther@suse.de>
12491 PR middle-end/66423
12492 * match.pd: Handle A % (unsigned)(1 << B).
12494 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
12496 * varasm.c (output_object_block_htab): Remove.
12497 (output_object_block_compare): New.
12498 (output_object_blocks): Sort named object_blocks before outputting
12501 2015-06-09 Richard Biener <rguenther@suse.de>
12503 PR tree-optimization/66419
12504 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
12505 consider GROUP_GAP when detecting a perfect subchain.
12507 2015-06-09 Nick Clifton <nickc@redhat.com>
12509 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
12510 place read only data in the .frodata section.
12512 2015-06-09 Shiva Chen <shiva0217@gmail.com>
12514 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
12515 (atomic_store<mode>): Likewise.
12517 2015-06-09 Richard Biener <rguenther@suse.de>
12519 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
12521 2015-06-09 Richard Biener <rguenther@suse.de>
12523 PR middle-end/66413
12524 * tree-inline.c (insert_init_debug_bind): Unshare value.
12526 2015-06-09 Richard Biener <rguenther@suse.de>
12528 PR tree-optimization/66396
12529 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
12530 Rename virtual operands.
12532 2015-06-09 Tom de Vries <tom@codesourcery.com>
12534 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
12535 always return false.
12537 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12539 PR rtl-optimization/64164
12540 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12541 * tree-ssa-copyrename.c: Removed.
12542 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12543 -ftree-coalesce-vars.
12544 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12545 * common.opt (ftree-copyrename): Ignore.
12546 (ftree-coalesce-inlined-vars): Likewise.
12547 * doc/invoke.texi: Remove the ignored options above.
12548 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12549 * tree-ssa-coalesce.h: ... here.
12550 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12551 headers required by it.
12552 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12553 across variables when flag_tree_coalesce_vars. Check register
12554 use and promoted modes to allow coalescing. Moved to
12555 tree-ssa-coalesce.c.
12556 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12557 with its member functions to tree-ssa-coalesce.c.
12558 (var_map_base_init): Likewise. Renamed to
12559 compute_samebase_partition_bases.
12560 (partition_view_normal): Drop want_bases parameter.
12561 (partition_view_bitmap): Likewise.
12562 * tree-ssa-live.h: Adjust declarations.
12563 * tree-ssa-coalesce.c: Include explow.h.
12564 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12565 default defs at the entry point.
12566 (dump_part_var_map): New.
12567 (compute_optimized_partition_bases): New, called by...
12568 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12569 of compute_samebase_partition_bases. Adjust.
12570 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12571 * cfgexpand.c (leader_merge): New.
12572 (get_rtl_for_parm_ssa_default_def): New.
12573 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12574 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12575 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12576 redundant MEM attr setting.
12577 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12579 (expand_one_stack_var): ... this. New wrapper to check and
12580 skip already expanded SSA partitions.
12581 (record_alignment_for_reg_var): New, factored out of...
12582 (expand_one_var): ... this.
12583 (expand_one_ssa_partition): New.
12584 (adjust_one_expanded_partition_var): New.
12585 (expand_one_register_var): Check and skip already expanded SSA
12587 (expand_used_vars): Don't create DECLs for anonymous SSA
12588 names. Expand all SSA partitions, then adjust all SSA names.
12589 (pass::execute): Replace the loops that set
12590 SA.partition_to_pseudo from partition leaders and cleared
12591 DECL_RTL for multi-location variables, and that which used to
12592 rename vars and set attrs, with one that clears DECL_RTL and
12593 checks that PARMs and RESULTs default_defs match DECL_RTL.
12594 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12595 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12596 * explow.c (promote_ssa_mode): New.
12597 * explow.h (promote_ssa_mode): Declare.
12598 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12599 * function.c: Include cfgexpand.h.
12600 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12601 (use_register_for_parm_decl): Wrapper for the above to
12602 special-case the result_ptr.
12603 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12604 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12605 multiple locations.
12606 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12607 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12608 (assign_parm_setup_block): Prefer SSA-assigned location.
12609 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12610 if stack_parm is NULL.
12611 (assign_parm_setup_stack): Prefer SSA-assigned location.
12612 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12613 rtl before testing for pointer bounds. Special-case result_ptr.
12614 (expand_function_start): Maybe reset DECL_RTL of result.
12615 Prefer SSA-assigned location for result and static chain.
12616 Factor out DECL_RESULT and SET_DECL_RTL.
12617 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12618 anonymous SSA names. Use promote_ssa_mode.
12619 (get_temp_reg): Likewise.
12620 (remove_ssa_form): Adjust.
12621 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12622 and get its reg_usage for reg invalidation.
12623 (compute_bb_dataflow): Pass it insn.
12624 (emit_notes_in_bb): Likewise.
12625 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12626 fail assert on conversion between unsigned types.
12628 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12631 * tree-inline.c (reset_debug_binding): New.
12632 (reset_debug_bindings): Likewise.
12633 (expand_call_inline): Call it.
12635 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12637 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
12640 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12642 * lto-streamer-out.c (lto_output_location): Stream
12643 reserved locations correctly.
12644 * lto-streamer-in.c (lto_output_location): Likewise.
12646 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
12648 * coretypes.h: Include hash-table.h and hash-set.h for host files.
12649 * ggc.h: Don't include statistics.h>
12650 * hash-map.h: Remove all includes.
12651 * hash-set.h: Likewise.
12652 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
12653 the include list. Remove <new>.
12654 * inchash.h: Remove all includes.
12655 * mem-stats.h: Likewise.
12656 * vec.h: No special processing for generators or ggc.
12657 * alias.c : Adjust include files.
12658 * alloc-pool.c : Likewise.
12659 * alloc-pool.h : Likewise.
12660 * asan.c : Likewise.
12661 * attribs.c : Likewise.
12662 * auto-inc-dec.c : Likewise.
12663 * auto-profile.c : Likewise.
12664 * bb-reorder.c : Likewise.
12665 * bitmap.c : Likewise.
12666 * bitmap.h : Likewise.
12667 * bt-load.c : Likewise.
12668 * builtins.c : Likewise.
12669 * caller-save.c : Likewise.
12670 * calls.c : Likewise.
12671 * ccmp.c : Likewise.
12672 * cfg.c : Likewise.
12673 * cfganal.c : Likewise.
12674 * cfgbuild.c : Likewise.
12675 * cfgcleanup.c : Likewise.
12676 * cfgexpand.c : Likewise.
12677 * cfghooks.c : Likewise.
12678 * cfgloop.c : Likewise.
12679 * cfgloop.h : Likewise.
12680 * cfgloopanal.c : Likewise.
12681 * cfgloopmanip.c : Likewise.
12682 * cfgrtl.c : Likewise.
12683 * cgraph.c : Likewise.
12684 * cgraphbuild.c : Likewise.
12685 * cgraphclones.c : Likewise.
12686 * cgraphunit.c : Likewise.
12687 * cilk-common.c : Likewise.
12688 * combine-stack-adj.c : Likewise.
12689 * combine.c : Likewise.
12690 * compare-elim.c : Likewise.
12691 * context.c : Likewise.
12692 * convert.c : Likewise.
12693 * coverage.c : Likewise.
12694 * cppbuiltin.c : Likewise.
12695 * cprop.c : Likewise.
12696 * cse.c : Likewise.
12697 * cselib.c : Likewise.
12698 * data-streamer-in.c : Likewise.
12699 * data-streamer-out.c : Likewise.
12700 * data-streamer.c : Likewise.
12701 * data-streamer.h : Likewise.
12702 * dbxout.c : Likewise.
12703 * dce.c : Likewise.
12704 * ddg.c : Likewise.
12705 * debug.c : Likewise.
12706 * df-core.c : Likewise.
12707 * df-problems.c : Likewise.
12708 * df-scan.c : Likewise.
12710 * dfp.c : Likewise.
12711 * dojump.c : Likewise.
12712 * dominance.c : Likewise.
12713 * domwalk.c : Likewise.
12714 * double-int.c : Likewise.
12715 * dse.c : Likewise.
12716 * dumpfile.c : Likewise.
12717 * dwarf2asm.c : Likewise.
12718 * dwarf2cfi.c : Likewise.
12719 * dwarf2out.c : Likewise.
12720 * emit-rtl.c : Likewise.
12721 * et-forest.c : Likewise.
12722 * except.c : Likewise.
12723 * except.h : Likewise.
12724 * explow.c : Likewise.
12725 * expmed.c : Likewise.
12726 * expr.c : Likewise.
12727 * final.c : Likewise.
12728 * fixed-value.c : Likewise.
12729 * fold-const.c : Likewise.
12730 * function.c : Likewise.
12731 * fwprop.c : Likewise.
12732 * gcc-plugin.h : Likewise.
12733 * gcc.c : Likewise.
12734 * gcse-common.c : Likewise.
12735 * gcse.c : Likewise.
12736 * genattrtab.c : Likewise.
12737 * genautomata.c : Likewise.
12738 * genconditions.c : Likewise.
12739 * genemit.c : Likewise.
12740 * generic-match-head.c : Likewise.
12741 * genextract.c : Likewise.
12742 * gengtype-state.c : Likewise.
12743 * gengtype.c : Likewise.
12744 * genhooks.c : Likewise.
12745 * genmatch.c : Likewise.
12746 * genmodes.c : Likewise.
12747 * genrecog.c : Likewise.
12748 * gensupport.c : Likewise.
12749 * ggc-common.c : Likewise.
12750 * ggc-internal.h : Likewise.
12751 * ggc-none.c : Likewise.
12752 * ggc-page.c : Likewise.
12753 * gimple-builder.c : Likewise.
12754 * gimple-expr.c : Likewise.
12755 * gimple-fold.c : Likewise.
12756 * gimple-iterator.c : Likewise.
12757 * gimple-low.c : Likewise.
12758 * gimple-match-head.c : Likewise.
12759 * gimple-pretty-print.c : Likewise.
12760 * gimple-ssa-isolate-paths.c : Likewise.
12761 * gimple-ssa-strength-reduction.c : Likewise.
12762 * gimple-ssa.h : Likewise.
12763 * gimple-streamer-in.c : Likewise.
12764 * gimple-streamer-out.c : Likewise.
12765 * gimple-streamer.h : Likewise.
12766 * gimple-walk.c : Likewise.
12767 * gimple.c : Likewise.
12768 * gimplify-me.c : Likewise.
12769 * gimplify.c : Likewise.
12770 * godump.c : Likewise.
12771 * graph.c : Likewise.
12772 * graphds.c : Likewise.
12773 * graphite-blocking.c : Likewise.
12774 * graphite-dependences.c : Likewise.
12775 * graphite-interchange.c : Likewise.
12776 * graphite-isl-ast-to-gimple.c : Likewise.
12777 * graphite-optimize-isl.c : Likewise.
12778 * graphite-poly.c : Likewise.
12779 * graphite-scop-detection.c : Likewise.
12780 * graphite-sese-to-poly.c : Likewise.
12781 * graphite.c : Likewise.
12782 * haifa-sched.c : Likewise.
12783 * hard-reg-set.h : Likewise.
12784 * hw-doloop.c : Likewise.
12785 * ifcvt.c : Likewise.
12786 * inchash.c : Likewise.
12787 * incpath.c : Likewise.
12788 * init-regs.c : Likewise.
12789 * input.c : Likewise.
12790 * internal-fn.c : Likewise.
12791 * ipa-chkp.c : Likewise.
12792 * ipa-comdats.c : Likewise.
12793 * ipa-cp.c : Likewise.
12794 * ipa-devirt.c : Likewise.
12795 * ipa-icf-gimple.c : Likewise.
12796 * ipa-icf.c : Likewise.
12797 * ipa-inline-analysis.c : Likewise.
12798 * ipa-inline-transform.c : Likewise.
12799 * ipa-inline.c : Likewise.
12800 * ipa-polymorphic-call.c : Likewise.
12801 * ipa-profile.c : Likewise.
12802 * ipa-prop.c : Likewise.
12803 * ipa-pure-const.c : Likewise.
12804 * ipa-ref.c : Likewise.
12805 * ipa-reference.c : Likewise.
12806 * ipa-split.c : Likewise.
12807 * ipa-utils.c : Likewise.
12808 * ipa-visibility.c : Likewise.
12809 * ipa.c : Likewise.
12810 * ira-build.c : Likewise.
12811 * ira-color.c : Likewise.
12812 * ira-conflicts.c : Likewise.
12813 * ira-costs.c : Likewise.
12814 * ira-emit.c : Likewise.
12815 * ira-lives.c : Likewise.
12816 * ira.c : Likewise.
12817 * jump.c : Likewise.
12818 * langhooks.c : Likewise.
12819 * lcm.c : Likewise.
12820 * libfuncs.h : Likewise.
12821 * lists.c : Likewise.
12822 * loop-doloop.c : Likewise.
12823 * loop-init.c : Likewise.
12824 * loop-invariant.c : Likewise.
12825 * loop-iv.c : Likewise.
12826 * loop-unroll.c : Likewise.
12827 * lower-subreg.c : Likewise.
12828 * lra-assigns.c : Likewise.
12829 * lra-coalesce.c : Likewise.
12830 * lra-constraints.c : Likewise.
12831 * lra-eliminations.c : Likewise.
12832 * lra-lives.c : Likewise.
12833 * lra-remat.c : Likewise.
12834 * lra-spills.c : Likewise.
12835 * lra.c : Likewise.
12836 * lto-cgraph.c : Likewise.
12837 * lto-compress.c : Likewise.
12838 * lto-opts.c : Likewise.
12839 * lto-section-in.c : Likewise.
12840 * lto-section-out.c : Likewise.
12841 * lto-streamer-in.c : Likewise.
12842 * lto-streamer-out.c : Likewise.
12843 * lto-streamer.c : Likewise.
12844 * lto-streamer.h : Likewise.
12845 * mcf.c : Likewise.
12846 * mode-switching.c : Likewise.
12847 * modulo-sched.c : Likewise.
12848 * omega.c : Likewise.
12849 * omp-low.c : Likewise.
12850 * optabs.c : Likewise.
12851 * opts-global.c : Likewise.
12852 * opts.h : Likewise.
12853 * passes.c : Likewise.
12854 * plugin.c : Likewise.
12855 * postreload-gcse.c : Likewise.
12856 * postreload.c : Likewise.
12857 * predict.c : Likewise.
12858 * print-rtl.c : Likewise.
12859 * print-tree.c : Likewise.
12860 * profile.c : Likewise.
12861 * read-md.c : Likewise.
12862 * read-md.h : Likewise.
12863 * read-rtl.c : Likewise.
12864 * real.c : Likewise.
12865 * realmpfr.c : Likewise.
12866 * recog.c : Likewise.
12867 * ree.c : Likewise.
12868 * reg-stack.c : Likewise.
12869 * regcprop.c : Likewise.
12870 * reginfo.c : Likewise.
12871 * regrename.c : Likewise.
12872 * regstat.c : Likewise.
12873 * reload.c : Likewise.
12874 * reload1.c : Likewise.
12875 * reorg.c : Likewise.
12876 * resource.c : Likewise.
12877 * rtl-chkp.c : Likewise.
12878 * rtl.c : Likewise.
12879 * rtl.h : Likewise.
12880 * rtlanal.c : Likewise.
12881 * rtlhash.c : Likewise.
12882 * rtlhash.h : Likewise.
12883 * rtlhooks.c : Likewise.
12884 * sanopt.c : Likewise.
12885 * sched-deps.c : Likewise.
12886 * sched-ebb.c : Likewise.
12887 * sched-rgn.c : Likewise.
12888 * sched-vis.c : Likewise.
12889 * sdbout.c : Likewise.
12890 * sel-sched-dump.c : Likewise.
12891 * sel-sched-ir.c : Likewise.
12892 * sel-sched-ir.h : Likewise.
12893 * sel-sched.c : Likewise.
12894 * sese.c : Likewise.
12895 * shrink-wrap.c : Likewise.
12896 * shrink-wrap.h : Likewise.
12897 * simplify-rtx.c : Likewise.
12898 * stack-ptr-mod.c : Likewise.
12899 * statistics.c : Likewise.
12900 * stmt.c : Likewise.
12901 * stor-layout.c : Likewise.
12902 * store-motion.c : Likewise.
12903 * stringpool.c : Likewise.
12904 * symtab.c : Likewise.
12905 * target-globals.c : Likewise.
12906 * targhooks.c : Likewise.
12907 * tlink.c : Likewise.
12908 * toplev.c : Likewise.
12909 * tracer.c : Likewise.
12910 * trans-mem.c : Likewise.
12911 * tree-affine.c : Likewise.
12912 * tree-affine.h : Likewise.
12913 * tree-browser.c : Likewise.
12914 * tree-call-cdce.c : Likewise.
12915 * tree-cfg.c : Likewise.
12916 * tree-cfgcleanup.c : Likewise.
12917 * tree-chkp-opt.c : Likewise.
12918 * tree-chkp.c : Likewise.
12919 * tree-chrec.c : Likewise.
12920 * tree-complex.c : Likewise.
12921 * tree-data-ref.c : Likewise.
12922 * tree-dfa.c : Likewise.
12923 * tree-diagnostic.c : Likewise.
12924 * tree-dump.c : Likewise.
12925 * tree-eh.c : Likewise.
12926 * tree-eh.h : Likewise.
12927 * tree-emutls.c : Likewise.
12928 * tree-hasher.h : Likewise.
12929 * tree-if-conv.c : Likewise.
12930 * tree-inline.c : Likewise.
12931 * tree-inline.h : Likewise.
12932 * tree-into-ssa.c : Likewise.
12933 * tree-iterator.c : Likewise.
12934 * tree-loop-distribution.c : Likewise.
12935 * tree-nested.c : Likewise.
12936 * tree-nrv.c : Likewise.
12937 * tree-object-size.c : Likewise.
12938 * tree-outof-ssa.c : Likewise.
12939 * tree-parloops.c : Likewise.
12940 * tree-phinodes.c : Likewise.
12941 * tree-predcom.c : Likewise.
12942 * tree-pretty-print.c : Likewise.
12943 * tree-profile.c : Likewise.
12944 * tree-scalar-evolution.c : Likewise.
12945 * tree-sra.c : Likewise.
12946 * tree-ssa-address.c : Likewise.
12947 * tree-ssa-alias.c : Likewise.
12948 * tree-ssa-ccp.c : Likewise.
12949 * tree-ssa-coalesce.c : Likewise.
12950 * tree-ssa-copy.c : Likewise.
12951 * tree-ssa-copyrename.c : Likewise.
12952 * tree-ssa-dce.c : Likewise.
12953 * tree-ssa-dom.c : Likewise.
12954 * tree-ssa-dse.c : Likewise.
12955 * tree-ssa-forwprop.c : Likewise.
12956 * tree-ssa-ifcombine.c : Likewise.
12957 * tree-ssa-live.c : Likewise.
12958 * tree-ssa-loop-ch.c : Likewise.
12959 * tree-ssa-loop-im.c : Likewise.
12960 * tree-ssa-loop-ivcanon.c : Likewise.
12961 * tree-ssa-loop-ivopts.c : Likewise.
12962 * tree-ssa-loop-manip.c : Likewise.
12963 * tree-ssa-loop-niter.c : Likewise.
12964 * tree-ssa-loop-prefetch.c : Likewise.
12965 * tree-ssa-loop-unswitch.c : Likewise.
12966 * tree-ssa-loop.c : Likewise.
12967 * tree-ssa-math-opts.c : Likewise.
12968 * tree-ssa-operands.c : Likewise.
12969 * tree-ssa-phiopt.c : Likewise.
12970 * tree-ssa-phiprop.c : Likewise.
12971 * tree-ssa-pre.c : Likewise.
12972 * tree-ssa-propagate.c : Likewise.
12973 * tree-ssa-reassoc.c : Likewise.
12974 * tree-ssa-sccvn.c : Likewise.
12975 * tree-ssa-scopedtables.c : Likewise.
12976 * tree-ssa-sink.c : Likewise.
12977 * tree-ssa-strlen.c : Likewise.
12978 * tree-ssa-structalias.c : Likewise.
12979 * tree-ssa-tail-merge.c : Likewise.
12980 * tree-ssa-ter.c : Likewise.
12981 * tree-ssa-threadedge.c : Likewise.
12982 * tree-ssa-threadupdate.c : Likewise.
12983 * tree-ssa-uncprop.c : Likewise.
12984 * tree-ssa-uninit.c : Likewise.
12985 * tree-ssa.c : Likewise.
12986 * tree-ssanames.c : Likewise.
12987 * tree-stdarg.c : Likewise.
12988 * tree-streamer-in.c : Likewise.
12989 * tree-streamer-out.c : Likewise.
12990 * tree-streamer.c : Likewise.
12991 * tree-streamer.h : Likewise.
12992 * tree-switch-conversion.c : Likewise.
12993 * tree-tailcall.c : Likewise.
12994 * tree-vect-data-refs.c : Likewise.
12995 * tree-vect-generic.c : Likewise.
12996 * tree-vect-loop-manip.c : Likewise.
12997 * tree-vect-loop.c : Likewise.
12998 * tree-vect-patterns.c : Likewise.
12999 * tree-vect-slp.c : Likewise.
13000 * tree-vect-stmts.c : Likewise.
13001 * tree-vectorizer.c : Likewise.
13002 * tree-vectorizer.h : Likewise.
13003 * tree-vrp.c : Likewise.
13004 * tree.c : Likewise.
13005 * tsan.c : Likewise.
13006 * ubsan.c : Likewise.
13007 * valtrack.c : Likewise.
13008 * valtrack.h : Likewise.
13009 * value-prof.c : Likewise.
13010 * var-tracking.c : Likewise.
13011 * varasm.c : Likewise.
13012 * varpool.c : Likewise.
13014 * vmsdbgout.c : Likewise.
13015 * vtable-verify.c : Likewise.
13016 * vtable-verify.h : Likewise.
13017 * web.c : Likewise.
13018 * wide-int.cc : Likewise.
13019 * xcoffout.c : Likewise.
13020 * config/aarch64/aarch64-builtins.c : Likewise.
13021 * config/aarch64/aarch64.c : Likewise.
13022 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
13023 * config/alpha/alpha.c : Likewise.
13024 * config/arc/arc.c : Likewise.
13025 * config/arm/aarch-common.c : Likewise.
13026 * config/arm/arm-builtins.c : Likewise.
13027 * config/arm/arm-c.c : Likewise.
13028 * config/arm/arm.c : Likewise.
13029 * config/avr/avr-c.c : Likewise.
13030 * config/avr/avr-log.c : Likewise.
13031 * config/avr/avr.c : Likewise.
13032 * config/bfin/bfin.c : Likewise.
13033 * config/c6x/c6x.c : Likewise.
13034 * config/cr16/cr16.c : Likewise.
13035 * config/cris/cris.c : Likewise.
13036 * config/darwin-c.c : Likewise.
13037 * config/darwin.c : Likewise.
13038 * config/default-c.c : Likewise.
13039 * config/epiphany/epiphany.c : Likewise.
13040 * config/epiphany/mode-switch-use.c : Likewise.
13041 * config/epiphany/resolve-sw-modes.c : Likewise.
13042 * config/fr30/fr30.c : Likewise.
13043 * config/frv/frv.c : Likewise.
13044 * config/ft32/ft32.c : Likewise.
13045 * config/glibc-c.c : Likewise.
13046 * config/h8300/h8300.c : Likewise.
13047 * config/i386/i386-c.c : Likewise.
13048 * config/i386/i386.c : Likewise.
13049 * config/i386/msformat-c.c : Likewise.
13050 * config/i386/winnt-cxx.c : Likewise.
13051 * config/i386/winnt-stubs.c : Likewise.
13052 * config/i386/winnt.c : Likewise.
13053 * config/ia64/ia64-c.c : Likewise.
13054 * config/ia64/ia64.c : Likewise.
13055 * config/iq2000/iq2000.c : Likewise.
13056 * config/lm32/lm32.c : Likewise.
13057 * config/m32c/m32c-pragma.c : Likewise.
13058 * config/m32c/m32c.c : Likewise.
13059 * config/m32r/m32r.c : Likewise.
13060 * config/m68k/m68k.c : Likewise.
13061 * config/mcore/mcore.c : Likewise.
13062 * config/mep/mep-pragma.c : Likewise.
13063 * config/mep/mep.c : Likewise.
13064 * config/microblaze/microblaze-c.c : Likewise.
13065 * config/microblaze/microblaze.c : Likewise.
13066 * config/mips/mips.c : Likewise.
13067 * config/mmix/mmix.c : Likewise.
13068 * config/mn10300/mn10300.c : Likewise.
13069 * config/moxie/moxie.c : Likewise.
13070 * config/msp430/msp430-c.c : Likewise.
13071 * config/msp430/msp430.c : Likewise.
13072 * config/nds32/nds32-cost.c : Likewise.
13073 * config/nds32/nds32-fp-as-gp.c : Likewise.
13074 * config/nds32/nds32-intrinsic.c : Likewise.
13075 * config/nds32/nds32-isr.c : Likewise.
13076 * config/nds32/nds32-md-auxiliary.c : Likewise.
13077 * config/nds32/nds32-memory-manipulation.c : Likewise.
13078 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
13079 * config/nds32/nds32-predicates.c : Likewise.
13080 * config/nds32/nds32.c : Likewise.
13081 * config/nios2/nios2.c : Likewise.
13082 * config/nvptx/nvptx.c : Likewise.
13083 * config/pa/pa.c : Likewise.
13084 * config/pdp11/pdp11.c : Likewise.
13085 * config/rl78/rl78-c.c : Likewise.
13086 * config/rl78/rl78.c : Likewise.
13087 * config/rs6000/rs6000-c.c : Likewise.
13088 * config/rs6000/rs6000.c : Likewise.
13089 * config/rx/rx.c : Likewise.
13090 * config/s390/s390-c.c : Likewise.
13091 * config/s390/s390.c : Likewise.
13092 * config/sh/sh-c.c : Likewise.
13093 * config/sh/sh-mem.cc : Likewise.
13094 * config/sh/sh.c : Likewise.
13095 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
13096 * config/sh/sh_treg_combine.cc : Likewise.
13097 * config/sol2-c.c : Likewise.
13098 * config/sol2-cxx.c : Likewise.
13099 * config/sol2-stubs.c : Likewise.
13100 * config/sol2.c : Likewise.
13101 * config/sparc/sparc-c.c : Likewise.
13102 * config/sparc/sparc.c : Likewise.
13103 * config/spu/spu-c.c : Likewise.
13104 * config/spu/spu.c : Likewise.
13105 * config/stormy16/stormy16.c : Likewise.
13106 * config/tilegx/mul-tables.c : Likewise.
13107 * config/tilegx/tilegx-c.c : Likewise.
13108 * config/tilegx/tilegx.c : Likewise.
13109 * config/tilepro/mul-tables.c : Likewise.
13110 * config/tilepro/tilepro-c.c : Likewise.
13111 * config/tilepro/tilepro.c : Likewise.
13112 * config/v850/v850-c.c : Likewise.
13113 * config/v850/v850.c : Likewise.
13114 * config/vax/vax.c : Likewise.
13115 * config/visium/visium.c : Likewise.
13116 * config/vms/vms-c.c : Likewise.
13117 * config/vms/vms.c : Likewise.
13118 * config/vxworks.c : Likewise.
13119 * config/winnt-c.c : Likewise.
13120 * config/xtensa/xtensa.c : Likewise.
13122 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13125 * ipa-utils.h (warn_types_mismatch): Update prototype.
13126 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
13128 (type_mismatch_p): New function.
13129 (warn_types_mismatch): Reorg to work better on non-C++ types.
13130 (odr_types_equivalent_p): Add loc1/loc2 parameters.
13131 (add_type_duplicate): Update.
13133 2015-06-08 Tom de Vries <tom@codesourcery.com>
13135 PR rtl-optimization/66444
13136 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
13139 2015-06-08 Richard Biener <rguenther@suse.de>
13141 PR tree-optimization/66422
13142 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
13143 block after inserted gcc_unreachable.
13145 2015-06-08 Nick Clifton <nickc@redhat.com>
13147 * config/rx/rx.c (rx_function_value): Do not promote vector types.
13148 (rx_promote_function_mode): Likewise.
13149 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
13151 2015-06-08 Jakub Jelinek <jakub@redhat.com>
13153 * genattrtab.c (insn_alternatives): Change type from int *
13155 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
13156 (get_attr_value): Change type of num_alt to uint64_t.
13157 (compute_alternative_mask): Change return type from
13158 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
13159 (make_alternative_compare, mk_attr_alt): Change argument type
13160 from int to uint64_t.
13161 (simplify_test_exp): Change type of i from int to uint64_t.
13162 Shift ((uint64_t) 1) instead of 1 up.
13163 (main): Adjust oballocvec first argument from int to uint64_t.
13164 Shift ((uint64_t) 1) instead of 1 up.
13166 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13169 * gdbhooks.py: Import sys.
13170 (intptr): New function. Replace int(...) by intptr(...).
13172 2015-06-08 Richard Biener <rguenther@suse.de>
13174 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
13175 adjustment for gaps at the end of a SLP load group properly.
13176 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
13177 all permutations we can generate.
13178 (vect_transform_slp_perm_load): Use the correct group-size.
13180 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
13182 * genmatch.c (expr::gen_transform): For conditions, guess the type
13183 from the second operand.
13185 2015-06-08 Tom de Vries <tom@codesourcery.com>
13187 PR tree-optimization/66442
13188 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
13189 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
13190 if the loop latch is not a singleton. Use
13191 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
13193 2015-06-08 Marek Polacek <polacek@redhat.com>
13196 * toplev.c (check_global_declaration): Don't warn about artificial
13199 2015-06-08 Tom de Vries <tom@codesourcery.com>
13201 PR tree-optimization/66436
13202 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
13204 * gimplify.c: Add tree-dump.h include.
13205 (gimplify_function_tree): Dump function to gimple dump file.
13206 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
13209 2015-06-08 Tom de Vries <tom@codesourcery.com>
13211 PR tree-optimization/66435
13212 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
13215 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
13217 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
13218 of ptr_type_node to not be ptr_to_node.
13219 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
13220 TREE_TYPE of pointers.
13221 * gimple-expr.c (useless_type_conversion): Reorder the check for
13222 function pointers and TYPE_CANONICAL.
13224 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
13227 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
13228 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
13229 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
13231 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
13232 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
13233 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
13234 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
13235 and non iso if unix2003.
13237 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
13239 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
13241 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
13243 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
13244 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
13245 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
13246 except.c, final.c, function.c, gcse-common.c, genemit.c,
13247 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
13248 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
13249 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
13250 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
13253 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
13255 * combine.c (combine_split_insns): Remove cast.
13256 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
13257 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
13258 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
13259 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
13260 * genemit.c (gen_split): Change return type of generated functions to
13262 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
13263 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
13264 gen_peephole2_* functions.
13265 (print_subroutine, main): Likewise.
13266 * recog.c (peephole2_optimize): Remove cast.
13267 (peep2_next_insn): Promote return type to rtx_insn.
13268 * recog.h (peep2_next_insn): Fix prototype.
13269 * rtl.h (try_split, split_insns): Likewise.
13271 2015-06-06 DJ Delorie <dj@redhat.com>
13273 * config/msp430/msp430.c (msp430_asm_integer): Support addition
13274 and subtraction too.
13276 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
13279 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
13280 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
13281 instead of Snd. Disparage Sid/z alternative with '^'.
13283 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
13285 * dwarf2out.c: Remove deferred_locations*.
13286 (dwarf2_debug_hooks): Add early_finish hook.
13287 Remove global_decl hook.
13288 Add early_global_decl and late_global_decl hook.
13289 New global early_dwarf.
13290 New structure set_early_dwarf.
13291 (output_die): Indicate whether a DIE was generated early
13292 when generating assembly with -dA.
13293 (struct limbo_die_struct): Document created_for field.
13294 Remove file_table_last_lookup.
13295 (remove_AT): Return TRUE if successful.
13296 (remove_child_TAG): Clear die_parent.
13297 (reparent_child): New function abstracted from...
13298 (splice_child_die): ...here.
13299 (new_die): ICE if a DIE ends up in limbo too late.
13301 (defer_location): Remove.
13302 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
13303 (fill_variable_array_bounds): New.
13304 (decl_start_label): Call fill_variable_array_bounds.
13305 (gen_formal_parameter_die): Rewrite to reuse previously generated
13307 (gen_subprogram_die): Same.
13308 (gen_variable_die): Same.
13309 (gen_const_die): Same.
13310 (gen_label_die): Same.
13311 (gen_lexical_block_die): Same.
13312 (decl_will_get_specification_p): New.
13313 (local_function_static): New.
13314 (gen_struct_or_union_type_die): Fill in variable-length fields.
13315 (gen_typedef_die): Fill in variable-length typedefs.
13316 (gen_tagged_type_die): Gracefully return on error_mark_node.
13317 Handle re-entrancy.
13318 (gen_type_die_with_usage): Handle variable-length types.
13319 Remove duplicate code for ARRAY_TYPE case.
13320 (process_scope_var): Only process imported modules during early
13322 (dwarf2out_early_global_decl): New.
13323 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
13324 (dwarf2out_type_decl): Set early_dwarf while calling
13326 (dwarf2out_decl): Verify that we did not recreate a previously
13328 Do not return on DECL_EXTERNALs in VAR_DECLs.
13329 Abstract some code to local_function_static.
13330 (lookup_filename): Remove use of file_table_last_lookup.
13331 Gracefully exit on missing file_name.
13332 (dwarf2out_finish): Verify limbo list.
13333 Remove deferred_locations_list use.
13334 Move deferred_asm_name and limbo flushing to...
13335 (dwarf2out_early_finish): ...here. New.
13336 (dwarf2out_c_finalize): Remove set of deferred_location_list,
13337 deferred_asm_name, and file_table_last_lookup.
13338 * cgraph.h (referred_to_p): Add default argument.
13339 * cgraphunit.c (referred_to_p): Add and handle include_self
13341 (analyze_functions): Add first_time argument.
13342 Call check_global_declaration for all symbols.
13343 Call late_global_decl for nodes for moribund nodes.
13344 (finalize_compilation_unit): Add new argument to
13346 Call early_global_decl for functions.
13347 Call early_finish debug hook.
13348 * dbxout.c (dbxout_early_global_decl): New.
13349 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
13350 (dbx_debug_hooks): Add new hooks.
13351 (xcoff_debug_hooks): Same.
13352 * debug.c (do_nothing_debug_hooks): Add early_finish field.
13353 Add early and late debug hooks.
13354 Remove global_decl hook.
13355 * debug.h (struct gcc_debug_hooks): Add early_finish,
13356 early_global_decl, and late_global_decl fields.
13357 Remove global_decl field.
13358 Document gcc_debug_hooks.
13359 * gengtype.c (output_typename): Remove.
13360 * godump.c (go_early_global_decl): New.
13361 (go_late_global_decl): New.
13362 (go_global_decl): Remove.
13363 (dump_go_spec_init): Remove global_decl. Add
13364 {early,late}_global_decl.
13365 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
13366 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
13367 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
13368 (write_global_declarations): Remove.
13369 (global_decl_processing): New.
13370 * langhooks.h (struct lang_hooks_for_decls): Remove
13371 final_write_globals field.
13372 Add post_compilation_parsing_cleanups field.
13373 * passes.c (rest_of_decl_compilation): Call early_global_decl.
13374 * sdbout.c: Add early and late_global_decl hooks. Remove
13375 sdbout_global_decl hook.
13376 Add early_finish field for sdb_debug_hooks.
13377 (sdbout_global_decl): Remove.
13378 (sdbout_early_global_decl): New.
13379 (sdbout_late_global_decl): New.
13380 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
13381 * toplev.c (check_global_declaration): Rename from
13382 check_global_declaration_1.
13383 Adapt to use symtab infrastructure.
13384 (check_global_declarations): Remove.
13385 (emit_debug_global_declarations): Remove.
13386 (compile_file): Remove call to final_write_globals langhook.
13387 Run the actual compilation process.
13388 Perform any post compilation parser cleanups.
13389 Generate late debug info.
13390 * toplev.h (check_global_declaration): New.
13391 (check_global_declaration_1): Remove.
13392 (check_global_declarations): Remove.
13393 (write_global_declarations): Remove.
13394 (emit_debug_global_declarations): Remove.
13395 (global_decl_processing): New.
13396 * tree-core.h (struct tree_block): Add DIE field.
13397 * tree.h (BLOCK_DIE): New.
13398 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
13400 (vmsdbgout_early_global_decl): New.
13401 (vmsdbgout_late_global_decl): New.
13402 Add early_finish debug hook field to vmsdbg_debug_hooks.
13403 Remove vmsdbgout_decl to vmsdbgout_function_decl.
13404 Add early and late_global_decl debug hooks.
13406 2015-06-05 Julian Brown <julian@codesourcery.com>
13407 Sandra Loosemore <sandra@codesourcery.com>
13409 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
13410 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
13411 to print-sysroot-suffix.sh script.
13413 2015-06-05 Tom de Vries <tom@codesourcery.com>
13415 merge from gomp4 branch:
13416 2015-05-28 Tom de Vries <tom@codesourcery.com>
13418 PR tree-optimization/65443
13419 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
13420 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
13421 (try_transform_to_exit_first_loop_alt): New function.
13422 (transform_to_exit_first_loop): Use
13423 try_transform_to_exit_first_loop_alt.
13425 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
13427 * builtins.c (expand_builtin_atomic_compare_exchange): Call
13428 emit_cmp_and_jump_insns with the mode of target.
13430 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13432 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
13434 2015-06-04 DJ Delorie <dj@redhat.com>
13436 * config/msp430/msp430.md (movsi_s): New. Special case for
13437 storing a 20-bit symbol into a 32-bit register.
13438 * config/msp430/msp430.c (msp430_subreg): Add support for it.
13439 * config/msp430/predicates.md (msp430_symbol_operand): New.
13441 2015-06-04 Sriraman Tallam <tmsriram@google.com>
13443 * c-family/c-common.c (noplt): New attribute.
13444 (handle_noplt_attribute): New handler.
13445 * calls.c (prepare_call_address): Check for noplt
13447 * config/i386/i386.c (ix86_expand_call): Check
13448 for noplt attribute.
13449 (ix86_nopic_noplt_attribute_p): New function.
13450 (ix86_output_call_insn): Output indirect call for non-pic
13452 * doc/extend.texi (noplt): Document new attribute.
13453 * doc/invoke.texi: Document new attribute.
13455 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
13457 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
13458 real.h, and fixed-value.h when included in host source files.
13459 * double-int.h: Remove redundant #includes listed above.
13460 * fixed-value.h: Likewise.
13461 * real.h: Likewise.
13462 * wide-int.h: Likewise.
13463 * inchash.h: Likewise.
13464 * rtl.h: Add some include files When included from a generator file.
13465 * target.h: Remove wide-int.h and insn-modes.h from the include list.
13466 * internal-fn.h: Don't include coretypes.h.
13467 * alias.c: Adjust includes for restructured coretypes.h.
13468 * asan.c: Likewise.
13469 * attribs.c: Likewise.
13470 * auto-inc-dec.c: Likewise.
13471 * auto-profile.c: Likewise.
13472 * bb-reorder.c: Likewise.
13473 * bt-load.c: Likewise.
13474 * builtins.c: Likewise.
13475 * caller-save.c: Likewise.
13476 * calls.c: Likewise.
13477 * ccmp.c: Likewise.
13479 * cfganal.c: Likewise.
13480 * cfgbuild.c: Likewise.
13481 * cfgcleanup.c: Likewise.
13482 * cfgexpand.c: Likewise.
13483 * cfghooks.c: Likewise.
13484 * cfgloop.c: Likewise.
13485 * cfgloop.h: Likewise.
13486 * cfgloopanal.c: Likewise.
13487 * cfgloopmanip.c: Likewise.
13488 * cfgrtl.c: Likewise.
13489 * cgraph.c: Likewise.
13490 * cgraphbuild.c: Likewise.
13491 * cgraphclones.c: Likewise.
13492 * cgraphunit.c: Likewise.
13493 * cilk-common.c: Likewise.
13494 * combine-stack-adj.c: Likewise.
13495 * combine.c: Likewise.
13496 * compare-elim.c: Likewise.
13497 * convert.c: Likewise.
13498 * coverage.c: Likewise.
13499 * cppbuiltin.c: Likewise.
13500 * cprop.c: Likewise.
13502 * cselib.c: Likewise.
13503 * data-streamer-in.c: Likewise.
13504 * data-streamer-out.c: Likewise.
13505 * data-streamer.c: Likewise.
13506 * dbxout.c: Likewise.
13509 * debug.c: Likewise.
13510 * df-core.c: Likewise.
13511 * df-problems.c: Likewise.
13512 * df-scan.c: Likewise.
13515 * dojump.c: Likewise.
13516 * dominance.c: Likewise.
13517 * domwalk.c: Likewise.
13518 * double-int.c: Likewise.
13520 * dumpfile.c: Likewise.
13521 * dwarf2asm.c: Likewise.
13522 * dwarf2cfi.c: Likewise.
13523 * dwarf2out.c: Likewise.
13524 * dwarf2out.h: Likewise.
13525 * emit-rtl.c: Likewise.
13526 * et-forest.c: Likewise.
13527 * except.c: Likewise.
13528 * explow.c: Likewise.
13529 * expmed.c: Likewise.
13530 * expr.c: Likewise.
13531 * final.c: Likewise.
13532 * fixed-value.c: Likewise.
13533 * fold-const.c: Likewise.
13534 * function.c: Likewise.
13535 * fwprop.c: Likewise.
13536 * gcc-plugin.h: Likewise.
13537 * gcse.c: Likewise.
13538 * generic-match-head.c: Likewise.
13539 * ggc-page.c: Likewise.
13540 * gimple-builder.c: Likewise.
13541 * gimple-expr.c: Likewise.
13542 * gimple-fold.c: Likewise.
13543 * gimple-iterator.c: Likewise.
13544 * gimple-low.c: Likewise.
13545 * gimple-match-head.c: Likewise.
13546 * gimple-pretty-print.c: Likewise.
13547 * gimple-ssa-isolate-paths.c: Likewise.
13548 * gimple-ssa-strength-reduction.c: Likewise.
13549 * gimple-streamer-in.c: Likewise.
13550 * gimple-streamer-out.c: Likewise.
13551 * gimple-streamer.h: Likewise.
13552 * gimple-walk.c: Likewise.
13553 * gimple.c: Likewise.
13554 * gimplify-me.c: Likewise.
13555 * gimplify.c: Likewise.
13556 * godump.c: Likewise.
13557 * graph.c: Likewise.
13558 * graphite-blocking.c: Likewise.
13559 * graphite-dependences.c: Likewise.
13560 * graphite-interchange.c: Likewise.
13561 * graphite-isl-ast-to-gimple.c: Likewise.
13562 * graphite-optimize-isl.c: Likewise.
13563 * graphite-poly.c: Likewise.
13564 * graphite-scop-detection.c: Likewise.
13565 * graphite-sese-to-poly.c: Likewise.
13566 * graphite.c: Likewise.
13567 * haifa-sched.c: Likewise.
13568 * hooks.h: Likewise.
13569 * hw-doloop.c: Likewise.
13570 * ifcvt.c: Likewise.
13571 * incpath.c: Likewise.
13572 * init-regs.c: Likewise.
13573 * internal-fn.c: Likewise.
13574 * ipa-chkp.c: Likewise.
13575 * ipa-comdats.c: Likewise.
13576 * ipa-cp.c: Likewise.
13577 * ipa-devirt.c: Likewise.
13578 * ipa-icf-gimple.c: Likewise.
13579 * ipa-icf.c: Likewise.
13580 * ipa-inline-analysis.c: Likewise.
13581 * ipa-inline-transform.c: Likewise.
13582 * ipa-inline.c: Likewise.
13583 * ipa-polymorphic-call.c: Likewise.
13584 * ipa-profile.c: Likewise.
13585 * ipa-prop.c: Likewise.
13586 * ipa-pure-const.c: Likewise.
13587 * ipa-ref.c: Likewise.
13588 * ipa-reference.c: Likewise.
13589 * ipa-split.c: Likewise.
13590 * ipa-utils.c: Likewise.
13591 * ipa-visibility.c: Likewise.
13593 * ira-build.c: Likewise.
13594 * ira-color.c: Likewise.
13595 * ira-conflicts.c: Likewise.
13596 * ira-costs.c: Likewise.
13597 * ira-emit.c: Likewise.
13598 * ira-lives.c: Likewise.
13600 * jump.c: Likewise.
13601 * langhooks.c: Likewise.
13603 * loop-doloop.c: Likewise.
13604 * loop-init.c: Likewise.
13605 * loop-invariant.c: Likewise.
13606 * loop-iv.c: Likewise.
13607 * loop-unroll.c: Likewise.
13608 * lower-subreg.c: Likewise.
13609 * lra-assigns.c: Likewise.
13610 * lra-coalesce.c: Likewise.
13611 * lra-constraints.c: Likewise.
13612 * lra-eliminations.c: Likewise.
13613 * lra-lives.c: Likewise.
13614 * lra-remat.c: Likewise.
13615 * lra-spills.c: Likewise.
13617 * lto-cgraph.c: Likewise.
13618 * lto-compress.c: Likewise.
13619 * lto-opts.c: Likewise.
13620 * lto-section-in.c: Likewise.
13621 * lto-section-out.c: Likewise.
13622 * lto-streamer-in.c: Likewise.
13623 * lto-streamer-out.c: Likewise.
13624 * lto-streamer.c: Likewise.
13626 * mode-switching.c: Likewise.
13627 * modulo-sched.c: Likewise.
13628 * omega.c: Likewise.
13629 * omp-low.c: Likewise.
13630 * optabs.c: Likewise.
13631 * opts-global.c: Likewise.
13632 * passes.c: Likewise.
13633 * plugin.c: Likewise.
13634 * postreload-gcse.c: Likewise.
13635 * postreload.c: Likewise.
13636 * predict.c: Likewise.
13637 * print-rtl.c: Likewise.
13638 * print-tree.c: Likewise.
13639 * profile.c: Likewise.
13640 * real.c: Likewise.
13641 * realmpfr.c: Likewise.
13642 * realmpfr.h: Likewise.
13643 * recog.c: Likewise.
13645 * reg-stack.c: Likewise.
13646 * regcprop.c: Likewise.
13647 * reginfo.c: Likewise.
13648 * regrename.c: Likewise.
13649 * regs.h: Likewise.
13650 * regstat.c: Likewise.
13651 * reload.c: Likewise.
13652 * reload1.c: Likewise.
13653 * reorg.c: Likewise.
13654 * resource.c: Likewise.
13655 * rtl-chkp.c: Likewise.
13656 * rtlanal.c: Likewise.
13657 * rtlhooks.c: Likewise.
13658 * sanopt.c: Likewise.
13659 * sched-deps.c: Likewise.
13660 * sched-ebb.c: Likewise.
13661 * sched-rgn.c: Likewise.
13662 * sched-vis.c: Likewise.
13663 * sdbout.c: Likewise.
13664 * sel-sched-dump.c: Likewise.
13665 * sel-sched-ir.c: Likewise.
13666 * sel-sched.c: Likewise.
13667 * sese.c: Likewise.
13668 * shrink-wrap.c: Likewise.
13669 * shrink-wrap.h: Likewise.
13670 * simplify-rtx.c: Likewise.
13671 * stack-ptr-mod.c: Likewise.
13672 * statistics.c: Likewise.
13673 * stmt.c: Likewise.
13674 * stor-layout.c: Likewise.
13675 * store-motion.c: Likewise.
13676 * stringpool.c: Likewise.
13677 * symtab.c: Likewise.
13678 * target-globals.c: Likewise.
13679 * targhooks.c: Likewise.
13680 * toplev.c: Likewise.
13681 * tracer.c: Likewise.
13682 * trans-mem.c: Likewise.
13683 * tree-affine.c: Likewise.
13684 * tree-affine.h: Likewise.
13685 * tree-browser.c: Likewise.
13686 * tree-call-cdce.c: Likewise.
13687 * tree-cfg.c: Likewise.
13688 * tree-cfgcleanup.c: Likewise.
13689 * tree-chkp-opt.c: Likewise.
13690 * tree-chkp.c: Likewise.
13691 * tree-chrec.c: Likewise.
13692 * tree-complex.c: Likewise.
13693 * tree-data-ref.c: Likewise.
13694 * tree-dfa.c: Likewise.
13695 * tree-diagnostic.c: Likewise.
13696 * tree-dump.c: Likewise.
13697 * tree-eh.c: Likewise.
13698 * tree-emutls.c: Likewise.
13699 * tree-if-conv.c: Likewise.
13700 * tree-inline.c: Likewise.
13701 * tree-into-ssa.c: Likewise.
13702 * tree-iterator.c: Likewise.
13703 * tree-loop-distribution.c: Likewise.
13704 * tree-nested.c: Likewise.
13705 * tree-nrv.c: Likewise.
13706 * tree-object-size.c: Likewise.
13707 * tree-outof-ssa.c: Likewise.
13708 * tree-parloops.c: Likewise.
13709 * tree-phinodes.c: Likewise.
13710 * tree-predcom.c: Likewise.
13711 * tree-pretty-print.c: Likewise.
13712 * tree-pretty-print.h: Likewise.
13713 * tree-profile.c: Likewise.
13714 * tree-scalar-evolution.c: Likewise.
13715 * tree-sra.c: Likewise.
13716 * tree-ssa-address.c: Likewise.
13717 * tree-ssa-alias.c: Likewise.
13718 * tree-ssa-ccp.c: Likewise.
13719 * tree-ssa-coalesce.c: Likewise.
13720 * tree-ssa-copy.c: Likewise.
13721 * tree-ssa-copyrename.c: Likewise.
13722 * tree-ssa-dce.c: Likewise.
13723 * tree-ssa-dom.c: Likewise.
13724 * tree-ssa-dse.c: Likewise.
13725 * tree-ssa-forwprop.c: Likewise.
13726 * tree-ssa-ifcombine.c: Likewise.
13727 * tree-ssa-live.c: Likewise.
13728 * tree-ssa-loop-ch.c: Likewise.
13729 * tree-ssa-loop-im.c: Likewise.
13730 * tree-ssa-loop-ivcanon.c: Likewise.
13731 * tree-ssa-loop-ivopts.c: Likewise.
13732 * tree-ssa-loop-manip.c: Likewise.
13733 * tree-ssa-loop-niter.c: Likewise.
13734 * tree-ssa-loop-prefetch.c: Likewise.
13735 * tree-ssa-loop-unswitch.c: Likewise.
13736 * tree-ssa-loop.c: Likewise.
13737 * tree-ssa-loop.h: Likewise.
13738 * tree-ssa-math-opts.c: Likewise.
13739 * tree-ssa-operands.c: Likewise.
13740 * tree-ssa-phiopt.c: Likewise.
13741 * tree-ssa-phiprop.c: Likewise.
13742 * tree-ssa-pre.c: Likewise.
13743 * tree-ssa-propagate.c: Likewise.
13744 * tree-ssa-reassoc.c: Likewise.
13745 * tree-ssa-sccvn.c: Likewise.
13746 * tree-ssa-scopedtables.c: Likewise.
13747 * tree-ssa-sink.c: Likewise.
13748 * tree-ssa-strlen.c: Likewise.
13749 * tree-ssa-structalias.c: Likewise.
13750 * tree-ssa-tail-merge.c: Likewise.
13751 * tree-ssa-ter.c: Likewise.
13752 * tree-ssa-threadedge.c: Likewise.
13753 * tree-ssa-threadupdate.c: Likewise.
13754 * tree-ssa-uncprop.c: Likewise.
13755 * tree-ssa-uninit.c: Likewise.
13756 * tree-ssa.c: Likewise.
13757 * tree-ssanames.c: Likewise.
13758 * tree-stdarg.c: Likewise.
13759 * tree-streamer-in.c: Likewise.
13760 * tree-streamer-out.c: Likewise.
13761 * tree-streamer.c: Likewise.
13762 * tree-switch-conversion.c: Likewise.
13763 * tree-tailcall.c: Likewise.
13764 * tree-vect-data-refs.c: Likewise.
13765 * tree-vect-generic.c: Likewise.
13766 * tree-vect-loop-manip.c: Likewise.
13767 * tree-vect-loop.c: Likewise.
13768 * tree-vect-patterns.c: Likewise.
13769 * tree-vect-slp.c: Likewise.
13770 * tree-vect-stmts.c: Likewise.
13771 * tree-vectorizer.c: Likewise.
13772 * tree-vrp.c: Likewise.
13773 * tree.c: Likewise.
13774 * tsan.c: Likewise.
13775 * ubsan.c: Likewise.
13776 * valtrack.c: Likewise.
13777 * value-prof.c: Likewise.
13778 * var-tracking.c: Likewise.
13779 * varasm.c: Likewise.
13780 * varpool.c: Likewise.
13781 * vmsdbgout.c: Likewise.
13782 * vtable-verify.c: Likewise.
13784 * wide-int-print.cc: Likewise.
13785 * wide-int-print.h: Likewise.
13786 * wide-int.cc: Likewise.
13787 * xcoffout.c: Likewise.
13788 * config/aarch64/aarch64-builtins.c: Likewise.
13789 * config/aarch64/aarch64.c: Likewise.
13790 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13791 * config/alpha/alpha.c: Likewise.
13792 * config/arc/arc.c: Likewise.
13793 * config/arm/aarch-common.c: Likewise.
13794 * config/arm/arm-builtins.c: Likewise.
13795 * config/arm/arm-c.c: Likewise.
13796 * config/arm/arm.c: Likewise.
13797 * config/avr/avr-c.c: Likewise.
13798 * config/avr/avr-log.c: Likewise.
13799 * config/avr/avr.c: Likewise.
13800 * config/bfin/bfin.c: Likewise.
13801 * config/c6x/c6x.c: Likewise.
13802 * config/cr16/cr16.c: Likewise.
13803 * config/cris/cris.c: Likewise.
13804 * config/darwin-c.c: Likewise.
13805 * config/darwin.c: Likewise.
13806 * config/default-c.c: Likewise.
13807 * config/epiphany/epiphany.c: Likewise.
13808 * config/epiphany/mode-switch-use.c: Likewise.
13809 * config/epiphany/resolve-sw-modes.c: Likewise.
13810 * config/fr30/fr30.c: Likewise.
13811 * config/frv/frv.c: Likewise.
13812 * config/ft32/ft32.c: Likewise.
13813 * config/glibc-c.c: Likewise.
13814 * config/h8300/h8300.c: Likewise.
13815 * config/i386/i386-c.c: Likewise.
13816 * config/i386/i386.c: Likewise.
13817 * config/i386/msformat-c.c: Likewise.
13818 * config/i386/winnt-cxx.c: Likewise.
13819 * config/i386/winnt-stubs.c: Likewise.
13820 * config/i386/winnt.c: Likewise.
13821 * config/ia64/ia64-c.c: Likewise.
13822 * config/ia64/ia64.c: Likewise.
13823 * config/iq2000/iq2000.c: Likewise.
13824 * config/lm32/lm32.c: Likewise.
13825 * config/m32c/m32c-pragma.c: Likewise.
13826 * config/m32c/m32c.c: Likewise.
13827 * config/m32r/m32r.c: Likewise.
13828 * config/m68k/m68k.c: Likewise.
13829 * config/mcore/mcore.c: Likewise.
13830 * config/mep/mep-pragma.c: Likewise.
13831 * config/mep/mep.c: Likewise.
13832 * config/microblaze/microblaze-c.c: Likewise.
13833 * config/microblaze/microblaze.c: Likewise.
13834 * config/mips/mips.c: Likewise.
13835 * config/mmix/mmix.c: Likewise.
13836 * config/mn10300/mn10300.c: Likewise.
13837 * config/moxie/moxie.c: Likewise.
13838 * config/msp430/msp430-c.c: Likewise.
13839 * config/msp430/msp430.c: Likewise.
13840 * config/nds32/nds32-cost.c: Likewise.
13841 * config/nds32/nds32-fp-as-gp.c: Likewise.
13842 * config/nds32/nds32-intrinsic.c: Likewise.
13843 * config/nds32/nds32-isr.c: Likewise.
13844 * config/nds32/nds32-md-auxiliary.c: Likewise.
13845 * config/nds32/nds32-memory-manipulation.c: Likewise.
13846 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13847 * config/nds32/nds32-predicates.c: Likewise.
13848 * config/nds32/nds32.c: Likewise.
13849 * config/nios2/nios2.c: Likewise.
13850 * config/nvptx/nvptx.c: Likewise.
13851 * config/pa/pa.c: Likewise.
13852 * config/pdp11/pdp11.c: Likewise.
13853 * config/rl78/rl78-c.c: Likewise.
13854 * config/rl78/rl78.c: Likewise.
13855 * config/rs6000/rs6000-c.c: Likewise.
13856 * config/rs6000/rs6000.c: Likewise.
13857 * config/rx/rx.c: Likewise.
13858 * config/s390/s390-c.c: Likewise.
13859 * config/s390/s390.c: Likewise.
13860 * config/sh/sh-c.c: Likewise.
13861 * config/sh/sh-mem.cc: Likewise.
13862 * config/sh/sh.c: Likewise.
13863 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13864 * config/sh/sh_treg_combine.cc: Likewise.
13865 * config/sol2-c.c: Likewise.
13866 * config/sol2-cxx.c: Likewise.
13867 * config/sol2-stubs.c: Likewise.
13868 * config/sol2.c: Likewise.
13869 * config/sparc/sparc-c.c: Likewise.
13870 * config/sparc/sparc.c: Likewise.
13871 * config/spu/spu-c.c: Likewise.
13872 * config/spu/spu.c: Likewise.
13873 * config/stormy16/stormy16.c: Likewise.
13874 * config/tilegx/mul-tables.c: Likewise.
13875 * config/tilegx/tilegx-c.c: Likewise.
13876 * config/tilegx/tilegx.c: Likewise.
13877 * config/tilepro/mul-tables.c: Likewise.
13878 * config/tilepro/tilepro-c.c: Likewise.
13879 * config/tilepro/tilepro.c: Likewise.
13880 * config/v850/v850-c.c: Likewise.
13881 * config/v850/v850.c: Likewise.
13882 * config/vax/vax.c: Likewise.
13883 * config/visium/visium.c: Likewise.
13884 * config/vms/vms-c.c: Likewise.
13885 * config/vms/vms.c: Likewise.
13886 * config/vxworks.c: Likewise.
13887 * config/winnt-c.c: Likewise.
13888 * config/xtensa/xtensa.c: Likewise.
13889 * common/config/bfin/bfin-common.c: Likewise.
13891 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
13893 * tree.h (tree_code_for_canonical_type_merging): New function.
13894 * tree.c (gimple_canonical_types_compatible_p): Use
13895 tree_code_for_canonical_type_merging..
13897 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13901 * doc/tm.texi: Regenerate.
13902 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
13903 * target.def (TARGET_RELAXED_ORDERING): Likewise.
13904 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
13905 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
13906 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
13907 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
13908 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
13909 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
13910 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
13912 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13914 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
13915 register fma steering pass.
13916 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
13917 AARCH64_TUNE_FMA_STEERING.
13919 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
13921 * tree.c (verify_type_variant): Verify that type and variant is
13923 (gimple_canonical_types_compatible_p): Look for main variants.
13925 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13927 * config.gcc (powerpc*-*-*): Add support for a new configure
13928 option --with-advance-toolchain=<xxx> which overrides using the
13929 default header files, libraries and dynamic linker.
13931 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
13932 specs to support the configure --with-advance-toolchain=<xxx>
13934 (INCLUDE_EXTRA_SPEC): Likewise.
13935 (LINK_OS_EXTRA_SPEC32): Likewise.
13936 (LINK_OK_EXTRA_SPEC64): Likewise.
13937 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
13938 (DYNAMIC_LINKER_PREFIX): Likewise.
13939 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
13941 (GLIBC_DYNAMIC_LINKER32): Likewise.
13942 (GLIBC_DYNAMIC_LINKER64): Likewise.
13943 (LINK_OS_LINUX_SPEC32): Likewise.
13944 (LINK_OS_LINUX_SPEC64): Likewise.
13946 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
13947 configuration option.
13949 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
13952 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
13953 to determine current function ABI.
13954 (ix86_function_value_regno_p): Ditto.
13956 2015-06-03 Martin Liska <mliska@suse.cz>
13958 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
13959 * bitmap.h (struct bitmap_usage): Likewise.
13960 * ggc-common.c (struct ggc_usage): Likewise.
13961 * mem-stats.h (struct mem_location): Likewise.
13962 (struct mem_usage): Likewise.
13963 * vec.c (struct vec_usage): Likewise.
13965 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
13967 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
13970 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
13972 * doc/plugins.texi (enum plugin_event): New event.
13973 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
13974 and PLUGIN_FINISH_FUNCTION.
13975 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
13976 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
13978 2015-06-03 Richard Biener <rguenther@suse.de>
13980 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
13981 compute GROUP_GAP for the first element.
13982 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
13985 2015-06-03 Nick Clifton <nickc@redhat.com>
13987 * config/rl78/rl78-real.md: Add peepholes to avoid a register
13988 copy when calling a function.
13989 * config/rl78/rl78.c (need_to_save): Do not push the frame
13990 pointer in an interrupt handler prologue if it is never used.
13992 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13994 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
13996 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
13998 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
13999 reference when cloning alias node.
14001 2015-06-03 Martin Liska <mliska@suse.cz>
14003 * alloc-pool.h (struct pool_usage): Correct space padding.
14004 * ggc-page.c (ggc_print_statistics): Align columns in a report.
14005 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
14006 * tree.c (dump_tree_statistics): Align columns in a report.
14008 2015-06-03 Martin Liska <mliska@suse.cz>
14010 * alloc-pool.c (allocate_pool_descriptor): Remove.
14011 (struct pool_output_info): Likewise.
14012 (print_alloc_pool_statistics): Likewise.
14013 (dump_alloc_pool_statistics): Likewise.
14014 * alloc-pool.h (struct pool_usage): New struct.
14015 (pool_allocator::initialize): Change usage of memory statistics
14016 to a new interface.
14017 (pool_allocator::release): Likewise.
14018 (pool_allocator::allocate): Likewise.
14019 (pool_allocator::remove): Likewise.
14020 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
14021 for a pool allocator.
14022 * mem-stats.h (struct mem_location): Add new ctor.
14023 (struct mem_usage): Add counter for number of
14025 (mem_alloc_description::register_descriptor): New overload of
14026 * mem-stats.h (mem_location::to_string): New function.
14027 * bitmap.h (struct bitmap_usage): Use this new function.
14028 * ggc-common.c (struct ggc_usage): Likewise.
14031 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
14033 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
14034 of GCC_INSN_FLAGS_H block.
14036 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
14038 * explow.c (plus_constant): Update check after force_const_mem call
14039 to see if the value returned is not a NULL_RTX.
14041 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14043 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
14044 remove instumentation thunks calling reachable functions.
14045 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
14046 * lto/lto-partition.c (privatize_symbol_name_1): New.
14047 (privatize_symbol_name): Privatize both decl and orig_decl
14048 names for instrumented functions.
14049 * cgraph.c (cgraph_node::verify_node): Add transparent
14050 alias chain check for instrumented node.
14052 2015-06-03 Marek Polacek <polacek@redhat.com>
14056 * tree.c (attribute_value_equal): Handle attribute format.
14057 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
14059 2015-06-03 Richard Biener <rguenther@suse.de>
14061 PR tree-optimization/63916
14062 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14063 Forward-propagate non-invariant addresses by splicing their
14064 reference ops if the result isn't going to be used by PRE.
14065 (vn_reference_lookup_3): Remove pointless assert.
14067 2015-06-03 Richard Biener <rguenther@suse.de>
14069 PR tree-optimization/66375
14070 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
14071 add to the evolution before following SSA edges.
14073 2015-06-03 Bin Cheng <bin.cheng@arm.com>
14075 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
14076 (dump_use, dump_cand, find_induction_variables): Pass new argument
14078 (record_use): Preserve the ssa name information in IV.
14080 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
14082 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
14084 (add_mode_tests): Don't add mode tests if the predicate only
14085 accepts scalar constant integers. Otherwise, allow the mode
14086 of "op" to be VOIDmode if the predicate does accept such integers.
14088 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
14091 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
14092 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
14093 (aarch64_secondary_reload): Likewise
14094 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
14096 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
14099 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
14100 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14103 * cprop.c (try_replace_reg): Check cost of constants before propagating.
14105 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14107 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
14108 provide access to the IBM extended double floating point mode if
14109 long double is IEEE 128-bit floating point.
14110 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
14111 point if long double is the IBM extended double type.
14113 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
14114 enable adding IEEE 128-bit floating point support.
14115 (-mfloat128-software): Likewise.
14116 (-mfloat128-sw): Likewise.
14118 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
14119 128-bit floating point types to occupy any register if
14120 -mlong-double-64. Do not allow use of IFmode/KFmode unless
14121 -mfloat128-software is enabled.
14122 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
14124 (rs6000_option_override_internal): Add -mfloat128-* support.
14125 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
14127 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
14128 and float128 type nodes.
14129 (ieee128_float_type_node): Likewise.
14130 (ibm128_float_type_node): Likewise.
14132 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
14135 * config/aarch64/geniterators.sh: Rewrite in awk.
14137 2015-06-02 Martin Liska <mliska@suse.cz>
14139 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
14140 values to avoid -Wmaybe-uninitialized errors.
14142 2015-06-02 Richard Biener <rguenther@suse.de>
14145 * dwarf2out.c (lookup_context_die): New function.
14146 (resolve_addr): Avoid forcing a full DIE for the
14147 target of a DW_TAG_GNU_call_site during late compilation.
14148 Instead create a stub DIE without a type if we have a
14149 context DIE present.
14151 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
14153 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
14155 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14157 PR tree-optimization/48052
14158 * cfgloop.h (struct control_iv): New.
14159 (struct loop): New field control_ivs.
14160 * tree-ssa-loop-niter.c : Include "stor-layout.h".
14161 (number_of_iterations_lt): Set no_overflow information.
14162 (number_of_iterations_exit): Init control iv in niter struct.
14163 (record_control_iv): New.
14164 (estimate_numbers_of_iterations_loop): Call record_control_iv.
14165 (loop_exits_before_overflow): New. Interface factored out of
14166 scev_probably_wraps_p.
14167 (scev_probably_wraps_p): Factor loop niter related code into
14168 loop_exits_before_overflow.
14169 (free_numbers_of_iterations_estimates_loop): Free control ivs.
14170 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
14172 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
14174 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
14175 the target doesn't belong to the current function.
14177 2015-06-02 Marek Polacek <polacek@redhat.com>
14179 PR middle-end/66345
14180 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
14181 get_maxval_strlen does not produce an INTEGER_CST.
14183 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
14185 * config/arc/constraints.md: Use lower-case names in match_code.
14186 * config/mmix/constraints.md: Likewise.
14188 2015-06-02 Richard Biener <rguenther@suse.de>
14190 PR tree-optimization/65961
14191 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
14192 check and clarify dump message.
14193 (vect_build_slp_tree): If all children are built up from scalars
14194 build up the parent from scalars instead.
14195 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
14197 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
14200 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
14201 instead of print ... .
14203 2015-06-02 Alan Modra <amodra@gmail.com>
14205 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
14208 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14210 PR tree-optimization/52563
14211 PR tree-optimization/62173
14212 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
14213 (alloc_iv, set_iv): New parameter.
14214 (determine_biv_step): Delete.
14215 (find_bivs): Inline original determine_biv_step. Pass new
14216 argument to set_iv.
14217 (idx_find_step): Use no_overflow information for conversion.
14218 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
14219 resolve_mixers handle folded_casts.
14220 (instantiate_scev_name): Change bool parameter to bool pointer.
14221 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
14222 (instantiate_array_ref, instantiate_scev_not): Ditto.
14223 (instantiate_scev_3, instantiate_scev_2): Ditto.
14224 (instantiate_scev_1, instantiate_scev_r): Ditto.
14225 (instantiate_scev_convert, ): Change parameter. Pass argument
14226 to chrec_convert_aggressive.
14227 (instantiate_scev): Change argument.
14228 (resolve_mixers): New parameter and set it.
14229 (scev_const_prop): New argument.
14230 * tree-scalar-evolution.h (resolve_mixers): New parameter.
14231 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
14233 (chrec_convert): New parameter. Move definition below.
14234 (chrec_convert_aggressive): New parameter and set it. Call
14235 convert_affine_scev.
14236 * tree-chrec.h (chrec_convert): New parameter.
14237 (chrec_convert_aggressive): Ditto.
14239 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14241 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
14242 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
14243 the LHS of a no-return call if its type has variable size.
14244 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14245 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
14247 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
14249 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
14250 * config.in: Regenerate.
14252 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14254 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14255 consecutive accesses within outer-loop with force_vectorize
14256 for references with zero step in inner-loop.
14258 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14260 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
14261 rather than from gcc/build directory.
14263 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14266 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
14267 for __sync memory models, emit initial loads and final barriers as
14270 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14273 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
14274 (aarch64_split_atomic_op): Check for __sync memory models, emit
14275 appropriate initial loads and final barriers.
14277 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14279 * Makefile.in: Fix gcov dependencies that should
14280 not point to a build folder.
14282 2015-06-01 Richard Biener <rguenther@suse.de>
14285 2015-05-29 Richard Biener <rguenther@suse.de>
14287 PR tree-optimization/66314
14288 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14289 parameter that says which loop the new block belongs to.
14290 (ssa_create_duplicates): Blocks duplicated for the threaded
14291 path belong to the loop of the thread destination.
14293 2015-06-01 Martin Liska <mliska@suse.cz>
14295 * sched-deps.c: Include pool-alloc.h before
14296 cselib.h header file is included.
14298 2015-06-01 Richard Biener <rguenther@suse.de>
14300 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
14303 2015-06-01 Martin Liska <mliska@suse.cz>
14305 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
14306 a function local variable.
14308 2015-06-01 Martin Liska <mliska@suse.cz>
14310 * alloc-pool.c (create_alloc_pool): Remove.
14311 (empty_alloc_pool): Likewise.
14312 (free_alloc_pool): Likewise.
14313 (free_alloc_pool_if_empty): Likewise.
14314 (pool_alloc): Likewise.
14315 (pool_free): Likewise.
14316 * alloc-pool.h: Remove old declarations.
14318 2015-06-01 Martin Liska <mliska@suse.cz>
14320 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
14321 (ira_create_object): Likewise.
14322 (ira_create_allocno): Likewise.
14323 (ira_create_live_range): Likewise.
14324 (copy_live_range): Likewise.
14325 (ira_finish_live_range): Likewise.
14326 (ira_free_allocno_costs): Likewise.
14327 (finish_allocno): Likewise.
14328 (finish_allocnos): Likewise.
14329 (initiate_prefs): Likewise.
14330 (ira_create_pref): Likewise.
14331 (finish_pref): Likewise.
14332 (finish_prefs): Likewise.
14333 (initiate_copies): Likewise.
14334 (ira_create_copy): Likewise.
14335 (finish_copy): Likewise.
14336 (finish_copies): Likewise.
14337 (finish_prefs): Likewise.
14339 2015-06-01 Martin Liska <mliska@suse.cz>
14341 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
14342 (allocate_and_init_ipcp_value): Likewise.
14343 (ipcp_lattice::add_value): Likewise.
14344 (merge_agg_lats_step): Likewise.
14345 (ipcp_driver): Likewise.
14346 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
14347 (ipa_free_all_structures_after_iinln): Likewise.
14348 * ipa-prop.h: Likewise.
14350 2015-06-01 Martin Liska <mliska@suse.cz>
14352 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
14354 (set_hint_predicate): Likewise.
14355 (inline_summary_alloc): Likewise.
14356 (reset_inline_edge_summary): Likewise.
14357 (reset_inline_summary): Likewise.
14358 (set_cond_stmt_execution_predicate): Likewise.
14359 (set_switch_stmt_execution_predicate): Likewise.
14360 (compute_bb_predicates): Likewise.
14361 (estimate_function_body_sizes): Likewise.
14362 (inline_free_summary): Likewise.
14364 2015-06-01 Martin Liska <mliska@suse.cz>
14366 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
14367 (ipa_edge_duplication_hook): Likewise.
14368 (ipa_free_all_structures_after_ipa_cp): Likewise.
14369 (ipa_free_all_structures_after_iinln): Likewise.
14371 2015-06-01 Martin Liska <mliska@suse.cz>
14373 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
14374 (ipa_profile_generate_summary): Likewise.
14375 (ipa_profile_read_summary): Likewise.
14376 (ipa_profile): Likewise.
14378 2015-06-01 Martin Liska <mliska@suse.cz>
14380 * tree-ssa-structalias.c (new_var_info): Use new type-based
14382 (new_constraint): Likewise.
14383 (init_alias_vars): Likewise.
14384 (delete_points_to_sets): Likewise.
14386 2015-06-01 Martin Liska <mliska@suse.cz>
14388 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
14389 (free_strinfo): Likewise.
14390 (pass_strlen::execute): Likewise.
14392 2015-06-01 Martin Liska <mliska@suse.cz>
14394 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
14396 (vn_reference_insert_pieces): Likewise.
14397 (vn_phi_insert): Likewise.
14398 (visit_reference_op_call): Likewise.
14399 (copy_phi): Likewise.
14400 (copy_reference): Likewise.
14401 (process_scc): Likewise.
14402 (allocate_vn_table): Likewise.
14403 (free_vn_table): Likewise.
14405 2015-06-01 Martin Liska <mliska@suse.cz>
14407 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
14409 (add_repeat_to_ops_vec): Likewise.
14410 (get_ops): Likewise.
14411 (maybe_optimize_range_tests): Likewise.
14412 (init_reassoc): Likewise.
14413 (fini_reassoc): Likewise.
14415 2015-06-01 Martin Liska <mliska@suse.cz>
14417 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
14419 (bitmap_set_new): Likewise.
14420 (get_or_alloc_expr_for_constant): Likewise.
14421 (get_or_alloc_expr_for): Likewise.
14422 (phi_translate_1): Likewise.
14423 (compute_avail): Likewise.
14424 (init_pre): Likewise.
14425 (fini_pre): Likewise.
14427 2015-06-01 Martin Liska <mliska@suse.cz>
14429 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
14430 (delete_dep_node): Likewise.
14431 (create_deps_list): Likewise.
14432 (free_deps_list): Likewise.
14433 (sched_deps_init): Likewise.
14434 (sched_deps_finish): Likewise.
14436 2015-06-01 Martin Liska <mliska@suse.cz>
14438 * regcprop.c (free_debug_insn_changes): Use new type-based
14440 (replace_oldest_value_reg): Likewise.
14441 (pass_cprop_hardreg::execute): Likewise.
14443 2015-06-01 Martin Liska <mliska@suse.cz>
14445 * ira-build.c (initiate_cost_vectors): Use new type-based
14447 (ira_allocate_cost_vector): Likewise.
14448 (ira_free_cost_vector): Likewise.
14449 (finish_cost_vectors): Likewise.
14451 2015-06-01 Martin Liska <mliska@suse.cz>
14453 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
14455 (free_sched_pools): Likewise.
14456 * sel-sched-ir.h (_list_alloc): Likewise.
14457 (_list_remove): Likewise.
14459 2015-06-01 Martin Liska <mliska@suse.cz>
14461 * stmt.c (add_case_node): Use new type-based pool allocator.
14462 (expand_case): Likewise.
14463 (expand_sjlj_dispatch_table): Likewise.
14465 2015-06-01 Martin Liska <mliska@suse.cz>
14467 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
14468 (free_bb): Likewise.
14469 (pass_cse_reciprocals::execute): Likewise.
14471 2015-06-01 Martin Liska <mliska@suse.cz>
14473 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
14474 (sra_deinitialize) Likewise.
14475 (create_access_1) Likewise.
14476 (build_accesses_from_assign) Likewise.
14477 (create_artificial_child_access) Likewise.
14479 2015-06-01 Martin Liska <mliska@suse.cz>
14481 * dse.c (get_group_info):Use new type-based pool allocator.
14482 (dse_step0) Likewise.
14483 (free_store_info) Likewise.
14484 (delete_dead_store_insn) Likewise.
14485 (free_read_records) Likewise.
14486 (record_store) Likewise.
14487 (replace_read) Likewise.
14488 (check_mem_read_rtx) Likewise.
14489 (scan_insn) Likewise.
14490 (dse_step1) Likewise.
14491 (dse_step7) Likewise.
14493 2015-06-01 Martin Liska <mliska@suse.cz>
14495 * df-scan.c (struct df_scan_problem_data):Use new type-based
14497 (df_scan_free_internal) Likewise.
14498 (df_scan_alloc) Likewise.
14499 (df_grow_reg_info) Likewise.
14500 (df_free_ref) Likewise.
14501 (df_insn_create_insn_record) Likewise.
14502 (df_mw_hardreg_chain_delete) Likewise.
14503 (df_insn_info_delete) Likewise.
14504 (df_free_collection_rec) Likewise.
14505 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
14506 (df_sort_and_compress_mws) Likewise.
14507 (df_ref_create_structure) Likewise.
14508 (df_ref_record) Likewise.
14510 2015-06-01 Martin Liska <mliska@suse.cz>
14512 * df-problems.c (df_chain_create):Use new type-based pool allocator.
14513 (df_chain_unlink_1) Likewise.
14514 (df_chain_unlink) Likewise.
14515 (df_chain_remove_problem) Likewise.
14516 (df_chain_alloc) Likewise.
14517 (df_chain_free) Likewise.
14518 * df.h (struct dataflow) Likewise.
14520 2015-06-01 Martin Liska <mliska@suse.cz>
14522 * cselib.c (new_elt_list):Use new type-based pool allocator.
14523 (new_elt_loc_list) Likewise.
14524 (unchain_one_elt_list) Likewise.
14525 (unchain_one_elt_loc_list) Likewise.
14526 (unchain_one_value) Likewise.
14527 (new_cselib_val) Likewise.
14528 (cselib_init) Likewise.
14529 (cselib_finish) Likewise.
14531 2015-06-01 Martin Liska <mliska@suse.cz>
14533 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
14534 (sh_reorg) Likewise.
14536 2015-06-01 Martin Liska <mliska@suse.cz>
14538 * cfg.c (initialize_original_copy_tables):Use new type-based
14540 (free_original_copy_tables) Likewise.
14541 (copy_original_table_clear) Likewise.
14542 (copy_original_table_set) Likewise.
14544 2015-06-01 Martin Liska <mliska@suse.cz>
14546 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
14548 (asan_mem_ref_new) Likewise.
14549 (free_mem_ref_resources) Likewise.
14551 2015-06-01 Martin Liska <mliska@suse.cz>
14553 * var-tracking.c (variable_htab_free):Use new type-based
14555 (attrs_list_clear) Likewise.
14556 (attrs_list_insert) Likewise.
14557 (attrs_list_copy) Likewise.
14558 (shared_hash_unshare) Likewise.
14559 (shared_hash_destroy) Likewise.
14560 (unshare_variable) Likewise.
14561 (var_reg_delete_and_set) Likewise.
14562 (var_reg_delete) Likewise.
14563 (var_regno_delete) Likewise.
14564 (drop_overlapping_mem_locs) Likewise.
14565 (variable_union) Likewise.
14566 (insert_into_intersection) Likewise.
14567 (canonicalize_values_star) Likewise.
14568 (variable_merge_over_cur) Likewise.
14569 (dataflow_set_merge) Likewise.
14570 (remove_duplicate_values) Likewise.
14571 (variable_post_merge_new_vals) Likewise.
14572 (dataflow_set_preserve_mem_locs) Likewise.
14573 (dataflow_set_remove_mem_locs) Likewise.
14574 (variable_from_dropped) Likewise.
14575 (variable_was_changed) Likewise.
14576 (set_slot_part) Likewise.
14577 (clobber_slot_part) Likewise.
14578 (delete_slot_part) Likewise.
14579 (loc_exp_insert_dep) Likewise.
14580 (notify_dependents_of_changed_value) Likewise.
14581 (emit_notes_for_differences_1) Likewise.
14582 (vt_emit_notes) Likewise.
14583 (vt_initialize) Likewise.
14584 (vt_finalize) Likewise.
14586 2015-06-01 Martin Liska <mliska@suse.cz>
14588 * ira-color.c (init_update_cost_records):Use new type-based
14590 (get_update_cost_record) Likewise.
14591 (free_update_cost_record_list) Likewise.
14592 (finish_update_cost_records) Likewise.
14593 (initiate_cost_update) Likewise.
14595 2015-06-01 Martin Liska <mliska@suse.cz>
14597 * lra.c (init_insn_regs): Use new type-based pool allocator.
14598 (new_insn_reg) Likewise.
14599 (free_insn_reg) Likewise.
14600 (free_insn_regs) Likewise.
14601 (finish_insn_regs) Likewise.
14602 (init_insn_recog_data) Likewise.
14603 (init_reg_info) Likewise.
14604 (finish_reg_info) Likewise.
14605 (lra_free_copies) Likewise.
14606 (lra_create_copy) Likewise.
14607 (invalidate_insn_data_regno_info) Likewise.
14609 2015-06-01 Martin Liska <mliska@suse.cz>
14611 * lra-lives.c (free_live_range): Use new type-based pool allocator.
14612 (free_live_range_list) Likewise.
14613 (create_live_range) Likewise.
14614 (copy_live_range) Likewise.
14615 (lra_merge_live_ranges) Likewise.
14616 (remove_some_program_points_and_update_live_ranges) Likewise.
14617 (lra_live_ranges_init) Likewise.
14618 (lra_live_ranges_finish) Likewise.
14620 2015-06-01 Martin Liska <mliska@suse.cz>
14622 * et-forest.c (et_new_occ): Use new type-based pool allocator.
14623 (et_new_tree): Likewise.
14624 (et_free_tree): Likewise.
14625 (et_free_tree_force): Likewise.
14626 (et_free_pools): Likewise.
14627 (et_split): Likewise.
14629 2015-06-01 Martin Liska <mliska@suse.cz>
14631 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
14633 * alloc-pool.h (pool_allocator::pool_allocator): New function.
14634 (pool_allocator::release): Likewise.
14635 (inline pool_allocator::release_if_empty): Likewise.
14636 (inline pool_allocator::~pool_allocator): Likewise.
14637 (pool_allocator::allocate): Likewise.
14638 (pool_allocator::remove): Likewise.
14640 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14642 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
14645 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14647 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
14649 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
14650 (arm_macro_fusion_p): Likewise.
14651 (arm_macro_fusion_pair_p): Likewise.
14653 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14655 * config/aarch64/aarch64-protos.h (tune_params): Rename
14656 fuseable_ops to fusible_ops.
14657 * config/aarch64/aarch64.c (generic_tunings): Rename
14658 fuseable_ops to fusible_ops.
14659 (cortexa53_tunings): Likewise.
14660 (cortexa57_tunings): Likewise.
14661 (thunderx_tunings): Likewise.
14662 (xgene1_tunings): Likewise.
14663 (aarch64_macro_fusion_p): Likewise.
14664 (aarch64_macro_fusion_pair_p): Likewise.
14666 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
14668 * config/s390/driver-native.c: New file.
14669 * config/s390/x-native: New file.
14670 * config.host: Add new files for s390.
14671 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
14673 * config.gcc: Likewise.
14674 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
14675 * config/s390/s390-opts.h (enum processor_type): Ditto.
14676 * config/s390/s390.c (s390_option_override): Catch unhandled
14679 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
14682 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
14683 redirection for instrumented calls.
14684 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
14685 (append_compiler_options): Append -fcheck-pointer-bounds.
14686 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
14687 (chkp_redirect_edge): New.
14688 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
14689 (chkp_redirect_edge): New.
14691 2015-06-01 Richard Biener <rguenther@suse.de>
14693 PR tree-optimization/66280
14694 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
14697 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14699 * config/aarch64/aarch64.md
14700 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
14703 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14705 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
14706 Remove obsolete kludge.
14708 2015-06-01 Richard Biener <rguenther@suse.de>
14710 * tree-ssa-reassoc.c (get_rank): Simplify.
14712 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
14714 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
14715 * configure: Regenerated.
14717 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
14719 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
14720 issue (add space between string literal and macro).
14721 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
14723 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
14725 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
14726 implict or explicit -fPIE or -fpie.
14728 2015-05-30 Mike Frysinger <vapier@gentoo.org>
14730 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
14732 2015-05-28 DJ Delorie <dj@redhat.com>
14734 * expmed.c (extract_bit_field_1): Avoid clobbering a
14735 yet-to-be-used base/index register.
14737 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
14739 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
14740 (alias_stats): Add num_universal.
14741 (alias_set_subset_of): Special case pointers; be ready for NULL
14743 (alias_sets_conflict_p): Special case pointers; be ready for NULL
14745 (init_alias_set_entry): Break out from ...
14746 (record_alias_subset): ... here; propagate new fields;
14747 allocate children only when really needed.
14748 (get_alias_set): Do less generous pointer globbing.
14749 (dump_alias_stats_in_alias_c): Update statistics.
14751 2015-05-30 Alan Modra <amodra@gmail.com>
14753 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
14754 correct block for use of r12.
14755 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
14757 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
14760 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
14763 2015-05-29 Jakub Jelinek <jakub@redhat.com>
14765 PR tree-optimization/66142
14766 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
14767 virtual phis that feed themselves.
14769 2015-05-29 Richard Biener <rguenther@suse.de>
14771 PR tree-optimization/66314
14772 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14773 parameter that says which loop the new block belongs to.
14774 (ssa_create_duplicates): Blocks duplicated for the threaded
14775 path belong to the loop of the thread destination.
14777 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14779 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
14780 to cleanup-saved-temps.
14781 * doc/sourcebuild.texi (Clean up generated test files): Expand
14783 (dg-keep-saved-temps): Document new proc.
14784 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
14785 cleanup-saved-temps): Remove.
14787 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
14789 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
14790 gcc_AC_CHECK_DECLS.
14791 * configure: Regenerate.
14793 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14795 * config/nios2/linux.h (CPP_SPEC): Define.
14797 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14799 * config/microblaze/linux.h (CPP_SPEC): Define.
14801 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14803 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
14804 -pthread is specified.
14806 2015-05-28 Richard Biener <rguenther@suse.de>
14808 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
14809 (vect_fixup_scalar_cycles_with_patterns): Likewise.
14810 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
14811 after pattern recog.
14812 (vect_create_epilog_for_reduction): Properly handle reductions
14814 (vectorizable_reduction): Likewise.
14815 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
14817 (vect_get_constant_vectors): Create the correct number of
14818 initial values for reductions.
14819 (vect_schedule_slp_instance): Handle reduction chains that are
14820 type changing properly.
14821 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
14823 2015-05-28 Richard Biener <rguenther@suse.de>
14825 PR tree-optimization/66142
14826 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
14827 values better in memcpy destination handling. Handle non-aliasing
14830 2015-05-28 Lawrence Velázquez <vq@larryv.me>
14833 * config/darwin-c.c (version_components): New global enum.
14834 (parse_version, version_as_legacy_macro)
14835 (version_as_modern_macro, macosx_version_as_macro): New functions.
14836 (version_as_macro): Remove.
14837 (darwin_cpp_builtins): Use new function.
14839 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
14841 * builtins.c (expand_builtin_acc_on_device): Mark parameters
14842 with ATTRIBUTE_UNUSED.
14844 2015-05-28 Julian Brown <julian@codesourcery.com>
14848 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
14849 sequence for !ACCEL_COMPILER.
14851 2015-05-28 Nick Clifton <nickc@redhat.com>
14853 * config/rx/rx.c (push_regs): New function. Extracts code from...
14854 (rx_expand_prologue): ... here. Use push_regs to push even small
14855 spans of registers.
14856 (pop_regs): New function.
14857 (rx_expand_epilogue): Use pop_regs to pop even small spans of
14860 2015-05-28 Richard Biener <rguenther@suse.de>
14862 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
14864 (SLP_INSTANCE_BODY_COST_VEC): Remove.
14865 (vect_update_slp_costs_according_to_vf): Likewise.
14866 (vect_slp_analyze_operations): Update prototype.
14867 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
14868 vect_update_slp_costs_according_to_vf, adjust.
14869 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
14870 (vect_analyze_slp_cost_1): Likewise.
14871 (vect_analyze_slp_cost): Likewise. Properly deal with
14872 widening reduction ops. Commit body costs.
14873 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
14874 cost for loops from here.
14875 (vect_slp_analyze_operations): But do it from here when
14876 the vectorization factor is known and stmts are analyzed.
14877 (vect_bb_vectorization_profitable_p): Simplify.
14878 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
14879 (vect_update_slp_costs_according_to_vf): Remove.
14881 2015-05-27 Magnus Granberg <zorry@gentoo.org>
14882 H.J. Lu <hongjiu.lu@intel.com>
14884 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
14885 (BUILD_CFLAGS): Likewise.
14886 (BUILD_CXXFLAGS): Likewise.
14887 (LINKER): Add @NO_PIE_FLAG@.
14888 (BUILD_LDFLAGS): Likewise.
14889 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
14890 --enable-default-pie.
14891 * common.opt (fPIE): Initialize to -1.
14893 (no-pie): New option.
14894 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
14895 * configure.ac: Add --enable-default-pie.
14896 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
14897 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
14898 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
14899 * gcc.c (NO_PIE_SPEC): New.
14900 (PIE_SPEC): Likewise.
14901 (NO_FPIE1_SPEC): Likewise.
14902 (FPIE1_SPEC): Likewise.
14903 (NO_FPIE2_SPEC): Likewise.
14904 (FPIE2_SPEC): Likewise.
14905 (NO_FPIE2_SPEC): Likewise.
14906 (FPIE_SPEC): Likewise.
14907 (NO_FPIE_SPEC): Likewise.
14908 (NO_FPIC1_SPEC): Likewise.
14909 (FPIC1_SPEC): Likewise.
14910 (NO_FPIC2_SPEC): Likewise.
14911 (FPIC2_SPEC): Likewise.
14912 (NO_FPIC2_SPEC): Likewise.
14913 (FPIC_SPEC): Likewise.
14914 (NO_FPIC_SPEC): Likewise.
14915 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
14916 (FPIE1_OR_FPIC1_SPEC): Likewise.
14917 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
14918 (FPIE2_OR_FPIC2_SPEC): Likewise.
14919 (NO_FPIE_AND_FPIC_SPEC): Likewise.
14920 (FPIE_OR_FPIC_SPEC): Likewise.
14921 (LD_PIE_SPEC): Likewise.
14922 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
14923 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
14924 * config/darwin.h (PIE_SPEC): Renamed to ...
14925 (DARWIN_PIE_SPEC): This.
14926 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
14927 * config/darwin9.h (PIE_SPEC): Renamed to ...
14928 (DARWIN_PIE_SPEC): This.
14929 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
14930 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14931 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
14932 FPIE2_OR_FPIC2_SPEC.
14933 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
14934 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
14935 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
14936 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14937 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14938 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14939 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
14940 * config/m32r/m32r.h (ASM_SPEC): Likewise.
14941 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
14942 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14943 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
14944 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
14945 * config/sparc/linux.h (ASM_SPEC): Likewise.
14946 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14947 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
14948 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
14949 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14950 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14951 * config/sparc/sparc.h (ASM_SPEC): Likewise.
14952 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
14953 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
14954 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
14955 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
14956 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
14957 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
14958 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
14959 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
14960 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
14961 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
14962 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
14963 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
14964 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14965 * config/vax/linux.h (ASM_SPEC): Likewise.
14966 * doc/install.texi: Document --enable-default-pie.
14967 * doc/invoke.texi: Document -no-pie.
14968 * config.in: Regenerated.
14969 * configure: Likewise.
14971 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14973 PR rtl-optimization/66168
14974 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
14975 can_move_invariant_reg.
14977 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
14980 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
14981 REG_EQUAL note when doing insert.
14983 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
14984 instead of "%d" for 'o' operand.
14986 2015-05-27 Nathan Sidwell <nathan@acm.org>
14989 * tree.c (build_pointer_type_for_mode): Canonical type does not
14990 inherit can_alias_all.
14991 (build_reference_type_for_mode): Likewise.
14993 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
14995 * expr.h (array_at_struct_end_p): Move to...
14996 (array_ref_element_size): Likewise.
14997 (component_ref_field_offset): Likewise.
14998 * tree.h (array_ref_element_size): ...here.
14999 (array_at_struct_end_p): Likewise.
15000 (component_ref_field_offset): Likewise.
15001 * expr.c (array_ref_element_size): Move to...
15002 (array_ref_low_bound): Likewise.
15003 (array_at_struct_end_p): Likewise.
15004 (array_ref_up_bound): Likewise.
15005 (component_ref_field_offset): Likewise.
15006 * tree.c (array_ref_element_size): ...here.
15007 (array_ref_low_bound): Likewise.
15008 (array_ref_up_bound): Likewise.
15009 (array_at_struct_end_p): Likewise.
15010 (component_ref_field_offset): Likewise.
15012 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15013 Szabolcs Nagy <szabolcs.nagy@arm.com>
15015 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
15017 2015-05-27 Jason Merrill <jason@redhat.com>
15020 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
15021 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
15022 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
15024 2015-05-22 Aditya Kumar <hiraditya@msn.com>
15026 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
15029 * statistics.c (statistics_fini_pass): Print pass name.
15031 2015-05-27 Richard Biener <rguenther@suse.de>
15033 PR tree-optimization/66272
15035 2014-08-15 Richard Biener <rguenther@suse.de>
15037 PR tree-optimization/62031
15038 * tree-data-ref.c (dr_analyze_indices): Do not set
15039 DR_UNCONSTRAINED_BASE.
15040 (dr_may_alias_p): All indirect accesses have to go the
15041 formerly DR_UNCONSTRAINED_BASE path.
15042 * tree-data-ref.h (struct indices): Remove
15043 unconstrained_base member.
15044 (DR_UNCONSTRAINED_BASE): Remove.
15046 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
15048 * dwarf2out.c: Remove block_map.
15049 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
15050 (gen_lexical_block_die): Same.
15051 (dwarf2out_function_decl): Remove block_map use.
15052 (dwarf2out_c_finalize): Same.
15053 * tree-core.h (struct tree_block): Add die field.
15054 * tree.h (BLOCK_DIE): New.
15056 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15059 * expr.c (memory_load_overlap): New function.
15060 (emit_push_insn): When pushing partial args to the stack would
15061 clobber the register part load the overlapping part into a pseudo
15062 and put it into the hard reg after pushing. Change return type
15063 to bool. Add bool argument.
15064 * expr.h (emit_push_insn): Change return type to bool.
15066 * calls.c (expand_call): Cancel sibcall optimization when encountering
15067 partial argument on targets with ARGS_GROW_DOWNWARD and
15068 !STACK_GROWS_DOWNWARD.
15069 (emit_library_call_value_1): Update callsite of emit_push_insn.
15070 (store_one_arg): Likewise.
15072 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15074 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
15076 2015-05-27 Martin Liska <mliska@suse.cz>
15078 * Makefile.in: Add additional dependencies related to memory report
15080 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
15081 * bitmap.c (struct bitmap_descriptor_d): Remove.
15082 (struct loc): Likewise.
15083 (struct bitmap_desc_hasher): Likewise.
15084 (bitmap_desc_hasher::hash): Likewise.
15085 (bitmap_desc_hasher::equal): Likewise.
15086 (get_bitmap_descriptor): Likewise.
15087 (bitmap_register): User new memory descriptor API.
15088 (register_overhead): Likewise.
15089 (bitmap_find_bit): Register nsearches and search_iter statistics.
15090 (struct bitmap_output_info): Remove.
15091 (print_statistics): Likewise.
15092 (dump_bitmap_statistics): Use new memory descriptor.
15093 * bitmap.h (struct bitmap_usage): New class.
15094 * genmatch.c: Extend header file inclusion.
15095 * genpreds.c: Likewise.
15096 * ggc-common.c (struct ggc_usage): New class.
15097 (struct ggc_loc_desc_hasher): Remove.
15098 (ggc_loc_desc_hasher::hash): Likewise.
15099 (ggc_loc_desc_hasher::equal): Likewise.
15100 (struct ggc_ptr_hash_entry): Likewise.
15101 (struct ptr_hash_hasher): Likewise.
15102 (ptr_hash_hasher::hash): Likewise.
15103 (ptr_hash_hasher::equal): Likewise.
15104 (make_loc_descriptor): Likewise.
15105 (ggc_prune_ptr): Likewise.
15106 (dump_ggc_loc_statistics): Use new memory descriptor.
15107 (ggc_record_overhead): Likewise.
15108 (ggc_free_overhead): Likewise.
15109 (final_cmp_statistic): Remove.
15110 (cmp_statistic): Likewise.
15111 (ggc_add_statistics): Liekwise.
15112 (ggc_prune_overhead_list): Likewise.
15113 * hash-map-traits.h: New file.
15114 * hash-map.h (struct default_hashmap_traits): Move the traits to a
15115 separate header file.
15116 * hash-set.h: Pass memory statistics info to ctor.
15117 * hash-table.c (void dump_hash_table_loc_statistics): New function.
15118 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
15119 (hash_table::~hash_table): Register memory release operation.
15120 (hash_table::alloc_entries): Handle memory allocation operation.
15121 (hash_table::expand): Likewise.
15122 * inchash.c (iterative_hash_hashval_t): Move implementation to header
15124 (iterative_hash_host_wide_int): Likewise.
15125 * inchash.h (class hash): Likewise.
15126 * mem-stats-traits.h: New file.
15127 * mem-stats.h: New file.
15128 (mem_location): Add new class.
15129 (mem_usage): Likewise.
15130 (mem_alloc_description): Likewise.
15131 * sese.c: Add new header file inclusision.
15132 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
15134 * tree-sra.c: Add new header file inclusision.
15135 * vec.c (struct vec_descriptor): Remove.
15136 (hash_descriptor): Likewise.
15137 (struct vec_usage): Likewise.
15138 (struct ptr_hash_entry): Likewise.
15139 (hash_ptr): Likewise.
15140 (eq_ptr): Likewise.
15141 (vec_prefix::register_overhead): Use new memory descriptor API.
15142 (vec_prefix::release_overhead): Likewise.
15143 (add_statistics): Remove.
15144 (dump_vec_loc_statistics): Use new memory descriptor API.
15145 * vec.h (struct vec_prefix): Likewise.
15146 (va_heap::reserve): Likewise.
15147 (va_heap::release): Likewise.
15148 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
15150 2015-05-27 Richard Biener <rguenther@suse.de>
15152 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
15153 earlier and remove ??? comment.
15154 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
15155 and got called from loop analysis bail out. Always pass the SLP
15156 node to the vectorizable_* functions.
15157 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
15158 the premature SLP check here.
15159 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
15160 detected SLP stmts.
15161 (vect_detect_hybrid_slp_1): Likewise.
15163 2015-05-26 Jeff Law <law@redhat.com>
15165 * combine.c (find_split_point): Verify that the shift count is a
15166 constant when choosing (plus (ashift ...)) as a split point.
15168 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
15169 No functional changes.
15171 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
15173 * ipa-polymorphic-call.c
15174 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
15175 case when call target is already known.
15177 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
15180 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
15181 take into account the case that operands[1] and operands[2]
15182 are the same register.
15184 2015-05-26 Michael Matz <matz@suse.de>
15186 PR middle-end/66251
15188 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
15190 (vect_create_vectorized_demotion_stmts): Always set
15191 STMT_VINFO_VEC_STMT, also with SLP.
15192 (vectorizable_store): Handle strided group stores.
15194 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15197 * config/aarch64/aarch64.md
15198 (*adds_shift_imm_<mode>): New pattern.
15199 (*subs_shift_imm_<mode>): Likewise.
15200 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15201 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15202 (*add_uxt<mode>_shift2): Likewise.
15203 (*add_uxtsi_shift2_uxtw): Likewise.
15204 (*sub_uxt<mode>_shift2): Likewise.
15205 (*sub_uxtsi_shift2_uxtw): Likewise.
15207 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
15209 * config/rs6000/constraints.md (Y, U): Use match_test.
15211 2015-05-26 Christian Bruel <christian.bruel@st.com>
15214 * config/arm/arm.c (arm_option_check_internal)
15215 (arm_option_params_internal): Check opts->target_flags to set macros.
15216 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15217 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
15218 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15219 (builtin_define): Replaced with def_or_undef_macro.
15220 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15221 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
15222 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15223 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
15224 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
15225 (TARGET_ARM_FEATURE_LDREX_P)
15226 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
15227 * config/arm/arm-c.c (def_or_undef_macro): New function.
15228 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
15230 2015-05-26 Christian Bruel <christian.bruel@st.com>
15232 * c-common.h (builtin_define_with_int_value)
15233 (builtin_define_type_sizeof): Declare.
15234 * c-cppbuiltin.c (builtin_define_with_int_value)
15235 (builtin_define_type_sizeof): Externalize.
15236 (builtin_define_std): Cleanup declaration.
15237 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
15238 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
15239 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
15240 (builtin_define, builtin_assert): New macros.
15242 2015-05-26 Richard Biener <rguenther@suse.de>
15244 PR tree-optimization/66142
15245 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
15246 MEM_REFs for the same base address.
15248 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15251 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
15253 2015-05-26 Jason Merrill <jason@redhat.com>
15255 * configure.ac: Set CXXFLAGS for ISL test.
15256 * configure: Regenerate.
15258 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
15259 strstr and basename.
15260 * configure: Regenerate.
15262 2015-05-26 Richard Biener <rguenther@suse.de>
15264 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
15265 X % C -> X & (C - 1) for C being a power-of two to ...
15266 * match.pd: ... patterns.
15268 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
15270 * match.pd (swapped_tcc_comparison): New operator list.
15271 (-A CMP -B): New simplification.
15272 * fold-const.c (fold_comparison): Remove corresponding code.
15274 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15276 * caller-save.c (init_caller_save): Base temporary register numbers
15277 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
15278 * cfgloopanal.c (init_set_costs): Likewise.
15279 * dojump.c (prefer_and_bit_test): Likewise.
15280 * expr.c (init_expr_target): Likewise.
15281 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15282 * lower-subreg.c (init_lower_subreg): Likewise.
15283 * postreload.c (reload_cse_regs_1): Likewise.
15285 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15287 * gensupport.h (compute_test_codes): Declare.
15288 * gensupport.c (compute_predicate_codes): Rename to...
15289 (compute_test_codes): ...this. Generalize error message.
15290 (process_define_predicate): Update accordingly.
15291 * genpreds.c (compute_maybe_allows): Delete.
15292 (add_constraint): Use compute_test_codes to determine whether
15293 something can accept a SUBREG, REG or MEM.
15295 2015-05-26 Torvald Riegel <triegel@redhat.com>
15297 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
15298 'memory model' to align with C++11; fix description of memory orders;
15301 2015-05-26 Richard Biener <rguenther@suse.de>
15303 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
15304 (vect_analyze_loop_operations): ... here. Remove slp parameter,
15305 detect whether we apply SLP. Remove call to
15306 vect_update_slp_costs_according_to_vf.
15307 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
15308 vect_update_slp_costs_according_to_vf from here. Dispatch
15309 to vect_slp_analyze_operations to analyze SLP stmts.
15310 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
15311 unused bb_vec_info parameter, adjust assert.
15312 (vect_slp_analyze_operations): Pass in the slp instance tree
15313 instead of bb_vec_info.
15314 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
15315 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
15317 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15319 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
15320 Q_REGS. Expand comment.
15321 (REG_CLASS_NAMES): Ditto.
15322 (REG_CLASS_CONTENTS): Ditto.
15324 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
15327 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
15328 when LEGACY_INT_REGNO_P is processed.
15330 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15332 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
15334 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15336 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
15337 register if not marked dead/unused, before return.
15339 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15342 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
15343 is set; check for assembler name at LTO time.
15344 (type_in_anonymous_namespace): Remove hacks, check that all
15345 anonymous types are called "<anon>"
15346 (odr_type_p): Simplify; add check for "<anon>"
15347 (odr_subtypes_equivalent): Add odr_type_p check.
15348 * tree.c (need_assembler_name_p): Even anonymous namespace needs
15351 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15353 * ipa-utils.h (method_class_type): Remove.
15354 * cgraphunit.c (walk_polymorphic_call_targets): Use
15355 TYPE_METHOD_BASETYPE.
15356 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
15357 on main variants only.
15358 (method_class_type): Remove.
15359 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
15360 (build_type_inheritance_graph): Likewise.
15361 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15362 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
15363 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
15365 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15367 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
15368 is_typedef_decl, typedef_variant_p): Constify.
15369 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
15370 is_typedef_decl, typedef_variant_p): Constify.
15372 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15374 * defaults.h (gen_tablejump): New function.
15375 (HAVE_tablejump): Add default value.
15377 * stmt.c: Likewise.
15379 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15381 * defaults.h (gen_store_multiple): New function.
15382 (HAVE_store_multiple): Add default value.
15383 * expr.c (move_block_from_reg): Adjust.
15385 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15387 * defaults.h (gen_load_multiple): New function.
15388 (HAVE_load_multiple): Add default value.
15389 * expr.c (move_block_to_reg): Adjust.
15391 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15393 * defaults.h (gen_mem_signal_fence): New function.
15394 (HAVE_mem_signal_fence): Add default value.
15395 * optabs.c: Adjust.
15397 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15399 * defaults.h (gen_memory_barrier): New function.
15400 (HAVE_memory_barrier): Add default value.
15401 * optabs.c: Adjust.
15403 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15405 * defaults.h (gen_mem_thread_fence): New function.
15406 (HAVE_mem_thread_fence): Add default definition.
15407 * optabs.c: Adjust.
15409 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15411 * combine.c (find_split_point): Check the value of HAVE_lo_sum
15412 instead of if it is defined.
15413 (combine_simplify_rtx): Likewise.
15414 * lra-constraints.c (process_address_1): Likewise.
15415 * config/darwin.c: Adjust.
15416 * genconfig.c (main): Always define HAVE_lo_sum.
15418 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15420 * genmatch.c (parser::parse_operation): Reject expanding
15421 operator-list inside 'for'.
15423 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15425 * genmatch.c (parser::parse_for): Reject iterator if used as
15428 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15430 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
15431 after end of id-list.
15433 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15435 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
15436 we do not try to compute canonical type for type that does not need
15438 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
15440 * tree.h (type_with_alias_set_p): New.
15442 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15444 * tree.c (gimple_canonical_types_compatible_p): Do not compare
15445 function attributes.
15446 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
15448 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
15450 * Makefile.in (check_gcc_parallelize): Delete.
15451 (lang_checks_parallelized): Update comment.
15453 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
15455 PR rtl-optimization/66237
15456 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
15457 location of an "as_a" cast.
15459 2015-05-22 Jeff Law <law@redhat.com>
15461 * config/pa/pa.md (non-canonical shift-add insns): Remove.
15462 (peepholes with non-canonical RTL sources): Remove.
15463 (peepholes for indexed stores of FP regs in integer modes): Match and
15464 generate canonical RTL.
15466 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15468 PR tree-optimization/63387
15469 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
15470 ((x ord x) & (y ord y) -> (x ord y),
15471 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
15472 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
15473 vectors like scalars.
15475 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15477 * convert.c (convert_to_integer, convert_to_vector): Include the
15478 types in the error message.
15480 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15482 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
15485 2015-05-22 Jeff Law <law@redhat.com>
15487 * config/pa/pa.md (integer_indexed_store splitters): Use
15488 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
15489 insns -- adjusting the constant 2nd operand accordingly.
15491 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
15492 (plus (ashift X log2) Y) if it is a split point.
15494 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
15495 out of hppa_legitimize_address to handle both forms of a multiply
15497 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
15498 Always generate the ASHIFT variant as the result is not directly
15499 used in a MEM. Update comments and refactor slightly to improve
15502 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15505 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
15506 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
15507 (aarch64_composite_type_p): Return false if given type and mode are
15508 for a short vector.
15510 2015-05-22 Richard Biener <rguenther@suse.de>
15512 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
15514 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
15515 patterns when determining whether SLP is pure.
15516 (vect_is_slp_reduction): Remove check for pattern stmts.
15517 (vect_is_simple_reduction_1): Remove dead code.
15518 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
15519 (vect_get_and_check_slp_defs): Pass in the stmt number.
15520 Allow the first def in a reduction to be not a pattern stmt when
15521 the rest of the stmts def are patterns.
15522 (vect_build_slp_tree_1): Allow tcc_expression codes like
15523 SAD_EXPR and DOT_PROD_EXPR.
15524 (vect_build_slp_tree): Adjust.
15525 (vect_analyze_slp): Refactor and move BB vect error message ...
15526 (vect_slp_analyze_bb_1): ... here.
15528 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
15530 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
15531 for CSWTCH temporary.
15533 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15535 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
15536 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
15539 2015-05-22 Richard Biener <rguenther@suse.de>
15541 PR tree-optimization/66251
15542 * tree-vect-stmts.c (vectorizable_conversion): Properly
15543 set STMT_VINFO_VEC_STMT even for the SLP case.
15545 2015-05-22 Marek Polacek <polacek@redhat.com>
15547 * doc/extend.texi: Use @pxref instead of @xref.
15549 2015-05-22 hiraditya <hiraditya@msn.com>
15551 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
15554 2015-05-22 Richard Biener <rguenther@suse.de>
15556 PR tree-optimization/65701
15557 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15558 Move peeling cost models into one place. Peel for alignment
15559 for single loads only if an aligned load is cheaper than
15562 2015-05-22 Marek Polacek <polacek@redhat.com>
15565 * doc/extend.texi (Enumerator Attributes): New section.
15566 Document syntax of enumerator attributes.
15568 2015-05-22 Richard Biener <rguenther@suse.de>
15570 * tree-vect-loop.c (get_reduction_op): New function.
15571 (vect_model_reduction_cost): Use it, add reduc_index parameter.
15572 Make ready for BB reductions.
15573 (vect_create_epilog_for_reduction): Use get_reduction_op.
15574 (vectorizable_reduction): Init reduc_index to a valid value.
15575 Adjust vect_model_reduction_cost call.
15576 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
15577 operand for reduction defaults. Add SAD_EXPR support.
15578 Assert we have a neutral op for SLP reductions.
15579 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
15580 walking pattern stmt ops only recurse to SSA names.
15582 2015-05-22 Richard Biener <rguenther@suse.de>
15584 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
15585 assert with guard, remove check on detected reduction.
15586 (vect_recog_sad_pattern): Likewise.
15587 (vect_recog_widen_sum_pattern): Likewise.
15589 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15591 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
15592 __always_inline__ attribute.
15593 (vaesdq_u8): Likewise.
15594 (vaesmcq_u8): Likewise.
15595 (vaesimcq_u8): Likewise.
15596 (vsha1cq_u32): Likewise.
15597 (vsha1mq_u32): Likewise.
15598 (vsha1pq_u32): Likewise.
15599 (vsha1h_u32): Likewise.
15600 (vsha1su0q_u32): Likewise.
15601 (vsha1su1q_u32): Likewise.
15602 (vsha256hq_u32): Likewise.
15603 (vsha256h2q_u32): Likewise.
15604 (vsha256su0q_u32): Likewise.
15605 (vsha256su1q_u32): Likewise.
15606 (vmull_p64): Likewise.
15607 (vmull_high_p64): Likewise.
15609 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15611 * final.c (final_scan_insn): Don't check HAVE_peephole with the
15613 * output.h: Likewise.
15614 * genconfig.c (main): Alwways define HAVE_peephole.
15615 * genpeep.c: Don't emit checks of HAVE_peephole.
15617 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15619 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
15620 check HAVE_conditional_move with the preprocessor.
15622 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15624 * genconfig.c (main): Always define HAVE_conditional_move.
15625 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
15626 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
15629 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15631 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
15632 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
15633 and FRAME_POINTER_REGNUM with the preprocessor.
15635 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15637 * defaults.h: Add default for STACK_PUSH_CODE.
15638 * expr.c: Don't redefine STACK_PUSH_CODE.
15639 * recog.c: Likewise.
15641 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15643 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
15644 sched-deps.c: Use if instead of preprocessor checks with
15645 STACK_GROWS_DOWNWARD.
15647 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15649 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
15651 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
15652 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
15653 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
15654 * doc/tm.texi: Regenerate.
15656 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
15659 * config/i386/constraints.md (Bg): New constraint for GOT memory
15661 * config/i386/i386.md (*call_got_x32): New pattern.
15662 (*call_value_got_x32): Likewise.
15663 * config/i386/predicates.md (GOT_memory_operand): New predicate.
15665 2015-05-21 Jakub Jelinek <jakub@redhat.com>
15667 PR tree-optimization/66233
15668 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
15671 2015-05-21 Jeff Law <law@redhat.com>
15673 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
15674 than MULT for shadd sequences.
15676 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
15678 * alias.c (alias_stats): New static var.
15679 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
15680 (dump_alias_stats_in_alias_c): New function.
15681 * alias.h (dump_alias_stats_in_alias_c): Declare.
15682 * tree-ssa-alias.c (dump_alias_stats): Call it.
15684 2015-05-08 Michael Matz <matz@suse.de>
15686 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
15688 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
15689 (STMT_VINFO_STRIDED_P): ... this.
15690 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
15691 (vect_verify_datarefs_alignment): Likewise.
15692 (vect_enhance_data_refs_alignment): Likewise.
15693 (vect_analyze_data_ref_access): Likewise.
15694 (vect_analyze_data_refs): Accept strided stores.
15695 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
15696 (vect_model_load_cost): Adjust for macro rename.
15697 (vectorizable_mask_load_store): Likewise.
15698 (vectorizable_load): Likewise.
15699 (vectorizable_store): Open code strided stores.
15701 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15703 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
15704 Document sqrt_insn.
15706 2015-05-21 Richard Biener <rguenther@suse.de>
15709 * match.pd: Guard pattern optimzing (int)(float)int
15710 conversions to apply only on GIMPLE.
15712 2015-05-21 Jeff Law <law@redhat.com>
15714 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
15715 multiply-accumulate/shift-add insn generation.
15717 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15720 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
15721 operands[1] are the same.
15723 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
15725 PR middle-end/66221
15726 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
15727 build_distinct_type_copy to copy bounds.
15729 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
15731 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
15732 Change to unsigned int.
15734 2015-05-20 Jeff Law <law@redhat.com>
15736 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
15737 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
15738 (pa_shadd_constant_p): Allow constants for shadd insns rather
15739 than valid scaling constants for memory addresses.
15740 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
15741 * config/pa/predicates.md (mem_shadd_operand): New predicate.
15742 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
15743 (shift-add insns using ASHIFT): New patterns.
15745 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
15747 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
15749 (fix_up_fall_thru_edges): Likewise.
15750 (fix_crossing_conditional_branches): Likewise. Promote jump targets
15751 from to rtx_insn to rtx_code_label where feasible.
15752 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
15753 gen_move_insn (returned type changed to rtx_insn).
15754 * builtins.c (expand_errno_check): Fix arguments of
15755 do_compare_rtx_and_jump (now expects rtx_code_label).
15756 (expand_builtin_acc_on_device): Likewise.
15757 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
15758 invert_jump (now exprects rtx_jump_insn).
15759 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
15760 (construct_init_block): Use rtx_code_label.
15761 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
15762 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
15763 calling redirect_jump.
15764 (patch_jump_insn): Likewise.
15765 (redirect_branch_edge): Likewise.
15766 (force_nonfallthru_and_redirect): Likewise.
15767 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
15769 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
15770 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
15771 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
15772 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
15773 to store the value retured by gen_label_rtx.
15774 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
15776 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
15777 (split_branches): Fix calls of redirect_jump.
15778 * dojump.c (jumpifnot): Promote argument type from rtx to
15780 (jumpifnot_1): Likewise.
15781 (jumpif): Likewise.
15782 (jumpif_1): Likewise.
15783 (do_jump_1): Likewise.
15784 (do_jump): Likewise. Use rtx_code_label when feasible.
15785 (do_jump_by_parts_greater_rtx): Likewise.
15786 (do_jump_by_parts_zero_rtx): Likewise.
15787 (do_jump_by_parts_equality_rtx): Likewise.
15788 (do_compare_rtx_and_jump): Likewise.
15789 * dojump.h: Update function prototypes.
15790 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
15792 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
15794 (emit_label_before): Likewise.
15795 (emit_jump_insn_after_noloc): Likewise.
15796 (emit_jump_insn_after_setloc): Likewise.
15797 (emit_jump_insn_after): Likewise
15798 (emit_jump_insn_before_setloc): Likewise.
15799 (emit_jump_insn_before): Likewise.
15800 (emit_label_before): Promote return type to rtx_code_label.
15801 (emit_label): Likewise.
15802 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
15803 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
15805 (emit_stack_restore): Likewise.
15806 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
15807 (do_cmp_and_jump): Likewise.
15808 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
15809 from rtx to rtx_code_label.
15810 (gen_move_insn_uncast): New function.
15811 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
15812 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
15813 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
15814 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
15815 invert_jump_1 and redirect_jump_1.
15816 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
15817 do_compare_rtx_and_jump.
15818 (expand_addsub_overflow): Likewise.
15819 (expand_neg_overflow): Likewise.
15820 (expand_mul_overflow): Likewise.
15821 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
15822 return value of gen_move_insn.
15823 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
15824 * loop-doloop.c (add_test): Use rtx_code_label.
15825 (doloop_modify): Likewise.
15826 (doloop_optimize): Likewise.
15827 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
15828 * lra-constraints.c (emit_spill_move): Remove cast of value returned
15830 (inherit_reload_reg): Add cast when calling dump_insn_slim.
15831 (split_reg): Likewise.
15832 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
15834 * optabs.c (expand_binop_directly): Remove casts of values returned by
15836 (expand_unop_direct): Likewise.
15837 (expand_abs): Likewise.
15838 (maybe_emit_unop_insn): Likewise.
15839 (maybe_gen_insn): Promote return type to rtx_insn.
15840 * optabs.h: Update prototype of maybe_gen_insn.
15841 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
15843 * recog.c (struct peep2_insn_data): Promote type of insn field to
15845 (peep2_reinit_state): Use NULL instead of NULL_RTX.
15846 (peep2_attempt): Remove casts of insn in peep2_insn_data.
15847 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
15848 * recog.h (struct insn_gen_fn): Promote return types of function
15849 pointers and operator ().from rtx to rtx_insn.
15850 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
15851 (fill_eager_delay_slots): Likewise.
15852 (relax_delay_slots): Likewise.
15853 (make_return_insns): Likewise.
15854 (dbr_schedule): Likewise.
15855 (optimize_skips): Likewise.
15856 (reorg_redirect_jump): Likewise.
15857 (fill_slots_from_thread): Likewise.
15858 * reorg.h: Update prototypes.
15859 * resource.c (find_dead_or_set_registers): Use dyn_cast to
15860 rtx_jump_insn instead of check. Use it's jump_target method.
15861 * rtl.h (rtx_jump_insn::jump_label): Define new method.
15862 (rtx_jump_insn::jump_target): Define new method.
15863 (rtx_jump_insn::set_jump_target): Define new method.
15864 * rtlanal.c (tablejump_p): Promote type of one local variable.
15865 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
15866 (sched_analyze_insn): Likewise.
15867 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
15868 (print_insn): Likewise.
15869 * stmt.c (label_rtx): Promote return type to rtx_insn.
15870 (force_label_rtx): Likewise.
15871 (jump_target_rtx): Define new function.
15872 (expand_label): Use it, get rid of one cast.
15873 (expand_naked_return): Promote rtx to rtx_code_label.
15874 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
15875 (expand_case): Use rtx_code_label instread of rtx where feasible.
15876 (expand_sjlj_dispatch_table): Likewise.
15877 (emit_case_nodes): Likewise.
15878 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
15879 * store-motion.c (insert_store): Make use of new return type of
15880 gen_move_insn and remove a cast.
15881 (replace_store_insn): Likewise.
15883 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
15885 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
15886 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
15888 2015-05-20 Jeff Law <law@redhat.com>
15890 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
15891 dispose of the jump thread path when the jump threading
15892 opportunity is cancelled.
15894 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15896 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
15897 when printing the caret character.
15899 2015-05-20 Marek Polacek <polacek@redhat.com>
15901 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
15903 2015-05-20 Marek Polacek <polacek@redhat.com>
15905 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
15906 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
15907 * gimple-fold.c (canonicalize_bool): Likewise.
15908 (same_bool_result_p): Likewise.
15909 * tree-if-conv.c (parse_predicate): Likewise.
15911 2015-05-20 Marek Polacek <polacek@redhat.com>
15913 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
15914 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
15916 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15918 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
15919 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
15922 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
15924 * config/mips/mips.h (micromips_globals): Declare.
15926 2015-05-20 David Malcolm <dmalcolm@redhat.com>
15928 * timevar.def (TV_INITIALIZE_RTL): New.
15929 * toplev.c (initialize_rtl): Use an auto_timevar to account this
15930 function's time to TV_INITIALIZE_RTL.
15932 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
15934 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
15935 gimple_build_nop calls.
15936 (chkp_find_bounds_for_elem): Likewise.
15937 (chkp_get_zero_bounds): Likewise.
15938 (chkp_get_none_bounds): Likewise.
15939 (chkp_get_bounds_by_definition): Likewise.
15940 (chkp_generate_extern_var_bounds): Likewise.
15941 (chkp_get_bounds_for_decl_addr): Likewise.
15942 (chkp_get_bounds_for_string_cst): Likewise.
15944 2015-05-20 Bin Cheng <bin.cheng@arm.com>
15946 PR tree-optimization/65447
15947 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
15948 (dump_use, dump_uses): Support to dump sub use.
15949 (record_use): New parameters to support sub use. Remove call to
15951 (record_sub_use, record_group_use): New functions.
15952 (compute_max_addr_offset, split_all_small_groups): New functions.
15953 (group_address_uses, rewrite_use_address): New functions.
15954 (strip_offset): New declaration.
15955 (find_interesting_uses_address): Call record_group_use.
15956 (add_candidate): New assertion.
15957 (infinite_cost_p): Move definition forward.
15958 (add_costs): Check INFTY cost and return immediately.
15959 (get_computation_cost_at): Clear setup cost and dependent bitmap
15961 (determine_use_iv_cost_address): Compute cost for sub uses.
15962 (rewrite_use_address_1): Rename from old rewrite_use_address.
15963 (free_loop_data): Free sub uses.
15964 (tree_ssa_iv_optimize_loop): Call group_address_uses.
15966 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
15967 Jim Wilson <jim.wilson@linaro.org>
15969 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
15970 new fields loadv and storev.
15971 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
15972 Initialize loadv and storev.
15973 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
15974 (cortexa53_extra_costs): Likewise.
15975 (cortexa57_extra_costs): Likewise.
15976 (xgene1_extra_costs): Likewise.
15977 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
15980 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
15982 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
15984 (cortexa8_extra_costs): Likewise.
15985 (cortexa5_extra_costs): Likewise.
15986 (cortexa7_extra_costs): Likewise.
15987 (cortexa12_extra_costs): Likewise.
15988 (cortexa15_extra_costs): Likewise.
15989 (v7m_extra_costs): Likewise.
15991 2015-05-20 Jeff Law <law@redhat.com>
15993 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
15994 instead of open-coded version. Also delete the jump thread created
15995 within this function.
15997 2015-05-20 Alan Modra <amodra@gmail.com>
15999 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
16000 stack adjusting insn. Formatting.
16001 (rs6000_emit_prologue): Track stack adjusting insn, and use of
16002 r12. If possible, emit first -fsplit-stack arg pointer insn
16003 before stack adjust. Don't use r12 to save cr if split-stack.
16005 2015-05-20 Alan Modra <amodra@gmail.com>
16007 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
16009 (rs6000_supports_split_stack): New function.
16010 * gcc/config/rs6000/rs6000.c (machine_function): Add
16011 split_stack_arg_pointer.
16012 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
16013 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
16014 rather than virtual_incoming_args_rtx.
16015 (rs6000_va_start): Likewise.
16016 (split_stack_arg_pointer_used_p): New function.
16017 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
16018 (morestack_ref): New var.
16019 (gen_add3_const, rs6000_expand_split_stack_prologue,
16020 rs6000_internal_arg_pointer, rs6000_live_on_entry,
16021 rs6000_split_stack_space_check): New functions.
16022 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
16023 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
16024 (UNSPECV_SPLIT_STACK_RETURN): Define.
16025 (split_stack_prologue, load_split_stack_limit,
16026 load_split_stack_limit_di, load_split_stack_limit_si,
16027 split_stack_return, split_stack_space_check): New expands and insns.
16028 * gcc/config/rs6000/rs6000-protos.h
16029 (rs6000_expand_split_stack_prologue): Declare.
16030 (rs6000_split_stack_space_check): Declare.
16032 2015-05-20 Alan Modra <amodra@gmail.com>
16034 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
16035 (direct_return): Test vrsave_size rather than vrsave_mask.
16036 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
16037 (rs6000_emit_epilogue): Likewise.
16039 2015-05-20 Alan Modra <amodra@gmail.com>
16041 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
16042 when not saving registers.
16043 (debug_stack_info): Adjust to omit printing unused offsets,
16045 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
16048 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16051 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
16052 value_type to const char *.
16054 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
16056 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
16057 to build a biarch toolchain again.
16059 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16061 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
16062 or implicit declarations.
16063 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
16065 (get_odr_type): Check type has linkage before adding bases.
16066 (register_odr_type): Check that type has linkage before adding it.
16067 (type_known_to_have_no_deriavations_p): Rename to ..
16068 (type_known_to_have_no_derivations_p): This one.
16069 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
16070 (type_known_to_have_no_derivations_p): This one.
16071 * ipa-polymorphic-call.c
16072 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
16075 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16077 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
16078 (layout_type): Use RECORD_OR_UNION_TYPE_P.
16080 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16082 * config/s390/s390.c (s390_vector_bool_type_p): New function.
16083 (s390_invalid_binary_op): New function.
16084 (TARGET_INVALID_BINARY_OP): Define macro.
16086 2015-05-19 David Sherwood <david.sherwood@arm.com>
16088 * loop-invariant.c (create_new_invariant): Don't calculate address cost
16089 if mode is not a scalar integer.
16090 (get_inv_cost): Increase computational cost for unused invariants.
16092 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16094 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
16095 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
16096 * config/s390/s390-builtin-types.def: New file.
16097 * config/s390/s390-builtins.def: New file.
16098 * config/s390/s390-builtins.h: New file.
16099 * config/s390/s390-c.c: New file.
16100 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
16101 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
16102 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
16103 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
16105 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
16107 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
16108 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
16109 variable definitions.
16110 (s390_const_operand_ok): New function.
16111 (s390_expand_builtin): Rewrite.
16112 (s390_init_builtins): New function.
16113 (s390_handle_vectorbool_attribute): New function.
16114 (s390_attribute_table): Add s390_vector_bool attribute.
16115 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
16116 (s390_branch_condition_mask): Generate masks for new modes.
16117 (s390_expand_vec_compare_cc): New function.
16118 (s390_mangle_type): Add mangling for vector bool types.
16119 (enum s390_builtin): Remove.
16120 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
16122 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
16123 s390_cpu_cpp_builtins.
16124 (REGISTER_TARGET_PRAGMAS): New macro.
16125 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
16126 (insn_cmp mode attribute): Add new CC modes.
16127 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
16128 (lcbb): New pattern definition.
16129 * config/s390/s390intrin.h: Include vecintrin.h.
16130 * config/s390/t-s390: New file.
16131 * config/s390/vecintrin.h: New file.
16132 * config/s390/vector.md: Include vx-builtins.md.
16133 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
16136 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16138 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
16140 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
16141 (s390_select_ccmode): Likewise.
16142 (s390_canonicalize_comparison): Swap operands if necessary.
16143 (s390_expand_vec_compare_scalar): Expand DFmode compare using
16144 single element vector instructions.
16145 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
16146 (s390_branch_condition_mask): Generate CC masks for the new modes.
16147 * config/s390/s390.md (v0, vf, vd): New mode attributes.
16148 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
16149 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
16150 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
16151 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
16152 (*extend<DSF:mode><BFP:mode>2): New insn definition.
16153 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
16154 (extend<DSF:mode><BFP:mode>2): Turn into expander.
16155 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
16156 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
16157 (sqrt<mode>2): Add vector instruction.
16159 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16161 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
16163 * config/s390/predicates.md (const0_operand, constm1_operand)
16164 (constable_operand): Accept vector operands.
16165 * config/s390/s390-modes.def: Add supported vector modes.
16166 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
16167 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
16168 (s390_bytemask_vector_p, s390_expand_vec_strlen)
16169 (s390_expand_vec_compare, s390_expand_vcond)
16170 (s390_expand_vec_init): Add prototypes.
16171 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
16172 (s390_vector_mode_supported_p): New function.
16173 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
16174 (s390_contiguous_bitmask_vector_p): New function.
16175 (s390_bytemask_vector_p): New function.
16176 (s390_split_ok_p): Vector regs don't work either.
16177 (regclass_map): Add VEC_REGS.
16178 (s390_legitimate_constant_p): Handle vector constants.
16179 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
16180 (legitimate_reload_vector_constant_p): New function.
16181 (s390_preferred_reload_class): Handle CONST_VECTOR.
16182 (s390_reload_symref_address): Likewise.
16183 (s390_secondary_reload): Vector memory instructions only support
16184 short displacements. Rename reload*_nonoffmem* to reload*_la*.
16185 (s390_emit_ccraw_jump): New function.
16186 (s390_expand_vec_strlen): New function.
16187 (s390_expand_vec_compare): New function.
16188 (s390_expand_vcond): New function.
16189 (s390_expand_vec_init): New function.
16190 (s390_dwarf_frame_reg_mode): New function.
16191 (print_operand): Handle addresses with 'O' and 'R' constraints.
16192 (NR_C_MODES, constant_modes): Add vector modes.
16193 (s390_output_pool_entry): Handle vector constants.
16194 (s390_hard_regno_mode_ok): Handle vector registers.
16195 (s390_class_max_nregs): Likewise.
16196 (s390_cannot_change_mode_class): New function.
16197 (s390_invalid_arg_for_unprototyped_fn): New function.
16198 (s390_function_arg_vector): New function.
16199 (s390_function_arg_float): Remove size variable.
16200 (s390_pass_by_reference): Handle vector arguments.
16201 (s390_function_arg_advance): Likewise.
16202 (s390_function_arg): Likewise.
16203 (s390_return_in_memory): Vector values are returned in a VR if
16205 (s390_function_and_libcall_value): Handle vector arguments.
16206 (s390_gimplify_va_arg): Likewise.
16207 (s390_call_saved_register_used): Consider the arguments named.
16208 (s390_conditional_register_usage): Disable v16-v31 for non-vec
16210 (s390_preferred_simd_mode): New function.
16211 (s390_support_vector_misalignment): New function.
16212 (s390_vector_alignment): New function.
16213 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
16214 (TARGET_VECTOR_MODE_SUPPORTED_P)
16215 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
16216 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16217 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
16218 (TARGET_VECTOR_ALIGNMENT): Define target macro.
16219 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
16220 (FIRST_PSEUDO_REGISTER): Increase value.
16221 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
16222 (VECTOR_REG_P): Define macros.
16223 (FIXED_REGISTERS, CALL_USED_REGISTERS)
16224 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
16225 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
16226 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
16227 Add vector registers.
16228 (CANNOT_CHANGE_MODE_CLASS): Call C function.
16229 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
16230 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
16232 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
16233 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
16234 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
16235 (VR*_REGNUM): New constants.
16236 (ALL): New mode iterator.
16237 (INTALL): Remove mode iterator.
16239 (movti): Implement TImode moves for VRs.
16240 Disable TImode splitter for VR targets.
16241 Implement splitting TImode GPR<->VR moves.
16242 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
16243 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
16244 reload<mode>_la_in, reload<mode>_la_out.
16245 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
16246 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
16247 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
16248 (mov<mode> SF SD): Prefer lder, lde for loading.
16249 Add lrl and strl instructions.
16250 Add vector instructions.
16251 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
16252 Call s390_expand_vec_strlen on z13.
16253 (*cc_to_int): Change predicate to nonimmediate_operand.
16254 (addti3): Rename to *addti3. New expander.
16255 (subti3): Rename to *subti3. New expander.
16256 * config/s390/vector.md: New file.
16258 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16260 * common/config/s390/s390-common.c (processor_flags_table): Add
16262 * config.gcc: Add z13.
16263 * config/s390/s390-opts.h (enum processor_type): Add
16264 PROCESSOR_2964_Z13.
16265 * config/s390/s390.c (s390_adjust_priority): Check for
16266 PROCESSOR_2964_Z13.
16267 (s390_reorg): Likewise.
16268 (s390_sched_reorder): Likewise.
16269 (s390_sched_variable_issue): Likewise.
16270 (s390_loop_unroll_adjust): Likewise.
16271 (s390_option_override): Likewise. Default to -mvx when available.
16272 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
16273 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
16274 (TARGET_VX_ABI): Define macros.
16276 (TARGET_DEFAULT): Add MASK_OPT_VX.
16277 * config/s390/s390.md ("cpu" attribute): Add z13.
16278 ("cpu_facility" attribute): Add vec.
16279 * config/s390/s390.opt (processor_type): Add z13.
16280 (mvx): New options.
16281 * doc/invoke.texi: Add z13 option for -march.
16283 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16285 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
16286 mode check to make sure that only scalar integer values are
16289 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16291 * tree.c (verify_type_variant): Fix #undef.
16292 (gimple_canonical_types_compatible_p): Move here from lto.c
16293 (verify_type): Verify TYPE_CANONICAL compatibility.
16294 * tree.h (gimple_canonical_types_compatible_p): Declare.
16296 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16298 PR middle-end/66199
16299 * tree.h (OMP_TEAMS_COMBINED): Define.
16300 * gimplify.c (enum gimplify_omp_var_data): Add
16301 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
16302 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
16303 (omp_notice_variable): Accept both ORT_TEAMS
16304 and ORT_COMBINED_TEAMS. Don't recurse if
16305 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
16306 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
16308 (omp_no_lastprivate): New function.
16309 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
16310 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
16311 notice_outer and set appropriate bits, otherwise make
16312 sure default(none) combined constructs won't complain.
16313 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
16314 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
16315 omp_no_lastprivate either remove the clause or turn it
16316 into OMP_CLAUSE_PRIVATE.
16317 (gimplify_omp_for): Fix up handling of implicit
16318 lastprivate or linear iterators.
16319 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
16320 ORT_COMBINED_TEAMS.
16321 * omp-low.c (lower_omp_for_lastprivate): For combined
16322 for simd use fd.loop.n2 from the for rather than simd.
16324 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16326 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
16327 instead of gen_rtx_raw_REG.
16328 (cris_expand_epilogue): Likewise.
16329 * config/microblaze/microblaze.c (microblaze_classify_address):
16331 * config/sparc/sparc.md: Likewise.
16333 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
16335 * config/alpha/alpha.c (alpha_legitimize_reload_address)
16336 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
16337 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
16338 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
16339 Use CASE_CONST_SCALAR_INT.
16340 (print_operand) <case 'M'>: Use mode_width_operand to check the
16341 value of the constant.
16342 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
16343 * config/alpha/predicates.md (input_operand): Use general_operand
16344 instead of match_code as operand check.
16345 (symbolic_operand): Use match_code with subexpression digits.
16346 * config/alpha/constraints.md (Q): Ditto.
16348 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16350 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
16352 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16354 * config/s390/s390.c (s390_secondary_reload): Fix check for
16355 load/store relative.
16357 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16359 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
16360 alternative_mask to uint64_t.
16362 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16364 PR tree-optimization/66187
16365 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
16366 Pass TYPE_SIGN to tree_int_cst_min_precision. If
16367 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
16369 2015-05-19 David Malcolm <dmalcolm@redhat.com>
16371 * diagnostic.c (diagnostic_report_current_module): Strengthen
16372 local "new_map" from const line_map * to
16373 const line_map_ordinary *.
16374 * genmatch.c (error_cb): Likewise for local "map".
16375 (output_line_directive): Likewise for local "map".
16376 * input.c (expand_location_1): Likewise for local "map".
16377 Pass NULL rather than &map to
16378 linemap_unwind_to_first_non_reserved_loc, since the value is never
16379 read from there, and the value written back not read from here.
16380 (is_location_from_builtin_token): Strengthen local "map" from
16381 const line_map * to const line_map_ordinary *.
16382 (dump_location_info): Strengthen locals "map" from
16383 line_map *, one to const line_map_ordinary *, the other
16384 to const line_map_macro *.
16385 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
16386 const line_map * to const line_map_macro *.
16387 (maybe_unwind_expanded_macro_loc): Add a call to
16388 linemap_check_macro when writing to the "map" field of the
16390 Introduce local const line_map_ordinary * "ord_map", using it in
16391 place of "map" in the part of the function where we know we have
16392 an ordinary map. Strengthen local "m" from const line_map * to
16393 const line_map_ordinary *.
16395 2015-05-19 Nick Clifton <nickc@redhat.com>
16398 * config/msp430/msp430.md (zero_extendhisi2): Add support for
16399 separate source and destination registers.
16401 2015-05-19 Richard Biener <rguenther@suse.de>
16403 PR tree-optimization/66165
16404 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
16405 for no load permutation.
16407 PR tree-optimization/66185
16408 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
16409 when building the SLP node from scalars.
16411 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16412 Tristan Gingold <gingold@adacore.com>
16414 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
16415 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
16416 (expand_stack_restore): Call record_new_stack_level.
16417 (expand_stack_save): Do not call do_pending_stack_adjust.
16418 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
16419 * calls.c (expand_call): Call record_new_stack_level for alloca.
16420 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
16421 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
16422 (update_sjlj_context): New global function.
16423 * except.h (update_sjlj_context): Declare.
16424 * explow.c (record_new_stack_level): New global function.
16425 (allocate_dynamic_stack_space): Call record_new_stack_level.
16426 * explow.h (record_new_stack_level): Declare.
16427 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
16428 * cfgrtl.c (duplicate_insn_chain): Likewise.
16430 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16432 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
16433 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
16434 STACK_GROWS_DOWNWARD as normal if.
16435 (expand_call): Likewise.
16437 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
16440 * config/sh/sh.md (*round_int_even): New insn_and_split and
16441 accompanying new unnamed split.
16443 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16445 * bitmap.c (bitmap_set_range): Handle count==1 specially.
16446 (bitmap_clear_range): Likewise.
16447 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
16448 bitmap_set_range unconditionally.
16449 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16450 * df-scan.c (df_mark_reg): Likewise.
16451 * haifa-sched.c (setup_ref_regs): Likewise.
16452 * sched-rgn.c (update_live_1): Likewise.
16454 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16456 * regs.h (END_HARD_REGNO): Delete.
16457 (END_REGNO): Move to...
16459 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
16460 * caller-save.c (mark_set_regs): Likewise.
16461 * combine.c (move_deaths, distribute_notes): Likewise.
16462 * cse.c (invalidate, invalidate_for_call): Likewise.
16463 * df-scan.c (df_ref_record): Likewise.
16464 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
16465 (record_last_reg_set_info): Likewise.
16466 * reg-stack.c (convert_regs_exit): Likewise.
16467 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
16468 * resource.c (update_live_status): Likewise.
16469 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
16471 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16473 * rtl.h (reg_info): Add an nregs field.
16474 (REG_NREGS): Use it.
16475 (SET_REGNO_RAW): Delete.
16476 (set_regno_raw): New function.
16477 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
16478 (END_REGNO): Redefine in terms of REG_NREGS.
16479 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
16481 * emit-rtl.c (set_mode_and_regno): Likewise.
16482 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
16483 instead of SET_REGNO_RAW.
16485 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16487 * rtl.h (PUT_MODE_RAW): New macro.
16488 (PUT_REG_NOTE_KIND): Use it.
16489 (set_mode_and_regno): Declare.
16490 (gen_raw_REG): Change regno to "unsigned int".
16491 (gen_rtx_REG): Change "unsigned" to "unsigned int".
16492 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
16493 use set_mode_and_regno to change the mode of registers.
16494 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
16495 * emit-rtl.c (set_mode_and_regno): New function.
16496 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
16497 * caller-save.c (reg_save_code): Use set_mode_and_regno.
16498 * expr.c (init_expr_target): Likewise.
16499 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16500 * postreload.c (reload_cse_simplify_operands): Likewise.
16502 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16504 * caller-save.c (init_caller_save): Use word_mode and
16505 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
16506 * expr.c (init_expr_target): Likewise.
16507 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16508 * postreload.c (reload_cse_regs_1): Likewise.
16510 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16512 * rtl.def (REG): Change format to "r".
16513 * rtl.h (rtunion): Remove rt_reg.
16514 (reg_info): New structure.
16515 (rtx_def): Add reg field to main union.
16516 (X0REGATTR): Delete.
16517 (REG_CHECK): New macro.
16518 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
16519 * rtl.c (rtx_format): Document "r".
16520 (rtx_code_size): Handle REG specially.
16521 * gengenrtl.c (special_format): Return true for formats
16523 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
16524 Deal with REG_ATTRS after the field loop.
16525 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
16526 * expmed.c (init_expmed): Call gen_raw_REG instead of
16528 * expr.c (init_expr_target): Likewise.
16529 * regcprop.c (maybe_mode_change): Likewise.
16530 * varasm.c (make_decl_rtl): Likewise.
16531 * final.c (leaf_renumber_regs_insn): Return early after
16533 * genemit.c (gen_exp): Handle 'r' fields.
16534 * genpeep.c (match_rtx): Likewise.
16535 * gensupport.c (subst_pattern_match): Likewise.
16536 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
16537 (alter_constraints, subst_dup): Likewise.
16538 * read-rtl.c (read_rtx_code): Likewise.
16539 * print-rtl.c (print_rtx): Likewise.
16540 * genrecog.c (find_operand, find_matching_operand): Likewise.
16541 (validate_pattern, match_pattern_2): Likewise.
16542 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
16543 (rtx_test::regno_field): New function.
16544 (operator ==, safe_to_hoist_p, transition_parameter_type)
16545 (parameter_type_string, print_parameter_value)
16546 (print_nonbool_test, print_test): Handle new enum values.
16547 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
16548 * lra-constraints.c (operands_match_p): Likewise.
16550 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16552 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
16553 Change type of new_regno to unsigned int.
16554 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
16555 new_regno to unsigned int.
16556 (df_ref_change_reg_with_loc): Remove old_regno parameter.
16557 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
16558 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
16559 (SET_REGNO_RAW): Add space after ",".
16561 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16563 * rtl.h (REG_NREGS): New macro
16564 * alias.c (record_set): Use it.
16565 * cfgcleanup.c (mark_effect): Likewise.
16566 * combine.c (likely_spilled_retval_1): Likewise.
16567 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
16568 (move_deaths, distribute_notes): Likewise.
16569 * cselib.c (cselib_record_set): Likewise.
16570 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16571 * df-scan.c (df_mark_reg): Likewise.
16572 * dse.c (look_for_hardregs): Likewise.
16573 * dwarf2out.c (reg_loc_descriptor): Likewise.
16574 (multiple_reg_loc_descriptor): Likewise.
16575 * expr.c (write_complex_part, read_complex_part): Likewise.
16576 (emit_move_complex): Likewise.
16577 * haifa-sched.c (setup_ref_regs): Likewise.
16578 * ira-lives.c (mark_hard_reg_live): Likewise.
16579 * lra.c (lra_set_insn_recog_data): Likewise.
16580 * mode-switching.c (create_pre_exit): Likewise.
16581 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
16582 (reload_combine_recognize_pattern): Likewise.
16583 (reload_combine_note_use, move2add_record_mode): Likewise.
16584 (reload_cse_move2add): Likewise.
16585 * reg-stack.c (subst_stack_regs_pat): Likewise.
16586 * regcprop.c (kill_value, copy_value): Likewise.
16587 (copyprop_hardreg_forward_1): Likewise.
16588 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
16589 (build_def_use): Likewise.
16590 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
16591 (deps_analyze_insn): Likewise.
16592 * sched-rgn.c (check_live_1, update_live_1): Likewise.
16593 * sel-sched.c (count_occurrences_equiv): Likewise.
16594 * valtrack.c (dead_debug_insert_temp): Likewise.
16596 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16598 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
16599 * dse.c (note_add_store): Likewise.
16600 * ira-lives.c (mark_hard_reg_dead): Likewise.
16601 * loop-invariant.c (mark_reg_store): Likewise.
16602 (mark_reg_death): Likewise.
16603 * postreload.c (reload_combine): Likewise.
16604 (reload_combine_note_store): Likewise.
16605 (reload_combine_note_use): Likewise.
16606 * recog.c (peep2_reg_dead_p): Likewise.
16608 2015-05-19 Alan Modra <amodra@gmail.com>
16610 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
16611 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
16612 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
16614 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
16615 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
16616 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
16617 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
16619 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
16621 * config/mips/mips.md (JOIN_MODE): New mode iterator.
16622 (join2_load_Store<JOIN_MODE:mode>): New pattern.
16623 (join2_loadhi): Likewise.
16624 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
16625 load-load and store-stores.
16626 * config/mips/mips.opt (mload-store-pairs): New option.
16627 (TARGET_LOAD_STORE_PAIRS): New macro.
16628 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
16629 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
16630 * config/mips/mips.c (mips_load_store_bonding_p): New function.
16632 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
16634 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
16636 * dojump.c (do_compare_rtx_and_jump): Likewise.
16637 * expmed.c (emit_store_flag_1): Likewise.
16638 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
16639 * final.c (sprint_ul): Use std::reverse for reversing a string.
16640 * fold-const.c (extract_muldiv_1): Use std::swap.
16641 * genmodes.c (emit_mode_int_n): Likewise.
16642 * ifcvt.c (dead_or_predicable): Likewise.
16643 * ira-build.c (ira_merge_live_ranges): Likewise.
16644 (swap_allocno_copy_ends_if_necessary): Likewise.
16645 * ira.c (ira_setup_alts): Likewise.
16646 * loop-iv.c (iv_analyze_expr): Likewise.
16647 (implies_p): Likewise.
16648 (canon_condition): Likewise.
16649 * lra-constraints.c (swap_operands): Likewise.
16650 * lra-lives.c (lra_merge_live_ranges): Likewise.
16651 * omega.c (swap): Remove.
16653 (omega_unprotect_1): Use std::swap.
16654 (omega_solve_geq): Likewise.
16655 * optabs.c (expand_binop_directly): Likewise.
16656 (expand_binop): Likewise.
16657 (emit_conditional_move): Likewise.
16658 (emit_conditional_add): Likewise.
16659 * postreload.c (reload_cse_simplify_operands): Likewise.
16660 * reg-stack.c (emit_swap_insn): Likewise.
16661 (swap_to_top): Likewise.
16662 (compare_for_stack_reg): Likewise.
16663 (subst_asm_stack_regs): Likewise.
16664 * reload.c (find_reloads): Likewise.
16665 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
16666 * sel-sched.c (invoke_reorder_hooks): Likewise.
16667 (create_block_for_bookkeeping): Likewise.
16668 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
16669 (lambda_matrix_right_hermite): Use std::swap.
16670 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
16671 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
16672 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
16673 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
16674 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
16675 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
16676 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16677 * tree-vrp.c (compare_ranges): Likewise.
16678 * var-tracking.c (add_with_sets): Likewise.
16679 (vt_find_locations): Likewise.
16681 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
16683 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
16685 (FBSD_ENDFILE_SPEC): Likewise.
16686 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
16687 config/freebsd-spec.h.
16688 (ENDFILE_SPEC): Likewise.
16690 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
16691 Richard Henderson <rth@redhat.com>
16694 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
16695 Check for a memory location that is not a reference (using an AND)
16696 to an unaligned location here.
16697 * config/alpha/predicates.md (normal_memory_operand): Remove.
16699 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
16701 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
16702 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
16704 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
16706 * config/mips/mips.c (micromips_globals): New variable.
16707 (mips_set_compression_mode): Save and reinitialize target-dependent
16708 state for microMIPS.
16710 2015-05-18 Martin Liska <mliska@suse.cz>
16712 * dbgcnt.def: Add new counter.
16713 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
16715 2015-05-18 Martin Liska <mliska@suse.cz>
16717 * dbgcnt.def: Sort counters.
16718 * opts.c (common_handle_option): Do not compile if
16719 -fdbg-cnt-list is enabled.
16721 2015-05-18 Tom de Vries <tom@codesourcery.com>
16723 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
16724 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
16725 address operator to va_list operand.
16726 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
16728 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
16730 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
16731 * config/s390/s390.c (s390_gimplify_va_arg): Same.
16732 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
16734 2015-05-18 Tom de Vries <tom@codesourcery.com>
16736 * tree-ssa-tail-merge.c: Fix whitespace.
16738 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
16740 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
16741 cortex-a17, and cortex-a17.cortex-a7.
16743 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
16746 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
16748 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
16751 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
16752 QImode inner modes for TARGET_AVX512BW. Force mask operand
16753 to a register for AVX512F modes.
16755 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16757 * toplev.c (emit_debug_global_declarations): Do not output debug info
16758 when doing slim LTO objects.
16760 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16762 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
16763 odr_types_equivalent_p): Declare.
16764 (odr_type_p): Use gcc_checking_assert.
16765 (type_in_anonymous_namespace_p) Declare.
16766 (type_with_linkage_p): Declare.
16767 * common.opt (Wlto-type-mismatch): New warning.
16768 * ipa-devirt.c (compound_type_base): New function.
16769 (odr_or_derived_type_p): New function.
16770 (odr_types_equivalent_p): New function.
16771 (add_type_duplicate): Simplify.
16772 (type_with_linkage_p): Add hack to prevent false positives on C types
16773 (type_in_anonymous_namespace_p): Likewise.
16774 * tree.c (need_assembler_name_p): Use type_with_linkage.
16775 * tree.h (type_in_anonymous_namespace_p): Remove.
16776 * doc/invoke.texi (-Wlto-type-mismatch): Document
16778 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16780 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
16781 (verify_type): Verify STRING_FLAG.
16783 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16786 * tree-pretty-print.c (percent_K_format): Replace locus pointer
16787 with accessor function.
16788 * tree-diagnostic.c (diagnostic_report_current_function): Use
16789 diagnostic_location function.
16790 (maybe_unwind_expanded_macro_loc): Likewise.
16791 (virt_loc_aware_diagnostic_finalizer): Likewise.
16792 (default_tree_printer): Replace locus pointer with accessor function.
16793 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
16794 (diagnostic_set_info_translated): Initialize second location.
16795 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
16796 (diagnostic_show_locus): Handle two locations. Call
16797 diagnostic_print_caret_line.
16798 (diagnostic_print_caret_line): New.
16799 (default_diagnostic_starter): Use diagnostic_location function.
16800 (diagnostic_report_diagnostic): Use diagnostic_location function.
16801 (verbatim): Do not set text.locus.
16802 * diagnostic.h (struct diagnostic_info): Remove location field.
16803 (struct diagnostic_context): Make caret_chars an array of two.
16804 (diagnostic_location): New inline.
16805 (diagnostic_expand_location): Handle two locations.
16806 (diagnostic_same_line): New inline.
16807 (diagnostic_print_caret_line): Declare.
16808 (CARET_LINE_MARGIN): New constant.
16809 * pretty-print.c (pp_printf): Do not set text.locus.
16810 (pp_verbatim): Do not set text.locus.
16811 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
16812 (struct text_info): Replace locus pointer with locations
16813 array. Add accessor functions.
16815 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
16816 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16819 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
16820 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
16821 large constants in register instead of splitting them.
16823 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
16826 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
16827 replacements in memory addresses.
16828 (get_unaligned_address): Ditto.
16830 2015-05-16 James Bowman <james.bowman@ftdichip.com>
16832 * config/ft32/*: New files for FT32 port.
16833 * doc/install.texi: Add FT32 information.
16834 * doc/invoke.texi: Add FT32 information.
16835 * doc/md.texi: Add FT32 information.
16836 * doc/contrib.texi: Self added.
16838 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
16840 PR tree-optimization/64454
16841 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
16842 (-1 - A -> ~A): Remove unnecessary condition.
16844 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
16846 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
16847 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
16848 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
16850 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
16852 * ipa-chkp.h (chkp_wrap_function): New.
16853 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
16854 (chkp_wrap_function_name): New.
16855 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
16856 to get wrapper name.
16857 * lto-cgraph.c: Include ipa-chkp.h.
16858 (input_cgraph_1): Avoid alias chain for wrappers.
16860 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
16862 PR middle-end/66134
16863 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
16864 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
16866 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16868 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
16869 (AARCH64_FL_SLOWMUL): Delete.
16870 (AARCH64_FL_CRC): Redefine to 1<<3.
16871 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
16873 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16875 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
16878 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
16880 * config/alpha/alpha.md (extendqidi2): Use general_operand
16881 instead of some_operand for operand[1] predicate.
16882 (extendhidi2): Ditto.
16883 (cbranchdi4): Use general_operand instead of some_operand
16884 for operand[1] and operands[2] predicates.
16885 (cstoredi4): Ditto.
16886 * config/alpha/predicates.md (some_operand): Remove unused predicate.
16887 (some_ni_operand): Ditto.
16889 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
16891 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
16892 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
16893 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
16894 low part of the constant using alpha_emit_set_const_1.
16895 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
16897 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
16899 * varasm.c (output_constant_pool_1): Pass down alignment from
16900 constant pool entry's descriptor to output_constant_pool_2.
16901 (output_object_block): Add comment prior to call to
16902 output_constant_pool_1.
16904 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
16906 PR rtl-optimization/65862
16907 * target.def (ira_change_pseudo_allocno_class): New hook.
16908 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
16910 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
16911 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
16913 * ira-costs.c (find_costs_and_classes): Call the hook and change
16914 classes when it is necessary.
16915 * doc/tm.texi: Update.
16917 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
16919 * config/i386/i386.md (sibcall_memory): Check that register with
16920 callee address is not also used as one of the arguments, instead
16921 of checking that it is not live after the sibcall.
16922 (sibcall_pop_memory): Ditto.
16923 (sibcall_value_memory): Ditto.
16924 (sibcall_value_pop_memory): Ditto.
16926 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
16928 * generic-match-head.c (types_match): Handle non-types.
16929 * gimple-match-head.c (types_match): Likewise.
16930 * match.pd: Remove unnecessary TREE_TYPE for types_match.
16932 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
16934 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
16935 (csneg3<mode>_insn): Enable expansion of pattern.
16937 2015-05-14 Nick Clifton <nickc@redhat.com>
16939 * config/rl78/rl78.c (rl78_select_section): Select the correct
16940 default section based upon the category of the decl.
16942 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
16944 PR rtl-optimization/30967
16945 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
16946 destination mode for the cost of scc patterns.
16948 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
16950 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
16951 using SWIM248 mode iterator.
16952 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
16953 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
16954 for operand[2] constraint.
16955 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
16957 2015-05-13 Jakub Jelinek <jakub@redhat.com>
16959 PR middle-end/66133
16960 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
16961 make sure it is never noreturn, even when the task body does not
16963 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
16964 right before GIMPLE_OMP_RETURN.
16965 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
16966 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
16967 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
16969 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16971 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
16972 * tree-ssa-math-opts.c: Include params.h
16973 (pow_synth_sqrt_info): New struct.
16974 (representable_as_half_series_p): New function.
16975 (get_fn_chain): Likewise.
16976 (print_nested_fn): Likewise.
16977 (dump_fractional_sqrt_sequence): Likewise.
16978 (dump_integer_part): Likewise.
16979 (expand_pow_as_sqrts): Likewise.
16980 (gimple_expand_builtin_pow): Use above to attempt to expand
16981 pow as series of square roots. Removed now unused variables.
16983 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
16985 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
16986 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
16987 Remove *p0 and *p1 arguments. Rewrite function.
16988 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
16989 (alpha_split_const_mov): Update calls to alpha_extract_integer and
16990 alpha_emit_set_long_const.
16991 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
16992 (alpha_output_mi_thunk_osf): Ditto.
16993 * config/alpha/alpha.md (movti): Do not check operands[1]
16996 2015-05-13 Richard Biener <rguenther@suse.de>
16998 PR tree-optimization/66129
16999 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
17001 (vect_schedule_slp_instance): Fix typo.
17003 2015-05-13 David Malcolm <dmalcolm@redhat.com>
17005 * common.opt (fdump-internal-locations): New option.
17006 * input.c: Include diagnostic-core.h.
17007 (get_end_location): New function.
17008 (write_digit): New function.
17009 (write_digit_row): New function.
17010 (dump_location_range): New function.
17011 (dump_labelled_location_range): New function.
17012 (dump_location_info): New function.
17013 * input.h (dump_location_info): New prototype.
17014 * toplev.c (compile_file): Handle flag_dump_locations.
17016 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
17018 * gimple-expr.h (is_gimple_constant): Reorder.
17019 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
17021 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17023 * combine.c (simplify_set): When generating a CC set, if the
17024 source already is in the correct mode, do not wrap it in a
17025 compare. Simplify the rest of that code.
17027 2015-05-13 Richard Biener <rguenther@suse.de>
17029 PR tree-optimization/66123
17030 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
17033 2015-05-13 Richard Biener <rguenther@suse.de>
17035 PR middle-end/66110
17036 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
17038 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
17040 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17042 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
17043 * aclocal.m4: Regenerated with automake-1.11.6.
17045 2015-05-13 Tom de Vries <tom@codesourcery.com>
17047 PR tree-optimization/66010
17048 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
17049 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
17050 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
17051 and rval based on do_deref.
17053 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17056 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
17057 link time constants into adress expressions and therefore set
17060 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17063 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
17064 Use SWI248 iterator instead of SWI.
17065 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
17066 Use eq_attr "alternative" "0" instead of match_test in
17067 length_immediate attribute computation.
17068 (*mulvhi4, *mulvhi4_1): New define_insns.
17071 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
17072 SIGNED to get precision of non-negative value.
17074 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17077 * function.c (diddle_return_value_1): Process bounds first.
17078 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
17081 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17083 PR rtl-optimization/64616
17084 * loop-invariant.c (can_move_invariant_reg): New.
17085 (move_invariant_reg): Call above new function to decide whether
17086 instruction can just be moved, skipping creation of temporary
17089 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17091 PR target/pr66047.c
17092 * i386.c (ix86_function_sseregparm): Only return -1 if local function
17093 with implied regparm is called from -mno-sse function.
17094 (init_cumulative_args): Output error if ix86_function_sseregparm
17095 return -1 and SSE register would be needed.
17096 (function_arg_advance_32): Likewise.
17097 (function_arg_32): Likewise.
17098 * i386.h (ix86_args): Add decl field.
17100 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17103 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
17104 inlines across optimization boundary.
17106 2015-05-12 Jason Merrill <jason@redhat.com>
17108 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
17109 string literal and macro name.
17111 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
17113 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
17114 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
17115 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
17117 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17119 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
17120 (-Wmisleading-indentation): New option.
17121 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
17123 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
17125 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
17126 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
17127 (alpha_extract_integer): Ditto.
17128 (alpha_legitimate_constant_p): Ditto.
17129 (alpha_split_tmode_pair): Ditto.
17130 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
17131 (alpha_expand_mov): Ditto.
17132 (print_operand): Remove handling of 'H' modifier.
17133 <case 'm'>: Remove CONST_DOUBLE handling.
17134 (summarize_insn): Handle CONST_WIDE_INT.
17135 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
17137 (movti): Handle CONST_WIDE_INT.
17138 * config/alpha/constraints.md ('H'): Remove constraint definition.
17139 ('G'): Do not match MODE_FLOAT class.
17140 * config/alpha/predicates.md (const0_operand): Also match
17142 (non_add_const_operand): Ditto.
17143 (non_zero_const_operand): Ditto.
17144 (some_operand): Ditto.
17145 (input_operand): Ditto. Handle CONST_WIDE_INT.
17146 (and_operand): Do not match const_double.
17147 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
17149 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
17152 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
17153 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
17154 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
17155 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
17156 is_mm_seq_cst, is_mm_sync): New accessor functions.
17157 * builtins.c (expand_builtin_sync_operation,
17158 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
17159 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
17160 (get_memmodel, expand_builtin_atomic_compare_exchange,
17161 expand_builtin_atomic_load, expand_builtin_atomic_store,
17162 expand_builtin_atomic_clear): Use new accessor routines.
17163 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
17164 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
17165 (maybe_emit_sync_lock_test_and_set): Use new accessors and
17166 MEMMODEL_SYNC_ACQUIRE.
17167 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
17168 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
17169 expand_atomic_store): Use new accessors.
17170 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
17171 * tsan.c (instrument_builtin_call): Update check for memory model beyond
17172 final enum to use MEMMODEL_LAST.
17173 * c-family/c-common.c: Use new accessor for memmodel_base.
17174 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
17176 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
17177 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
17178 mem_thread_fence, *dmb): Likewise.
17179 * config/alpha/alpha.c (alpha_split_compare_and_swap,
17180 alpha_split_compare_and_swap_12): Likewise.
17181 * config/arm/arm.c (arm_expand_compare_and_swap,
17182 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
17183 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
17184 atomic_loaddi): Likewise.
17185 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
17187 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
17188 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
17190 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
17191 atomic_store<mode>, atomic_compare_and_swap<mode>,
17192 atomic_exchange<mode>): Use new accessors.
17193 * config/mips/mips.c (mips_process_sync_loop): Likewise.
17194 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
17195 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
17196 rs6000_post_atomic_barrier): Add new cases.
17197 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
17198 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
17199 (atomic_load<mode>): Add new cases and use new accessors.
17200 (store_quadpti): Add new cases.
17201 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
17203 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
17204 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
17207 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17209 * ipa-devirt.c (type_with_linkage_p): New function.
17210 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
17212 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
17213 (can_be_name_hashed_p): Simplify.
17214 (hash_odr_name): Check that type has linkage before checking if it is
17216 (types_same_for_odr): Likewise.
17217 (odr_name_hasher::equal): Likewise.
17218 (odr_subtypes_equivalent_p): Likewise.
17219 (warn_types_mismatch): Likewise.
17220 (get_odr_type): Likewise.
17221 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
17222 * ipa-utils.h (odr_type_p): Move offline.
17223 * tree.c (need_assembler_name_p): Fix handling of types
17225 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
17227 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17229 * timevar.c (timevar_enable): Delete in favor of...
17230 (g_timer): New global.
17231 (struct timevar_def): Move to timevar.h inside class timer.
17232 (struct timevar_stack_def): Likewise.
17233 (timevars): Delete global in favor of field "m_timevars" within
17234 class timer in timevar.h
17235 (stack): Likewise, in favor of field "m_stack".
17236 (unused_stack_instances): Likewise, in favor of field
17237 "m_unused_stack_instances".
17238 (start_time): Likewise, in favor of field "m_start_time".
17239 (get_time): Eliminate check for timevar_enable.
17240 (timer::timer): New function, built from part of timevar_init.
17241 (timevar_init): Rewrite idempotency test from using
17242 "timevar_enable" bool to using dynamic allocation of "g_timer".
17243 Move rest of implementation into timer's constructor.
17244 (timevar_push_1): Rename to...
17245 (timer::push): ...this, adding "m_" prefixes to variables that
17246 are now fields of timer.
17247 (timevar_pop_1): Likewise, rename to...
17248 (timer::pop): ...this, and add "m_" prefixes.
17249 (timevar_start): Replace test for "timevar_enable" with one for
17250 "g_timer", and move bulk of implementation to...
17251 (timer::start): ...here, adding "m_" prefixes.
17252 (timevar_stop): Likewise, from here...
17253 (timer::stop): ...to here.
17254 (timevar_cond_start): Likewise, from here...
17255 (timer::cond_start): ...to here.
17256 (timevar_cond_stop): Likewise, from here...
17257 (timer::cond_stop): ...to here.
17258 (validate_phases): Rename to...
17259 (timer::validate_phases): ...this, and add "m_" prefixes. Make
17260 locals "total" and "tv" const.
17261 (timevar_print): Rename to...
17262 (timer::print): ...this, and add "m_" prefixes. Make locals
17263 "total" and "tv" const. Eliminate test for timevar_enable.
17264 * timevar.h (timevar_enable): Eliminate.
17265 (g_timer): New declaration.
17266 (timevar_push_1): Eliminate.
17267 (timevar_pop_1): Eliminate.
17268 (timevar_print): Eliminate.
17269 (class timer): New class.
17270 (timevar_push): Rewrite to use g_timer.
17271 (timevar_pop): Likewise.
17272 * toplev.c (toplev::~toplev): Likewise.
17274 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
17276 * arm-protos.h (arm_sched_autopref): Delete.
17277 (tune_params): Re-organize, use enums for flag values.
17278 (FUSE_OPS): New macro.
17279 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
17280 (ARM_PREFETCH_BENEFICIAL): Likewise.
17281 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
17282 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
17283 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
17284 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
17285 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
17286 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
17287 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
17288 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
17290 (arm_option_override, thumb2_reorg, arm_print_tune_info)
17291 (aarch_macro_fusion_pair_p): Update uses of current_tune.
17292 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
17294 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
17296 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
17299 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
17300 Sandra Loosemore <sandra@codesourcery.com>
17302 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
17304 (REG_CLASS_NAMES): Add "IJMP_REGS".
17305 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
17306 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
17307 use new "c" register constraint.
17308 * config/nios2/constraint.md (c): New register constraint
17309 corresponding to IJMP_REGS.
17311 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17313 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
17314 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
17315 define_splits): Delete, revamp, transmogrify into ...
17316 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17317 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17318 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17321 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17323 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
17324 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
17326 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17328 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
17329 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
17330 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
17331 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
17332 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
17333 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
17334 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
17335 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
17336 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
17337 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17338 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
17339 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
17340 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
17341 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
17342 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
17343 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
17344 and 30 corresponding splitters): Delete.
17346 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17348 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
17351 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17353 * combine.c (recog_for_combine_1): New function, factored out
17354 from recog_for_combine.
17355 (change_zero_ext): New function.
17356 (recog_for_combine): If recog fails, try again with the pattern
17357 modified by change_zero_ext; if that still fails, restore the
17360 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17362 * combine.c (get_undo_marker): New function.
17363 (undo_to_marker): New function, largely factored out from ...
17364 (undo_all): ... this. Adjust.
17366 2015-05-12 Richard Biener <rguenther@suse.de>
17368 PR tree-optimization/66101
17369 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
17370 fixup if we turn a loop exit edge to a fallthru edge.
17372 2015-05-12 Richard Biener <rguenther@suse.de>
17374 PR tree-optimization/37021
17375 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
17376 (SLP_TREE_TWO_OPERATORS): New define.
17377 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
17378 SLP_TREE_TWO_OPERATORS.
17379 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
17381 (vect_build_slp_tree): Adjust.
17382 (vect_analyze_slp_cost_1): Likewise.
17383 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
17384 emitting two vector stmts and mixing the results.
17386 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
17388 * call.c (print_z_candidates): Remove dead code.
17390 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17392 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
17393 and zEC12_simple_fp.
17394 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
17397 2015-05-12 Tom de Vries <tom@codesourcery.com>
17399 PR tree-optimization/66010
17400 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
17402 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
17403 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
17404 va_lists are passed, and remove corresponding handling.
17405 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
17406 do_deref argument to ifn_va_arg.
17407 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
17410 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17413 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
17414 REG before taking its REGNO.
17416 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17418 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
17419 rsp->sign_bit_copies and rsp->nonzero_bits into ...
17420 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
17421 present to get more accurate information about the number of sign bit
17422 copies and non zero bits.
17424 2015-05-12 Richard Biener <rguenther@suse.de>
17426 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
17427 do not allow unrolling.
17429 2015-05-11 Richard Henderson <rth@redhat.com>
17431 * config/i386/i386-modes.def (CCP): New.
17432 * config/i386/i386.c (put_condition_code): Handle it.
17433 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
17435 2015-05-11 Richard Henderson <rth@redhat.com>
17437 * target.def (md_asm_clobbers): Replace with...
17438 (md_asm_adjust): this.
17439 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
17440 (TARGET_MD_ASM_ADJUST): New.
17441 * tm.texi: Rebuild.
17442 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
17443 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
17444 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
17446 * cfgexpand.c (check_operand_nalternatives): Accept vector of
17447 constraints instead of lists of outputs and inputs.
17448 (expand_asm_stmt): Save and restore input_location around the
17449 body of the function. Move asm data into vectors instead of
17450 building tree lists. Generate cleanup sequences as needed,
17451 rather than waiting til the end. Use new md_asm_adjust hook.
17453 * config/vxworks.c: Include vec.h before target.h.
17454 * gimple.c: Likewise.
17455 * incpath.c: Likewise.
17456 * mode-switching.c: Likewise.
17458 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
17459 (cris_md_asm_adjust): this.
17460 (TARGET_MD_ASM_CLOBBERS): Remove.
17461 (TARGET_MD_ASM_ADJUST): New.
17462 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
17463 (ix86_md_asm_adjust): this.
17464 (TARGET_MD_ASM_CLOBBERS): Remove.
17465 (TARGET_MD_ASM_ADJUST): New.
17466 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
17467 (mn10300_md_asm_adjust): this.
17468 (TARGET_MD_ASM_CLOBBERS): Remove.
17469 (TARGET_MD_ASM_ADJUST): New.
17470 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
17471 (rs6000_md_asm_adjust): this.
17472 (TARGET_MD_ASM_CLOBBERS): Remove.
17473 (TARGET_MD_ASM_ADJUST): New.
17474 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
17475 (visium_md_asm_adjust): this.
17476 (TARGET_MD_ASM_CLOBBERS): Remove.
17477 (TARGET_MD_ASM_ADJUST): New.
17479 2015-05-11 Richard Henderson <rth@redhat.com>
17481 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
17482 if noutputs is zero.
17483 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
17485 * cfgexpand.c (expand_asm_operands): Merge into...
17486 (expand_asm_stmt): ... here.
17488 * cfgexpand.c (expand_asm_operands): Don't call
17489 resolve_asm_operand_names.
17490 * stmt.c (resolve_asm_operand_names): Clarify block comment.
17492 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
17494 * dwarf2out.c (gen_member_die): Sanity check that we access
17495 TYPE_MAIN_VARIANT for TYPE_METHODS.
17496 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
17497 checking TYPE_METHODS.
17498 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
17500 (build_distinct_type_copy): Clear TYPE_METHODS.
17501 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
17502 (verify_type): Allow TYPE_METHODS to be error_mark_node.
17503 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
17505 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
17507 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
17508 (emit_pattern_before_setloc): Likewise.
17510 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17512 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
17513 for define_peephole2s.
17514 (get_peephole2_pattern): New function.
17515 (main): Use it. Call validate_pattern.
17517 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17519 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
17520 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
17521 (Last callee saved reg is different for AVR_TINY architecture)
17523 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17525 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
17526 when looking for memory references.
17528 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17531 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
17532 via function pointers.
17534 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17536 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
17537 indirect call by forcing address into a pseudo with -fno-plt.
17538 * common.opt (flag_plt): New option.
17539 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
17540 ([-fno-plt]): Document.
17542 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
17545 * config/rs6000/option-defaults.h: Add space between string literal
17548 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
17550 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
17551 accross ARM targets.
17553 2015-05-11 Christian Bruel <christian.bruel@st.com>
17555 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
17556 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
17558 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17560 PR rtl-optimization/66076
17561 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
17562 Don't grow the heap array if it is already big enough from a
17563 previous iteration.
17565 2015-05-11 Christian Bruel <christian.bruel@st.com>
17567 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
17568 (is_called_in_ARM_mode): Remove.
17569 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
17570 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
17571 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
17572 arm_declare_function_name.
17574 2015-05-11 Christian Bruel <christian.bruel@st.com>
17576 * config/arm/arm.c (arm_option_override): Reoganized and split into :
17577 (arm_option_params_internal); New function.
17578 (arm_option_check_internal): New function.
17579 (arm_option_override_internal): New function.
17580 (thumb_code, thumb1_code): Remove.
17581 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
17582 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
17583 (thumb_code, thumb1_code): Remove.
17584 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
17586 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17588 * config/alpha/alpha.c (alpha_emit_set_const_1)
17589 (alpha_emit_set_long_const, alpha_extract_integer)
17590 (alpha_legitimate_constant_p, alpha_split_const_mov)
17591 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
17592 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17593 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
17595 * config/alpha/predicates.md (mode_mask_operand): Do not match
17597 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17598 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
17599 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
17600 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17601 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
17603 2015-05-11 Jakub Jelinek <jakub@redhat.com>
17606 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
17607 default_binds_local_p_2.
17608 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
17609 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
17611 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17613 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
17615 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17617 Patch by Richard Biener
17618 * coverage.c (coverage_obj_init): Delay building of type variant
17619 until the type is finished.
17621 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17623 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
17624 mismatch between C and C++ type; compoare correctly ARG_TYPES
17625 for non-prototypes and output correctly parameter index for METHOD_TYPE.
17626 (odr_types_equivalent_p): Fix wording of warning about attributes;
17627 it is OK to match prototype and non-prototype.
17629 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17631 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
17632 TYPE_ARG_TYPES list.
17633 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
17634 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
17636 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17638 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
17639 * tree.h (is_lang_specific): Constify.
17641 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
17643 PR tree-optimization/64454
17644 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
17647 2015-05-08 Jason Merrill <jason@redhat.com>
17649 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
17650 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
17651 config/darwin.h, config/darwin9.h, config/elfos.h,
17652 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
17653 config/microblaze/microblaze.h, config/mips/mips.h,
17654 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
17655 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
17656 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
17657 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
17658 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
17659 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
17660 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
17661 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
17662 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
17663 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
17664 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
17665 between string literal and macro name.
17667 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17669 * jump.c: Change argument types to rtx_insn *.
17672 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17674 * lra-constraints.c: Change argument type to rtx_insn *.
17676 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17678 * df-problems.c: Change argument type to rtx_insn *.
17680 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17682 * combine.c: Change argument type to rtx_insn *.
17684 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17687 * rtlanal.c: Change argument type to rtx_insn *.
17689 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17691 * sched-deps.c: Change argument types to rtx_insn *.
17692 * sched-int.h: Adjust.
17694 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17696 * dwarf2cfi.c: Change argument type to rtx_insn *.
17698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17700 * ira.c (decrease_live_ranges_number): Changetype of local
17701 variable to rtx_insn *.
17702 * recog.c: Change argument types to rtx_insn *.
17705 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17707 * reorg.c: Change argument types to rtx_insn *.
17709 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17711 * ira-color.c: Change argument types to rtx_insn *.
17712 * lra-eliminations.c: Likewise.
17715 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17717 * gcse.c: Change argument types to rtx_insn *.
17719 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17721 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
17723 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17725 * emit-rtl.c (emit_debug_insn_before): Change argument type to
17729 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17731 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
17734 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17736 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
17739 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17741 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
17744 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17746 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
17749 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17751 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
17755 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17757 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
17761 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17763 * except.c (can_nonlocal_goto): Change type of argument to
17767 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17769 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
17772 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17774 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
17775 * cfgrtl.c (can_delete_label_p): Adjust.
17778 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17780 * reorg.c (stop_search_p): Change argument to rtx_insn *.
17782 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17784 * except.c (make_reg_eh_region_note): Change argument to
17786 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
17787 * except.h: Adjust.
17789 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17791 * mode-switching.c (commit_mode_sets): Change type of local
17792 variable from rtx to rtx_insn *.
17794 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
17796 * doc/install.texi (--enable-languages): Add missing jit and lto info.
17797 Add ^ to grep command.
17798 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
17799 arg to last gimple_simplify declaration. Add missing gimple_build
17800 declaration for built-in function case with four tree args.
17802 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17803 Szabolcs Nagy <szabolcs.nagy@arm.com>
17805 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
17806 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
17807 (GNU_USER_DYNAMIC_LINKERN32): Update.
17809 2015-05-08 Richard Biener <rguenther@suse.de>
17811 PR tree-optimization/66036
17812 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17813 Handle strided group loads.
17814 (vect_verify_datarefs_alignment): Likewise.
17815 (vect_enhance_data_refs_alignment): Likewise.
17816 (vect_analyze_group_access): Likewise.
17817 (vect_analyze_data_ref_access): Likewise.
17818 (vect_analyze_data_ref_accesses): Likewise.
17819 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
17820 (vectorizable_load): Likewise.
17822 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
17824 * config/rs6000/rs6000.md: Require operand inequality in one
17827 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
17828 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17830 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
17832 * config/rx/rx.md (movdi, movdf): Likewise.
17833 Likewise for define_peephole2s.
17835 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17837 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
17838 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
17839 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
17840 vtst_u64): Rewrite using gcc vector extensions.
17842 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17844 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
17845 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
17847 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17849 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
17851 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17853 * config/glibc-stdint.h (OPTION_MUSL): Define.
17854 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
17855 Change the definition based on OPTION_MUSL for 64 bit targets.
17856 * config/linux.h (OPTION_MUSL): Redefine.
17857 * config/alpha/linux.h (OPTION_MUSL): Redefine.
17858 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
17859 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
17861 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17862 Szabolcs Nagy <szabolcs.nagy@arm.com>
17864 * config.gcc (LIBC_MUSL): New tm_defines macro.
17865 * config/linux.h (OPTION_MUSL): Define.
17866 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
17867 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
17868 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17869 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17870 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17871 * config/linux.opt (mmusl): New option.
17872 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
17873 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17874 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17875 * configure: Regenerate.
17877 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
17878 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17881 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
17882 * config/i386/knetbsd-gnu64.h: New file.
17884 2015-05-08 Marek Polacek <polacek@redhat.com>
17887 * doc/invoke.texi: Document -Woverride-init-side-effects.
17889 2015-05-07 Marek Polacek <polacek@redhat.com>
17892 * doc/invoke.texi: Document -Wshift-negative-value.
17894 2015-05-06 Aditya Kumar <hiraditya@msn.com>
17896 * gcov-tool.c (do_merge): Refactore to remove int ret.
17897 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
17898 !type == FUNC to type != FUNC.
17899 * reload.h (struct target_reload): Changee to type of
17900 x_spill_indirect_levels from bool to unsigned char.
17902 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
17904 * rtl.h (always_void_p): New function.
17905 * gengenrtl.c (always_void_p): Likewise.
17906 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
17907 with code foo are always VOIDmode.
17908 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
17909 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
17910 compare-elim.c, config/aarch64/aarch64.c,
17911 config/aarch64/aarch64.md, config/alpha/alpha.c,
17912 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
17913 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
17914 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
17915 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17916 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
17917 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
17918 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
17919 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
17920 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
17921 config/ia64/vect.md, config/iq2000/iq2000.c,
17922 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
17923 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
17924 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
17925 config/mep/mep.c, config/microblaze/microblaze.c,
17926 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
17927 config/mn10300/mn10300.c, config/msp430/msp430.c,
17928 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
17929 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
17930 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
17931 config/rs6000/altivec.md, config/rs6000/rs6000.c,
17932 config/rs6000/rs6000.md, config/rs6000/vector.md,
17933 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
17934 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
17935 config/sh/sh.md, config/sh/sh_treg_combine.cc,
17936 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
17937 config/spu/spu.md, config/stormy16/stormy16.c,
17938 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
17939 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
17940 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
17941 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
17942 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
17943 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
17944 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
17945 var-tracking.c: Update calls accordingly.
17947 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17950 PR middle-end/54303
17951 * varasm.c (function_mergeable_rodata_prefix): New function.
17952 (mergeable_string_section): Use it.
17953 (mergeable_constant_section): Use it.
17955 2015-05-07 Jeff Law <law@redhat.com>
17958 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17959 simplifier to narrow arithmetic.
17960 * generic-match-head.c: (types_match, single_use): New functions.
17961 * gimple-match-head.c: (types_match, single_use): New functions.
17963 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17965 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
17968 2015-05-07 Richard Biener <rguenther@suse.de>
17970 PR tree-optimization/66002
17971 * passes.def: Schedule another pass_merge_phi after ifcombine, right
17974 2015-05-07 Marek Polacek <polacek@redhat.com>
17975 Martin Uecker <uecker@eecs.berkeley.edu>
17977 * doc/invoke.texi: Document -fsanitize=bounds-strict.
17978 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
17979 into SANITIZE_NONDEFAULT.
17980 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
17982 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
17985 * config/alpha/alpha.c (alpha_override_options_after_change): New.
17986 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
17987 (alpha_override_options): Move align_loops, align_jumps and
17988 align_functions handling into alpha_override_options_after_change.
17990 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
17991 Chris Jones <chrisj@nvidia.com>
17992 Joshua Conner <jconner@nvidia.com>
17994 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
17995 linking of crtfastmath.o.
17996 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
17998 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18000 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
18001 (cstore<mode>4_unsigned_imm): New expander.
18002 (cstore<mode>4): Remove empty constraint strings. Use the new
18005 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
18008 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
18011 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18013 * config/aarch64/geniterators.sh: Use standard BRE in sed.
18015 2015-05-06 Alan Modra <amodra@gmail.com>
18018 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
18019 (UNSPEC_NOP): Define.
18020 (reload_vsx_from_gpr<mode>): Add missing DONE.
18021 (reload_gpr_from_vsx<mode>): Likewise.
18022 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
18023 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
18025 2015-05-06 Christian Bruel <christian.bruel@st.com>
18028 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
18029 align_jumps, align_functions into aarch64_override_options_after_change.
18031 2015-05-06 Richard Biener <rguenther@suse.de>
18033 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
18034 vect_transform_slp_perm_load to check if we support a permutation
18035 for basic-block vectorization.
18037 2015-05-06 Nick Clifton <nickc@redhat.com>
18039 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
18040 used, even if it is not being used as a frame pointer.
18042 2015-05-05 Jason Merrill <jason@redhat.com>
18044 * dwarf2out.c (gen_member_die): Don't emit anything for an
18045 anonymous class constructor.
18047 2015-05-05 David Malcolm <dmalcolm@redhat.com>
18049 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
18050 that it reflects the block structure.
18051 (afdo_propagate_edge): Likewise.
18052 (afdo_calculate_branch_prob): Likewise.
18053 (afdo_annotate_cfg): Likewise.
18054 * cfgcleanup.c (equal_different_set_p): Likewise.
18055 (try_crossjump_to_edge): Likewise.
18056 * cgraph.c (cgraph_node::verify_node): Likewise.
18057 * cgraphunit.c (expand_all_functions): Likewise.
18058 * config/i386/i386.c (ix86_expand_copysign): Likewise.
18059 (exact_dependency_1): Likewise.
18060 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
18061 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
18062 * gensupport.c (process_define_subst): Likewise.
18063 * lto-wrapper.c (merge_and_complain): Likewise.
18064 * tree-if-conv.c (if_convertible_bb_p): Likewise.
18065 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
18066 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
18067 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18068 * tree-vect-loop.c (vectorizable_reduction): Likewise.
18069 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
18070 * tree-vect-stmts.c (vectorizable_shift): Likewise.
18071 * tree-vrp.c (vrp_finalize): Likewise.
18072 * tree.c (variably_modified_type_p): Likewise.
18074 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
18076 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
18077 on darwin12 and later.
18078 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
18079 file to pass -rdynamic on darwin12 and later.
18080 * config/darwin.opt (rdynamic): Add.
18082 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18084 * doc/extend.texi (C Extensions): Update menu for moved Variable
18085 Attributes and Type Attributes sections.
18087 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18090 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
18091 if rep_8byte stringop strategy was specified for 32-bit target.
18093 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
18096 * config/i386/i386.md (vector convert to float spltiter): Check for
18097 xmm16+, when splitting scalar float conversion.
18098 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
18100 2015-05-05 Nick Clifton <nickc@redhat.com>
18102 * config/msp430/msp430-opts.h (enum msp430_regions): New.
18103 * config/msp430/msp430.c (msp430_override_options): Complain if
18104 -mcode-region or -mdata-region is used on a non MSP430X.
18105 (msp430_section_attr): New function. Checks lower, upper and
18107 (msp430_attribute_table): Add lower, upper and either.
18108 (gen_prefix): New function. Generates a prefix for a section
18110 (msp430_select_section): New function - handles the choice of
18111 section for an object. Takes into account memory region
18112 attributes and options.
18113 (msp430_function_section): Use gen_prefix.
18114 (TARGET_SECTION_TYPE_FLAGS): Define.
18115 (msp430_section_type_flags): New function.
18116 (TARGET_ASM_UNIQUE_SECTION): Define.
18117 (msp430_unique_section): New function.
18118 (msp430_output_aligned_decl_common): New function.
18119 (msp430_do_not_relax_short_jumps): New function.
18120 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
18122 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18123 * config/msp430/msp430-protos.h
18124 (msp430_do_not_relax_short_jumps): New prototype.
18125 (msp430_output_aligned_decl_common): New prototype.
18126 * config/msp430/msp430.md (length): New attribute.
18127 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
18128 then use a long code sequence for short jumps.
18129 * config/msp430/msp430.opt (mcode-region): New.
18130 (mdata-region): New.
18131 * doc/invoke.texi: Document new options.
18132 * doc/extend.texi: Document new attributes.
18134 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18136 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
18137 (tune_params): Add field branch_costs.
18138 (aarch64_branch_cost): Declare.
18139 * gcc/config/aarch64.c (generic_branch_cost): New.
18140 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
18141 (cortexa53_tunings): Likewise.
18142 (cortexa57_tunings): Likewise.
18143 (thunderx_tunings): Likewise.
18144 (xgene1_tunings): Likewise.
18145 (aarch64_branch_cost): Define.
18146 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
18148 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18150 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
18151 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
18152 * config/i386/i386.md: Ditto.
18153 * config/i386/winnt.c: Ditto.
18155 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18157 * doc/extend.texi (__atomic Builtins): Move implementation details
18158 to the end of the description, rewrite opening paragraphs, state
18159 difference with __sync builtins, state C11/C++11 assumptions,
18160 weaken itemized descriptions, add explanation of memory model
18161 behaviour, expand description of compare-exchange, simplify text.
18163 2015-05-05 Renlin Li <renlin.li@arm.com>
18165 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
18167 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
18169 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
18170 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18171 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
18172 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18173 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
18174 * configure: Regenerate.
18175 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
18176 * doc/install.texi (aarch64*-*-*): Document new
18177 --enable-fix-cortex-a53-843419 option.
18178 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
18179 and -mno-fix-cortex-a53-843419 options.
18181 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18184 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
18186 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
18188 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
18189 fix overactive TYPE_MIN_VALUE check and add FIXME for type
18190 compatibility problems.
18192 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18194 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
18196 (cbranchsi4_reg): New.
18197 * config/microblaze/microblaze.c
18198 (microblaze_expand_conditional_branch_reg): New.
18199 * config/microblaze/microblaze-protos.h
18200 (microblaze_expand_conditional_branch_reg): New prototype.
18202 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18204 * config/microblaze/microblaze.md (peephole2): New.
18206 2015-05-04 Jeff Law <law@redhat.com>
18209 2015-05-04 Jeff Law <law@redhat.com>
18211 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18212 simplifier to narrow arithmetic.
18213 * generic-match-head.c: (types_match, single_use): New functions.
18214 * gimple-match-head.c: (types_match, single_use): New functions.
18216 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
18219 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
18220 (split_branches): Likewise.
18222 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
18224 * common.opt (fdelete-null-pointer-checks): Init to -1.
18225 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
18226 override flag_delete_null_pointer_checks default.
18227 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
18228 behavior re address zero. Better document target-specific behavior.
18229 (-fisolate-errneous-paths-dereference): Mention relationship to
18230 -fdelete-null-pointer-checks.
18232 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18234 PR tree-optimization/65984
18235 * ubsan.c: Include tree-cfg.h.
18236 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
18237 stmt_could_throw_p test, rename can_throw variable to ends_bb.
18239 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18241 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
18242 to CONST_DOUBLE_P predicate.
18243 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
18244 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
18245 allow only operands that satisfy standard_sse_constant_p predicate.
18246 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
18247 to CONST_DOUBLE_P predicate.
18249 2015-05-04 Jeff Law <law@redhat.com>
18251 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18252 simplifier to narrow arithmetic.
18253 * generic-match-head.c: (types_match, single_use): New functions.
18254 * gimple-match-head.c: (types_match, single_use): New functions.
18256 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
18258 * config/arm/arm.c: Restore bootstrap.
18260 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18262 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
18263 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
18264 as CONST_WIDE_INT, not CONST_DOUBLE.
18265 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
18266 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
18267 (ix86_find_base_term): Do not check for CONST_DOUBLE.
18268 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
18269 (ix86_build_signbit_mask): Rewrite using wide ints.
18270 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
18271 (ix86_rtx_costs): Handle CONST_WIDE_INT.
18272 (find_constant): Ditto.
18273 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
18274 using gen_int_mode.
18275 * config/i386/predicates.md (x86_64_immediate_operand)
18276 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18277 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
18278 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18279 (const0_operand): Also match const_wide_int.
18280 (constm1_operand): Ditto.
18281 (const1_operand): Ditto.
18283 2015-05-04 Richard Biener <rguenther@suse.de>
18285 PR tree-optimization/65965
18286 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
18287 store groups at gaps.
18289 2015-05-04 Richard Biener <rguenther@suse.de>
18291 PR tree-optimization/65935
18292 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
18293 then make sure to apply that swapping to the IL.
18295 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18297 * Makefile.in (PATCHLEVEL_c): New variable.
18298 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
18299 expand the same way as if DEVPHASE_c was non-empty.
18301 2015-05-04 Kai Tietz <ktietz@redhat.com>
18304 * lto-wrapper.c (run_gcc): Open filename
18307 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
18309 * doc/extend.texi (Variable Attributes, Type Attributes): Move
18310 sections up in file, to immediately after the Function Attributes
18313 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
18315 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
18317 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18319 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
18320 (insert_partition_copy_on_edge): Adjust.
18321 (insert_rtx_to_part_on_edge): Likewise.
18322 (insert_part_to_rtx_on_edge): Likewise.
18324 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18326 * function.c (set_return_jump_label): Change type of argument to
18328 * function.h (set_return_jump_label): Adjust.
18330 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18332 * reload.h (struct reg_equivs_t): Change type of init to
18334 * ira.c (fix_reg_equiv_init): Adjust.
18335 * reload1.c (eliminate_regs_1): Likewise.
18336 (init_eliminable_invariants): Likewise.
18338 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18340 * cselib.c (fp_setter_insn): Take a rtx_insn *.
18341 * cselib.h (fp_setter_insn): Adjust.
18343 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18345 * recog.c (struct validate_replace_src_data): Change type of
18346 insn field to rtx_insn *.
18347 (validate_replace_src_group): Change type of argument to rtx_insn *.
18348 * recog.h (validate_replace_src_group): Adjust.
18350 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18352 * haifa-sched.c: Change the type of some variables to rtx_insn *.
18353 * sched-deps.c: Likewise.
18354 * sched-int.h: Likewise.
18355 * sched-rgn.c: Likewise.
18356 * sel-sched.c: Likewise.
18358 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18361 * config/i386/i386.c: Change the type of some arguments to
18363 * config/arm/arm.c: Likewise.
18365 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18367 * lra-constraints.c: Change type of some arguments to rtx_insn *.
18369 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18371 * regcprop.c (kill_autoinc_value): Change type of argument to
18374 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18376 * genrecog.c (print_subroutine): Adjust.
18377 * recog.c (get_bool_attr_mask_uncached): Likewise.
18378 * recog.h (struct recog_data_d): Change the type of insn to
18381 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18383 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
18385 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18387 * df-problems.c (df_set_note): Change type of argument to
18390 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18392 * builtins.c (expand_builtin_trap): Change type of local
18393 variable to rtx_insn *.
18394 (add_sched_insns_for_speculation): Likewise.
18395 (ix86_emit_save_regs): Likewise.
18396 (get_scratch_register_on_entry): Likewise.
18397 (ix86_emit_restore_reg_using_pop): Likewise.
18398 (ix86_emit_leave): Likewise.
18399 (ix86_emit_restore_regs_using_mov): Likewise.
18400 (ix86_expand_epilogue): Likewise.
18402 (rl78_alloc_physical_registers_umul): Likewise.
18403 * cselib.c (discard_useless_locs): Likewise.
18404 (cselib_invalidate_regno): Likewise.
18405 (cselib_invalidate_mem): Likewise.
18406 * function.c (expand_function_start): Likewise.
18407 (emit_use_return_register_into_block): Likewise.
18408 * gcse.c: Likewise.
18409 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
18410 * ifcvt.c (noce_get_alt_condition): Likewise.
18411 * loop-doloop.c (doloop_condition_get): Likewise.
18412 * lra-constraints.c (inherit_in_ebb): Likewise.
18413 * modulo-sched.c (sms_schedule_by_order): Likewise.
18414 * recog.c (next_insn_tests_no_inequality): Likewise.
18415 * reorg.c (emit_delay_sequence): Likewise.
18416 (update_reg_dead_notes): Likewise.
18417 (fix_reg_dead_note): Likewise.
18418 (fill_slots_from_thread): Likewise.
18419 (delete_computation): Likewise.
18421 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
18423 * doc/extend.texi (Variable Attributes): Add menu and proper
18424 @nodes to subsections. Move Microsoft Windows attributes to
18425 their own subsection.
18426 (Type Attributes): Reorganize introduction to remove duplicate
18427 list of attributes. Add menu and proper @nodes to subsections.
18428 Alphabetize the main table of common attributes.
18430 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
18432 * match.pd: New simplification patterns.
18433 (x + (x & 1)) -> ((x + 1) & ~1)
18434 (x & ~(x & y)) -> ((x & ~y))
18435 (x | ~(x | y)) -> ((x | ~y))
18437 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18439 * target.def (attribute_table): Mention that struct attribute_spec
18440 is defined in tree-core.h rather than tree.h
18441 * doc/tm.texi: Regenerate.
18443 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
18445 * genrecog.c (test): Rename to rtx_test. Update rest of file
18448 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
18450 PR translation/65959
18451 * params.h (DEFPARAM): Rename msgid to nocmsgid.
18453 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18455 * gcc/config/aarch64/aarch64-protos.h (tune_params):
18456 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
18457 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
18458 Return value depending on target.
18459 (generic_tunings): Initialize new target settings.
18460 (cortexa53_tunings): Likewise.
18461 (cortexa57_tunings): Likewise.
18462 (thunderx_tunings): Likewise.
18463 (xgene1_tunings): Likewise.
18465 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18467 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
18468 Make Cortex-A53 shift costs more accurate.
18470 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18472 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
18475 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18477 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
18478 Calculate cost of op0 and op1 in PLUS and MINUS cases.
18480 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18482 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18483 Add cost of op0 in the compare-with-fpzero case.
18485 2015-04-30 David Malcolm <dmalcolm@redhat.com>
18487 * builtins.c (fold_builtin_1): Remove spurious second
18489 * cgraph.h (symtab_node::get_availability): Likewise.
18490 * opts.c (common_handle_option): Remove spurious second semicolon.
18491 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18492 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18494 2015-04-30 Caroline Tice <cmtice@google.com>
18496 PR gcov-profile/65929
18497 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
18498 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
18499 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
18500 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
18501 * doc/tm.texi: Regenerate.
18502 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
18503 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
18504 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
18505 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
18507 2015-04-30 Marek Polacek <polacek@redhat.com>
18509 * varasm.c (handle_cache_entry): Fix logic.
18511 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18513 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
18514 (*extrsi5_insn_uxtw_alt): Likewise.
18515 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
18516 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
18519 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18521 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
18524 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18526 * config/aarch64/aarch64.md
18527 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
18528 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
18529 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
18530 appropriately. Handle alternative EON form.
18532 2015-04-30 Renlin Li <renlin.li@arm.com>
18534 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
18535 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
18537 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18540 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
18541 -fstrict-aliasing boundaries.
18543 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18545 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
18546 and [SU]MNEGL patterns.
18548 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18550 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
18551 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
18552 combined arithmetic-shift ops. Properly handle all shift and extend
18553 operations that can occur in combination with PLUS/MINUS.
18554 Rename maybe_fma to compound_p.
18555 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
18556 arithmetic and shift operations.
18558 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
18561 rather than arith_shift cost when costing ADD/MINUS of an
18564 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18567 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
18570 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
18572 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
18573 are for the same position.
18575 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
18577 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
18579 (vectorize_loops): Use it.
18581 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18583 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
18584 for aggregate types.
18585 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
18586 type to be non_ODR.
18587 * tree.c (need_assembler_name_p): Compute mangled name for
18588 non-fundamental types and integer types.
18590 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
18592 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
18594 * expr.c (expand_expr_real_2): Likewise.
18596 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18598 * tree.c (build_common_builtin_nodes): Do not build
18599 __builtin_alloca_with_align as equivalent of library alloca.
18601 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18603 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
18604 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
18606 * tree.c: Include print-tree.h and ipa-utils.h
18607 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
18608 (free_lang_data_in_cgraph): Call verify_type.
18609 (verify_type_variant): New function.
18610 (verify_type): New function.
18611 * tree.h (verify_type): Declare.
18613 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
18615 * config/mips/mips-cpus.def: (mips4): Change default processor
18616 from PROCESSOR_R8000 to PROCESSOR_R10000.
18618 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
18620 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
18621 la/jalr instead of jal.
18623 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
18626 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
18627 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
18628 (setcc+movzbl peephole2): Check also clobbered reg.
18629 (setcc+andl peephole2): Ditto.
18631 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18634 * config/nvptx/mkoffload.c (target_ilp32): New variable.
18635 (main): Set it depending on "-foffload-abi=[...]".
18636 (compile_native, main): Use it to pass "-m32" or "-m64" to the
18639 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18642 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
18643 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
18644 Flip lane index back at assembly time for bigendian.
18646 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18648 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
18649 * gimplify.c (gimplify_omp_workshare): Use it.
18651 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18653 * Makefile.in (build/genrecog.o): Depend on inchash.h.
18654 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
18656 * genrecog.c: Rewrite most of the code except for the third page.
18658 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18660 * inchash.h, inchash.c: Include bconfig.h for build objects.
18661 * Makefile.in (build/inchash.o): New rule.
18663 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
18666 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
18667 number in type attribute expression.
18669 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18671 * loop-iv.c (canon_condition): Generalize to all types of integer
18674 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
18676 * gimple-walk.c: Prune duplicate or unneeded includes.
18677 (walk_gimple_asm): Only call parse_input_constraint or
18678 parse_output_constraint if their findings are used.
18679 Honour parse_input_constraint and parse_output_constraint
18682 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18684 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
18686 2015-04-29 Tom de Vries <tom@codesourcery.com>
18688 PR tree-optimization/65893
18689 * passes.def (pass_all_optimizations): Move pass_stdarg to after
18692 2015-04-29 Richard Biener <rguenther@suse.de>
18694 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18695 compute GROUP_SIZE for basic-block SLP.
18696 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
18697 take into account gaps.
18698 (vect_get_mask_element): Properly reject references to previous
18700 (vect_transform_slp_perm_load): Likewise.
18702 2015-04-29 Christian Bruel <christian.bruel@st.com>
18705 * config/i386/i386.c (ix86_default_align): New function.
18706 (ix86_override_options_after_change): Call ix86_default_align.
18707 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
18708 (ix86_override_options_after_change): New function.
18710 2015-04-28 Jeff Law <law@redhat.com>
18712 * tree-ssa-dom.c (record_equality); Fix comment typos.
18714 2015-04-28 Tom de Vries <tom@codesourcery.com>
18716 PR tree-optimization/65887
18717 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
18719 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
18721 * doc/extend.texi (Declaring Attributes of Functions): Split into
18722 subsections by target. Alphabetize the table of common attributes.
18723 Rewrite some of the introductory text to reflect the new structure.
18724 Update some cross-references to point to the new subsections.
18725 (Attribute Syntax): Put paragraph about "__" naming here. Remove
18726 duplicate copies in the discussion of function, label, and type
18729 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
18732 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
18734 2015-04-28 Jason Merrill <jason@redhat.com>
18737 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
18738 (finalize_type_size): Respect TYPE_USER_ALIGN.
18739 (layout_type) [ARRAY_TYPE]: Likewise.
18741 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
18743 * config/arm/arm.md (*arm_movt): Fix type attribute.
18744 (*cmpsi_shiftsi): Likewise.
18745 (*cmpsi_shiftsi_swp): Likewise.
18746 (*movsicc_insn): Likewise.
18747 (*cond_move): Likewise.
18748 (*if_plus_move): Likewise.
18749 (*if_move_plus): Likewise.
18750 (*if_arith_move): Likewise.
18751 (*if_move_arith): Likewise.
18752 (*if_shift_move): Likewise.
18753 (*if_move_shift): Likewise.
18754 (*arm_movtas_ze): Likewise.
18755 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
18756 redundancy and type attribute.
18757 (*thumb2_movsi_insn): Fix type attribute.
18758 (*thumb2_addsi_short): Likewise.
18759 (thumb2_addsi3_compare0): Likewise.
18760 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
18761 attributes accordingly.
18763 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18766 * function.c (pad_to_arg_alignment): Add parentheses.
18768 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
18770 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
18771 libgcc/config/frv/elf-lib.h.
18773 2015-04-28 Tom de Vries <tom@codesourcery.com>
18775 * tree-call-cdce.c: Fix example in header comment.
18777 2015-04-28 Richard Biener <rguenther@suse.de>
18779 PR tree-optimization/62283
18780 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
18781 fails fatally and we are vectorizing a basic-block simply
18782 cause the child to be constructed piecewise.
18783 (vect_analyze_slp_cost_1): Adjust.
18784 (vect_detect_hybrid_slp_stmts): Likewise.
18785 (vect_bb_slp_scalar_cost): Likewise.
18786 (vect_get_constant_vectors): For piecewise constructed
18787 constants place them after the last def.
18788 (vect_get_slp_defs): Adjust.
18789 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
18790 externals for basic-block vectorization.
18792 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18795 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
18797 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
18798 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
18799 (AARCH64_TUNE_FMA_STEERING): Likewise.
18800 * config/aarch64/aarch64-cores.def: Set
18801 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
18802 FMUL/FMADD instructions.
18803 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
18804 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
18805 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
18806 * config/aarch64/cortex-a57-fma-steering.h: New file.
18807 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18809 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
18811 * gensupport.c (std_preds): Add missing codes to address_operand entry.
18813 2015-04-28 Richard Biener <rguenther@suse.de>
18815 PR tree-optimization/65851
18816 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
18817 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
18818 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
18819 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
18820 (ccp_visit_phi_node): Adjust.
18821 (evaluate_stmt): For simplifications to SSA names return its
18822 lattice value if that isn't VARYING. Return immediately when
18823 simplified to a constant.
18824 (visit_assignment): Adjust.
18825 (ccp_visit_stmt): Likewise.
18827 2015-04-28 Tom de Vries <tom@codesourcery.com>
18829 PR tree-optimization/65818
18830 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
18833 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18835 * calls.c (save_fixed_argument_area): Don't check
18836 ARGS_GROW_DOWNWARD with the preprocessor.
18837 (restore_fixed_argument_area): Likewise.
18838 (mem_overlaps_already_clobbered_arg_p): Likewise.
18839 (check_sibcall_argument_overlap): Likewise.
18840 (expand_call): Likewise.
18841 (emit_library_call_value_1): Likewise.
18842 (store_one_arg): Likewise.
18843 * function.c (assign_parms): Likewise.
18844 (locate_and_pad_parm): Likewise.
18845 (pad_to_arg_alignment): Likewise.
18846 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18848 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18850 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
18851 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
18852 * calls.c (save_fixed_argument_area): Don't chekc if
18853 ARGS_GROW_DOWNWARD is defined.
18854 (restore_fixed_argument_area): Likewise.
18855 (mem_overlaps_already_clobbered_arg_p): Likewise.
18856 (check_sibcall_argument_overlap): Likewise.
18857 (expand_call): Likewise.
18858 (emit_library_call_value_1): Likewise.
18859 (store_one_arg): Likewise.
18860 * function.c (assign_parms): Likewise.
18861 (locate_and_pad_parm): Likewise.
18862 (pad_to_arg_alignment): Likewise.
18863 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18865 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18867 * defaults.h (gen_epilogue): New function.
18868 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
18870 * cfgrtl.c (cfg_layout_finalize): Likewise.
18871 * df-scan.c: Likewise.
18872 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18873 (reposition_prologue_and_epilogue_notes): Likewise.
18874 * reorg.c (find_end_label): Likewise.
18875 * toplev.c: Likewise.
18877 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18879 * bb-reorder.c (HAVE_return): Don't check if its undefined.
18880 * defaults.h (gen_simple_return): New function.
18881 (gen_simple_return): Likewise.
18882 (HAVE_return): Add default definition to false.
18883 (HAVE_simple_return): Likewise.
18884 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
18885 HAVE_return and HAVE_simple_return are defined.
18886 * function.c (gen_return_pattern): Likewise.
18887 (convert_jumps_to_returns): Likewise.
18888 (thread_prologue_and_epilogue_insns): Likewise.
18889 * reorg.c (find_end_label): Likewise.
18890 (dbr_schedule): Likewise.
18891 * shrink-wrap.c: Likewise.
18892 * shrink-wrap.h: Likewise.
18894 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18896 * defaults.h (EPILOGUE_USES): Add default definition of false.
18897 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
18898 * resource.c (init_resource_info): Likewise.
18900 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18902 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
18904 * dwarf2out.c (field_byte_offset): REmove check if
18905 PCC_BITFIELD_TYPE_MATTERS is defined.
18906 * stor-layout.c (layout_decl): Likewise.
18907 (update_alignment_for_field): Likewise.
18908 (place_field): Likewise.
18910 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18912 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
18914 * regrename.c (check_new_reg_p): Remove check if
18915 HARD_REGNO_RENAME_OK is defined.
18916 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
18918 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18920 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
18921 * cse.c (fold_rtx): Likewise.
18922 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
18923 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
18924 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
18925 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
18926 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
18927 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
18928 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
18929 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
18930 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
18931 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
18933 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
18934 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
18935 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
18936 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
18937 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
18938 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
18939 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
18940 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
18941 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
18942 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
18943 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
18944 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
18945 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
18946 * doc/tm.texi: Regenerate.
18947 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
18948 either true or false.
18950 2015-04-27 Jeff Law <law@redhat.com>
18952 PR tree-optimization/65217
18953 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
18954 of them has a single use, make sure it is the LHS of the implied
18957 2015-04-28 Alan Modra <amodra@gmail.com>
18960 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
18961 (offsettable_ok_by_alignment): Use minimum of decl and toc
18962 pointer alignment. Replace dead code with assertion.
18963 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
18964 case if size exceeds toc pointer alignment.
18965 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
18966 (rs6000_emit_move): Likewise.
18967 * configure.ac: Add linker toc pointer alignment check.
18968 * configure: Regenerate.
18969 * config.in: Regenerate.
18971 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
18973 * config.gcc: Add h8300-*-linux.
18974 * config/h8300/linux.h: New.
18975 * config/h8300/t-linux: New.
18976 * config/h8300/h8300.c (h8300_option_override): Normal mode
18977 is not supported for h8300-*-linux.
18978 (h8300_file_start): Target priority change.
18979 (get_shift_alg): Likewise.
18980 (h8300_shift_need_scratch_p): Likewise.
18981 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18982 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
18984 2015-04-27 Caroline Tice <cmtice@google.com>
18986 * final.c (final_scan_insn): Output cold_function_name as function
18988 * varasm.c (cold_function_name): Make global.
18989 (assemble_start_function): Re-set cold_function_name.
18990 (assemble_end_function): Output cold partition size.
18991 * varasm.h (cold_function_name): Declare global.
18993 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
18995 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
18996 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
18998 (*movxi_internal_avx512f): Ditto.
18999 (define_split): Check for xmm16+, when splitting scalar float_extend.
19000 (*extendsfdf2_mixed): Use "v" constraint.
19001 (define_split): Check for xmm16+, when splitting scalar float_truncate.
19002 (*truncdfsf_fast_sse): Use "v" constraint.
19003 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
19004 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
19005 (define_peephole2): Check for xmm16+, when converting scalar
19007 (define_peephole2): Check for xmm16+, when converting scalar
19009 (*fop_<mode>_comm_mixed): Use "v" constraint.
19010 (*fop_<mode>_comm_sse): Ditto.
19011 (*fop_<mode>_1_mixed): Ditto.
19012 (*sqrt<mode>2_sse): Ditto.
19013 (*ieee_s<ieee_maxmin><mode>3): Ditto.
19015 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19017 * combine.c (simplify_if_then_else): Use std::swap instead
19018 of manually swapping.
19019 (known_cond): Likewise.
19020 (simplify_comparison): Likewise.
19022 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
19025 * config/rs6000/htm.md: Remove all define_expands.
19026 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
19027 UNSPECV_HTM_TABORTWCI): Remove.
19028 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
19029 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
19030 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
19031 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
19032 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
19033 tabortwci_internal): Remove define_insns.
19034 (tabort<wd>c, tabort<wd>ci): New define_insns.
19035 (tabort): Use gpc_reg_operand.
19036 (tcheck): Remove operand.
19037 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
19038 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
19040 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
19041 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
19042 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
19043 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
19044 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
19045 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
19046 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
19047 (tcheck): Remove builtin argument.
19048 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
19050 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
19051 tabortdc and tabortdci builtins when not in 64-bit mode.
19052 Modify code to handle the loss of the HTM define_expands.
19053 Emit code to copy the CR register to TARGET.
19054 (htm_init_builtins): Modify code to handle the loss of the HTM
19056 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
19057 (RS6000_BTC_64BIT): Likewise.
19058 (RS6000_BTC_CR): New macro.
19059 * doc/extend.texi: Update documentation for htm builtins.
19061 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19063 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
19064 of manually swapping.
19065 (simplify_associative_operation): Likewise.
19066 (simplify_binary_operation): Likewise.
19067 (simplify_plus_minus): Likewise.
19068 (simplify_relational_operation): Likewise.
19069 (simplify_ternary_operation): Likewise.
19071 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19073 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
19074 (xs_hi_nonmemory_operand): Remove error.
19075 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
19076 general_operand rather than xs_hi_general_operand.
19078 2015-04-27 Richard Biener <rguenther@suse.de>
19080 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
19081 (record_equivalences_from_stmt): Valueize rhs.
19082 (record_equality): Canonicalize x and y order via
19083 tree_swap_operands_p. Do not swap operands for same loop depth.
19085 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
19089 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
19090 Add hint how to use own spec file.
19092 2015-04-27 Jakub Jelinek <jakub@redhat.com>
19094 PR tree-optimization/65875
19095 * tree-vrp.c (update_value_range): If in is_new case setting
19096 old_vr to VR_VARYING, also set new_vr to it. Remove
19097 old_vr->type == VR_VARYING test.
19098 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
19099 SSA_PROP_INTERESTING if update_value_range returned true,
19100 but new range is VR_VARYING.
19102 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
19104 * combine.c (sign_extend_short_imm): New.
19105 (set_nonzero_bits_and_sign_copies): Use above new function for sign
19106 extension of src short immediate.
19107 (reg_nonzero_bits_for_combine): Likewise for tem.
19109 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19111 * stor-layout.c (self_referential_component_ref_p): New predicate.
19112 (copy_self_referential_tree_r): Use it.
19113 (self_referential_size): Punt for simple operations directly involving
19114 self-referential component references.
19115 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
19117 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19119 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
19121 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19123 * vec.h (vec): Make splice arguments const. Update definitions
19126 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
19128 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
19131 2015-04-26 Tom de Vries <tom@codesourcery.com>
19133 PR tree-optimization/65826
19134 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
19136 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
19138 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
19139 (*madd3<mode>): Ditto.
19140 (*msub4<mode>): Ditto.
19141 (*msub3<mode>): Ditto.
19142 (*nmadd4<mode>): Ditto.
19143 (*nmadd3<mode>): Ditto.
19144 (*nmadd4<mode>_fastmath): Ditto.
19145 (*nmadd3<mode>_fastmath): Ditto.
19146 (*nmsub4<mode>): Ditto.
19147 (*nmsub3<mode>): Ditto.
19148 (*nmsub4<mode>_fastmath): Ditto.
19149 (*nmsub3<mode>_fastmath): Ditto.
19151 2015-04-24 Jason Merrill <jason@redhat.com>
19154 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
19155 down when building TYPE_CANONICAL.
19156 (build_pointer_type_for_mode): Likewise.
19158 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
19160 * genrecog.c (validate_pattern): Check matching constraint refers
19161 to a lower numbered operand.
19163 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19166 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
19167 save to independent variables use the Save attribute. This will
19168 allow these options to be modified with the #pragma/attribute
19170 (-mallow-movmisalign): Likewise.
19171 (-mallow-df-permute): Likewise.
19172 (-msched-groups): Likewise.
19173 (-malways-hint): Likewise.
19174 (-malign-branch-targets): Likewise.
19175 (-mvectorize-builtins): Likewise.
19176 (-msave-toc-indirect): Likewise.
19178 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
19179 can be set via the #pragma/attribute target support.
19180 (rs6000_opt_vars): Likewise.
19181 (rs6000_inner_target_options): If VSX was set, also set
19182 -mno-avoid-indexed-addresses.
19184 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19186 * config/arm/iterators.md (shiftable_ops): Rename to...
19187 (SHIFTABLE_OPS): ... This. Update use in comments.
19188 (ior_xor): Rename to...
19189 (IOR_XOR): ... This.
19190 (vqh_ops): Rename to...
19191 (VQH_OPS): ... This.
19192 (vqhs_ops): Rename to...
19193 (VQHS_OPS): ... This.
19194 (rshifts): Rename to...
19195 (RSHIFTS): ... This.
19196 (returns): Rename to...
19197 (RETURNS): ... This.
19198 * config/arm/arm.md: Update uses of the above.
19199 * config/arm/neon.md: Likewise.
19201 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19203 * config.host (case ${host}): Add aarch64*-*-linux case.
19204 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
19205 fields to all the cores.
19206 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
19207 Add MCPU_MTUNE_NATIVE_SPECS.
19208 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
19209 field to all extensions.
19210 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
19211 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
19212 Adjust definition of AARCH64_OPT_EXTENSION.
19213 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
19214 (MCPU_MTUNE_NATIVE_SPECS): Define.
19215 * config/aarch64/driver-aarch64.c: New file.
19216 * config/aarch64/x-arch64: New file.
19217 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
19220 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19221 Wei Mi <wmi@google.com>
19223 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
19224 * config/i386/i386.c (extract_base_offset_in_addr): New function.
19225 (ix86_operands_ok_for_move_multiple): Ditto.
19226 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
19227 (movlpd/movhpd to movupd peephole2): Ditto.
19229 2015-04-24 Marek Polacek <polacek@redhat.com>
19232 * input.h (from_macro_expansion_at): Define.
19235 * doc/invoke.texi: Update description of -Wlogical-op.
19237 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19239 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
19240 ternary operator in fprintf and harmonize spacing.
19242 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19244 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
19245 Mark operand1 commutative.
19247 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19249 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
19250 input operands in memory.
19251 (*vec_concatv2si_sse4_1): Ditto.
19252 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
19253 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
19255 (vec_extract_hi_v32hi): Ditto.
19256 (vec_extract_hi_v64hi): Ditto.
19257 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
19259 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19260 Steven Bosscher <steven@gcc.gnu.org>
19262 PR rtl-optimization/34503
19263 * cprop.c (cprop_reg_p): New.
19264 (hash_scan_set): Use above function to check if register can be
19266 (find_avail_set): Return up to two sets, one whose source is a
19267 register and one whose source is a constant. Sets are returned in an
19268 array passed as parameter rather than as a return value.
19269 (cprop_insn): Use a do while loop rather than a goto. Try each of the
19270 sets returned by find_avail_set, starting with the one whose source is
19271 a constant. Use cprop_reg_p to check if register can be propagated.
19272 (do_local_cprop): Use cprop_reg_p to check if register can be
19274 (implicit_set_cond_p): Likewise.
19276 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19278 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
19279 (sem_function::equals): IGNORED_NODES parameter is now unused;
19280 update call of equals_private.
19281 (sem_function::equals_private): Do not call equals_wpa; skip
19282 gimple body matching if there is no body.
19283 (sem_function::init): Add logic to hash tthunk info.
19284 (sem_function::parse): Also parse thunks.
19285 * ipa-icf.h (equals_private): Update declaration.
19287 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19289 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
19290 asterisk from name so this can be generated directly.
19291 (*altivec_stvx_<mode>_internal): Likewise.
19292 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
19293 that this is never called during or after reload/lra.
19294 (rs6000_frame_related): Remove split_reg
19295 argument and logic that references it.
19296 (emit_frame_save): Remove last parameter from call to
19297 rs6000_frame_related.
19298 (rs6000_emit_prologue): Remove last parameter from eight calls to
19299 rs6000_frame_related. Force generation of stvx instruction for
19300 Altivec register saves. Remove split_reg handling, which is no
19302 (rs6000_emit_epilogue): Force generation of lvx instruction for
19303 Altivec register restores.
19305 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19307 * config/rs6000/rs6000.opt (mcrypto): Change option description to
19308 match category changes in ISA 2.07B.
19310 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19312 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
19314 (cmp_op, cmp_type): New code attributes.
19315 (NEON_VCMP, NEON_VACMP): New int iterators.
19316 (cmp_op_unsp): New int attribute.
19317 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
19318 (neon_vceq<mode>): Delete.
19319 (neon_vc<cmp_op><mode>_insn): New pattern.
19320 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
19321 (neon_vcgeu<mode>): Delete.
19322 (neon_vcle<mode>): Likewise.
19323 (neon_vclt<mode>: Likewise.
19324 (neon_vcage<mode>): Likewise.
19325 (neon_vcagt<mode>): Likewise.
19326 (neon_vca<cmp_op><mode>): New define_expand.
19327 (neon_vca<cmp_op><mode>_insn): New pattern.
19328 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
19330 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19332 * tree.h (attribute_value_equal): Declare.
19333 * tree.c (attribute_value_equal): Export.
19335 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19337 * ipa-icf.c (sem_item::compare_attributes): New function.
19338 (sem_item::compare_referenced_symbol_properties): Compare variable
19340 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
19341 (sem_function::param_used_p): New function.
19342 (sem_function::equals_wpa): Fix attribute comparsion; match
19343 parameter type codes; do not compare paremter flags when
19344 they are not used; compare edge flags; compare indirect calls.
19345 (sem_item::update_hash_by_addr_refs): Hash reference type.
19346 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
19347 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
19348 reference use type.
19349 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
19350 * ipa-icf.h (compare_attributes, param_used_p): Declare.
19352 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19354 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
19356 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
19357 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
19358 (sem_item::compare_referenced_symbol_properties): New.
19359 (sem_item::hash_referenced_symbol_properties): New.
19360 (sem_item::compare_cgraph_references): Rename to ...
19361 (sem_item::compare_symbol_references): ... this one; use
19362 compare_referenced_symbol_properties.
19363 (sem_function::equals_wpa): Do not compare
19364 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
19365 DECL_IS_OPERATOR_NEW; compare pointer sizes.
19366 (sem_item::update_hash_by_addr_refs): Call
19367 hash_referenced_symbol_properties.
19368 (sem_item::update_hash_by_local_refs): Cleanup.
19369 (sem_function::merge): Do not mix up symbol properties.
19370 (sem_variable::equals_wpa): Use compare_symbol_references.
19371 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
19372 (sem_item::hash_referenced_symbol_properties): New.
19373 (sem_item::compare_symbol_references): New.
19374 (sem_item::compare_cgraph_references): Remove.
19376 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
19379 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
19380 Emit size of local.
19382 2015-04-23 Nick Clifton <nickc@redhat.com>
19384 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
19385 ATTRIBUTE_UNUSED to x parameter.
19386 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
19388 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19390 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
19391 TARGET_CRYPTO to TARGET_P8_VECTOR>
19392 (crypto_vpermxor_<mode>): Likewise.
19393 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
19394 (BU_CRYPTO_3A): Likewise.
19395 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
19396 (BU_CRYPTO_OVERLOAD_3A): New #define.
19397 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
19398 (VPMSUMH): Likewise.
19399 (VPMSUMW): Likewise.
19400 (VPMSUMD): Likewise.
19401 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
19402 (VPERMXOR_V4SI): Likewise.
19403 (VPERMXOR_V8HI): Likewise.
19404 (VPERMXOR_V16QI): Likewise.
19405 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
19406 BU_CRYPTO_OVERLOAD_2A.
19407 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
19408 BU_CRYPTO_OVERLOAD_3A.
19409 * config/rs6000/rs6000.opt (mcrypto): Change description of
19412 2015-04-23 Richard Biener <rguenther@suse.de>
19414 * passes.def: Remove copy propagation passes run directly after CCP.
19415 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
19417 (ccp_visit_phi_node): Rework to handle first executable edge
19420 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
19422 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19423 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19424 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19425 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
19426 (thumb_legimitimize_reload_address): Remove.
19427 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
19429 (thumb_legimitimize_reload_address): Remove.
19431 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19433 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
19435 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19437 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
19439 (store_multiple): Likewise.
19441 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19443 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
19444 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
19445 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
19446 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
19447 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
19448 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
19449 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
19450 Specify issue_rate value.
19451 (arm_issue_rate): Look up issue rate from tuning structs. Remove
19452 large switch statement.
19453 (arm_marvell_pj4_tune): New struct.
19454 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
19457 2015-04-23 Richard Biener <rguenther@suse.de>
19459 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
19460 (vect_find_last_store_in_slp_instance): Rename to ...
19461 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
19462 (vect_analyze_slp_cost_1): Use vector_load for constant defs
19463 and vec_construct for external defs when estimating prologue cost.
19464 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
19465 Compute costs here only when vectorizing loops.
19466 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
19467 have been determined.
19468 (vect_schedule_slp_instance): Simplify vectorized code placement
19469 and prepare for in-BB external defs.
19470 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
19471 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
19472 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
19474 (vect_model_load_cost): Likewise.
19475 (vectorizable_store): Instead add it here.
19476 (vectorizable_load): Likewise.
19477 (vect_is_simple_use): Dump def type textually.
19479 2015-04-23 Richard Biener <rguenther@suse.de>
19481 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
19482 * cfgloop.c (verify_loop_structure): Verify the root loop node.
19483 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
19484 instead of get_eh_region_from_lp_number.
19485 * loop-init.c (fix_loop_structure): If we removed a loop, reset
19488 2015-04-23 Anton Blanchard <anton@samba.org>
19490 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
19491 need for -mprofile-kernel to save LR to stack.
19493 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19495 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
19497 (insn_is_swappable_p): Return 1 for a convert from double to
19498 single precision when all of its uses are splats of BE element
19501 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19503 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
19505 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19508 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
19509 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
19510 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
19512 (rs6000_builtin_mask_for_load): Return 0 for targets with
19513 efficient unaligned VSX accesses so that the vectorizer will use
19514 direct unaligned loads.
19515 (rs6000_builtin_support_vector_misalignment): Always return true
19516 for targets with efficient unaligned VSX accesses.
19517 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
19518 stores on targets with efficient unaligned VSX accesses is almost
19519 always the same as the cost of an aligned load or store, so model
19521 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
19522 unaligned vectors if we have efficient unaligned VSX accesses.
19523 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
19524 undocumented option.
19526 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19529 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19531 * config.gcc (LIBC_MUSL): New tm_defines macro.
19532 * config/linux.h (OPTION_MUSL): Define.
19533 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19534 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19535 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19537 * config/linux.opt (mmusl): New option.
19538 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19539 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19541 * configure: Regenerate.
19543 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19545 * config.gcc (LIBC_MUSL): New tm_defines macro.
19546 * config/linux.h (OPTION_MUSL): Define.
19547 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19548 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19549 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19551 * config/linux.opt (mmusl): New option.
19552 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19553 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19555 * configure: Regenerate.
19557 2015-04-22 Yury Gribov <y.gribov@samsung.com>
19559 * doc/invoke.texi (-fsanitize-sections): Update description.
19560 * asan.c (set_sanitized_sections): Parse incoming arg.
19561 (section_sanitized_p): Support wildcards.
19563 2015-04-22 Tom de Vries <tom@codesourcery.com>
19565 PR tree-optimization/65823
19566 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
19567 equality between ap_copy and ap.
19569 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19572 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
19574 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19577 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
19579 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19582 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
19583 remove already contained t-files.
19585 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19587 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
19588 Remove unneeded forward declarations.
19589 (suitable_for_tail_call_opt_p): Commentary typo fix.
19591 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19593 * varasm.c (emit_bss): Remove redundant guard.
19595 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19597 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
19599 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19601 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
19603 2015-04-22 Hale Wang <hale.wang@arm.com>
19604 Terry Guo <terry.guo@arm.com>
19606 PR rtl-optimization/64818
19607 * combine.c (can_combine_p): Don't combine user-specified
19608 register if it is in an asm input.
19610 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
19613 * passes.def (early_optimizations): Add pass_dse.
19615 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19617 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
19618 * reorg.c (redundant_insn): Remove ifdef
19619 INSN_REFERENCES_ARE_DELAYED.
19620 * resource.c (mark_referenced_resources): Likewise.
19622 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19624 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
19625 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
19626 * resource.c (mark_set_resources): Likewise.
19628 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19630 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
19631 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19632 (flow_find_head_matching_sequence): Likewise.
19633 (try_head_merge_bb): Likewise.
19634 * combine.c (can_combine_p): Likewise.
19635 (try_combine): Likewise.
19636 (distribute_notes): Likewise.
19637 * df-problems.c (can_move_insns_across): Likewise.
19638 * final.c (final): Likewise.
19639 * gcse.c (insert_insn_end_basic_block): Likewise.
19640 * ira.c (find_moveable_pseudos): Likewise.
19641 * reorg.c (try_merge_delay_insns): Likewise.
19642 (fill_simple_delay_slots): Likewise.
19643 (fill_slots_from_thread): Likewise.
19644 * sched-deps.c (sched_analyze_2): Likewise.
19646 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19648 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
19649 PIC_OFFSET_TABLE_REGNUM.
19651 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19653 * alias.c (init_alias_target): Remove ifdef
19654 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
19655 * df-scan.c (df_insn_refs_collect): Likewise.
19656 (df_get_regular_block_artificial_uses): Likewise.
19657 (df_get_eh_block_artificial_uses): Likewise.
19658 (df_get_entry_block_def_set): Likewise.
19659 (df_get_exit_block_use_set): Likewise.
19660 * emit-rtl.c (gen_rtx_REG): Likewise.
19661 * ira.c (ira_setup_eliminable_regset): Likewise.
19662 * reginfo.c (init_reg_sets_1): Likewise.
19663 * regrename.c (rename_chains): Likewise.
19664 * reload1.c (reload): Likewise.
19665 (eliminate_regs_in_insn): Likewise.
19666 * resource.c (mark_referenced_resources): Likewise.
19667 (init_resource_info): Likewise.
19669 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19671 * defaults.h (MASK_RETURN_ADDR): New definition.
19672 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19675 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19677 * defaults.h (RETURN_ADDR_OFFSET): New definition.
19678 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19679 RETURN_ADDR_OFFSET.
19680 (expand_builtin_frob_return_addr): Likewise.
19682 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19684 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
19685 (try_redirect_by_replacing_jump): Likewise.
19686 (rtl_tidy_fallthru_edge): Likewise.
19687 * combine.c (insn_a_feeds_b): Likewise.
19688 (find_split_point): Likewise.
19689 (simplify_set): Likewise.
19690 * cprop.c (cprop_jump): Likewise.
19691 * cse.c (cse_extended_basic_block): Likewise.
19692 * df-problems.c (can_move_insns_across): Likewise.
19693 * function.c (emit_use_return_register_into_block): Likewise.
19694 * haifa-sched.c (sched_init): Likewise.
19695 * ira.c (find_moveable_pseudos): Likewise.
19696 * loop-invariant.c (find_invariant_insn): Likewise.
19697 * lra-constraints.c (curr_insn_transform): Likewise.
19698 * postreload.c (reload_combine_recognize_const_pattern):
19700 * reload.c (find_reloads): Likewise.
19701 * reorg.c (delete_scheduled_jump): Likewise.
19702 (steal_delay_list_from_target): Likewise.
19703 (steal_delay_list_from_fallthrough): Likewise.
19704 (redundant_insn): Likewise.
19705 (fill_simple_delay_slots): Likewise.
19706 (fill_slots_from_thread): Likewise.
19707 (delete_computation): Likewise.
19708 * sched-rgn.c (add_branch_dependences): Likewise.
19710 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19712 * genconfig.c (main): Always define HAVE_cc0.
19713 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
19715 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19716 (flow_find_head_matching_sequence): Likewise.
19717 (try_head_merge_bb): Likewise.
19718 * cfgrtl.c (rtl_merge_blocks): Likewise.
19719 (try_redirect_by_replacing_jump): Likewise.
19720 (rtl_tidy_fallthru_edge): Likewise.
19721 * combine.c (do_SUBST_MODE): Likewise.
19722 (insn_a_feeds_b): Likewise.
19723 (combine_instructions): Likewise.
19724 (can_combine_p): Likewise.
19725 (try_combine): Likewise.
19726 (find_split_point): Likewise.
19728 (simplify_set): Likewise.
19729 (distribute_notes): Likewise.
19730 * cprop.c (cprop_jump): Likewise.
19731 * cse.c (cse_extended_basic_block): Likewise.
19732 * df-problems.c (can_move_insns_across): Likewise.
19733 * final.c (final): Likewise.
19734 (final_scan_insn): Likewise.
19735 * function.c (emit_use_return_register_into_block): Likewise.
19736 * gcse.c (insert_insn_end_basic_block): Likewise.
19737 * haifa-sched.c (sched_init): Likewise.
19738 * ira.c (find_moveable_pseudos): Likewise.
19739 * loop-invariant.c (find_invariant_insn): Likewise.
19740 * lra-constraints.c (curr_insn_transform): Likewise.
19741 * optabs.c (prepare_cmp_insn): Likewise.
19742 * postreload.c (reload_combine_recognize_const_pattern):
19744 * reload.c (find_reloads): Likewise.
19745 (find_reloads_address_1): Likewise.
19746 * reorg.c (delete_scheduled_jump): Likewise.
19747 (steal_delay_list_from_target): Likewise.
19748 (steal_delay_list_from_fallthrough): Likewise.
19749 (try_merge_delay_insns): Likewise.
19750 (redundant_insn): Likewise.
19751 (fill_simple_delay_slots): Likewise.
19752 (fill_slots_from_thread): Likewise.
19753 (delete_computation): Likewise.
19754 (relax_delay_slots): Likewise.
19755 * sched-deps.c (sched_analyze_2): Likewise.
19756 * sched-rgn.c (add_branch_dependences): Likewise.
19758 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19760 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
19761 that is trivially ded on non cc0 targets.
19762 (simplify_set): Likewise.
19763 (mark_used_regs_combine): Likewise.
19764 * cse.c (new_basic_block): Likewise.
19765 (fold_rtx): Likewise.
19766 (cse_insn): Likewise.
19767 (cse_extended_basic_block): Likewise.
19768 (set_live_p): Likewise.
19769 * rtlanal.c (canonicalize_condition): Likewise.
19770 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19772 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19774 * conditions.h: Define macros even if HAVE_cc0 is undefined.
19775 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
19776 * final.c: Likewise.
19777 * jump.c: Likewise.
19778 * recog.c: Likewise.
19779 * recog.h: Declare functions even when HAVE_cc0 is undefined.
19780 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
19782 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19784 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
19785 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
19786 * builtins.c (expand_builtin): Remove check if
19787 EH_RETURN_DATA_REGNO is defined.
19788 * df-scan.c (df_bb_refs_collect): Likewise.
19789 (df_get_exit_block_use_set): Likewise.
19790 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19791 * ira-lives.c (process_bb_node_lives): Likewise.
19792 * lra-lives.c (process_bb_lives): Likewise.
19794 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19796 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
19797 FIRST_PSEUDO_REG): New.
19798 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
19799 (ARG_POINTER_REGNUM): Define to ARGP_REG.
19800 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
19801 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
19802 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
19803 (FIRST_INT_REG): New.
19804 (LAST_INT_REG): New.
19805 (FIRST_*_REG): Define using *_REG.
19806 (LAST_*_REG): Ditto.
19807 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
19808 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
19809 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
19811 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19813 * expmed.c: (synth_mult): Only assume overlapping
19814 shift with previous steps in alg_sub_t_m2 case.
19816 2015-04-21 Richard Biener <rguenther@suse.de>
19818 PR tree-optimization/65650
19819 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
19820 transitions involving copies.
19821 (set_lattice_value): Adjust for copy lattice state.
19822 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
19823 if that doesn't dominate the merge point.
19824 (bit_value_unop): Adjust what we treat as varying mask.
19825 (bit_value_binop): Likewise.
19826 (bit_value_assume_aligned): Likewise.
19827 (evaluate_stmt): When we simplified to a SSA name record a copy
19828 instead of dropping to varying.
19829 (visit_assignment): Simplify.
19831 * gimple-match.h (gimple_simplify): Add another callback.
19832 * gimple-fold.c (fold_stmt_1): Adjust caller.
19833 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
19834 for the 2nd callback.
19835 * gimple-match-head.c (gimple_simplify): Add a callback that is
19836 used to valueize the stmt operands and use it that way.
19838 2015-04-21 Richard Biener <rguenther@suse.de>
19840 PR tree-optimization/65788
19841 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
19843 2015-04-21 Richard Biener <rguenther@suse.de>
19845 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
19846 vec_construct cost by vec_stmt_cost.
19848 2015-04-21 Richard Biener <rguenther@suse.de>
19850 * cfghooks.h (create_basic_block): Replace with two overloads
19851 for RTL and GIMPLE.
19852 (split_block): Likewise.
19853 * cfghooks.c (split_block): Rename to ...
19854 (split_block_1): ... this.
19855 (split_block): Add two type-safe overloads for RTL and GIMPLE.
19856 (split_block_after_labels): Call split_block_1.
19857 (create_basic_block): Rename to ...
19858 (create_basic_block_1): ... this.
19859 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
19860 (create_empty_bb): Call create_basic_block_1.
19861 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
19862 split_block_after_labels.
19863 * omp-low.c (expand_parallel_call): Likewise.
19864 (expand_omp_target): Likewise.
19865 (simd_clone_adjust): Likewise.
19866 * tree-chkp.c (chkp_get_entry_block): Likewise.
19867 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
19868 create_basic_block overload.
19869 (cgraph_node::expand_thunk): Likewise.
19870 * tree-cfg.c (make_blocks): Likewise.
19871 (handle_abnormal_edges): Likewise.
19872 * tree-inline.c (copy_bb): Likewise.
19874 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19876 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
19878 (*xor_one_cmplsidi3_ze): Likewise.
19880 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
19882 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
19883 use df_remove_problem rather than manually removing problems, leaving
19884 holes in df->problems_in_order[].
19886 2015-04-21 Tom de Vries <tom@codesourcery.com>
19888 PR tree-optimization/65802
19889 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
19891 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19893 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
19895 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
19896 at '.'. Assert that there's enough space for everything.
19898 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19900 PR tree-optimization/64950
19902 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
19905 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
19908 2015-04-20 Shiva Chen <shiva0217@gmail.com>
19910 PR rtl-optimization/64916
19911 * cfgcleanup.c (values_equal_p): New function.
19912 (can_replace_by): Use it.
19914 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
19917 * doc/invoke.texi ([-Wnarrowing]): Update.
19919 2015-04-20 Jeff Law <law@redhat.com>
19921 PR tree-optimization/65658
19922 * tree-ssa-threadupdate.c (redirection_block_p): Remove
19923 redundant test for GIMPLE_ASSIGN in last change.
19925 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
19927 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
19928 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
19929 (legitimize_tls_address): Ditto.
19930 (ix86_expand_move): Ditto.
19931 (ix86_expand_binary_operator): Remove reload_in_progress checks.
19932 (ix86_expand_unary_operator): Ditto.
19933 * config/i386/predicates.md (index_register_operand): Ditto.
19935 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
19937 * reorg.c (try_merge_delay_insns): Improve correctness checking
19938 for targets with multiple delay slots.
19940 2015-04-20 Jeff Law <law@redhat.com>
19942 PR tree-optimization/65658
19943 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
19946 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
19948 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
19949 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
19952 2015-04-20 Jakub Jelinek <jakub@redhat.com>
19955 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
19957 2015-04-20 Richard Biener <rguenther@suse.de>
19959 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
19960 * gimple-fold.c (gimple_build_valueize): New function.
19961 (gimple_build): Always use gimple_build_valueize as valueize hook.
19963 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
19966 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
19967 and overwrite variable parts if <= 1/2 the elements are variable.
19969 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
19971 PR rtl-optimization/65805
19972 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
19973 Don't use difference of offset and previous offset if
19974 update_sp_offset is non-zero.
19975 (eliminate_regs_in_insn): Ditto.
19976 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
19977 lra_eliminate_regs_1 call.
19978 * lra-constraints.c (get_equiv_with_elimination): Ditto.
19980 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
19982 * hash-table.h: Remove version of hash_table that stored value_type *.
19983 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
19984 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
19985 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
19986 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
19987 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
19988 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
19989 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19990 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
19991 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
19992 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
19993 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
19994 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
19995 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
19996 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19997 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
19998 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
20000 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20001 Jakub Jelinek <jakub@redhat.com>
20004 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
20005 subsequent SH_NONE operand does not overwrite an existing *special
20007 (adjust_extract): Handle case where a vec_extract operation is
20008 wrapped in a PARALLEL.
20010 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20013 * config/i386/i386.c (ix86_binds_local_p): Define only if
20014 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
20016 2015-04-17 Jeff Law <law@redhat.com>
20018 PR tree-optimization/47679
20019 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
20020 * tree-ssa-scopedtables.c: New file.
20021 * tree-ssa-scopedtables.h: New file.
20022 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
20023 (const_and_copies): Change name/type.
20024 (record_const_or_copy): Move into tree-ssa-scopedtables.c
20025 (record_const_or_copy_1): Similarly.
20026 (restore_vars_to_original_value): Similarly.
20027 (pass_dominator::execute): Create and destroy const_and_copies table.
20028 (thread_across_edge): Update passing of const_and_copies.
20029 (record_temporary_equivalence): Use method calls rather than
20030 manipulating const_and_copies directly.
20031 (record_equality, cprop_into_successor_phis): Similarly.
20032 (dom_opt_dom_walker::before_dom_children): Similarly.
20033 (dom_opt_dom_walker::after_dom_children): Similarly.
20034 (eliminate_redundant_computations): Similarly.
20035 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
20036 (record_temporary_equivalence): Likewise.
20037 (invalidate_equivalences): Likewise.
20038 (record_temporary_equivalences_from_phis): Update due to type
20039 change of const_and_copies. Use method calls rather than
20040 manipulating the stack directly.
20041 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
20042 (thread_through_normal_block, thread_across_edge): Likewise.
20043 (thread_across_edge): Likewise.
20044 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
20045 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
20047 (identify_jump_threads): Update due to type change of equiv_stack.
20048 (finalize_jump_threads): Delete the equiv_stack when complete.
20050 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
20052 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20053 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
20054 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
20056 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
20059 * config.gcc: Exit with a comment when we do not have a major version
20060 number for the FreeBSD target.
20062 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20065 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
20066 maybe_allows_mem bitfields.
20067 (maybe_allows_none_start, maybe_allows_none_end,
20068 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
20069 maybe_allows_mem_end): New variables.
20070 (compute_maybe_allows): New function.
20071 (add_constraint): Use it to initialize maybe_allows_reg and
20072 maybe_allows_mem fields.
20073 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
20074 is_address constraints such that those that allow neither mem nor
20075 reg come first, then those that only allow reg but not mem, then
20076 those that only allow mem but not reg, then the rest.
20077 (write_allows_reg_mem_function): New function.
20078 (write_tm_preds_h): Call it.
20079 * stmt.c (parse_output_constraint, parse_input_constraint): Use
20080 the generated insn_extra_constraint_allows_reg_mem function
20081 instead of always setting *allows_reg = true; *allows_mem = true;
20082 for unknown extra constraints.
20084 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20087 * output.h (default_binds_local_p_3): New.
20088 * varasm.c (default_binds_local_p_3): Make it public. Take an
20089 argument to indicate if common symbol may be local. If common
20090 symbol may be local, treat non-external variable as defined
20092 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
20093 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
20094 * config/i386/i386.c (ix86_binds_local_p): New.
20095 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
20096 ix86_binds_local_p.
20098 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20101 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
20102 trying mem_loc_descriptor on XEXP (rtl, 0).
20104 2015-04-17 Martin Liska <mliska@suse.cz>
20106 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20107 Release symbol_compare_collection.
20108 * ipa-reference.c: Add TODO that a vector should be released.
20110 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
20113 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
20114 to new AVR-LibC file layout (bug #44574).
20115 (*avrlibc_devicelib): Same.
20116 * config/avr/avr-mcus.def: Adjust comments.
20117 * config/avr/avr.opt (nodevicelib): Adjust help.
20119 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
20121 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
20123 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
20126 * gimplify.c (gimplify_init_constructor): Always emit a
20127 side-effecting constructor.
20129 2015-04-17 Tom de Vries <tom@codesourcery.com>
20131 PR tree-optimization/64950
20132 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
20133 in cfun->curr_properties.
20134 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
20135 if we generate an IFN_VA_ARG.
20136 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
20137 function if PROP_gimple_lva is not set in src function.
20139 2015-04-17 Tom de Vries <tom@codesourcery.com>
20140 Michael Matz <matz@suse.de>
20142 PR tree-optimization/64950
20143 * gimple-iterator.c (update_modified_stmts): Remove static.
20144 * gimple-iterator.h (update_modified_stmts): Declare.
20145 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
20146 (gimplify_va_arg_internal): New function.
20147 (gimplify_va_arg_expr): Use IFN_VA_ARG.
20148 * gimplify.h (gimplify_va_arg_internal): Declare.
20149 * internal-fn.c (expand_VA_ARG): New unreachable function.
20150 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
20151 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
20152 (expand_ifn_va_arg): New function.
20153 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
20154 (pass_stdarg::execute): Call expand_ifn_va_arg.
20155 (pass_data_lower_vaarg): New pass_data.
20156 (pass_lower_vaarg): New gimple_opt_pass.
20157 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
20158 (make_pass_lower_vaarg): New function.
20159 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
20160 properties_required field.
20161 * passes.def (all_passes): Add pass_lower_vaarg.
20162 * tree-pass.h (PROP_gimple_lva): Add define.
20163 (make_pass_lower_vaarg): Declare.
20165 2015-04-17 Tom de Vries <tom@codesourcery.com>
20167 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
20168 * calls.c (call_expr_flags): Same.
20170 2015-04-17 Tom de Vries <tom@codesourcery.com>
20172 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
20173 (pass_stdarg::execute): ... here.
20175 2015-04-17 Tom de Vries <tom@codesourcery.com>
20176 Michael Matz <matz@suse.de>
20178 * tree-cfg.c (make_blocks_1): Factor out of ...
20179 (make_blocks): ... here.
20180 (make_edges_bb): Factor out of ...
20181 (make_edges): ... here.
20182 (gimple_find_sub_bbs): New function.
20183 * tree-cfg.h (gimple_find_sub_bbs): Declare.
20185 2015-04-17 Tom de Vries <tom@codesourcery.com>
20187 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
20189 2015-04-17 Yury Gribov <y.gribov@samsung.com>
20191 * asan.c (set_sanitized_sections): New function.
20192 (section_sanitized_p): Ditto.
20193 (asan_protect_global): Optionally sanitize user-defined
20195 * asan.h (set_sanitized_sections): Declare new function.
20196 * common.opt (fsanitize-sections): New option.
20197 * doc/invoke.texi (-fsanitize-sections): Document new option.
20198 * opts-global.c (handle_common_deferred_options): Handle new
20201 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20204 * dwarf2out.c (loc_list_from_tree): Return NULL
20205 for DEBUG_EXPR_DECL.
20207 2015-04-17 Christian Bruel <christian.bruel@st.com>
20209 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
20212 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20214 * ira-color.c (setup_left_conflict_sizes_p): Do not process
20215 node itself when computing left conflict subnode size.
20217 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20219 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
20220 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
20221 *fop_<mode>_1_sse using enabled attribute. Use
20222 register_mixssei387nonimm_operand operand 1 predicate. Change
20223 alternative 3 constraints from "x" to "v".
20225 2015-04-16 Richard Biener <rguenther@suse.de>
20227 PR tree-optimization/65774
20228 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
20229 bit-value tracking on.
20231 2015-04-16 Richard Biener <rguenther@suse.de>
20233 PR tree-optimization/64277
20234 * tree-vrp.c (check_array_ref): Fix anti-range handling,
20235 simplify upper bound handling.
20236 (search_for_addr_array): Simplify.
20237 (check_array_bounds): Handle ADDR_EXPRs here.
20238 (check_all_array_refs): Simplify.
20240 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20242 * config/i386/i386.c (print_reg): Rewrite function.
20244 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20246 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
20247 Invert the condition.
20249 2015-04-16 Renlin Li <renlin.li@arm.com>
20251 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
20252 simplifications for UNSIGNED_FLOAT.
20254 2015-04-16 Nick Clifton <nickc@redhat.com>
20256 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
20258 (enum rl78_cpu_type): New.
20259 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
20260 (umulhi3_shift_virt): Remove m constraint from operand 1.
20261 (umulqihi3_virt): Likewise.
20262 * config/rl78/rl78.c (rl78_option_override): Add code to process
20263 -mcpu and -mmul options.
20264 (rl78_alloc_physical_registers): Add code to handle divhi and
20265 divsi valloc attributes.
20266 (set_origin): Likewise.
20267 * config/rl78/rl78.h (RL78_MUL_G14): Define.
20268 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
20269 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
20271 (ASM_SPEC): Pass -mcpu on to assembler.
20272 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
20273 (mulqi3_rl78): Likewise.
20274 (mulhi3_g13): Likewise.
20275 (mulhi3): Generate the G13 or G14 versions of the insn directly.
20276 (mulsi3): Likewise.
20277 (mulhi3_g14): Add clobbers of AX and BC.
20278 (mulsi3_g14): Likewise.
20279 (mulsi3_g13): Likewise.
20280 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
20281 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
20282 * config/rl78/rl78.opt (mmul): Initialise value to
20284 (mcpu): New option.
20285 (m13, m14, mrl78): New option aliases.
20286 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
20287 (MULTILIB_DIRNAMES): Add g13 and g14.
20288 * doc/invoke.texi: Document -mcpu and -mmul options.
20290 2015-04-16 Richard Biener <rguenther@suse.de>
20292 * tree-ssa-ccp.c (likely_value): See if we have operands that
20293 are marked as never simulate again and return CONSTANT in this
20295 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
20296 not have any operands that will be simulated again as
20297 not being simulated again.
20299 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
20301 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
20302 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
20303 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
20305 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
20307 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
20308 *float<SWI48:mode><MODEF:mode>2_sse.
20309 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
20311 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
20314 2015-04-15 Tom de Vries <tom@codesourcery.com>
20317 * function.c (push_dummy_function): New function.
20318 (init_dummy_function_start): Use push_dummy_function.
20319 (pop_dummy_function): New function. Factored out of ...
20320 (expand_dummy_function_end): ... here.
20321 * function.h (push_dummy_function, pop_dummy_function): Declare.
20322 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
20323 pop_dummy_function.
20324 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
20326 2015-04-15 Jeff Law <law@redhat.com>
20328 PR tree-optimization/47679
20329 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
20330 need for forward declaration in upcoming changes.
20331 (record_conditions, record_edge_info): Likewise.
20333 PR rtl-optimization/42522
20334 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
20335 SIGN_EXTRACT as a whole object rather than simplifying
20338 2015-04-15 Jakub Jelinek <jakub@redhat.com>
20341 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
20342 and GIMPLE_PREDICT use break instead of return true. For
20343 GIMPLE_EH_DISPATCH, compare dispatch region.
20345 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
20347 * doc/extend.texi (__sync Builtins): Simplify some text. Update
20348 details about the implementation. Make clear preference for
20349 __atomic builtins. Reduce possibility of future change.
20351 2015-04-15 Nick Clifton <nickc@redhat.com>
20353 * config/rx/rx.opt (mallow-string-insns): New option.
20354 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
20355 builtin if string instructions are denied.
20356 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
20357 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
20359 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
20360 * config/rx/rx.md (movstr): Enable pattern only if string
20361 instructions are allowed.
20362 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
20363 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
20364 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
20365 (MULTILIB_DIRNAMES): Add no-strings.
20366 * doc/invoke.texi: Document -mno-allow-string-insns.
20368 2015-04-15 Alan Modra <amodra@gmail.com>
20372 PR middle-end/36043
20373 * calls.c (load_register_parameters): Don't load past end of
20374 mem unless suitably aligned.
20376 2015-04-15 Nick Clifton <nickc@redhat.com>
20378 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
20379 decrement instruction as being frame related.
20380 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
20382 If zero extending a function address enclose the operation in
20384 (rl78_preferred_reload_class): New function.
20385 (TARGET_PREFERRED_RELOAD_CLASS): Define.
20386 * config/rl78/rl78.md: Remove useless constraints in expanders.
20387 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
20388 (mulhi3_rl78): Likewise.
20389 (mulhi3_g13): Likewise.
20390 (mulsi3_rl78): Likewise.
20391 (es_addr): Move to before the multiply patterns.
20393 2015-04-15 Alan Modra <amodra@gmail.com>
20395 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
20396 and sequence_stack. Add seq.
20397 (seq_stack): Delete.
20398 * function.c (prepare_function_start): Don't access x_last_insn.
20399 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
20400 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
20401 * emit_rtl.c (start_sequence, push_topmost_sequence,
20402 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
20403 sequence accessors.
20404 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
20405 remove_insn): Likewise. Simplify.
20406 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
20407 and pop_topmost_sequence.
20408 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
20410 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
20412 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
20415 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
20418 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20420 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
20421 (LEGACY_INT_REGNO_P): Ditto.
20422 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
20423 (ANY_MASK_REG_P): Remove.
20424 (BND_REG_P): Rename from ANY_BND_REG_P.
20425 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
20426 legacy integer registers. Do not handle MMX_REG_P in a special way.
20427 Merge 64byte and 32byte SSE handling.
20429 2015-04-14 Nick Clifton <nickc@redhat.com>
20431 * expr.c (expand_assignment): Force an address offset computation
20432 into a register before changing its mode.
20433 (expand_expr_real_1): Likewise.
20435 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
20437 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
20438 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
20439 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
20440 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
20441 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
20442 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
20443 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
20444 and __aarch64_vget_lane_any.
20446 2015-04-14 Jakub Jelinek <jakub@redhat.com>
20448 PR rtl-optimization/65761
20449 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
20450 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
20452 2015-04-14 Richard Biener <rguenther@suse.de>
20454 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
20455 (graphite_can_represent_scev): Use POINTER_TYPE_P.
20457 2015-04-14 Richard Biener <rguenther@suse.de>
20459 PR tree-optimization/65758
20460 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
20462 (ccp_lattice_meet): Likewise.
20463 (bit_value_unop): Likewise.
20464 (bit_value_binop): Likewise.
20465 (bit_value_assume_aligned): Likewise.
20467 2015-04-14 Christian Bruel <christian.bruel@st.com>
20469 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
20472 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
20474 PR tree-optimization/63387
20475 * match.pd ((x unord x) | (y unord y) -> (x unord y),
20476 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
20478 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20480 * config/i386/predicates.md (any_QIreg_operand): Rename from
20481 q_regs_operand. Do not process subregs.
20482 (QIreg_operand): Use QI_REGNO_P predicate.
20483 (ext_QIreg_operand): Ditto.
20484 (ext_register_operand): Ditto.
20485 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
20486 (AND splitters): Ditto.
20487 (AND with -65536 splitter): Add SWI48 mode for operand 0.
20488 (AND with -256 splitter): Use any_QIreg_operand predicate and
20489 SWI248 mode for operand 0.
20490 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
20491 mode for operand 0.
20492 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
20494 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
20496 * doc/plugins.texi: Rewrite first introductory paragraph.
20498 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20500 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
20501 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
20503 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20505 * ipa-profie.c (ipa_profile): Check number of parameters
20506 and possible polymorphic call targets before
20509 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
20511 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
20512 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
20514 2015-04-13 Richard Biener <rguenther@suse.de>
20516 PR tree-optimization/65204
20517 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
20518 takens for bit-CCP.
20520 2015-04-13 Richard Biener <rguenther@suse.de>
20523 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
20524 and cond_not_taken_branch_cost to 4 and 2.
20525 (bdver2_cost): Likewise.
20526 (bdver3_cost): Likewise.
20527 (bdver4_cost): Likewise.
20529 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20531 * hash-table.h (hash_table constructor): Add mem stats.
20532 (alloc_entries): Likewise.
20534 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20536 * ipa-cp.c (ipcp_driver): Relase prev_edge.
20537 * passes.c (execute_one_pass): Only add transform if pass has one.
20539 2015-04-12 Joseph Myers <joseph@codesourcery.com>
20541 * config/i386/i386.c (ix86_option_override_internal): Don't set
20542 -fprefetch-loop-arrays if optimizing for size.
20544 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20545 Gerald Pfeifer <gerald@pfeifer.com>
20547 * doc/contrib.texi (Contributors): Add Martin Jambor and
20550 2015-04-12 Jakub Jelinek <jakub@redhat.com>
20552 * BASE-VER: Set to 6.0.0.
20554 PR tree-optimization/65747
20555 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
20556 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
20558 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20560 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
20561 sentence. Improve grammar.
20563 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20565 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
20567 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20570 * ipa-inline-transform.c (speculation_removed): Remove static var.
20571 (check_speculations): New function.
20572 (clone_inlined_nodes): Do not check spculations.
20573 (inline_call): Call check_speculations.
20574 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
20575 consider non-invariants.
20577 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20578 Martin Liska <mliska@suse.cz>
20581 * ipa-icf.c (sem_item::compare_cgraph_references): function and
20582 variable can not match.
20583 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
20584 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
20586 2015-04-11 Jakub Jelinek <jakub@redhat.com>
20588 PR tree-optimization/65735
20589 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
20590 Remove visited_phis argument, add visited_bbs, avoid recursing into the
20591 same bb rather than just into the same phi node.
20592 (thread_through_normal_block): Adjust caller.
20594 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20596 * doc/contrib.texi (Contributors): Add Ira Rosen.
20598 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
20600 * gcov.c (find_source): Fix miswording in error message.
20601 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
20602 (ix86_expand_sse_comi_round): Fix typo in error message.
20604 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20606 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
20608 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
20610 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
20612 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20615 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
20616 Print bad_spills_num and insn_pseudos_num.
20618 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20621 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
20622 when creating +1 values for SImode.
20624 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20627 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
20630 2015-04-10 Jakub Jelinek <jakub@redhat.com>
20631 Iain Sandoe <iain@codesourcery.com>
20634 * configure: Regenerate.
20636 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20639 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
20641 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
20643 * doc/contrib.texi (Contributors): Add John Marino.
20645 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20647 PR tree-optimization/65709
20648 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
20649 TREE_TYPE (TREE_TYPE (t)).
20651 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
20654 * lra-int.h (lra_bad_spill_regno_start): New.
20655 * lra.c (lra_bad_spill_regno_start): New.
20656 (lra): Set up lra_bad_spill_regno_start. Set up
20657 lra_constraint_new_regno_start unconditionally.
20658 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
20661 2015-04-09 Marek Polacek <polacek@redhat.com>
20662 Jakub Jelinek <jakub@redhat.com>
20664 PR middle-end/65554
20665 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
20666 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
20669 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
20671 PR rtl-optimization/65693
20672 * combine.c (is_parallel_of_n_reg_sets): Move outside of
20675 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
20678 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
20679 device specs file if "device-specs%s" didn't resolve to a path.
20681 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20684 * config/i386/i386.c (fixup_modeless_constant): New.
20685 (ix86_expand_args_builtin): Fixup modeless constant operand.
20686 (ix86_expand_round_builtin): Ditto.
20687 (ix86_expand_special_args_builtin): Ditto.
20688 (ix86_expand_builtin): Ditto.
20690 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20693 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
20694 any pow2 integer in between 2 and 0x80000000U inclusive.
20696 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
20698 PR rtl-optimization/65693
20699 * combine.c (is_parallel_of_n_reg_sets): Change first argument
20700 from an rtx_insn * to an rtx.
20701 (try_combine): Adjust both callers. Use it once more.
20703 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20705 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
20706 (chkp_make_static_const_bounds): Search existing
20707 symbol by assembler name. Use make_decl_one_only.
20708 (chkp_get_zero_bounds_var): Remove node search which
20709 is now performed in chkp_make_static_const_bounds.
20710 (chkp_get_none_bounds_var): Likewise.
20712 2015-04-08 Michael Witten <mfwitten@gmail.com>
20714 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
20717 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20719 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
20721 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20723 * doc/extend.texi (__sync Builtins): Fix grammar.
20725 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20727 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
20729 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20731 * varasm.c (emit_local): Move definition of align.
20733 2015-04-08 Julian Brown <julian@codesourcery.com>
20735 * config/nvptx/mkoffload.c (process): Support variable mapping.
20737 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
20739 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
20741 (alpha_write_one_linkage): Correct typo.
20743 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20745 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
20747 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20749 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
20751 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20753 * tree-chkp.h (chkp_insert_retbnd_call): New.
20754 * tree-chkp.c (chkp_insert_retbnd_call): New.
20755 * ipa-split.c (insert_bndret_call_after): Remove.
20756 (split_function): Use chkp_insert_retbnd_call.
20757 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
20758 bounds for instrumented functions.
20760 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
20763 * calls.c (initialize_argument_information): When producing tail
20764 call also turn SSA_NAMES passed by references to original PARM_DECLs
20766 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
20769 * lra-remat.c (do_remat): Process input and non-input insn
20770 registers separately.
20772 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20775 * valtrack.c (debug_lowpart_subreg): New function.
20776 (dead_debug_insert_temp): Use it.
20778 PR middle-end/65680
20779 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
20780 into signed HOST_WIDE_INT the same as negative bit_offset.
20782 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
20784 * ipa-comdats.c (ipa_comdats): Visit all thunks
20785 to set proper comdat group.
20787 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20790 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
20791 on constants for NEON VSTRUCT modes.
20793 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20794 Iain Sandoe <iain@codesourcery.com>
20797 * configure: Regenerate.
20799 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20802 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
20803 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
20804 that LFD is used to load double constants instead of LFS. Add
20805 defaults for all costs structures. Add comments for missing
20806 initialization fields.
20807 (size32_cost): Likewise.
20808 (size64_cost): Likewise.
20809 (rs64a_cost): Likewise.
20810 (mpccore_cost): Likewise.
20811 (ppc403_cost): Likewise.
20812 (ppc405_cost): Likewise.
20813 (ppc440_cost): Likewise.
20814 (ppc476_cost): Likewise.
20815 (ppc601_cost): Likewise.
20816 (ppc603_cost): Likewise.
20817 (ppc604_cost): Likewise.
20818 (ppc604e_cost): Likewise.
20819 (ppc620_cost): Likewise.
20820 (ppc630_cost): Likewise.
20821 (ppccell_cost): Likewise.
20822 (ppc750_cost): Likewise.
20823 (ppc7450_cost): Likewise.
20824 (ppc8540_cost): Likewise.
20825 (ppce300c2c3_cost): Likewise.
20826 (ppce500mc_cost): Likewise.
20827 (ppce500mc64_cost): Likewise.
20828 (ppce5500_cost): Likewise.
20829 (ppce6500_cost): Likewise.
20830 (titan_cost): Likewise.
20831 (power4_cost): Likewise.
20832 (power6_cost): Likewise.
20833 (power7_cost): Likewise.
20834 (power8_cost): Likewise.
20835 (ppca2_cost): Likewise.
20836 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
20838 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
20839 instead of XXLOR to copy SFmode to clear out dirty bits created
20840 when SFmode denormals are generated.
20841 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
20842 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
20844 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20846 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
20847 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
20848 * config/aarch64/aarch64-tune.md: Regenerate.
20850 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20852 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
20853 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
20854 * config/arm/arm-cores.def (exynos-m1): New core.
20855 * config/arm/arm-tune.md: Regenerate.
20856 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
20857 * config/arm/bpabi.h: Likewise.
20859 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
20861 * ipa-cp (set_single_call_flag): Remove too
20862 restrictive assert.
20864 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
20866 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
20867 GOMP_offload_unregister from the destructor.
20869 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
20871 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
20872 flags for instrumentation thunk.
20873 (chkp_produce_thunks): Likewise.
20875 2015-04-05 Martin Liska <mliska@suse.cz>
20878 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
20879 has computed data structure.
20880 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20882 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
20884 * invoke.texi (inline-unit-growth): Increase growth to 20%
20885 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
20887 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
20890 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
20892 (lra_rematerialization_iter): New.
20893 * lra.c (lra): Initialize lra_rematerialization_iter.
20894 Stop updating lra_constraint_new_regno_start after switching of
20895 inheritance and rematerialization.
20896 * lra-remat.c (lra_rematerialization_iter): New.
20897 (lra_remat): Add printing pass iteration. Do rematerialization
20898 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
20900 2015-04-04 Richard Biener <rguenther@suse.de>
20902 PR tree-optimization/64909
20903 PR tree-optimization/65660
20904 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
20905 to take a cost vector for scalar iteration cost.
20906 (vect_get_single_scalar_iteration_cost): Likewise.
20907 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
20908 Compute the scalar iteration cost into a cost vector.
20909 (vect_get_known_peeling_cost): Use the scalar cost vector to
20910 account for the cost of the peeled iterations.
20911 (vect_estimate_min_profitable_iters): Likewise.
20912 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20915 2015-04-04 Alan Modra <amodra@gmail.com>
20919 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
20920 0.0 constant unless TARGET_VSX.
20921 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
20924 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20927 * ipa-inline-transform.c (inline_call): Skip sanity check to work
20930 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20933 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
20934 speculative indirect edges to avoid ordering issue.
20936 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20939 * ipa-inline.c (edge_badness): Add combined size to the denominator.
20941 2015-04-03 Jakub Jelinek <jakub@redhat.com>
20943 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
20944 TYPE_ARTIFICIAL on the .omp_data* types.
20946 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20948 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
20949 instrumentation thunks.
20951 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20953 * config/i386/i386.c (ix86_expand_call): Avoid nested
20954 PARALLEL in returned call value.
20956 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20958 * lto-cgraph.c (input_cgraph_1): Always link instrumented
20959 assembler name with original one.
20961 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20963 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
20965 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20967 Revert parts of r216820.
20968 * config/i386/i386.md (movqi_internal): Correct type calculation
20969 for alternatives 3 and 5.
20971 2015-04-02 Jakub Jelinek <jakub@redhat.com>
20973 PR preprocessor/61977
20974 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
20975 predefine __vector/__bool/__pixel macros nor context sensitive
20976 macros for CLK_ASM.
20977 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
20979 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
20981 * config/pa/pa.c (pa_output_move_double): Directly handle register
20982 indexed memory operand. Simplify handling of scaled register indexed
20985 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20988 * config/i386/linux-common.h (MPX_SPEC): New.
20989 (CHKP_SPEC): Add MPX_SPEC.
20990 * doc/invoke.texi (-fcheck-pointer-boudns): Document
20991 possible issues with '-z bndplt' support in linker.
20993 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20995 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
20996 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
20997 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
20998 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
20999 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
21001 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
21003 * config/i386/sync.md (UNSPEC_MOVA): Remove.
21004 (atomic_load<mode>): Change operand 0 predicate to
21005 nonimmediate_operand and fix up the destination when needed.
21007 (atomic_loaddi_fpu): Use UNSPEC_LDA.
21008 (atomic_store<mode>): Change operand 1 predicate to
21009 nonimmendate_operand and move the source to register when needed.
21011 (atomic_store<mode>_1): Use UNSPEC_STA.
21012 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
21013 Fix moves from memory operand. Use UNSPEC_STA.
21015 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21017 * expmed.c (strict_volatile_bitfield_p): Check that the access will
21018 not cross a MODESIZE boundary.
21019 (store_bit_field, extract_bit_field): Added assertions in the
21020 strict volatile bitfields code path.
21022 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
21025 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
21026 Increase args array size by one to avoid buffer overflow.
21028 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
21030 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21032 * ipa-inline.c (edge_badness): Add wrapper penalty.
21033 (sum_callers): Move up.
21034 (inline_small_functions): Set single_caller.
21035 * ipa-inline.h (inline_summary): Add single_caller.
21036 * ipa-split.c (split_function): Set split_part.
21037 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
21038 * cgraph.h (cgraph_node): Add split_part.
21040 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
21043 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
21044 Do not split operands 0 and operands 2 to halfmode.
21045 (atomic_compare_and_swap<mode>): Update for
21046 atomic_compare_and_swap<dwi>_doubleword changes.
21048 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
21050 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
21051 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
21052 no caching is done.
21054 2015-03-31 Martin Liska <mliska@suse.cz>
21057 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
21058 has already filled up function summary.
21059 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21061 2015-03-31 Richard Biener <rguenther@suse.de>
21063 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
21066 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
21068 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
21070 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
21071 (s390_asm_output_function_label): Adapt to new signature of
21072 s390_function_num_hotpatch_hw
21073 Optimise the code generating assembler output.
21074 Add comments to assembler file.
21076 2015-03-31 Richard Biener <rguenther@suse.de>
21078 PR middle-end/65626
21079 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
21080 of the noreturn call so it is last and cleanup_control_flow_bb
21081 can do the CFG part.
21083 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
21086 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
21087 same_comdat_group for external symbols.
21088 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
21089 infinite same_comdat_group traversal loop.
21091 2015-03-31 Jakub Jelinek <jakub@redhat.com>
21094 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
21095 automatically to $headers.
21097 2015-03-30 Jakub Jelinek <jakub@redhat.com>
21100 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
21101 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
21103 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
21105 * ipa-prop.c (param_type_may_change_p): Likewise.
21106 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
21107 (remove_unused_scope_block_p): Add in_ctor_dtor_block
21108 argument. Before inlining, preserve
21109 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
21110 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
21112 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
21114 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21117 * ipa-inline.c (edge_badness): Base denominator on callee's
21120 2015-03-27 Martin Jambor <mjambor@suse.cz>
21123 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
21124 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
21125 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
21126 node_calling_single_call.
21127 * ipa-cp.c (count_callers): New function.
21128 (set_single_call_flag): Likewise.
21129 (initialize_node_lattices): Count callers and set single_flag_call if
21131 (incorporate_penalties): New function.
21132 (good_cloning_opportunity_p): Use it, dump new flags.
21133 (propagate_constants_topo): Set node_within_scc flag if appropriate.
21134 * doc/invoke.texi (ipa-cp-recursion-penalty,
21135 ipa-cp-single-call-pentalty): Document.
21137 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21140 * symtab.c (symtab_node::get_partitioning_class): Register vars
21142 * varpool.c (symbol_table::output_variables) Do not assemble unefined
21143 decls for non-symbols.
21145 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
21148 * output.h (default_binds_local_p_2): New.
21149 * varasm.c (default_binds_local_p_2): Renamed to ...
21150 (default_binds_local_p_3): This. Don't return true on protected
21151 data symbol if protected data may be external.
21152 (default_binds_local_p): Use default_binds_local_p_3.
21153 (default_binds_local_p_1): Likewise.
21154 (default_binds_local_p_2): New.
21155 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
21156 default_binds_local_p_2 if TARGET_MACHO is undefined.
21158 2015-03-27 Jakub Jelinek <jakub@redhat.com>
21161 * config/i386/i386.c (legitimize_pic_address): If base
21162 is SYMBOL_REF or LABEL_REF using %rip addressing, force
21163 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
21165 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21168 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
21171 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21174 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
21175 of optimized out indirect call.
21176 (redirect_to_unreachable): Always build symbol table node for
21177 BUILT_IN_UNREACHABLE
21179 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
21182 * ira-costs.c (record_reg_classes): Process all constraint string
21185 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
21187 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
21191 * config/c6x/constraints.md (S3): New constraint.
21192 * config/c6x/c6x.md (real_jump): Use it.
21194 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21196 PR middle-end/65595
21197 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
21198 do redirection if the call is not optimized out.
21200 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
21203 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
21204 (fchkp-check-incomplete-type): Add LTO.
21205 (fchkp-zero-input-bounds-for-main): Likewise.
21206 (fchkp-first-field-has-own-bounds): Likewise.
21207 (fchkp-narrow-bounds): Likewise.
21208 (fchkp-narrow-to-innermost-array): Likewise.
21209 (fchkp-use-static-bounds): Likewise.
21210 (fchkp-use-static-const-bounds): Likewise.
21211 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21213 2015-03-27 Marek Polacek <polacek@redhat.com>
21215 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
21217 2015-03-27 Marek Polacek <polacek@redhat.com>
21220 * ubsan.c (ubsan_create_edge): New function.
21221 (instrument_bool_enum_load): Call it.
21222 (instrument_nonnull_arg): Likewise.
21223 (instrument_nonnull_return): Likewise.
21224 (instrument_object_size): Likewise.
21226 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21228 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
21231 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21234 * lto-streamer.h (class lto_location_cache): New.
21235 (struct data_in): Add location_cache.
21236 (lto_input_location): Update prototype.
21237 (stream_input_location_now): New.
21238 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
21239 pointer to location.
21240 (stream_input_location): Update.
21241 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
21242 (warn_odr): Apply location cache before warning.
21243 (lto_input_location): Update prototype.
21244 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
21245 Use stream_input_location_now.
21246 * lto-streamer-in.c (lto_location_cache::current_cache): New static
21248 (lto_location_cache::cmp_loc): New function.
21249 (lto_location_cache::apply_location_cache): New function.
21250 (lto_location_cache::accept_location_cache): New function.
21251 (lto_location_cache::revert_location_cache): New function.
21252 (lto_location_cache::input_location): New function.
21253 (lto_input_location): Do location caching.
21254 (stream_input_location_now): New function.
21255 (input_eh_region, input_struct_function_base): Use
21256 stream_input_location_now.
21257 (lto_data_in_create): use new.
21258 (lto_data_in_delete): Use delete.
21259 * tree-streamer-in.c (unpack_ts_block_value_fields,
21260 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
21261 lto_input_ts_exp_tree_pointers): Update for cached location api.
21263 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21266 * passes.def: Add pass_nothrow.
21267 * ipa-pure-const.c: (pass_data_nothrow): New.
21268 (pass_nothrow): New.
21269 (pass_nothrow::execute): New.
21270 (make_pass_nothrow): New.
21271 * tree-pass.h (make_pass_nothrow): Declare.
21273 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21275 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
21276 edge to change by speculation resolution or redirection.
21277 (edge_set_predicate): Likewise.
21278 (inline_summary_t::duplicate): Likewise.
21279 (remap_edge_summaries): Likewise.
21281 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21283 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
21285 (can_inline_edge_p): Relax option matching for always inline functions.
21287 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
21290 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
21291 Check operand 4 and operand 0 for equality.
21292 (avx512f_vextract<shuffletype>32x4_1_maskm):
21293 Check operand 6 and operand 0 for equality.
21294 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
21296 (vec_extract_hi_<mode>_maskm): Ditto.
21298 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21300 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
21301 dead calls back to live.
21302 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
21304 (cgraph_node::verify_node): ... here; verify only callee edges,
21306 * cif-code.def (CILK_SPAWN): New code.
21308 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21310 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
21311 (edge_set_predicate): Use it to mark unreachable edges.
21312 (inline_summary_t::duplicate): Remove unnecesary code.
21313 (remap_edge_summaries): Likewise.
21314 (dump_inline_summary): Report contains_cilk_spawn.
21315 (compute_inline_parameters): Compute contains_cilk_spawn.
21316 (inline_read_section, inline_write_summary): Stream
21317 contains_cilk_spawn.
21318 * ipa-inline.c (can_inline_edge_p): Do not touch
21319 DECL_STRUCT_FUNCTION that may not be available;
21320 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
21321 remove check for callee_fun->can_throw_non_call_exceptions and
21322 replace it by optimization attribute check; check for flag_exceptions.
21323 * ipa-inline-transform.c (inline_call): Maintain
21324 DECL_FUNCTION_PERSONALITY
21325 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
21327 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21329 PR tree-optimization/65551
21330 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
21331 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
21333 2015-03-26 Richard Biener <rguenther@suse.de>
21335 PR middle-end/65555
21336 * tree-cfg.c (verify_gimple_call): Do not require a call to
21337 have no LHS if it wasn't recognized as control altering yet.
21339 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21341 PR tree-optimization/64715
21342 * passes.def: Add another instance of pass_object_sizes before ccp1.
21343 * tree-object-size.c (pass_object_sizes::execute): In
21344 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
21345 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
21346 __bos result and the computed constant. Remove redundant
21347 checks, obsoleted by gimple_call_builtin_p test.
21349 * var-tracking.c (variable_tracking_main_1): Don't track
21350 variables for targetm.no_register_allocation targets.
21352 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
21354 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
21355 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
21357 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
21360 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
21361 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
21362 0.0 is correctly setup.
21363 (extenddftf2_internal): Likewise.
21365 2015-03-25 Sebastian Pop <s.pop@samsung.com>
21367 PR tree-optimization/65177
21368 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
21370 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
21371 edges not adjacent on the path to the original code.
21373 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
21376 * doc/install.texi (Building a native compiler): Document new
21377 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
21378 configuration assumes that the host supports the linker plugin.
21380 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
21383 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
21384 chain for generated call.
21386 2015-03-25 Richard Biener <rguenther@suse.de>
21388 * passes.c (pass_manager::execute_early_local_passes): Guard
21389 execution of pass_chkp_instrumentation_passes with
21390 flag_check_pointer_bounds.
21391 (pass_chkp_instrumentation_passes::gate): Likewise.
21393 2015-03-25 Martin Liska <mliska@suse.cz>
21395 PR tree-optimization/65538
21396 * symbol-summary.h (function_summary::~function_summary):
21397 Relese memory for allocated summaries.
21398 (function_summary::release): New function.
21400 2015-03-25 Jakub Jelinek <jakub@redhat.com>
21403 * lto-streamer-out.c (DFS::worklist): New struct.
21404 (DFS::worklist_vec): New data member.
21405 (DFS::next_dfs_num): Remove.
21406 (DFS::DFS): Rewritten using worklist instead of recursion,
21407 using most of code from DFS::DFS_write_tree.
21408 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
21409 pass it to DFS_write_tree calls.
21410 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
21411 quick initial checks push it into worklist_vec and return.
21413 2015-03-25 Richard Biener <rguenther@suse.de>
21415 PR middle-end/65519
21416 * genmatch.c (expr::gen_transform): Re-write to avoid
21417 using gimple_build.
21419 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21421 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
21423 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21425 * config/arm/arm.opt (print_tune_info): New option.
21426 * config/arm/arm.c (arm_print_tune_info): New function.
21427 (arm_file_start): Call arm_print_tune_info.
21428 * config/arm/arm-protos.h (struct tune_params): Add comment.
21429 * doc/invoke.texi (@item -mprint-tune-info): New item.
21430 (-mtune): mention it in ARM Option Summary.
21432 2015-03-25 DJ Delorie <dj@redhat.com>
21434 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
21437 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
21438 Martin Liska <mliska@suse.cz>
21440 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
21441 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
21442 (sem_item::add_type): New function.
21443 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
21444 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
21445 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
21446 (sem_function::equals_wpa): Fix typo.
21447 * ipa-icf.h (sem_item::add_type): New function.
21448 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
21451 2015-03-24 Jakub Jelinek <jakub@redhat.com>
21453 PR tree-optimization/65533
21454 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
21455 with swapped operands, call vect_free_slp_tree on
21456 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
21459 2015-03-24 Richard Biener <rguenther@suse.de>
21461 PR middle-end/65517
21462 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
21463 for fixup if necessary.
21465 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
21467 * doc/extend.texi (Function Attributes): Add @cindex entries
21468 for all attributes and regularize their format. Delete text
21469 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
21470 information about "eightbit_data", "tiny_data", and "model"
21471 variable attributes to the Variable Attributes section. Fix
21472 some obvious typos and copy-editing issues.
21473 (Variable Attributes, Type Attributes): Likewise add/fix
21474 @cindex entries for all attributes.
21476 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21479 * tree-chkp.c (chkp_build_returned_bound): Ignore
21480 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
21482 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
21485 * config/sh/predicates.md (simple_mem_operand,
21486 displacement_mem_operand): Add test for reg.
21487 (short_displacement_mem_operand): Test for displacement_mem_operand
21488 before invoking sh_disp_addr_displacement.
21489 * config/sh/constraints.md (Sdd, Sra): Simplify.
21490 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
21491 Remove redundant displacement_mem_operand tests.
21493 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
21496 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
21497 the same -mmcu=MCU more than once.
21499 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21502 * ipa-devirt.c: Remove duplicate demangle.h include.
21505 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
21507 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
21508 REG_POINTER on *destptr after adjusting it for prologue size.
21511 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
21512 ultimate_alias_target ()->order ints instead of
21513 ultimate_alias_target () pointers.
21515 2015-03-23 Richard Biener <rguenther@suse.de>
21517 PR tree-optimization/65518
21518 * tree-vect-stmts.c (vectorizable_load): Reject single-element
21519 interleaving cases we generate absymal code for.
21521 2015-03-23 Richard Biener <rguenther@suse.de>
21523 PR tree-optimization/65494
21524 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
21526 (vect_analyze_slp_instance): But do that here, always and once.
21528 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21530 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
21531 adding T or multiplying by T+1 and subracting T.
21533 2015-03-22 Jeff Law <law@redhat.com>
21535 PR rtl-optimization/64317
21536 * Makefile.in (OBJS): Add gcse-common.c
21537 * gcse.c: Include gcse-common.h
21538 (struct modify_pair_s): Move structure definition to gcse-common.h
21539 (compute_transp): Move function to gcse-common.c.
21540 (canon_list_insert): Similarly.
21541 (record_last_mem_set_info): Break out some code and put it into
21542 gcse-common.c. Call into the new common code.
21543 (compute_local_properties): Pass additional arguments to compute_transp.
21544 * postreload-gcse.c: Include gcse-common.h and df.h
21545 (modify_mem_list_set, blocks_with_calls): New variables.
21546 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
21547 (get_bb_avail_insn): Pass in the expression index too.
21548 (alloc_mem): Allocate memory for the new bitmaps and lists.
21549 (free_mem): Free memory for the new bitmaps and lists.
21550 (insert_expr_in_table): Record a bitmap index for each entry we
21552 (record_last_mem_set_info): Call into common code in gcse-common.c.
21553 (get_bb_avail_insn): If no available insn was found in the requested
21554 BB. If BB has a single predecessor, see if the expression is
21555 transparent in BB and available in that single predecessor.
21556 (compute_expr_transp): New wrapper for compute_transp.
21557 (eliminate_partially_redundant_load): Pass expression's bitmap_index
21558 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
21559 (gcse_after_reload_main): If there are elements in the hash table,
21560 then compute transparency for all the elements in the hash table.
21561 * gcse-common.h: New file.
21562 * gcse-common.c: New file.
21564 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
21566 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
21568 (System Headers): Likewise.
21570 (Traditional macros): Likewise.
21571 (Invocation): Likewise.
21572 (Option Index): Likewise.
21573 * doc/cppopts.texi (-M): Likewise.
21574 (-finput-charset): Likewise.
21575 (--help): Likewise.
21576 * doc.invoke.texi (AVR Options): Likewise.
21577 (V850 Options): Likewise.
21579 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
21582 * ipa-devirt.c: Include demangle.h
21583 (odr_type_d): Add field rtti_broken.
21584 (odr_subtypes_equivalent_p): Do not require name to match.
21585 (compare_virtual_tables): Fix typo; if type already has ODR violation,
21586 bypass the tests; be ready for function referneces in vtables that are
21587 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
21588 (warn_odr): Give up for nameless types.
21589 (warn_types_mismatch): Report mismatch in mangled names;
21590 report mismatch in anonymous namespaces; look into component types to
21591 give useful error; report when mismatch is dragged in from other ODR
21593 (odr_types_equivalent_p): Match types for being polymorphic; avoid
21594 duplicated diagnostics.
21595 (add_type_duplicate): Reorder checks so more informative ones come
21596 first; fix typo; do not output "the extra base is defined here" when
21598 (BINFO_N_BASE_BINFOS): Relax sanity check.
21600 2015-03-22 Martin Liska <mliska@suse.cz>
21601 Jakub Jelinek <jakub@redhat.com>
21603 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
21604 masks that can potentially include a builtin.
21605 (ix86_add_new_builtins): Introduce fast filter for isa values
21606 that cannot trigger builtin inclusion.
21608 2015-03-22 Martin Liska <mliska@suse.cz>
21610 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
21611 (sem_item::update_hash_by_local_refs): Likewise.
21612 (sem_variable::get_hash): Empty line is fixed.
21613 (sem_item_optimizer::execute): Include adding of hash references.
21614 (sem_item_optimizer::update_hash_by_addr_refs): New function.
21615 (sem_item_optimizer::build_hash_based_classes): Use local hash.
21616 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
21617 (sem_item::update_hash_by_local_refs): Likewise.
21619 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21622 * ipa-comdats.c (enqueue_references): Walk through thunks.
21623 (ipa_comdats): Likewise.
21624 (set_comdat_group_1): New function.
21626 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21629 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
21632 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
21633 Gerald Pfeifer <gerald@pfeifer.com>
21635 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
21637 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
21638 Sandra Loosemore <sandra@codesourcery.com>
21640 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
21641 function parameter declaration.
21642 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
21643 Update arguments to nios2_adjust_call_address().
21644 (sibcall_internal): Rename from *sibcall.
21645 (sibcall_value_internal): Rename from *sibcall_value.
21646 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
21647 (nios2_large_got_address): Add target temp reg parameter.
21648 (nios2_got_address): Adjust call to nios2_large_got_address, add
21649 force_reg around it.
21650 (nios2_load_pic_address): Add target temp reg parameter, replace call
21651 to nios2_got_address with corresponding code.
21652 (nios2_legitimize_constant_address): Update call to
21653 nios2_load_pic_address.
21654 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
21655 to use temp reg for PIC loading purposes.
21656 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
21657 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21658 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
21660 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21662 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
21663 usage of "the @option{...}".
21664 (-Wopenmp-simd): Likewise.
21665 (-fsanitize-recover): Likewise.
21666 (-fsanitize-undefined-trap-on-error): Likewise.
21668 (tracer-dynamic-coverage-feedback): Likewise.
21669 (reorder-block-duplicate-feedback): Likewise.
21670 (loop-unroll-jam-size): Likewise.
21673 (-mabs=legacy): Likewise.
21674 (-mupper-regs-df): Likewise.
21675 (-mupper-regs-sf): Likewise.
21676 (-mpointers-to-nested-functions): Likewise.
21678 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21680 * doc/extend.texi (Cilk Plus Builtins): Add markup.
21682 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21684 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
21685 additional index entries and cross-references.
21686 (-fchkp-check-incomplete-type): Likewise.
21687 (-fchkp-first-field-has-own-bounds): Likewise.
21688 (-fchkp-narrow-to-innermost-array): Likewise.
21689 (-fchkp-use-fast-string-functions): Likewise.
21690 (-fchkp-use-nochk-string-functions): Likewise.
21691 (-fchkp-use-static-const-bounds): Likewise.
21692 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21693 (-fchkp-instrument-marked-only): Likewise.
21694 (-fchkp-use-wrappers): Likewise.
21695 (-static-libmpx): Likewise.
21696 (-static-libmpxwrappers): Likewise.
21697 * doc/extend.texi (bnd_legacy): Likewise.
21698 (bnd_instrument): Likewise.
21699 (bnd_variable_size): Likewise.
21700 (Pointer Bounds Checker builtins): Likewise.
21702 2015-03-21 Tom de Vries <tom@codesourcery.com>
21704 PR tree-optimization/65458
21705 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
21706 * cgraph.h (cgraph_node): Add parallelized_function field.
21707 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
21708 (input_overwrite_node): Read parallelized_function field.
21709 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
21710 parallelized_function on cgraph_node for child_fn.
21711 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
21712 Remove include of gt-tree-parloops.h.
21713 (parallelized_functions): Remove static variable.
21714 (parallelized_function_p): Rewrite using parallelized_function field of
21716 (create_loop_fn): Remove adding to parallelized_functions.
21717 * Makefile.in (GTFILES): Remove tree-parloops.c
21719 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
21721 PR rtl-optimization/64366
21722 * lra.c (lra_update_insn_regno_info): Consider regs in
21723 CALL_INSN_FUNCTION_USAGE memory.
21725 2015-03-20 Richard Biener <rguenther@suse.de>
21727 PR middle-end/64715
21728 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
21729 for type comparison and gcc_checking_assert.
21730 (chrec_fold_plus_poly_poly): Likewise.
21731 (chrec_fold_multiply_poly_poly): Likewise.
21732 (chrec_convert_1): Likewise.
21733 * gimplify.c (gimplify_expr): Remove premature folding of
21734 &X + CST to &MEM[&X, CST].
21736 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21738 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
21740 (ipa_inline): Recompute inline_failed codes.
21741 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21742 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
21745 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
21747 PR rtl-optimization/60851
21748 * recog.c (constrain_operands): Accept a pseudo register before reload
21749 for LRA enabled targets.
21751 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
21754 * config/rs6000/predicates.md (easy_fp_constant): Remove special
21755 -ffast-math handling that kept non-0 constants live in the RTL
21756 until reload. Remove logic testing the number of instructions it
21757 took to create a constant in a GPR that was never used, due to a
21758 test for soft-float earlier.
21759 (memory_fp_constant): Delete, no longer used.
21761 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
21762 alternatives for loading non-0 constants into GPRs for hard
21763 floating point that is no longer needed due to changes in
21764 easy_fp_constant. Add support for loading 0.0 into GPRs.
21765 (mov<mode>_hardfloat32): Likewise.
21766 (mov<mode>_hardfloat64): Likewise.
21767 (mov<mode>_64bit_dm): Likewise.
21768 (movtd_64bit_nodm): Likewise.
21769 (pre-reload move FP constant define_split): Delete define_split,
21770 since it is no longer used.
21771 (extenddftf2_internal): Remove GHF constraints that are not valid
21774 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
21776 PR rtl-optimization/63491
21777 * lra-constraints.c (check_and_process_move): Use src instead of
21778 sreg. Remove some dead code.
21780 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
21783 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
21784 (sem_variable::merge): Likewise.
21786 2015-03-19 Martin Liska <mliska@suse.cz>
21789 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
21790 all fields of cgraph_thunk_info.
21792 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
21794 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
21795 clone instrumented thunks.
21797 2015-03-19 Richard Biener <rguenther@suse.de>
21800 2015-03-10 Richard Biener <rguenther@suse.de>
21802 PR middle-end/63155
21803 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
21804 * tree-ssa-coalesce.c: Include timevar.h.
21805 (attempt_coalesce): Handle graph being NULL.
21806 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
21807 Split out abnormal coalescing to ...
21808 (perform_abnormal_coalescing): ... this function.
21809 (coalesce_ssa_name): Perform abnormal coalescing without computing
21811 (verify_ssa_coalescing_worker): New function.
21812 (verify_ssa_coalescing): Likewise.
21814 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
21815 Jakub Jelinek <jakub@redhat.com>
21818 * tsan.c (instrument_gimple): Clear tail call flag on
21821 2015-03-19 Jakub Jelinek <jakub@redhat.com>
21824 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
21825 call in the return bb.
21826 (find_split_points): Add RETURN_BB argument, don't call
21828 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
21829 if true append TSAN_FUNC_EXIT internal call after the call to
21830 the split off function.
21831 (execute_split_functions): Call find_return_bb here.
21832 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
21833 Adjust find_split_points and split_function calls.
21835 2015-03-18 DJ Delorie <dj@redhat.com>
21837 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
21838 (iorqi3_virt): Likewise.
21840 2015-03-18 Tom de Vries <tom@codesourcery.com>
21842 * tree-parloops.c (parallelize_loops): Make static.
21843 * tree-parloops.h (parallelize_loops): Remove extern declaration.
21845 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
21847 PR middle-end/64491
21849 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
21851 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
21852 condition would be removed due to undefined behaviour.
21854 2015-03-18 Martin Liska <mliska@suse.cz>
21857 * cgraph.c (cgraph_node::get_create): Remove unnecessary
21858 xstrdup_for_dump wrapper.
21859 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
21861 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
21862 with xstrdup_for_dump.
21863 (sem_variable::equals): Likewise.
21864 (sem_item_optimizer::read_section): Use symtab_node::name instead of
21866 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
21867 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
21868 symtab_node::asm_name with xstrdup_for_dump.
21869 (congruence_class::dump): Use symtab_node::name instead of
21871 * ipa-icf.h (symtab_node::name): Remove.
21872 (symtab_node::asm_name): Likewise.
21874 2015-03-18 Jakub Jelinek <jakub@redhat.com>
21876 PR tree-optimization/65450
21877 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
21879 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
21880 it instead of duplicate_ssa_name_ptr_info.
21883 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
21885 2015-03-18 Richard Biener <rguenther@suse.de>
21887 * tree-data-ref.h (struct access_matrix): Remove.
21888 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
21889 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
21890 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
21891 (am_vector_index_for_loop): Likewise.
21892 (struct data_reference): Remove access_matrix member.
21893 (DR_ACCESS_MATRIX): Remove.
21894 (lambda_vector_new): Add comment.
21895 (lambda_matrix_new): Use XOBNEWVEC.
21897 2015-03-18 Richard Biener <rguenther@suse.de>
21899 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
21900 (pass_ch::execute): Cleanup the CFG only if we did sth.
21901 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
21903 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21905 * expmed.c (synth_mult): Use std::swap instead of manually
21906 swapping algorithms.
21908 2015-03-18 Jakub Jelinek <jakub@redhat.com>
21911 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
21913 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
21916 * config/avr/avr.opt (-nodevicelib): New option.
21917 * doc/invoke.texi (AVR Options): Document it.
21918 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
21919 libgcc.a, libc.a, libm.a.
21920 * config/avr/specs.h: Same.
21921 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
21922 which don't (directly) depend on the device. Print more help.
21923 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
21924 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
21925 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
21927 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
21928 for specs file name.
21929 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
21930 * config/avr/avr-mcus.def: Adjust initializers and comments.
21932 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
21934 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
21935 DECL_ONE_ONLY to check if decl is one only.
21936 * ipa-split.c (consider_split): Limit splitt of one only functions.
21938 2015-03-16 Jakub Jelinek <jakub@redhat.com>
21940 PR tree-optimization/65427
21941 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
21943 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
21945 2015-03-16 Marek Polacek <polacek@redhat.com>
21947 * cgraph.h (add_new_static_var): Remove declaration.
21948 * varpool.c (add_new_static_var): Remove function.
21950 2015-03-16 Jakub Jelinek <jakub@redhat.com>
21952 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
21953 instead of vec<tree> * with vec_alloc and release for args.
21956 PR middle-end/65431
21957 * omp-low.c (delete_omp_context): Only splay_tree_delete
21958 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
21959 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
21961 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
21964 * cfgexpand.c (align_base): New function.
21965 (alloc_stack_frame_space): Call it.
21966 (expand_stack_vars): Align prev_frame to be sure
21967 data->asan_vec elements aligned properly.
21969 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
21971 PR middle-end/65409
21972 * expr.c (store_field): Do not do a direct block copy if the source is
21973 a PARALLEL with BLKmode.
21975 2015-03-16 Tom de Vries <tom@codesourcery.com>
21977 PR middle-end/65414
21979 2015-03-12 Tom de Vries <tom@codesourcery.com>
21981 PR rtl-optimization/64895
21982 * lra-lives.c (check_pseudos_live_through_calls): Use
21983 actual_call_used_reg_set instead of call_used_reg_set, if available.
21985 2015-03-16 Alan Modra <amodra@gmail.com>
21988 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
21989 Modify Z->r bswapdi splitter to use dest in place of scratch.
21990 In r->Z and Z->r bswapdi splitter rename word_high, word_low
21991 to word1, word2 and rearrange logic to suit.
21992 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
21993 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
21994 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
21995 Add one '?' on r->r. Modify Z->r splitter to avoid need for
21998 2015-03-14 Jakub Jelinek <jakub@redhat.com>
22000 PR tree-optimization/65369
22001 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
22002 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
22003 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
22005 PR tree-optimization/65418
22006 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
22007 are casts in the first PLUS_EXPR operand, ensure tbias and
22008 *totallowp are in the inner type.
22010 PR rtl-optimization/65401
22011 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
22012 argument. If true, adjust_address_nv of x with big-endian
22013 correction for the mode widening to GET_MODE (y).
22014 (make_field_assignment): Don't do MEM mode widening here.
22015 Use MEM_P instead of GET_CODE == MEM.
22017 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
22019 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
22020 the external decls.
22022 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22025 * config/arm/arm.c (arm_gen_constant, AND case): Use
22026 ARM_SIGN_EXTEND when constructing AND mask.
22028 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22030 * graph.c (print_graph_cfg): Make function names visible and append
22031 parenthesis to it. Also make groups of basic blocks belonging to the
22032 same function visible.
22034 2015-03-12 Richard Biener <rguenther@suse.de>
22036 PR middle-end/44563
22037 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
22038 to avoid quadratic behavior with inline expansion splitting blocks.
22039 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
22040 with the successor if the predecessor will be merged with it.
22041 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
22042 entry block with its successor.
22044 2015-03-13 Richard Biener <rguenther@suse.de>
22046 PR middle-end/44563
22047 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
22048 (cleanup_tree_cfg_1): Do not call it.
22049 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
22050 (fixup_noreturn_call): Mark the stmt as control altering.
22051 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
22053 (pass_data_fixup_cfg): Produce a dump file.
22054 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
22055 (need_noreturn_fixup): New global.
22056 (pass_dominator::execute): Fixup queued noreturn calls.
22057 (optimize_stmt): Queue calls that became noreturn for fixup.
22058 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
22059 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
22060 (el_to_fixup): New global.
22061 (eliminate_dom_walker::before_dom_childre): Queue calls that
22062 became noreturn for fixup.
22063 (eliminate): Fixup queued noreturn calls.
22064 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
22065 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
22066 (substitute_and_fold_dom_walker::before_dom_children): Queue
22067 alls that became noreturn for fixup.
22068 (substitute_and_fold): Fixup queued noreturn calls.
22070 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
22072 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
22073 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
22074 are building; for methods check ODR type of class they belong to if
22075 they may lead to a polymorphic call.
22076 (sem_function::compare_polymorphic_p): Be bit smarter about testing
22077 when function may lead to a polymorphic call.
22078 (sem_function::compare_type_list): Remove.
22079 (sem_variable::equals): Update use of compatible_types_p.
22080 (sem_variable::parse_tree_refs): Remove.
22081 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
22083 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
22085 (func_checker::compatible_polymorphic_types_p): Break out from ...
22086 (unc_checker::compatible_types_p): ... here.
22087 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
22089 (unc_checker::compatible_types_p): Update.
22090 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
22093 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22095 PR rtl-optimization/65235
22096 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
22097 When first element of vec_concat is const_int, calculate its size
22098 using second element.
22100 2015-03-12 Richard Biener <rguenther@suse.de>
22102 PR middle-end/65270
22103 * fold-const.c (operand_equal_p): Fix ordering of resetting
22104 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
22106 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
22108 * config/s390/s390.c (s390_reorg): Move code to output nops after label
22110 (s390_asm_output_function_label): Likewise.
22111 * config/s390/s390.c (s390_asm_output_function_label):
22112 Fix function label alignment with -mhtopatch.
22113 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
22114 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
22115 ("nop_2_byte"): New define_insn.
22116 ("nop_4_byte"): Likewise.
22117 ("nop_6_byte"): Likewise.
22118 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
22119 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
22121 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22124 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
22127 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22130 * toplev.c (process_options): Restrict Pointer Bounds Checker
22131 usage with Address Sanitizer.
22133 2015-03-12 Richard Biener <rguenther@suse.de>
22135 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
22137 * omp-low.c (expand_omp_taskreg): Split block before removing
22139 (expand_omp_target): Likewise.
22140 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
22141 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
22142 stmt to split_block.
22144 2015-03-12 Tom de Vries <tom@codesourcery.com>
22146 PR rtl-optimization/64895
22147 * lra-lives.c (check_pseudos_live_through_calls): Use
22148 actual_call_used_reg_set instead of call_used_reg_set, if available.
22150 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22152 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
22153 (cgraph_node::remove): Likewise.
22154 (cgraph_node::get_untransformed_body): Likewise.
22155 * varpool.c (varpool_node::remove): Likewise.
22156 (varpool_node::get_constructor): Add sanity check.
22158 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
22160 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
22162 (-fabi-compat-version): Likewise.
22163 (-ffriend-injection): Likewise.
22164 (-Wdeclaration-after-statement): Likewise.
22165 (-fomit-frame-pointer): Likewise.
22166 (-ftree-coalesce-inlined-vars): Likewise.
22167 (-fvisibility=): Likewise.
22168 * doc/extend.texi (Typeof): Likewise.
22169 (Zero Length): Likewise.
22170 (Escaped Newlines): Likewise.
22171 (Compound Literals): Likewise.
22172 (Function Attributes): Likewise.
22173 (Label Attributes): Likewise.
22174 (Type Attributes): Likewise.
22175 (Function Names): Likewise.
22176 (Other Builtins): Likewise.
22177 (Function Specific Option Pragmas): Likewise.
22178 (C++ Interface): Likewise.
22180 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
22182 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
22184 2015-03-11 Marek Polacek <polacek@redhat.com>
22186 PR tree-optimization/65388
22187 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
22189 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22192 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
22193 * configure: Regenerate.
22194 * config.in: Regenerate.
22195 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
22196 [-mn-flash]: Document it.
22197 [__AVR_ARCH__]: Document avrtiny.
22199 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
22200 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
22201 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
22203 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22205 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
22207 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22210 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
22211 allow reloads of PLUS in floating point/VSX registers.
22213 2015-03-11 Junmo Park <junmoz.park@samsung.com>
22215 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
22216 crypto_sha256_fast.
22217 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
22219 2015-03-11 Richard Biener <rguenther@suse.de>
22221 PR tree-optimization/65310
22222 * tree-sra.c (build_ref_for_offset): Also preserve larger
22225 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
22227 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
22229 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22232 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
22234 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
22236 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22238 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
22239 (sem_function::equals_wpa): ... here.
22241 2015-03-10 Marek Polacek <polacek@redhat.com>
22242 Jakub Jelinek <jakub@redhat.com>
22245 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
22246 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
22249 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22252 * config/rs6000/t-linux: For powerpc64* target set
22253 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
22255 2015-03-10 Richard Biener <rguenther@suse.de>
22257 PR middle-end/44563
22258 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
22259 for redirect_all_calls.
22261 2015-03-10 Marek Polacek <polacek@redhat.com>
22263 * gdbinit.in (pcfun): Define and document.
22265 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
22267 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
22268 of libgomp-plugin.h.
22269 (find_target_compiler): Support a case when the path to gcc is
22270 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
22271 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
22272 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
22274 (main): Use GCC_INSTALL_NAME as target_driver_name.
22275 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
22277 (mkoffload.o): Remove obsolete include path and defines.
22278 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
22280 2015-03-10 Richard Biener <rguenther@suse.de>
22282 PR middle-end/63155
22283 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22284 * tree-ssa-coalesce.c: Include timevar.h.
22285 (attempt_coalesce): Handle graph being NULL.
22286 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22287 Split out abnormal coalescing to ...
22288 (perform_abnormal_coalescing): ... this function.
22289 (coalesce_ssa_name): Perform abnormal coalescing without computing
22291 (verify_ssa_coalescing_worker): New function.
22292 (verify_ssa_coalescing): Likewise.
22294 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22297 * config.gcc (extra_options) [avr]: Remove.
22298 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
22299 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
22300 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
22302 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
22303 (-mmcu=): Add Var and MissingArgError properties.
22305 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
22306 * config/avr/t-multilib: Regenerate.
22307 * config/avr/specs.h: New file.
22308 * config/avr/driver-avr.c: New file.
22309 * config/avr/genopt.sh: Remove file.
22310 * config/avr/avr-tables.opt: Remove file.
22311 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
22312 * config/avr/avr-c.c: Same.
22313 * avr-arch.h: Same.
22314 (avr_current_device): Remove proto.
22315 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
22316 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
22317 (EXTRA_SPEC_FUNCTIONS): Define.
22318 (avr_devicespecs_file): New specs function proto.
22319 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
22320 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
22321 (avr_current_device): Remove definition and usage.
22322 (avr_set_core_architecture): New static function.
22323 (avr_option_override): Use it.
22324 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
22325 (mcu_name): New static array.
22326 (comparator, avr_archs_str, avr_mcus_str): New static functions.
22327 (avr_inform_devices, avr_inform_core_architectures): New functions.
22328 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
22329 (avrlibc.h) [WITH_AVRLIBC]: Include.
22330 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
22331 (print_mcu): Rewrite from scratch.
22332 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
22333 Forward to avr-specific specs defined in device-specs file.
22334 * config/avr/t-avr (driver-avr.o): New rule.
22335 (avr-devices.o): Depend on avr-arch.h.
22336 (avr-mcus): No more depend on avr-tables.opt.
22337 (avr-tables.opt): Remove rule.
22338 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
22340 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22342 * c-family/c.opt (fchkp-use-wrappers): New.
22343 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
22344 (chkp_wrap_function): New.
22345 (chkp_build_instrumented_fndecl): Support wrapped
22347 * doc/invoke.texi (-fcheck-pointer-bounds): New.
22348 (-fchkp-check-incomplete-type): New.
22349 (-fchkp-first-field-has-own-bounds): New.
22350 (-fchkp-narrow-bounds): New.
22351 (-fchkp-narrow-to-innermost-array): New.
22352 (-fchkp-optimize): New.
22353 (-fchkp-use-fast-string-functions): New.
22354 (-fchkp-use-nochk-string-functions): New.
22355 (-fchkp-use-static-bounds): New.
22356 (-fchkp-use-static-const-bounds): New.
22357 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
22358 (-fchkp-check-read): New.
22359 (-fchkp-check-write): New.
22360 (-fchkp-store-bounds): New.
22361 (-fchkp-instrument-calls): New.
22362 (-fchkp-instrument-marked-only): New.
22363 (-fchkp-use-wrappers): New.
22364 (-static-libmpx): New.
22365 (-static-libmpxwrappers): New.
22367 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22369 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
22370 (CHKP_SPEC): Add wrappers library.
22371 * c-family/c.opt (static-libmpxwrappers): New.
22373 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22375 * config/i386/linux-common.h (LIBMPX_LIBS): New.
22376 (LIBMPX_SPEC): New.
22378 * gcc.c (CHKP_SPEC): New.
22379 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
22380 * c-family/c.opt (static-libmpx): New.
22382 2015-03-10 Richard Biener <rguenther@suse.de>
22384 PR middle-end/44563
22385 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
22387 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
22388 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
22389 (cgraph_add_edge_to_call_site_hash): Likewise.
22390 (cgraph_node::get_edge): Likewise.
22391 (cgraph_edge::set_call_stmt): Likewise.
22392 (cgraph_edge::remove_caller): Likewise.
22394 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
22396 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
22397 (callee_saved_gpr_regs_size): ... this.
22398 (callee_saved_regs_first_regno): Rename to ...
22399 (callee_saved_first_gpr_regno): ... this.
22400 (callee_saved_regs_last_regno) Rename to ...
22401 (callee_saved_last_gpr_regno): ... this.
22402 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
22404 (nds32_initial_elimination_offset): Likewise.
22405 (nds32_expand_prologue): Likewise.
22406 (nds32_expand_epilogue): Likewise.
22407 (nds32_expand_prologue_v3push): Likewise.
22408 (nds32_expand_epilogue_v3pop): Likewise.
22409 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
22410 Adjust renamed variables.
22411 (nds32_output_stack_pop): Likewise.
22413 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
22415 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
22418 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22420 PR rtl-optimization/65321
22421 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
22423 * var-tracking.c (use_narrower_mode): Likewise.
22425 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22427 PR tree-optimization/65355
22428 * varasm.c (notice_global_symbol): Do not produce RTL.
22429 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
22431 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
22432 check for section anchors.
22434 2015-03-10 Alan Modra <amodra@gmail.com>
22437 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
22438 to be single-arch by default. Set cpu_is_64bit for powerpc64
22439 given --with-cpu=native.
22440 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
22441 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
22443 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
22444 rs6000_isa_flags rather than TARGET_64BIT.
22446 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
22447 Kaz Kojima <kkojima@gcc.gnu.org>
22449 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
22451 2015-03-09 Jakub Jelinek <jakub@redhat.com>
22454 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
22455 on a TREE_BINFO, instead use BINFO_TYPE.
22457 2015-03-09 Richard Biener <rguenther@suse.de>
22459 PR middle-end/65270
22460 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
22461 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
22462 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
22463 of that. When comparing dereferences compare alignment.
22464 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
22466 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22468 * ipa-inline-analysis.c (check_callers): Check
22469 node->can_remove_if_no_direct_calls_and_refs_p.
22470 (growth_likely_positive): Reorganize to call
22471 can_remove_if_no_direct_calls_p later.
22472 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
22473 will_be_removed_from_program_if_no_direct_calls_p): Add
22474 will_inline parameter.
22475 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
22476 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22477 Handle inliner case correctly.
22479 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
22481 PR tree-optimization/63743
22482 * cfgexpand.c (reorder_operands): Also reorder if only second operand
22483 had its definition forwarded by TER.
22485 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22488 * ipa-utils.h (types_odr_comparable): Add strict argument.
22489 * ipa-devirt.c: Fix whitespace;
22490 (odr_hasher): Remove.
22491 (odr_name_hasher, odr_vtable_hasher): New hashers.
22492 (can_be_name_hashed_p): New predicate.
22493 (hash_type_name): remove.
22494 (hash_odr_name): New.
22495 (odr_name_hasher::hash): new.
22496 (can_be_vtable_hashed_p): New.
22497 (hash_odr_vtable): New.
22498 (odr_vtable_hasher::hash): New.
22499 (types_same_for_odr): Add strict parameter.
22500 (types_odr_comparable): Likewise.
22501 (odr_name_hasher::equal): New.
22502 (odr_vtable_hasher::equal): New.
22503 (odr_name_hasher::remove): New.
22504 (odr_hash_type): Change to hash_table<odr_name_hasher>.
22505 (odr_vtable_hash_type): New.
22506 (odr_vtable_hash): New.
22507 (odr_subtypes_equivalent_p): Do strict comparsion.
22508 (add_type_duplicate): Merge type names; cleanup; avoid type
22510 (register_odr_type): Initialize vtable hash.
22511 (build_type_inheritance_graph): Likewise
22512 (get_odr_type): Reorg to use two hashes.
22513 (dump_possible_polymorphic_call_targets): Move sanity check after debug
22515 (ipa_devirt): Dump type_inheritance_graph.
22516 (types_same_for_odr): Add strict mode.
22518 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22521 * cgraph.h (symtab_node): Add definition_alignment,
22522 can_increase_alignment_p and increase_alignment.
22523 * symtab.c (symtab_node::can_increase_alignment_p,
22524 increase_alignment_1, symtab_node::increase_alignment,
22525 symtab_node::definition_alignment): New.
22526 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
22527 can_increase_alignment_p.
22528 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
22529 * tree-vect-stmts.c (ensure_base_align): Likewise.
22530 * varasm.c (function_section_1): Use definition_alignment.
22531 (assemble_start_function): Likewise.
22532 (emit_local): likewise.
22533 (build_constant_desc): Likewsie.
22534 (output_constant_def_contents): Likewise.
22535 (place_block_symbol): Likewise.
22536 (output_object_block): Likewise.
22538 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22541 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
22542 when outputting debug.
22544 2015-03-07 Marek Polacek <polacek@redhat.com>
22545 Martin Uecker <uecker@eecs.berkeley.edu>
22548 * doc/invoke.texi: Update description of -fsanitize=bounds.
22550 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
22552 * tree-ssa-phiopt.c (neg_replacement): Remove.
22553 (tree_ssa_phiopt_worker): Remove negate optimization.
22555 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22558 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
22560 2015-03-06 Richard Biener <rguenther@suse.de>
22562 PR middle-end/64928
22563 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
22564 and liveout_obstack members.
22565 (calculate_live_on_exit): Remove.
22566 (calculate_live_ranges): Change declaration.
22567 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
22568 (new_tree_live_info): Adjust.
22569 (calculate_live_ranges): Delete livein when not wanted.
22570 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
22571 Deal with partly deleted live info.
22572 (loe_visit_block): Remove temporary bitmap by using
22573 bitmap_ior_and_compl_into.
22574 (live_worklist): Adjust accordingly.
22575 (calculate_live_on_exit): Make static.
22576 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
22577 we do not need livein.
22579 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
22581 * real.c (real_from_string): Fix typo in assertion.
22583 2015-03-06 Alex Velenko <alex.velenko@arm.com>
22585 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
22588 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22590 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
22592 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
22595 * lra-assigns.c (find_hard_regno_for): Rename to
22596 find_hard_regno_for_1. Add a new parameter.
22597 (find_hard_regno_for): New function using find_hard_regno_for_1.
22599 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22601 PR rtl-optimization/65067
22602 * expmed.c (store_bit_field, extract_bit_field): Reworked the
22603 strict volatile bitfield handling.
22605 2015-03-05 Martin Liska <mliska@suse.cz>
22608 * ipa-icf.c (sem_variable::equals): Compare variables types.
22610 2015-03-05 Richard Henderson <rth@redhat.com>
22613 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
22614 correctly check weak symbol binding.
22616 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
22618 PR middle-end/65315
22619 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
22622 2015-03-05 Martin Liska <mliska@suse.cz>
22624 * ipa-inline.c (inline_small_functions): Set default value to
22625 prevent warning during bootstrap.
22626 * tree.h: Add pragma guard that ignores false positives during
22629 2015-03-05 Richard Biener <rguenther@suse.de>
22631 PR tree-optimization/65310
22632 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22633 Properly preserve alignment of the base of the access.
22635 2015-03-05 Richard Biener <rguenther@suse.de>
22638 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
22639 Compare dependence info.
22641 2015-03-05 Richard Biener <rguenther@suse.de>
22643 PR middle-end/65233
22644 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
22646 (walk_ssa_copies): Revert last chage. Instead do not walk
22647 SSA names registered for SSA update.
22649 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22652 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
22653 vtable references for their containing type.
22654 (sem_function::equals_wpa): Compare TYPE_RESTRICT
22655 and type attributes.
22657 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
22659 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
22660 before negating it.
22661 * stor-layout.c (finalize_record_size): Revert latest change.
22663 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
22665 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
22667 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22669 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
22670 for correct comdat handling.
22671 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22673 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
22674 (used_from_object_file_p_worker): Remove.
22675 (cgraph_node::only_called_directly_or_alised): Add
22676 used_from_object_file_p.
22677 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
22678 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
22679 can_remove_if_no_direct_calls_and_refs_p.
22681 2015-03-04 Nick Clifton <nickc@redhat.com>
22683 * config/rl78/rl78.h (enum reg_class): Remove real registers from
22684 General register class.
22685 * config/rl78/rl78-real.md: Replace general register constraints
22686 with real+virtual register constraints.
22688 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22690 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
22691 from checking for -mhtm option.
22693 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22695 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
22696 (struct ipa_sra_check_caller_data): Add has_thunk field.
22697 (ipa_sra_check_caller): Check for thunk.
22698 (ipa_sra_preliminary_function_checks): Give up on function with
22700 (ipa_early_sra): Use call_for_symbol_and_aliases.
22702 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
22705 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
22706 called for __stack_chk_guard symbol.
22708 2015-03-03 DJ Delorie <dj@redhat.com>
22710 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
22712 (*addhi3_real): Likewise.
22713 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
22714 pattern to match incrementing memory.
22715 * config/rl78/predicates.md (rl78_1_2_operand): New.
22716 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
22717 it's the same and only mem.
22718 (rl78_alloc_physical_registers_op2): If there's effectively only
22719 one MEM, transcode it into HL.
22720 (rl78_far_p): Reject addresses that aren't legitimate.
22722 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22724 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
22727 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
22729 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22731 Implement call0 ABI for xtensa
22732 * config/xtensa/constraints.md ("a" constraint): Include stack
22733 pointer in case of call0 ABI.
22734 ("q" constraint): Make empty in case of call0 ABI.
22735 ("D" constraint): Include stack pointer in case of call0 ABI.
22736 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
22737 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
22739 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
22741 (xtensa_regno_to_class): Make it a local variable in the
22742 function xtensa_regno_to_class.
22743 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
22744 macro, function prototype and implementation.
22745 (reg_nonleaf_alloc_order): Make it a local variable in the
22746 function order_regs_for_local_alloc.
22747 (xtensa_conditional_register_usage): New function.
22748 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
22749 (xtensa_valid_move): Allow direct moves to stack pointer
22750 register in call0 ABI.
22751 (xtensa_setup_frame_addresses): Only spill register windows in
22753 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
22754 call0 ABI respectively.
22755 (xtensa_function_arg_1): Only mark a7 register for copying in
22757 (xtensa_call_save_reg): New function.
22758 (compute_frame_size): Add space for callee saved register
22759 storage to the frame size in call0 ABI.
22760 (xtensa_expand_prologue): Generate code to set up stack frame
22761 and save callee-saved registers in call0 ABI.
22762 (xtensa_expand_epilogue): New function.
22763 (xtensa_set_return_address): New function.
22764 (xtensa_return_addr): Calculate return address in call0 ABI.
22765 (xtensa_builtin_saveregs): Only mark a7 register for copying and
22766 emit copying code in windowed ABI.
22767 (order_regs_for_local_alloc): Add preferred register allocation
22768 order for non-leaf function in call0 ABI.
22769 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
22770 (xtensa_asm_trampoline_template): Add trampoline generation for
22772 (xtensa_trampoline_init): Add trampoline initialization for
22774 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
22776 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
22777 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
22778 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
22779 ABI call-used registers.
22780 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
22781 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
22783 (REG_CLASS_CONTENTS): Include all registers into the preferred
22784 reload registers set, adjust the set in the
22785 xtensa_conditional_register_usage.
22786 (xtensa_regno_to_class): Drop variable declaration.
22787 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
22789 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
22791 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
22792 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
22793 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
22794 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
22795 location in call0 ABI.
22796 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
22797 stack adjustment size when handling exception.
22798 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
22799 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
22801 ("return" pattern): Generate ret.n/ret in call0 ABI.
22802 ("epilogue" pattern): Expand epilogue.
22803 ("nonlocal_goto" pattern): Use default in call0 ABI.
22804 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
22805 emit eh_set_a0_* depending on ABI.
22806 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
22807 ("eh_set_a0_call0", "blockage"): New patterns.
22809 2015-03-03 Martin Liska <mliska@suse.cz>
22812 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
22814 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22817 * config/rs6000/rs6000-tables.opt: Regenerate table.
22819 2015-03-03 Renlin Li <renlin.li@arm.com>
22821 * doc/md.texi (@item ^): Change ? into ^.
22823 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
22825 * doc/tm.texi: Regenerated.
22827 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22829 * builtins.c (expand_builtin_return_addr): Add
22830 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
22831 surrounding #ifdef.
22832 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
22834 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
22836 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
22838 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
22841 2015-03-03 Martin Jambor <mjambor@suse.cz>
22842 Eric Botcazou <ebotcazou@adacore.com>
22844 * tree-sra.c (ipa_sra_check_caller_data): New type.
22845 (has_caller_p): Removed.
22846 (ipa_sra_check_caller): New function.
22847 (ipa_sra_preliminary_function_checks): Use it.
22849 2015-03-03 Martin Liska <mliska@suse.cz>
22851 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
22852 instead of if branch.
22854 2015-03-03 Martin Liska <mliska@suse.cz>
22857 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
22859 2015-03-23 Jeff Law <law@redhat.com>
22861 PR tree-optimization/65241
22862 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
22863 hash table if INSERT is true.
22865 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22868 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
22870 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22873 * config/avr/avr.c (context.h, tree-pass.h): Include them.
22874 (avr_pass_data_recompute_notes): New static variable.
22875 (avr_pass_recompute_notes): New class.
22876 (avr_register_passes): New static function.
22877 (avr_option_override): Call it.
22879 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22881 Fix various problems with specs file generation.
22884 * config.gcc (extra_gcc_objs) [avr]: Remove.
22885 * config/avr/driver-avr.c: Remove file.
22886 * config/avr/t-avr (driver-avr.o): Remove rule.
22887 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
22888 INCLUDES to build. Depend on TM_H.
22889 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
22890 build warnings. Fix non-matching types and non-existing %-codes.
22892 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
22893 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
22894 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
22895 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
22896 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
22897 (LIBGCC_SPEC): Remove definitions.
22899 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22901 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
22902 to create a register in testing mode.
22904 2015-03-03 Martin Liska <mliska@suse.cz>
22905 Jan Hubicka <hubicka@ucw.cz>
22908 * cgraph.c (cgraph_node::has_thunk_p): New function.
22909 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
22910 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
22911 (sem_function::merge): Assert is changed.
22913 2015-03-03 Martin Liska <mliska@suse.cz>
22914 Martin Jambor <mjambor@suse.cz>
22917 * ipa-icf.c (sem_item_optimizer::execute): Change function
22918 return value to boolean.
22919 (sem_item_optimizer::merge_classes): Likewise.
22920 (ipa_icf_driver): Return TODO_remove_functions in case there's
22921 a merge operation processed.
22922 * ipa-icf.h: Change function return value to boolean.
22924 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22927 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
22928 processor type for 64-bit little endian PowerPC.
22930 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22931 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
22932 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
22933 printing built-in mask so it does not pass NULL pointers.
22935 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
22938 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
22941 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
22942 !ISA_HAS_FP_CONDMOVE.
22944 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
22946 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
22949 2015-03-02 Ulrich Drepper <drepper@gmail.com>
22951 * doc/invoke.texi (Options for Code Generation Conventions):
22952 Fix URL of DSO paper.
22954 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22957 * ipa-inline.c (check_callers): Looks for recursion.
22958 (inline_to_all_callers): Give up on uninlinable or recursive edges.
22959 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
22960 summary of inline clones.
22961 (do_estimate_growth_1): Fix recursion check.
22963 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22966 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
22969 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22970 Aldy Hernandez <aldyh@redhat.com>
22973 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
22974 when checking TYPE_BINFO.
22976 2015-03-02 Richard Biener <rguenther@suse.de>
22979 * ipa-icf-gimple.c: Include builtins.h.
22980 (func_checker::compare_memory_operand): Compare base alignment.
22982 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
22985 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
22986 are never passed by reference.
22988 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
22991 * tree-chkp.c (chkp_check_lower): Don't check against
22992 zero bounds for already instrumented functions.
22993 (chkp_check_upper): Likewise.
22994 (chkp_fini): Clean pass local data to avoid wrong reusage.
22996 2015-02-28 Martin Liska <mliska@suse.cz>
22997 Jan Hubicka <hubicka@ucw.cz>
22999 * ipa-icf.c (sem_variable::equals): Improve debug output;
23000 get variable constructor.
23001 (sem_variable::parse): Do not filter out too early; give up on
23002 volatile and register vars.
23003 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
23005 * ipa-icf.h (sem_variable::init): Do not set ctor.
23006 (sem_variable::ctor): Remove.
23008 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
23010 PR middle-end/65233
23011 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
23013 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23015 * ipa-icf.c: Include stor-layout.h
23016 (sem_function::compare_cgraph_references): Rename to ...
23017 (sem_item::compare_cgraph_references): ... this one.
23018 (sem_variable::equals_wpa): New function
23019 (sem_variable::equals): Do not check stuff already verified by
23021 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
23022 * ipa-icf.h (sem_item): Add compare_cgraph_references.
23023 (sem_function): Remove compare_cgraph_references.
23024 (sem_variable): Turns equals_wpa into non-inline.
23026 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23028 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
23029 (sem_item::add_expr): New function.
23030 (sem_function::hash_stmt): Handle operands of most statements.
23031 (sem_variable::get_hash): Hash the actual constructor.
23032 * ipa-icf.h (sem_item): Add add_expr.
23033 (sem_function): Update prototype of hash_stmt
23035 2015-02-28 Martin Liska <mliska@suse.cz>
23036 Jan Hubicka <hubicka@ucw.cz>
23039 * ipa-icf-gimple.c (func_checker::compare_function_decl):
23041 (func_checker::compare_variable_decl): Skip symtab vars.
23042 (func_checker::compare_cst_or_decl): Update.
23043 * ipa-icf.c (sem_function::parse): Do not consider aliases.
23044 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
23045 use correct symtab predicates.
23046 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
23047 (sem_variable::parse): Update comment.
23048 (sem_item_optimizer::build_graph): Consider ultimate aliases
23051 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23053 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
23056 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23058 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
23059 (sem_variable::merge) Likewise.
23061 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23063 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
23064 target; also match flag_ipa_devirt.
23066 2015-03-01 Martin Liska <mliska@suse.cz>
23067 Jan Hubicka <hubicka@ucw.cz>
23069 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
23070 Validate variable alignment.
23071 * ipa-icf.c (sem_function::equals_private): Be more precise
23072 about non-common function attributes.
23073 (sem_variable::equals): Likewise.
23075 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23078 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
23079 across COMDAT group boundary.
23081 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23084 * ipa-icf.c (clear_decl_rtl): New function.
23085 (sem_function::merge): Clear RTL before forming alias.
23086 (sem_variable::merge): Clear RTL before forming alias.
23088 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23091 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
23093 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
23095 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
23098 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23100 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
23101 a typo in the description.
23103 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23106 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23107 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23108 * lra-constraints.c: Include "params.h".
23109 (EBB_PROBABILITY_CUTOFF): Use
23110 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
23111 (lra_inheritance): Use '<' instead of '<=' for
23112 EBB_PROBABILITY_CUTOFF.
23113 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
23116 2015-02-27 Martin Liska <mliska@suse.cz>
23118 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
23119 vector length condition.
23121 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
23123 * doc/extend.texi (x86 transactional memory intrinsics):
23124 Reorganize discussion of _xbegin. Clarify that the return
23125 value is a bit mask. Expand example and move to end of section.
23127 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23128 Aldy Hernandez <aldyh@redhat.com>
23130 PR rtl-optimization/65220
23131 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
23133 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23136 * lra-remat.c (update_scratch_ops): New.
23137 (do_remat): Call it.
23138 * lra.c (lra_register_new_scratch_op): New. Take code from ...
23139 (remove_scratches): ... here.
23140 * lra-int.h (lra_register_new_scratch_op): New prototype.
23142 2015-02-27 Marek Polacek <polacek@redhat.com>
23145 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
23146 -Wformat-signedness anymore.
23148 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23150 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
23152 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
23154 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23156 * config/s390/s390.c (enum s390_builtin):
23157 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
23158 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
23159 (s390_init_builtins): Generate new builtin functions.
23160 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
23161 (s390_sfpc, s390_efpc): New pattern definitions.
23163 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23165 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
23166 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
23167 (s390_builtin_decls): New array.
23168 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
23169 (s390_builtin_decl): New function.
23170 (TARGET_BUILTIN_DECL): Define macro.
23172 2015-02-27 Richard Biener <rguenther@suse.de>
23174 PR middle-end/63175
23175 * builtins.c (get_object_alignment_2): Make sure to re-apply
23176 the ANDed mask after recursing to its operand gets us a new
23177 misalignment bit position.
23179 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
23180 Martin Liska <mliska@suse.cz>
23183 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
23184 Use address_matters_p.
23185 (redirect_all_callers, set_addressable): New functions.
23186 (sem_function::merge): Reorganize and fix merging issues.
23187 (sem_variable::merge): Likewise.
23188 (sem_variable::compare_sections): Remove.
23189 * common.opt (fmerge-all-constants, fmerge-constants): Remove
23191 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
23193 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
23195 (address_matters_1): New function.
23196 (symtab_node::address_matters_p): New function.
23197 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
23198 check for merged flag.
23199 * cgraph.h (address_matters_p): Declare.
23200 (symtab_node::address_taken_from_non_vtable_p): Remove.
23201 (symtab_node::address_can_be_compared_p): New method.
23202 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
23203 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
23205 (comdat_can_be_unshared_p_1) Use address_matters_p.
23206 (update_vtable_references): Fix formating.
23207 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
23208 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
23209 * cgraphclones.c: Preserve merged and icf_merged flags.
23211 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
23213 * doc/extend.texi (Function Attributes): Fix spelling and typos.
23214 (Label Attributes): Likewise.
23215 (Cilk Plus Builtins): Likewise.
23216 (ARC SIMD Built-in Functions): Likewise.
23217 (ARM C Language Extensions (ACLE)): Likewise.
23218 (PowerPC Built-in Functions): Likewise.
23219 (PowerPC Hardware Transactional Memory Built-in Functions):
23222 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23224 PR tree-optimization/65216
23225 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
23226 new stmt and new SSA_NAME for lhs whenever the arguments have
23227 changed and weren't just swapped. Fix comment typo.
23229 PR tree-optimization/65215
23230 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
23231 for PDP endian targets.
23232 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
23233 Fix up formatting issues.
23234 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
23235 size is smaller than the original, adjust MEM_REF offset by the
23236 difference of sizes. Use is_gimple_mem_ref_addr instead of
23237 is_gimple_min_invariant test to avoid adding address temporaries.
23239 2015-02-26 Martin Liska <mliska@suse.cz>
23240 Jan Hubicka <hubicka@ucw.cz>
23243 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
23244 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
23245 (sem_item_optimizer::process_cong_reduction): Include division by
23246 sensitive references.
23247 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
23248 * ipa-ref.c (ipa_ref::address_matters_p): New function.
23249 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
23251 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
23254 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
23256 * config/avr/avr.c: Same.
23257 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
23258 Refuse any constant address not in 0..0xbf.
23259 * config/avr/avr.md (*mov<mode>, *movsf): Remove
23260 tiny_valid_direct_memory_access_range from insn conditions.
23261 (mov<mode>): Don't special-case expansion of avrtiny addresses.
23263 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
23266 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
23267 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
23268 * config/sh/predicates.md (const_logical_operand): New predicate.
23269 * config/sh/sh.md: Add new peephole2 patterns.
23271 2015-02-26 Marek Polacek <polacek@redhat.com>
23274 * ipa-inline.c (early_inliner): Recompute inline parameters.
23276 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23279 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
23280 instructions with TImode operands are included in the analysis.
23282 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23284 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
23285 of an EDGE_FSM_THREAD.
23287 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
23289 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
23291 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
23294 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
23296 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23298 PR tree-optimization/65048
23299 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
23300 (thread_through_all_blocks): Call valid_jump_thread_path.
23301 Remove invalid FSM jump-thread paths.
23303 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23305 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
23306 (ipa_write_optimization_summaries): Likewise.
23307 * tree-streamer.h: Include data-streamer.h.
23308 (streamer_mode_table): Declare extern variable.
23309 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
23310 * lto-streamer-out.c (lto_output_init_mode_table,
23311 lto_write_mode_table): New functions.
23312 (produce_asm_for_decls): Call lto_write_mode_table when streaming
23314 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
23315 (lto_create_simple_input_block): Add mode_table argument to the
23316 lto_input_block constructors.
23317 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
23319 * data-streamer-in.c (string_for_index): Likewise.
23320 * ipa-inline-analysis.c (inline_read_section): Likewise.
23321 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
23322 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
23323 * lto-streamer-in.c (lto_read_body_or_constructor,
23324 lto_input_toplevel_asms): Likewise.
23325 (lto_input_mode_table): New function.
23326 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
23327 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
23328 Use bp_pack_machine_mode.
23329 * real.h (struct real_format): Add name field.
23330 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
23331 (class lto_input_block): Add mode_table member.
23332 (lto_input_block::lto_input_block): Add mode_table_ argument,
23333 initialize mode_table.
23334 (struct lto_file_decl_data): Add mode_table field.
23335 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
23336 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
23337 unpack_ts_decl_common_value_fields,
23338 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
23339 * tree-streamer.c (streamer_mode_table): New variable.
23340 * real.c (ieee_single_format, mips_single_format,
23341 motorola_single_format, spu_single_format, ieee_double_format,
23342 mips_double_format, motorola_double_format,
23343 ieee_extended_motorola_format, ieee_extended_intel_96_format,
23344 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
23345 ibm_extended_format, mips_extended_format, ieee_quad_format,
23346 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
23347 decimal_single_format, decimal_double_format, decimal_quad_format,
23348 ieee_half_format, arm_half_format, real_internal_format): Add name
23350 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
23352 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
23355 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
23356 reordering for selective scheduling.
23358 2015-02-26 Terry Guo <terry.guo@arm.com>
23360 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
23361 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
23362 (arm_arch_no_volatile_ce): Declare new global variable.
23363 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
23364 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
23365 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
23366 (TARGET_NO_VOLATILE_CE): New macro.
23367 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
23368 volatile memory access in IT block
23370 2015-02-25 Kai Tietz <ktietz@redhat.com>
23372 PR tree-optimization/61917
23373 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
23374 that reduc_def_stmt is null.
23376 2015-02-25 Martin Liska <mliska@suse.cz>
23378 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
23379 hard register variables.
23381 2015-02-25 Kai Tietz <ktietz@redhat.com>
23384 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
23385 (symtab::noninterposable_alias): Likewise.
23387 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
23390 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
23392 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
23394 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
23397 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
23398 as split condition; force split via '#' in output pattern.
23400 2015-02-25 Richard Biener <rguenther@suse.de>
23401 Kai Tietz <ktietz@redhat.com>
23403 PR tree-optimization/61917
23404 * tree-vect-loop.c (vectorizable_reduction): Allow
23405 vect_internal_def without reduction to exit graceful.
23407 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23410 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
23411 only with NONDEBUG_INSN_P.
23413 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23415 Use variadic macros with avr-log.c.
23417 * config/avr/avr-protos.h (avr_vdump): New prototype.
23418 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
23419 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
23420 * config/avr/avr-log.c: Adjust comments.
23421 (avr_vdump): New function.
23422 (avr_vadump): Pass caller as 2nd argument instead of format string.
23423 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
23424 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
23426 2015-02-25 Jakub Jelinek <jakub@redhat.com>
23429 * target.def (target_option_stream_in): New target hook.
23430 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
23431 targetm.target_option.post_stream_in if non-NULL.
23432 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
23433 * doc/tm.texi: Updated.
23434 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
23436 (TARGET_OPTION_POST_STREAM_IN): Redefine.
23438 2015-02-24 Jeff Law <law@redhat.com>
23441 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
23442 of operand 0 and operand 2.
23443 (zero_cost_loop_end, loop_end): Similarly.
23445 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
23447 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
23450 2015-02-24 DJ Delorie <dj@redhat.com>
23452 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
23453 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
23454 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
23455 instead of hardcoding SImode.
23457 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
23459 * omp-low.c (create_omp_child_function): Tag entrypoint
23460 functions with a special attribute.
23462 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23465 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
23467 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
23469 PR rtl-optimization/65123
23470 * lra-remat.c (operand_to_remat): Check hard regs in insn
23473 2015-02-24 Nick Clifton <nickc@redhat.com>
23475 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
23478 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
23481 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
23482 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
23483 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
23484 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
23485 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
23486 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
23487 (BUILT_IN_GOACC_PARALLEL): Specify as
23488 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
23489 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
23490 * builtin-types.def
23491 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23492 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23493 Remove function types.
23494 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
23495 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23496 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23497 New function types.
23499 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
23501 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
23503 2015-02-24 Jakub Jelinek <jakub@redhat.com>
23505 PR tree-optimization/65170
23506 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
23507 if val[1] < 0, clear also val[2] and return 3.
23509 2015-02-24 Alan Modra <amodra@gmail.com>
23512 * config/rs6000/rs6000.c (get_memref_parts): Only return true
23513 when *base is a reg. Handle nested plus addresses. Simplify
23516 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
23518 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
23519 use natural alignment when optimizing for size.
23521 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
23524 * config/sh/sh.md (movsicc_true+3): Remove peephole.
23525 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
23526 * config/sh/sh.c (replace_n_hard_rtx): Remove.
23528 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
23531 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
23532 too big for a wide_int. Implement missing wrapping operation.
23534 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
23537 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
23538 instead of const_int 4294901760.
23540 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
23542 * config/avr/t-avr: Fix typo in comment.
23544 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
23546 * doc/rtl.texi (fma): Clarify documentation.
23548 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
23551 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
23552 over input_location.
23554 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23556 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
23557 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
23558 restrict alignments to absolute_biggest_alignment.
23559 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
23561 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
23562 * doc/tm.texi: Regenerate.
23563 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
23565 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
23568 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
23570 2015-02-20 Richard Biener <rguenther@suse.de>
23572 PR tree-optimization/65136
23573 * tree-ssa-propagate.c: Include cfgloop.h.
23574 (replace_phi_args_in): Avoid replacing loop latch edge PHI
23575 arguments with constants.
23577 2015-02-20 Jakub Jelinek <jakub@redhat.com>
23578 Martin Liska <mliska@suse.cz>
23581 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
23582 don't try to create_thunk if stdarg_p. If
23583 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
23584 redirect_callers if possible.
23585 (sem_item_optimizer::execute): Call unregister_hooks here...
23586 (ipa_icf_driver): ... instead of here.
23588 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23590 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
23591 Mark operand 0 as earlyclobber in 2nd alternative.
23592 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
23593 Write negated shift amount into QI lowpart operand 0 and use it
23595 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23597 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23599 * cgraph.h (clone_function_name_1): Declare.
23600 * cgraphclones.c (clone_function_name_1): New function.
23601 (clone_function_name): Use it.
23602 * lto-partition.c: Include "stringpool.h".
23603 (must_not_rename, maybe_rewrite_identifier)
23604 (validize_symbol_for_target): New static functions.
23605 (privatize_symbol_name): Use must_not_rename.
23606 (promote_symbol): Call validize_symbol_for_target.
23607 (lto_promote_cross_file_statics): Likewise.
23608 (lto_promote_statics_nonwpa): Likewise.
23610 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
23613 * config/avr/avr.md (pushhi_insn): New insn.
23614 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
23616 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23617 Jakub Jelinek <jakub@redhat.com>
23619 * tree-streamer.c (preload_common_nodes): Don't preload
23620 TI_VA_LIST* for offloading.
23621 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
23624 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
23626 * config/pa/pa.c (pa_emit_move_sequence): Always force
23627 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
23630 * config/pa/pa.c (pa_reloc_rw_mask): New function.
23631 (TARGET_ASM_RELOC_RW_MASK): Define.
23632 (pa_cannot_force_const_mem): Revert previous change.
23634 2015-02-19 Martin Jambor <mjmabor@suse.cz>
23635 Jan Hubicka <hubicka@ucw.cz>
23638 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
23639 across jump functions.
23641 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
23643 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
23645 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
23647 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
23649 2015-02-19 Richard Henderson <rth@redhat.com>
23651 PR middle-end/65074
23652 * varasm.c (default_binds_local_p_2): Don't test node->definition;
23653 test DECL_EXTERNAL independent of symtab_node.
23655 2015-02-19 Jakub Jelinek <jakub@redhat.com>
23658 * varpool.c (varpool_node::get_constructor): Return early
23659 if this->lto_file_data is NULL.
23661 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23663 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
23664 (rank_for_schedule_debug): Update.
23665 (ready_sort): Make static. Move sorting logic to ...
23666 (ready_sort_debug, ready_sort_real): New static functions.
23667 (schedule_block): Sort both debug insns and real insns in preparation
23668 for ready list trimming. Improve debug output.
23669 * sched-int.h (ready_sort): Remove global declaration.
23671 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
23673 * ipa-icf.c (sem_function::equals_private): Adjust.
23674 (sem_function::bb_dict_test): Take a vec<int> * instead of
23676 * ipa-icf.h (bb_dict_test): Likewise.
23678 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23680 PR gcov-profile/64634
23681 * tree-eh.c (frob_into_branch_around): Fix up typos
23682 in function comment.
23683 (lower_catch): Put eh_seq resulting from EH lowering of
23684 the cleanup sequence after the cleanup rather than before it.
23686 2015-02-18 Tom de Vries <tom@codesourcery.com>
23688 * common.opt (fstdarg-opt): New option.
23689 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
23690 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
23691 (@item -fstdarg-opt): New item.
23693 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
23696 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
23697 for common symbols.
23699 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23701 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
23703 (ALL_HOST_OBJS): Add mkoffload.o.
23704 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
23706 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
23708 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
23709 (compare_virtual_tables): Be smarter about skipping typeinfos;
23710 do sane output on virtual table table mismatch.
23711 (warn_odr): Be ready for forward declarations of enums;
23712 output sane info on base mismatch and virtual table mismatch.
23713 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
23714 when only one type is polymorphic.
23715 (get_odr_type): Fix hashtable corruption.
23716 (dump_odr_type): Dump mangled names.
23718 2015-02-18 Richard Biener <rguenther@suse.de>
23720 PR tree-optimization/65063
23721 * tree-predcom.c (determine_unroll_factor): Return 1 if we
23722 have replaced looparound PHIs.
23724 2015-02-18 Martin Liska <mliska@suse.cz>
23726 * lto-streamer.c (lto_streamer_init): Encapsulate
23727 streamer_check_handled_ts_structures with checking macro.
23729 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23732 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
23733 section if !implicit_section.
23734 (cgraph_node::create_version_clone_with_body): Likewise.
23735 * trans-mem.c (ipa_tm_create_version): Likewise.
23737 2015-02-18 Richard Biener <rguenther@suse.de>
23739 PR tree-optimization/62217
23740 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
23743 2015-02-18 Marek Polacek <polacek@redhat.com>
23746 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
23747 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
23748 is in range [-16K, -1]. Don't issue run-time error if
23749 (ptr > ptr + offset).
23751 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
23753 * doc/install.texi (nvptx-*-none): New section.
23754 * doc/invoke.texi (Nvidia PTX Options): Likewise.
23755 * config/nvptx/nvptx.opt: Update.
23757 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
23758 (access_check): New functions, copied from
23759 config/i386/intelmic-mkoffload.c.
23760 (main): For non-installed testing, look in all COMPILER_PATHs for
23763 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
23765 2015-02-18 Andrew Pinski <apinski@cavium.com>
23766 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
23768 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
23769 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
23771 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23773 * ipa-visibility.c (function_and_variable_visibility): Only
23774 check locality if node is not already local.
23775 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23776 call_for_symbol_and_aliases instead of
23777 call_for_symbol_thunks_and_aliases.
23778 (ipa_inline): Likewise.
23779 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23780 first walk aliases.
23781 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23782 call_for_symbol_and_aliases.
23783 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23784 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23785 (ipa_propagate_frequency): Update.
23786 (ipa_profile): Add opt_for_fn gueards.
23788 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23790 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
23791 * doc/invoke.texi (SH options): Document it.
23792 * config/sh/sh.c (sh_insn_length_adjustment): Check
23793 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
23795 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
23797 * common.opt (fipa-cp-alignment): New.
23798 * ipa-cp.c (ipcp_store_alignment_results): Check
23799 flag_ipa_cp_alignment.
23800 * opts.c (default_options_table): Enable -fipa-cp-alignment for
23802 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
23803 * doc/invoke.texi: Document -fipa-cp-alignment.
23805 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23808 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
23809 to nil. Adjust comments.
23811 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23813 * ipa-visibility.c (function_and_variable_visibility): Only
23814 check locality if node is not already local.
23815 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23816 call_for_symbol_and_aliases instead of
23817 call_for_symbol_thunks_and_aliases.
23818 (ipa_inline): Likewise.
23819 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23820 first walk aliases.
23821 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23822 call_for_symbol_and_aliases.
23823 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23824 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23825 (ipa_propagate_frequency): Update.
23826 (ipa_profile): Add opt_for_fn guards.
23828 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
23830 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
23831 skipping of "strange" tokens.
23833 2015-02-17 Jeff Law <law@redhat.com>
23835 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
23838 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
23840 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
23841 as forcing a HARD_DEP between instructions, thereby
23842 disallowing rewriting to break dependencies.
23844 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23846 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
23847 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
23848 variables in boundary that have no inlitalizer encoded and are
23850 * varasm.c (default_binds_local_p_2): External definitions do not
23851 count as definitions here.
23853 2015-02-16 Jeff Law <law@redhat.com>
23855 PR tree-optimization/64823
23856 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
23858 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23859 threading through blocks with PHIs, but no statements.
23860 (thread_through_normal_block): Distinguish between blocks where
23861 we did not process all the statements and blocks with no statements.
23863 2015-02-16 Jakub Jelinek <jakub@redhat.com>
23864 James Greenhalgh <james.greenhalgh@arm.com>
23867 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
23868 section if not linkonce. Fix up formatting.
23869 (cgraph_node::create_version_clone_with_body): Copy section.
23870 * trans-mem.c (ipa_tm_create_version): Likewise.
23872 2015-02-16 Richard Biener <rguenther@suse.de>
23874 PR tree-optimization/65077
23875 * tree-ssa-structalias.c (get_constraint_for_1): Handle
23876 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
23877 (find_func_aliases): Allow float values to carry pointers again.
23879 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
23881 * doc/install.texi (Specific): Reorder targets list to put
23882 aarch64 in alphabetical order. Add a link to aarch64*-*-*
23885 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23886 David Edelsohn <dje.gcc@gmail.com>
23889 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
23890 mapping class to external variable or function reference.
23891 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
23894 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
23897 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
23898 ASM_WEAKEN_DECL if defined.
23900 2015-02-16 Richard Biener <rguenther@suse.de>
23903 * varasm.c (default_file_start): For LTO produced units
23904 emit <artificial> as file directive.
23906 2015-02-16 Richard Biener <rguenther@suse.de>
23908 PR tree-optimization/63593
23909 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
23910 stmts and releasing SSA names until...
23911 (execute_pred_commoning): ... after processing all chains.
23913 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23916 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
23917 external functions.
23919 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
23921 * doc/bugreport.texi: Adjust section titles throughout the file
23922 to use "Title Case".
23923 * doc/extend.texi: Likewise.
23924 * doc/gcov.texi: Likewise.
23925 * doc/implement-c.texi: Likewise.
23926 * doc/implement-cxx.texi: Likewise.
23927 * doc/invoke.texi: Likewise.
23928 * doc/objc.texi: Likewise.
23929 * doc/standards.texi: Likewise.
23930 * doc/trouble.texi: Likewise.
23932 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
23934 * cgraph.h (symtab_node::has_aliases_p): Simplify.
23935 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
23936 * tree.c (lookup_binfo_at_offset): Make static.
23937 (get_binfo_at_offset): Do not shadow offset; add explanatory
23940 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
23942 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
23943 for all floading point loads and stores except those using a register
23945 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
23948 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
23950 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
23951 (do_estimate_growth_1): Record if any uninlinable edge was seen.
23952 (estimate_growth): Handle uninlinable edges correctly.
23953 (check_callers): New.
23954 (growth_likely_positive): Handle aliases correctly.
23956 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
23958 * ipa-chkp.c: Use iterate_direct_aliases.
23959 * symtab.c (resolution_used_from_other_file_p): Move inline.
23960 (symtab_node::create_reference): Fix formating.
23961 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23962 (symtab_node::iterate_reference): Move inline.
23963 (symtab_node::iterate_referring): Move inline.
23964 (symtab_node::iterate_direct_aliases): Move inline.
23965 (symtab_node::used_from_object_file_p_worker): Inline into ...
23966 (symtab_node::used_from_object_file_p): ... this one; move inline.
23967 (symtab_node::call_for_symbol_and_aliases): Move inline;
23968 use iterate_direct_aliases.
23969 (symtab_node::call_for_symbol_and_aliases_1): New method.
23970 (cgraph_node::call_for_symbol_and_aliases): Move inline;
23971 use iterate_direct_aliases.
23972 (cgraph_node::call_for_symbol_and_aliases_1): New method.
23973 (varpool_node::call_for_node_and_aliases): Rename to ...
23974 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
23975 use iterate_direct_aliases.
23976 (varpool_node::call_for_symbol_and_aliases_1): New method.
23977 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
23978 (ipa_discover_readonly_nonaddressable_var): Update.
23979 * ipa-devirt.c: Fix formating.
23980 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
23982 (cgraph_node::call_for_symbol_and_aliases): Move inline.
23983 (cgraph_node::call_for_symbol_and_aliases_1): New function..
23984 * cgraph.h (used_from_object_file_p_worker): Remove.
23985 (resolution_used_from_other_file_p): Move inline.
23986 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23987 (symtab_node::iterate_reference): Move inline.
23988 (symtab_node::iterate_referring): Move inline.
23989 (symtab_node::iterate_direct_aliases): Move inline.
23990 (symtab_node::used_from_object_file_p_worker): Inline into ...
23991 (symtab_node::used_from_object_file_p): Move inline.
23992 * tree-emutls.c (ipa_lower_emutls): Update.
23993 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
23994 (varpool_node::call_for_node_and_aliases): Remove.
23996 2015-02-14 Jakub Jelinek <jakub@redhat.com>
23998 PR tree-optimization/62209
23999 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
24000 op == range->exp, insert seq and gimplified code after labels
24001 instead of after the phi.
24003 2015-02-13 Jeff Law <law@redhat.com>
24006 Revert my change for tree-optimization/64823.
24008 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24010 PR tree-optimization/65053
24011 * tree-ssa-phiopt.c (value_replacement): When moving assign before
24012 cond, either reset VR on lhs or set it to phi result VR.
24014 2015-02-13 Jeff Law <law@redhat.com>
24016 PR tree-optimization/64823
24017 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
24018 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24019 threading through blocks with PHIs, but no statements.
24020 (thread_through_normal_block): Distinguish between blocks where
24021 we did not process all the statements and blocks with no statements.
24023 PR rtl-optimization/47477
24024 * match.pd (convert (plus/minus (convert @0) (convert @1): New
24025 simplifier to narrow arithmetic.
24027 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
24030 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
24031 polymorphic call info when type is not known to be preserved.
24033 2015-02-13 Maritn Jambor <mjambor@suse.cz>
24036 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
24037 (inline_call): Use it.
24039 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
24041 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
24042 GOMP_DEVICE_NVIDIA_PTX.
24044 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24047 * stmt.c (emit_case_nodes): Use void_type_node instead of
24048 NULL_TREE as LABEL_DECL type.
24050 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
24052 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
24054 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
24055 symbolic references to data to be forced to constant memory on the
24058 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
24060 PR tree-optimization/65002
24061 * tree-cfg.c (pass_data_fixup_cfg): Don't update
24063 * tree-sra.c (some_callers_have_no_vuse_p): New.
24064 (ipa_early_sra): Reject functions whose callers
24065 assume function is read only.
24067 2015-02-13 Richard Biener <rguenther@suse.de>
24070 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
24071 for LTO produced CUs.
24073 2015-02-13 Bin Cheng <bin.cheng@arm.com>
24075 PR tree-optimization/64705
24076 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
24077 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
24078 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
24079 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
24080 expand_simple_operations.
24082 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
24083 Richard Henderson <rth@redhat.com>
24086 * cgraphunit.c (cgraph_node::finalize_function): Set definition
24087 before notice_global_symbol.
24088 (varpool_node::finalize_decl): Likewise.
24089 * varasm.c (default_binds_local_p_2): Rename from
24090 default_binds_local_p_1, add weak_dominate argument. Use direct
24091 returns instead of assigning to local variable. Unify varpool and
24092 cgraph paths via symtab_node. Reject undef weak variables before
24093 testing visibility. Reorder tests for simplicity.
24094 (default_binds_local_p): Use default_binds_local_p_2.
24095 (default_binds_local_p_1): Likewise.
24096 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
24098 (default_elf_asm_output_external): Emit visibility when specified.
24100 2015-02-13 Alan Modra <amodra@gmail.com>
24102 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
24103 code setting up r11 for out-of-line fp restore.
24105 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
24107 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
24108 (muser-mode): Likewise.
24110 2015-02-13 Alan Modra <amodra@gmail.com>
24112 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
24113 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
24115 2015-02-12 David Howells <dhowells@redhat.com>
24117 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
24119 * tree-ssa-uninit.c (dump_predicates): Likewise.
24120 * opts.c (print_filtered_help): Likewise.
24122 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24124 * dwarf2out.c (output_die): Use "%s", name instead of name to
24125 avoid -Wformat-security warning.
24127 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
24128 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24129 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
24130 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24132 2015-02-12 Jason Merrill <jason@redhat.com>
24134 * common.opt (-flifetime-dse): New.
24136 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24139 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
24141 PR tree-optimization/65014
24142 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
24143 use original second operand of arg0 or arg1 instead of
24144 that adjusted by STRIP_NOPS.
24146 2015-02-11 Jeff Law <law@redhat.com>
24149 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
24150 that needs to be queued, just queue it for a single cycle.
24152 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
24154 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
24155 bodies of thunks; comment on why.
24156 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
24157 symbols are extern.
24159 2015-02-11 Richard Henderson <rth@redhat.com>
24162 * tree-eh.c (mark_reachable_handlers): Mark source and destination
24163 regions of __builtin_eh_copy_values.
24165 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24167 PR middle-end/65003
24168 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
24169 ultimate alias is MEM with SYMBOL_REF satisfying
24170 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
24171 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
24173 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
24175 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
24176 "diagnostic-core.h".
24177 (main): Initialize progname, and call diagnostic_initialize.
24179 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
24180 instead of __OPENMP_TARGET__.
24182 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
24183 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
24184 hard-coding PTX_ID.
24186 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
24188 * doc/sourcebuild.texi (pie_enabled): Document.
24190 2015-02-11 Martin Liska <mliska@suse.cz>
24193 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
24194 a return value for call to a function that is noreturn.
24196 2015-02-11 Richard Biener <rguenther@suse.de>
24199 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
24202 2015-02-11 Andrew Pinski <apinski@cavium.com>
24205 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
24206 Change the first argument type to size_type_node and add another
24208 (aarch64_simd_expand_builtin): Handle the new argument to
24209 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
24210 print an out when the first two arguments are not
24211 nonzero integer constants.
24212 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24213 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
24215 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24218 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
24219 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
24220 (ix86_set_current_function): Rewritten.
24221 (ix86_add_new_builtins): Temporarily clear current_target_pragma
24222 when creating builtin fndecls.
24224 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24227 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
24229 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
24230 have no comdat group.
24231 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
24232 (lto_output_varpool_node): Always output alias info.
24233 (output_refs): Output refs of boundary aliases, too.
24234 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
24235 (output_symtab): Output call eges in thunks in boundary.
24236 (get_alias_symbol): Remove.
24237 (input_node, input_varpool_node): Do not special case weakrefs.
24238 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
24239 alias and thunks targets in the boundary; do not take removed symbols
24240 from their comdat groups.
24241 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
24242 (cgraph_node::global_info): Remove.
24243 (cgraph_node::rtl_info): Look through aliases and thunks.
24244 * cgrpah.h (global_info): Remove.
24245 (non_local_p): Remove.
24247 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24248 Sandra Loosemore <sandra@codesourcery.com>
24250 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
24251 to inline asm. List dialects in proper order.
24253 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24254 Sandra Loosemore <sandra@codesourcery.com>
24256 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
24258 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24260 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
24261 modified) reference to Solaris.
24263 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
24265 * doc/extend.texi (Extended Asm): Fix typos.
24267 2015-02-10 Jakub Jelinek <jakub@redhat.com>
24270 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
24272 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
24275 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
24276 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
24277 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
24278 * config/sh/constraints.md (Ara, Add): New constraints.
24279 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
24281 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
24282 atomic_mem_operand_0. Don't use force_reg on the memory address.
24283 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
24284 Sra constraint. Convert to insn_and_split. Add workaround for
24286 (atomic_compare_and_swap<mode>_hard): Copy to
24287 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
24288 Use atomic_mem_operand_0 predicate.
24289 (atomic_compare_and_swap<mode>_soft_gusa,
24290 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
24291 AraAdd constraints.
24292 (atomic_compare_and_swap<mode>_soft_tcb,
24293 atomic_compare_and_swap<mode>_soft_imask,
24294 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
24295 atomic_mem_operand_0 predicate and SraSdd constraints.
24296 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
24298 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
24299 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
24300 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
24301 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
24302 force_reg on the memory address.
24303 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
24304 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
24305 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
24306 atomic_mem_operand_1 predicate and Sra constraint.
24307 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
24308 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24309 Use atomic_mem_operand_1 predicate.
24310 (atomic_<fetchop_name><mode>_hard): Copy to
24311 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24312 Use atomic_mem_operand_1 predicate.
24313 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
24314 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24315 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
24316 insn_and_split. Use atomic_mem_operand_1 predicate.
24317 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
24318 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
24319 Use atomic_mem_operand_1 predicate.
24320 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
24321 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24322 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
24323 in generated insn with original mem operand before emitting the insn.
24324 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
24325 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
24326 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
24327 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
24328 Use atomic_mem_operand_1 predicate and AraAdd constraints.
24329 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
24330 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
24331 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
24332 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
24333 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
24334 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
24335 atomic_not_fetch<mode>_soft_tcb,
24336 atomic_<fetchop_name>_fetch<mode>_soft_imask,
24337 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
24338 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
24339 Use atomic_mem_operand_1 predicate and SraSdd constraints.
24341 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
24343 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
24344 and 3 earlyclobber operands.
24346 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24348 * common.opt (fstack-reuse): Mark as optimization.
24350 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24353 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
24355 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
24357 PR tree-optimization/64326
24358 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
24360 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
24362 PR gcov-profile/61889
24363 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
24365 2015-02-10 Richard Biener <rguenther@suse.de>
24367 PR tree-optimization/64995
24368 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
24369 value we use is final.
24370 (visit_reference_op_store): Always valueize op.
24371 (visit_use): Properly valueize vuses.
24373 2015-02-10 Richard Biener <rguenther@suse.de>
24375 PR tree-optimization/64909
24376 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
24377 pass a scalar-stmt count estimate to the cost model.
24378 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
24380 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
24382 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
24383 enabled by default together with var-tracking.
24385 2015-02-10 Nick Clifton <nickc@redhat.com>
24387 * config/rl78/rl78.c: Remove DIV attribute code accidentally
24388 included in previous rl78 commit.
24390 2015-02-10 Richard Biener <rguenther@suse.de>
24392 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
24393 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
24394 return the bitpack.
24396 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24398 PR gcov-profile/61889
24399 * config.in: regenerate.
24400 * configure.in: Likewise.
24401 * configure.ac: Check for ftw.h.
24402 * gcov-tool.c: Check for ftw.h before using nftw.
24404 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24407 * ipa-visibility.c (update_visibility_by_resolution_info): Only
24408 assert when not in lto mode.
24410 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24412 * ira-color.c (setup_left_conflict_sizes_p): Simplify
24413 initialization/assignment of conflict_size.
24415 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
24418 * ipa-cp.c (gather_caller_stats): Skip thunks.
24419 (propagate_constants_topo): Skip aliases.
24421 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
24424 * config/sh/sh.c (sh_option_override): Don't change
24425 -freorder-blocks-and-partition to -freorder-blocks even when
24426 unwinding is enabled.
24427 (sh_can_follow_jump): Return false if the followee jump is
24428 a crossing jump when -freorder-blocks-and-partition is specified.
24429 * config/sh/sh.md (*jump_compact_crossing): New insn.
24431 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
24432 Kaz Kojima <kkojima@gcc.gnu.org>
24435 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
24436 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
24437 (sh_can_redirect_branch): Rename to ...
24438 (sh_can_follow_jump): ... this. Constify argument types.
24439 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
24440 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
24441 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
24442 * doc/tm.texi: Regenerate.
24444 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24447 * builtins.c (expand_builtin): Call targetm.expand_builtin
24448 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
24450 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24453 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
24455 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24458 * ipa-icf.c (set_local): New function.
24459 (sem_function::merge): Use it.
24461 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24463 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
24464 (add_type_duplicate): Fix comparison of BINFOs.
24466 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24468 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
24469 on getting VOID pointer.
24471 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24474 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
24477 2015-02-09 Richard Biener <rguenther@suse.de>
24479 * genmatch.c (replace_id): Copy expr_type.
24481 2015-02-09 Richard Biener <rguenther@suse.de>
24483 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
24484 (streamer_write_tree_bitfields): Declare.
24485 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
24486 properly unpack padding.
24487 (unpack_value_fields): Inline ...
24488 (streamer_read_tree_bitfields): ... here.
24489 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
24490 and properly add padding bits.
24491 (streamer_pack_tree_bitfields): Fold into ...
24492 (streamer_write_tree_bitfields): ... this new function,
24493 exposing the bitpack object.
24494 * lto-streamer-out.c (lto_write_tree_1): Call
24495 streamer_write_tree_bitfields.
24497 2015-02-09 Richard Biener <rguenther@suse.de>
24499 PR tree-optimization/54000
24500 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
24501 (struct ivopts_data): Add loop_loc member.
24502 (tree_ssa_iv_optimize_loop): Dump loop location.
24503 (create_new_ivs): Likewise, also dump number of IVs generated.
24505 2015-02-09 Martin Liska <mliska@suse.cz>
24507 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
24508 just if not yet registered.
24509 (ipa_icf_generate_summary): Register callgraph hooks.
24511 2015-02-08 Andrew Pinski <apinski@cavium.com>
24513 * config/aarch64/aarch64.c (gty_dummy): Delete.
24515 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24518 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
24519 (cgraph_node::local_p): Remove thunk related FIXME.
24521 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24524 * i386.c (ix86_function_regparm): Look through aliases to see if callee
24525 is local and optimized.
24526 (ix86_function_sseregparm): Likewise; also use target's SSE math
24527 settings; error out instead of silently generating wrong code
24529 (init_cumulative_args): Look through aliases.
24531 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24534 * ipa-split.c (execute_split_functions): Split if function has aliases.
24536 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24539 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
24540 aliases before trying to expand it.
24541 (cgraph_node::expand_thunk): Fix formating.
24543 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
24545 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
24546 (Using Assembly Language with C): Expand introduction.
24547 (Basic Asm): Copy-edit. Add more information about uses of
24549 (Extended Asm): Copy-edit. Document new escape syntax and
24551 (Global Reg Vars): Copy-edit.
24552 (Local Reg Vars): Likewise.
24554 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
24558 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
24559 (DBX_CONTIN_CHAR): Define.
24561 2015-02-06 Sebastian Pop <s.pop@samsung.com>
24562 Brian Rzycki <b.rzycki@samsung.com>
24564 PR tree-optimization/64878
24565 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
24566 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
24567 Stop recursion at loop phi nodes after having visited a loop phi node.
24569 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24571 * toplev.c (process_options): Change flag_ipa_ra before creating
24572 optimization_{default,current}_node.
24575 * cgraphunit.c (cgraph_node::expand_thunk): If
24576 restype is not is_gimple_reg_type nor the thunk_fndecl
24577 returns aggregate_value_p, set restmp to a temporary variable
24578 instead of resdecl.
24580 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
24582 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
24584 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24587 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
24588 add a general secondary reload handler for SDmode, unless we have
24589 both read/write support for SDmode.
24591 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24593 PR middle-end/64937
24594 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
24595 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
24596 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
24597 1 before, push it to abstract_vec.
24598 (dwarf2out_abstract_function): Adjust caller. Don't call
24599 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
24600 DECL_ABSTRACT_P flags for all abstract_vec elts.
24602 2015-02-06 Renlin Li <renlin.li@arm.com>
24604 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
24606 * tree-ssa.c (execute_update_addresses_taken): Likewise.
24608 2015-02-06 Jeff Law <law@redhat.com>
24611 * config/h8300/h8300.c (push): New argument "in_prologue".
24612 Pass "in_prologue" along to "F".
24613 (h8300_push_pop): Corresponding changes.
24614 (h8300_expand_prologue): Likewise.
24615 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
24617 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24619 PR rtl-optimization/64957
24621 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
24622 IOR rather than for AND.
24624 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
24627 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
24628 of shift-add and (add + shift) operations. Rename local variable.
24630 2015-02-05 Jeff Law <law@redhat.com>
24633 * config/h8300/constraints.md (U): Correctly dectect
24634 "eightbit_data" memory addresses.
24635 * config/h8300/h8300.c (eightbit_constant_address_p): Also
24636 handle (const (plus (symbol_ref (x)))) where x is declared
24637 as an 8-bit data memory address.
24638 * config/h8300/h8300.md (call, call_value): Correctly detect
24639 "funcvec" functions.
24642 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
24643 24 to 28 bits for the H8/300.
24645 2015-02-06 Alan Modra <amodra@gmail.com>
24648 * config/rs6000/rs6000.c (chain_already_loaded): New function.
24649 (rs6000_call_aix): Use it.
24651 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
24653 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
24656 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
24658 * config/h8300/constraints.md ("U" constraint): Use strict
24659 variant of REG_OK_FOR_BASE_P after reload has started.
24661 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
24663 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
24664 define to zero if !TARGET_NEON.
24665 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
24667 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24668 Trevor Saunders <tsaunders@mozilla.com>
24671 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
24673 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24676 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
24677 when removing varpool nodes.
24679 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24682 * varpool.c (varpool_node::remove): Fix order of variables.
24684 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24687 * ipa-inline.c (inline_small_functions): Fix ordering issue between
24688 speculation resolution and key updates.
24690 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24692 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
24693 about not letting any speculative edges unupdated.
24695 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24698 * gcov-io.c (gcov_var): Export.
24700 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24702 PR middle-end/64922
24703 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
24704 edges that become speculative.
24706 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24708 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
24709 or DW_LANG_Fortran08.
24710 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
24712 (gen_compile_unit_die): Handle "GNU Fortran2003" and
24713 "GNU Fortran2008" language strings.
24714 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
24715 * langhooks.h (lang_GNU_Fortran): New prototype.
24716 * langhooks.c (lang_GNU_Fortran): New function.
24717 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
24720 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24722 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
24723 (RTX_OK_FOR_OLO10_P): Likewise.
24725 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24727 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
24729 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24731 PR middle-end/64922
24732 * gimple.c: Include gimple-ssa.h.
24733 (maybe_remove_unused_call_args): New function.
24734 * gimple.h (maybe_remove_unused_call_args): Declare.
24735 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
24736 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
24737 * gimple-fold.c (gimple_fold_call): Likewise.
24739 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
24741 PR rtl-optimization/64905
24742 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
24743 pointer alignment if it isn't needed.
24745 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24747 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
24748 cortex-a72.cortex-a53.
24749 * config/aarch64/aarch64-tune.md: Regenerate.
24750 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
24752 2015-02-04 Nick Clifton <nickc@redhat.com>
24754 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
24757 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24759 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
24760 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
24761 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
24763 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
24764 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
24765 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
24766 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
24767 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
24768 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
24769 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
24770 * tree-core.h (enum built_in_function): In between
24771 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
24772 for builtins that use DEF_BUILTIN_CHKP macro.
24774 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
24777 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
24778 operands for tcc_comparison exprs. Fix typos.
24781 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
24782 of two XORs that have an intervening AND or IOR.
24785 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
24786 simplification of XOR of AND to not allocate new rtx before
24787 committing to a simplification.
24789 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24791 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
24792 manual swaps in all peepholes.
24794 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24796 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
24797 of manual swapping implementation.
24798 (aarch64_expand_vec_perm_const_1): Likewise.
24800 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
24802 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
24803 (generic_addrcost_table): Remove NAMED_PARAM.
24804 (cortexa57_addrcost_table): Likewise.
24805 (xgene1_addrcost_table): Likewise.
24806 (generic_regmove_table): Likewise.
24807 (cortexa53_regmove_table): Likewise.
24808 (xgene1_regmove_table): Likewise.
24809 (generic_vector_table): Likewise.
24810 (cortexa57_vector_table): Likewise.
24811 (xgene1_vector_table): Likewise.
24812 (generic_tunings): Likewise.
24813 (cortexa53_tunings): Likewise.
24814 (cortexa57_tunings): Likewise.
24815 (xgene1_tunings): Likewise.
24817 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24819 * config/arm/arm-cores.def: Add cortex-a72 and
24820 cortex-a72.cortex-a53.
24821 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
24822 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
24823 * config/arm/arm-tune.md: Regenerate.
24824 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
24825 "cortex-a72.cortex-a53".
24826 * doc/invoke.texi (ARM Options/-mtune): Likewise.
24828 2015-02-04 Nick Clifton <nickc@redhat.com>
24831 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
24833 (nonimmediate_di_operand): Likewise.
24835 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
24836 prefixes of known F5 using MSP430 MCUs.
24838 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24840 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
24841 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
24842 instead of __builtin_sqrt.
24844 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
24846 * varasm.c (do_assemble_alias): Follow transparent alias
24848 (default_assemble_visibility): Follow transparent alias
24849 chain for decl name.
24851 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24853 PR middle-end/62103
24854 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
24855 to compute size of referenced value in the constant case.
24857 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24859 PR rtl-optimization/64756
24860 * cse.c (invalidate_dest): New function.
24861 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
24862 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
24863 invalidate and do not record it.
24865 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
24868 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
24869 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
24870 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
24871 atomic_nand<mode>_soft_tcb): New insns.
24872 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
24873 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
24874 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
24875 Split into atomic_not_fetchsi_hard if operands[0] is unused.
24876 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
24877 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24878 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
24879 atomic_not<mode>_hard if operands[0] is unused.
24880 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
24881 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
24882 if operands[0] is unused.
24883 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
24884 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
24885 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
24886 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24888 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
24889 into atomic_not<mode>_soft_tcb if operands[0] is unused.
24890 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
24891 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
24892 if operands[0] is unused.
24893 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
24894 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
24895 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
24896 atomic_nand_fetchsi_hard if operands[0] is unused.
24897 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
24898 atomic_nand<mode>_hard if operands[0] is unused.
24899 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
24900 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
24901 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
24902 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24903 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
24904 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
24905 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
24906 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24907 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
24908 atomic_not<mode>_hard if operands[0] is unused.
24909 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
24910 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24912 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
24913 into atomic_not<mode>_soft_tcb if operands[0] is unused.
24914 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
24915 atomic_nand<mode>_hard if operands[0] is unused.
24916 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
24917 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24919 2015-02-03 David Malcolm <dmalcolm@redhat.com>
24922 * Makefile.in (GCC_OBJS): Add gcc-main.o.
24923 * gcc-main.c: New file, containing "main" taken from gcc.c.
24924 * gcc.c (do_self_spec): Free decoded_options.
24925 (class driver): Move declaration to gcc.h.
24926 (main): Move declaration and implementation to new file
24928 (driver_get_configure_time_options): New function.
24929 * gcc.h (class driver): Move this declaration here, from
24931 (driver_get_configure_time_options): New declaration.
24933 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
24935 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
24936 cross-module inlining.
24937 * cgraph.h (cgraph_node): Add flag merged.
24938 * ipa-icf.c (sem_function::merge): Maintain it.
24940 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
24942 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
24943 instead of OBJECT_P.
24945 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
24948 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
24949 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
24950 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
24951 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
24953 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24956 * combine.c (reg_n_sets_max): New variable.
24957 (can_change_dest_mode, reg_nonzero_bits_for_combine,
24958 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
24959 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
24960 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
24961 (rest_of_handle_combine): Initialize reg_n_sets_max.
24963 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
24965 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
24966 if some always_inline was inlined, apply changes before inlining
24969 2015-02-02 David Malcolm <dmalcolm@redhat.com>
24972 * config/arm/arm.c (arm_option_override): Set
24973 arm_selected_arch/cpu/tune to NULL on entry.
24975 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
24976 Andrew Pinski <pinskia@gcc.gnu.org>
24977 Jakub Jelinek <jakub@gcc.gnu.org>
24980 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
24981 integer typing for small model. Use IN_RANGE.
24983 2015-02-02 Richard Biener <rguenther@suse.de>
24985 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
24986 * tree-vrp.c (vrp_valueize_1): Likewise.
24988 2015-02-02 Alan Modra <amodra@gmail.com>
24990 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
24991 than mem for toc_restore.
24992 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
24993 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
24994 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
24996 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
24999 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
25000 explicit default options.
25002 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
25005 * ipa-utils.c (ipa_merge_profiles): Add release argument.
25006 * ipa-icf.c (sem_function::merge): Do not release body when merging.
25007 * ipa-utils.h (ipa_merge_profiles): Update prototype.
25009 2015-02-01 Jakub Jelinek <jakub@redhat.com>
25012 * cfgexpand.c (deep_ter_debug_map): New variable.
25013 (avoid_deep_ter_for_debug): New function.
25014 (expand_debug_expr): If TERed SSA_NAME is in
25015 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
25016 instead of trying to expand SSA_NAME's def stmt.
25017 (expand_debug_locations): When expanding debug bind
25018 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
25019 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
25021 (pass_expand::execute): Call avoid_deep_ter_for_debug on
25022 all debug bind stmts. Delete deep_ter_debug_map after
25023 expand_debug_location if non-NULL and clear it.
25025 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
25028 * config/sh/sync.md (atomic_fetch_notsi_hard,
25029 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
25030 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
25031 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
25032 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
25033 atomic_not_fetch<mode>_soft_imask): New insns.
25035 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25037 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
25038 (rank_for_schedule_debug): Split from ...
25039 (rank_for_schedule): ... this.
25040 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
25041 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
25043 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
25045 * doc/md.texi (Machine Constraints): Alphabetize table by target.
25046 * doc/extend.texi (x86 Variable Attributes): Move section to
25047 correct alphabetization after renaming.
25048 (x86 Type Attributes): Likewise.
25049 (Target Builtins): Re-alphabetize menu.
25050 (x86 Built-in Functions): Move section to correct alphabetization
25052 (x86 transactional memory intrinsics): Likewise.
25053 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
25054 and x86 Windows Options in table and menu.
25055 (x86 Options): Move section to correct alphabetization after
25057 (x86 Windows Options): Likewise.
25059 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
25061 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
25062 preferred names of the architecture and its 32- and 64-bit
25064 * doc/invoke.texi: Likewise.
25065 * doc/md.texi: Likewise.
25067 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
25070 * config/i386/predicates.md (address_no_seg_operand): Reject
25071 non-CONST_INT_P operands in invalid mode.
25073 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
25075 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
25076 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
25077 * config/i386/predicates.md (address_no_seg_operand): Call
25078 address_operand with VOIDmode.
25079 (vsib_address_operand): Ditto.
25080 (address_mpx_no_base_operand): Ditto.
25081 (address_mpx_no_index_operand): Ditto.
25083 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25086 * lra-constraints.c (original_subreg_reg_mode): New.
25087 (simplify_operand_subreg): Try to simplify subreg of const. Use
25088 original_subreg_reg_mode for it.
25089 (swap_operands): Update original_subreg_reg_mode.
25090 (curr_insn_transform): Set up original_subreg_reg_mode.
25092 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25095 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
25097 (process_alt_operands): Use it.
25098 (curr_insn_transform): Check the optional reload pseudo class is
25101 2015-01-30 Joseph Myers <joseph@codesourcery.com>
25103 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
25104 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
25106 * toplev.h (init_asm_output): Update comment on use of
25107 UNKNOWN_LOCATION with fatal_error.
25108 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
25109 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
25110 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
25111 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
25112 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
25113 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
25114 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
25115 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
25116 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
25117 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
25118 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
25119 fatal_error changed to pass input_location as first argument.
25121 2015-01-30 Martin Liska <mliska@suse.cz>
25123 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
25124 in #pragma GCC diagnostic guards.
25126 2015-01-30 Richard Biener <rguenther@suse.de>
25128 PR tree-optimization/64829
25129 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
25130 not add a widening conversion pattern but hand off extra
25131 widenings to callers.
25132 (vect_recog_widen_mult_pattern): Handle extra widening produced
25133 by vect_handle_widen_op_by_const.
25134 (vect_recog_widen_shift_pattern): Likewise.
25135 (vect_pattern_recog_1): Remove excess vertical space in dumping.
25136 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
25137 (vect_init_vector_1): Likewise.
25138 (vect_get_vec_def_for_operand): Likewise.
25139 (vect_finish_stmt_generation): Likewise.
25140 (vectorizable_load): Likewise.
25141 (vect_analyze_stmt): Likewise.
25142 (vect_is_simple_use): Likewise.
25144 2015-01-29 Jeff Law <law@redhat.com>
25146 * combine.c (try_combine): Fix typo in comment.
25148 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
25151 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
25152 (rs6000_stack_info): Add assert.
25153 (rs6000_output_savres_externs): New function, split off from...
25154 (rs6000_output_function_prologue): ... here. Do not call it for
25157 2015-01-29 Jeff Law <law@redhat.com>
25160 * combine.c (try_combine): If I0 is a memory load and I3 a store
25161 to a related address, increase the "goodness" of doing a 4-insn
25162 combination with I0-I3.
25163 (make_field_assignment): Handle SUBREGs in the ior+and case.
25165 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
25167 PR tree-optimization/64746
25168 * tree-if-conv.c (mask_exists): New function.
25169 (predicate_mem_writes): Save created mask with given size for further
25171 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
25172 (ifcvt_repair_bool_pattern): Collect all statements that are root
25173 of bool pattern and use iterative algorithm to remove multiple uses
25174 of predicates, display number of required iterations.
25176 2015-01-29 Richard Biener <rguenther@suse.de>
25178 PR tree-optimization/64853
25179 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
25180 stmt will get simulated again.
25181 * tree-ssa-ccp.c (valueize_op_1): Likewise.
25183 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25185 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
25186 return_in_pc. Remove redundant assignments.
25187 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
25188 (arm_expand_epilogue): Don't compare boolean with true in if condition.
25190 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
25192 * config/i386/i386.c (ix86_mode_after): Make static.
25194 2015-01-29 Richard Biener <rguenther@suse.de>
25196 PR tree-optimization/64844
25197 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
25198 dump cost model analysis.
25199 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25200 Do not register adjusted load/store costs here.
25202 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25203 Uros Bizjak <ubizjak@gmail.com>
25205 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
25206 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
25207 using x86_use_pseudo_pic_reg.
25208 * config/i386/i386.c (ix86_conditional_register_usage): Remove
25209 support for fixed PIC register.
25210 (ix86_use_pseudo_pic_reg): Not static any more.
25212 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25214 PR middle-end/64805
25215 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
25216 to avoid error in cgraph node verification.
25218 2015-01-29 Marek Polacek <polacek@redhat.com>
25220 * doc/standards.texi: Reflect that the default for C is gnu11.
25222 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
25225 * reorg.c (switch_text_sections_between_p): New function.
25226 (relax_delay_slots): Call it when testing if the jump insn
25227 is removable. Use targetm.can_follow_jump when testing if
25228 the conditional branch can follow an unconditional jump.
25230 2015-01-27 Caroline Tice <cmtice@google.com>
25232 Committing VTV Cywin/Ming patch for Patrick Wollgast
25233 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
25234 if -fvtable-verify=preinit/std is used.
25235 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
25236 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
25237 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
25238 if -fvtable-verify=preinit/std is used.
25239 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25240 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
25241 if -fvtable-verify=preinit/std is used.
25242 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
25243 * config/i386/mingw32.h (LIB_SPEC): Likewise.
25244 * varasm.c (assemble_variable): Add code to properly set the comdat
25245 section and name for the .vtable_map_vars section in case the
25246 target is PE or COFF.
25248 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25251 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
25252 make sane BB profile.
25253 (cgraph_node::expand_thunk): Make sane BB profile.
25254 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
25255 * cgraph.h (init_lowered_empty_function): Update prototype.
25256 * config/i386/i386.c (make_resolver_func): Update call.
25257 * predict.c (gate): Disable branch prediction pass if
25258 profile is already there.
25260 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25262 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
25263 * opth-gen.awk: Likewise.
25264 * common.opt: Mark flag_fp_contract_mode as Optimization.
25266 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
25268 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
25269 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
25271 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
25274 * config/sh/predicates.md (atomic_arith_operand,
25275 atomic_logical_operand): Remove.
25276 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
25277 (atomic_arith_operand_0): New predicate.
25278 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
25279 Use atomic_arith_operand_0 for input values.
25280 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
25281 atomic_compare_and_swap<mode>_soft_gusa,
25282 atomic_compare_and_swap<mode>_soft_tcb,
25283 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
25284 arith_reg_operand instead of register_operand.
25285 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
25286 atomic_arith_operand_0 for newval input.
25287 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
25288 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
25289 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
25290 arith_reg_operand instead of register_operand.
25291 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
25292 fetchop_predicate_1, fetchop_constraint_1_llcs,
25293 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
25294 fetchop_constraint_1_imask): New code iterator attributes.
25295 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
25296 register_operand. Use fetchop_predicate_1.
25297 (atomic_fetch_<fetchop_name>si_hard,
25298 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
25299 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
25300 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
25301 and arith_reg_operand instead of register_operand. Use
25302 fetchop_predicate_1, fetchop_constraint_1_gusa.
25303 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
25304 and arith_reg_operand instead of register_operand. Use
25305 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
25307 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
25308 and arith_reg_operand instead of register_operand. Use
25309 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
25311 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
25312 register_operand. Use atomic_logical_operand_1.
25313 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
25314 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
25315 arith_reg_operand instead of register_operand.
25316 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
25317 Use arith_reg_dest and arith_reg_operand instead of register_operand.
25318 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
25319 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
25320 register_operand. Use fetchop_predicate_1.
25321 (atomic_<fetchop_name>_fetchsi_hard,
25322 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
25323 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25324 fetchop_constraint_1_llcs.
25325 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
25326 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25327 fetchop_constraint_1_gusa.
25328 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
25329 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25330 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
25331 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
25332 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25333 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
25334 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
25335 register_operand. Use atomic_logical_operand_1.
25336 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
25337 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
25338 arith_reg_operand instead of register_operand.
25339 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
25340 arith_reg_operand instead of register_operand. Use logical_operand
25341 and K08. Adjust asm sequence to allow R0 usage.
25342 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
25343 arith_reg_operand instead of register_operand. Use logical_operand
25346 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25349 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
25350 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
25351 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
25352 only get_full_len HOST_WIDE_INTs from get_val () array rather than
25353 all bits in *val_wide.
25355 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
25357 * varpool.c (tls_model_names): Fix names.
25358 (varpool_node::dump): Dump tls- prefix for tls models.
25360 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
25361 Bernd Schmidt <bernds@codesourcery.com>
25362 Nathan Sidwell <nathan@codesourcery.com>
25364 * config/nvptx/mkoffload.c: New file.
25365 * config/nvptx/t-nvptx: Add build rules for it.
25366 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
25367 (extra_programs): Add mkoffload.
25368 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
25370 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
25372 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
25374 PR middle-end/64809
25375 * cfgexpand.c (reorder_operands): Skip debug gimples.
25377 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
25379 PR tree-optimization/64277
25380 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
25381 range info when possible to refine estimation.
25383 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25385 PR tree-optimization/64718
25386 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
25387 be a 16bit unsigned integer when n->range is 16.
25388 (bswap_replace): Convert src to that type if necessary for all bswap
25389 sizes. Fix rotation right notation in nearby comment. Use bswap_type
25390 set in pass_optimize_bswap::execute ().
25392 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
25394 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
25395 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
25396 integer and floating point variants.
25397 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
25399 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
25401 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
25402 for all vector modes.
25404 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25407 * doc/sourcebuild.texi (comdat_group): Document.
25409 2015-01-28 Terry Guo <terry.guo@arm.com>
25411 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
25413 2015-01-27 David Malcolm <dmalcolm@redhat.com>
25415 * toplev.c (print_version): Add param "show_global_state", and
25416 only print GGC and plugin information if it is true.
25417 (init_asm_output): Pass in "true" for the new param when calling
25419 (process_options): Likewise.
25420 (toplev::main): Likewise.
25421 * toplev.h (print_version): Add new param to decl.
25423 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25427 * tree.c (lookup_binfo_at_offset): New function.
25428 (get_binfo_at_offset): Use it.
25430 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25433 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
25434 on vtable being vtable.
25436 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
25438 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
25439 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
25440 -mhotpatch= option.
25441 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
25442 -mno-hotpatch options. Change syntax of -mhotpatch= option.
25443 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
25445 (s390_hotpatch_trampoline_halfwords_max): Renamed.
25446 (s390_hotpatch_hw_max): New name.
25447 (s390_hotpatch_trampoline_halfwords): Renamed.
25448 (s390_hotpatch_hw_before_label): New name.
25449 (get_hotpatch_attribute): Removed.
25450 (s390_hotpatch_hw_after_label): New name.
25451 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
25453 (s390_attribute_table): Ditto.
25454 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
25455 (s390_function_num_hotpatch_hw): New name.
25456 Remove special handling of inline functions and hotpatching.
25457 Return number of nops before and after the function label.
25458 (s390_can_inline_p): Removed.
25459 (s390_asm_output_function_label): Emit a configurable number of nops
25460 after the function label.
25461 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
25462 (TARGET_CAN_INLINE_P) Removed.
25463 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
25465 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25466 Jiong Wang <jiong.wang@arm.com>
25468 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
25470 (cb<optab><mode>1): Likewise.
25471 * config/aarch64/iterators.md (bcond): New define_code_attr.
25473 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25475 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
25478 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25480 * config/s390/s390.c (s390_register_move_cost): Increase costs for
25483 2015-01-27 Richard Biener <rguenther@suse.de>
25485 * tree-vrp.c (update_value_range): Intersect the range with
25486 old recorded SSA name range information.
25488 2015-01-27 Nick Clifton <nickc@redhat.com>
25490 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
25491 BC, DE and HL registers directly, not via AX.
25492 When decrementing the stack pointer by a large amount, transfer SP
25493 into AX and perform the subtraction there.
25494 (rl78_expand_epilogue): Perform the inverse of the above
25497 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25499 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
25501 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25502 Yury Gribov <y.gribov@samsung.com>
25505 * ubsan.c (ubsan_source_location): Refactor code.
25506 (ubsan_type_descriptor): Update type size. Refactor code.
25508 2015-01-27 Richard Biener <rguenther@suse.de>
25510 PR tree-optimization/56273
25511 PR tree-optimization/59124
25512 PR tree-optimization/64277
25513 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
25514 from the first VRP pass.
25516 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25519 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
25520 handle the first argument in the same loop as all the other arguments.
25522 PR rtl-optimization/61058
25523 * jump.c (cleanup_barriers): Update basic block boundaries
25524 if BLOCK_FOR_INSN is non-NULL on PREV.
25526 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
25528 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
25529 bounds narrowing, already instrumented calls and calls to
25530 not instrumentable functions.
25532 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25534 PR tree-optimization/64807
25535 * wide-int.cc (wi::divmod_internal): Clear
25536 b_dividend[dividend_blocks_needed].
25538 2015-01-26 DJ Delorie <dj@redhat.com>
25540 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
25541 volatile memory references.
25543 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
25546 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
25548 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
25549 shifts if it already fits into K08.
25551 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25554 * ipa-inline.c (inline_small_functions): Print "unknown" even
25555 if edge->call_stmt is non-NULL, but has builtins or unknown
25558 PR middle-end/64421
25559 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
25560 with asterisk, skip the first character.
25562 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25565 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
25568 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
25571 * config/i386/i386.md (*movdi_internal): Also check operand 0
25572 to determine TYPE_LEA operand.
25573 (*movsi_internal): Ditto.
25575 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25577 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
25578 OPTION_MASK_QUAD_MEMORY_ATOMIC.
25580 2015-01-26 Renlin Li <renlin.li@arm.com>
25582 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
25584 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
25587 2015-01-26 Richard Biener <rguenther@suse.de>
25589 PR middle-end/64764
25590 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
25591 combining two BIT_AND_EXPR predicates.
25593 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25596 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
25598 2015-01-26 Terry Guo <terry.guo@arm.com>
25600 * config/arm/arm.c (arm_file_start): Update the assignment of
25601 Tag_ABI_HardFP_use.
25603 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
25605 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
25607 config/arm/arm.md: Include the new Cortex-A57 model.
25608 (generic_sched): Don't use generic_sched when tuning for
25611 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
25612 Uros Bizjak <ubizjak@gmail.com>
25614 * config/i386/i386.c (get_builtin_code_for_version): Add
25615 support for BMI and BMI2 multiversion functions.
25617 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25619 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
25620 (extract_bit_field): Likewise.
25621 (extract_low_bits): Likewise.
25622 (expand_mult): Likewise.
25623 (expand_mult_highpart_adjust): Likewise.
25625 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
25627 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
25628 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
25629 * config/i386/i386.c (processor_model): Add
25630 M_INTEL_COREI7_BROADWELL.
25631 (arch_names_table): Add "broadwell".
25633 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
25642 * config/sh/sh-protos.h
25643 (sh_extending_set_of_reg::can_use_as_unextended_reg,
25644 sh_extending_set_of_reg::use_as_unextended_reg,
25645 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
25646 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
25647 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
25648 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
25649 (sh_treg_insns): New class.
25650 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
25651 (scope_counter): New class.
25652 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
25653 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
25654 sh_extending_set_of_reg::can_use_as_unextended_reg,
25655 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
25656 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
25657 sh_split_treg_set_expr): New functions.
25658 (addsubcosts): Handle treg_set_expr.
25659 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
25660 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
25661 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
25662 (sh_insn_operands_modified_between_p): Make non-static.
25663 * config/sh/predicates.md (zero_extend_movu_operand): Allow
25664 simple_mem_operand in addition to displacement_mem_operand.
25665 (zero_extend_operand): Don't allow zero_extend_movu_operand.
25666 (treg_set_expr, treg_set_expr_not_const01,
25667 arith_reg_or_treg_set_expr): New predicates.
25668 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
25669 arith_or_int_operand instead of logical_operand. Convert to
25670 insn_and_split. Try to optimize constant operand in splitter.
25671 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
25672 (*tstqi_t_zero): Delete.
25673 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
25674 (tstsi_t_and_not): Delete.
25675 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
25676 Convert to insn_and_split.
25677 (unnamed split, tstsi_t_zero_extract_xor,
25678 tstsi_t_zero_extract_subreg_xor_little,
25679 tstsi_t_zero_extract_subreg_xor_big): Delete.
25680 (*tstsi_t_shift_mask): New insn_and_split.
25681 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
25682 to recombine with surrounding insns when splitting.
25683 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
25684 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
25685 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
25686 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
25687 (*cbranch_div0s: Delete.
25688 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25689 Try to recombine with surrounding insns when splitting. Add operand
25691 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
25692 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
25693 *addc_r_r_msb, *addc_2r_msb): Delete.
25694 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
25696 (*addc_negreg_t): New insn_and_split.
25697 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25698 Try to recombine with surrounding insns when splitting.
25699 Add operand order variants.
25700 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
25701 insn_and_split patterns.
25702 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
25703 surrounding insns when splitting.
25704 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
25705 (*rotcl): Likewise. Add zero_extract variant.
25706 (*ashrsi2_31): New insn_and_split.
25707 (*negc): Convert to insn_and_split. Use treg_set_expr.
25708 (*zero_extend<mode>si2_disp_mem): Update comment.
25709 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
25711 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
25712 with surrounding insns when splitting.
25713 (any_treg_expr_to_reg): New insn_and_split.
25714 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
25715 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
25716 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
25717 *zero_extract_2): New single bit zero extract patterns.
25718 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
25719 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
25720 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
25721 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
25723 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
25724 register_operand for set source.
25726 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
25728 * i386.opt (prefetch_sse): New targetsave.
25729 * i386.c (ix86_function_specific_save): Save prefetch_sse.
25730 (ix86_function_specific_restore): Restore prefetch_sse and initialize
25731 ix86_cost/ix86_tune_cost.
25733 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25735 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
25736 Support the JIT by using 0 as the language type.
25738 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
25741 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
25742 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
25743 (mark_regno_live, process_bb_lives): Pass new parameter value to
25744 make_hard_regno_born.
25746 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25748 PR rtl-optimization/63637
25749 PR rtl-optimization/60663
25750 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
25751 if elt->cost is MAX_COST for ASM_OPERANDS.
25752 (find_sets_in_insn): Fix up comment typo.
25753 (cse_insn): Don't set src_volatile for all non-volatile
25754 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
25755 or with "memory" clobber. Set elt->cost to MAX_COST
25756 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
25757 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
25759 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25761 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
25764 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25766 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
25767 libgcc/config/i386/elf-lib.h.
25769 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25772 * gcc.c (print_configuration): Don't print a blank line at the end
25774 (run_attempt): ... but here unstead.
25776 PR middle-end/64734
25777 * omp-low.c (scan_sharing_clauses): Don't ignore
25778 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
25779 on target data/update constructs.
25781 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
25784 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
25785 (DEBUG_RELOAD): Removed define.
25786 (m32c_limit_reload_class): Enable traces with if DEBUG0.
25787 (m32c_function_arg): Added a type cast.
25788 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
25789 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
25790 * config/m32c/bitops.md (andqi3_16): Likewise.
25791 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
25792 (push_a01_l): Likewise.
25794 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25797 * main.c (main): Construct toplev instances with init_signals=true.
25798 * toplev.c (general_init): Add param "init_signals", and use it to
25799 conditionalize the calls to signal and host_hooks.extra_signals.
25800 (toplev::toplev): Add param "init_signals".
25801 (toplev::main): When invoking general_init, pass m_init_signals
25802 to control whether signal-handlers are installed.
25803 * toplev.h (toplev::toplev): Add param "init_signals".
25804 (toplev::m_init_signals): New field.
25806 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25809 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
25810 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
25811 latter may be affected by the former (e.g. on i686).
25813 2015-01-23 Martin Liska <mliska@suse.cz>
25815 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
25816 false positive during profiledbootstrap.
25818 2015-01-23 Tom de Vries <tom@codesourcery.com>
25821 * lto-opts.c (lto_write_options): Output non-explicit conservative
25823 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
25824 (append_compiler_options): Pass -fopenacc through.
25826 2015-01-23 Tom de Vries <tom@codesourcery.com>
25829 * lto-opts.c (lto_write_options): Output non-explicit conservative
25831 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
25832 (append_compiler_options): Pass -fopenmp through.
25834 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25837 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
25840 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
25841 * diagnostic.def (DK_ICE_NOBT): New kind.
25842 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
25843 like DK_ICE, but never print backtrace.
25844 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
25845 (internal_error_no_backtrace): New function.
25846 * gcc.c (execute): Use internal_error_no_backtrace instead of
25849 2015-01-22 Jeff Law <law@redhat.com>
25852 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
25853 improve code density for small immediate to memory case.
25854 (insv): Better handle bitfield assignments when the field is
25855 being set to all ones.
25856 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
25859 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25860 Jakub Jelinek <jakub@redhat.com>
25862 PR middle-end/64729
25863 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
25864 for !TARGET_LIBC_PROVIDES_SSP version and
25865 -fstack-protector-{all,strong,explicit} otherwise.
25866 * config/freebsd.h (LINK_SSP_SPEC): Handle
25867 -fstack-protector-{strong,explicit}.
25869 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
25870 H.J. Lu <hongjiu.lu@intel.com>
25873 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
25876 2015-01-22 Wei Mi <wmi@google.com>
25878 PR rtl-optimization/64557
25879 * dse.c (record_store): Call get_addr for mem_addr.
25880 (check_mem_read_rtx): Likewise.
25882 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
25884 * fold-const.c (const_binop): Add early return for non-tcc_binary.
25886 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
25888 * toplev.c (init_local_tick): Process the failure when read
25889 fails for random_seed.
25891 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
25892 'pretty_name' to avoid memory overflow.
25894 2015-01-22 Richard Biener <rguenther@suse.de>
25896 PR middle-end/64728
25897 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
25898 abnormal coalescing on undefined SSA names.
25900 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
25904 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
25906 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
25908 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
25910 PR middle-end/63325
25911 * fold-const.c (fold_checksum_tree): Don't include value of
25912 expr->decl_with_vis.symtab_node in the checksum.
25914 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25916 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
25918 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
25921 * gcc.c (insert_comments): New function.
25922 (try_generate_repro): Call it.
25923 (append_text): Removed.
25925 2015-01-22 Richard Biener <rguenther@suse.de>
25927 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
25928 with IL incompatible options. Properly honor user optimize
25931 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
25933 PR rtl-optimization/64682
25934 * combine.c (distribute_notes): When moving a death note for
25935 a register that is set in the new I2, make sure to put it
25936 before that new I2.
25938 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
25940 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
25941 not TARGET_DEFAULT.
25943 2015-01-21 Jakub Jelinek <jakub@redhat.com>
25946 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
25947 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
25948 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
25951 * doc/invoke.texi (-fsanitize=vptr): Document.
25953 PR rtl-optimization/62078
25954 * dse.c: Include cfgcleanup.h.
25955 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
25956 anything call purge_all_dead_edges and cleanup_cfg at the end
25959 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
25961 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
25964 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25966 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
25969 2015-01-21 David Sherwood <david.sherwood@arm.com>
25970 Tejas Belagod <Tejas.Belagod@arm.com>
25972 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
25973 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
25974 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
25977 2015-01-21 David Sherwood <david.sherwood@arm.com>
25978 Tejas Belagod <Tejas.Belagod@arm.com>
25980 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
25981 (aarch64_reverse_mask): New decls.
25982 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
25983 (insn_count): New mode_attr.
25984 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
25985 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
25986 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
25987 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
25988 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
25989 (aarch64_simd_st4): New patterns.
25990 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
25991 (aarch64_reverse_mask): New functions.
25993 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
25995 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
25997 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
25998 addressing modes for BE.
25999 (aarch64_print_operand): Add 'R' specifier.
26000 (aarch64_simd_disambiguate_copy): Delete.
26001 (aarch64_simd_emit_reg_reg_move): New function.
26002 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
26003 in define_splits for structural moves.
26004 (mov<mode>): Use less restrictive predicates.
26005 (*aarch64_mov<mode>): Simplify and only allow for LE.
26006 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
26008 2015-01-21 Alan Hayward <alan.hayward@arm.com>
26010 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
26012 2015-01-21 Richard Henderson <rth@redhat.com>
26015 * ccmp.c (used_in_cond_stmt_p): Remove.
26016 (expand_ccmp_expr): Don't use it.
26018 2015-01-21 Nick Clifton <nickc@redhat.com>
26020 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
26023 2015-01-21 Richard Biener <rguenther@suse.de>
26025 PR middle-end/64313
26026 * tree-core.h (builtin_info, builtin_info_type): Turn from
26027 an object with two arrays into an array of an object with
26028 decl and two flags, implicit_p and declared_p.
26029 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
26030 set_builtin_decl, set_builtin_decl_implicit_p,
26031 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
26032 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
26033 * builtins.c (builtin_info): Adjust.
26034 * gimplify.c (gimplify_addr_expr): References to builtins
26035 that have been declared by the user makes them eligible for
26036 use by the compiler. Call set_builtin_decl_implicit_p on them.
26038 2015-01-20 Jeff Law <law@redhat.com>
26041 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
26042 allow pc-relative addresses in operand predicates or constraints.
26044 2015-01-21 Bin Cheng <bin.cheng@arm.com>
26046 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
26047 neon on aarch32 processors for stringops.
26049 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26052 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
26054 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26057 * ipa-inline.c: Include lto-streamer.h
26058 (report_inline_failed_reason): Output source file differences and
26059 flags on optimization/target node mismatch.
26060 (can_inline_edge_p): Consider caller to be the outer inline function;
26061 be less restrictive about matching opimize and optimize_size attributes.
26062 (inline_account_function_p): Break out from ...
26063 (inline_small_functions): ... here.
26064 * ipa-inline-transform.c (clone_inlined_nodes): Use
26065 inline_account_function_p.
26066 (inline_call): Use optimize attribution; use inline_account_function_p.
26067 (inline_transform): Use opt_for_fn.
26068 * ipa-inline.h (inline_account_function_p): Declare.
26070 2015-01-20 Jakub Jelinek <jakub@redhat.com>
26073 * dwarf2out.c (decl_piece_node): Don't put bitsize into
26074 mode if bitsize <= 0.
26075 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
26076 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
26077 sizes and positions.
26079 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
26081 * config/nios2/nios2.c (nios2_asm_file_end): Implement
26082 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
26084 (TARGET_ASM_FILE_END): Define.
26086 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26088 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
26089 (struct tune_params): Use the enum.
26090 * arm.c (arm_*_tune): Update.
26091 (arm_option_override): Update.
26093 2015-01-20 Richard Biener <rguenther@suse.de>
26096 * ipa-reference.c (add_static_var): Inline ...
26097 (analyze_function): ... here after splitting out from ...
26098 (is_proper_for_analysis): ... this.
26100 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
26103 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
26104 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
26105 replace the conditional with it's true branch.
26106 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
26107 (arm_lra_p): Remove.
26109 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
26111 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
26113 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26115 * config/tilegx/mul-tables.c: Move symtab.h include after
26116 coretypes.h include.
26117 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
26118 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
26119 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
26120 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
26121 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26123 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
26127 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26129 PR rtl-optimization/64081
26130 * loop-iv.c (def_pred_latch_p): New function.
26131 (latch_dominating_def): Allow specific cases with non-single
26133 (iv_get_reaching_def): Likewise.
26134 (check_complex_exit_p): New function.
26135 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26136 with exits not executing on any iteration.
26138 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26141 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
26142 to set branch cost.
26144 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26147 * i386.c (gate): Check flag_expensive_optimizations and
26149 (ix86_option_override_internal): Drop optimize_size condition
26150 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
26151 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
26152 MASK_PREFER_AVX128.
26153 (ix86_avx256_split_vector_move_misalign,
26154 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
26155 * sse.md (all uses of TARGET_PREFER_AVX128): Add
26156 optimize_insn_for_speed_p check.
26158 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
26160 * config/mips/mips.h (FP_ASM_SPEC): New define.
26161 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
26164 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
26167 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
26168 nullptr for insn when reaching the first insn.
26169 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
26170 (sh_insn_operands_modified_between_p): Add nullptr check.
26171 (sh_find_extending_set_of_reg): Fix log message. Don't accept
26172 sign extending mem load if the insn contains any UNSPEC or
26175 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26177 * params.def (inline-unit-growth): Drop to 15%.
26178 * invoke.texi (inline-unit-growth): Document change.
26180 2015-01-19 Martin Liska <mliska@suse.cz>
26183 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
26184 function for second argument of OBJ_TYPE_REF.
26186 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26189 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
26190 whether function is an alias.
26192 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26194 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
26197 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
26199 PR rtl-optimization/64671
26200 * lra-remat.c (operand_to_remat): Don't consider jump and call
26203 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
26206 * config/rs6000/default64.h: Include rs6000-cpus.def.
26207 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
26208 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
26209 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
26211 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
26213 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
26214 pseudo-op to specify assembler dialect.
26216 2015-01-19 Martin Liska <mliska@suse.cz>
26219 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
26220 Handle safe potentially removed nodes during filtering.
26222 2015-01-19 Martin Liska <mliska@suse.cz>
26224 * doc/extend.texi (no_icf): Add new attribute description.
26225 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
26226 where the pass attempts to merge a function with no_icf attribute.
26228 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26231 * doc/md.texi (ARM Options): Document register constraints.
26233 2015-01-19 Jiong Wang <jiong.wang@arm.com>
26234 Andrew Pinski <apinski@cavium.com>
26237 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
26238 (ashl<mode>3): Don't expand if operands[2] is not constant.
26240 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26243 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
26244 Match xor-and-xor RTL pattern.
26246 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26248 PR rtl-optimization/64081
26249 * loop-iv.c (def_pred_latch_p): New function.
26250 (latch_dominating_def): Allow specific cases with non-single
26252 (iv_get_reaching_def): Likewise.
26253 (check_complex_exit_p): New function.
26254 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26255 with exits not executing on any iteration.
26257 2015-01-19 Jakub Jelinek <jakub@redhat.com>
26259 * common.opt (fgraphite): Fix a typo.
26261 2015-01-19 Felix Yang <felix.yang@huawei.com>
26263 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
26265 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
26266 uminp, smax_nanp, smin_nanp): New builtins.
26267 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
26268 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
26269 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
26270 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
26271 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
26272 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
26273 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
26274 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
26275 vpminnms_f32): Rewrite using builtin functions.
26277 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
26280 * omp-low.c (offload_symbol_decl): Remove variable.
26281 (get_offload_symbol_decl): Remove function.
26282 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
26283 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
26284 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
26285 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
26286 BUILT_IN_GOACC_UPDATE don't pass it at all.
26288 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26290 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
26293 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26295 * ipa-chkp.c (chkp_produce_thunks): Add early param
26296 to split thunks production into two passes. Keep
26297 'always_inline' function bodies after the first pass.
26298 (pass_data_ipa_chkp_early_produce_thunks): New.
26299 (pass_ipa_chkp_early_produce_thunks): New.
26300 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
26301 chkp_produce_thunks signature.
26302 (make_pass_ipa_chkp_early_produce_thunks): New.
26303 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
26304 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
26305 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
26307 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26309 * cgraph.c (cgraph_node::dump): Dump profile flags.
26311 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
26314 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
26315 reg appear first in the parallel.
26317 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26319 * ipa-reference.c (set_reference_optimization_summary,
26320 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
26322 (ignore_module_statics): New static var.
26323 (propagate_bits): If ipa-reference is disabled, do not look into local
26325 (analyze_function): Disable analysis when ipa_reference is disabled.
26326 (generate_summary): Do not dump when reference is disabled;
26327 collect vars accessed from functions with ipa-reference disabled.
26328 (get_read_write_all_from_node): When ipa-reference is disabled, use the
26330 (gate): Enable for LTO.
26331 (ignore_edge_p): New function.
26332 (propagate): Skip functions w/o ipa-reference analysis.
26333 * optc-save-gen.awk: Handle optimize_debug correctly.
26334 * opth-gen.awk: Likewise.
26335 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
26336 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
26337 fira-share-save-slots, fira-share-spill-slots,
26338 fmodulo-sched-allow-regmoves, fpartial-inlining,
26339 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
26340 ftracer, ftree-parallelize-loops, fassociative-math,
26341 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
26343 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
26344 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
26346 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
26349 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26352 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
26354 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
26356 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
26358 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
26359 Remove duplicate option listings.
26361 2015-01-18 Felix Yang <felix.yang@huawei.com>
26363 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
26364 (autofdo_source_profile::get_callsite_total_count,
26365 function_instance::get_function_instance_by_decl,
26366 string_table::get_index, string_table::get_index_by_decl,
26367 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
26368 Fix comment typos. Reformatting and minor code rearrangement.
26370 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26372 * config/rs6000/rs6000.md (probe_stack): Delete.
26373 (probe_stack_address): New.
26375 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26377 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
26378 to test for 32-bit ABIs, not !TARGET_POWERPC64.
26380 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26382 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
26383 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
26384 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
26386 (rs6000_libcall_value): Use the new function.
26388 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
26390 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
26392 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
26394 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
26395 implement a more precise life analysis for it during backward scan.
26397 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
26399 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
26401 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
26403 PR rtl-optimization/52773
26404 * calls.c (emit_library_call_value): When pushing arguments use
26405 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
26406 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
26407 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
26409 2015-01-17 Jeff Law <law@redhat.com>
26411 PR rtl-optimization/32790
26412 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
26413 not ZERO_EXTEND in SET_DESTs.
26415 2015-01-17 Alan Modra <amodra@gmail.com>
26417 * cprop.c (do_local_cprop): Revert last change.
26419 2015-01-16 DJ Delorie <dj@redhat.com>
26420 Nick Clifton <nickc@redhat.com>
26422 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
26423 (addhi3_real): Likewise. Fix [HL+0] syntax.
26424 (subqi3_real): Likewise.
26425 (subhi3_real): Likewise.
26426 (cbranchqi4_real): Likewise. Allow saddr,#imm.
26427 (cbranchhi4_real): Likewise.
26428 (cbranchhi4_real_inverted): Likewise.
26429 (cbranchsi4_real_lt): Likewise.
26430 (cbranchsi4_real_ge): Likewise.
26431 (cbranchsi4_real_ge): Likewise.
26432 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
26433 (sub<mode>3_virt): Likewise.
26434 (cbranchqi4_virt): Likewise.
26435 (cbranchhi4_virt): Likewise.
26436 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
26437 always use '[reg+imm]' even when imm is zero.
26438 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
26439 (rl78_general_operand): New.
26440 (rl78_nonimmediate_operand): New.
26441 (rl78_nonfar_operand): Use them.
26442 (rl78_nonfar_nonimm_operand): Likewise.
26443 (rl78_stack_based_mem): Fix.
26444 * config/rl78/constraints.md (Ibqi): New.
26449 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
26450 (iorqi3): Likewise.
26451 (xorqi3): Likewise.
26452 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
26454 * config/rl78/constrains (Qs8): New constraint.
26455 * config/rl78/rl78.c (rl78_flags_already_set): New function.
26456 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
26457 * config/rl78/rl78-real.md (update_Z): New attribute.
26458 Update patterns to set it.
26459 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
26460 shorter compare and branch sequence can be used.
26461 (cbranchhi4_real): Likewise.
26462 (cbranchhi4_real_inverted): Likewise.
26464 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
26465 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
26467 * config/rl78/rl78.c (rl78_get_name_encoding): New.
26468 (rl78_option_override): Allow -mes0 only if C.
26469 (characterize_address): Support subregs of symbol_refs.
26470 (rl78_addr_space_address_mode): Move. Add __near.
26471 (rl78_far_p): Likewise.
26472 (rl78_addr_space_pointer_mode): Likewise.
26473 (rl78_as_legitimate_address): Likewise.
26474 (rl78_addr_space_subset_p): Likewise.
26475 (rl78_addr_space_convert): Likewise.
26476 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
26477 symbols with -mes0.
26478 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
26480 (rl78_alloc_physical_registers_op1): Change logic to prefer
26481 symbol[BC] addressing.
26482 (frodata_section): New.
26483 (rl78_asm_init_sections): Initialize it.
26484 (rl78_select_section): Put __far readonly symbols in .frodata.
26485 (rl78_make_type_far): New.
26486 (rl78_insert_attributes): Force all readonly symbols to be
26488 (rl78_asm_out_integer): New.
26489 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
26490 * config/rl78/rl78.opt (-mes0): New.
26492 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
26493 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
26494 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
26495 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
26496 (rl78_saddr_p): New.
26497 (rl78_output_aligned_common): New.
26498 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
26499 (rl78_handle_saddr_attribute): New.
26500 (rl78_handle_naked_attribute): New.
26501 (rl78_attribute_table): Add saddr.
26502 (rl78_print_operand_1): Don't print '!' on saddr operands.
26503 (rl78_print_operand_1): Strip encodings.
26505 (rl78_strip_name_encoding): New.
26506 (rl78_attrlist_to_encoding): New.
26507 (rl78_encode_section_info): New.
26508 (rl78_asm_init_sections): New.
26509 (rl78_select_section): New.
26510 (rl78_output_labelref): New.
26511 (rl78_output_aligned_common): New.
26512 (rl78_asm_out_integer): New.
26513 (rl78_asm_ctor_dtor): New.
26514 (rl78_asm_constructor): New.
26515 (rl78_asm_destructor): New.
26517 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
26518 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
26519 (transcode_memory_rtx): Update.
26520 (rl78_expand_epilogue): Use A_REG instead of 0.
26522 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26524 * config/arm/arm-protos.h (struct tune_params): New field
26525 sched_autopref_queue_depth.
26526 * config/arm/arm.c (sched-int.h): Include header.
26527 (arm_first_cycle_multipass_dfa_lookahead_guard,)
26528 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
26529 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
26530 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
26531 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
26532 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
26533 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
26534 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
26535 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
26536 * config/arm/t-arm (arm.o): Update.
26537 * haifa-sched.c (update_insn_after_change): Update.
26538 (rank_for_schedule): Use auto-prefetcher model, if requested.
26539 (autopref_multipass_init): New static function.
26540 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
26541 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
26542 variable for debug dumps.
26543 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
26544 (autopref_multipass_dfa_lookahead_guard): New global function that
26545 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
26546 (init_h_i_d): Update.
26547 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
26548 * sched-int.h (enum autopref_multipass_data_status): New const enum.
26549 (autopref_multipass_data_): Structure for auto-prefetcher data.
26550 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
26551 (struct _haifa_insn_data:autopref_multipass_data): New field.
26552 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
26553 (autopref_multipass_dfa_lookahead_guard): Declare.
26555 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26557 * rtlanal.c (get_base_term): Handle SCRATCH.
26559 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26561 * config/aarch64/aarch64.c
26562 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
26563 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26565 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
26566 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26568 2015-01-17 Alan Modra <amodra@gmail.com>
26570 * cprop.c (do_local_cprop): Disallow replacement of fixed
26573 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26576 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
26579 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
26581 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
26582 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
26584 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26586 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
26587 * config/arm/thumb1.md: ... Here.
26589 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26591 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
26592 TImode for TARGET_32BIT.
26594 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26596 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
26597 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
26599 (rs6000_abi_word_mode): New function.
26601 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26603 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
26604 instead of UNITS_PER_WORD to describe the size of stack slots.
26606 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26608 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
26609 as rs6000_promote_function_mode. Move comment to there.
26610 (rs6000_promote_function_mode): New function.
26612 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26614 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
26615 -mpowerpc64 is active.
26617 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26619 PR middle-end/64353
26620 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
26623 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26625 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
26626 introduced in revision 219724.
26628 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26629 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26632 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
26633 destination is not a GP reg.
26634 (*movdi_aarch64): Likewise.
26636 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
26639 * config/rs6000/default64.h: Revert ISA change.
26641 2015-01-16 Richard Biener <rguenther@suse.de>
26643 PR middle-end/64614
26644 * tree-ssa-uninit.c: Include tree-cfg.h.
26645 (MAX_SWITCH_CASES): New define.
26646 (convert_control_dep_chain_into_preds): Handle switch statements.
26647 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
26648 (normalize_one_pred_1): Do not split bit-manipulations.
26651 2015-01-16 Richard Biener <rguenther@suse.de>
26653 PR tree-optimization/64568
26654 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
26655 complex load rewriting for TARGET_MEM_REFs.
26657 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
26659 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
26661 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
26664 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
26666 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
26667 (aarch64_lra_p): Remove.
26669 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26672 * ipa-chkp.h (chkp_instrumentable_p): New.
26673 * ipa-chkp.c: Include tree-inline.h.
26674 (chkp_instrumentable_p): New.
26675 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
26676 Fix processing of not instrumentable functions.
26677 (chkp_versioning): Use chkp_instrumentable_p. Warn about
26678 not instrumentable functions.
26679 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
26680 chkp_instrumentable_p.
26681 * tree-inline.h (copy_forbidden): New.
26682 * tree-inline.c (copy_forbidden): Not static anymore.
26684 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26686 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
26689 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26691 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
26692 type OP_OUT to OP_INOUT.
26694 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26696 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
26697 (high x) y) to y if x and y have the same base.
26699 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26701 * config/arm/cortex-a57.md: New.
26702 * config/aarch64/aarch64.md: Include it.
26703 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
26704 * config/aarch64/aarch64-tune.md: Regenerate.
26706 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
26709 * ccmp.c (expand_ccmp_next): New function.
26710 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
26711 and compare insn sequence.
26712 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
26713 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
26714 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
26715 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
26716 (*ccmp_ior): Changed to ccmp_ior<mode>.
26717 (cmp<mode>): New pattern.
26718 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
26720 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
26722 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
26724 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
26725 _mm256_bsrli_epi128): New.
26726 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
26728 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26730 * expmed.c (store_bit_field_using_insv): Improve warning message.
26731 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
26733 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26735 PR rtl-optimization/64011
26736 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
26737 there is partial overflow.
26739 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26741 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
26743 (nds32_expand_epilogue_v3pop): Likewise.
26744 * config/nds32/nds32.md (sibcall): Define this for sibling call
26746 (sibcall_register): Likewise.
26747 (sibcall_immediate): Likewise.
26748 (sibcall_value): Likewise.
26749 (sibcall_value_register): Likewise.
26750 (sibcall_value_immediate): Likewise.
26751 (sibcall_epilogue): Likewise.
26752 (epilogue): Pass false to indicate this is not a sibcall epilogue.
26753 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
26754 (nds32_expand_epilogue_v3pop): Likewise.
26756 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26758 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
26759 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
26760 (return_internal): New.
26761 (return): Define this named pattern.
26762 (simple_return): Define this named pattern.
26763 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
26764 pattern instead of unspec_volatile_func_return.
26765 (nds32_expand_epilogue_v3pop): Likewise.
26766 (nds32_can_use_return_insn): New function.
26768 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26770 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
26771 * config/nds32/nds32.md (pop25return): New.
26772 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
26773 pop25return pattern.
26775 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26777 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
26778 -mforbid-fp-as-gp, and -mex9 options.
26780 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26782 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
26783 remove -mgp-direct option.
26785 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26787 * doc/invoke.texi (--param early-inlining-insns): Update default value.
26788 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
26790 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26792 * ipa-inline.c (inline_small_functions): Work around hints
26795 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
26798 * doc/invoke.texi (Option Summary): Document new Nios II
26800 (Nios II Options): Likewise.
26801 * config/nios2/nios2.opt: Add -mgpopt= option support.
26802 Modify existing -mgpopt and -mno-gpopt options to be aliases.
26803 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
26804 * config/nios2/nios2.c (nios2_option_override): Adjust
26805 -mgpopt defaulting.
26806 (nios2_in_small_data_p): Return true for explicit small data
26807 sections even with -G0.
26808 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
26811 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26814 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
26816 (inline_call): Fix removal of aliases.
26818 2015-01-15 Jakub Jelinek <jakub@redhat.com>
26820 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
26821 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
26822 * opts.c (common_handle_option): Add -fsanitize=vptr.
26823 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
26824 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
26825 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
26826 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
26827 (ubsan_expand_vptr_ifn): New prototype.
26828 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
26829 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
26830 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
26831 expand_LOOP_VECTORIZED): Make argument nameless, remove
26833 (expand_UBSAN_VPTR): New function.
26834 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
26836 (UBSAN_VPTR): New internal function.
26837 * sanopt.c (tree_map_traits): Renamed to ...
26838 (sanopt_tree_map_traits): ... this.
26839 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
26840 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
26841 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
26842 (maybe_optimize_ubsan_vptr_ifn): New function.
26843 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
26844 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
26846 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
26847 internal calls like pure functions for aliasing, even when they
26848 have other side-effects that prevent making them ECF_PURE.
26849 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
26850 (ubsan_expand_vptr_ifn): New function.
26852 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
26854 PR rtl-optimization/64110
26855 * stmt.c (parse_output_constraint): Process '^' and '$'.
26856 (parse_input_constraint): Ditto.
26857 * lra-constraints.c (process_alt_operands): Process the new
26859 * ira-costs.c (record_reg_classes): Process the new constraint
26861 * genoutput.c (indep_constraints): Add '^' and '$'.
26862 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
26863 * doc/md.texi: Add description of the new constraints.
26865 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
26866 Bernd Schmidt <bernds@codesourcery.com>
26867 Cesar Philippidis <cesar@codesourcery.com>
26868 James Norris <jnorris@codesourcery.com>
26869 Tom de Vries <tom@codesourcery.com>
26870 Ilmir Usmanov <i.usmanov@samsung.com>
26871 Dmitry Bocharnikov <dmitry.b@samsung.com>
26872 Evgeny Gavrin <e.gavrin@samsung.com>
26873 Jakub Jelinek <jakub@redhat.com>
26875 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
26876 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26877 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26878 New function types.
26879 * builtins.c: Include "gomp-constants.h".
26880 (expand_builtin_acc_on_device): New function.
26881 (expand_builtin, is_inexpensive_builtin): Handle
26882 BUILT_IN_ACC_ON_DEVICE.
26883 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
26885 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
26887 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
26888 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
26889 i386/intelmic-offload.h.
26890 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
26891 to libgomp and its dependencies.
26892 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
26893 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
26894 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
26895 * config/ia64/hpux.h (LIB_SPEC): Likewise.
26896 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26897 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
26898 * doc/generic.texi: Update for OpenACC changes.
26899 * doc/gimple.texi: Likewise.
26900 * doc/invoke.texi: Likewise.
26901 * doc/sourcebuild.texi: Likewise.
26902 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
26903 GF_OMP_FOR_KIND_OACC_LOOP.
26904 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
26905 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
26906 GF_OMP_TARGET_KIND_OACC_UPDATE,
26907 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26909 * gimple.c: Update comments for OpenACC changes.
26910 * gimple.def: Likewise.
26911 * gimple.h: Likewise.
26912 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
26913 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26914 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
26915 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26916 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
26918 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
26919 * gimplify.c: Include "gomp-constants.h".
26920 Update comments for OpenACC changes.
26921 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
26922 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
26923 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26924 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
26925 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26926 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26927 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
26928 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26929 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
26931 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
26932 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
26933 OMP_CLAUSE_SET_MAP_KIND.
26934 (gimplify_oacc_cache): New function.
26935 (gimplify_omp_for): Handle OACC_LOOP.
26936 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
26938 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
26939 OACC_EXIT_DATA, OACC_UPDATE.
26940 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
26941 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
26942 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
26943 (gimplify_body): Consider flag_openacc next to flag_openmp.
26944 * lto-streamer-out.c: Include "gomp-constants.h".
26945 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
26946 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
26947 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
26948 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
26949 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
26950 (BUILT_IN_ACC_ON_DEVICE): New builtins.
26951 * omp-low.c: Include "gomp-constants.h".
26952 Update comments for OpenACC changes.
26953 (struct omp_context): Add reduction_map, gwv_below, gwv_this
26955 (extract_omp_for_data, use_pointer_for_field, install_var_field)
26956 (new_omp_context, delete_omp_context, scan_sharing_clauses)
26957 (create_omp_child_function, scan_omp_for, scan_omp_target)
26958 (check_omp_nesting_restrictions, lower_reduction_clauses)
26959 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
26960 Update for OpenACC changes.
26961 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
26962 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
26963 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
26964 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26965 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
26966 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
26968 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26969 Handle GF_OMP_FOR_KIND_OACC_LOOP.
26970 (expand_omp_target, lower_omp_target): Handle
26971 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26972 GF_OMP_TARGET_KIND_OACC_UPDATE,
26973 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
26974 GF_OMP_TARGET_KIND_OACC_DATA.
26975 (pass_expand_omp::execute, execute_lower_omp)
26976 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
26978 (offload_symbol_decl): New variable.
26979 (oacc_get_reduction_array_id, oacc_max_threads)
26980 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
26981 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
26982 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
26983 (oacc_gimple_assign, oacc_initialize_reduction_data)
26984 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
26986 (is_targetreg_ctx): Remove function.
26987 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
26988 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
26989 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26990 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
26991 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
26992 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
26993 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
26994 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
26995 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
26996 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
26997 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
26998 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
26999 * tree-core.h: Update comments for OpenACC changes.
27000 (enum omp_clause_map_kind): Remove.
27001 (struct tree_omp_clause): Change type of map_kind member from enum
27002 omp_clause_map_kind to unsigned char.
27003 * tree-inline.c: Update comments for OpenACC changes.
27004 * tree-nested.c: Likewise. Include "gomp-constants.h".
27005 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
27006 (convert_tramp_reference_stmt, convert_gimple_call): Update for
27007 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27008 OMP_CLAUSE_SET_MAP_KIND.
27009 * tree-pretty-print.c: Include "gomp-constants.h".
27010 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
27011 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
27012 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
27013 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
27014 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27015 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
27016 instead of OMP_CLAUSE_MAP_*.
27017 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
27018 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
27019 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27020 * tree-streamer-in.c: Include "gomp-constants.h".
27021 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
27022 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
27023 * tree-streamer-out.c: Include "gomp-constants.h".
27024 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
27026 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
27027 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
27028 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
27029 * tree.c (omp_clause_num_ops): Update accordingly.
27030 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
27032 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
27033 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
27034 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
27035 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
27036 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
27037 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
27038 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
27039 (OMP_CLAUSE_SET_MAP_KIND): New macro.
27040 * varpool.c (varpool_node::get_create): Consider flag_openacc next
27042 * config/i386/intelmic-offload.h: New file.
27043 * config/nvptx/offload.h: Likewise.
27045 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27047 * explow.h: Remove duplicate contents.
27048 * dojump.h: Likewise.
27050 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
27052 * arm.c (arm_xgene_tune): Add default initializer for instruction
27055 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27059 * ipa.c (symbol_table::remove_unreachable_nodes):
27060 Do not put abstract origins into boundary.
27062 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
27064 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
27065 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
27067 2015-01-15 Steve Ellcey <sellcey@mips.com>
27069 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
27070 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
27071 builtins.def, and chkp-builtins.def.
27073 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
27075 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
27078 2015-01-15 Richard Biener <rguenther@suse.de>
27080 PR tree-optimization/61743
27081 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
27082 information on PHIs for some simple cases.
27084 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27086 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
27088 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
27089 * config/arm/arm-cores.def (xgene1): New entry.
27090 * config/arm/arm-tables.opt: Regenerate.
27091 * config/arm/arm-tune.md: Regenerate.
27092 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
27094 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27096 * tree-if-conv.c: Include hash-map.h.
27097 (aggressive_if_conv): New variable.
27098 (fold_build_cond_expr): Add simplification of non-zero condition.
27099 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
27100 destination block is not always executed.
27101 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
27102 than two predecessors if AGGRESSIVE_IF_CONV is true.
27103 (if_convertible_stmt_p): Fix commentary.
27104 (all_preds_critical_p): New function.
27105 (has_pred_critical_p): New function.
27106 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
27107 BB can have more than two predecessors and all incoming edges can be
27109 (predicate_bbs): Skip predication for loop exit block, use build2_loc
27110 to compute predicate for true edge.
27111 (find_phi_replacement_condition): Delete this function.
27112 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
27113 Allow interchange PHI arguments if EXTENDED is false.
27114 Change check that block containing reduction statement candidate
27115 is predecessor of phi-block since phi may have more than two arguments.
27116 (phi_args_hash_traits): New helper structure.
27117 (struct phi_args_hash_traits): New type.
27118 (phi_args_hash_traits::hash): New function.
27119 (phi_args_hash_traits::equal_keys): New function.
27120 (gen_phi_arg_condition): New function.
27121 (predicate_scalar_phi): Add handling of phi nodes with more than two
27122 arguments, delete COND and TRUE_BB arguments, insert body of
27123 find_phi_replacement_condition to predicate ordinary phi nodes.
27124 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
27125 delete call of find_phi_replacement_condition and invoke
27126 predicate_scalar_phi with two arguments.
27127 (insert_gimplified_predicates): Add assert that non-predicated block
27128 don't have statements to insert.
27129 (ifcvt_split_critical_edges): New function.
27130 (ifcvt_split_def_stmt): Likewise.
27131 (ifcvt_walk_pattern_tree): Likewise.
27132 (stmt_is_root_of_bool_pattern): Likewise.
27133 (ifcvt_repair_bool_pattern): Likewise.
27134 (ifcvt_local_dce): Likewise.
27135 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
27136 is copy of inner or outer loop force_vectorize field, invoke
27137 ifcvt_split_critical_edges, ifcvt_local_dce and
27138 ifcvt_repair_bool_pattern for aggressive if-conversion.
27140 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
27142 * config/aarch64/aarch64.md: Include xgene1.md.
27143 * config/aarch64/xgene1.md: New file.
27145 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27147 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
27148 xgene1 (APM XGene-1) core definition.
27149 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
27150 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
27151 * doc/invoke.texi: Document -mcpu=xgene1.
27153 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27155 * dojump.h: New header file.
27156 * explow.h: Likewise.
27157 * expr.h: Remove includes.
27158 Move expmed.c prototypes to expmed.h.
27159 Move dojump.c prototypes to dojump.h.
27160 Move alias.c prototypes to alias.h.
27161 Move explow.c prototypes to explow.h.
27162 Move calls.c prototypes to calls.h.
27163 Move emit-rtl.c prototypes to emit-rtl.h.
27164 Move varasm.c prototypes to varasm.h.
27165 Move stmt.c prototypes to stmt.h.
27166 (saved_pending_stack_adjust): Move to dojump.h.
27167 (adjust_address): Move to explow.h.
27168 (adjust_address_nv): Move to emit-rtl.h.
27169 (adjust_bitfield_address): Likewise.
27170 (adjust_bitfield_address_size): Likewise.
27171 (adjust_bitfield_address_nv): Likewise.
27172 (adjust_automodify_address_nv): Likewise.
27173 * explow.c (expr_size): Move to expr.c.
27174 (int_expr_size): Likewise.
27175 (tree_expr_size): Likewise.
27176 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27177 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27178 * genemit.c (main): Generate includes statistics.h, real.h,
27179 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
27181 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
27182 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
27183 explow.h, emit-rtl.h, stmt.h.
27184 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
27185 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
27186 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
27187 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
27188 emit-rtl.h, varasm.h, stmt.h.
27189 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
27190 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
27191 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
27192 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
27193 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27194 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
27195 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
27196 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
27197 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
27198 tm.h tree.h varasm.h vec.h wide-int.h.
27199 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27200 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27201 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
27202 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
27203 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
27204 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
27205 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
27206 * loop-iv.c: Likewise.
27207 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
27208 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
27209 statistics.h stmt.h tree.h varasm.h wide-int.h.
27210 * lra-constraints.c: Likewise.
27211 * lra-eliminations.c: Likewise.
27212 * lra-lives.c: Likewise.
27213 * lra-remat.c: Likewise.
27214 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27215 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
27216 statistics.h stmt.h tree.h varasm.h wide-int.h.
27217 * hw-doloop.c: Likewise.
27218 * ira-color.c: Likewise.
27219 * ira-emit.c: Likewise.
27220 * loop-doloop.c: Likewise.
27221 * loop-invariant.c: Likewise.
27222 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27223 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
27224 statistics.h stmt.h tree.h varasm.h wide-int.h.
27225 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
27226 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
27227 statistics.h stmt.h tree.h varasm.h wide-int.h.
27228 * combine-stack-adj.c: Likewise.
27231 * ifcvt.c: Likewise.
27232 * ira-costs.c: Likewise.
27233 * jump.c: Likewise.
27234 * lra-coalesce.c: Likewise.
27235 * lra-spills.c: Likewise.
27236 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27237 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
27238 stmt.h varasm.h wide-int.h.
27239 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27240 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27242 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
27243 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
27244 statistics.h stmt.h varasm.h wide-int.h.
27245 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
27246 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
27247 varasm.h wide-int.h.
27248 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
27249 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27250 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
27251 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
27252 statistics.h stmt.h.
27253 * config/tilepro/tilepro.c: Likewise.
27254 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
27255 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
27256 * config/pdp11/pdp11.c: Likewise.
27257 * config/xtensa/xtensa.c: Likewise.
27258 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
27259 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27261 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27262 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27263 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
27264 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27265 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27266 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
27267 * rtl-chkp.c: Likewise.
27268 * tree-chkp-opt.c: Likewise.
27269 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
27270 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27271 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
27272 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27273 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27274 statistics.h stmt.h.
27275 * tree-vect-data-refs.c: Likewise.
27276 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
27277 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27278 rtl.h statistics.h stmt.h varasm.h.
27279 * internal-fn.c: Likewise.
27280 * ipa-icf-gimple.c: Likewise.
27281 * lto-section-out.c: Likewise.
27282 * tree-data-ref.c: Likewise.
27283 * tree-nested.c: Likewise.
27284 * tree-outof-ssa.c: Likewise.
27285 * tree-predcom.c: Likewise.
27286 * tree-pretty-print.c: Likewise.
27287 * tree-scalar-evolution.c: Likewise.
27288 * tree-ssa-strlen.c: Likewise.
27289 * tree-vect-loop.c: Likewise.
27290 * tree-vect-patterns.c: Likewise.
27291 * tree-vect-slp.c: Likewise.
27292 * tree-vect-stmts.c: Likewise.
27293 * tsan.c: Likewise.
27294 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27295 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
27297 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
27298 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27299 statistics.h stmt.h varasm.h.
27300 * loop-unroll.c: Likewise.
27301 * ubsan.c: Likewise.
27302 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
27303 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
27305 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27306 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
27307 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
27308 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27309 statistics.h stmt.h.
27310 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
27311 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27312 statistics.h stmt.h varasm.h.
27313 * gimple-match-head.c: Likewise.
27314 * lto-cgraph.c: Likewise.
27315 * lto-section-in.c: Likewise.
27316 * lto-streamer-in.c: Likewise.
27317 * lto-streamer-out.c: Likewise.
27318 * tree-affine.c: Likewise.
27319 * tree-cfg.c: Likewise.
27320 * tree-cfgcleanup.c: Likewise.
27321 * tree-if-conv.c: Likewise.
27322 * tree-into-ssa.c: Likewise.
27323 * tree-ssa-alias.c: Likewise.
27324 * tree-ssa-copyrename.c: Likewise.
27325 * tree-ssa-dse.c: Likewise.
27326 * tree-ssa-forwprop.c: Likewise.
27327 * tree-ssa-live.c: Likewise.
27328 * tree-ssa-math-opts.c: Likewise.
27329 * tree-ssa-pre.c: Likewise.
27330 * tree-ssa-sccvn.c: Likewise.
27331 * tree-tailcall.c: Likewise.
27332 * tree-vect-generic.c: Likewise.
27333 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27334 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
27335 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27336 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
27337 * varasm.c: Likewise.
27338 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27339 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
27341 * init-regs.c: Likewise.
27343 * omp-low.c: Likewise.
27344 * stack-ptr-mod.c: Likewise.
27345 * tree-ssa-reassoc.c: Likewise.
27346 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27347 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
27349 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27350 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
27351 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27352 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
27353 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27354 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
27355 * tree-ssa-phiopt.c: Likewise.
27356 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27357 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27358 * config/fr30/fr30.c: Likewise.
27359 * config/frv/frv.c: Likewise.
27360 * expr.c: Likewise.
27361 * final.c: Likewise.
27362 * optabs.c: Likewise.
27363 * passes.c: Likewise.
27364 * simplify-rtx.c: Likewise.
27365 * stmt.c: Likewise.
27366 * toplev.c: Likewise.
27367 * var-tracking.c: Likewise.
27368 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27369 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27370 * lower-subreg.c: Likewise.
27371 * postreload-gcse.c: Likewise.
27373 * reginfo.c: Likewise.
27374 * store-motion.c: Likewise.
27375 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27376 fixed-value.h hashtab.h real.h stmt.h varasm.h.
27377 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27378 fixed-value.h hashtab.h statistics.h stmt.h.
27379 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27380 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27381 * except.c: Likewise.
27382 * explow.c: Likewise.
27383 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27384 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
27386 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27387 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
27388 * tree-ssa-structalias.c: Likewise.
27389 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27390 fixed-value.h insn-config.h real.h statistics.h.
27391 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27392 fixed-value.h insn-config.h real.h statistics.h stmt.h.
27393 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27394 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27395 * cfgbuild.c: Likewise.
27396 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27397 fixed-value.h real.h rtl.h statistics.h stmt.h.
27398 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27399 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27400 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27401 fixed-value.h real.h statistics.h stmt.h.
27402 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27403 fixed-value.h real.h statistics.h stmt.h varasm.h.
27404 * cprop.c: Likewise.
27405 * modulo-sched.c: Likewise.
27406 * postreload.c: Likewise.
27407 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27408 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
27409 statistics.h stmt.h varasm.h.
27410 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
27411 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27412 rtl.h statistics.h stmt.h varasm.h.
27413 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
27414 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
27416 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27417 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
27419 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
27420 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
27422 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
27423 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27424 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27425 function.h real.h statistics.h stmt.h varasm.h.
27426 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27427 insn-config.h real.h statistics.h stmt.h.
27428 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27429 statistics.h stmt.h.
27430 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
27431 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
27432 statistics.h stmt.h varasm.h.
27433 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
27434 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
27435 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27436 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
27437 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
27438 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27439 statistics.h stmt.h varasm.h.
27440 * ipa-polymorphic-call.c: Likewise.
27441 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
27442 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27443 statistics.h stmt.h.
27444 * config/c6x/c6x.c: Likewise.
27445 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
27446 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27447 statistics.h stmt.h varasm.h.
27448 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
27449 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
27451 * ipa-split.c: Likewise.
27452 * tree-eh.c: Likewise.
27453 * tree-ssa-dce.c: Likewise.
27454 * tree-ssa-loop-niter.c: Likewise.
27455 * tree-vrp.c: Likewise.
27456 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
27457 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
27459 * config/nds32/nds32-fp-as-gp.c: Likewise.
27460 * config/nds32/nds32-intrinsic.c: Likewise.
27461 * config/nds32/nds32-isr.c: Likewise.
27462 * config/nds32/nds32-md-auxiliary.c: Likewise.
27463 * config/nds32/nds32-memory-manipulation.c: Likewise.
27464 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27465 * config/nds32/nds32-predicates.c: Likewise.
27466 * config/nds32/nds32.c: Likewise.
27467 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
27468 fixed-value.h hashtab.h real.h statistics.h.
27469 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
27470 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27471 * config/arm/arm.c: Likewise.
27472 * config/avr/avr.c: Likewise.
27473 * config/bfin/bfin.c: Likewise.
27474 * config/h8300/h8300.c: Likewise.
27475 * config/i386/i386.c: Likewise.
27476 * config/ia64/ia64.c: Likewise.
27477 * config/iq2000/iq2000.c: Likewise.
27478 * config/m32c/m32c.c: Likewise.
27479 * config/m32r/m32r.c: Likewise.
27480 * config/m68k/m68k.c: Likewise.
27481 * config/mcore/mcore.c: Likewise.
27482 * config/mep/mep.c: Likewise.
27483 * config/mips/mips.c: Likewise.
27484 * config/mn10300/mn10300.c: Likewise.
27485 * config/moxie/moxie.c: Likewise.
27486 * config/pa/pa.c: Likewise.
27487 * config/rl78/rl78.c: Likewise.
27488 * config/rx/rx.c: Likewise.
27489 * config/s390/s390.c: Likewise.
27490 * config/sh/sh.c: Likewise.
27491 * config/sparc/sparc.c: Likewise.
27492 * config/spu/spu.c: Likewise.
27493 * config/stormy16/stormy16.c: Likewise.
27494 * config/v850/v850.c: Likewise.
27495 * config/vax/vax.c: Likewise.
27496 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
27497 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27498 * config/msp430/msp430.c: Likewise.
27499 * predict.c: Likewise.
27500 * value-prof.c: Likewise.
27501 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
27502 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
27503 * config/microblaze/microblaze.c: Likewise.
27504 * config/nios2/nios2.c: Likewise.
27505 * config/rs6000/rs6000.c: Likewise.
27506 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27507 insn-config.h real.h rtl.h statistics.h stmt.h.
27508 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27509 insn-config.h real.h statistics.h stmt.h.
27510 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
27511 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27512 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
27513 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27514 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
27515 fixed-value.h real.h statistics.h stmt.h.
27516 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
27517 fixed-value.h statistics.h stmt.h.
27518 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
27521 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27523 * gengtype.c (create_user_defined_type): Workaround
27524 -Wmaybe-uninitialized false positives.
27525 * cse.c (fold_rtx): Likewise.
27526 * loop-invariant.c (gain_for_invariant): Likewise.
27528 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
27530 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
27531 set the memory attributes in all cases but clear MEM_EXPR if need be.
27533 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27535 PR tree-optimization/64434
27536 * cfgexpand.c (reorder_operands): New function.
27537 (expand_gimple_basic_block): Insert call of reorder_operands if
27540 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
27542 * config/mips/micromips.md (*swp): Remove explicit parallel.
27543 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
27544 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
27545 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
27546 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
27547 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
27548 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
27549 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
27550 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
27551 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
27552 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
27553 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
27554 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
27555 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
27556 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
27557 (mips_wrdsp): Likewise.
27558 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
27560 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
27561 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
27562 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
27563 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
27564 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
27565 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
27566 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
27567 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
27568 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
27570 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27572 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
27573 (mips_print_operand): Support 'y' to print exact log2 in decimal
27575 * config/mips/mips.h (ISA_HAS_LSA): New define.
27576 (ISA_HAS_DLSA): Likewise.
27577 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
27578 * config/mips/predicates.md (const_immlsa_operand): New predicate.
27580 2015-01-15 Martin Liska <mliska@suse.cz>
27583 * optc-save-gen.awk: Add support for array types.
27585 2015-01-15 Richard Biener <rguenther@suse.de>
27587 PR middle-end/64365
27588 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
27589 for MEM_REF access functions with the same base can never partially
27592 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
27594 * common.opt: New option -fstack-protector-explicit.
27595 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
27596 (stack_protect_decl_phase): Handle stack_protect attribute for
27597 explicit stack protection requests.
27598 (expand_used_vars): Similarly.
27599 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
27600 * doc/extend.texi: Add documentation for "stack_protect" attribute.
27601 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
27603 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
27606 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
27608 (sh_extending_set_of_reg): New struct.
27609 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
27610 sh_remove_reg_dead_or_unused_notes): New Declarations.
27611 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
27612 sh_find_extending_set_of_reg, sh_split_tst_subregs,
27613 sh_extending_set_of_reg::use_as_extended_reg): New functions.
27614 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
27615 convert to insn_and_split and use new function sh_split_tst_subregs.
27617 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
27619 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
27621 (Optimization Options): Move -fuse-ld documentation to...
27622 (Link Options): ...here.
27624 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27626 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
27628 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
27629 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
27630 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
27631 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
27632 instead of ZR for the memory operand of LL/SC.
27633 (compare_and_swap_12, sync_add<mode>): Likewise.
27634 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
27635 (sync_new_<optab>_12, sync_nand_12): Likewise.
27636 (sync_old_nand_12, sync_new_nand_12): Likewise.
27637 (sync_sub<mode>, sync_old_add<mode>): Likewise.
27638 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
27639 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
27640 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
27641 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
27642 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
27643 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
27644 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
27645 * doc/md.texi (ZC): Update description.
27647 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27649 * builtins.c (expand_builtin_atomic_exchange): Remove error when
27650 memory model is CONSUME.
27651 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
27652 expand_builtin_atomic_store): Change invalid memory model errors to
27654 (expand_builtin_atomic_clear): Change invalid model errors to warnings
27655 and issue warning for CONSUME.
27657 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
27659 * lto-cgraph: Update function comments for
27660 lto_symtab_encoder_encode_*.
27662 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27664 * Makefile.in (site.exp): Do not set ENABLE_LTO.
27666 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27668 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
27669 * lto-cgraph.c (select_what_to_stream): Remove argument, use
27670 lto_stream_offload_p instead.
27671 * lto-streamer.h (select_what_to_stream): Remove argument.
27672 * passes.c (ipa_write_summaries): Likewise.
27673 * tree-pass.h (ipa_write_summaries): Likewise.
27675 2015-01-14 Richard Biener <rguenther@suse.de>
27677 PR tree-optimization/59354
27678 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
27679 groups larger than the slp group size as having gaps.
27681 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27683 PR middle-end/59448
27684 * builtins.c (get_memmodel): Promote consume to acquire always.
27686 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27689 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
27692 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27695 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
27697 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
27698 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
27699 AVX512VBMI, as it implies AVX512BW.
27701 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27704 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
27705 (vec_unpacks_hi_v16sf): Ditto.
27707 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27709 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
27712 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27714 * doc/invoke.texi (mapcs): Mention deprecation.
27715 (mapcs-frame): Likewise.
27717 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
27720 * config/arm/arm.c (callee_saved_reg_p): Define.
27721 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
27722 register is callee saved instead of !call_used_regs[reg].
27723 (thumb1_compute_save_reg_mask): Likewise.
27725 2015-01-14 Hale Wang <hale.wang@arm.com>
27727 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
27730 2015-01-14 Richard Biener <rguenther@suse.de>
27733 * tree-inline.c (insert_debug_decl_map): Check destination
27734 function MAY_HAVE_DEBUG_STMTS.
27735 (insert_init_debug_bind): Likewise.
27736 (insert_init_stmt): Remove redundant check.
27737 (remap_gimple_stmt): Drop debug stmts if the destination
27738 function has var-tracking assignments disabled.
27740 2015-01-14 Martin Liska <mliska@suse.cz>
27742 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
27743 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
27745 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27748 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
27749 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
27751 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27753 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
27754 level from an ARCH; do not inject the default.
27755 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
27756 MIPS_ISA_LEVEL_SPEC.
27757 (MIPS_ISA_NAN2008_SPEC): Update comment.
27758 (BASE_DRIVER_SELF_SPECS): Likewise.
27759 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
27760 MIPS_DEFAULT_ISA_LEVEL_SPEC.
27761 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
27762 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
27763 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
27765 2015-01-14 Richard Biener <rguenther@suse.de>
27767 PR tree-optimization/64493
27768 PR tree-optimization/64495
27769 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
27770 assign the proper vectorized PHI to the inner loop exit PHIs.
27772 2015-01-14 Joey Ye <joey.ye@arm.com>
27774 * config/arm/arm.c (arm_compute_save_reg_mask):
27775 Do not save lr in case of tail call.
27776 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
27778 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
27780 * tree-vrp.c (check_array_ref): Emit more warnings
27781 for warn_array_bounds >= 2.
27782 * common.opt: New option -Warray-bounds=.
27783 * doc/invoke.texi: Document -Warray-bounds=.
27785 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
27787 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
27788 (mforbid-fp-as-gp): Remove.
27790 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
27791 (nds32_symbol_load_store_p): Remove.
27792 (nds32_fp_as_gp_check_available): Clean up implementation.
27793 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
27795 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
27796 fp-as-gp and ex9 cases.
27798 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27800 * tree-profile.c (init_ic_make_global_vars): Drop workaround
27801 for bintuils bug 14342.
27802 (init_ic_make_global_vars): Likewise.
27803 (gimple_init_edge_profiler): Likewise.
27804 (gimple_gen_ic_func_profiler): Likewise.
27806 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27808 * ipa-inline.c (inline_small_functions): Swap the operands in
27811 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27814 * ipa-inline-analysis.c (node_growth_cache): Remove.
27815 (initialize_growth_caches): Do not initialize it.
27816 (free_growth_caches): Do not free it.
27817 (do_estimate_growth): Rename to ...
27818 (estimate_growth): ... this one; drop growth cache code.
27819 (growth_likely_positive): Always go the heuristics way.
27820 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
27821 (reset_edge_caches): Do not reset node growth.
27822 (heap_edge_removal_hook): Do not maintain cache.
27823 (inline_small_functions): Likewise; strenghten sanity check.
27824 (ipa_inline): Do not maintain caches.
27825 * ipa-inline.h (node_growth_cache): Remove.
27826 (do_estimate_growth): Remove to ...
27827 (estimate_growth): this one; remove inline version.
27828 (reset_node_growth_cache): Remove.
27830 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27833 * ipa-inline.c (inline_small_functions): Update callee keys after
27834 resolving speculation
27835 (inline_small_functions): Always check monotonicity of the queue.
27837 2015-01-13 Marek Polacek <polacek@redhat.com>
27839 PR middle-end/64391
27840 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
27842 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27844 PR rtl-optimization/64286
27845 * ree.c (combine_reaching_defs): Move part of comment earlier,
27846 remove !SCALAR_INT_MODE_P check.
27847 (add_removable_extension): Don't add vector mode
27848 extensions if all uses of the source register aren't the same
27851 2015-01-13 Renlin Li <renlin.li@arm.com>
27853 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
27854 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
27856 2015-01-13 Martin Liska <mliska@suse.cz>
27858 * ipa-icf.c (sem_function::equals_private): Call new functions
27859 cl_target_option_print_diff and cl_optimization_print_diff.
27860 * optc-save-gen.awk (cl_target_option_print_diff): New function.
27861 (cl_optimization_print_diff): Likewise.
27862 * opth-gen.awk: Likewise.
27864 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
27866 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
27867 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
27868 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
27869 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
27870 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
27871 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
27873 2015-01-13 Andrew Pinski <apinski@cavium.com>
27875 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
27876 instead of src mode.
27878 2015-01-13 Richard Biener <rguenther@suse.de>
27881 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
27884 2015-01-13 Andrew Pinski <apinski@cavium.com>
27886 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
27888 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
27890 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27892 PR middle-end/63974
27893 * cfgexpand.c (expand_computed_goto): Don't call
27894 convert_memory_address here.
27896 2015-01-13 Richard Biener <rguenther@suse.de>
27898 PR tree-optimization/64406
27899 * tree-loop-distibution.c (pass_loop_distribution::execute):
27900 Reset the SCEV hashtable if we distributed anything.
27902 2015-01-13 Richard Biener <rguenther@suse.de>
27904 PR tree-optimization/64404
27905 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
27906 SLP types for CSEd loads.
27908 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27910 PR tree-optimization/64436
27911 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
27912 merge of two symbolic numbers for a bitwise OR to ...
27913 (perform_symbolic_merge): This. Also fix computation of the range and
27914 end of the symbolic number corresponding to the result of a bitwise OR.
27916 2015-01-13 Richard Biener <rguenther@suse.de>
27918 PR tree-optimization/64568
27919 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
27920 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
27922 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27924 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
27925 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
27927 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27929 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
27930 target-specific symbol_ref flag.
27931 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
27932 resides in rodata section.
27933 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
27934 (nds32_encode_section_info): New function.
27936 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27938 * config/nds32/nds32.md (call): Use pseudo instruction bal which
27939 clobbers TA_REGNUM if large code model is specified.
27940 (call_register): Likewise.
27941 (call_immediate): Likewise.
27942 (call_value): Likewise.
27943 (call_value_register): Likewise.
27944 (call_value_immediate): Likewise.
27946 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27948 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
27949 (TARGET_CMODEL_MEDIUM): New macro.
27950 (TARGET_CMODEL_LARGE): New macro.
27951 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
27952 code model setting in assembly code.
27954 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27956 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27957 Remove MASK_GP_DIRECT flag.
27958 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
27959 one of the multilib default options.
27960 * config/nds32/nds32.opt (mgp-direct): Remove.
27961 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
27962 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
27964 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27966 * config/nds32/nds32.opt (mcmodel): Add new option.
27967 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
27968 to describe code model.
27970 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
27973 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
27975 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
27977 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
27978 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27979 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
27980 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
27981 __builtin_sh_set_fpscr.
27983 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
27985 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
27986 after a funtion name just to indicate it is a function.
27987 ([-fsanitize-undefined-trap-on-error]): Likewise.
27988 ([-fdbg-cnt=]): Likewise.
27989 ([-mmemcpy]): Likewise.
27990 ([-mflush-func]): Likewise.
27991 ([-msynci]): Likewise.
27993 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
27995 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
27998 2015-01-12 Jakub Jelinek <jakub@redhat.com>
28000 PR tree-optimization/64563
28001 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
28002 instead of != VR_VARYING.
28005 * config/i386/i386.c (ix86_expand_prologue): Add
28006 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
28008 PR tree-optimization/64454
28009 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
28010 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
28011 for signed or [0, op1 - 1] for unsigned modulo.
28012 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28013 even if op1 does not satisfy integer_pow2p.
28016 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
28018 2015-01-12 Jeff Law <law@redhat.com>
28021 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
28022 (trunchiqi2, truncsihi2): Similarly.
28024 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
28025 rather than calling F.
28027 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
28029 * tsan.c (instrument_expr): Use force_gimple_operand.
28030 Use may_be_nonaddressable_p instead of is_gimple_addressable.
28032 2015-01-12 Richard Biener <rguenther@suse.de>
28034 PR tree-optimization/64530
28035 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
28038 2015-01-12 Richard Biener <rguenther@suse.de>
28040 PR middle-end/64357
28041 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
28044 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28046 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
28047 Cortex-A17 tuning parameters.
28048 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
28050 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28052 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
28053 * config/arm/arm.c (arm_macro_fusion_p): New function.
28054 (arm_macro_fusion_pair_p): Likewise.
28055 (TARGET_SCHED_MACRO_FUSION_P): Define.
28056 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
28057 (ARM_FUSE_NOTHING): Likewise.
28058 (ARM_FUSE_MOVW_MOVT): Likewise.
28059 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
28060 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
28061 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
28062 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
28063 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
28064 arm_cortex_a5_tune): Specify fuseable_ops value.
28066 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
28069 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
28070 test for PIE with copy reloc.
28071 * configure: Regenerated.
28073 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28075 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
28077 (arm_tls_descseq_addr): Likewise.
28078 (arm_gen_movmemqi): Likewise.
28079 (arm_expand_epilogue_apcs_frame): Likewise.
28080 (arm_expand_epilogue): Likewise.
28081 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
28084 2015-01-12 Martin Liska <mliska@suse.cz>
28087 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
28088 volatility for correct operands.
28090 2015-01-12 Martin Liska <mliska@suse.cz>
28092 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
28093 indication that a function is not leaf.
28094 (sem_function::compare_polymorphic_p): Likewise.
28096 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28098 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
28099 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
28100 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
28101 fold-const.h, tree-check.h.
28103 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28107 * ipa-inline.c (compute_uninlined_call_time,
28108 compute_inlined_call_time): Use counts for extra precision when
28110 (big_speedup_p): Fix formating.
28111 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
28112 (relative_time_benefit): Remove.
28113 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
28114 merge guessed and read profile paths.
28115 (inline_small_functions): Count only !optimize_size functions into
28116 initial size; be more lax about sanity check when profile is used;
28117 be sure to update inlined function profile when profile is read.
28119 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28122 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
28123 cost when edge becomes direct.
28124 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
28125 is resolved or when introducing new speculation.
28127 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
28131 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
28132 '||' to fix typo issue.
28134 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
28135 accept and return NULL.
28137 2015-01-12 Martin Liska <mliska@suse.cz>
28139 * cgraph.c (cgraph_edge::remove_callee): Move function to header
28140 file for being inlined.
28141 (cgraph_set_edge_callee): Delete.
28142 (cgraph_edge::redirect_callee): Move function to header file
28144 (cgraph_edge::make_direct): Use new function.
28145 (cgraph_edge::dump_edge_flags): New function created from
28146 static dump_edge_flags function.
28147 (cgraph_node::dump): Use new function.
28148 (cgraph_edge::verify_count_and_frequency): New function created
28149 from verify_edge_count_and_frequency.
28150 (cgraph_edge::verify_corresponds_to_fndecl): New function created
28151 from verify_edge_corresponds_to_fndecl.
28152 (verify_edge_corresponds_to_fndecl): Delete.
28153 (cgraph_node::verify_node): Use new function.
28154 * cgraph.h (cgraph_edge::set_callee): New function.
28155 (cgraph_edge::dump_edge_flags): Likewise.
28156 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
28158 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
28160 * ipa-utils.c (estimate_function_body_sizes): Do not
28161 free node params when called late with early=true.
28163 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
28165 * doc/md.texi (Instruction Patterns): Rewrite text for
28167 (Example): Likewise.
28169 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
28171 * doc/invoke.texi (Option Summary): Break long lines.
28172 [(-fdiagnostics-color)]: Put long literal in @smallexample
28174 [(-fsanitize-recover)]: Likewise.
28175 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
28176 [(-ffast-math)]: Likewise.
28177 [(--param max-inline-insns-recursive)]: Likewise.
28178 [(--param max-inline-recursive-depth)]: Likewise.
28179 [(-mno-text-section-literals)]: Likewise.
28181 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
28183 * doc/install.texi: Update for libgomp being renamed from "GNU
28184 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
28186 * doc/sourcebuild.texi: Likewise.
28188 2015-01-10 Anthony Green <green@moxielogic.com>
28190 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
28191 mul.x availability for moxiebox configuration.
28193 2015-01-09 Anthony Green <green@moxielogic.com>
28195 * config/moxie/moxie.md: Tabify assembly output.
28197 2015-01-09 Anthony Green <green@moxielogic.com>
28199 * config/moxie/moxie.md (CC_REG): Correct register definition.
28201 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
28203 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
28204 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
28207 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28209 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
28211 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
28212 Jakub Jelinek <jakub@redhat.com>
28214 PR middle-end/64412
28215 * lto-streamer.h (lto_stream_offload_p): New declaration.
28216 * lto-streamer.c (lto_stream_offload_p): New variable.
28217 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
28218 at the same time as section_name_prefix.
28219 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
28220 if lto_stream_offload_p.
28221 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
28222 stream TREE_TARGET_OPTION if lto_stream_offload_p.
28223 (write_ts_function_decl_tree_pointers): Don't
28224 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
28225 * tree-streamer-in.c (unpack_value_fields): Don't stream
28226 TREE_TARGET_OPTION in if ACCEL_COMPILER.
28227 (lto_input_ts_function_decl_tree_pointers): Don't stream
28228 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
28229 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
28230 instead of section_name_prefix string comparisons.
28232 2015-01-09 Jakub Jelinek <jakub@redhat.com>
28234 PR rtl-optimization/64536
28235 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
28238 2015-01-09 Michael Collison <michael.collison@linaro.org>
28240 PR tree-optimization/64322
28241 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
28242 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
28244 2015-01-09 Tom de Vries <tom@codesourcery.com>
28246 PR rtl-optimization/64539
28247 * regcprop.c (kill_clobbered_values): Factor out of ...
28248 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
28249 instead of note_stores with kill_clobbered_value.
28251 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28253 * ginclude/unwind-arm-common.h: Revert previous commit.
28255 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28257 * config.gcc (arm*-*-freebsd*): New configuration.
28258 * config/arm/freebsd.h: New file.
28259 * config.host: Add extra components for arm*-*-freebsd*.
28260 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
28261 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
28263 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28265 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
28267 * config/rs6000/t-rtems: Add e6500 multilibs.
28269 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28271 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
28274 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28276 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
28277 MULTILIB_EXCEPTIONS.
28279 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28281 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
28282 MULTILIB_EXCEPTIONS.
28284 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28286 * config/arm/t-rtems-eabi: Rename to...
28287 * config/arm/t-rtems: ...this.
28288 * config/arm/rtems-eabi.h: Rename to...
28289 * config/arm/rtems.h: ...this.
28290 * config.gcc (arm*-*-rtems*): Reflect changes above.
28292 2015-01-09 Richard Biener <rguenther@suse.de>
28294 PR tree-optimization/64410
28295 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
28297 (execute_update_addresses_taken): Deal with that.
28298 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
28299 loads/stores for complex variables.
28301 2015-01-09 Martin Liska <mliska@suse.cz>
28303 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
28305 (func_checker::compare_memory_operand): New function.
28306 (func_checker::compare_operand): Split case to newly
28308 (func_checker::compare_cst_or_decl): New function.
28309 (func_checker::compare_gimple_call): Identify
28311 (func_checker::compare_gimple_assign): Likewise.
28312 * ipa-icf-gimple.h: New function.
28314 2015-01-09 Martin Liska <mliska@suse.cz>
28317 * sreal.c (sreal::dump): Change unsigned format to signed for
28319 (sreal::to_double): Replace exp2 with scalbln.
28321 2015-01-09 Martin Liska <mliska@suse.cz>
28323 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
28324 * ipa-icf.c (sem_function::equals_private): Add support for target and
28325 (sem_item_optimizer::merge_classes): Remove redundant function
28326 optimization flags comparison.
28327 * tree.h (target_opts_for_fn): New function.
28329 2015-01-09 Tom de Vries <tom@codesourcery.com>
28331 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
28333 2015-01-09 Kito Cheng <kito@0xlab.org>
28335 PR rtl-optimization/64348
28336 * lra-constraints.c (split_reg): Fix caller-save store/restore
28337 instruction generation.
28339 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
28341 PR gcov-profile/61790
28342 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
28343 long long. Fallback to int64_t if host doesn't have long long and
28344 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
28346 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28348 PR tree-optimization/63989
28349 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
28350 from 1000 to 10000.
28351 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
28352 (get_stridx): If we don't have a record for certain SSA_NAME,
28353 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
28354 constant offset, call get_stridx_plus_constant.
28355 (get_stridx_plus_constant): New function.
28356 (zero_length_string): Don't use get_stridx here.
28359 PR middle-end/64388
28360 * dse.c (struct insn_info): Mention frame_read set also
28361 before reload for tail calls on some targets.
28362 (scan_insn): Revert 2014-12-22 change. Set frame_read
28363 also before reload for tail calls if
28364 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
28365 instead of add_non_frame_wild_read for non-const/memset
28366 tail calls after reload.
28368 2015-01-08 Jason Merrill <jason@redhat.com>
28370 * ubsan.c (do_ubsan_in_current_function): New.
28371 (pass_ubsan::gate): Use it.
28372 * ubsan.h: Declare it.
28373 * convert.c (convert_to_integer): Use it.
28375 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28378 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
28379 compare_code when it is unconditionally overwritten afterwards.
28380 Use ix86_reverse_condition instead of reverse_condition. Don't
28381 change code if *reverse_condition* returned UNKNOWN and don't
28382 swap ct/cf and negate diff in that case.
28384 2015-01-08 Mike Stump <mikestump@comcast.net>
28386 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
28387 (pass_tsan_O0::gate): Likewise.
28388 * extend.texi (Function Attributes): Add no_sanitize_thread
28391 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
28393 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
28394 for registering builtins.
28395 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
28396 add -fopenmp to the argv_obstack used when invoking
28397 compile_for_target.
28399 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
28400 add "-m32" or "-m64" to argv_obstack.
28401 (generate_host_descr_file): Likewise, when invoking host_compiler.
28402 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
28405 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28407 * config/sh/sh-mem.cc: Use constant as second operand when emitting
28410 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28413 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
28414 constant load if constant operand fits into I08.
28416 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28419 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
28420 and TREE_THIS_VOLATILE for MEM_REFs.
28421 (build5_stat): Fix up initialization of TREE_READONLY and
28422 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
28424 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
28427 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
28428 of r for the second alternative of the destination operand.
28430 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
28433 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
28435 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28437 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
28439 ([-fivar-visibility], [-fvisibility]): Likewise.
28441 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28443 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
28444 the file where @code, @command, etc is more appropriate.
28446 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
28448 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
28449 of -mrecip= documentation.
28451 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28454 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
28455 correct reload handler if -m32 -mpowerpc64 is used.
28457 2015-01-06 Tom de Vries <tom@codesourcery.com>
28459 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
28461 2015-01-08 Christian Bruel <christian.bruel@st.com>
28464 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
28466 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
28468 PR tree-optimization/63259
28469 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
28470 if optab exists for 16bit byteswap.
28472 2015-01-06 Jakub Jelinek <jakub@redhat.com>
28474 * opts.c (common_handle_option): Add support for
28475 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
28476 * doc/invoke.texi: Document -fno-sanitize=all,
28477 -f{,no-}sanitize-recover=all. Document that
28478 -fsanitize=float-cast-overflow is not enabled
28479 by -fsanitize=undefined. Fix up documentation
28480 of -f{,no-}sanitize-recover.
28482 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
28484 * config.gcc: Add Visium support.
28485 * configure.ac: Likewise.
28486 * configure: Regenerate.
28487 * doc/extend.texi (interrupt attribute): Add Visium.
28488 * doc/invoke.texi: Document Visium options.
28489 * doc/install.texi: Document Visium target.
28490 * doc/md.texi: Document Visium constraints.
28491 * common/config/visium: New directory.
28492 * config/visium: Likewise.
28494 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28496 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
28497 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
28499 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28501 * combine.c (combine_validate_cost): Do not count the cost of a
28502 split I2 twice. Do not display it twice in the dump, either.
28504 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28506 Revert parts of r219199.
28507 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
28509 ([-Wtraditional]): Restore markup on <limits.h>.
28511 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
28514 * doc/invoke.texi: Document -Wsuggest-override.
28516 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
28518 PR rtl-optimization/64287
28519 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
28520 (process_options): Disable flag_ipa_ra if profiling.
28522 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
28524 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
28526 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
28528 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
28529 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
28530 put under #if TARGET_LOOPS guard.
28532 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
28534 * config/i386/i386.c (output_387_binary_op): Use std::swap.
28536 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
28538 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
28539 * rtl.h (refers_to_regno_p): Add overload.
28541 * bt-load.c: Likewise.
28542 * combine.c: Likewise.
28543 * df-scan.c: Likewise.
28544 * sched-deps.c: Likewise.
28545 * config/s390/s390.c: Likewise.
28546 * config/m32r/m32r.c: Likewise.
28547 * config/rs6000/spe.md: Likewise.
28548 * config/rs6000/rs6000.c: Likewise.
28549 * config/pa/pa.c: Likewise.
28550 * config/stormy16/stormy16.c: Likewise.
28551 * config/cris/cris.c: Likewise.
28552 * config/arc/arc.md: Likewise.
28553 * config/arc/arc.c: Likewise.
28554 * config/sh/sh.md: Likewise.
28555 * config/sh/sh.c: Likewise.
28556 * config/frv/frv.c: Likewise.
28558 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28561 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
28562 call as cleanup of the whole body.
28563 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
28564 * tsan.c (replace_func_exit): New function.
28565 (instrument_func_exit): Moved earlier.
28566 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
28567 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
28569 (tsan_pass): Don't call instrument_func_exit.
28570 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
28571 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
28575 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
28576 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
28577 it to libubsan handler instead of EXPR. Fold comparisons earlier,
28578 if the result is integer_zerop, return NULL_TREE.
28579 * convert.c (convert_to_integer): Pass expr as ARG.
28581 PR tree-optimization/64465
28582 * tree-inline.c (redirect_all_calls): During inlining
28583 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
28584 changed the stmt to a non-throwing call.
28586 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28588 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
28589 etc markup throughout the file.
28591 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28593 Enable experimental TSAN support for Ada.
28594 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
28596 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28598 PR tree-optimization/64494
28599 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
28600 clear SSA_NAME_ANTI_RANGE_P flag.
28602 2015-01-05 Marek Polacek <polacek@redhat.com>
28604 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
28606 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28608 Update copyright years.
28610 * gcc.c (process_command): Update copyright notice dates.
28611 * gcov-dump.c: Ditto.
28613 * doc/cpp.texi: Bump @copying's copyright year.
28614 * doc/cppinternals.texi: Ditto.
28615 * doc/gcc.texi: Ditto.
28616 * doc/gccint.texi: Ditto.
28617 * doc/gcov.texi: Ditto.
28618 * doc/install.texi: Ditto.
28619 * doc/invoke.texi: Ditto.
28621 * auto-profile.c, auto-profile.h: Fix up Copyright line.
28623 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
28625 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
28627 ([-fvtable-verify], [-fvtv-debug]): Likewise.
28628 ([-Wabi]): Likewise.
28629 ([-fmessage-length]): Likewise.
28630 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
28631 ([-Wno-discarded-qualifiers]): Likewise.
28632 ([-Wnodiscarded-array-qualifiers]): Likewise.
28633 ([-Wno-virtual-move-assign]): Likewise.
28634 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
28635 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
28636 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
28637 ([-fsanitize-undefined-trap-on-error]): Likewise.
28638 ([-floop-interchange]): Likewise.
28639 ([-ftree-coalesce-inlined-vars]): Likewise.
28640 ([-fvect-cost-model]): Likewise.
28641 ([-flto]): Likewise.
28642 ([--param]): Likewise.
28643 (Spec Files): Likewise.
28644 ([-mstrict-align]): Likewise.
28645 ([-mfix-cortex-a53-835769]): Likewise.
28646 ([-march], [-mtune]): Likewise.
28647 ([-mpic-register]): Likewise.
28648 ([-munaligned-access]): Likewise.
28649 ([-msp8]): Likewise.
28650 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
28651 (AVR Built-in Macros): Likewise.
28652 ([-mpreferred-stack-boundary]): Likewise.
28653 ([-mtune-crtl]): Likewise.
28654 ([-mashf]): Likewise.
28655 ([-mmcu=]): Likewise.
28656 ([-minrt]): Likewise.
28657 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
28658 ([-mupper-regs]): Likewise.
28659 ([-matomic-model]): Likewise.
28660 ([-mdiv]): Likewise.
28661 ([-mzdcbranch]): Likewise.
28662 ([-mdisable-callt]): Likewise.
28663 ([-msoft-float]): Likewise.
28664 ([-m8byte-align]): Likewise.
28665 ([-fstack-reuse]): Likewise.
28667 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28669 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
28670 Fix markup, light copy-editing.
28671 ([-fauto-profile]): Rewrite to fix formatting and content
28674 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28676 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
28677 Copy-edit description.
28678 ([-fisolate-erroneous-paths-attribute]): Likewise.
28679 * common.opt (fisolate-erroneous-paths-dereference):
28680 Copy-edit description.
28681 (fisolate-erroneous-paths-attribute): Likewise.
28683 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28685 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
28688 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28690 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
28691 ([-fvtv-debug]): Likewise.
28692 ([-Wc++-compat]): Likewise.
28693 ([-Wc++11-compat]): Likewise.
28694 ([-Wc++14-compat]): Likewise.
28695 ([-Wno-sized-deallocation]): Likewise.
28696 ([-femit-class-debug-always]): Likewise.
28697 ([-femit-struct-debug-detailed]): Likewise.
28698 ([-fno-keep-inline-dllexport]): Likewise.
28699 ([-fira-algorithm]): Likewise.
28700 ([-fira-region]): Likewise.
28701 ([-flra-remat]): Likewise.
28702 ([-fipa-ra]): Likewise.
28703 ([-fhoist-adjacent-loads]): Likewise.
28704 ([-fisolate-erroneous-paths-dereference]): Likewise.
28705 ([-fisolate-erroneous-paths-attribute]): Likewise.
28706 ([-ftree-switch-conversion]): Likewise.
28707 ([-ftree-tail-merge]): Likewise.
28708 ([-ftree-loop-if-convert]): Likewise.
28709 ([-ftree-loop-if-convert-stores]): Likewise.
28710 ([-ftree-loop-distribution]): Likewise.
28711 ([-ftree-loop-distribute-patterns]): Likewise.
28712 ([-flto-compression-level]): Likewise.
28713 ([-flto-report]): Likewise.
28714 ([-flto-report-wpa]): Likewise.
28715 ([-fuse-linker-plugin]): Likewise.
28716 ([-mfix-cortex-a53-835769]): Likewise.
28717 ([-mno-fix-cortex-a53-835769]): Likewise.
28718 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
28719 explicit listing; add a note to the discussion indicating they
28720 exist. Reorder table to group similar options. Add missing
28721 @opindex entries. Add @need commands throughout the table to
28722 allow it to be split across multiple pages.
28723 ([-m8bit-idiv]): Fix @opindex.
28724 ([-mavx256-split-unaligned-load]): Likewise.
28725 ([-mavx256-split-unaligned-store]): Likewise.
28726 ([-mstack-protector-guard]): Likewise.
28727 ([-mcpu=]): Likewise.
28728 ([-mcpu]): Likewise.
28729 ([-mpointer-size=]): Likewise.
28731 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
28733 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
28734 instead of `m' constraint. Likewise for unnamed movb comparison
28735 patterns using reg_before_reload_operand predicate.
28736 * config/pa/predicates.md (reg_before_reload_operand): Tighten
28737 predicate to reject register index and LO_SUM DLT memory forms
28740 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28742 * doc/invoke.texi (Option Summary): Fix spelling of
28743 -fdevirtualize-at-ltrans.
28744 ([-fdevirtualize]): Fix markup.
28745 ([-fdevirtualize-speculatively]): Fix typo.
28746 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
28747 implementor-speaky.
28748 * common.opt (fdevirtualize-at-ltrans): Likewise.
28749 * ipa-devirt.c: Fix typos in comments throughout the file.
28750 (ipa_devirt): Fix typos in format strings for dump output.
28752 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28754 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
28755 discussion of defaults, light copy-editing.
28757 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28759 * tsan.c (instrument_expr): corrected previous checkin.
28761 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28763 Instrument bit field and unaligned accesses for TSAN.
28764 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
28765 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
28766 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
28767 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
28768 unaligned memory regions.
28770 2015-01-01 Anthony Green <green@moxielogic.com>
28772 * config/moxie/predicates.md (moxie_general_movsrc_operand):
28773 Restrict move source register offsets to 16 bits.
28775 Copyright (C) 2015 Free Software Foundation, Inc.
28777 Copying and distribution of this file, with or without modification,
28778 are permitted in any medium without royalty provided the copyright
28779 notice and this notice are preserved.