1 2015-09-21 Richard Biener <rguenther@suse.de>
3 * passes.c (rest_of_decl_compilation): Do not call
4 dwarf2out_early_global_decl for aliases.
6 2015-09-21 Richard Biener <rguenther@suse.de>
9 * dwarf2out.c (add_location_or_const_value_attribute): Remove
10 attribute parameter. Early exit if either DW_AT_const_value
11 or DW_AT_location are present already.
12 (gen_variable_die): Adjust caller.
13 (dwarf2out_late_global_decl): Likewise.
15 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
18 * config/sh/sh.c (sh_remove_overlapping_post_inc,
19 sh_peephole_emit_move_insn): Add new functions.
20 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
21 sh_peephole_emit_move_insn): Declere them.
22 * config/sh/sh.md: Use them in various peephole2 patterns.
24 2015-09-21 Richard Biener <rguenther@suse.de>
27 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
28 address with -fno-delete-null-pointer-checks.
30 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
32 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
33 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
34 (reduc_uplus_v16qi): Remove.
36 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
37 (reduc_<VEC_reduc_name>_v2df): Remove.
38 (reduc_<VEC_reduc_name>_v4sf): Remove.
39 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
41 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
42 gen_ function by removing * prefix.
43 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
45 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
48 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
49 Print i_bound without converting it to a tree.
51 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
53 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
54 operands[4] operands[5] swap with std::swap, removed tmp variable.
55 (arm_evpc_neon_vzip): Replaced in0/in1 and
56 out0/out1 swaps with std::swap, removed x variable.
57 (arm_evpc_neon_vtrn): Replaced in0/int1 and
58 out0/out1 swaos with std::swap, removed x variable.
59 (arm_expand_vec_perm_const_1): Replaced
60 d->op0/d->op1 swap with std::swap, removed x variable.
61 (arm_evpc_neon_vuzp): Replaced in0/in1 and
62 out0/out1 swaps with std::swap, removed x variable.
64 2015-09-21 Jonathan Yong <10walls@gmail.com>
66 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
67 sysroot/usr/lib/32api for additional win32 libraries,
68 fixes failing Cygwin bootstrapping.
70 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
72 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
74 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
77 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
78 (*mov_t_msb_neg): Rewrite negc pattern.
80 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
82 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
83 immediate generation code.
85 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
87 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
88 redundant immediate generation code.
90 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
92 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
93 (AARCH64_NUM_BITMASKS): Remove.
94 (aarch64_bitmasks_cmp): Remove.
95 (aarch64_build_bitmask_table): Remove.
97 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
99 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
100 slow immediate matching loops with a faster algorithm.
102 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
104 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
107 2015-09-20 Jeff Law <law@redhat.com>
109 PR tree-optimization/47679
110 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
111 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
112 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
113 (thread_through_normal_block): Use record_temporary_equivalences.
115 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
117 * coretypes.h (gimple): Change typedef to be a forward
119 * gimple.h (gimple_statement_base): rename to gimple.
120 * (all functions and types using gimple): Adjust.
123 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
124 David Edelsohn <dje.gcc@gmail.com>
126 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
127 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
128 (EH_FRAME_THROUGH_COLLECT2): Define.
129 (EH_TABLES_CAN_BE_READ_ONLY): Define.
130 (ASM_OUTPUT_DWARF_PCREL): Define.
131 (ASM_OUTPUT_DWARF_DATAREL): Define.
133 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
135 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
138 2015-09-18 Jeff Law <law@redhat.com>
140 PR tree-optimization/47679
141 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
143 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
144 object. Update constructor.
145 (pass_dominator::execute): Corresponding chagnes to declaration
146 and initialization of avail_exprs_stack. Update constructor call
147 for dom_opt_dom_walker object.
148 (lookup_avail_expr, record_cond): Accept additional argument. Pass
149 it down to children as needed.
150 (record_equivalences_from_incoming_edge): Likewise.
151 (eliminate_redundant_computations): Likewise.
152 (record_equivalences_from_stmt): Likewise.
153 (simplify_stmt_for_jump_threading): Likewise.
154 (record_temporary_equivalences): Likewise.
155 (optimize_stmt): Likewise.
156 (dom_opt_dom_walker::thread_across_edge): Update access to
157 avail_exprs_stack object and pass it to children as needed.
158 (dom_opt_dom_walker::before_dom_children): Similarly.
159 (dom_opt_dom_walker::after_dom_children): Similarly.
160 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
161 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
162 Add avail_expr_stack argument. Pass it to children as needed.
163 (dummy_simplify): Likewise.
164 (simplify_control_stmt_condition): Likewise.
165 (thread_around_empty_blocks): Likewise.
166 (thread_through_normal_block): Likewise.
167 (thread_across_edge): Likewise.
168 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
169 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
171 PR tree-optimization/47679
172 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
174 (dom_opt_dom_walker): New private member holding the const_and_copies
175 object. Update constructor.
176 (pass_dominator::execute): Corresponding changes to declaration
177 and initialization of const_and_copies. Update constructor call
178 for the dom_opt_dom_walker object.
179 (record_temporary_equivalences): Accept const_and_copies argument
180 pass it down to children as needed.
181 (record_equality): Likewise.
182 (record_equivalences_from_incoming_edge): Likewise.
183 (cprop_into_successor_phis, optimize_stmt): Likewise.
184 (eliminate_redundant_computations): Likewise.
185 (dom_opt_dom_walker::thread_across_edge): Update access to
186 const_and_copies object and pass it to children as needed.
187 (dom_opt_dom_walker::before_dom_children): Similarly.
188 (dom_opt_dom_walker::after_dom_children): Similarly.
190 PR tree-optimization/47679
191 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
192 it into the avail_exprs_stack class.
193 (pass_dominator::execute): Corresponding changes to declaration
194 and initialization of avail_exprs. Pass avail_exprs to
195 dump_dominator_optimization_stats.
196 (record_cond): Extract avail_exprs from avail_exprs_stack.
197 (lookup_avail_expr): Similarly.
198 (htab_staticstics): Remove unnecessary prototype. Move to earlier
200 (dump_dominator_optimization_stats): Make static and prototype.
201 Add argument for the hash table to dump.
202 (debug_dominator_optimization_stats): Remove.
203 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
205 (debug_dominator_optimization_stats): Similarly.
206 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
207 "void" in prototype for pop_to_marker method. Add accessor method
208 for the underlying avail_exprs table.
210 * tree-ssa-threadedge.c: Remove trailing whitespace.
212 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
214 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
216 (pa_ldil_cint_p): Likewise.
217 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
218 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
220 * config/pa/pa.md: Likewise.
222 2015-09-18 David Malcolm <dmalcolm@redhat.com>
224 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
225 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
226 (diagnostic_show_locus): Likewise.
227 (diagnostic_print_caret_line): Likewise.
228 * diagnostic-show-locus.c: New file.
230 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
232 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
233 "back" parameter. Declare label in #if block.
235 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
238 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
239 the address to a register.
241 2015-09-18 Jeff Law <law@redhat.com>
243 PR tree-optimization/47679
244 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
245 * tree-ssa-dom.c: Remove unnecessary header includes.
246 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
247 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
248 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
249 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
250 (pass_phi_only_cprop::execute): Likewise.
251 (make_pass_phi_only_cprop): Likewise.
252 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
253 uses of file scoped statics by passing the required objects
254 as parameters wherever needed.
256 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
257 David Edelsohn <dje.gcc@gmail.com>
259 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
260 EH_FRAME_THROUGH_COLLECT2.
261 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
263 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
264 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
265 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
266 * except.c (switch_to_exception_section): Use a read-only section
267 even if EH_FRAME_SECTION_NAME is undefined.
268 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
269 * collect2.c (write_c_file_stat): Provide dbase on AIX.
270 (scan_prog_file): Don't export __dso_handle nor
272 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
273 (EH_TABLES_CAN_BE_READ_ONLY): Define.
274 (ASM_OUTPUT_DWARF_PCREL): Define.
275 (ASM_OUTPUT_DWARF_DATAREL): Define.
276 (EH_FRAME_THROUGH_COLLECT2): Define.
277 (EH_FRAME_IN_DATA_SECTION): Delete.
278 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
279 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
281 (rs6000_asm_output_dwarf_datarel): Declare.
282 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
283 (rs6000_aix_asm_output_dwarf_datarel): New.
284 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
285 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
286 (EH_FRAME_THROUGH_COLLECT2): Define.
287 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
288 (EH_FRAME_THROUGH_COLLECT2): Define.
289 (EH_TABLES_CAN_BE_READ_ONLY): Define.
290 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
291 (EH_FRAME_THROUGH_COLLECT2): New.
292 (ASM_OUTPUT_DWARF_DATAREL): New.
293 * doc/tm.texi: Regenerate.
295 2015-09-18 Richard Biener <rguenther@suse.de>
297 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
298 we're in early phase.
299 (schedule_generic_params_dies_gen): Likewise.
300 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
301 work as possible, retaining unhandled cases.
302 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
303 clear out generic_type_instances at the end.
304 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
305 (dwarf2out_early_finish): ... here. Do most of
306 gen_remaining_tmpl_value_param_die_attribute here.
308 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
310 PR tree-optimization/67283
311 * tree-sra.c (type_consists_of_records_p): Rename to...
312 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
313 (completely_scalarize_record): Rename to...
314 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
315 (scalarize_elem): New.
316 (analyze_all_variable_accesses): Follow renamings.
318 2015-09-18 Richard Biener <rguenther@suse.de>
320 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
323 2015-09-18 Richard Biener <rguenther@suse.de>
325 PR tree-optimization/66142
326 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
327 treat MEM[&x] and x the same.
328 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
329 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
330 when we simplified sth.
331 (vn_reference_maybe_forwprop_address): Likewise.
332 (valueize_refs_1): When we simplified through
333 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
334 set valueized_anything to true.
335 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
336 one ref kills the other instead of just a offset-based test.
337 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
338 for the operand_equal_p test to compare bases and also compare
341 2015-09-17 Christian Bruel <christian.bruel@st.com>
343 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
345 2015-09-17 Richard Henderson <rth@redhat.com>
348 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
349 pointers that encode the alignment of the object.
351 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
353 PR rtl-optimization/66790
354 * df-problems.c (LIVE): Amend documentation.
356 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
358 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
360 (GTFILES): Replace optabs.c with optabs-libfunc.c.
361 * genopinit.c (main): Add an include guard to insn-opinit.h.
362 Protect the rtx_code parts with NUM_RTX_CODE.
363 * optabs.h: Split parts out to...
364 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these
366 * optabs.c: Split parts out to...
367 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these
369 * cilk-common.c: Include optabs-query.h rather than optabs.h.
370 * fold-const.c: Likewise.
371 * target-globals.c: Likewise.
372 * tree-if-conv.c: Likewise.
373 * tree-ssa-forwprop.c: Likewise.
374 * tree-ssa-loop-prefetch.c: Likewise.
375 * tree-ssa-math-opts.c: Include optabs-tree.h rather than
376 optabs.h. Remove unncessary include files.
377 * tree-ssa-phiopt.c: Likewise.
378 * tree-ssa-reassoc.c: Likewise.
379 * tree-switch-conversion.c: Likewise.
380 * tree-vect-data-refs.c: Likewise.
381 * tree-vect-generic.c: Likewise.
382 * tree-vect-loop.c: Likewise.
383 * tree-vect-patterns.c: Likewise.
384 * tree-vect-slp.c: Likewise.
385 * tree-vect-stmts.c: Likewise.
386 * tree-vrp.c: Likewise.
387 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
388 rather than optabs.h.
389 * expr.c: Include optabs-tree.h.
390 * function.c: Likewise.
392 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
395 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
396 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
397 * config/arm/arm.c: Include common/common-target.h.
398 (use_return_insn): Return 0 if the static chain register was saved
399 above a non-APCS frame.
400 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
401 (struct scratch_reg): New.
402 (get_scratch_register_on_entry): New function.
403 (release_scratch_register_on_entry): Likewise.
404 (arm_emit_probe_stack_range): Likewise.
405 (output_probe_stack_range): Likewise.
406 (arm_expand_prologue): Factor out code dealing with the IP register
407 for nested function and adjust it for stack checking.
408 Invoke arm_emit_probe_stack_range if static builtin stack checking
410 (thumb1_expand_prologue): Sorry out if static builtin stack checking
412 (arm_expand_epilogue): Add the saved static chain register, if any, to
413 the amount of pre-pushed registers to pop.
414 (arm_frame_pointer_required): Return true if static stack checking is
415 enabled and we want to catch the exception with the EABI unwinder.
416 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
417 (UNSPEC_PROBE_STACK_RANGE): Likewise.
418 * config/arm/arm.md (probe_stack): New insn.
419 (probe_stack_range): Likewise.
421 2015-09-17 Richard Biener <rguenther@suse.de>
423 * genmatch.c (parser::parse_expr): Improve error message
424 for mis-placed flags.
426 2015-09-17 Richard Biener <rguenther@suse.de>
428 * passes.c (rest_of_decl_compilation): Always call early_global_decl
429 debug hook when we created a varpool node.
430 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
431 dwarf2out_early_global_decl, when not just add location or
432 value attributes to existing DIEs.
434 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
436 * config/aarch64/aarch64.md (copysigndf3): New.
437 (copysignsf3): Likewise.
439 2015-09-17 David S. Miller <davem@davemloft.net>
441 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
443 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
445 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
446 (HARD_REGNO_CALLER_SAVE_MODE): Define.
447 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
448 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
449 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
450 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
451 provide when flag_pic.
453 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
455 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
456 object_allocator change.
458 2015-09-17 Bin Cheng <bin.cheng@arm.com>
460 PR tree-optimization/66388
461 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New
463 (dump_iv): Dump no_overflow information.
464 (alloc_iv): Initialize new field for struct iv.
465 (mark_bivs): Count number of no_overflow bivs.
466 (find_deriving_biv_for_expr, record_biv_for_address_use): New
468 (idx_find_step): Call new functions above.
469 (add_candidate_1, add_candidate): New paramter.
470 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
471 (get_computation_aff): Simplify convertion of cand for BIV.
472 (get_computation_cost_at): Step cand's base if necessary.
474 2015-09-17 Bin Cheng <bin.cheng@arm.com>
476 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
478 (tree_simplify_using_condition): Ditto.
479 (simplify_using_initial_conditions): Ditto.
480 (loop_exits_before_overflow): Pass new argument to function
481 simplify_using_initial_conditions. Remove case for type conversions
483 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
485 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
486 in iv base using loop initial conditions.
488 2015-09-16 Jeff Law <law@redhat.com>
490 PR tree-optimization/47679
491 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
492 (free_all_edge_infos): Use it.
493 (allocate_edge_info): Free preexisting edge info data.
494 (pass_dominator::execute): Set up initial edge info structures.
495 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
497 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument. If
498 non-null, then push/pop markers appropriately.
499 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
500 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
503 2015-09-16 James Bowman <james.bowman@ftdichip.com>
505 * config/ft32/ft32.c Fix the memory address space predicate.
507 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
510 * config/sh/sh.md (call_pcrel): Add early clobber to scratch
512 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
514 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
516 * toplev.h (check_global_declaration): Remove declaration.
517 * toplev.c (check_global_declaration): Move to ...
518 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
519 (analyze_functions): Update call.
521 2015-09-16 David S. Miller <davem@davemloft.net>
523 * lra-constraints.c (simplify_operand_subreg): Do not assume that
524 lowpart of a SUBREG has offset zero.
526 2015-09-16 Jeff Law <law@redhat.com>
528 PR tree-optimization/47679
529 * tree-ssa-dom.c (enum expr_kind): Moved from here to
530 tree-ssa-scopedtables.h.
531 (struct hashable_expr, class expr_hash_elt): Likewise.
532 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
533 Move associated methods into tree-ssa-scopedtables.c.
534 (avail_expr_hash, initialize_expr_from_cond): Similarly.
535 (hashable_expr_equal_p, add_expr_commutative): Likewise.
536 (add_hashable_expr): Likewise.
537 (record_cond): Delete element directly.
538 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
539 private copy ctor and assignment operator methods.
540 (expr_elt_hasher): Inline trivial methods.
541 (initialize_expr_from_cond): Prototype.
542 * tree-ssa-scopedtables.c: Add necessary includes, functions and
543 methods that were previously in tree-ssa-dom.c. Improve various
546 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
548 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
550 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
553 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
556 2015-09-16 Richard Biener <rguenther@suse.de>
559 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
560 location of possibly shared trees.
562 2015-09-16 Richard Biener <rguenther@suse.de>
565 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
567 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
569 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
570 offset and size computations instead of HOST_WIDE_INT.
572 2015-09-16 Richard Biener <rguenther@suse.de>
575 * fold-const.c (extract_muldiv_1): Properly extend multiplication
576 result before builting a tree via wide_int_to_tree.
578 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
580 * Makefile.in: Add memory-block.cc
581 (pool_allocator::initialize): Use fixed block size.
582 (pool_allocator::release): Use memory_block_pool.
583 (pool_allocator::allocate): Likewise.
584 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
586 * cfg.c (initialize_original_copy_tables): Likewise.
587 * cselib.c (elt_list_pool, elt_loc_list_pool,
588 cselib_val_pool): Likewise.
589 * df-problems.c (df_chain_alloc): Likewise.
590 * df-scan.c (df_scan_alloc): Likewise.
591 * dse.c (cse_store_info_pool, rtx_store_info_pool,
592 read_info_type_pool, insn_info_type_pool, bb_info_pool,
593 group_info_pool, deferred_change_pool): Likewise.
594 * et-forest.c (et_nodes, et_occurrences): Likewise.
595 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
596 ipcp_agg_lattice_pool): Likewise.
597 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
598 * ipa-profile.c (histogram_pool): Likewise.
599 * ipa-prop.c (ipa_refdesc_pool): Likewise.
600 * ira-build.c (live_range_pool, allocno_pool, object_pool,
601 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
602 * ira-color.c (update_cost_record_pool): Likewise.
603 * lra-lives.c (lra_live_range_pool): Likewise.
604 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
605 * memory-block.cc: New file.
606 * memory-block.h: New file.
607 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
608 * sched-deps.c (sched_deps_init): Likewise.
609 * sel-sched-ir.c (sched_lists_pool): Likewise.
610 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
611 * tree-sra.c (access_pool): Likewise.
612 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
613 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
614 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
615 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
616 * tree-ssa-strlen.c (strinfo_pool): Likewise.
617 * tree-ssa-structalias.c (variable_info_pool): Likewise.
618 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
619 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
621 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
623 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
625 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
628 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
630 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
631 to pass TLS call argument, according to current ABI.
632 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
633 callx0 for TLS call, according to current ABI.
635 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
637 * tree-eh.c (lower_try_finally_dup_block): Clear location information
638 on stack restore statements.
639 (decide_copy_try_finally): Do not consider a stack restore statement as
642 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
644 * config/alpha/alpha.c (alpha_expand_block_clear): Use
645 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
647 2015-09-15 Jeff Law <law@redhat.com>
649 PR tree-optimization/47679
650 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
651 methods and private members.
652 (avail_exprs_stack): Similarly. Change type of global
653 from a pair of expr_hash_elt_t to the new class.
654 (expr_elt_hasher::hash): Corresponding changes.
655 (expr_elt_hasher::equal): Similarly.
656 (avail_expr_hash): Similarly.
657 (pass_dominator::execute): Similarly.
658 (dom_opt_dom_walker::thread_across_edge): Similarly.
659 (record_cond): Similarly.
660 (dom_opt_dom_walker::before_dom_children): Similarly.
661 (dom_opt_dom_walker::after_dom_children): Similarly.
662 (lookup_avail_expr): Likewise.
663 (initialize_hash_element): Now a expr_hash_elt constructor.
664 (initialize_hash_element_from_expr): Similarly.
665 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
666 (free_expr_hash_elt): Call dtor for the element.
667 (remove_local_expressions_from_table): Now the "pop_to_marker"
668 method in the available_exprs_stack class.
669 (avail_expr_stack::record_expr): Method factored out.
670 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
672 (hashable_expr_equal_p): Fix formatting.
674 2015-09-15 David Malcolm <dmalcolm@redhat.com>
676 * input.h (location_get_source_line): Drop "expanded_location"
677 param in favor of a file and line number.
678 * input.c (location_get_source_line): Likewise.
679 (dump_location_info): Update for change in signature of
680 location_get_source_line.
681 * diagnostic.c (diagnostic_print_caret_line): Likewise.
683 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
685 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
686 Bump to 4KB for SJLJ exceptions.
687 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
688 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
689 * doc/tm.texi: Regenerate.
691 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
693 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
694 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
697 2015-09-15 Richard Biener <rguenther@suse.de>
699 PR tree-optimization/67470
700 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
701 structure for PHI hoisting by inserting a forwarder block
704 2015-09-15 Christian Bruel <christian.bruel@st.com>
706 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
707 (arm_option_print): New function.
709 2015-09-15 Christian Bruel <christian.bruel@st.com>
712 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
713 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
714 Remove flags parameter.
715 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
716 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
717 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
718 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
719 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
720 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
721 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
722 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
724 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
726 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
728 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
729 AARCH64_VALID_SIMD_DREG_MODE.
731 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
733 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
734 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
735 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
736 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
737 aarch64_ld4_lane<mode>): Combine together, making...
738 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
739 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
740 aarch64_st4_lane<mode>): Combine together, making...
741 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
742 * config/aarch64/iterators.md (nregs): Add comment.
744 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
746 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
747 Change operand mode from <V_TWO_ELEM> to BLK.
748 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
749 (aarch64_vec_store_lanesoi_lane<mode): Likewise
750 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
751 (aarch64_ld2_lane<mode>): Likewise.
752 (aarch64_st2_lane<VQ:mode>): Likewise.
753 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
755 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
757 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
758 Change operand mode from <V_FOUR_ELEM> to BLK.
759 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
760 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
761 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
762 (aarch64_ld4_lane<mode>): Likewise.
763 (aarch64_st4_lane<mode>): Likewise.
764 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
766 2015-09-15 Richard Biener <rguenther@suse.de>
769 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
770 transfer EH info from old to new stmt.
771 (replace_call_with_value): Likewise.
772 (replace_call_with_call_and_fold): Likewise.
773 (gimple_fold_builtin_memory_op): Likewise.
774 (gimple_fold_builtin_memset): Likewise.
775 (gimple_fold_builtin_stpcpy): Likewise.
776 (gimple_fold_call): Likewise.
778 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
780 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
782 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
783 (aarch64_simd_intEI_type_node): Likewise.
784 (aarch64_simd_builtin_std_type): Remove EImode case.
785 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
786 * config/aarch64/aarch64-modes.def: Remove EImode.
788 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
790 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
791 Change operand mode from <V_THREE_ELEM> to BLK.
792 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
793 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
794 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
795 (aarch64_ld3_lane<mode>): Likewise.
796 (aarch64_st3_lane<mode>): Likewise.
797 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
799 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
801 * config/aarch64/aarch64-simd.md
802 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
803 Change all TImode operands to BLKmode.
804 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
805 Change all EImode operands to BLKmode.
806 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
807 Change all OImode operands to BLKmode.
809 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
810 and call set_mem_size.
811 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
813 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
815 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
817 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
819 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
821 (vec_store_lanesci_lane<mode>): Rename to...
822 (aarch64_vec_store_lanesci_lane<mode>): ...this.
824 (vec_store_lanesxi_lane<mode>): Rename to...
825 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
827 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
828 aarch64_st4_lane<mode>): Follow renaming.
830 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
832 * config/s390/s390.c (s390_const_operand_ok): Add missing
835 2015-09-15 Richard Biener <rguenther@suse.de>
838 * lto-streamer.h (lto_location_cache::current_sysp): Properly
840 * lto-streamer-out.c (clear_line_info): Likewise.
842 2015-09-15 Richard Biener <rguenther@suse.de>
844 * doc/match-and-simplify.texi: Fix wording.
846 2015-09-15 Bin Cheng <bin.cheng@arm.com>
848 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
849 unnecessary type conversion in op1.
851 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
853 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
854 (dup_block_and_redirect): Delete function.
855 (can_dup_for_shrink_wrapping): New function.
856 (fix_fake_fallthrough_edge): New function.
857 (try_shrink_wrapping): Rewrite function.
858 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
860 2015-09-14 Rich Felker <dalias@libc.org>
862 * configure.ac: Change target pattern for sh TLS support
863 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
864 * configure: Regenerate.
866 2015-09-14 Jeff Law <law@redhat.com>
868 PR tree-optimization/47679
869 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
870 type rather than void *.
872 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
875 * diagnostic.c (diagnostic_initialize): Do not set
876 some_warnings_are_errors.
877 (diagnostic_finish): Use DK_WERROR count instead.
878 (diagnostic_report_diagnostic): Do not set
879 some_warnings_are_errors.
880 * diagnostic.h (struct diagnostic_context): Remove
881 some_warnings_are_errors.
883 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
885 * config/sparc/predicates.md (const_all_ones_operand): Use
886 CONSTM1_RTX to simplify definition.
888 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
891 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
894 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
896 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
897 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
898 OPT_fshow_column to handled saved option cases.
899 (append_compiler_options): Do not skip the above added options.
901 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
904 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
905 nopcrelative_literal_loads.
906 (aarch64_classify_address): Likewise.
907 (aarch64_constant_pool_reload_icode): Define.
908 (aarch64_secondary_reload): Handle secondary reloads for
910 (aarch64_override_options): Handle nopcrelative_literal_loads.
911 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
912 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
914 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
915 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
916 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
918 * doc/invoke.texi (mpc-relative-literal-loads): Document.
920 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
923 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
924 sync_compare_and_swap_optab libcall to target_oval.
926 2015-09-14 Marek Polacek <polacek@redhat.com>
928 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
930 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
932 2015-09-11 Mark Wielaard <mjw@redhat.com>
935 * toplev.c (check_global_declaration): Check and use
936 warn_unused_const_variable.
937 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
938 (-Wunused-variable): Remove non-constant. For C implies
939 -Wunused-const-variable.
940 (-Wunused-const-variable): New.
942 2015-09-14 Richard Biener <rguenther@suse.de>
944 * doc/match-and-simplify.texi: Update for changed syntax
945 of inner ifs and the new switch expression.
947 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
949 * config/i386/haswell.md: New file describing Haswell pipeline.
950 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
951 haswell-like processors.
952 (ix86_reassociation_width): Increase reassociation width for 64-bit
953 Haswell processor family.
954 * config/i386/i386.md: Introduce haswell cpu and include new md file.
956 2015-09-14 Richard Biener <rguenther@suse.de>
958 * doc/match-and-simplify.texi: Fixup some formatting issues
959 and document the 's' flag.
961 2015-09-13 Olivier Hainque <hainque@adacore.com>
962 Eric Botcazou <ebotcazou@adacore.com>
964 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
965 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
966 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
967 (TARGET_CPU_gr5): Likewise.
968 (TARGET_CPU_gr6): Likewise.
969 (MULTILIB_DEFAULTS): Likewise.
970 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
971 for mcpu=gr5 and mcpu=gr6.
972 (MULTILIB_DIRNAMES): Adjust accordingly.
974 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
976 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
977 (mem_ref_p): Likewise.
978 (outermost_indep_loop): Adjust.
979 (mem_ref_in_stmt): Likewise.
980 (determine_max_movement): Likewise.
981 (mem_ref_alloc): Likewise.
982 (record_mem_ref_loc): Likewise.
983 (set_ref_stored_in_loop): Likewise.
984 (mark_ref_stored): Likewise.
985 (gather_mem_refs_stmt): Likewise.
986 (mem_refs_may_alias_p): Likewise.
987 (for_all_locs_in_loop): Likewise.
988 (struct rewrite_mem_ref_loc): Likewise.
989 (rewrite_mem_refs): Likewise.
990 (struct first_mem_ref_loc_1): Likewise.
991 (first_mem_ref_loc): Likewise.
992 (struct sm_set_flag_if_changed): Likewise.
993 (execute_sm_if_changed_flag_set): Likewise.
994 (execute_sm): Likewise.
995 (hoist_memory_references):
996 (struct ref_always_accessed): Likewise.
997 (ref_always_accessed_p): Likewise.
998 (refs_independent_p): Likewise.
999 (record_dep_loop): Likewise.
1000 (ref_indep_loop_p_1): Likewise.
1001 (ref_indep_loop_p_2): Likewise.
1002 (ref_indep_loop_p): Likewise.
1003 (can_sm_ref_p): Likewise.
1004 (find_refs_for_sm): Likewise.
1005 (tree_ssa_lim_finalize): Likewise.
1007 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1009 * dwarf2out.c (dw_attr_ref): Remove typedef.
1010 (dw_line_info_ref): Likewise.
1011 (pubname_ref): Likewise.
1012 (dw_ranges_ref): Likewise.
1013 (dw_ranges_by_label_ref): Likewise.
1014 (comdat_type_node_ref): Likewise.
1016 (get_AT_low_pc): Likewise.
1017 (get_AT_hi_pc): Likewise.
1018 (get_AT_string): Likewise.
1019 (get_AT_flag): Likewise.
1020 (get_AT_unsigned): Likewise.
1021 (get_AT_ref): Likewise.
1022 (get_AT_file): Likewise.
1023 (remove_AT): Likewise.
1024 (print_die): Likewise.
1025 (check_die): Likewise.
1026 (die_checksum): Likewise.
1027 (attr_checksum_ordered): Likewise.
1028 (struct checksum_attributes): Likewise.
1029 (collect_checksum_attributes): Likewise.
1030 (die_checksum_ordered): Likewise.
1031 (same_die_p): Likewise.
1032 (is_declaration_die): Likewise.
1033 (clone_die): Likewise.
1034 (clone_as_declaration): Likewise.
1035 (copy_declaration_context): Likewise.
1036 (break_out_comdat_types): Likewise.
1037 (copy_decls_walk): Likewise.
1038 (output_location_lists): Likewise.
1039 (external_ref_hasher::hash): Likewise.
1040 (optimize_external_refs_1): Likewise.
1041 (build_abbrev_table): Likewise.
1042 (size_of_die): Likewise.
1043 (unmark_all_dies): Likewise.
1044 (size_of_pubnames): Likewise.
1045 (output_die_abbrevs): Likewise.
1046 (output_die): Likewise.
1047 (output_pubnames): Likewise.
1048 (add_ranges_num): Likewise.
1049 (add_ranges_by_labels): Likewise.
1050 (add_high_low_attributes): Likewise.
1051 (gen_producer_string): Likewise.
1052 (dwarf2out_set_name): Likewise.
1053 (new_line_info_table): Likewise.
1054 (prune_unused_types_walk_attribs): Likewise.
1055 (prune_unused_types_update_strings): Likewise.
1056 (prune_unused_types): Likewise.
1057 (resolve_addr): Likewise.
1058 (optimize_location_lists_1): Likewise.
1059 (index_location_lists): Likewise.
1060 (dwarf2out_finish): Likewise.
1062 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1064 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
1066 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1068 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
1069 (dump_asserts_for): Adjust.
1070 (register_new_assert_for): Likewise.
1071 (process_assert_insertions): Likewise.
1072 (insert_range_assertions): Likewise.
1074 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1076 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
1078 (new_temp_expr_table): Adjust.
1079 (free_temp_expr_table): Likewise.
1080 (version_to_be_replaced_p): Likewise.
1081 (make_dependent_on_partition): Likewise.
1082 (add_to_partition_kill_list): Likewise.
1083 (remove_from_partition_kill_list): Likewise.
1084 (add_dependence): Likewise.
1085 (finished_with_expr): Likewise.
1086 (process_replaceable): Likewise.
1087 (kill_expr): Likewise.
1088 (kill_virtual_exprs): Likewise.
1089 (mark_replaceable): Likewise.
1090 (find_replaceable_in_bb): Likewise.
1091 (find_replaceable_exprs): Likewise.
1092 (debug_ter): Likewise.
1094 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1096 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
1097 (struct btr_user): Rename from btr_user_s.
1098 (struct btr_def): Rename from btr_def_s.
1099 (find_btr_def_group): Adjust.
1100 (add_btr_def): Likewise.
1101 (new_btr_user): Likewise.
1102 (note_other_use_this_block): Likewise.
1103 (compute_defs_uses_and_gen): Likewise.
1104 (link_btr_uses): Likewise.
1105 (build_btr_def_use_webs): Likewise.
1106 (block_at_edge_of_live_range_p): Likewise.
1107 (btr_def_live_range): Likewise.
1108 (combine_btr_defs): Likewise.
1109 (move_btr_def): Likewise.
1110 (migrate_btr_def): Likewise.
1111 (migrate_btr_defs): Likewise.
1113 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1115 * var-tracking.c (shared_hash_def): Rename to shared_hash.
1116 (shared_hash): Remove typedef.
1117 (struct dataflow_set): Adjust.
1118 (shared_hash_unshare): Likewise.
1119 (dataflow_set_merge): Likewise.
1120 (vt_initialize): Likewise.
1121 (vt_finalize): Likewise.
1123 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1125 * var-tracking.c (struct location_chain): Rename from
1127 (struct variable_part): Adjust.
1128 (variable_htab_free): Likewise.
1129 (unshare_variable): Likewise.
1130 (get_init_value): Likewise.
1131 (get_addr_from_local_cache): Likewise.
1132 (drop_overlapping_mem_locs): Likewise.
1133 (val_reset): Likewise.
1134 (struct variable_union_info): Likewise.
1135 (variable_union): Likewise.
1136 (find_loc_in_1pdv): Likewise.
1137 (insert_into_intersection): Likewise.
1138 (intersect_loc_chains): Likewise.
1139 (canonicalize_loc_order_check): Likewise.
1140 (canonicalize_values_mark): Likewise.
1141 (canonicalize_values_star): Likewise.
1142 (canonicalize_vars_star): Likewise.
1143 (variable_merge_over_cur): Likewise.
1144 (remove_duplicate_values): Likewise.
1145 (variable_post_merge_new_vals): Likewise.
1146 (variable_post_merge_perm_vals): Likewise.
1147 (find_mem_expr_in_1pdv): Likewise.
1148 (dataflow_set_preserve_mem_locs): Likewise.
1149 (dataflow_set_remove_mem_locs): Likewise.
1150 (variable_part_different_p): Likewise.
1151 (onepart_variable_different_p): Likewise.
1152 (find_src_set_src): Likewise.
1153 (dump_var): Likewise.
1154 (set_slot_part): Likewise.
1155 (clobber_slot_part): Likewise.
1156 (delete_slot_part): Likewise.
1157 (vt_expand_var_loc_chain): Likewise.
1158 (emit_note_insn_var_location): Likewise.
1159 (vt_finalize): Likewise.
1161 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1163 * dse.c (store_info_t): Remove typedef.
1164 (group_info_t): Likewise.
1165 (const_group_info_t): Likewise.
1166 (deferred_change_t): Likewise.
1167 (get_group_info): Adjust.
1168 (free_store_info): Likewise.
1169 (canon_address): Likewise.
1170 (clear_rhs_from_active_local_stores): Likewise.
1171 (record_store): Likewise.
1172 (replace_read): Likewise.
1173 (check_mem_read_rtx): Likewise.
1174 (scan_insn): Likewise.
1175 (remove_useless_values): Likewise.
1176 (dse_step1): Likewise.
1177 (dse_step2_init): Likewise.
1178 (dse_step2_nospill): Likewise.
1179 (scan_stores_nospill): Likewise.
1180 (scan_reads_nospill): Likewise.
1181 (dse_step3_exit_block_scan): Likewise.
1182 (dse_step3): Likewise.
1183 (dse_step5_nospill): Likewise.
1184 (dse_step6): Likewise.
1186 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1188 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
1189 (alias_set_entry): Remove typedef.
1190 (alias_set_subset_of): Adjust.
1191 (alias_sets_conflict_p): Likewise.
1192 (init_alias_set_entry): Likewise.
1193 (get_alias_set): Likewise.
1194 (new_alias_set): Likewise.
1195 (record_alias_subset): Likewise.
1197 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
1199 * doc/install.texi (Downloading the source): Mark up
1200 contrib/download_prerequisites properly and drop leading "./".
1202 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1204 * config/arc/arc.h: Remove define of STRUCT_VALUE.
1205 * config/lm32/lm32.h: Likewise.
1206 * config/mep/mep.h: Likewise.
1207 * config/visium/visium.h: Likewise.
1208 * system.h: Poison STRUCT_VALUE macro.
1210 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
1212 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1213 CONSTANT_P operands.
1215 2015-09-11 David S. Miller <davem@davemloft.net>
1217 * config/sparc/constraints.md: Make "U" constraint a real register
1219 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1220 (D_MODES, DF_MODES): Add missing cast.
1221 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1222 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1223 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1225 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1226 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1227 provide these insn when flag_pic.
1229 2015-09-11 Jeff Law <law@redhat.com>
1231 PR tree-optimization/47679
1232 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
1233 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
1234 member with m_. Update inline member functions as necessary. Add
1236 * tree-ssa-scopedtables.c: Update const_and_copies's member
1237 functions to use m_ prefix to access the stack.
1239 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1241 * graphite-optimize-isl.c (disable_tiling): Remove.
1242 (get_schedule_for_band): Do not use disable_tiling.
1243 (get_prevector_map): Delete function.
1244 (enable_polly_vector): Remove.
1245 (get_schedule_for_band_list): Remove dead code.
1247 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1249 * graphite-optimize-isl.c (get_tile_map): Refactor.
1250 (get_schedule_for_band): Same.
1251 (getScheduleForBand): Same.
1252 (get_prevector_map): Same.
1253 (get_schedule_for_band_list): Same.
1254 (get_schedule_map): Same.
1255 (get_single_map): Same.
1256 (apply_schedule_map_to_scop): Same.
1257 (optimize_isl): Same.
1259 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1262 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
1264 * config/aarch64/iterators.md (GPF_TF_F16): New.
1267 2015-09-10 Nathan Sidwell <nathan@acm.org>
1269 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
1270 (nvptx_reorg): Adjust comments.
1272 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
1275 * configure.ac: Check if setenv and unsetenv are declared.
1276 * configure: Rebuild.
1277 * config.in: Rebuild.
1278 * system.h: Declare setenv and unsetenv if not declared.
1280 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1282 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
1283 commentary to simplify permute mask adjustment equation.
1284 (special_handling_values): Add SH_VPERM.
1285 (const_load_sequence_p): New function.
1286 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
1287 the mask loaded from the constant pool.
1288 (adjust_vperm): New function.
1289 (handle_special_swappables): Call adjust_vperm.
1290 (dump_swap_insn_table): Handle SH_VPERM.
1292 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
1294 * shrink-wrap.c (requires_stack_frame_p): Remove static.
1295 * shrink-wrap.h (requires_stack_frame_p): Put back.
1297 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
1299 * reload1.c (elimination_costs_in_insn): Locally turn
1300 -Wmaybe-uninitialized into a warning.
1302 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
1304 * shrink-wrap.c (requires_stack_frame_p): Make static.
1305 (prepare_shrink_wrap): Likewise.
1306 (dup_block_and_redirect): Likewise.
1307 * shrink-wrap.h: Remove declarations of those functions.
1309 2015-09-10 Mark Wielaard <mjw@redhat.com>
1311 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
1313 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
1316 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
1317 missing simplify_gen_subreg.
1319 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1321 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
1322 the vector element is bigger than 64 bit.
1324 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1326 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
1327 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
1329 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1331 * config/s390/s390.c: Add V1TImode to constant pool modes.
1333 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1336 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
1337 predicate. Set predicable_short_it attr to "no".
1339 2015-09-10 Jiong Wang <jiong.wang@arm.com>
1341 PR rtl-optimization/67421
1342 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
1343 left wide shift tranformation.
1345 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1347 * common/config/arc/arc-common.c: Remove references to A5.
1348 * config/arc/arc-opts.h: Likewise.
1349 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
1350 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
1351 * config/arc/t-arc-newlib: Likewise.
1353 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1355 * config/arc/arc.md (length): Fix attribute length for conditional
1356 executed instructions with long immediate.
1358 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1360 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
1361 type for second alternative.
1363 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
1365 * doc/invoke.texi (Downloading GCC): Mention
1366 contrib/download_prerequisites script.
1368 2015-09-10 Jakub Jelinek <jakub@redhat.com>
1371 * gimplify.c (gimplify_omp_for): If inner stmt is not found
1372 for combined loop, assert seen_error () and return GS_ERROR.
1375 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
1376 if decl is already in outer->variables.
1379 * gimplify.c (gimplify_scan_omp_clauses): Instead of
1380 asserting that decl is not specified in octx->variables,
1381 break out of the loop if it is.
1384 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
1385 iterator is not explicitly determined, but is defined inside
1386 of the combined workshare region, handle it like if it has
1387 DECL_EXPR in OMP_FOR_PRE_BODY.
1389 2015-09-09 Nathan Sidwell <nathan@acm.org>
1391 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
1392 (*cmp<mode>): Add assembler spacing.
1393 (setcc_int<mode>, set_cc_float<mode>): Likewise.
1394 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
1396 (write_func_decl_from_insn): Refactor argument loops & comma emission.
1397 (nvptx_expand_call): Likewise.
1398 (nvptx_output_call_insn): Likewise.
1399 (nvptx_reorg_subreg): Add spacing.
1401 2015-09-09 Marek Polacek <polacek@redhat.com>
1404 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
1407 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1410 * doc/invoke.texi ([Wsubobject-linkage]): Document.
1412 2015-09-09 Tom de Vries <tom@codesourcery.com>
1414 * params-list.h: Add missing copyright notice.
1416 2015-09-09 Nathan Sidwell <nathan@acm.org>
1418 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
1419 sel_truesi, not andsi.
1421 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1423 * config/arm/arm.md (*subsi3_compare0): Rename to...
1424 (subsi3_compare0): ... This.
1425 (modsi3): New define_expand.
1426 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
1427 when operand is power of 2.
1429 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1431 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
1432 (*neg<mode>2_compare0): Rename to...
1433 (neg<mode>2_compare0): ... This.
1434 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
1435 Move check for speed inside the if-then-elses. Reflect
1436 CSNEG sequence in MOD by power of 2 case.
1438 2015-09-09 Alan Modra <amodra@gmail.com>
1441 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1442 reload replacement for PRE_MODIFY address reg.
1444 2015-09-09 Sebastian Pop <s.pop@samsung.com>
1446 PR tree-optimization/53852
1447 * config.in: Regenerate.
1448 * configure: Regenerate.
1449 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
1450 * graphite-optimize-isl.c (optimize_isl): Stop computation when
1451 PARAM_MAX_ISL_OPERATIONS is reached.
1452 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
1453 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
1454 result equal to isl_stat_ok as the status now can be isl_error_quota.
1455 (subtract_commutative_associative_deps): Same.
1456 (compute_deps): Same.
1458 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1459 Sebastian Pop <s.pop@samsung.com>
1461 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1462 Return the parameter if it was saved in corresponding
1463 parameter_rename_map of the region.
1464 (copy_def): Copy def from sese region to the newly created region.
1465 (copy_internal_parameters): Copy all the internal parameters defined
1466 within a region to the newly created region.
1467 (graphite_regenerate_ast_isl): Copy parameters to the new region before
1468 translating isl to gimple.
1469 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
1470 the loop-nest does not have any data-references.
1471 (build_graphite_scops): Create a scop only when there is at least one
1473 (contains_only_close_phi_nodes): Deleted.
1474 (print_graphite_scop_statistics): Deleted
1475 (print_graphite_statistics): Deleted
1476 (limit_scops): Deleted.
1477 (build_scops): Removed call to limit_scops.
1478 * sese.c (new_sese): Construct.
1479 (free_sese): Destruct.
1480 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
1482 (set_rename): Pass sese region so that parameters inside the region can
1483 be added to its parameter_rename_map.
1484 (rename_uses): Pass sese region.
1485 (graphite_copy_stmts_from_block): Do not copy parameters that have been
1486 generated in the header of the scop. For each SSA_NAME in the
1487 parameter_rename_map rename its usage.
1488 (invariant_in_sese_p_rec): Return false if tree t is defined outside
1490 (scalar_evolution_in_region): If the tree t is invariant just return t.
1491 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
1492 struct sese to keep track of all the parameters which need renaming.
1493 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
1495 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
1497 2015-09-08 Tom de Vries <tom@codesourcery.com>
1499 * Makefile.in (generated_files): Add params.list.
1500 (params.list, s-params.list): Add rule.
1501 * params.h (enum compiler_param): Include params-list.h. Move define
1502 DEFPARAM, include params.def and undef DEFPARAM ...
1503 * params-list.h: ... here. New file.
1505 2015-09-08 David Malcolm <dmalcolm@redhat.com>
1507 * pretty-print.h (printer_fn): Fix typo in comment.
1509 2015-09-07 Jeff Law <law@redhat.com>
1511 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
1513 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1515 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
1516 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
1517 (arm_neon_fp16_hw): New.
1519 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1521 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
1522 UNITS_PER_WORD >= 4.
1524 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1526 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
1527 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
1528 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
1529 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
1530 (aarch64_float_extend_lo_v2df): Rename to...
1531 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
1533 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
1534 (float_extend_lo): Add v4sf.
1536 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
1537 * config/aarch64/iterators.md (VQ_HSF): New iterator.
1538 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
1539 (Vwide): New mode_attr.
1541 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1543 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
1544 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
1545 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
1546 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
1547 V4HF and V8HF variants to iterator.
1549 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
1551 * config/aarch64/iterators.md (VDQF_F16): New.
1552 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
1554 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1556 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
1557 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1558 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
1559 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
1560 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
1561 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1562 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
1563 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
1564 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
1565 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
1566 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
1567 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1568 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
1569 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
1570 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
1571 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
1572 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
1573 vld1q_dup_f16): New.
1575 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1577 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
1578 Reparameterize to...
1579 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
1580 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
1581 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
1583 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
1585 (float_truncate_lo_): Use BUILTIN_VDF iterator.
1587 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
1589 * config/aarch64/iterators.md (VDF, Vdtype): New.
1590 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
1592 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1594 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
1595 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
1596 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
1597 Add __builtin_aarch64_simd_hf.
1598 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
1599 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
1600 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
1601 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
1602 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
1603 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
1604 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
1605 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
1606 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
1608 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
1609 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
1610 (VDC, Vdbl): Add V4HF.
1612 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1614 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
1615 V4HFmode and V8HFmode.
1616 (aarch64_split_simd_move): Add case for V8HFmode.
1617 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
1618 (aarch64_simd_builtin_std_type): Handle HFmode.
1619 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
1621 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
1622 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
1623 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
1625 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
1628 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
1629 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
1631 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
1632 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
1633 vst1q_lane_f16): New.
1634 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
1635 (VALLDI_F16, VALL_F16): New.
1636 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
1637 Add cases for V4HF and V8HF.
1638 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
1640 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1642 * config/arm/arm-builtins.c (VAR11, VAR12): New.
1643 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
1644 vld4_dup): Add v4hf variant.
1645 (vget_high, vget_low): Add v8hf variant.
1646 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
1647 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
1648 v4hf and v8hf variants.
1650 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
1652 (V_DOUBLE): Add case for V4HF.
1654 (V_HALF): Add case for V8HF.
1655 (VDQX): Add V4HF, V8HF.
1656 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
1657 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
1659 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
1660 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
1661 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
1662 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
1663 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
1664 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
1665 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
1666 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
1667 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
1669 (neon_vcreate, neon_vreinterpretv8qi<mode>,
1670 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1671 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
1672 Change VDX to VD_RE.
1674 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
1675 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
1676 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
1678 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
1679 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
1680 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
1681 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
1682 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
1683 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
1684 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
1685 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
1686 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
1688 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1690 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
1691 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
1692 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
1693 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
1694 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1695 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
1696 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
1697 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
1698 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
1699 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
1702 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1704 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
1706 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
1708 * config/arm/arm-builtins.c (v8hf_UP): New.
1709 (arm_init_simd_builtin_types): Initialise Float16x8_t.
1711 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
1713 * config/arm/arm_neon.h (float16x8_t): New typedef.
1715 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1717 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
1718 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
1719 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
1720 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
1721 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1722 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
1723 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
1724 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
1725 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1726 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
1728 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
1730 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
1731 non-alphanumeric characters in the symbol name.
1733 2015-09-07 Marek Polacek <polacek@redhat.com>
1736 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
1739 2015-09-07 Marek Polacek <polacek@redhat.com>
1741 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
1743 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
1745 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
1748 2015-09-04 Jakub Jelinek <jakub@redhat.com>
1751 * tree-ssa-live.c: Include cfgloop.h.
1752 (remove_unused_locals): Clear loop->simduid if simduid is about
1753 to be removed from cfun->local_decls.
1755 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1758 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
1761 2015-09-04 Tom de Vries <tom@codesourcery.com>
1763 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
1765 2015-09-04 Jeff Law <law@redhat.com>
1767 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
1768 unnecessary constructor. It's now trivial and implemented inside...
1769 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
1770 constructor. Add comments to various methods. Remove unused
1772 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
1773 * tree-vrp.c (identify_jump_threads): Likewise.
1774 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
1776 (thread_across_edge): Similarly.
1777 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
1778 arguments in constructor call.
1780 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
1782 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
1783 temp path contains a '-'.
1785 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1786 Petr Murzin <petr.murzin@intel.com>
1787 Kirill Yukhin <kirill.yukhin@intel.com>
1789 * config/i386/i386-builtin-types.def
1790 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
1791 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
1792 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
1793 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
1794 * config/i386/i386.c
1795 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
1796 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1797 IX86_BUILTIN_SCATTERALTDIV16SI.
1798 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
1799 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
1800 __builtin_ia32_scatteraltdiv8si.
1801 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
1802 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1803 IX86_BUILTIN_SCATTERALTDIV16SI.
1804 (ix86_vectorize_builtin_scatter): New.
1805 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
1806 ix86_vectorize_builtin_scatter.
1808 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
1809 Petr Murzin <petr.murzin@intel.com>
1810 Kirill Yukhin <kirill.yukhin@intel.com>
1812 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
1813 * doc/tm.texi: Regenerate.
1814 * target.def: Add scatter builtin.
1815 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
1816 for loads/stores in case of gather/scatter accordingly.
1817 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1818 (vect_check_gather): Rename to ...
1819 (vect_check_gather_scatter): this.
1820 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
1821 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
1822 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1823 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
1824 and new checkings for it accordingly.
1826 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1827 (vect_check_gather_scatter): Use it instead of vect_check_gather.
1828 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
1830 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
1832 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
1834 (mulv16qi3): New define_expand.
1836 2015-09-03 Martin Sebor <msebor@redhat.com>
1839 * doc/extend.texi (Other Builtins): Document when the address
1840 of a built-in function can be taken.
1842 2015-09-03 Richard Biener <rguenther@suse.de>
1844 * dwarf2out.c (flush_limbo_die_list): Split out from ...
1845 (dwarf2out_early_finish): ... here.
1846 (dwarf2out_finish): Do not call dwarf2out_early_finish but
1847 flush_limbo_die_list. Assert we have no deferred asm names.
1849 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1851 * optabs.c (expand_binop): Don't create a broadcast vector with a
1852 source element wider than the inner mode.
1854 2015-09-03 Richard Biener <rguenther@suse.de>
1856 * varasm.c (output_constant): Use fold_convert instead of
1859 2015-09-03 Tom de Vries <tom@codesourcery.com>
1861 PR tree-optimization/65637
1862 * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
1865 2015-09-03 Tom de Vries <tom@codesourcery.com>
1867 PR tree-optimization/65637
1868 * omp-low.c (find_phi_with_arg_on_edge): New function.
1869 (expand_omp_for_static_chunk): Fix inner loop phi.
1871 2015-09-03 Tom de Vries <tom@codesourcery.com>
1873 PR tree-optimization/65637
1874 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
1877 2015-09-03 Tom de Vries <tom@codesourcery.com>
1879 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
1881 2015-09-03 Tom de Vries <tom@codesourcery.com>
1883 * doc/invoke.texi (parloops-chunk-size): Add item.
1884 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
1885 * tree-parloops.c: Include params.h.
1886 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
1887 param parloops-chunk-size is used.
1889 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1892 * fold-const.c (fold_binary_loc) : Move
1893 Transform (x >> c) << c into x & (-1<<c) or
1894 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
1895 types using simplify and match.
1896 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
1897 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
1899 2015-09-03 Richard Biener <rguenther@suse.de>
1902 * tree-ssa-structalias.c (ctor_for_analysis): New function.
1903 (create_variable_info_for_1): Use ctor_for_analysis instead
1905 (create_variable_info_for): Likewise.
1907 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
1910 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
1911 in new callgraph edge.
1913 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
1918 * config/aarch64/aarch64-simd.md
1919 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
1920 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
1921 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
1922 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
1924 2015-09-02 Alan Modra <amodra@gmail.com>
1926 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
1927 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
1928 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
1930 2015-09-02 Alan Modra <amodra@gmail.com>
1933 * config/rs6000/predicates.md (current_file_function_operand): Don't
1934 return true for weak symbols.
1935 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
1937 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
1938 Andrew Bennett <andrew.bennett@imgtec.com>
1940 * config/mips/mips-opts.h (mips_cb_setting): New enum.
1941 * config/mips/mips-protos.h: Add definitions for
1942 mips_output_jump and mips_output_equal_conditional_branch
1943 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
1945 (mips_emit_compare): Add support for the MIPS R6 conditional
1947 (mips_process_sync_loop): Likewise.
1948 (mips_output_order_conditional_branch): Likewise.
1949 (mips16_build_call_stub): Change MIPS_CALL to
1951 (mips_print_operand_punctuation): Update 's' case to only
1952 apply to micromips r2.
1953 (mips_adjust_insn_length): Add support for forbidden slot
1955 (mips_avoid_hazard): Likewise.
1956 (mips_reorg_process_insns): Likewise.
1957 (mips_output_jump): New function.
1958 (mips_output_equal_conditional_branch): Likewise.
1959 (mips_output_conditional_branch): Use jrc/bc if compact
1960 branch support is enabled. Ensure the forbidden slots
1961 between the two branch instructions is filled with a nop.
1962 (mips_option_override): Add support to process the compact
1963 branch option and set the correct defaults. Prevent
1964 non-explict relocs being using for MIPS R6.
1965 (mips_trampoline_init): Add compact branch support.
1966 (mips_mult_zero_zero_cost): Allow zero initialisation of
1967 accumulators with TARGET_DSP.
1968 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
1969 (TARGET_CB_MAYBE): New define.
1970 (TARGET_CB_ALWAYS): New define.
1971 (ISA_HAS_DELAY_SLOTS): New define.
1972 (ISA_HAS_COMPACT_BRANCHES): New define.
1973 (ISA_HAS_JRC): New define.
1974 (MIPS_BRANCH_C): New define.
1975 (MIPS_CALL): Removed.
1976 (MICROMIPS_J): Removed.
1977 * config/mips/mips.md (compact_form): New attr.
1978 (hazard): Add support for forbidden slots.
1979 (define_delay): Add support for compact branches.
1980 (*branch_order<mode>): Likewise.
1981 (*branch_order<mode>_inverted): Likewise.
1982 (*branch_equality<mode>): Likewise.
1983 (*branch_equality<mode>_inverted): Likewise.
1984 (*jump_absolute): Likewise.
1985 (*jump_pic): Likewise.
1986 (indirect_jump): Use mips_output_jump to produce assembly output.
1987 (tablejump_<mode>"): Likewise.
1988 (*<optab>"): Likewise.
1989 (<optab>_internal): Likewise.
1990 (sibcall_internal): Likewise.
1991 (sibcall_value_internal): Likewise.
1992 (sibcall_value_multiple_internal): Likewise.
1993 (call_internal): Likewise.
1994 (call_split): Likewise.
1995 (call_internal_direct): Likewise.
1996 (call_direct_split): Likewise.
1997 (call_value_internal): Likewise.
1998 (call_value_split): Likewise.
1999 (call_value_internal_direct): Likewise.
2000 (call_value_direct_split): Likewise.
2001 (call_value_multiple_internal): Likewise.
2002 (call_value_multiple_split): Likewise.
2003 (mips_get_fcsr_mips16_<mode>): Likewise.
2004 (mips_set_fcsr_mips16_<mode>): Likewise.
2005 (tls_get_tp_mips16_<mode>): Likewise.
2006 * config/mips/mips.opt: Add -mcompact-branches option.
2007 * config/mips/predicates.md (order_operator): Ensure the
2008 conditional compact branches are only used if the ISA them.
2009 * doc/invoke.texi: Document -mcompact-branches option.
2011 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
2014 * lra-lives.c (process_bb_lives): Process move pseudos with the
2015 same value for copies and preferences
2016 * lra-constraints.c (match_reload): Create match reload pseudo
2017 with the same value from single dying input pseudo.
2019 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2022 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
2024 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
2026 * trans-mem.c: Add contributed-by.
2027 * trans-mem.h: Same.
2029 2015-09-01 Richard Biener <rguenther@suse.de>
2031 * expr.c (expand_expr_real_1): For expanding TERed defs
2032 set the current location to that of the def if not UNKNOWN.
2034 2015-09-01 David Sherwood <david.sherwood@arm.com>
2036 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
2038 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2040 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
2041 then_cost, else_cost fields. Change branch_cost field to unsigned
2043 (end_ifcvt_sequence): Call set_used_flags on each insn in the
2046 (noce_simple_bbs): New function.
2047 (noce_try_move): Bail if basic blocks are not simple.
2048 (noce_try_store_flag): Likewise.
2049 (noce_try_store_flag_constants): Likewise.
2050 (noce_try_addcc): Likewise.
2051 (noce_try_store_flag_mask): Likewise.
2052 (noce_try_cmove): Likewise.
2053 (noce_try_minmax): Likewise.
2054 (noce_try_abs): Likewise.
2055 (noce_try_sign_mask): Likewise.
2056 (noce_try_bitop): Likewise.
2057 (bbs_ok_for_cmove_arith): New function.
2058 (noce_emit_all_but_last): Likewise.
2059 (noce_emit_insn): Likewise.
2060 (noce_emit_bb): Likewise.
2061 (noce_try_cmove_arith): Handle non-simple basic blocks.
2062 (insn_valid_noce_process_p): New function.
2063 (contains_mem_rtx_p): Likewise.
2064 (bb_valid_for_noce_process_p): Likewise.
2065 (noce_process_if_block): Allow non-simple basic blocks
2068 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
2070 * tree-ssa-dom.c (record_equivalences_from_phis,
2071 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
2072 (lookup_avail_expr): Likewise, and remove comment and unused temp.
2074 2015-09-01 Nick Clifton <nickc@redhat.com>
2076 * config/msp430/msp430.opt (mcpu): Fix typo.
2078 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2080 * config/aarch64/aarch64.c (aarch64_set_current_function):
2081 Re-layout any vector parameters have non-simd layout.
2082 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
2084 (aarch64_simd_expand_args): Delete call to the above.
2086 2015-08-31 Mike Frysinger <vapier@gentoo.org>
2088 * doc/invoke.texi (asan-stack): Add space before option.
2090 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2092 * tree.h (zerop): New function.
2093 * tree.c (zerop): Likewise.
2094 (element_precision): Handle expressions.
2095 * match.pd (define_predicates): Add zerop.
2096 (x <= +Inf): Fix comment.
2097 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
2098 * fold-const.c (fold_binary_loc): ... here. Remove.
2100 2015-08-31 Richard Biener <rguenther@suse.de>
2103 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
2105 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2107 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
2108 (CEXPI): New operator list.
2109 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
2110 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
2112 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
2114 2015-08-31 Tom de Vries <tom@codesourcery.com>
2116 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
2117 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
2119 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
2120 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
2121 (rewrite_into_loop_closed_ssa): ... here.
2122 (replace_uses_in_dominated_bbs): Remove function.
2123 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
2124 rewrite_into_loop_closed_ssa_1.
2126 2015-08-31 Michael Matz <matz@suse.de>
2128 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
2129 enter entry and exit blocks for reverse post order.
2131 2015-08-31 Richard Biener <rguenther@suse.de>
2133 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
2134 (lto_location_cache::current_sysp): Likewise.
2135 (output_block::current_sysp): Likewise.
2136 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
2137 (lto_location_cache::apply_location_cache): Properly record
2138 system header locations.
2139 (lto_location_cache::input_location): Input whether a file
2141 * lto-streamer-out.c (lto_output_location): Stream whether a file
2144 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2147 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
2149 2015-08-31 Tom de Vries <tom@codesourcery.com>
2151 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
2152 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
2153 Improve function header comments.
2155 2015-08-30 Michael Collison <michael.collison@linaro.org>
2158 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
2161 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2163 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
2164 special_handling bitfield.
2165 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
2166 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
2167 that represents a general xxpermdi.
2168 (insn_is_swappable_p): Add handling for vec_concat of two
2169 doublewords, which maps to a specific xxpermdi.
2170 (adjust_xxpermdi): New function.
2171 (adjust_concat): Likewise.
2172 (handle_special_swappables): Call adjust_xxpermdi and
2174 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
2176 2015-08-30 Rich Felker <dalias@libc.org>
2178 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
2179 case instead of sh[123456ble]-*-*.
2181 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2183 * ira.c (print_unform_and_important_classes,
2184 print_translated_classes): Remove reg_class_names static array.
2185 (print_unform_and_important_classes): Rename to ...
2186 (print_uniform_and_important_classes): ... this.
2187 (ira_debug_allocno_classes): Update accordingly.
2189 2015-08-29 Tom de Vries <tom@codesourcery.com>
2191 PR tree-optimization/46193
2192 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
2195 2015-08-28 Jeff Law <law@redhat.com>
2198 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2199 unable to find X NE 0 in the tables, return X as the simplified
2201 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2202 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2204 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2205 after removing the control flow statement and unnecessary edges.
2207 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
2210 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2211 PR tree-optimization/67283
2212 * tree-sra.c (type_consists_of_records_p): Rename to...
2213 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2215 (completely_scalarize_record): Rename to...
2216 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
2218 (scalarize_elem): New.
2220 2015-08-28 Jiong Wang <jiong.wang@arm.com>
2222 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
2223 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
2224 (aarch64_symbol_type): Likewise.
2225 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2227 (aarch64_expand_mov_immediate): Likewise.
2228 (aarch64_print_operand): Likewise.
2229 (aarch64_classify_tls_symbol): Likewise.
2231 2015-08-28 Richard Biener <rguenther@suse.de>
2233 * cgraphunit.c (symbol_table::compile): Move early debug generation
2235 (symbol_table::finalize_compilation_unit): ... back here and
2236 add a !seen_error () guard.
2238 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2240 * toplev.c (process_options): Do not use flag_loop_block,
2241 flag_loop_interchange, and flag_loop_strip_mine. Add check for
2242 flag_loop_optimize_isl.
2244 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2246 * Makefile.in (OBJS): Remove graphite-blocking.o and
2247 graphite-interchange.o.
2248 * common.opt (floop-strip-mine, floop-interchange, floop-block):
2249 Alias of floop-nest-optimize.
2250 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
2251 Document as alias of -floop-nest-optimize.
2252 * graphite-blocking.c: Remove.
2253 * graphite-interchange.c: Remove.
2254 * graphite-optimize-isl.c: Include dumpfile.h.
2255 (getScheduleForBand): Add dump for tiled loops. Use
2256 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
2257 * graphite-poly.c (scop_max_loop_depth): Remove.
2258 (print_scattering_function_1): Remove.
2259 (print_scattering_function): Remove.
2260 (print_scattering_functions): Remove.
2261 (debug_scattering_function): Remove.
2262 (debug_scattering_functions): Remove.
2263 (apply_poly_transforms): Remove use of flag_loop_block,
2264 flag_loop_strip_mine, and flag_loop_interchange.
2265 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
2267 (print_pdr_access_layout): Remove.
2268 (print_pdr): Print ISL representation.
2269 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
2270 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2272 (openscop_print_pbb_domain): Remove.
2273 (print_pbb): Remove call to print_scattering_function.
2274 (openscop_print_scop_context): Remove.
2275 (print_scop_context): Do not print matrices anymore.
2276 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
2277 SCOP_TRANSFORMED_SCHEDULE.
2278 (print_isl_set): Add printing of a new line.
2279 (print_isl_map): Same.
2280 (print_isl_aff): Same.
2281 (print_isl_constraint): Same.
2282 (loop_to_lst): Remove.
2283 (scop_to_lst): Remove.
2284 (lst_indent_to): Remove.
2285 (print_lst): Remove.
2286 (debug_lst): Remove.
2287 (dot_lst_1): Remove.
2289 (reverse_loop_at_level): Remove.
2290 (reverse_loop_for_pbbs): Remove.
2291 * graphite-poly.h (pdr_dim_iter_domain): Remove.
2292 (pdr_nb_params): Remove.
2293 (pdr_alias_set_dim): Remove.
2294 (pdr_subscript_dim): Remove.
2295 (pdr_iterator_dim): Remove.
2296 (pdr_parameter_dim): Remove.
2297 (same_pdr_p): Remove.
2298 (struct poly_scattering): Remove.
2299 (struct poly_bb): Remove _original, _transformed, _saved.
2300 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
2301 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
2302 (PBB_NB_LOCAL_VARIABLES): Remove.
2303 (PBB_NB_SCATTERING_TRANSFORM): Remove.
2304 (schedule_to_scattering): Remove.
2305 (number_of_write_pdrs): Remove.
2306 (pbb_dim_iter_domain): Remove.
2307 (pbb_nb_params): Remove.
2308 (pbb_nb_scattering_orig): Remove.
2309 (pbb_nb_scattering_transform): Remove.
2310 (pbb_nb_dynamic_scattering_transform): Remove.
2311 (pbb_nb_local_vars): Remove.
2312 (pbb_iterator_dim): Remove.
2313 (pbb_parameter_dim): Remove.
2314 (psco_scattering_dim): Remove.
2315 (psct_scattering_dim): Remove.
2316 (psct_local_var_dim): Remove.
2317 (psco_iterator_dim): Remove.
2318 (psct_iterator_dim): Remove.
2319 (psco_parameter_dim): Remove.
2320 (psct_parameter_dim): Remove.
2321 (psct_dynamic_dim): Remove.
2322 (psct_static_dim): Remove.
2323 (psct_add_local_variable): Remove.
2324 (new_lst_loop): Remove.
2325 (new_lst_stmt): Remove.
2328 (lst_add_loop_under_loop): Remove.
2329 (lst_depth): Remove.
2330 (lst_dewey_number): Remove.
2331 (lst_dewey_number_at_depth): Remove.
2334 (lst_find_pbb): Remove.
2335 (find_lst_loop): Remove.
2336 (lst_find_first_pbb): Remove.
2337 (lst_empty_p): Remove.
2338 (lst_find_last_pbb): Remove.
2339 (lst_contains_p): Remove.
2340 (lst_contains_pbb): Remove.
2341 (lst_create_nest): Remove.
2342 (lst_remove_from_sequence): Remove.
2343 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
2344 (lst_niter_for_loop): Remove.
2345 (pbb_update_scattering): Remove.
2346 (lst_update_scattering_under): Remove.
2347 (lst_update_scattering): Remove.
2348 (lst_insert_in_sequence): Remove.
2349 (lst_replace): Remove.
2350 (lst_substitute_3): Remove.
2351 (lst_distribute_lst): Remove.
2352 (lst_remove_all_before_including_pbb): Remove.
2353 (lst_remove_all_before_excluding_pbb): Remove.
2354 (struct scop): Remove original_schedule, transformed_schedule, and
2356 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
2357 (SCOP_SAVED_SCHEDULE): Remove.
2358 (poly_scattering_new): Remove.
2359 (poly_scattering_free): Remove.
2360 (poly_scattering_copy): Remove.
2361 (store_scattering_pbb): Remove.
2362 (store_lst_schedule): Remove.
2363 (restore_lst_schedule): Remove.
2364 (store_scattering): Remove.
2365 (restore_scattering_pbb): Remove.
2366 (restore_scattering): Remove.
2367 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2368 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
2369 compute the scattering polyhedron dimension from the dimension of
2371 (build_scop_scattering): Update call to
2372 build_pbb_scattering_polyhedrons.
2373 (build_poly_scop): Remove call to scop_to_lst.
2374 * graphite.c (graphite_transform_loops): Add call to print_scop.
2375 (gate_graphite_transforms): Remove use of flag_loop_block,
2376 flag_loop_interchange, and flag_loop_strip_mine.
2378 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2380 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
2381 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
2382 -floop-nest-optimize.
2383 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
2384 (generate_luj_sepclass): Remove.
2385 (generate_luj_options): Remove.
2386 (set_options): Remove opt_luj.
2387 (scop_to_isl_ast): Remove opt_luj.
2388 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
2389 flag_loop_unroll_jam.
2390 (getPrevectorMap_full): Remove.
2391 (getScheduleForBandList): Remove map_sepcl.
2392 (getScheduleMap): Same.
2393 (apply_schedule_map_to_scop): Remove sepcl.
2394 (optimize_isl): Same.
2395 * graphite-poly.c (apply_poly_transforms): Remove check for
2396 flag_loop_unroll_jam.
2397 (new_poly_bb): Remove map_sepclass.
2398 * graphite-poly.h (struct poly_bb): Same.
2399 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
2400 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
2401 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
2402 * toplev.c (process_options): Remove flag_loop_unroll_jam.
2404 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
2407 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
2409 (UNSPEC_ADD_CARRY): Remove.
2410 (addqi3_cconly_overflow): New expander.
2411 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
2412 Adjust for changed add<mode>3_carry.
2413 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
2414 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
2415 (<plusminus_insn><mode>3_carry): Remove expander.
2416 (*<plusminus_insn><mode>3_carry): Split insn pattern to
2417 add<mode>3_carry and sub<mode>3_carry.
2418 (plusminus_carry_mnemonic): Remove code attribute.
2419 (add<mode>3_carry): Canonicalize insn pattern.
2420 (*addsi3_carry_zext): Ditto.
2421 (sub<mode>3_carry): Ditto.
2422 (*subsi3_carry_zext): Ditto.
2423 (adcx<mode>3): Remove insn pattern.
2424 (addcarry<mode>): New insn pattern.
2425 (subborrow<mode>): Ditto.
2426 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
2427 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
2428 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
2429 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
2430 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
2431 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
2432 Rewrite expander to not clobber carry flag chains.
2434 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
2436 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
2437 instead of a rotate.
2439 2015-08-27 Marek Polacek <polacek@redhat.com>
2442 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
2443 an entry into an irreducible region.
2445 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2447 * configure: Regenerate.
2449 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2451 PR tree-optimization/67283
2452 * tree-sra.c (type_consists_of_records_p): Rename to...
2453 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2455 (completely_scalarize_record): Rename to...
2456 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2457 (scalarize_elem): New.
2459 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2461 * tree-sra.c (completely_scalarize_var): Rename to...
2462 (create_total_scalarization_access): ... Here. Drop call to
2463 completely_scalarize_record.
2465 (analyze_all_variable_accesses): Replace completely_scalarize_var
2466 with create_total_scalarization_access and completely_scalarize_record.
2468 2015-08-27 Alan Modra <amodra@gmail.com>
2471 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
2474 2015-08-27 Richard Biener <rguenther@suse.de>
2476 * passes.c (rest_of_decl_compilation): Guard early_global_decl
2477 call with !seen_error ().
2478 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
2479 early debug generation and finish...
2480 (symbol_table::compile): ... here to put it after a !seen_error ()
2483 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2485 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
2488 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2489 Andre Vieira <andre.simoesdiasvieira@arm.com>
2491 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
2492 (*cb<optab><mode>1): Likewise.
2493 (*tb<optab><mode>1): Likewise.
2494 (*cb<optab><mode>1): Likewise.
2495 * config/aarch64/iterators.md (inv_cb): New code attribute.
2497 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
2498 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
2500 2015-08-27 Richard Biener <rguenther@suse.de>
2502 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
2504 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2506 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
2509 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2511 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
2514 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
2516 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
2517 floating point in VSX registers.
2518 (rs6000_output_move_128bit): Always print out the set insn if we
2519 can't generate an appropriate 128-bit move.
2520 (rs6000_generate_compare): Add support for IEEE 128-bit floating
2521 point in VSX registers comparisons.
2522 (rs6000_expand_float128_convert): Likewise.
2524 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
2525 predicate for only GPR hard registers.
2527 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
2528 modes to iterators. Add new iterators for moving 128-bit values in
2529 scalar FPR registers and VSX registers.
2530 (FMOVE128): Likewise.
2531 (FMOVE128_FPR): Likewise.
2532 (FMOVE128_GPR): Likewise.
2533 (FMOVE128_VSX): Likewise.
2534 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
2539 (RELOAD): Add IEEE 128-bit floating point modes.
2540 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
2541 floating point in VSX registers modes.
2542 (signbit<mode>2, IBM128 iterator): Likewise.
2543 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
2544 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2546 (neg<mode>2, TFIFKF iterator): Likewise.
2547 (negtf2_internal): Likewise.
2549 (abs<mode>2, TFIFKF iterator): Likewise.
2550 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
2551 VSX insn support for negate, absolute value, and negative absolute
2553 (ieee_128bit_vsx_neg<mode>2): Likewise.
2554 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2555 (ieee_128bit_vsx_abs<mode>2): Likewise.
2556 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2557 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2558 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2559 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
2560 floating point in VSX registers.
2561 (unpack<mode>_dm): Likewise.
2562 (unpack<mode>_nodm): Likewise.
2563 (pack<mode>): Likewise.
2564 (unpackv1ti): Likewise.
2565 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
2566 (packv1ti): Likewise.
2567 (pack<mode>, FMOVE128_VSX iterator): Likewise.
2568 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
2570 (extenddftf2_internal): Likewise.
2571 (trunctfdf2): Likewise.
2572 (trunctfdf2_internal2): Likewise.
2573 (fix_trunc_helper): Likewise.
2574 (fix_trunctfdi2"): Likewise.
2575 (floatditf2): Likewise.
2576 (floatuns<mode>tf2): Likewise.
2577 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2578 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2579 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2580 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2581 (float<SDI:mode><IFKF:mode>2): Likewise.
2582 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2584 2015-08-26 Renlin Li <renlin.li@arm.com>
2586 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
2588 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2589 Jiong Wang <jiong.wang@arm.com>
2591 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
2592 (tlsie_tiny_<mode>): New define_insn.
2593 (tlsie_tiny_sidi): Likewise.
2594 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2596 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
2597 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
2599 (aarch64_expand_mov_immediate): Likewise.
2600 (aarch64_print_operand): Likewise.
2601 (arch64_classify_tls_symbol): Likewise.
2603 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2605 * config/arm/arm-arches.def: Replace single value flags with
2606 an initializer built from ARM_FSET_MAKE_CPU1.
2607 * config/arm/arm-cores.def: Likewise.
2608 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
2609 derivation from the ARM_CORE macro definition, use the given value
2611 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
2612 ARM_ARCH macro definition, use the given value instead.
2614 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2616 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
2618 (struct builtin_description): Replace field mask with field
2620 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
2621 (IWMMXT2_BUILTIN): Likewise.
2622 (IWMMXT2_BUILTIN2): Likewise.
2623 (FP_BUILTIN): Likewise.
2624 (CRC32_BUILTIN): Likewise.
2625 (CRYPTO_BUILTIN): Likewise.
2626 (iwmmx_mbuiltin): Likewise.
2627 (iwmmx2_mbuiltin): Likewise.
2628 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
2629 struct builtin_description.
2631 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2633 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
2634 (struct builtin_description): Change type of mask to unsigned
2636 * config/arm/arm-protos.h (insn_flags): Declare as type
2638 (tune_flags): Likewise.
2639 * config/arm/arm.c (feature_count): New.
2640 (insn_flags): Define as type arm_feature_set.
2641 (tune_flags): Likewise.
2642 (struct processors): Define field flags as type arm_feature_set.
2643 (all_cores): Update for change to struct processors.
2644 (all_architectures): Likewise.
2645 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
2647 (arm_option_override_internal): Likewise.
2648 (arm_option_override): Likewise.
2650 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
2651 Jiong Wang <jiong.wang@arm.com>
2653 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
2654 tls size for tiny, small, large memory model.
2655 (aarch64_load_symref_appropriately): Support new symbol types.
2656 (aarch64_expand_mov_immediate): Likewise.
2657 (aarch64_print_operand): Likewise.
2658 (aarch64_classify_tls_symbol): Likewise.
2659 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
2660 (aarch64_symbol_type): Likewise.
2661 * config/aarch64/aarch64.md (tlsle): Deleted.
2662 (tlsle12_<mode>): New define_insn.
2663 (tlsle24_<mode>): Likewise.
2664 (tlsle32_<mode>): Likewise.
2665 (tlsle48_<mode>): Likewise.
2666 * doc/sourcebuild.texi (AArch64-specific attributes): Document
2669 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2671 * config/arm/arm-protos.h (FL_NONE): New.
2673 (arm_feature_set): New.
2674 (ARM_FSET_MAKE): New.
2675 (ARM_FSET_MAKE_CPU1): New.
2676 (ARM_FSET_MAKE_CPU2): New.
2677 (ARM_FSET_CPU1): New.
2678 (ARM_FSET_CPU2): New.
2679 (ARM_FSET_EMPTY): New.
2680 (ARM_FSET_ANY): New.
2681 (ARM_FSET_HAS_CPU1): New.
2682 (ARM_FSET_HAS_CPU2): New.
2683 (ARM_FSET_HAS_CPU): New.
2684 (ARM_FSET_ADD_CPU1): New.
2685 (ARM_FSET_ADD_CPU2): New.
2686 (ARM_FSET_DEL_CPU1): New.
2687 (ARM_FSET_DEL_CPU2): New.
2688 (ARM_FSET_UNION): New.
2689 (ARM_FSET_INTER): New.
2690 (ARM_FSET_XOR): New.
2691 (ARM_FSET_EXCLUDE): New.
2692 (AFM_FSET_IS_EMPTY): New.
2693 (ARM_FSET_CPU_SUBSET): New.
2695 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2697 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
2698 SYMBOL_TLSLE to SYMBOL_TLSLE24.
2699 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2701 (aarch64_expand_mov_immediate): Likewise.
2702 (aarch64_print_operand): Likewise.
2703 (aarch64_classify_symbol): Likewise.
2705 2015-08-26 Jiong Wang <jiong.wang@arm.com>
2707 * config/aarch64/aarch64.opt (mtls-size): New entry.
2708 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
2709 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
2710 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
2712 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
2714 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
2715 ARM_CORE entry. Fix some white-space.
2716 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
2717 ARM_CORE definition.
2719 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2721 * fold-const.c (fold_binary_loc) : Move Optimize
2722 root(x)*root(y) as root(x*y) to match.pd.
2723 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
2724 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
2725 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
2726 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
2727 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
2728 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
2729 (mult (exps:s @0) (exps:s @1)) : New simplifier.
2730 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
2731 (rdiv @0 (exps:s @1)) : New simplifier.
2733 2015-08-25 Joseph Myers <joseph@codesourcery.com>
2735 * gcc.c (driver::finalize): Only assign to extra_specs if
2738 2015-08-25 Marek Polacek <polacek@redhat.com>
2741 * varasm.c (declare_weak): Return after giving an error.
2743 2015-08-25 David Malcolm <dmalcolm@redhat.com>
2745 * gcc-main.c (main): Add params to driver ctor.
2746 * gcc.c (class env_manager): New.
2748 (env_manager::init): New.
2749 (env_manager::get): New.
2750 (env_manager::xput): New.
2751 (env_manager::restore): New.
2752 Poison getenv and putenv.
2753 (DEFAULT_TARGET_SYSTEM_ROOT): New.
2754 (target_system_root): Update initialization to use
2755 DEFAULT_TARGET_SYSTEM_ROOT.
2756 (struct spec_list): Add field "default_ptr".
2757 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
2758 (init_spec): Likewise.
2759 (set_spec): Clear field "default_ptr".
2760 (read_specs): Free "spec" and "buffer".
2761 (xputenv): Reimplement in terms of env_manager.
2762 (process_command): Replace ::getenv calls with calls to the
2763 env_manager singleton.
2764 (process_brace_body): Free string in three places.
2765 (driver::driver): New.
2766 (driver::~driver): New.
2767 (used_arg): Convert from a function to...
2768 (class used_arg_t): ...this class, and...
2769 (used_arg): ...this new global instance.
2770 (used_arg_t::finalize): New function.
2771 (getenv_spec_function): Add "const" to local "value". Replace
2772 ::getenv call with call to the env_manager singleton.
2773 (path_prefix_reset): New function.
2774 (driver::finalize): New function.
2775 * gcc.h (driver::driver): New.
2776 (driver::~driver): New.
2777 (driver::finalize): New.
2779 2015-08-25 Nathan Sidwell <nathan@acm.org>
2781 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
2782 target doesn't have one.
2784 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2787 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
2789 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
2792 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
2793 a define_insn, remove second alternative.
2795 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
2796 Joseph Myers <joseph@codesourcery.com>
2798 * gcc.c (struct switchstr): Expand comment.
2800 2015-08-25 Nathan Sidwell <nathan@acm.org>
2802 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
2803 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
2805 2015-08-25 Richard Biener <rguenther@suse.de>
2808 * genmatch.c (expr::gen_transform): Verify the result of
2809 builtin_decl_implicit.
2810 (dt_simplify::gen_1): Likewise.
2812 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2814 * config/arm/constraints.md: Also list Cs and US ARM-specific
2815 constraints as used.
2817 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
2820 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
2822 (nonpic_symbol_mentioned_p): Likewise.
2823 (sh_delegitimize_address): Likewise.
2824 (sh_function_ok_for_sibcall): Take into account weak symbols.
2825 (sh_expand_sym_label2reg): New.
2826 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
2827 * config/sh/sh.md (UNSPEC_PCREL): New enum.
2828 (call_pcrel): Use sh_expand_sym_label2reg.
2829 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
2830 (symPCREL_label2reg) New expand.
2832 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2834 * graphite-poly.c: Change type of region from void* to sese.
2835 * graphite-poly.h (struct scop): Changing the type of scop::region
2836 from void* to sese. Change accessor macro accordingly.
2837 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
2839 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
2841 * graphite-scop-detection.c (stmt_simple_for_scop_p):
2842 Constrain only on INTEGER_TYPE.
2844 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2847 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
2848 -mefficient-unaligned-vsx on ISA 2.7.
2850 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
2851 option to a masked option.
2853 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
2854 logic for -mefficient-unaligned-vsx so that it is set via an arch
2855 ISA option, instead of being set if -mtune=power8 is set. Move
2856 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
2857 near other default option handling.
2859 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2861 * genflags.c (gen_macro): Delete.
2862 (gen_proto): Don't create GEN.*CALL.* macros.
2863 * gensupport.h (get_file_location): Declare.
2864 * gensupport.c (rtx_locs): New variable.
2865 (read_md_rtx): Record rtx locations.
2866 (get_file_location): New function.
2867 * target-insns.def (call, call_pop, call_value, call_value_pop)
2868 (sibcall, sibcall_value): New patterns.
2869 * gentarget-def.c (parse_argument): New function.
2870 (def_target_insn): Use it. Handle optional operands. Raise an
2871 error if an .md pattern has the wrong number of operands for the
2872 pattern name. Remove the names of unused operands from the prototype.
2873 * builtins.c (expand_builtin_apply): Use targetm functions
2874 instead of HAVE_call_value and GEN_CALL_VALUE.
2875 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
2876 and sibcall_value_pop.
2877 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
2879 * config/alpha/alpha.md (untyped_call): Likewise.
2880 * config/iq2000/iq2000.md (untyped_call): Likewise.
2881 * config/m68k/m68k.md (untyped_call): Likewise.
2882 * config/mips/mips.md (untyped_call): Likewise.
2883 * config/pa/pa.md (untyped_call): Likewise.
2884 * config/rs6000/rs6000.md (untyped_call): Likewise.
2885 * config/sparc/sparc.md (untyped_call): Likewise.
2886 * config/tilegx/tilegx.md (untyped_call): Likewise.
2887 * config/tilepro/tilepro.md (untyped_call): Likewise.
2888 * config/visium/visium.md (untyped_call): Likewise.
2889 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
2890 gen_call_value instead of GEN_CALL_VALUE.
2891 * config/arm/arm.md (untyped_call): Likewise.
2892 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
2895 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2897 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
2898 (have_cbranchcc4): New variable.
2899 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
2900 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
2901 (if_convert): Initialize have_cbranchcc4.
2903 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2905 * builtins.c (expand_cmpstrn): Rename to...
2906 (expand_cmpstrn_or_cmpmem): ...this.
2907 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
2908 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
2909 Remove mode argument.
2910 (expand_builtin): Update accordingly.
2912 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2914 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
2915 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
2916 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
2917 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
2918 Add predicates for operands 0 and 3.
2919 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
2921 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
2922 immediate_operand to nonmemory_operand.
2924 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2926 * df-scan.c (df_insn_info_init_fields): New function, split out
2928 (df_insn_create_insn_record): ...here.
2929 (df_insn_info_free_fields): New function, split out from...
2930 (df_insn_info_delete): ...here.
2931 (df_insn_rescan): Use the new functions instead of freeing and
2932 reallocating the df_insn_info.
2934 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2936 * doc/install.texi (Binaries): Remove links no longer valid.
2938 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
2940 * config/nvptx/mkoffload.c (process): Replace
2941 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
2943 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
2946 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
2948 2015-08-24 Renlin Li <renlin.li@arm.com>
2950 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
2951 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
2952 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
2953 * config/arm/constraints.md ("j"): Add check for high code.
2955 2015-08-24 Tom de Vries <tom@codesourcery.com>
2957 PR tree-optimization/65468
2958 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
2961 2015-08-24 Nathan Sidwell <nathan@acm.org>
2963 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
2964 change to nvptx_type_from_mode call. Use arg_promotion for both
2965 split and non-split args.
2967 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2969 * target-insns.def (movstr): New pattern.
2970 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
2971 (expand_movstr): Use targetm rather than HAVE_movstr/
2974 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2976 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
2979 2015-08-24 Andrew Pinski <apinski@cavium.com>
2981 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
2982 AARCH64_EXTRA_TUNING_OPTION.
2983 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
2984 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
2985 of the argument to AARCH64_EXTRA_TUNING_OPTION.
2986 * config/aarch64/aarch64.c: Remove the last argument to
2987 AARCH64_EXTRA_TUNING_OPTION.
2989 2015-08-23 Nathan Sidwell <nathan@acm.org>
2991 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
2993 (nvptx_declare_function_name): Insert formatting tabs for
2996 2015-08-23 Tom de Vries <tom@codesourcery.com>
2998 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
2999 parm_decl, rather than generating a dummy default def in cfun.
3000 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
3001 ssa_name from cfun and child_fn do not share a stmt as def stmt.
3002 (move_stmt_op): Handle PARM_DECl.
3003 (gather_ssa_name_hash_map_from): New function.
3004 (move_sese_region_to_fn): Add default defs for function params, and add
3005 them to vars_map. Release copied ssa names.
3006 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
3008 2015-08-23 Tom de Vries <tom@codesourcery.com>
3010 * doc/sourcebuild.texi: Rename vect_no_int_max with
3011 vect_no_int_min_max. Update description.
3013 2015-08-22 Andrew Pinski <apinski@cavium.com>
3015 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
3016 * config/aarch64/aarch64-protos.h
3017 (aarch64_fusion_pairs_index): New enum.
3018 (aarch64_fusion_pairs): Base the shifted value on the index instead
3019 Rewrite AARCH64_FUSE_ALL to be based on the end index.
3020 of the argument to AARCH64_FUSION_PAIR.
3021 * config/aarch64/aarch64.c: Remove the last argument to
3022 AARCH64_FUSION_PAIR.
3024 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
3026 * dominance.c (new_zero_array): Define.
3027 (dom_info): Redefine as class with proper encapsulation.
3028 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
3030 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
3031 allocations/deallocations. Pass function as parameter (instead of
3033 (dom_info::get_idom): Define accessor method.
3034 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
3035 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
3036 (calculate_dominance_info): Adjust to use dom_info class.
3037 (verify_dominators): Likewise.
3039 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
3041 * print-rtl.c (print_rtx): Check the correct range for
3042 flag_dump_unnumbered_links to behave as documented.
3044 PR rtl-optimization/67227
3045 PR rtl-optimization/64164
3046 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
3047 (nonoverlapping_memrefs_p): Test offsets and sizes when given
3048 identical gimple_reg exprs.
3050 2015-08-21 Nathan Sidwell <nathan@acm.org>
3052 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
3054 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
3055 crtl->stack_alignment_needed to determine alignment.
3056 (nvptx_get_drap_rtx): New.
3057 (TARGET_GET_DRAP_RTX): Override.
3058 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
3060 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3062 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
3064 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3066 * configure.ac: Remove uwin* cases.
3067 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
3068 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
3069 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
3070 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
3071 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
3072 i[34567]86-*-uwin*, powerpc-*-beos*.
3074 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
3076 * gencodes.c (gencodes): Print the comma for the preceding
3077 enum value rather than the current one. Use aliased enum values
3078 rather than #defines for compiled-out patterns.
3079 (main): Update accordingly. Replace LAST_INSN_CODE with
3081 * lra.c (insn_code_data): Update accordingly.
3082 (finish_insn_code_data_once, get_static_insn_data): Likewise.
3083 * recog.h (target_recog): Likewise.
3084 (preprocess_insn_constraints): Change parameter to unsigned int.
3085 * recog.c (preprocess_insn_constraints): Likewise.
3086 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
3087 * tree-vect-stmts.c (vectorizable_operation): Simplify.
3089 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3091 PR rtl-optimization/61657
3092 * loop-iv.c (iv_number_of_iterations): Declare up and down as
3093 unsigned. Remove superflous uint64_t cast.
3095 2014-08-21 Felix Yang <felix.yang@huawei.com>
3096 Jiji Jiang <jiangjiji@huawei.com>
3098 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
3099 and get builtin function code directly from CALL.
3100 (gimple_stringop_fixed_value): Modified accordingly.
3101 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
3102 accordingly and only accept BUILT_IN_NORMAL string operations.
3104 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
3106 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
3108 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3110 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
3112 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
3113 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
3114 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
3115 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
3116 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
3117 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
3118 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
3119 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
3120 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
3121 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
3123 * match.pd (SIN ) : New Operator.
3124 (TAN) : New Operator.
3125 (mult (SQRT@1 @0) @1) : New simplifier.
3126 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
3127 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3128 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3129 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
3130 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
3131 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
3132 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
3133 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
3134 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
3135 (rdiv @0 (POW:s @1 @2)) : New simplifier.
3137 2015-08-21 Bin Cheng <bin.cheng@arm.com>
3139 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
3140 loop if EXPR is simplified to const value.
3142 2015-08-21 Yury Gribov <y.gribov@samsung.com>
3144 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3145 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
3147 2015-08-21 Richard Biener <rguenther@suse.de>
3150 * gimple-fold.c (replace_stmt_with_simplification): Assert
3151 seq is empty when replacing a call with itself but different
3153 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
3154 a call require that it is const.
3156 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3158 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
3159 * builtins.c (get_object_alignment_2): Adjust.
3160 * varasm.c (align_variable): Likewise.
3161 (get_variable_align): Likewise.
3162 (build_constant_desc): Likewise.
3163 (force_const_mem): Likewise.
3164 * doc/tm.texi.in: Likewise.
3165 * doc/tm.texi: Regenerate.
3167 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3169 * genconfig.c (main): Always define HAVE_cc0.
3170 * recog.c (rest_of_handle_peephole2): Adjust.
3172 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3174 * reorg.c (relax_delay_slots): Don't use #if to check value of
3177 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3179 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
3180 * targhooks.c (default_have_conditional_execution): Adjust.
3182 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3184 * rtl.h (rtvec_all_equal_p): Declare.
3185 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
3186 * rtl.c (rtvec_all_equal_p): New function.
3187 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
3188 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
3189 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
3190 * config/arm/arm.c (neon_vdup_constant): Likewise.
3191 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
3192 * config/tilegx/constraints.md (W, Y): Likewise.
3193 * config/tilepro/constraints.md (W, Y): Likewise.
3194 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
3195 (classify_immediate): Use unwrap_const_vec_duplicate.
3196 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
3197 (reg_or_v2s8bit_operand): Likewise.
3198 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
3199 (reg_or_v4s8bit_operand): Likewise.
3201 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3203 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
3204 (vec_shasigma_be): New #define.
3205 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
3206 (VPMSUMH): Likewise.
3207 (VPMSUMW): Likewise.
3208 (VPMSUMD): Likewise.
3209 (VPMSUM): New BU_P8V_OVERLOAD_2.
3210 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
3211 entries for VEC_MADD and VEC_VPMSUM.
3213 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
3215 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
3216 Multiply argument avr_n_flash by 64 to match unit of "KiB".
3217 (avr_pgm_check_var_decl): Same.
3219 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
3221 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
3222 initialization of HFmode scalar type (float16_t) to...
3223 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
3226 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
3228 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
3229 having an -mfp16-format.
3231 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3233 * config/i386/predicates.md (vector_all_ones_operand): Use
3234 CONSTM1_RTX to simplify definition.
3236 2015-08-20 Richard Biener <rguenther@suse.de>
3238 * toplev.c (compile_file): Remove loop calling late_global_decl
3240 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
3241 on decls we assembled.
3243 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
3245 * common/config/aarch64/aarch64-common.c
3246 (AARCH64_CPU_NAME_LENGTH): Delete.
3247 (aarch64_option_extension): New.
3248 (all_extensions): Likewise.
3249 (processor_name_to_arch): Likewise.
3250 (arch_to_arch_name): Likewise.
3252 (all_architectures): Likewise.
3253 (aarch64_get_extension_string_for_isa_flags): Likewise.
3254 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
3256 * config/aarch64/aarch64-protos.h
3257 (aarch64_get_extension_string_for_isa_flags): New.
3258 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
3259 (aarch64_option_print): Get the string to print from
3260 aarch64_get_extension_string_for_isa_flags.
3261 (aarch64_declare_function_name): Likewise.
3262 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
3263 (MCPU_TO_MARCH_SPEC): This.
3264 (ASM_CPU_SPEC): Use it.
3265 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
3266 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
3267 (EXTRA_SPEC_FUNCTIONS): Use it.
3269 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
3271 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
3272 expansion when !ISA_HAS_LWL_LWR.
3273 (mips_block_move_straight): Update the size of elements copied to
3274 account for alignment when !ISA_HAS_LWL_LWR.
3275 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
3277 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3279 * expr.c (expand_expr_real_2): Check gimple statement during
3282 2015-08-19 Magnus Granberg <zorry@gentoo.org>
3284 * common.opt (fstack-protector): Initialize to -1.
3285 (fstack-protector-all): Likewise.
3286 (fstack-protector-strong): Likewise.
3287 (fstack-protector-explicit): Likewise.
3288 * configure.ac: Add --enable-default-ssp.
3289 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
3290 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
3292 * doc/install.texi: Document --enable-default-ssp.
3293 * config.in: Regenerated.
3294 * configure: Likewise.
3296 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
3298 PR rtl-optimization/64164
3299 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
3300 (parm_in_stack_slot_p): ... this. Disregard mode, what
3301 matters is whether the parm will live in a pseudo or a stack
3303 (expand_one_ssa_partition): Deal with params without a default
3304 def. Disregard mode.
3305 * cfgexpand.h: Renamed function declaration.
3306 * tree-ssa-coalesce.c: Adjust.
3307 * function.c (split_complex_args): Allocate stack slot for
3308 unassigned parms before splitting.
3309 (parm_in_unassigned_mem_p): New. Use it instead of
3310 parm_maybe_byref_p throughout this file.
3311 (assign_parm_setup_block): Use it. Accept pseudos in the
3312 expand-assigned rtl.
3313 (assign_parm_setup_reg): Drop BLKmode requirement.
3314 (assign_parm_setup_stack): Allocate and fill in the address of
3315 unassigned MEM parms.
3317 2015-08-19 David Sherwood <david.sherwood@arm.com>
3319 * genmodes.c (emit_mode_unit_size_inline): New function.
3320 (emit_mode_unit_precision_inline): New function.
3321 (emit_insn_modes_h): Emit new #define. Emit new functions.
3322 (emit_mode_unit_size): New function.
3323 (emit_mode_unit_precision): New function.
3324 (emit_mode_adjustments): Add mode_unit_size adjustments.
3325 (emit_insn_modes_c): Emit new arrays.
3326 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
3327 use new inline methods.
3329 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3331 * config/aarch64/aarch64.c (bit_count): Delete prototype
3333 (aarch64_print_operand): Use popcount_hwi instead of the above.
3335 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3337 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
3340 2015-08-19 Marek Polacek <polacek@redhat.com>
3343 * gimple-ssa-isolate-paths.c
3344 (insert_trap_and_remove_trailing_statements): Rename to ...
3345 (insert_trap): ... this. Don't remove trailing statements; split
3347 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
3349 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
3352 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
3353 conditionalize the whole on __GNUC__. Add fallback code
3354 depending neither on undefined nor implementation-defined behaviour.
3356 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3358 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
3359 whitespaces with tab.
3361 2015-08-19 Florian Weimer <fweimer@redhat.com>
3363 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
3364 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
3365 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
3366 Move Name_Ids instantiation to the Prj.Proc package, to avoid
3369 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3371 * config/arm/arm.c (bounds_check): Use %wd print format
3372 for HOST_WIDE_INT arguments.
3374 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3376 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
3377 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
3378 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
3379 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
3380 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
3381 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
3382 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
3383 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
3384 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
3387 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
3389 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
3390 function.c, graphite-scop-detection.c, haifa-sched.c,
3391 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
3392 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
3393 varasm.c: Remove typedefs of structs.
3395 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3397 * config/rs6000/altivec.h (vec_adde): New define.
3398 (vec_addec): Likewise.
3399 (vec_double): Likewise.
3400 (vec_bperm): Likewise.
3402 * config/rs6000/rs6000-builtin.def (ADDE): New
3403 BU_ALTIVEC_OVERLOAD_3.
3405 (DOUBLE): New BU_VSX_OVERLOAD_1.
3406 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
3407 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
3408 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
3409 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
3410 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
3411 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
3412 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
3413 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
3414 and P8V_BUILTIN_VEC_VBPERMQ.
3416 2015-08-18 Jason Merrill <jason@redhat.com>
3418 * print-tree.c (print_node): Handle TREE_BINFO.
3420 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3423 * builtins.c (expand_builtin_signbit): Add asserts to make sure
3424 we can expand BUILT_IN_SIGNBIT inline.
3425 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
3426 * doc/extend.texi: Document the type-generic __builtin_signbit.
3428 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
3430 PR rtl-optimization/67218
3431 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
3432 (simplify_unary_operation_1): Use it.
3434 2015-08-18 Marek Polacek <polacek@redhat.com>
3437 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
3438 if the call isn't valid.
3439 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
3440 gimple_call_builtin_p.
3441 (call_may_clobber_ref_p_1): Likewise.
3442 (stmt_kills_ref_p): Likewise.
3444 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
3446 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
3447 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
3448 (mips_hard_regno_scratch_ok): Likewise.
3449 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
3450 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
3452 2015-08-18 Bin Cheng <bin.cheng@arm.com>
3454 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
3455 (determine_value_range): Call refine_value_range_using_guard for
3456 each loop initial condition to improve value range.
3458 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
3460 * config/i386/i386.c: Remove include of fibheap.h.
3462 2015-08-17 Richard Biener <rguenther@suse.de>
3464 PR tree-optimization/67221
3465 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
3466 (sccvn_dom_walker::before_dom_children): Mark backedges of
3467 non-executable blocks as not executable.
3469 2015-08-17 David Sherwood <david.sherwood@arm.com>
3471 * config/arm/arm.c (neon_element_bits): Replace call to
3472 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
3473 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
3474 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
3475 (neon_vdup_lane<mode>): Likewise.
3476 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
3477 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
3478 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
3479 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
3480 * config/spu/spu.c (arith_immediate_p): Likewise.
3481 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3482 * expr.c (expand_expr_real_2): Likewise.
3483 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
3484 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3485 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3486 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
3488 * fold-const.c (fold_binary_loc): Replace call to
3489 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
3490 GET_MODE_UNIT_PRECISION (m).
3492 2015-08-17 Mike Stump <mikestump@comcast.net>
3494 * config/arm/arm.c (arm_block_move_unaligned_straight):
3495 Emit normal move instead of unaligned load when source or destination
3496 are appropriately aligned.
3498 2015-08-17 Richard Biener <rguenther@suse.de>
3499 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3502 * match.pd (div (coss (op @0) : New simplifier.
3504 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
3506 PR rtl-optimization/64164
3509 PR rtl-optimization/67000
3512 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3513 * tree-ssa-copyrename.c: Removed.
3514 * opts.c (default_options_table): Drop -ftree-copyrename. Add
3515 -ftree-coalesce-vars.
3516 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3517 * common.opt (ftree-copyrename): Ignore.
3518 (ftree-coalesce-inlined-vars): Likewise.
3519 * doc/invoke.texi: Remove the ignored options above.
3520 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3521 * tree-ssa-coalesce.h: ... here.
3522 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3523 headers required by it.
3524 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3525 across variables when flag_tree_coalesce_vars. Check register
3526 use and promoted modes to allow coalescing. Do not coalesce
3527 maybe-byref parms with SSA_NAMEs of other variables, or
3528 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
3529 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3530 with its member functions to tree-ssa-coalesce.c.
3531 (var_map_base_init): Likewise. Renamed to
3532 compute_samebase_partition_bases.
3533 (partition_view_normal): Drop want_bases parameter.
3534 (partition_view_bitmap): Likewise.
3535 * tree-ssa-live.h: Adjust declarations.
3536 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
3537 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3538 default defs at the entry point.
3539 (dump_part_var_map): New.
3540 (compute_optimized_partition_bases): New, called by...
3541 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3542 of compute_samebase_partition_bases. Adjust.
3543 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3544 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
3545 (ssa_default_def_partition): New.
3546 (get_rtl_for_parm_ssa_default_def): New.
3547 (align_local_variable, add_stack_var): Support anonymous SSA
3549 (defer_stack_allocation): Likewise. Declare earlier.
3550 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3551 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3552 Do no record deferred-allocation marker in
3553 SA.partition_to_pseudo.
3554 (expand_stack_vars): Adjust check for the marker in it.
3555 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
3556 redundant MEM attr setting.
3557 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
3559 (expand_one_stack_var): ... this. New wrapper to check and
3560 skip already expanded SSA partitions.
3561 (record_alignment_for_reg_var): New, factored out of...
3562 (expand_one_var): ... this.
3563 (expand_one_ssa_partition): New.
3564 (adjust_one_expanded_partition_var): New.
3565 (expand_one_register_var): Check and skip already expanded SSA
3567 (expand_used_vars): Don't create DECLs for anonymous SSA
3568 names. Expand all SSA partitions, then adjust all SSA names.
3569 (pass::execute): Replace the loops that set
3570 SA.partition_to_pseudo from partition leaders and cleared
3571 DECL_RTL for multi-location variables, and that which used to
3572 rename vars and set attrs, with one that clears DECL_RTL and
3573 checks that PARMs and RESULTs default_defs match DECL_RTL.
3574 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3575 * emit-rtl.c: Include stor-layout.h.
3576 (set_reg_attrs_for_parm): Handle NULL decl.
3577 (set_reg_attrs_for_decl_rtl): Take mode from expression if
3579 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
3580 rather than its possibly-NULL DECL.
3581 * explow.c (promote_ssa_mode): New.
3582 * explow.h (promote_ssa_mode): Declare.
3583 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3584 (read_complex_part): Export.
3585 * expr.h (read_complex_part): Declare.
3586 * cfgexpand.h (parm_maybe_byref_p): Declare.
3587 * function.c: Include cfgexpand.h.
3588 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3589 (use_register_for_parm_decl): Wrapper for the above to
3590 special-case the result_ptr.
3591 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3592 (split_complex_args): Take assign_parm_data_all argument.
3593 Pass it to rtl_for_parm. Set up rtl and context for split
3594 args. Reset complex parm before fetching its default decl
3596 (assign_parms_unsplit_complex): Use the default-def complex
3597 parm rtl if it matches the components.
3598 (assign_parms_augmented_arg_list): Adjust.
3599 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3600 multiple locations. Recognize split complex args.
3601 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3602 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
3603 (assign_parm_setup_block): Prefer SSA-assigned location, and
3604 fill in its address if the memory location of a maybe-byref
3605 parm was not assigned by cfgexpand.
3606 (assign_parm_setup_reg): Likewise. Adjust its mode as
3607 needed. Use entry_parm for equiv if stack_parm is NULL. Make
3608 sure passed_pointer parms don't need conversion. Copy address
3610 (assign_parm_setup_stack): Prefer SSA-assigned location.
3611 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
3612 rtl before testing for pointer bounds. Special-case result_ptr.
3613 (expand_function_start): Maybe reset DECL_RTL of result.
3614 Prefer SSA-assigned location for result and static chain.
3615 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
3616 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
3617 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3618 anonymous SSA names. Use promote_ssa_mode.
3619 (get_temp_reg): Likewise.
3620 (remove_ssa_form): Adjust.
3621 * stor-layout.c (layout_decl): Don't set mem attributes of
3623 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3624 and get its reg_usage for reg invalidation.
3625 (compute_bb_dataflow): Pass it insn.
3626 (emit_notes_in_bb): Likewise.
3628 2015-08-14 Marek Polacek <polacek@redhat.com>
3630 * tree-core.h (tree_base): Fix typo.
3632 2015-08-14 Marek Polacek <polacek@redhat.com>
3635 * gimple.c (infer_nonnull_range_by_attribute): Check that the
3636 nonnull argument position is not outside function arguments.
3638 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
3641 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
3642 'lconst_atomic' with 'const_atomic'.
3643 (atomic_fetch_<optab><mode>): Likewise.
3644 (atomic_<optab>_fetch<mode>): Likewise.
3645 * config/aarch64/iterators.md (lconst-atomic): Move below
3647 (const_atomic): New.
3649 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
3650 Bernd Schmidt <bernds@codesourcery.com>
3652 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
3654 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
3655 (DWARF2_DEBUGGING_INFO): Don't define.
3656 * debug.h (dwarf2_lineno_debug_hooks): Declare.
3657 * toplev.c (process_options): Add a case for it.
3658 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
3659 (dwarf2out_init): Skip most initializations if
3660 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
3662 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
3663 DWARF2_LINENO_DEBUGGING_INFO.
3664 * opts.c (set_debug_level): Likewise.
3666 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
3668 * config/arm/types.md (is_neon_type): Add missing types.
3670 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
3672 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
3674 * config/i386/i386.c (PTA_SKYLAKE): New macros.
3675 (processor_alias_table): Add skylake description.
3676 (enum processor_model): Add skylake processor.
3677 (arch_names_table): Add skylake record.
3678 * doc/invoke.texi: Add skylake item.
3680 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
3682 * ira-int.h: Include recog.h.
3683 * ira-build.c: Don't include recog.h.
3684 * ira-color.c: Likewise.
3685 * ira-conflicts.c: Likewise.
3686 * ira-costs.c: Likewise.
3687 * ira-emit.c: Likewise.
3688 * ira-lives.c: Likewise.
3690 * sched-deps.c: Likewise.
3691 * sel-sched.c: Likewise.
3692 * target-globals.c: Likewise.
3694 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
3697 * reload1.c (elimination_costs_in_insn): Make it obvious to the
3698 compiler that the n_dups and n_operands loop bounds are invariant.
3700 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3702 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
3703 expressions in A and B.
3705 2015-08-13 Richard Biener <rguenther@suse.de>
3707 * tree.c (nonnull_arg_p): Move from ...
3708 * tree-vrp.c (nonnull_arg_p): ... here.
3709 * tree.h (nonnull_arg_p): Declare.
3710 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
3711 here, register ptr != 0 for nonnull_arg_p pointer arguments.
3712 Properly initialize static chain and by-reference result pointer.
3713 (run_scc_vn): Adjust.
3715 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3717 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
3720 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3722 * config/aarch64/aarch64-protos.h
3723 (aarch64_gen_atomic_cas): Declare.
3724 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
3725 Choose appropriate instruction pattern for the target.
3726 (aarch64_gen_atomic_cas): New.
3727 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
3728 (atomic_compare_and_swap<mode>_1): Rename to
3729 aarch64_compare_and_swap<mode>. Fix some indentation.
3730 (aarch64_compare_and_swap<mode>_lse): New.
3731 (aarch64_atomic_cas<mode>): New.
3733 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
3735 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
3738 2015-08-13 Richard Biener <rguenther@suse.de>
3740 PR tree-optimization/67191
3741 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
3742 assert we value-numbered last stmts operand because it can validly
3743 trigger for unreachable code.
3745 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3747 PR rtl-optimization/67103
3748 * ifcvt.c (noce_try_store_flag_constants): Move
3749 x = (-(test != 0) & (b - a)) + a transformation to...
3750 (noce_try_cmove): ... Here. Try it if normal conditional
3753 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
3755 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
3757 * config/mips/mips.md (processor): Remove w32 and w64.
3759 2015-08-13 Richard Biener <rguenther@suse.de>
3761 PR tree-optimization/66502
3762 PR tree-optimization/67167
3763 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
3765 (vn_phi_lookup): Adjust.
3766 (vn_phi_insert): Likewise.
3767 (visit_phi): Prefer to value-number to another PHI node
3768 over value-numbering to a PHI argument.
3769 (init_scc_vn): Mark DFS back edges.
3771 2015-08-13 Richard Biener <rguenther@suse.de>
3773 * gimple.h (gcall::code_): New constant static member.
3774 (gcond::code_): Likewise.
3775 * gimple.c (gcall::code_): Define.
3776 (gcond::code_): Likewise.
3777 (is_a_helper <const gcond *>): Add.
3778 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
3779 and forward to a new gcall overload with less checking and a
3780 cheaper way to access the operand.
3781 (gimple_call_lhs_ptr): Likewise.
3782 (gimple_call_set_lhs): Likewise.
3783 (gimple_call_internal_p): Likewise.
3784 (gimple_call_with_bounds_p): Likewise.
3785 (gimple_call_set_with_bounds): Likewise.
3786 (gimple_call_internal_fn): Likewise.
3787 (gimple_call_set_ctrl_altering): Likewise.
3788 (gimple_call_ctrl_altering_p): Likewise.
3789 (gimple_call_fntype): Likewise.
3790 (gimple_call_fn): Likewise.
3791 (gimple_call_fn_ptr): Likewise.
3792 (gimple_call_set_fndecl): Likewise.
3793 (gimple_call_fndecl): Likewise.
3794 (gimple_call_chain): Likewise.
3795 (gimple_call_num_args): Likewise.
3796 (gimple_call_arg): Likewise.
3797 (gimple_call_arg_ptr): Likewise.
3798 (gimple_call_set_arg): Likewise.
3799 (gimple_call_noreturn_p): Likewise.
3800 (gimple_cond_code): Likewise.
3801 (gimple_cond_lhs): Likewise.
3802 (gimple_cond_rhs): Likewise.
3803 (gimple_has_lhs): Reduce checking.
3805 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3808 * match.pd (div (mult @0 @1) @1) : New simplifier.
3810 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3813 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
3814 predicate to allow construction of vector constants using the
3815 VSLDOI vector shift instruction.
3817 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
3820 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
3821 the number of bytes to be shifted left and filled in with either
3822 all zero or all one bits.
3823 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
3825 (output_vec_const_move): On power8, generate XXLORC to generate
3826 a vector constant with all 1's. Do a split if we need to use a
3829 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
3830 properly test for the MSB.
3832 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
3833 vector constants that can be created with VSLDOI.
3835 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3838 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3839 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3840 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3841 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3842 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3843 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3844 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3845 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3846 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3848 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
3850 * config/xtensa/constraints.md (define_constraint "Y"): New
3852 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
3853 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3854 * config/xtensa/predicates.md (move_operand): Match constants
3855 and symbols in the presence of TARGET_AUTO_LITPOOLS.
3856 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
3857 immediate references to TLS data.
3858 (xtensa_emit_move_sequence): Don't force constants to memory in
3859 the presence of TARGET_AUTO_LITPOOLS.
3860 (print_operand): Add 'y' format, same as default, but capable of
3861 printing SF mode constants as well.
3862 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
3863 (movsf_internal): Add movi pattern that loads literal.
3864 (movsf, movdf): Don't force constants to memory in the presence
3865 of TARGET_AUTO_LITPOOLS.
3866 (movdf_internal): Add 'Y' constraint.
3867 * config/xtensa/xtensa.opt (mauto-litpools): New option.
3868 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
3870 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3872 * config/arm/arm-fpus.def: Replace booleans with feature flags.
3874 * config/arm/arm.c (ARM_FPU): Update macro.
3875 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
3876 (TARGET_FP16): Likewise.
3877 (TARGET_CRYPTO): Likewise.
3878 (TARGET_NEON): Likewise.
3879 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
3882 2015-08-12 Tom de Vries <tom@codesourcery.com>
3886 * doc/install.texi: Remove --with_host_libstdcxx item. Update
3887 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
3888 accordingly. Mention default for --with-stage1-ldflags.
3890 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
3892 * config/arm/arm.h (arm_fpu_feature_set): New.
3893 (ARM_FPU_FSET_HAS): New.
3897 (FPU_FL_CRYPTO): New.
3899 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3901 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
3902 after -mcmodel=large -fPIC sorry.
3904 2015-08-12 Richard Biener <rguenther@suse.de>
3906 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
3907 comparison operand order and commutative ternary op operand order.
3908 (sccvn_dom_walker::cond_stack): New state to track temporary
3910 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
3912 (sccvn_dom_walker::record_cond): Add a single temporary conditional
3914 (sccvn_dom_walker::record_conds): Add a temporary conditional
3915 expressions and all related expressions also true/false.
3916 (sccvn_dom_walker::before_dom_children): Record temporary
3917 expressions based on the controlling condition of a single
3918 predecessor. When trying to simplify a conditional statement
3919 lookup expressions we might have inserted earlier.
3921 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
3924 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
3925 to ARM core registers.
3927 2015-08-12 Nathan Sidwell <nathan@acm.org>
3929 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
3930 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
3932 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
3934 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
3936 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
3938 2015-08-12 Richard Biener <rguenther@suse.de>
3940 * gimple.h (remove_pointer): New trait.
3941 (GIMPLE_CHECK2): New inline template function.
3942 (gassign::code_): New constant static member.
3943 (is_a_helper<const gassign *>): Add.
3944 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
3945 and forward to a new gassign overload with less checking and a
3946 cheaper way to access the operand.
3947 (gimple_assign_lhs_ptr): Likewise.
3948 (gimple_assign_set_lhs): Likewise.
3949 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
3951 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
3953 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
3955 (gimple_assign_rhs_code): Likewise.
3956 * gimple.c (gassign::code_): Define.
3958 2015-08-12 Richard Biener <rguenther@suse.de>
3960 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3961 Eliminate edges marked as not executable by SCCVN.
3962 * tree-ssa-sccvn.c: Include gimple-iterator.h.
3963 (cond_dom_walker): Rename to sccvn_dom_walker.
3964 (sccvn_dom_walker::before_dom_children): Value-number defs
3966 (run_scc_vn): Remove loop value-numbering all SSA names.
3967 Drop not visited SSA names to varying.
3969 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3971 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3972 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3973 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3974 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3975 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3976 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3977 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3978 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3979 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3981 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
3984 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
3985 to enum feature_priority and feature_list.
3986 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
3987 and isa_names_table.
3989 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
3991 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
3994 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3998 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
3999 account when deciding what was the command-line status.
4001 2015-08-11 Nathan Sidwell <nathan@acm.org>
4003 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
4005 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
4006 we're not the only contributor to target phi.
4008 2015-08-11 Jiong Wang <jiong.wang@arm.com>
4010 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
4013 2015-08-11 Tom de Vries <tom@codesourcery.com>
4015 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
4017 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
4019 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
4021 * config/i386/i386.md (cpu): Remove knl.
4023 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4027 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
4028 open-coded sequence.
4029 * omp-low.c (oacc_process_reduction_data): Remove handline of
4030 GOMP_DEVICE_HOST_NONSHM.
4032 * lto-streamer-in.c (lto_input_mode_table): Adjust to
4033 GET_MODE_INNER changes.
4035 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4036 Ilya Verbin <ilya.verbin@intel.com>
4038 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
4041 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4043 * doc/options.texi (EnabledBy): Document that the argument must be
4045 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
4046 Not enabled by -Wall.
4047 * optc-gen.awk: Give nicer error messages. Detect if the argument
4048 of EnabledBy is not a Common option.
4049 * common.opt (Wnull-dereference): Not enabled by -Wall.
4050 * opt-functions.awk (lang_enabled_by): Nicer error messages.
4052 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
4054 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
4055 model == 0x4f as Broadwell.
4057 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4059 PR rtl-optimization/67028
4060 * combine.c (simplify_comparison): Fix comment. Rearrange code.
4061 Add test to see if a const_int fits in the new mode.
4063 2015-08-07 DJ Delorie <dj@redhat.com>
4065 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
4067 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
4069 PR rtl-optimization/67029
4070 * ira-color.c: Include "recog.h" before including "ira-int.h".
4071 * target-globals.c: Likewise.
4072 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
4073 adds an alternative_mask argument and use it instead of
4074 preferred_alternatives.
4075 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
4076 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
4077 * sched-deps.c: Include "ira-int.h" after including "ira.h".
4078 (sched_analyze_insn): Update call to
4079 ira_implicitly_set_insn_hard_regs.
4080 * sel-sched.c: Include "ira-int.h" after including "ira.h".
4081 (implicit_clobber_conflict_p): Update call to
4082 ira_implicitly_set_insn_hard_regs.
4084 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4086 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
4088 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
4091 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
4092 currently_expanding_to_rtl is set.
4094 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4096 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
4097 * configure: Regenerate.
4099 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4100 Jiong Wang <jiong.wang@arm.com>
4102 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4103 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4104 (REG_CLASS_NAMES): Likewise.
4105 (REG_CLASS_CONTENTS): Likewise.
4106 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4107 (aarch64_register_move_cost): Likewise.
4108 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4110 * config/aarch64/constraints.md (Uc0): New constraint.
4112 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4114 * config/aarch64/constraints.md (Usf): Add the test of
4115 aarch64_is_noplt_call_p.
4117 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4119 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
4121 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
4122 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
4123 (call_symbol): Likewise.
4125 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4127 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
4128 for vectorizing multiplication patterns.
4129 * tree-vectorizer.h: Adjust the number of patterns.
4131 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4133 * config/i386/sse.md (*vec_concatv2df): Declare added
4134 alternatives as sselog type.
4136 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4138 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
4141 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4143 * config/s390/s390.c (s390_expand_tbegin): Expand either
4144 tbegin_1_z13 or tbegin_1 depending on VX flag.
4145 * config/s390/s390.md ("tbegin_1_z13"): New expander.
4147 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4149 * config/s390/s390.opt: Clarify description for -mzvector
4150 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
4153 2015-08-06 Richard Biener <rguenther@suse.de>
4155 * gimple.h (gimple_call_set_fn): Access op member directly.
4156 (gimple_call_chain_ptr): Likewise.
4157 (gimple_call_set_chain): Likewise.
4158 (gimple_cond_lhs_ptr): Likewise.
4159 (gimple_cond_set_lhs): Likewise.
4160 (gimple_cond_rhs_ptr): Likewise.
4161 (gimple_cond_set_rhs): Likewise.
4162 (gimple_cond_true_label): Likewise.
4163 (gimple_cond_set_true_label): Likewise.
4164 (gimple_cond_set_false_label): Likewise.
4165 (gimple_cond_false_label): Likewise.
4166 (gimple_label_label): Likewise.
4167 (gimple_label_set_label): Likewise.
4168 (gimple_goto_set_dest): Likewise.
4169 (gimple_asm_input_op): Likewise.
4170 (gimple_asm_input_op_ptr): Likewise.
4171 (gimple_asm_set_input_op): Likewise.
4172 (gimple_asm_output_op): Likewise.
4173 (gimple_asm_output_op_ptr): Likewise.
4174 (gimple_asm_set_output_op): Likewise.
4175 (gimple_asm_clobber_op): Likewise.
4176 (gimple_asm_set_clobber_op): Likewise.
4177 (gimple_asm_label_op): Likewise.
4178 (gimple_asm_set_label_op): Likewise.
4179 (gimple_switch_index): Likewise.
4180 (gimple_switch_index_ptr): Likewise.
4181 (gimple_return_retval_ptr): Likewise.
4182 (gimple_return_retval): Likewise.
4183 (gimple_return_set_retval): Likewise.
4184 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
4185 (gimple_switch_label): Likewise.
4186 (gimple_switch_set_label): Likewise.
4188 2015-08-06 Richard Biener <rguenther@suse.de>
4190 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
4191 bool comparison canonicalization and restrict to integers.
4193 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
4195 * coretypes.h (enum symbol_visibility): Relocate here.
4196 * flag-types.h (enum symbol_visibility): Remove.
4197 * tree-core.h (enum symbol_visibility): Remove.
4199 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
4202 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
4203 for no_split_stack function attribute along with
4205 (rs6000_expand_split_stack_prologue): Likewise.
4207 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4208 Jeff Law <law@redhat.com>
4211 * doc/invoke.texi (Wnull-dereference): New.
4212 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
4213 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
4214 Warn for potential NULL dereferences.
4215 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
4216 * ubsan.c (instrument_nonnull_arg): Call
4217 infer_nonnull_range_by_attribute.
4218 (instrument_nonnull_return): Likewise.
4219 * common.opt (Wnull-dereference); New.
4220 * gimple.c (infer_nonnull_range): Remove bool arguments.
4221 (infer_nonnull_range_by_dereference): New.
4222 (infer_nonnull_range_by_attribute): New.
4223 * gimple.h: Update declarations.
4225 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4227 * gensupport.c (sequence_num): Replace with...
4228 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
4229 ...these new variables.
4230 (init_rtx_reader_args_cb): Update accordingly.
4231 (get_num_code_insns): Likewise.
4232 (read_md_rtx): Rework to use a while loop and get_c_test.
4233 Use the new counters. Remove redundant DEFINE_SUBST case.
4234 * genoutput.c (gen_split): Delete.
4235 (main): Don't call it.
4237 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4239 * gensupport.h (get_c_test): Declare.
4240 * gensupport.c (get_c_test): New function.
4241 * genconditions.c (main): Use it.
4242 * genrecog.c (validate_pattern): Likewise.
4243 (match_pattern_1): Likewise. Remove c_test argument.
4244 (match_pattern): Update accordingly and remove c_test argument.
4245 (main): Update accordingly.
4247 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4249 * gensupport.h (get_num_insn_codes): Declare.
4250 * gensupport.c (get_num_insn_codes): New function.
4251 * genattrtab.c (optimize_attrs): Rename max_insn_code to
4253 (main): Likewise. Use get_num_insn_codes.
4254 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
4256 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4259 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
4260 is zero- rather than sign-extended.
4262 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4264 * target-insns.def (can_extend): Delete.
4266 2015-08-05 Richard Biener <rguenther@suse.de>
4268 PR tree-optimization/67121
4269 * tree-if-conv.c (combine_blocks): Clear range-info produced
4270 by stmts no longer executed conditionally.
4272 2015-08-05 Nick Clifton <nickc@redhat.com>
4274 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
4275 to allow identical far pointers to remain.
4277 2015-08-05 Richard Biener <rguenther@suse.de>
4280 * match.pd: Compare address bases with == if they are decls
4281 or SSA names, not operand_equal_p. Otherwise fail.
4283 2015-08-05 Richard Biener <rguenther@suse.de>
4285 PR tree-optimization/67055
4286 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
4289 * g++.dg/torture/pr67055.C: New testcase.
4291 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
4293 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
4295 (define_attr "enabled"): Handle avx521vl and noavx512vl.
4296 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
4297 AVX-512 alternative out of SSE.
4298 (define_insn "*vec_concatv2df"): Ditto.
4300 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
4302 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
4303 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
4304 CODE_FOR_avx_ptestv4di.
4305 * config/i386/sse.md (define_mode_iterator V_AVX): New.
4306 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
4307 (define_insn "avx_ptest256"): Merge this ...
4308 (define_insn "sse4_1_ptest"): And this ...
4309 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
4311 2015-08-05 Richard Biener <rguenther@suse.de>
4313 PR tree-optimization/67109
4314 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
4315 against too big groups. Print whether this is a load or store
4316 group. Rename from ...
4317 (vect_analyze_group_access): ... this which is now a wrapper
4318 dissolving an invalid group.
4319 (vect_analyze_data_ref_accesses): Print whether this is a load
4322 2015-08-05 Richard Biener <rguenther@suse.de>
4325 * match.pd: Guard const_binop result checking against NULL_TREE
4328 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
4330 * cse.c (cse_insn): Restoring old behaviour for src_eqv
4331 when dest and value in the REG_EQUAL are same and dest
4334 2015-08-04 Anatoly Sokolov <aesok@post.ru>
4336 * config/moxie/moxie.h (PRINT_OPERAND,
4337 PRINT_OPERAND_ADDRESS): Remove macros.
4338 * config/moxie/moxie-protos.h (moxie_print_operand,
4339 moxie_print_operand_address): Remove declaration.
4340 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
4341 TARGET_PRINT_OPERAND_ADDRESS): Define.
4342 (moxie_print_operand, moxie_print_operand_address): Make static.
4344 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4347 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
4348 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
4350 2015-08-04 Richard Biener <rguenther@suse.de>
4352 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
4354 (dt_operand::gen_gimple_expr): Adjust.
4356 2015-08-04 Richard Biener <rguenther@suse.de>
4358 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
4359 bool compares on RHS.
4360 * match.pd: Add X ==/!= !X is false/true pattern.
4362 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
4364 * config/aarch64/aarch64.c: Change inner loop statement cost
4365 to be consistent with other targets.
4367 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
4369 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
4372 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
4374 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
4375 (machine_function): Remove pseudos field.
4377 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4379 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4380 Exit early and use target_option_current_node if processing current
4383 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4385 * doc/extend.texi (AArch64 Function Attributes): New node.
4386 (AArch64 Pragmas): Likewise.
4388 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4390 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4391 Initialize simd builtins if TARGET_SIMD.
4392 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
4393 Make sure that the builtins are initialized only once no matter how
4394 many times the function is called.
4395 (aarch64_init_builtins): Unconditionally initialize crc builtins.
4396 (aarch64_relayout_simd_param): New function.
4397 (aarch64_simd_expand_args): Use above during argument expansion.
4398 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
4399 simd builtins if TARGET_SIMD.
4400 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
4402 (aarch64_relayout_simd_types): Likewise.
4404 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4406 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
4407 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
4408 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
4409 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4411 (aarch64_reset_previous_fndecl): New function.
4412 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
4414 * config/aarch64/aarch64-c.c: New file.
4415 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
4416 Push and pop options at beginning and end. Remove ifdef
4417 __ARM_FEATURE_CRC32.
4418 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
4419 Add pragma +nothing+simd and +nothing+crypto where appropriate.
4420 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
4421 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
4423 (aarch64_register_pragmas): Likewise.
4424 (aarch64_reset_previous_fndecl): Likewise.
4425 (aarch64_process_target_attr): Likewise.
4426 (aarch64_override_options_internal): Likewise.
4428 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4430 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
4432 (aarch64_can_inline_p): Likewise.
4433 (TARGET_CAN_INLINE_P): Define.
4435 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4437 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4438 Remove static. Handle OPT_mgeneral_regs_only,
4439 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
4440 OPT_momit_leaf_frame_pointer.
4441 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
4442 (aarch64_attr_opt_type): New enum.
4443 (aarch64_attribute_info): New struct.
4444 (aarch64_handle_attr_arch): New function.
4445 (aarch64_handle_attr_cpu): Likewise.
4446 (aarch64_handle_attr_tune): Likewise.
4447 (aarch64_handle_attr_isa_flags): Likewise.
4448 (aarch64_attributes): New table.
4449 (aarch64_process_one_target_attr): New function.
4450 (num_occurences_in_str): Likewise.
4451 (aarch64_process_target_attr): Likewise.
4452 (aarch64_option_valid_attribute_p): Likewise.
4453 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4454 * config/aarch64/aarch64-protos.h: Include input.h
4455 (aarch64_handle_option): Declare prototype.
4457 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4459 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
4460 * config/aarch64/aarch64.c: Include target-globals.h
4461 (aarch64_previous_fndecl): New variable.
4462 (aarch64_set_current_function): New function.
4463 (TARGET_SET_CURRENT_FUNCTION): Define.
4465 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4467 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
4468 (explicit_arch): Likewise.
4469 (x_aarch64_isa_flags): Likewise.
4470 (mgeneral-regs-only): Mark as Save.
4471 (mfix-cortex-a53-835769): Likewise.
4472 (mcmodel=): Likewise.
4473 (mstrict-align): Likewise.
4474 (momit-leaf-frame-pointer): Likewise.
4475 (mtls-dialect): Likewise.
4476 (master=): Likewise.
4477 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
4478 (aarch64_isa_flags): Remove extern declaration.
4479 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
4480 to indicate success or failure.
4481 (aarch64_validate_march): Likewise.
4482 (aarch64_validate_mtune): Likewise.
4483 (aarch64_isa_flags): Delete.
4484 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
4485 instead of aarch64_isa_flags.
4486 (aarch64_get_tune_cpu): New function.
4487 (aarch64_get_arch): Likewise.
4488 (aarch64_override_options): Use above and set up explicit_tune_core
4490 (aarch64_print_extension): Move earlier in file. Add isa_flags
4491 argument and use that instead of the global aarch64_isa_flags.
4492 (aarch64_option_save): New function.
4493 (aarch64_option_restore): Likewise.
4494 (aarch64_option_print): Likewise.
4495 (aarch64_declare_function_name): Likewise.
4496 (aarch64_start_file): Delete.
4497 (TARGET_ASM_FILE_START): Do not define.
4498 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
4499 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
4502 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4504 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
4505 flag_omit_leaf_frame_pointer to 2.
4507 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4509 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
4511 (TARGET_FIX_ERR_A53_835769): New macro.
4512 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4513 handling of opts->x_aarch64_fix_a53_err835769.
4514 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
4515 than aarch64_fix_a53_err835769.
4516 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
4517 * config/aarch64/aarch64-linux.h: Likewise.
4519 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
4521 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
4522 ix86_expand_int_movcc as boolean.
4524 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4526 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
4527 (aarch64_cpu_string): Likewise.
4528 (aarch64_tune_string): Likewise.
4529 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
4530 (aarch64_parse_extension): Return aarch64_parse_opt_result.
4531 Add extra argument to put result into.
4532 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
4533 (aarch64_parse_cpu): Add arguments to put results into. Return
4534 aarch64_parse_opt_result.
4535 (aarch64_parse_tune): Likewise.
4536 (aarch64_override_options_after_change_1): New function.
4537 (aarch64_override_options_internal): New function.
4538 (aarch64_validate_mcpu): Likewise.
4539 (aarch64_validate_march): Likewise.
4540 (aarch64_validate_mtune): Likewise.
4541 (aarch64_override_options): Update to reflect above changes.
4542 Move some logic into aarch64_override_options_internal.
4543 Initialize target_option_default_node and target_option_current_node.
4544 (aarch64_override_options_after_change): Move logic into
4545 aarch64_override_options_after_change_1 and call it with global_options.
4546 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
4547 flag values from that.
4549 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4551 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4552 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
4553 * config/aarch64/aarch64.c (struct processor): Add arch field.
4554 (all_architectures): Handle above, move above all_cores.
4555 (all_cores): Handle above.
4556 (aarch64_parse_arch): Handle above changes.
4557 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
4558 above. Update comments.
4559 (armv8.1-a): Likewise.
4560 * config/aarch64/aarch64-cores.def: Update according to above.
4561 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
4562 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
4563 aarch64_arch_driver_info.
4565 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4567 * config/aarch64/aarch64.c (struct processor): Add ident field.
4568 Rename core sched_core.
4569 (all_cores): Handle above changes.
4570 (all_architectures): Likewise.
4571 (aarch64_parse_arch): Likewise.
4572 (aarch64_override_options): Likewise.
4574 2015-08-04 Richard Biener <rguenther@suse.de>
4576 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
4577 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
4578 comparisons embedded in [VEC_]COND_EXPRs.
4580 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
4582 * tree-if-conv.c: Fix various typos in comments.
4583 * tree-vect-stmts.c: Likewise.
4585 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4587 PR tree-optimization/67043
4588 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
4589 preheader after hoisting invariant in it.
4590 (find_defs): Force recomputation of all luids.
4592 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
4594 * config/rs6000/htm.md (tabort.): Restrict the source operand to
4595 using a base register.
4597 2015-08-03 David Malcolm <dmalcolm@redhat.com>
4599 * main.c (main): Pass in NULL for toplev's external_timer.
4600 * timevar.c: Include coretypes.h.
4601 (class timer::named_items): New.
4602 (timer::named_items::named_items): New.
4603 (timer::named_items::~named_items): New.
4604 (timer::named_items::push): New.
4605 (timer::named_items::pop): New.
4606 (timer::named_items::print): New.
4607 (timer::timer): Initialize field "m_jit_client_items".
4608 (timer::~timer): New.
4609 (timer::push): Move bulk of implementation to...
4610 (timer::push_internal): ...here. New function.
4611 (timer::pop): Move bulk of implementation to...
4612 (timer::pop_internal): ...here. New function.
4613 (timer::push_client_item): New.
4614 (timer::pop_client_item): New.
4615 (timer::print_row): New function, taken from timer::print.
4616 (timer::print): Print "GCC items" header if we also have client
4617 items. Move row-printing to timer::print_row. Print any client
4619 (timer::get_topmost_item_name): New method.
4620 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
4621 (TV_JIT_CLIENT_CODE): New.
4622 * timevar.h (timer::push_client_item): New declaration.
4623 (timer::pop_client_item): New declaration.
4624 (timer::get_topmost_item_name): New method.
4625 (timer::push_internal): New declaration.
4626 (timer::pop_internal): New declaration.
4627 (timer::print_row): New declaration.
4628 (timer::named_items): New declaration.
4629 (timer::m_jit_client_items): New field.
4630 (timer): Add friend class named_items.
4631 (auto_timevar::auto_timevar): Add timer param.
4632 (auto_timevar::~auto_timevar): Use field "m_timer".
4633 (auto_timevar::m_timer): New field.
4634 * toplev.c (initialize_rtl): Add g_timer as param when
4635 constructing auto_timevar instance.
4636 (toplev::toplev): Add "external_timer" param, and use it to
4637 initialize the "g_timer" global if non-NULL.
4638 (toplev::~toplev): If this created "g_timer", delete it.
4639 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
4640 with "external_timer" timer *.
4642 2015-08-03 Alexander Basov <coohpt@gmail.com>
4647 * cfgexpand.c (expand_one_var): Add check if stack is going to
4648 be used in naked function.
4649 * expr.c (expand_expr_addr_expr_1): Remove excess checking
4650 whether expression should not reside in MEM.
4651 * function.c (use_register_for_decl): Do not use registers for
4652 non-register things (volatile, float, BLKMode) in naked functions.
4654 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
4657 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
4658 Adjust splits to match new pattern.
4660 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4662 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
4665 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
4666 point in VSX registers.
4668 * config/rs6000/constraints.md (wb constraint): Document unused
4670 (we constraint): Likewise.
4671 (wo constraint): Likewise.
4672 (wp constraint): New constraint for IEEE 128-bit floating point in
4674 (wq constraint): Likewise.
4676 * config/rs6000/predicates.md (easy_fp_constant): Add support for
4677 IEEE 128-bit floating point in VSX registers.
4678 (easy_scalar_constant): Likewise.
4680 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
4681 constraints (wp, wq) for IEEE 128-bit floating point in VSX
4683 (rs6000_init_hard_regno_mode_ok): Likewise.
4685 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
4686 floating point in VSX registers.
4695 (vsx_le_permute_<mode>): Add support to properly swap bytes for
4696 IEEE 128-bit floating point in VSX registers on little endian.
4697 (vsx_le_undo_permute_<mode>): Likewise.
4698 (vsx_le_perm_load_<mode>): Likewise.
4699 (vsx_le_perm_store_<mode>): Likewise.
4700 (splitters for IEEE 128-bit fp moves): Likewise.
4702 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
4705 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
4706 floating point in VSX registers.
4709 * doc/md.text (Machine Constraints): Document wp and wq
4710 constraints on PowerPC.
4712 2015-08-03 Jeff Law <law@redhat.com>
4715 PR gcov-profile/66899
4716 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
4717 iterate over the jump threading paths when an element in the
4718 jump threading paths array is eliminated.
4720 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
4722 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
4724 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
4726 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
4727 is_use_properly_guarded the variable def_preds. Free its
4728 contents before returning.
4729 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
4730 (is_use_properly_guarded): Replace local variable def_preds with
4731 a parameter. Adjust accordingly. Only update *def_preds if it's
4734 2015-08-03 Richard Biener <rguenther@suse.de>
4736 * genmatch.c (simplify::for_subst_vec): New member.
4737 (binary_ok): New helper for for lowering.
4738 (lower_for): Delay substituting operators into result expressions
4739 if we can merge the results eventually again.
4740 (capture_info::walk_result): Adjust for user_id appearing as
4741 result expression operator.
4742 (expr::gen_transform): Likewise.
4743 (dt_simplify::gen_1): Likewise.
4744 (dt_simplify::gen): Pass not substituted operators to tail
4745 functions or initialize local variable with it.
4746 (decision_tree::gen): Adjust function signature.
4747 * match.pd: Fix tests against global code and add default
4748 cases to switch stmts.
4750 2015-08-03 Richard Biener <rguenther@suse.de>
4752 * genmatch.c (dt_simplify::gen): Create captures array
4753 with an initializer.
4755 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4757 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
4758 the host compiler is affected by placement new aliasing bug.
4759 * configure: Regenerate.
4760 * Makefile.in (ALIASING_FLAGS): New variable.
4761 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
4763 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4766 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
4767 (negmulsf3_vfp): Likewise.
4768 (muldf3negdf_vfp): Disable for -frounding-math.
4769 (mulsf3negsf_vfp): Likewise.
4770 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
4771 fix MULT cost with -frounding-math.
4773 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4775 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
4776 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
4777 explicit. Prefer to add the flag whenever possible.
4778 (noce_process_if_block): Try noce_try_store_flag_constants before
4781 2015-08-03 Richard Biener <rguenther@suse.de>
4783 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
4784 New hash-map to record equivalent transforms.
4785 (dt_node::analyze): Populate the equivalent transforms hash-map.
4786 (dt_simplify::info): Add reference to hash-map entry.
4787 (dt_simplify::gen): If we have split out a function for the
4788 transform, generate a call to it.
4789 (sinfo_hashmap_traits::hash): New function.
4790 (compare_op): New helper function for ...
4791 (sinfo_hashmap_traits::equal_keys): ... this new function.
4792 (decision_tree::gen): Split out common equivalent transforms
4795 2015-08-03 Richard Biener <rguenther@suse.de>
4797 * gimple-fold.c (fold_gimple_assign): Remove folding of
4798 the comparison in COND_EXPRs.
4800 2015-08-03 Richard Biener <rguenther@suse.de>
4802 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
4803 on the rhs of assignments first simplify the embedded
4806 2015-08-03 Richard Biener <rguenther@suse.de>
4808 PR tree-optimization/66917
4809 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
4811 (DR_VECT_AUX): New macro.
4812 (set_dr_misalignment): Adjust.
4813 (dr_misalignment): Likewise.
4814 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4815 Compute whether the base is at least element aligned.
4816 * tree-vect-stmts.c (ensure_base_align): Adjust.
4817 (vectorizable_store): If the base is not element aligned
4818 preserve alignment of the original access if misalignment is unknown.
4819 (vectorizable_load): Likewise.
4821 2015-08-02 Martin Sebor <msebor@redhat.com>
4823 * c-family/c.opt (-Wframe-address): New warning option.
4824 * doc/invoke.texi (Wframe-address): Document it.
4825 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
4826 Clarify possible effects of calling the functions with non-zero
4827 arguments and mention -Wframe-address.
4828 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
4830 2015-08-01 Michael Collison <michael.collison@linaro.org
4831 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4833 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
4834 (*arm_umin_cmp): Likewise.
4836 2015-08-01 Caroline Tice <cmtice@google.com>
4839 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
4841 (vtbl_find_mangled_name): New function.
4842 (vtbl_register_mangled_name): New function.
4843 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
4844 mangled name in mangled name vectors.
4845 (find_or_create_vtbl_map_node): Ditto.
4846 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
4847 update recursion_depth on function entry; pass it to every recursive
4848 call; automatically exit if depth > 25 (give up looking at that point).
4849 (verify_bb_vtables): Initialize recursion_depth and pass it to
4850 var_is_used_for_virtual_call_p.
4851 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
4852 global variable decls.
4853 (vtbl_register_mangled_name): New extern function decl.
4855 2015-08-01 Tom de Vries <tom@codesourcery.com>
4857 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
4859 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
4861 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
4862 operation_no_trapping_overflow. Allow non-overflow operations.
4863 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
4866 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4869 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
4871 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4873 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
4874 Enable for TARGET_32BIT.
4875 (*if_move_neg): Likewise.
4877 2015-07-31 Nick Clifton <nickc@redhat.com>
4879 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
4880 Returns true for __model__.
4881 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4883 2015-07-31 Alan Modra <amodra@gmail.com>
4886 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
4887 (rs6000_emit_prologue): Set it.
4888 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
4890 2015-07-31 Richard Biener <rguenther@suse.de>
4892 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
4893 -> X == (C1 ^ C2) which is already implemented in match.pd.
4894 Remove redundant dispatching to fold_relational_const.
4895 Move unordered self and NaN compares ...
4896 * match.pd: ... as patterns here. Remove some stray captures
4899 2015-07-31 Petr Murzin <petr.murzin@intel.com>
4901 * config/i386/i386.c
4902 (bdesc_special_args): Convert mask type from signed to unsigned for
4904 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
4905 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
4906 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
4907 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
4908 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
4909 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
4910 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
4911 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
4912 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
4913 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
4914 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
4915 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
4916 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
4917 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
4918 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
4919 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
4920 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
4921 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
4922 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
4923 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
4924 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
4925 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
4926 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
4927 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
4928 * config/i386/i386-builtin-types.def
4929 (V16QI_FTYPE_V16SI): Remove.
4930 (V8DF_FTYPE_V8SI): Ditto.
4931 (V8HI_FTYPE_V8DI): Ditto.
4932 (V8SI_FTYPE_V8DI): Ditto.
4933 (V8SF_FTYPE_V8DF): Ditto.
4934 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
4935 (V16HI_FTYPE_V16SI): Ditto.
4936 (V16SF_FTYPE_V16HI): Ditto.
4937 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
4938 (V16SF_FTYPE_V16SI): Ditto.
4939 (V4DI_FTYPE_V4DI): Ditto.
4940 (V16SI_FTYPE_V16SF): Ditto.
4941 (V16SF_FTYPE_FLOAT): Ditto.
4942 (V8DF_FTYPE_DOUBLE): Ditto.
4943 (V8DI_FTYPE_INT64): Ditto.
4944 (V8DI_FTYPE_V4DI): Ditto.
4945 (V16QI_FTYPE_V8DI): Ditto.
4946 (UINT_FTYPE_V4SF): Ditto.
4947 (UINT64_FTYPE_V4SF): Ditto.
4948 (UINT_FTYPE_V2DF): Ditto.
4949 (UINT64_FTYPE_V2DF): Ditto.
4950 (V16SI_FTYPE_V16SI): Ditto.
4951 (V8DI_FTYPE_V8DI): Ditto.
4952 (V16SI_FTYPE_PV4SI): Ditto.
4953 (V16SF_FTYPE_PV4SF): Ditto.
4954 (V8DI_FTYPE_PV2DI): Ditto.
4955 (V8DF_FTYPE_PV2DF): Ditto.
4956 (V4DI_FTYPE_PV2DI): Ditto.
4957 (V4DF_FTYPE_PV2DF): Ditto.
4958 (V16SI_FTYPE_PV2SI): Ditto.
4959 (V16SF_FTYPE_PV2SF): Ditto.
4960 (V8DI_FTYPE_PV4DI): Ditto.
4961 (V8DF_FTYPE_PV4DF): Ditto.
4962 (V8SF_FTYPE_FLOAT): Ditto.
4963 (V4SF_FTYPE_FLOAT): Ditto.
4964 (V4DF_FTYPE_DOUBLE): Ditto.
4965 (V8SF_FTYPE_PV4SF): Ditto.
4966 (V8SI_FTYPE_PV4SI): Ditto.
4967 (V4SI_FTYPE_PV2SI): Ditto.
4968 (V8SF_FTYPE_PV2SF): Ditto.
4969 (V8SI_FTYPE_PV2SI): Ditto.
4970 (V16SF_FTYPE_PV8SF): Ditto.
4971 (V16SI_FTYPE_PV8SI): Ditto.
4972 (V8DI_FTYPE_V8SF): Ditto.
4973 (V4DI_FTYPE_V4SF): Ditto.
4974 (V2DI_FTYPE_V4SF): Ditto.
4975 (V64QI_FTYPE_QI): Ditto.
4976 (V32HI_FTYPE_HI): Ditto.
4977 (V8UHI_FTYPE_V8UHI): Ditto.
4978 (V16UHI_FTYPE_V16UHI): Ditto.
4979 (V32UHI_FTYPE_V32UHI): Ditto.
4980 (V2UDI_FTYPE_V2UDI): Ditto.
4981 (V4UDI_FTYPE_V4UDI): Ditto.
4982 (V8UDI_FTYPE_V8UDI): Ditto.
4983 (V4USI_FTYPE_V4USI): Ditto.
4984 (V8USI_FTYPE_V8USI): Ditto.
4985 (V16USI_FTYPE_V16USI): Ditto.
4986 (V2DF_FTYPE_V2DF_UINT64): Ditto.
4987 (V2DI_FTYPE_V2DF_V2DF): Ditto.
4988 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
4989 (V8DF_FTYPE_V8DF_V8DI): Ditto.
4990 (V4SF_FTYPE_V4SF_UINT64): Ditto.
4991 (V4SI_FTYPE_V4SF_V4SF): Ditto.
4992 (V16SF_FTYPE_V16SF_V16SI): Ditto.
4993 (V64QI_FTYPE_V32HI_V32HI): Ditto.
4994 (V32HI_FTYPE_V16SI_V16SI): Ditto.
4995 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
4996 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
4997 (V32HI_FTYPE_V64QI_V64QI): Ditto.
4998 (V32HI_FTYPE_V32HI_V32HI): Ditto.
4999 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
5000 (V16SI_FTYPE_V16SI_V4SI): Ditto.
5001 (V16SI_FTYPE_V16SI_V16SI): Ditto.
5002 (V16SI_FTYPE_V32HI_V32HI): Ditto.
5003 (V16SI_FTYPE_V16SI_SI): Ditto.
5004 (V8DI_FTYPE_V8DI_V8DI): Ditto.
5005 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
5006 (V8DI_FTYPE_V16SI_V16SI): Ditto.
5007 (V8DI_FTYPE_V8DI_V2DI): Ditto.
5008 (QI_FTYPE_QI): Ditto.
5009 (SI_FTYPE_SI): Ditto.
5010 (DI_FTYPE_DI): Ditto.
5011 (QI_FTYPE_QI_QI): Ditto.
5012 (QI_FTYPE_QI_INT): Ditto.
5013 (HI_FTYPE_HI_INT): Ditto.
5014 (SI_FTYPE_SI_INT): Ditto.
5015 (DI_FTYPE_DI_INT): Ditto.
5016 (HI_FTYPE_V16QI_V16QI): Ditto.
5017 (SI_FTYPE_V32QI_V32QI): Ditto.
5018 (DI_FTYPE_V64QI_V64QI): Ditto.
5019 (QI_FTYPE_V8HI_V8HI): Ditto.
5020 (HI_FTYPE_V16HI_V16HI): Ditto.
5021 (SI_FTYPE_V32HI_V32HI): Ditto.
5022 (QI_FTYPE_V4SI_V4SI): Ditto.
5023 (QI_FTYPE_V8SI_V8SI): Ditto.
5024 (QI_FTYPE_V2DI_V2DI): Ditto.
5025 (QI_FTYPE_V4DI_V4DI): Ditto.
5026 (QI_FTYPE_V8DI_V8DI): Ditto.
5027 (HI_FTYPE_V16SI_V16SI): Ditto.
5028 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
5029 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
5030 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
5031 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
5032 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
5033 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
5034 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
5035 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
5036 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
5037 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
5038 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
5039 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
5040 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
5041 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
5042 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
5043 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
5044 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
5045 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
5046 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
5047 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
5048 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
5049 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
5050 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
5051 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
5052 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
5053 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
5054 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
5055 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
5056 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
5057 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
5058 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
5059 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
5060 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
5061 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
5062 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
5063 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
5064 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
5065 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
5066 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
5067 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
5068 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
5069 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
5070 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
5071 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
5072 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
5073 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
5074 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
5075 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
5076 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
5077 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
5078 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
5079 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
5080 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
5081 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
5082 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
5083 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
5084 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
5085 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
5086 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
5087 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
5088 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
5089 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
5090 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
5091 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
5092 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
5093 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
5094 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
5095 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
5096 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
5097 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
5098 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
5099 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
5100 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
5101 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
5102 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
5103 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
5104 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
5105 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
5106 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
5107 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
5108 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
5109 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
5110 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
5111 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
5112 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
5113 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
5114 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
5115 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5116 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5117 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5118 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
5119 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5120 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
5121 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
5122 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5123 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5124 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5125 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5126 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
5127 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
5128 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
5129 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5130 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5131 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5132 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5133 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
5134 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
5135 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
5136 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
5137 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5138 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5139 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5140 (HI_FTYPE_HI): Ditto.
5141 (HI_FTYPE_V16QI): Ditto.
5142 (SI_FTYPE_V32QI): Ditto.
5143 (DI_FTYPE_V64QI): Ditto.
5144 (QI_FTYPE_V8HI): Ditto.
5145 (HI_FTYPE_V16HI): Ditto.
5146 (SI_FTYPE_V32HI): Ditto.
5147 (QI_FTYPE_V4SI): Ditto.
5148 (QI_FTYPE_V8SI): Ditto.
5149 (HI_FTYPE_V16SI): Ditto.
5150 (QI_FTYPE_V2DI): Ditto.
5151 (QI_FTYPE_V4DI): Ditto.
5152 (QI_FTYPE_V8DI): Ditto.
5153 (V16QI_FTYPE_HI): Ditto.
5154 (V32QI_FTYPE_SI): Ditto.
5155 (V64QI_FTYPE_DI): Ditto.
5156 (V8HI_FTYPE_QI): Ditto.
5157 (V16HI_FTYPE_HI): Ditto.
5158 (V32HI_FTYPE_SI): Ditto.
5159 (V4SI_FTYPE_QI): Ditto.
5160 (V4SI_FTYPE_HI): Ditto.
5161 (V8SI_FTYPE_QI): Ditto.
5162 (V8SI_FTYPE_HI): Ditto.
5163 (V2DI_FTYPE_QI): Ditto.
5164 (V4DI_FTYPE_QI): Ditto.
5165 (HI_FTYPE_HI_HI): Ditto.
5166 (SI_FTYPE_SI_SI): Ditto.
5167 (DI_FTYPE_DI_DI): Ditto.
5168 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5169 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5170 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5171 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5172 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5173 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5174 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5175 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5176 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5177 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5178 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5179 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5180 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5181 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5182 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5183 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5184 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5185 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5186 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5187 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5188 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
5189 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
5190 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
5191 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
5192 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
5193 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
5194 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
5195 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
5196 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
5197 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
5198 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
5199 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
5200 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
5201 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
5202 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
5203 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
5204 (V16SI_FTYPE_HI): Ditto.
5205 (V8DI_FTYPE_QI): Ditto.
5206 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5207 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5208 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5209 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5210 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5211 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5212 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5213 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5214 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5215 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5216 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5217 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5218 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5219 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5220 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5221 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
5222 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
5223 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5224 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5225 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5226 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5227 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5228 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5229 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5230 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5231 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
5232 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
5233 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
5234 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5235 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5236 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5237 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5238 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5239 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
5240 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
5241 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
5242 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5243 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
5244 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
5245 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
5246 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
5247 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
5248 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
5249 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
5250 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
5251 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
5252 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
5253 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
5254 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5255 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5256 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5257 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5258 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
5259 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5260 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5261 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5262 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5263 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5264 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5265 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5266 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5267 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5268 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5269 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5270 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5271 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
5272 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
5273 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
5274 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5275 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
5276 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
5277 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
5278 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
5279 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
5280 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
5281 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
5282 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
5283 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
5284 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
5285 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
5286 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
5287 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
5288 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
5289 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
5290 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
5291 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
5292 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
5293 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
5294 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
5295 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
5296 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
5297 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
5298 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
5299 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
5300 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
5301 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
5302 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
5303 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
5304 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
5305 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
5306 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
5307 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
5308 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
5309 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
5310 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
5311 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
5312 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
5313 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
5314 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
5315 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
5316 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
5317 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
5318 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
5319 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
5320 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
5321 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
5322 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
5323 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
5324 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
5325 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
5326 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
5327 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
5328 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
5329 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
5330 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
5331 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
5332 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
5333 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
5334 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
5335 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
5336 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
5337 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
5338 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
5339 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
5340 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
5341 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
5342 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
5343 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
5344 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
5345 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
5346 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
5347 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
5348 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
5349 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
5350 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
5351 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
5352 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
5353 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
5354 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
5355 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
5356 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
5357 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
5358 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
5359 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
5360 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
5361 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
5362 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
5363 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
5364 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
5365 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
5366 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
5367 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
5368 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
5369 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
5370 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
5371 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
5372 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
5373 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
5374 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
5375 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
5376 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
5377 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
5378 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
5379 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
5380 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
5381 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
5382 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
5383 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
5384 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
5385 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
5386 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
5387 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
5388 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
5389 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
5390 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
5391 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
5392 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
5393 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
5394 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
5395 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
5396 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
5397 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
5398 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
5399 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
5400 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
5401 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
5402 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
5403 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
5404 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
5405 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
5406 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
5407 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
5408 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
5409 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
5410 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
5411 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
5412 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
5413 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
5414 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
5415 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
5416 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
5417 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
5418 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
5419 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
5420 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
5421 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
5422 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
5423 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
5424 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
5425 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
5426 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
5427 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
5428 (QI_FTYPE_V8DF_INT_QI): Ditto.
5429 (QI_FTYPE_V4DF_INT_QI): Ditto.
5430 (QI_FTYPE_V2DF_INT_QI): Ditto.
5431 (HI_FTYPE_V16SF_INT_HI): Ditto.
5432 (QI_FTYPE_V8SF_INT_QI): Ditto.
5433 (QI_FTYPE_V4SF_INT_QI): Ditto.
5434 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
5436 2015-07-31 Richard Biener <rguenther@suse.de>
5438 * gimple-fold.c (fold_gimple_assign): Remove folding of
5441 2015-07-31 Tom de Vries <tom@codesourcery.com>
5443 PR tree-optimization/66846
5444 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5445 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
5446 (expand_omp_target) [ENABLE_CHECKING]: Same.
5447 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
5448 cfun if !LOOPS_NEED_FIXUP.
5449 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
5450 that omp_for already has its own loop struct.
5451 * tree-parloops.c (create_phi_for_local_result)
5452 (create_call_for_reduction): Handle simple latch bb.
5453 (create_parallel_loop): Add simple latch bb to preserve
5454 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
5455 (gen_parallel_loop): Remove call to cancel_loop_tree.
5456 (parallelize_loops): Skip loops that are inner loops of parallelized
5458 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
5459 verify_loop_structure.
5461 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5463 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
5464 * config/v850/v850.md (RV_REGNUM): New constants.
5465 * config/v850/v850.c (v850_libcall_value): New functions.
5466 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
5467 (TARGET_LIBCALL_VALUE): Define.
5469 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5471 * rtl.h (lowpart_subreg): Move in file.
5472 * loop-iv.c (lowpart_subreg): Move to...
5473 * simplify-rtx.c (lowpart_subreg): ...here.
5474 (simplify_binary_operation_1): Use lowpart_subreg instead of
5475 simplify_gen_subreg.
5476 * expr.c (expand_expr_real_2): Ditto.
5477 * emit-rtl.c (gen_lowpart_common): Ditto.
5478 * combine.c (gen_lowpart_for_combine): Ditto.
5479 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
5480 expand_debug_source_expr): Ditto.
5482 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
5484 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
5485 (expand_builtin_atomic_clear): Remove support for atomic_clear
5488 2015-07-30 Richard Biener <rguenther@suse.de>
5490 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
5491 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
5492 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
5493 redundant operand canonicalization.
5495 2015-07-30 David Sherwood <david.sherwood@arm.com>
5497 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
5498 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
5499 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
5500 * config/arm/arm.c (neon_valid_immediate): Likewise.
5501 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
5502 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
5503 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
5504 (expand_vec_perm_vpshufb2_vpermq): Likewise.
5505 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
5506 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5507 * config/i386/sse.md
5508 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
5509 (*ssse3_palignr<mode>_perm): Likewise.
5510 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
5511 * config/spu/spu.c (arith_immediate_p): Likewise.
5512 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5513 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
5515 2015-07-30 Richard Biener <rguenther@suse.de>
5517 * genmatch.c (decision_tree::gen_gimple): Merge with ...
5518 (decision_tree::gen_generic): ... this into ...
5519 (decision_tree::gen): ... this.
5520 (main): Adjust callers.
5522 2015-07-30 Richard Biener <rguenther@suse.de>
5524 * genmatch.c (verbose): New global.
5525 (warning_at): Add overload with source_location.
5526 (capture_info::capture_info): Add bool whether generating gimple
5527 or generic. Add gimple member.
5528 (capture_info::cinfo): Add capture member.
5529 (capture_info::walk_match): Record capture. Warn on
5531 (capture_info::walk_c_expr): Add more fragments captures cannot
5532 escape through. Warn on escaped captures.
5533 (dt_simplify::gen_1): Warn on operands we force to have no
5535 (main): Initialize verbose.
5536 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
5538 2015-07-30 Richard Biener <rguenther@suse.de>
5541 * match.pd: Allow both operands to independently have conversion
5542 when simplifying compares of addresses.
5544 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
5548 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
5549 around those cases that need one.
5551 2015-07-29 Aditya Kumar <hiraditya@msn.com>
5553 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
5555 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
5557 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
5558 New. Copied from config/i386/gnu-user.h.
5559 (ASM_COMMENT_START): Likewise.
5560 (DBX_REGISTER_NUMBER): Likewise.
5562 2015-07-29 Richard Biener <rguenther@suse.de>
5564 * gimple-fold.c (fold_gimple_cond): Remove.
5565 (fold_stmt_1): Do not call it.
5567 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
5569 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
5570 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
5572 * config/aarch64/aarch64-modes.def: Add HFmode.
5574 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5575 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
5577 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
5578 aarch64_promoted_type): New.
5580 (aarch64_float_const_representable_p): Disable HFmode.
5581 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
5582 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
5583 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
5585 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
5586 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
5588 * config/aarch64/iterators.md (GPF_F16): New.
5590 2015-07-29 Richard Biener <rguenther@suse.de>
5592 * match.pd: Merge address comparison patterns and make them
5593 handle some more cases.
5595 2015-07-29 Richard Biener <rguenther@suse.de>
5597 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
5598 (parser::parse_capture): Add bool argument on whether to reject
5600 (parser::parse_expr): Adjust.
5601 (parser::parse_op): Likewise.
5602 (parser::parse_pattern): Likewise.
5604 2015-07-29 Richard Biener <rguenther@suse.de>
5606 * gimple-fold.c (has_use_on_stmt): New function.
5607 (replace_stmt_with_simplification): Use it to allow
5608 abnormals originally referenced in the stmt.
5609 (fold_stmt_1): Canonicalize operand order.
5611 2015-07-28 David Sherwood <david.sherwood@arm.com>
5613 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
5614 GET_MODE_INNER unconditionally.
5615 * config/spu/spu.c (arith_immediate_p): Likewise.
5616 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
5617 * expmed.c (synth_mult): Remove check for VOIDmode result from
5619 (expand_mult_const): Likewise.
5620 * fold-const.c (fold_binary_loc): Replace call to element_precision
5621 with call to GET_MODE_PRECISION.
5622 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
5624 (emit_mode_inner): Likewise.
5625 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
5627 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
5628 (GET_MODE_UNIT_PRECISION): Likewise.
5629 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
5630 * simplify-rtx.c (simplify_immed_subreg): Likewise.
5631 * stor-layout.c (bitwise_type_for_mode): Update assert.
5632 (element_precision): Remove.
5634 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5636 * target-insns.def (reload_load_address): New targetm instruction
5638 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
5640 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5642 * target-insns.def (atomic_test_and_set): New targetm instruction
5644 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
5645 HAVE_*/gen_* interface.
5647 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5649 * target-insns.def (can_extend, ptr_extend): New targetm instruction
5651 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
5652 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5653 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5654 * rtlanal.c (nonzero_bits1): Likewise.
5655 (num_sign_bit_copies1): Likewise.
5657 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5659 * target-insns.def (eh_return): New targetm instruction pattern.
5660 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
5662 * function.c (thread_prologue_and_epilogue_insns): Remove
5663 preprocessor condition.
5665 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5667 * target-insns.def (indirect_jump): New targetm instruction pattern.
5668 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
5671 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
5673 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
5674 instead of nonimmediate_operand. Remove C condiition.
5676 2015-07-28 Richard Biener <rguenther@suse.de>
5678 * match.pd: Add more simplification of address comparisons.
5680 2015-07-28 Richard Biener <rguenther@suse.de>
5682 * match.pd: Re-order two cases in comparison with max/min
5683 value simplification to make it apply for bools.
5685 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5687 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
5688 Handle simple SIGN_EXTEND or ZERO_EXTEND.
5689 (aarch64_rtx_costs): Properly strip extend or extract before
5690 passing down to rtx costs again.
5692 2015-07-28 Nick Clifton <nickc@redhat.com>
5694 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
5695 Optimizes the case where -mes0 is active and a constant symbolic
5697 * config/rl78/rl78-protos.h: Prototype the new function.
5698 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
5700 2015-07-28 Tom de Vries <tom@codesourcery.com>
5702 * tree-parloops.c (reduc_stmt_res): New function.
5703 (initialize_reductions, add_field_for_reduction)
5704 (create_phi_for_local_result, create_loads_for_reductions)
5705 (create_stores_for_reduction, build_new_reduction): Handle case that
5706 reduc_stmt is a phi.
5707 (gather_scalar_reductions): Allow double_reduc reductions.
5709 2015-07-28 Richard Biener <rguenther@suse.de>
5711 * fold-const.c (fold_comparison): Remove equality folding
5712 of decl addresses ...
5713 * match.pd: ... here and merge with existing pattern.
5715 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
5717 PR tree-optimization/66828
5718 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
5719 from int64_t to uint64_t.
5721 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
5723 * opts-common.c (read_cmdline_option): List DriverOnly enum values
5724 as valid only in the error message of the driver, not in the
5725 messages of the language compilers.
5727 2015-07-27 Tom de Vries <tom@codesourcery.com>
5729 * tree-parloops.c (gather_scalar_reductions): Simplify function
5732 2015-07-27 Marek Polacek <polacek@redhat.com>
5734 * ipa-devirt.c (types_same_for_odr): Fix typo.
5736 2015-07-27 Jason Merrill <jason@redhat.com>
5739 * dwarf2out.c (gen_inlined_subroutine_die): Check
5740 cgraph_function_possibly_inlined_p.
5742 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5744 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
5745 Place integer variant first.
5746 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5748 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5751 * config/arm/arm-builtins.c (enum arm_builtins):
5752 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
5753 (ARM_BUILTIN_NEON_BASE): Rename macro to....
5754 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
5755 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
5756 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
5758 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
5761 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
5762 Add qualifier_lane_index.
5763 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
5764 (arm_getlane_qualifiers): Use qualifier_lane_index.
5765 (arm_lanemac_qualifiers): Rename to...
5766 (arm_mac_n_qualifiers): ...this.
5767 (LANEMAC_QUALIFIERS): Rename to...
5768 (MAC_N_QUALIFIERS): ...this.
5769 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
5770 (arm_setlane_qualifiers): Use qualifier_lane_index.
5771 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
5772 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
5773 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
5774 (arm_expand_neon_builtin): Handle qualifier_lane_index.
5776 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
5777 * config/arm/arm.c (bounds_check): Likewise, improve error message.
5778 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
5779 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
5780 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
5781 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
5782 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
5783 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
5784 qualifiers to TERNOP_IMM.
5785 (vdup_lane): Change qualifiers to GETLANE.
5786 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
5787 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
5788 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
5789 vqdmlsl_n): Change qualifiers to MAC_N.
5791 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
5792 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
5793 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
5794 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
5795 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
5796 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
5797 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
5798 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
5799 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
5800 Remove call to neon_lane_bounds.
5802 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
5804 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5805 Place integer variant first.
5807 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
5809 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
5810 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
5811 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
5812 for armv6kz targets.
5813 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
5814 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
5815 (FL_FOR_ARCH6ZK): Remove.
5816 (FL_FOR_ARCH6KZ): New.
5817 (arm_arch6zk): New declaration.
5818 * config/arm/arm-tables.opt: Regenerate.
5819 * config/arm/arm.c (arm_arch6kz): New.
5820 (arm_option_override): Set arm_arch6kz.
5821 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
5822 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
5823 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
5825 2015-07-27 Marek Polacek <polacek@redhat.com>
5829 * doc/invoke.texi: Document -Wtautological-compare.
5831 2015-07-27 Richard Biener <rguenther@suse.de>
5833 * genmatch.c (decision_tree::gen_gimple): Split out large
5834 subtrees into separate functions.
5835 (decision_tree::gen_generic): Likewise.
5837 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
5839 * config/alpha/alpha.c: Use SUBREG_P predicate.
5840 * config/alpha/predicates.md: Ditto.
5842 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5844 * config.host (s390*-*-*): Include driver-native.c only when
5845 building with s390* as host *and* target.
5847 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
5850 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
5851 T bit register modified_between_p check.
5853 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5855 * config/i386/i386.c: Use SUBREG_P predicate.
5856 * config/i386/i386.md: Ditto.
5857 * config/i386/sse.md: Ditto.
5858 * config/i386/predicates.md: Ditto.
5860 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5863 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
5864 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
5866 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5868 * Makefile.in: Remove use of TREEBROWSER.
5869 * config.in: Regenerated.
5870 * configure: Regenerated.
5871 * configure.ac: Remove definition of TREEBROWSER.
5872 * tree-browser.c: Removed.
5873 * tree-browser.def: Removed.
5875 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5877 * graphite-scop-detection.c: Include gimple-pretty-print.h.
5878 (stmt_simple_for_scop_p): Print when a stmt is not handled in
5880 (scopdet_basic_block_info): Print when a loop or bb cannot be
5881 represented in Graphite.
5883 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5886 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
5887 execution guard when min_size is less than size_needed.
5889 2015-07-25 Sebastian Pop <s.pop@samsung.com>
5891 * doc/install.texi: Document supported versions of ISL.
5893 2015-07-25 Jeff Law <law@redhat.com>
5897 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5898 unable to find X NE 0 in the tables, return X as the simplified
5900 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5901 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5903 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5904 after removing the control flow statement and unnecessary edges.
5906 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
5909 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5911 PR rtl-optimization/64164
5912 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5913 * tree-ssa-copyrename.c: Removed.
5914 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5915 -ftree-coalesce-vars.
5916 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5917 * common.opt (ftree-copyrename): Ignore.
5918 (ftree-coalesce-inlined-vars): Likewise.
5919 * doc/invoke.texi: Remove the ignored options above.
5920 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5921 * tree-ssa-coalesce.h: ... here.
5922 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5923 headers required by it.
5924 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5925 across variables when flag_tree_coalesce_vars. Check register
5926 use and promoted modes to allow coalescing. Moved to
5927 tree-ssa-coalesce.c.
5928 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5929 with its member functions to tree-ssa-coalesce.c.
5930 (var_map_base_init): Likewise. Renamed to
5931 compute_samebase_partition_bases.
5932 (partition_view_normal): Drop want_bases parameter.
5933 (partition_view_bitmap): Likewise.
5934 * tree-ssa-live.h: Adjust declarations.
5935 * tree-ssa-coalesce.c: Include explow.h.
5936 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5937 default defs at the entry point.
5938 (dump_part_var_map): New.
5939 (compute_optimized_partition_bases): New, called by...
5940 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5941 of compute_samebase_partition_bases. Adjust.
5942 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5943 * cfgexpand.c (leader_merge): New.
5944 (get_rtl_for_parm_ssa_default_def): New.
5945 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5946 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5947 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5948 redundant MEM attr setting.
5949 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5951 (expand_one_stack_var): ... this. New wrapper to check and
5952 skip already expanded SSA partitions.
5953 (record_alignment_for_reg_var): New, factored out of...
5954 (expand_one_var): ... this.
5955 (expand_one_ssa_partition): New.
5956 (adjust_one_expanded_partition_var): New.
5957 (expand_one_register_var): Check and skip already expanded SSA
5959 (expand_used_vars): Don't create DECLs for anonymous SSA
5960 names. Expand all SSA partitions, then adjust all SSA names.
5961 (pass::execute): Replace the loops that set
5962 SA.partition_to_pseudo from partition leaders and cleared
5963 DECL_RTL for multi-location variables, and that which used to
5964 rename vars and set attrs, with one that clears DECL_RTL and
5965 checks that PARMs and RESULTs default_defs match DECL_RTL.
5966 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5967 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5968 * explow.c (promote_ssa_mode): New.
5969 * explow.h (promote_ssa_mode): Declare.
5970 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5971 * function.c: Include cfgexpand.h.
5972 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5973 (use_register_for_parm_decl): Wrapper for the above to
5974 special-case the result_ptr.
5975 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5976 (split_complex_args): Take assign_parm_data_all argument.
5977 Pass it to rtl_for_parm. Set up rtl and context for split
5979 (assign_parms_augmented_arg_list): Adjust.
5980 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5981 multiple locations. Recognize split complex args.
5982 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5983 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5984 (assign_parm_setup_block): Prefer SSA-assigned location.
5985 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5986 if stack_parm is NULL.
5987 (assign_parm_setup_stack): Prefer SSA-assigned location.
5988 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5989 rtl before testing for pointer bounds. Special-case result_ptr.
5990 (expand_function_start): Maybe reset DECL_RTL of result.
5991 Prefer SSA-assigned location for result and static chain.
5992 Factor out DECL_RESULT and SET_DECL_RTL.
5993 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5994 anonymous SSA names. Use promote_ssa_mode.
5995 (get_temp_reg): Likewise.
5996 (remove_ssa_form): Adjust.
5997 * stor-layout.c (layout_decl): Don't set mem attributes of
5999 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6000 and get its reg_usage for reg invalidation.
6001 (compute_bb_dataflow): Pass it insn.
6002 (emit_notes_in_bb): Likewise.
6004 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6006 * config/i386/i386.c (ix86_va_start): Remove
6007 unneeded !TARGET_64BIT check.
6008 (ix86_gimplify_va_arg): Ditto.
6010 2015-07-24 Tom de Vries <tom@codesourcery.com>
6012 * graphite-sese-to-poly.c (build_poly_scop): Always call
6013 rewrite_commutative_reductions_out_of_ssa.
6015 2015-07-24 Tom de Vries <tom@codesourcery.com>
6017 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
6018 flag_associative_math to FLOAT_TYPE_P. Honour
6019 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
6021 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6024 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
6025 and "%qD" in warning_at instead of "%q+D" in warning.
6027 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6029 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
6030 (ix86_function_abi): Cleanup.
6032 2015-07-24 Michael Darling <darlingm@gmail.com>
6035 * acinclude.m4: Reflects renaming of configure.in to configure.ac
6036 * configure: Likewise
6037 * configure.ac: Likewise
6038 * doc/install.texi: Likewise
6039 * doc/tm.texi: Likewise
6040 * doc/tm.texi.in: Likewise
6042 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6044 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
6045 manually swapping values.
6046 * cse.c (fold_rtx): Likewise.
6047 * lra-eliminations.c (form_sum): Likewise.
6049 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6052 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
6053 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
6054 (*jcc_1, *jcc_2, jump, simple_return_internal)
6055 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
6056 Set length_nobnd attribute instead of length attribute.
6057 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
6058 (length_nobnd): Remove attribute.
6059 (length): Remove length_nobnd processing.
6061 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
6063 * gimplify.c (omp_default_clause): New function. Reorganize flow
6064 for clarity. Broken out of ...
6065 (omp_notice_variable): ... here.
6067 2015-07-24 Gary Funck <gary@intrepid.com>
6070 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
6071 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
6073 2015-07-24 Tom de Vries <tom@codesourcery.com>
6075 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
6076 exit-first loop transform.
6078 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6081 * tree-cfg.c (struct replace_decls_d): New struct.
6082 (replace_block_vars_by_duplicates_1): New function.
6083 (replace_block_vars_by_duplicates): Use it to replace the decls
6084 in the value exprs by duplicates.
6086 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6088 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
6089 -shared, -symbolic, -rdynamic.
6091 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6094 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
6095 -dynamic-linker within %{!static %{!shared, and -rdynamic within
6098 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
6101 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
6102 edge summary is available.
6104 2015-07-24 Richard Biener <rguenther@suse.de>
6106 * genmatch.c (struct dt_node): Add statistic fields.
6107 (dt_node::analyze): New method.
6108 (decision_tree::gen_gimple): Call analyze on the root node
6109 and print statistics to stderr.
6110 (decision_tree::gen_generic): Likewise.
6112 2015-07-24 Richard Biener <rguenther@suse.de>
6114 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
6115 against the highest or lowest possible integer ...
6116 * match.pd: ... as patterns here.
6118 2015-07-24 Richard Biener <rguenther@suse.de>
6120 * genmatch.c (struct capture_info): Add same_as field.
6121 (capture_info::capture_info): Initialize same_as.
6122 (capture_info::walk_match): Compute same_as.
6123 (capture_info::walk_result): Compute stuff for the leader.
6124 (capture_info::walk_c_expr): Likewise.
6125 (dt_simplify::gen_1): Only look at leaders when deciding
6126 to force no side-effects or emit side-effects of omitted operands.
6128 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6130 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
6131 reg note to the GPR -> FPR save instructions.
6133 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6135 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
6137 (s390_expand_insv): Don't generate risbg pattern for constant zero
6139 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
6140 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
6143 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6145 * config/s390/s390.c (s390_reorg): Clean up handling of processors
6148 (s390_issue_rate): Likewise.
6149 (s390_sched_reorder): Likewise.
6150 (s390_sched_variable_issue): Likewise.
6151 (s390_loop_unroll_adjust): Likewise.
6152 (s390_option_override): Likewise.
6154 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6156 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
6157 processor capabilities with -march=native.
6158 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6159 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
6160 (S390_TARGET_BITS_STRING): Macro to simplify specs.
6162 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6164 * config/s390/s390.c (s390_issue_rate): Handle
6165 PROCESSOR_2094_Z9_EC.
6166 (s390_option_override): Likewise.
6167 (s390_adjust_priority): Likewise.
6169 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6171 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
6172 when cross compiling.
6174 2015-07-24 Richard Biener <rguenther@suse.de>
6176 * fold-const.c (maybe_canonicalize_comparison_1): Move
6177 A code CST canonicalization ...
6178 * match.pd: ... to a pattern here.
6180 2015-07-24 Jiong Wang <jiong.wang@arm.com>
6183 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6185 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6186 (HONOR_REG_ALLOC_ORDER): Define.
6188 2015-07-24 Richard Biener <rguenther@suse.de>
6190 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
6191 * fold-const.c (fold_comparison): Move parameter does not
6192 alias &local simplification ...
6193 * match.pd: ... as a pattern here.
6195 2015-07-24 Richard Biener <rguenther@suse.de>
6197 * gimple-fold.c (replace_stmt_with_simplification): Special-case
6198 valueizing call operands.
6199 * gimple-match-head.c (maybe_push_res_to_seq): Take
6200 number of call arguments from ops array.
6201 (do_valueize): New function.
6202 (gimple_simplify): Return true if valueization changed
6203 any operand even if the result didn't simplify further.
6205 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6208 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
6210 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6213 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
6215 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6217 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
6220 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6222 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
6225 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
6227 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
6228 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
6230 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
6231 ms_va_list_type_node initialization.
6233 2015-07-23 Jeff Law <law@redhat.com>
6236 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6237 unable to find X NE 0 in the tables, return X as the simplified
6239 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6240 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6242 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6243 after removing the control flow statement and unnecessary edges.
6245 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
6247 * tree-pass.h (get_current_pass_name): Removed.
6249 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6251 PR rtl-optimization/64164
6252 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6253 * tree-ssa-copyrename.c: Removed.
6254 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6255 -ftree-coalesce-vars.
6256 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6257 * common.opt (ftree-copyrename): Ignore.
6258 (ftree-coalesce-inlined-vars): Likewise.
6259 * doc/invoke.texi: Remove the ignored options above.
6260 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6261 * tree-ssa-coalesce.h: ... here.
6262 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6263 headers required by it.
6264 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6265 across variables when flag_tree_coalesce_vars. Check register
6266 use and promoted modes to allow coalescing. Moved to
6267 tree-ssa-coalesce.c.
6268 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6269 with its member functions to tree-ssa-coalesce.c.
6270 (var_map_base_init): Likewise. Renamed to
6271 compute_samebase_partition_bases.
6272 (partition_view_normal): Drop want_bases parameter.
6273 (partition_view_bitmap): Likewise.
6274 * tree-ssa-live.h: Adjust declarations.
6275 * tree-ssa-coalesce.c: Include explow.h.
6276 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6277 default defs at the entry point.
6278 (dump_part_var_map): New.
6279 (compute_optimized_partition_bases): New, called by...
6280 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6281 of compute_samebase_partition_bases. Adjust.
6282 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6283 * cfgexpand.c (leader_merge): New.
6284 (get_rtl_for_parm_ssa_default_def): New.
6285 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6286 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6287 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6288 redundant MEM attr setting.
6289 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6291 (expand_one_stack_var): ... this. New wrapper to check and
6292 skip already expanded SSA partitions.
6293 (record_alignment_for_reg_var): New, factored out of...
6294 (expand_one_var): ... this.
6295 (expand_one_ssa_partition): New.
6296 (adjust_one_expanded_partition_var): New.
6297 (expand_one_register_var): Check and skip already expanded SSA
6299 (expand_used_vars): Don't create DECLs for anonymous SSA
6300 names. Expand all SSA partitions, then adjust all SSA names.
6301 (pass::execute): Replace the loops that set
6302 SA.partition_to_pseudo from partition leaders and cleared
6303 DECL_RTL for multi-location variables, and that which used to
6304 rename vars and set attrs, with one that clears DECL_RTL and
6305 checks that PARMs and RESULTs default_defs match DECL_RTL.
6306 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6307 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6308 * explow.c (promote_ssa_mode): New.
6309 * explow.h (promote_ssa_mode): Declare.
6310 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6311 * function.c: Include cfgexpand.h.
6312 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6313 (use_register_for_parm_decl): Wrapper for the above to
6314 special-case the result_ptr.
6315 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6316 (split_complex_args): Take assign_parm_data_all argument.
6317 Pass it to rtl_for_parm. Set up rtl and context for split
6319 (assign_parms_augmented_arg_list): Adjust.
6320 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6321 multiple locations. Recognize split complex args.
6322 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6323 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6324 (assign_parm_setup_block): Prefer SSA-assigned location.
6325 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6326 if stack_parm is NULL.
6327 (assign_parm_setup_stack): Prefer SSA-assigned location.
6328 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6329 rtl before testing for pointer bounds. Special-case result_ptr.
6330 (expand_function_start): Maybe reset DECL_RTL of result.
6331 Prefer SSA-assigned location for result and static chain.
6332 Factor out DECL_RESULT and SET_DECL_RTL.
6333 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6334 anonymous SSA names. Use promote_ssa_mode.
6335 (get_temp_reg): Likewise.
6336 (remove_ssa_form): Adjust.
6337 * stor-layout.c (layout_decl): Don't set mem attributes of
6339 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6340 and get its reg_usage for reg invalidation.
6341 (compute_bb_dataflow): Pass it insn.
6342 (emit_notes_in_bb): Likewise.
6344 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
6347 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
6349 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
6350 (rs6000_emit_2insn_and): Handle dot forms.
6351 * config/rs6000/rs6000.md (and<mode>3): Adjust.
6352 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
6353 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
6355 2015-07-23 Richard Biener <rguenther@suse.de>
6357 * generic-match-head.c: Include cgraph.h.
6358 * gimple-match-head.c: Likewise.
6359 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
6361 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
6362 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
6365 2015-07-23 Richard Biener <rguenther@suse.de>
6367 * gimple-fold.c (fold_gimple_cond): Do not require folding
6368 results to pass valid_gimple_rhs_p.
6369 * tree-cfg.h (fold_cond_expr_cond): Remove.
6370 * tree-cfg.c (fold_cond_expr_cond): Likewise.
6371 (make_edges): Do not call it.
6372 * tree-inline.c (tree_function_versioning): Likewise.
6374 2015-07-23 Tom de Vries <tom@codesourcery.com>
6376 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
6377 vect_force_simple_reduction.
6378 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
6379 (vect_is_simple_reduction_1): Add and handle
6380 need_wrapping_integral_overflow parameter.
6381 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
6382 need_wrapping_integral_overflow parameter.
6383 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
6384 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
6387 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
6389 PR tree-optimization/66926,66951
6390 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
6391 INNER_LOOP and fix up condition for renaming virtual operands.
6393 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6395 * combine.c (try_combine): Use std::swap instead of manually
6398 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
6400 * config/mips/i6400.md: New file.
6401 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
6402 (mips64r6): Likewise.
6404 * config/mips/mips-tables.opt: Regenerate.
6405 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
6406 (mips_issue_rate): Add support for i6400.
6407 (mips_multipass_dfa_lookahead): Likewise.
6408 * config/mips/mips.h (TUNE_I6400): Define.
6409 * config/mips/mips.md: Include i6400.md.
6410 (processor): Add i6400.
6411 * doc/invoke.texi (-march=@var{arch}): Add i6400.
6413 2015-07-23 Richard Biener <rguenther@suse.de>
6416 * match.pd: Guard widen and sign-change comparison simplification
6419 2015-07-23 Richard Biener <rguenther@suse.de>
6421 PR tree-optimization/66945
6422 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
6423 ::before_dom_children): Force the propagators idea of
6424 non-executable edges to materialize, not what the folder
6427 2015-07-23 Richard Biener <rguenther@suse.de>
6429 * gimple.h (gimple_cond_make_false): Use 0 != 0.
6430 (gimple_cond_make_true): Use 1 != 0.
6432 2015-07-22 DJ Delorie <dj@redhat.com>
6434 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
6437 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
6438 (ashrhi3): Likewise.
6439 (lshrhi3): Likewise.
6440 (movhi): Take advantage of zero-extend to load small constants.
6442 (and<mode>3): Likewise.
6443 (zero_extendqihi2): Likewise.
6444 (zero_extendqisi2): New.
6445 * config/msp430/constraints.md (N,O): New.
6446 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
6448 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
6451 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
6452 to enum feature_priority and feature_list.
6453 (fold_builtin_cpu): Add F_AES to enum processor_features
6454 and isa_names_table.
6456 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
6459 * config/i386/linux-common.h (MPX_SPEC): Use linker option
6460 for 64bit target only.
6462 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
6464 * config/nvptx/nvptx.c: Expand some comments.
6466 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
6468 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
6469 (cortex_a53_advsimd): ...This.
6471 2015-07-22 Richard Biener <rguenther@suse.de>
6473 * genmatch.c (expr::gen_transform): Clarify error message
6474 and display location.
6476 2015-07-22 Richard Biener <rguenther@suse.de>
6478 * genmatch.c (struct operand): Add location member.
6479 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
6481 (struct simplify): Remove match_location and result_location
6483 (elsehwere): Adjust.
6485 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
6487 * config/mips/m5100.md: New file.
6488 * config/mips/mips-cpus.def (m5100, m5101): Define.
6489 * config/mips/mips-tables.opt: Regenerate.
6490 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
6491 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
6492 -march=m5101 to -mips32r5.
6493 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
6494 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
6496 * config/mips/mips.md: Include m5100.md.
6497 (processor): Add m5100.
6498 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
6500 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
6502 * config/mips/mips-cpus.def (interaptiv): Define.
6503 * config/mips/mips-tables.opt: Regenerate.
6504 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
6506 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
6507 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
6509 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6512 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6513 (HONOR_REG_ALLOC_ORDER): Define.
6515 2015-07-22 Richard Biener <rguenther@suse.de>
6517 PR tree-optimization/66952
6518 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
6519 blocks we end up executing unconditionally reset all SSA
6520 info such as range and alignment.
6521 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
6522 * tree-ssanames.c (reset_flow_sensitive_info): New function.
6524 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6526 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
6529 2015-07-22 Richard Biener <rguenther@suse.de>
6531 * genmatch.c (parser::parse_result): Properly handle
6532 match with result operands and conditions.
6534 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6537 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6538 Add qualifier_struct_load_store_lane_index.
6539 (aarch64_types_loadstruct_lane_qualifiers): Use
6540 qualifier_struct_load_store_lane_index for lane index argument for
6542 (aarch64_types_storestruct_lane_qualifiers): Ditto.
6543 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6544 (aarch64_simd_expand_args): Add new argument describing mode of
6545 builtin. Check lane bounds for arguments with
6546 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6547 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
6548 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6549 (aarch64_simd_expand_builtin): Handle arguments with
6550 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
6551 aarch64_simd_expand_args.
6552 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
6553 vst[234]_lane with BUILTIN_VALLDIF.
6554 * config/aarch64/aarch64-simd.md:
6555 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
6556 endianness reversal on lane index.
6557 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
6558 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
6559 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
6560 (vec_store_lanesci_lane<mode>): Ditto.
6561 (vec_store_lanesxi_lane<mode>): Ditto.
6562 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
6563 reversal of lane index.
6564 (aarch64_ld3_lane<mode>): Ditto.
6565 (aarch64_ld4_lane<mode>): Ditto.
6566 (aarch64_st2_lane<mode>): Ditto.
6567 (aarch64_st3_lane<mode>): Ditto.
6568 (aarch64_st4_lane<mode>): Ditto.
6569 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
6570 to qmode. Add new mode parameter. Update uses.
6571 (__LD3_LANE_FUNC): Ditto.
6572 (__LD4_LANE_FUNC): Ditto.
6573 (__ST2_LANE_FUNC): Ditto.
6574 (__ST3_LANE_FUNC): Ditto.
6575 (__ST4_LANE_FUNC): Ditto.
6577 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
6579 * doc/invoke.texi (Language Independent Options): Rename node to
6580 Diagnostic Message Formatting Options.
6582 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
6585 * lra-remat.c (operand_to_remat): Prevent using insns with input
6586 subregs processed separately by IRA.
6588 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
6590 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
6592 (single_imm_use): Check for iterator node.
6593 (num_imm_uses): Likewise.
6594 * tree-ssa-operands.c (has_zero_uses_1): Delete.
6595 (single_imm_use_1): Check for iterator node.
6597 2015-07-21 Mike Frysinger <vapier@gentoo.org>
6598 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6600 * configure.ac: Add check for new options in isl-0.15.
6601 * config.in, configure: Rebuilt.
6602 * graphite-blocking.c: Include <isl/constraint.h>
6603 * graphite-interchange.c, graphite-poly.c: Likewise.
6604 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
6605 * graphite.c: Likewise.
6606 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
6608 * graphite-dependences.c: Include <isl/constraint.h>.
6609 (max_number_of_out_dimensions): Returns isl_stat.
6610 (extend_schedule_1): Likewise
6611 (extend_schedule): Corresponding changes.
6612 * graphite-optimize-isl.c: Include <isl/constraint.h> and
6614 (getSingleMap): Change return type of isl_stat.
6615 (optimize_isl): Conditionally use
6616 isl_options_set_schedule_serialize_sccs.
6617 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
6618 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
6620 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
6623 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
6624 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
6626 2015-07-21 Richard Biener <rguenther@suse.de>
6628 PR tree-optimization/66948
6629 * genmatch.c (capture_info::walk_match): Also recurse to
6630 captures. Properly compute expr state from captures of
6632 * match.pd: Add single-use guards to
6633 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
6635 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6637 * config/nvptx/mkoffload.c (process): Add static destructor call.
6639 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6642 * match.pd (A - B -> A + (-B)): Don't allow folding
6643 when type if a fixed-point type.
6645 2015-07-20 DJ Delorie <dj@redhat.com>
6647 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
6648 (iorqi3_real): Likewise for set1.
6650 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
6652 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
6655 2015-07-20 Aditya Kumar <hiraditya@msn.com>
6657 * graphite-isl-ast-to-gimple.c:
6658 Refactor so that each function can access 'region'. This will help
6659 maintain a parameter rename_map within a region.
6661 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6663 * config/rs6000/rs6000.md (*lt0_disi): New.
6665 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6668 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
6669 "available letters" comment.
6670 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
6671 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
6672 and_2rld_operand): Delete.
6673 (and_operand): Adjust.
6674 (rotate_mask_operator): New.
6675 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
6676 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
6677 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
6678 extract_ME): Delete.
6679 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6680 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
6681 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
6682 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6683 rs6000_emit_2insn_and): New.
6684 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
6685 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
6686 includes_rldic_lshift_p, includes_rldicr_lshift_p,
6687 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
6688 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6689 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
6690 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
6691 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6692 rs6000_emit_2insn_and): New.
6693 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
6694 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
6696 <NOT>: Don't fall through to next case.
6697 <AND>: Handle the various rotate-and-mask cases directly.
6698 <IOR>: Always cost as one insn.
6699 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
6700 (and<mode>3): Adjust expander for the new patterns.
6701 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
6702 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
6703 (*and<mode>3_imm_dot_shifted): New.
6704 (*and<mode>3_mask): Delete, rewrite as ...
6705 (and<mode>3_mask): ... New.
6706 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
6707 (andsi3_internal0_nomc): Delete.
6708 (*andsi3_internal6): Delete.
6709 (*and<mode>3_2insn): New.
6710 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
6711 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
6712 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
6713 *insvdi_internal3): Delete.
6714 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
6715 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
6716 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
6717 *ior<mode>_mask): New.
6718 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
6719 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6720 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6721 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6723 (ashr<mode>3): Delete expander.
6724 (*ashr<mode>3): Rename to ...
6725 (ashr<mode>3): ... This.
6726 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
6727 (*rotldi3_internal4, *rotldi3_internal5 and split,
6728 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
6729 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
6730 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
6731 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
6732 (splitter for loading a mask): Adjust.
6733 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
6735 2015-07-20 Marek Polacek <polacek@redhat.com>
6737 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
6738 output_add_clobbers, output_added_clobbers_hard_reg_p,
6739 gen_rtx_scratch): Remove declarations.
6741 2015-07-20 Marek Polacek <polacek@redhat.com>
6744 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
6746 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6748 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
6749 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
6751 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6753 * combine.c (combine_simplify_rtx): Move simplification step
6754 before various transformations/substitutions.
6756 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
6758 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
6759 (struct int_traits): Likewise.
6761 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6763 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
6764 function to vmsdbgout_function_decl.
6766 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6769 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
6770 from misaligned positions.
6771 (ix86_expand_pinsr): Reject insertions to misaligned positions.
6773 2015-07-18 Sebastian Pop <s.pop@samsung.com>
6777 * Makefile.in: Removed omega.o.
6778 * common.opt: Document flag fcheck-data-deps as deprecated.
6779 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
6780 its associated params: omega-max-vars, omega-max-geqs,
6781 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
6782 omega-max-keys, omega-eliminate-redundant-constraints.
6783 * doc/loop.texi: Remove all the section on Omega.
6784 * graphite-blocking.c: Include missing params.h: it used to be
6785 included through tree-data-ref.h and omega.h.
6786 * graphite-isl-ast-to-gimple.c: Same.
6787 * graphite-optimize-isl.c: Same.
6788 * graphite-sese-to-poly.c: Same.
6792 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
6793 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
6794 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
6795 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
6796 * passes.def: Remove pass_check_data_deps.
6797 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
6798 (dump_conflict_function): Same.
6799 (dump_subscript): Same.
6800 (print_direction_vector): Same.
6801 (print_dir_vectors): Same.
6802 (print_lambda_vector): Same.
6803 (print_dist_vectors): Same.
6804 (dump_data_dependence_relation): Same.
6805 (dump_data_dependence_relations): Same.
6806 (dump_dist_dir_vectors): Same.
6808 (init_omega_eq_with_af): Removed.
6809 (omega_extract_distance_vectors): Removed.
6810 (omega_setup_subscript): Removed.
6811 (init_omega_for_ddr_1): Removed.
6812 (init_omega_for_ddr): Removed.
6813 (ddr_consistent_p): Removed.
6814 (compute_affine_dependence): Do not use omega to check data
6816 (compute_data_dependences_for_bb): Removed.
6817 (analyze_all_data_dependences): Removed.
6818 (tree_check_data_deps): Removed.
6819 * tree-data-ref.h: Do not include omega.h.
6820 (compute_data_dependences_for_bb): Removed.
6821 (tree_check_data_deps): Removed.
6822 * tree-ssa-loop.c (pass_check_data_deps): Removed.
6823 (make_pass_check_data_deps): Removed.
6824 * tree-ssa-phiopt.c: Include params.h.
6825 * tree-vect-data-refs.c: Same.
6826 * tree-vect-slp.c: Same.
6828 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
6830 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
6831 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
6832 (mem->fpreg splitters): Ditto.
6833 (general_operand->nonimmediate_operand splitter): Use explicit modes.
6834 Disable DFmode for TARGET_64BIT.
6836 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
6839 * config/i386/i386.c (ix86_expand_prologue): Replicate static
6842 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6844 * config/nvptx/mkoffload.c (process): Constify host data.
6845 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6847 (generate_host_descr_file): Likewise.
6849 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
6850 Sebastian Pop <s.pop@samsung.com>
6853 * graphite-dependences.c (add_pdr_constraints): Renamed
6854 pdr->extent to pdr->subscript_sizes.
6855 * graphite-interchange.c (build_linearized_memory_access): Add
6856 back all gcc_assert's that the "isl_int to isl_val conversion"
6857 patch has removed. Refactored.
6858 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
6859 * graphite-poly.c (new_poly_dr): Same.
6860 (free_poly_dr): Same.
6861 * graphite-poly.h (struct poly_dr): Same.
6862 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
6863 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
6864 * graphite-scop-detection.h: Fix space.
6865 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
6866 back all gcc_assert's removed by a previous patch.
6867 (wrap): Remove the_isl_ctx global variable that the same patch has
6869 (build_loop_iteration_domains): Same.
6870 (add_param_constraints): Same.
6871 (pdr_add_data_dimensions): Same. Refactored.
6872 (build_poly_dr): Renamed extent to subscript_sizes.
6874 2015-07-17 Marek Polacek <polacek@redhat.com>
6876 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
6877 * match.pd: ... here.
6879 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6881 * config/nvptx/mkoffload.c (process): Constify target data.
6882 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6883 Constify target data.
6884 (generate_target_offloadend_file): Likewise.
6886 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
6888 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
6889 to allow renaming of PHI arguments on edges incoming from outer
6890 loop header, add corresponding check before start PHI iterator.
6891 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
6892 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
6893 with true force_vectorize. Set-up dominator for outer loop too.
6894 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
6895 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
6896 was marked with force_vectorize and has restricted cfg.
6897 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
6899 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
6900 do peeling for outer loops.
6902 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
6903 Matthias Klose <doko@ubuntu.com>
6905 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
6906 build-sysroot, sysroot from the `Miscenalleous configure options' to
6907 the `Directories' section and strip trailing `/' from with_sysroot.
6908 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
6909 * configure: Regenerated.
6911 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6914 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
6915 (TARGET_HARD_DF_REGS): Ditto.
6916 (TARGET_HARD_XF_REGS): Ditto.
6917 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
6918 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
6919 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
6920 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
6921 (*movsf_internal): Add alternatives 16 and 17. Enable
6922 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
6924 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
6926 PR rtl-optimization/66891
6927 * calls.c (expand_call): Wrap precompute_register_parameters with
6928 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
6930 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6932 * config/nvptx/mkoffload.c (process): Constify mapping variables.
6933 Define target data struct and initialize it.
6935 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
6937 PR rtl-optimization/66626
6938 * ira.h (emit-rtl.h): Include.
6939 (non_spilled_static_chain_regno_p): New.
6940 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
6941 unless it is non spilled static chain pseudo.
6942 (assign_hard_rego): Spill memory profitable allocno unless it is
6943 non spilled static chain pseudo.
6944 (allocno_spill_priority_compare): Put non spilled static chain
6945 pseudo at the end of sorted array.
6946 (improve_allocation): Do nothing if we have static chain and
6948 (allocno__priority_compare_func): Put non spilled static chain
6949 pseudo at the beginning of sorted array.
6950 (move_spill_restore): Ignore non spilled static chain pseudo.
6951 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
6952 to non spilled static chain pseudo.
6953 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
6954 pseudo at the beginning of sorted array.
6955 (spill_for): Spill non spilled static chain pseudo last.
6956 * lra-constraints.c (lra_constraints): Remove static chain pseudo
6957 check for equivalence.
6959 2015-07-16 Martin Liska <mliska@suse.cz>
6962 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
6963 dst_ctx if it does not exist.
6965 2015-07-16 Martin Liska <mliska@suse.cz>
6967 * hash-set.h (remove): New function.
6968 (iterator): New iteration class for hash_set.
6970 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6972 * genattrtab.c (make_canonical): Add a file_location parameter.
6973 Use fatal_at rather than fatal.
6974 (get_attr_value): Likewise. Update call to make_canonical.
6975 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
6976 (make_internal_attr): Update calls accordingly.
6978 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6980 * read-md.h (message_with_line, error_with_line): Delete.
6981 * read-md.c (message_with_line, error_with_line): Delete.
6982 * gensupport.h: Include read-md.h.
6983 (md_rtx_info): New structure.
6984 (read_md_rtx): Use it. Return a bool success value.
6985 * gensupport.c (read_md_rtx): Likewise.
6986 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
6987 (main): Update after interface changes.
6988 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
6989 (main): Update after interface changes.
6990 * genattrtab.c (insn_code_number): Delete.
6991 (optimize_attrs): Add a max_insn_code parameter and use it instead
6992 of insn_code_number.
6993 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
6994 Use *_at rather than *_with_line functions.
6995 (gen_insn): Likewise.
6996 (gen_delay): Likewise.
6997 (gen_insn_reserv): Likewise.
6998 (gen_bypass): Take an md_rtx_info rather than an rtx.
6999 (main): Update after interface changes. Use a local max_insn_code
7000 variable instead of insn_code_number.
7001 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
7002 an rtx. Use fatal_at rather than fatal.
7003 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
7004 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
7005 (gen_absence_set, gen_final_absence_set, gen_automaton)
7006 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
7007 (main): Update after interface changes.
7008 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
7010 (main): Update after interface changes.
7011 * genconditions.c (main): Use new read_md_rtx interface.
7012 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
7013 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
7014 (main): Update after interface changes.
7015 * genemit.c (insn_code_number, insn_index_number): Delete.
7016 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7017 Use fatal_at rather than fatal.
7018 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
7020 (gen_split): Likewise.
7021 (main): Update after interface changes.
7022 * genextract.c (line_no): Delete.
7023 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7024 Update call to walk_rtx.
7025 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
7026 rather than message_with_line.
7027 (walk_rtx): Add an md_rtx_info argument. Update call to
7028 VEC_safe_set_locstr.
7029 (main): Update after interface changes.
7030 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
7031 and lineno. Use error_at rather than separate message_with_line
7032 calls and have_error assignments.
7033 (main): Update after interface changes.
7034 * genmddump.c (main): Use new read_md_rtx interface.
7035 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
7036 (main): Update after interface changes.
7037 * genoutput.c (next_code_number): Delete.
7038 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7039 (gen_peephole, gen_expand, gen_split): Likewise.
7040 (note_constraint): Likewise. Use *_at rather than *_with_line
7042 (main): Update after interface changes.
7043 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
7045 (main): Update after interface changes.
7046 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
7047 than an rtx and lineno.
7048 (process_define_constraint): Likewise.
7049 (process_define_register_constraint): Likewise.
7050 (main): Update after interface changes.
7051 * genrecog.c (next_insn_code, pattern_lineno): Delete.
7052 (validate_pattern): Replace top-level rtx with an md_rtx_info.
7053 Use *_at rather than *_with_line functions.
7054 (match_pattern_2): Likewise.
7055 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
7056 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
7057 Use *_at rather than *_with_line functions.
7058 * gentarget-def.c (add_insn): New function.
7059 (main): Use it. Use new read_md_rtx interface.
7061 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7063 * gensupport.h (compute_test_codes): Take a file_location rather
7065 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
7066 rather than *_with_line functions.
7067 (process_define_predicate): Update call to compute_test_codes.
7068 * genpreds.c (validate_exp): Take a file_location rather than a
7069 line number. Use *_at functions rather than *_with_line functions.
7070 (process_define_predicate): Update call to validate_exp.
7071 (constraint_data): Replace lineno field with a file_location.
7072 (add_constraint): Take a file_location rather than a line number.
7073 Use *_at functions rather than *_with_line functions. Fix error
7074 message for address constraints. Update after changes to
7075 validate_exp, constraint_data and compute_test_codes.
7076 (process_define_constraint): Update accordingly.
7077 (process_define_register_constraint): Likewise.
7079 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7081 * genoutput.c (data): Use a file_location to record the source
7084 (idata, idata_end): Remove initialization.
7085 (constraint_data): Replace lineno with a file_location.
7086 (output_insn_data): Update after changes to data.
7087 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
7088 (scan_operands): Likewise, using *_at rather than *_with_line
7090 (process_template): Likewise.
7091 (validate_insn_alternatives): Likewise.
7092 (validate_insn_operands): Likewise.
7093 (validate_optab_operands): Likewise.
7094 (init_insn_for_nothing): Initialize idata and idata_end.
7095 (note_constraint): Update after changes to constraint_data,
7096 using at rather than with_line functions.
7097 (mdep_constraint_len): Take a file_location rather than a
7098 line number. Use at rather than with_line functions.
7100 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7102 * read-md.h (fatal_at): Declare.
7103 * read-md.c (fatal_at): New function.
7104 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
7105 to record the source position.
7106 (check_attr_test): Take a file_location instead of a line number.
7107 Use fatal_at instead of fatal.
7108 (check_attr_value): Update after above changes, using "at"
7109 rather than "with_line" reporting functions.
7110 (convert_set_attr_alternative): Likewise.
7111 (gen_attr): Likewise.
7112 (check_defs): Likewise. Don't assign to read_md_filename.
7113 (gen_insn): Update initialization after above changes.
7114 (gen_delay): Likewise.
7115 (write_insn_cases): Print the filename for a define_peephole.
7116 (gen_insn_reserv): Take a line number as argument and update
7117 the call to check_attr_test.
7118 (main): Pass a line number to gen_insn_reserv.
7120 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7122 * read-md.h (file_location): New structure.
7123 (directive_handler_t): Take a file_location rather than a line number.
7124 (message_at, error_at): Declare.
7125 (read_skip_construct): Delete.
7126 * read-md.c (message_with_line_1): Replace with...
7127 (message_at_1): ...this new function.
7128 (message_at, error_at): New functions.
7129 (message_with_line, error_with_line): Update to use message_at_1.
7130 (handle_enum): Take a file_location rather than a line number
7131 and use error_at for error reporting.
7132 (handle_include): Likewise.
7133 (read_skip_construct): Likewise. Make static.
7134 (handle_file): Update after above changes. Pass a file_location
7135 rather than a line number to handle_directive.
7136 * gensupport.c (queue_elem): Replace separate filename and lineno
7137 with a file_location.
7138 (queue_pattern): Replace filename and lineno arguments with a
7139 file_location. Update after change to queue_elem.
7140 (process_define_predicate): Replace lineno argument with a
7141 file_location and use error_at for error reporting. Update
7142 after above changes.
7143 (process_rtx): Likewise.
7144 (subst_pattern_match): Likewise.
7145 (get_alternatives_number): Likewise.
7146 (alter_predicate_for_insn): Likewise.
7147 (rtx_handle_directive): Likewise.
7148 (is_predicable): Update after above changes, using error_at rather
7149 than error_with_line.
7150 (has_subst_attribute): Likewise.
7151 (identify_predicable_attribute): Likewise.
7152 (alter_attrs_for_subst_insn): Likewise.
7153 (process_one_cond_exec): Likewise.
7154 (process_substs_on_one_elem): Likewise.
7155 (process_define_subst): Likewise.
7156 (check_define_attr_duplicates): Likewise.
7157 (read_md_rtx): Update after change to queue_elem.
7159 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7161 * genoutput.c (next_index_number): Delete.
7162 (data): Remove index_number.
7163 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
7164 (main): Remove manipulation of next_index_number.
7166 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7168 * genattrtab.c (check_attr_value): Remove handling of null attrs.
7169 (make_canonical): Likewise.
7171 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
7173 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
7174 instead of adjust_address_nv.
7175 (restore_stack_nonlocal): Likewise.
7176 (nonlocal_goto): Likewise.
7178 2015-07-16 Tom de Vries <tom@codesourcery.com>
7180 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
7181 not have a corresponding loop header phi.
7183 2015-07-16 Tom de Vries <tom@codesourcery.com>
7185 * tree-parloops.c (create_loads_for_reductions): Handle case that
7186 reduction is unused.
7188 2015-07-16 Richard Biener <rguenther@suse.de>
7190 PR tree-optimization/66894
7191 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
7192 about deriving NE_EXPR from truncated values.
7194 2015-07-16 Martin Liska <mliska@suse.cz>
7197 (object_allocator): Add new class.
7198 (pool_allocator::initialize): Use the underlying class.
7199 (pool_allocator::allocate): Likewise.
7200 (pool_allocator::remove): Likewise.
7201 (operator new): A new generic allocator.
7202 * asan.c (struct asan_mem_ref): Remove unused members.
7203 (asan_mem_ref_new): Replace new operator with
7204 object_allocator::allocate.
7205 (free_mem_ref_resources): Change deallocation.
7206 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
7207 with object_allocator.
7208 * config/sh/sh.c (add_constant): Replace new operator with
7209 object_allocator::allocate.
7210 (sh_reorg): Change call to a release method.
7211 * cselib.c (struct elt_list): Remove unused members.
7212 (new_elt_list): Replace new operator with
7213 object_allocator::allocate.
7214 (new_elt_loc_list): Likewise.
7215 (new_cselib_val): Likewise.
7216 (unchain_one_elt_list): Change delete operator with remove method.
7217 (unchain_one_elt_loc_list): Likewise.
7218 (unchain_one_value): Likewise.
7219 (cselib_finish): Release newly added static allocators.
7220 * cselib.h (struct cselib_val): Remove unused members.
7221 (struct elt_loc_list): Likewise.
7222 * df-problems.c (df_chain_alloc): Replace pool_allocator with
7224 * df-scan.c (struct df_scan_problem_data): Likewise.
7225 (df_scan_alloc): Likewise.
7226 * df.h (struct dataflow): Likewise.
7227 * dse.c (struct read_info_type): Likewise.
7228 (struct insn_info_type): Likewise.
7229 (struct dse_bb_info_type): Likewise.
7230 (struct group_info): Likewise.
7231 (struct deferred_change): Likewise.
7232 (get_group_info): Likewise.
7233 (delete_dead_store_insn): Likewise.
7234 (free_read_records): Likewise.
7235 (replace_read): Likewise.
7236 (check_mem_read_rtx): Likewise.
7237 (scan_insn): Likewise.
7238 (dse_step1): Likewise.
7239 (dse_step7): Likewise.
7240 * et-forest.c (struct et_occ): Remove unused members.
7241 (et_new_occ): Use allocate instead of new operator.
7242 (et_new_tree): Likewise.
7243 (et_free_tree): Call release method explicitly.
7244 (et_free_tree_force): Likewise.
7245 (et_free_pools): Likewise.
7246 (et_split): Use remove instead of delete operator.
7247 * et-forest.h (struct et_node): Remove unused members.
7248 * ipa-cp.c: Change pool_allocator to object_allocator.
7249 * ipa-inline-analysis.c: Likewise.
7250 * ipa-profile.c: Likewise.
7251 * ipa-prop.c: Likewise.
7252 * ipa-prop.h: Likewise.
7253 * ira-build.c (initiate_cost_vectors): Cast return value.
7254 (ira_allocate_cost_vector): Likewise.
7255 * ira-color.c (struct update_cost_record): Remove unused members.
7256 * lra-int.h (struct lra_live_range): Likewise.
7257 (struct lra_copy): Likewise.
7258 (struct lra_insn_reg): Likewise.
7259 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
7260 * lra.c (new_insn_reg): Replace new operator with allocate method.
7261 (free_insn_regs): Same for operator delete.
7262 (finish_insn_regs): Release new static allocator.
7263 (finish_insn_recog_data): Likewise.
7264 (lra_free_copies): Replace delete operator with remove method.
7265 (lra_create_copy): Replace operator new with allocate method.
7266 (invalidate_insn_data_regno_info): Same for remove method.
7267 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
7268 (free_debug_insn_changes): Replace delete operator with remove method.
7269 (replace_oldest_value_reg): Replace operator new with allocate method.
7270 (pass_cprop_hardreg::execute): Release new static variable.
7271 * sched-deps.c (sched_deps_init): Change pool_allocator to
7273 * sel-sched-ir.c: Likewise.
7274 * sel-sched-ir.h: Likewise.
7275 * stmt.c (expand_case): Likewise.
7276 (expand_sjlj_dispatch_table): Likewise.
7277 * tree-sra.c (struct access): Remove unused members.
7278 (struct assign_link): Likewise.
7279 (sra_deinitialize): Release newly added static pools.
7280 (create_access_1):Replace operator new with allocate method.
7281 (build_accesses_from_assign): Likewise.
7282 (create_artificial_child_access): Likewise.
7283 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
7284 pool_allocator to object_allocator.
7285 * tree-ssa-pre.c: Likewise.
7286 * tree-ssa-reassoc.c: Likewise.
7287 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7288 * tree-ssa-strlen.c: Likewise.
7289 * tree-ssa-structalias.c: Likewise.
7290 * var-tracking.c (onepart_pool_allocate): New function.
7291 (unshare_variable): Use the newly added function.
7292 (variable_merge_over_cur): Likewise.
7293 (variable_from_dropped): Likewise.
7294 (variable_was_changed): Likewise.
7295 (set_slot_part): Likewise.
7296 (emit_notes_for_differences_1): Likewise.
7297 (vt_finalize): Release newly added static pools.
7299 2015-07-16 Martin Jambor <mjambor@suse.cz>
7301 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
7302 all uses. Fix two typos in its general comment.
7303 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
7305 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
7307 * config/i386/linux-common.h (LINK_MPX): New.
7308 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
7309 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
7310 indicating '-z bndplt' support by linker.
7311 * configure: Regenerate.
7312 * config.in: Regenerate.
7314 2015-07-16 Richard Biener <rguenther@suse.de>
7316 * fold-const.c (fold_widened_comparison): Remove.
7317 (fold_sign_changed_comparison): Likewise.
7318 (fold_comparison): Move widened and sign-changed comparison
7320 * match.pd: ... to patterns here.
7321 * generic-match-head.c: Include target.h.
7322 * gimple-match-head.c: Likewise.
7324 2015-07-16 Richard Biener <rguenther@suse.de>
7326 * tree-ssa-dom.c (dom_valueize): New function.
7327 (record_temporary_equivalences): Also record equivalences
7328 for dominating stmts that have uses of equivalences we are
7331 2015-07-16 Bin Cheng <bin.cheng@arm.com>
7333 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
7334 add_autoinc_candidates.
7335 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
7336 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
7337 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
7338 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
7340 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
7341 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
7342 Remove parameter struct iv*. Call add_autoinc_candidates here.
7343 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
7344 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
7346 (find_iv_candidates): Call new functions.
7348 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
7350 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
7351 uninitialized-variable warning.
7353 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
7356 * config/sh/sh.md (movdi): Split simple reg move to two movsi
7357 when the destination is R0.
7359 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
7362 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
7363 * config/i386/i386.c (ix86_expand_pextr): New function.
7364 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
7365 for non-lowpart subregs.
7366 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
7367 (insv<mode>): Use SWI248 mode iterator.
7368 (insv<mode>_1): Ditto.
7370 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7371 Sebastian Pop <s.pop@samsung.com>
7373 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
7374 iterator to use_stmt.
7376 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7377 Sebastian Pop <s.pop@samsung.com>
7379 * graphite-scop-detection.c (build_scops_1): Discard scops for
7382 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7383 Sebastian Pop <s.pop@samsung.com>
7385 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
7386 case of a return statement in scop.
7388 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7389 Sebastian Pop <s.pop@samsung.com>
7391 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
7392 INTEGER_TYPE parameters.
7393 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
7394 VECTOR_CST in scan_tree_for_params.
7395 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
7397 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7399 * gimple-pretty-print.h: Don't include pretty-print.h.
7400 * tree-streamer.h: Don't include lto-streamer.h.
7401 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
7402 * gimple-streamer-in.c: Remove redundant includes.
7403 * gimple-streamer-out.c: Likewise.
7404 * ipa-devirt.c: Likewise.
7405 * ipa-icf.c: Likewise.
7406 * ipa-inline-analysis.c: Likewise.
7407 * ipa-polymorphic-call.c: Likewise.
7408 * ipa-profile.c: Likewise.
7409 * ipa-prop.c: Likewise.
7410 * ipa-pure-const.c: Likewise.
7411 * lto-cgraph.c: Likewise.
7412 * lto-streamer-in.c: Likewise.
7413 * lto-streamer-out.c: Likewise.
7414 * lto-streamer.c: Likewise.
7415 * tree-streamer-in.c: Likewise.
7416 * tree-streamer-out.c: Likewise.
7417 * tree-streamer.c: Likewise.
7419 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7421 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
7423 * opts.c: Remove multiline #include comment.
7425 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
7427 * config/nvptx/mkoffload.c (process): Add C++ protection to
7430 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7433 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
7434 null before IEEE 128-bit floating point support patch.
7436 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7438 * simplify-rtx.c (simplify_ternary_operation): Add simplification
7439 for (!c) != {0,...,0} ? a : b for vector modes.
7441 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
7442 Martin Jambor <mjambor@suse.cz>
7444 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
7445 struct func_body_info* instead of struct ipa_node_params*, expecting
7446 fbi->info to be filled in. Replace throughout. Adjust call to
7447 ipa_load_from_parm_agg.
7448 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
7449 instead of struct ipa_node_params*. Adjust calls to other functions
7450 so that they pass either fbi or fbi->info.
7451 (set_switch_stmt_execution_predicate): Likewise.
7452 (will_be_nonconstant_predicate): Likewise.
7453 (compute_bb_predicates): Likewise.
7454 (estimate_function_body_sizes): Move asserts earlier. Fill in
7455 struct func_body_info, replace parms_info with fbi.info. Adjust
7456 calls to functions that now accept struct func_body_info.
7457 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
7458 (struct func_body_info): Likewise.
7459 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
7460 remove static. Adjust callers.
7461 (ipa_load_from_parm_agg): Remove.
7462 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
7463 (func_body_info): Likewise.
7464 (ipa_load_from_parm_agg): Adjust prototype.
7466 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7468 * gensupport.c (rtx_handle_directive): Adjust.
7469 * read-rtl.c (apply_iterators): Take vector to add rtxs to
7470 instead of expr list rtx.
7471 (add_define_attr_for_define_subst): Likewise.
7472 (add_define_subst_attr): Likewise.
7473 (read_subst_mapping): Likewise.
7474 (read_rtx): Likewise.
7475 * rtl.h (read_rtx): Adjust.
7477 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7479 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
7481 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7484 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
7485 (*tls_local_dynamic_base_64_<mode>): Ditto.
7486 (*tls_local_dynamic_base_64_largepic): Ditto.
7487 (tls_global_dynamic_64_<mode>): Update expander pattern.
7488 (tls_local_dynamic_base_64_<mode>): Ditto.
7490 2015-07-15 Richard Biener <rguenther@suse.de>
7492 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
7493 and bool_var == 1 -> bool_var simplifications ...
7494 * match.pd: ... to patterns here. Factor out negate_expr_p
7495 cases from the A - B -> A + (-B) patterns as negate_expr_p
7496 predicate and add a -(A + B) -> (-B) - A pattern.
7498 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7500 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
7502 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
7503 Robert Suchanek <robert.suchanek@imgtec.com>
7505 * config/mips/mips.c (mips_int_mask): New enum.
7506 (mips_shadow_set): Likewise.
7507 (int_mask): New variable.
7508 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
7509 (machine_function): Add int_mask and use_shadow_register_set.
7510 (mips_attribute_table): Add attribute handlers for interrupt and
7511 use_shadow_register_set.
7512 (mips_interrupt_mask): New static function.
7513 (mips_handle_interrupt_attr): Likewise.
7514 (mips_handle_use_shadow_register_set_attr): Likewise.
7515 (mips_use_shadow_register_set): Change return type to enum
7516 mips_shadow_set. Add argument handling for use_shadow_register_set
7518 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
7519 compare with mips_shadow_set enum.
7520 (mips_compute_frame_info): Add interrupt mask and
7521 use_shadow_register_set to per-function information structure.
7522 Add a stack slot for EPC unconditionally.
7523 (mips_expand_prologue): Compare use_shadow_register_set value
7524 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
7525 masked interrupt register but in EIC mode use K0 and save Cause in K0.
7526 EPC saved and restored unconditionally. Use PMODE_INSN macro when
7527 copying the stack pointer from the shadow register set.
7528 * config/mips/mips.h (SR_IM0): New define.
7529 * config/mips/mips.md (mips_rdpgpr): Rename to...
7530 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
7531 * doc/extend.texi (Declaring Attributes of Functions): Document
7532 optional arguments for interrupt and use_shadow_register_set
7535 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7537 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
7538 interrupt attribute.
7539 (mips_expand_prologue): Disable the floating point unit in an ISR.
7540 * config/mips/mips.h (SR_COP1): New define.
7542 2015-07-15 Richard Biener <rguenther@suse.de>
7544 * genmatch.c (parser::peek, parser::peek_ident): Add argument
7545 to tell how many tokens to peek ahead (default 1).
7546 (parser::eat_token, parser::eat_ident): Return token consumed.
7547 (parser::parse_result): Parse new switch statement.
7548 * match.pd: Use case statements where appropriate.
7550 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7552 PR rtl-optimization/58066
7553 * calls.c (expand_call): Precompute register parameters before stack
7554 alignment is performed.
7556 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7558 PR rtl-optimization/66838
7559 * postreload.c (reload_cse_move2add): Also process
7560 CALL_INSN_FUNCTION_USAGE when resetting information of
7561 call-clobbered registers.
7563 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7564 Cesar Philippidis <cesar@codesourcery.com>
7565 Chung-Lin Tang <cltang@codesourcery.com>
7567 * config/nios2/constraints.md (U, v): New constraints.
7568 * config/nios2/predicates.md (rdprs_dcache_operand): New.
7569 (ldstex_memory_operand): New.
7570 * config/nios2/sync.md: New file.
7571 * config/nios2/nios2.md (unspecv): Add new builtin function
7573 (rdprs, flushd, flushda, wrpie, eni): New patterns.
7574 (top-level): Include sync.md.
7575 * config/nios2/nios2.c (N2_FTYPES): Add function types for
7577 (N2_BUILTINS): Add arch field setting, add new builtins.
7578 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
7580 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
7581 Also handle ldex/stex/ldsex/stsex builtins.
7582 (nios2_expand_rdprs_builtin): New function.
7583 (nios2_expand_cache_builtin): New function.
7584 (nios2_expand_wrpie_builtin): New function.
7585 (nios2_expand_eni_builtin): New function.
7586 (nios2_expand_builtin): Add arch field handling and new builtin
7588 * doc/extend.texi (Altera Nios II Built-in Functions): Document
7590 * doc/md.texi (Machine Constraints): Document U and v constraints.
7592 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7593 Cesar Philippidis <cesar@codesourcery.com>
7594 Chung-Lin Tang <cltang@codesourcery.com>
7596 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
7597 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
7598 callee_save_reg_size and uses_anonymous_args fields.
7599 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
7600 (nios2_create_cfa_notes): New function.
7601 (nios2_adjust_stack): New function for adjusting stack.
7602 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
7603 Use nios2_adjust_stack.
7604 (nios2_expand_epilogue): Likewise.
7605 (nios2_expand_return): New function.
7606 (nios2_can_use_return_insn): Update for CDX pop.n usage.
7607 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
7608 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
7609 * config/nios2/nios2.md (return): Use nios2_expand_return.
7611 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7612 Cesar Philippidis <cesar@codesourcery.com>
7613 Chung-Lin Tang <cltang@codesourcery.com>
7615 * config/nios2/predicates.md (pop_operation): New.
7616 (ldwm_operation, stwm_operation): New.
7617 (nios2_hard_register_operand): New.
7618 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
7619 (ldstwm_operation_p): Declare.
7620 (gen_ldstwm_peep): Declare.
7621 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
7622 (base_reg_adjustment_p): New.
7623 (pop_operation_p): New.
7624 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
7625 (nios2_ldstwm_regset_p): New.
7626 (ldstwm_operation_p): New.
7628 (nios2_ldst_parallel): New.
7629 (struct ldswm_operand): Declare.
7630 (compare_ldstwm_operands): New.
7631 (can_use_cdx_ldstw): New.
7632 (gen_ldstwm_peep): New.
7633 * config/nios2/nios2-ldstwm.sml: New.
7634 * config/nios2/nios2.md: Include ldstwm.md.
7635 * config/nios2/ldstwm.md: Generated.
7637 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7638 Cesar Philippidis <cesar@codesourcery.com>
7639 Chung-Lin Tang <cltang@codesourcery.com>
7641 * config/nios2/nios2.h (LABEL_ALIGN): Define.
7642 (REG_ALLOC_ORDER): Define.
7643 (ADJUST_REG_ALLOC_ORDER): Define.
7644 (HONOR_REG_ALLOC_ORDER): Define.
7645 (CDX_REG_P): Define.
7646 (ANDCLEAR_INT): Define.
7647 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
7648 (nios2_label_align): Declare.
7649 (nios2_cdx_narrow_form_p): Declare.
7650 (nios2_adjust_reg_alloc_order): Declare.
7651 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
7653 (nios2_large_unspec_reloc_p): New function, split from...
7654 (nios2_legitimate_pic_operand_p): ...here.
7655 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
7656 (nios2_print_operand_punct_valid_p): New.
7657 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
7658 (split_mem_address): New.
7659 (split_alu_insn): New.
7661 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
7662 (enum nios2_add_insn_kind): New.
7663 (nios2_add_insn_names, nios2_add_insn_narrow): New.
7664 (nios2_add_insn_classify): New.
7665 (nios2_add_insn_asm): New.
7666 (nios2_cdx_narrow_form_p): New.
7667 (label_align, min_labelno, max_labelno): New.
7669 (nios2_label_align): New.
7670 (nios2_adjust_reg_alloc_order): New.
7671 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7672 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7673 * config/nios2/constraints.md (P): New constraint.
7674 * config/nios2/predicates.md (const_and_operand): New.
7676 (stack_memory_operand): New.
7677 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
7678 (length): Update to use nios2_cdx_narrow_form_p().
7679 (type): Add new insn type values.
7680 (control, alu, st, ld, shift): Update insn reservations with
7681 new insn type values.
7682 (*high, *lo_sum): Define new insn patterns for constant generation.
7683 (movqi_internal, movhi_internal, movsi_internal): Reduce
7684 alternatives, update asm template to handle CDX variants, update
7686 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
7687 template, update type attributes.
7688 (extendhisi2, extendqi<mode>2): Likewise.
7689 (addsi3): Change to use function for asm string.
7690 (subsi3): Add CDX notation to asm template, update type attributes.
7691 (negsi3, one_cmplsi3): Likewise.
7692 (andsi3): New pattern, specialized from logical patterns.
7693 (<code>si3): Remove and case, combine alternatives, update asm
7695 (<shift_op>si3): Add CDX notation, update type attributes.
7696 (rotrsi3): Update type attribute.
7697 (*merge, extzv, insv): New insn patterns.
7698 (return): Change to define_expand.
7699 (simple_return): Add CDX notation, update type attributes.
7700 (indirect_jump): Add CDX notation.
7701 (jump): Update asm cases, update length attribute expression.
7702 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
7703 (nios2_cbranch): Update asm cases and length attribute expression
7704 to handle CDX variants.
7705 (nios2_cmp<code>): Update asm template.
7706 (nop): Add CDX notation, update type attributes.
7707 (trap): Add CDX notation.
7708 (ctrapsi4): Update asm cases and length attribute expression to
7710 * doc/md.texi (Machine Constraints): Document P constraint.
7712 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7713 Cesar Philippidis <cesar@codesourcery.com>
7714 Chung-Lin Tang <cltang@codesourcery.com>
7716 * config/nios2/nios2.h (SMALL_INT12): New macro.
7717 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
7718 (nios2_valid_addr_expr_p): Use it.
7719 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
7720 with implicit "io" instructions on R2.
7721 * config/nios2/constraints.md (w): New constraint.
7722 * config/nios2/predicates.md (ldstio_memory_operand): New.
7723 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
7724 operand predicate and constraint.
7725 (ld<bh>io_signed, st<bhw>io>): Likewise.
7726 * doc/md.texi (Machine Constraints): Document w constraint.
7728 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7729 Cesar Philippidis <cesar@codesourcery.com>
7730 Chung-Lin Tang <cltang@codesourcery.com>
7732 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
7733 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
7734 Nios II architecture level.
7735 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
7736 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
7737 (OPTION_DEFAULT_SPECS): Define.
7738 (ASM_SPEC): Add -march= spec strings.
7739 * config/nios2/nios2.c (nios2_option_override): Check for
7740 conflicts involving new options.
7741 * config.gcc (nios2*-*-*): Support --with-arch=.
7742 * doc/invoke.texi (Option Summary, Nios II Options): Document
7743 -march=, -mbmx, and -mcdx.
7745 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
7747 PR rtl-optimization/66626
7748 * lra-constraints.c (lra_constraints): Prevent equivalence
7749 substitution for static chain pseudo in functions with nonlocal
7752 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
7754 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
7755 (nios2_emit_stack_limit_check): Add size parameter. Handle
7756 -fstack-limit-symbol as well as -fstack-limit-register.
7757 (nios2_expand_prologue): Emit only a single stack limit check,
7758 even if multiple stack adjustments are required.
7759 (nios2_option_override): Diagnose unsupported combination of -fpic
7760 and -stack-limit-symbol.
7762 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
7764 * Makefile.in (top_srcdir): New.
7765 * configure.ac: Use AM_ZLIB.
7766 * configure: Regeneated.
7768 2015-07-14 Matthias Klose <doko@ubuntu.com>
7771 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
7773 2015-07-14 Richard Biener <rguenther@suse.de>
7775 PR tree-optimization/66863
7776 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
7777 what we record for conversion use stmt lhs inequalities.
7779 2015-07-14 Richard Biener <rguenther@suse.de>
7781 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
7782 (decision_tree::gen_gimple): Likewise.
7784 2015-07-14 Tom de Vries <tom@codesourcery.com>
7786 * gcc.c (greater_than_spec_func): Declare forward.
7787 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
7788 -ftree-parallelize-loops={0,1}.
7789 (static_spec_functions): Add greater_than_spec_func function with name
7791 (greater_than_spec_func): New function.
7793 2015-07-14 Richard Biener <rguenther@suse.de>
7795 * tree-ssa-dom.c (record_temporary_equivalences): Merge
7796 wideing type conversion case from record_equivalences_from_incoming_edge
7797 and use record_equality to record equivalences.
7798 (record_equivalences_from_incoming_edge): Call
7799 record_temporary_equivalences.
7801 2015-07-14 Richard Biener <rguenther@suse.de>
7803 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
7804 (struct if_expr): New.
7805 (struct with_expr): Likewise.
7806 (is_a_helper): Add helpers for if_expr and with_expr.
7807 (struct simplify): Add simplify_kind enum and member. Remove
7809 (simplify::simplify): Adjust.
7810 (lower_commutative): Adjust.
7811 (lower_opt_convert): Likewise.
7812 (lower_cond): Likewise.
7813 (replace_id): Handle with_expr and if_expr.
7814 (lower_for): Adjust.
7815 (dt_simplify::gen_1): New recursive worker, split out from ...
7816 (dt_simplify::gen): ... here. Deal with if and with expansion
7818 (capture_info::capture_info): Take context argument
7819 (capture_info::walk_result): Only analyze specific result.
7820 (parser::parse_result): New function.
7821 (parser::parse_simplify): Adjust to parse ifs with then end
7823 (parser::parse_if): Simplify.
7824 (parser::parse_pattern): Pass down simplify kind.
7825 * match.pd: Convert if structure to new syntax.
7827 2015-07-13 Marek Polacek <polacek@redhat.com>
7829 * rtl.c (rtx_equal_p_cb): Fix typo.
7831 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
7833 * omega.h: Don't include config.h, don't include params.h again if
7834 omega.h has already been included.
7835 * graphite-poly.h: Include sese.h.
7836 * graphite.c: Don't include sese.h, remove needless includes and
7837 minimize includes outside #ifdef HAVE_isl block.
7838 * graphite-blocking.c: Don't include sese.h, remove needless includes,
7839 and wrap entire file in #ifdef HAVE_isl
7840 * graphite-dependences.c: Likewise.
7841 * graphite-interchange.c: Likewise.
7842 * graphite-isl-ast-to-gimple.c: Likewise.
7843 * graphite-optimize-isl.c: Likewise.
7844 * graphite-poly.c: Likewise.
7845 * graphite-scop-detection.c: Likewise.
7846 * graphite-sese-to-poly.c: Likewise.
7848 2015-07-13 Tom de Vries <tom@codesourcery.com>
7850 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
7852 2015-07-13 Renlin Li <renlin.li@arm.com>
7855 * simplify-rtx.c (simplify_const_relational_operation): Add
7856 side_effects_p checks.
7858 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
7860 * bitmap.h: Fix double word typos.
7863 * cfgloopmanip.c: Same.
7866 * cgraphclones.c: Same.
7868 * config/aarch64/aarch64-protos.h: Same.
7869 * config/aarch64/aarch64.c: Same.
7870 * config/aarch64/aarch64.md: Same.
7871 * config/arm/arm.md: Same.
7872 * config/arm/arm1020e.md: Same.
7873 * config/arm/arm1026ejs.md: Same.
7874 * config/arm/arm926ejs.md: Same.
7875 * config/arm/fa526.md: Same.
7876 * config/arm/fa606te.md: Same.
7877 * config/arm/fa626te.md: Same.
7878 * config/arm/fa726te.md: Same.
7879 * config/arm/fmp626.md: Same.
7880 * config/darwin.c: Same.
7881 * config/epiphany/epiphany.c: Same.
7882 * config/frv/frv.c: Same.
7883 * config/ft32/ft32.c: Same.
7884 * config/gnu-user.h: Same.
7885 * config/h8300/constraints.md: Same.
7886 * config/i386/i386.c: Same.
7887 * config/i386/i386.md: Same.
7888 * config/iq2000/iq2000.md: Same.
7889 * config/mips/mips.c: Same.
7890 * config/mmix/mmix.md: Same.
7891 * config/moxie/moxie.c: Same.
7892 * config/nds32/nds32.md: Same.
7893 * config/pa/pa.h: Same.
7894 * config/rs6000/aix.h: Same.
7895 * config/rs6000/rs6000.h: Same.
7896 * config/sh/sh.c: Same.
7897 * config/tilegx/tilegx.md: Same.
7898 * config/tilepro/gen-mul-tables.cc: Same.
7901 * doc/invoke.texi: Same.
7903 * dwarf2out.c: Same.
7908 * hash-table.h: Same.
7909 * internal-fn.c: Same.
7911 * ipa-devirt.c: Same.
7914 * ipa-profile.c: Same.
7919 * reg-stack.c: Same.
7925 * tree-inline.c: Same.
7927 * tree-ssa-dom.c: Same.
7928 * tree-ssa-loop-ivopts.c: Same.
7929 * tree-ssa-structalias.c: Same.
7930 * tree-ssa-tail-merge.c: Same.
7931 * tree-ssa-ter.c: Same.
7932 * tree-ssa-threadupdate.c: Same.
7933 * tree-ssa-uninit.c: Same.
7934 * tree-ssanames.c: Same.
7935 * tree-vect-loop-manip.c: Same.
7941 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7944 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
7945 tree_ssa_phiopt_worker): Call it.
7947 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7949 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
7950 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
7953 2015-07-11 Marek Polacek <polacek@redhat.com>
7956 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
7957 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
7958 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
7959 rather than bb_has_abnormal_call_pred.
7960 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
7961 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
7962 rather than bb_has_abnormal_call_pred.
7964 2015-07-10 Anatoly Sokolov <aesok@post.ru>
7966 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7967 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
7968 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7969 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
7970 v850_legitimate_address_p): New functions.
7971 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7973 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
7976 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
7977 indirect sibcall with register arguments if register available
7978 for argument passing.
7979 (init_cumulative_args): Set cfun->machine->arg_reg_available
7980 to (cum->nregs > 0) or to true if function has a variable
7982 (function_arg_advance_32): Set cfun->machine->arg_reg_available
7983 to false if cum->nregs <= 0.
7984 * config/i386/i386.h (machine_function): Add arg_reg_available.
7986 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7988 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
7989 and gen_higpart instead of gen_rtx_SUBREG.
7990 * config/i386/i386.md
7991 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
7992 (read-modify peephole2): Use gen_lowpart instead of
7993 gen_rtx_SUBREG for operand 5.
7995 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7997 * config/tilepro/gen-mul-tables.cc (main): Change include list for
7999 * config/tilepro/mul-tables.c: Regenerate.
8000 * config/tilegx/mul-tables.c: Regenerate.
8002 2015-07-10 Richard Biener <rguenther@suse.de>
8004 * fold-const.c (distribute_bit_expr): Remove.
8005 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
8006 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
8007 to A & (B | C) and simplifying A << C1 << C2 to ...
8008 * match.pd: ... patterns here.
8010 2015-07-10 Jiong Wang <jiong.wang@arm.com>
8012 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8013 Mark mem as READONLY and NOTRAP for PIC symbol.
8015 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8017 * gimple-predict.h: New file.
8018 (gimple_predict_predictor, gimple_predict_set_predictor,
8019 gimple_predict_outcome, gimple_predict_set_outcome,
8020 gimple_build_predict): Relocate here.
8021 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
8022 gimple_predict_outcome, gimple_predict_set_outcome): Move to
8024 * gimple.c (gimple_build_predict): Move to gimple-predict.h
8025 * basic-block.h: Don't include cfghooks.h.
8026 * backend.h: Don't include predict.h.
8027 * cfghooks.h: Include predict.h.
8028 * gimple-pretty-print.c: Include gimple-predict.h.
8029 * gimplify.c: Likwise.
8030 * predict.c: Adjust includes.
8031 * tree-inline.c: Likewise.
8033 * auto-inc-dec.c: Likewise.
8034 * auto-profile.c: Likewise.
8035 * bb-reorder.c: Likewise.
8036 * builtins.c: Likewise.
8037 * caller-save.c: Likewise.
8038 * calls.c: Likewise.
8039 * cfganal.c: Likewise.
8040 * cfgbuild.c: Likewise.
8042 * cfgcleanup.c: Likewise.
8043 * cfgexpand.c: Likewise.
8044 * cfghooks.c: Likewise.
8045 * cfgloopanal.c: Likewise.
8046 * cfgloop.c: Likewise.
8047 * cfgloopmanip.c: Likewise.
8048 * cfgrtl.c: Likewise.
8049 * cgraph.c: Likewise.
8050 * cgraphunit.c: Likewise.
8051 * combine.c: Likewise.
8052 * cprop.c: Likewise.
8055 * dojump.c: Likewise.
8057 * except.c: Likewise.
8058 * expmed.c: Likewise.
8060 * final.c: Likewise.
8061 * fold-const.c: Likewise.
8062 * function.c: Likewise.
8063 * fwprop.c: Likewise.
8064 * gcc-plugin.h: Likewise.
8066 * genattrtab.c: Likewise.
8067 * genemit.c: Likewise.
8068 * gengtype.c: Likewise.
8069 * genopinit.c: Likewise.
8070 * genoutput.c: Likewise.
8071 * genpreds.c: Likewise.
8072 * genrecog.c: Likewise.
8073 * gimple-fold.c: Likewise.
8074 * gimple-iterator.c: Likewise.
8075 * gimple-ssa-isolate-paths.c: Likewise.
8076 * gimple-ssa-strength-reduction.c: Likewise.
8077 * graph.c: Likewise.
8078 * graphite-blocking.c: Likewise.
8079 * graphite.c: Likewise.
8080 * graphite-dependences.c: Likewise.
8081 * graphite-interchange.c: Likewise.
8082 * graphite-isl-ast-to-gimple.c: Likewise.
8083 * graphite-optimize-isl.c: Likewise.
8084 * graphite-poly.c: Likewise.
8085 * graphite-scop-detection.c: Likewise.
8086 * graphite-sese-to-poly.c: Likewise.
8087 * haifa-sched.c: Likewise.
8088 * ifcvt.c: Likewise.
8089 * internal-fn.c: Likewise.
8090 * ipa-cp.c: Likewise.
8091 * ipa-profile.c: Likewise.
8092 * ipa-split.c: Likewise.
8093 * ipa-utils.c: Likewise.
8094 * ira-build.c: Likewise.
8095 * ira-color.c: Likewise.
8096 * ira-conflicts.c: Likewise.
8097 * ira-costs.c: Likewise.
8098 * ira-emit.c: Likewise.
8099 * ira-lives.c: Likewise.
8101 * loop-doloop.c: Likewise.
8102 * loop-init.c: Likewise.
8103 * loop-invariant.c: Likewise.
8104 * loop-unroll.c: Likewise.
8105 * lower-subreg.c: Likewise.
8106 * lra-assigns.c: Likewise.
8108 * lra-coalesce.c: Likewise.
8109 * lra-constraints.c: Likewise.
8110 * lra-lives.c: Likewise.
8111 * lto-cgraph.c: Likewise.
8112 * lto-streamer-in.c: Likewise.
8113 * mode-switching.c: Likewise.
8114 * modulo-sched.c: Likewise.
8115 * omp-low.c: Likewise.
8116 * optabs.c: Likewise.
8117 * passes.c: Likewise.
8118 * postreload.c: Likewise.
8119 * postreload-gcse.c: Likewise.
8120 * profile.c: Likewise.
8121 * recog.c: Likewise.
8122 * regstat.c: Likewise.
8123 * reload1.c: Likewise.
8124 * reorg.c: Likewise.
8125 * rtlanal.c: Likewise.
8126 * sched-ebb.c: Likewise.
8127 * sel-sched-ir.c: Likewise.
8129 * shrink-wrap.c: Likewise.
8130 * simplify-rtx.c: Likewise.
8132 * store-motion.c: Likewise.
8133 * tracer.c: Likewise.
8134 * trans-mem.c: Likewise.
8135 * tree-call-cdce.c: Likewise.
8136 * tree-cfg.c: Likewise.
8137 * tree-cfgcleanup.c: Likewise.
8138 * tree-chkp.c: Likewise.
8139 * tree-complex.c: Likewise.
8140 * tree-eh.c: Likewise.
8141 * tree-if-conv.c: Likewise.
8142 * tree-loop-distribution.c: Likewise.
8143 * tree-outof-ssa.c: Likewise.
8144 * tree-parloops.c: Likewise.
8145 * tree-predcom.c: Likewise.
8146 * tree-pretty-print.c: Likewise.
8147 * tree-profile.c: Likewise.
8148 * tree-sra.c: Likewise.
8149 * tree-ssa.c: Likewise.
8150 * tree-ssa-coalesce.c: Likewise.
8151 * tree-ssa-dce.c: Likewise.
8152 * tree-ssa-dom.c: Likewise.
8153 * tree-ssa-forwprop.c: Likewise.
8154 * tree-ssa-ifcombine.c: Likewise.
8155 * tree-ssa-loop-ch.c: Likewise.
8156 * tree-ssa-loop-im.c: Likewise.
8157 * tree-ssa-loop-ivcanon.c: Likewise.
8158 * tree-ssa-loop-ivopts.c: Likewise.
8159 * tree-ssa-loop-manip.c: Likewise.
8160 * tree-ssa-loop-prefetch.c: Likewise.
8161 * tree-ssa-loop-unswitch.c: Likewise.
8162 * tree-ssa-math-opts.c: Likewise.
8163 * tree-ssa-phiopt.c: Likewise.
8164 * tree-ssa-pre.c: Likewise.
8165 * tree-ssa-reassoc.c: Likewise.
8166 * tree-ssa-sink.c: Likewise.
8167 * tree-ssa-tail-merge.c: Likewise.
8168 * tree-ssa-threadedge.c: Likewise.
8169 * tree-ssa-threadupdate.c: Likewise.
8170 * tree-switch-conversion.c: Likewise.
8171 * tree-tailcall.c: Likewise.
8172 * tree-vect-data-refs.c: Likewise.
8173 * tree-vect-loop.c: Likewise.
8174 * tree-vect-loop-manip.c: Likewise.
8175 * tree-vectorizer.c: Likewise.
8176 * tree-vrp.c: Likewise.
8177 * ubsan.c: Likewise.
8178 * value-prof.c: Likewise.
8179 * varasm.c: Likewise.
8180 * var-tracking.c: Likewise.
8181 * config/aarch64/aarch64-builtins.c: Likewise.
8182 * config/aarch64/aarch64.c: Likewise.
8183 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8184 * config/alpha/alpha.c: Likewise.
8185 * config/arc/arc.c: Likewise.
8186 * config/arm/arm.c: Likewise.
8187 * config/avr/avr.c: Likewise.
8188 * config/bfin/bfin.c: Likewise.
8189 * config/c6x/c6x.c: Likewise.
8190 * config/cr16/cr16.c: Likewise.
8191 * config/cris/cris.c: Likewise.
8192 * config/darwin.c: Likewise.
8193 * config/darwin-c.c: Likewise.
8194 * config/epiphany/epiphany.c: Likewise.
8195 * config/epiphany/mode-switch-use.c: Likewise.
8196 * config/epiphany/resolve-sw-modes.c: Likewise.
8197 * config/fr30/fr30.c: Likewise.
8198 * config/frv/frv.c: Likewise.
8199 * config/ft32/ft32.c: Likewise.
8200 * config/h8300/h8300.c: Likewise.
8201 * config/i386/i386.c: Likewise.
8202 * config/i386/winnt.c: Likewise.
8203 * config/ia64/ia64.c: Likewise.
8204 * config/iq2000/iq2000.c: Likewise.
8205 * config/lm32/lm32.c: Likewise.
8206 * config/m32c/m32c.c: Likewise.
8207 * config/m32r/m32r.c: Likewise.
8208 * config/m68k/m68k.c: Likewise.
8209 * config/mcore/mcore.c: Likewise.
8210 * config/mep/mep.c: Likewise.
8211 * config/microblaze/microblaze.c: Likewise.
8212 * config/mips/mips.c: Likewise.
8213 * config/mmix/mmix.c: Likewise.
8214 * config/mn10300/mn10300.c: Likewise.
8215 * config/moxie/moxie.c: Likewise.
8216 * config/msp430/msp430.c: Likewise.
8217 * config/nds32/nds32.c: Likewise.
8218 * config/nds32/nds32-cost.c: Likewise.
8219 * config/nds32/nds32-fp-as-gp.c: Likewise.
8220 * config/nds32/nds32-intrinsic.c: Likewise.
8221 * config/nds32/nds32-isr.c: Likewise.
8222 * config/nds32/nds32-md-auxiliary.c: Likewise.
8223 * config/nds32/nds32-memory-manipulation.c: Likewise.
8224 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8225 * config/nds32/nds32-predicates.c: Likewise.
8226 * config/nios2/nios2.c: Likewise.
8227 * config/nvptx/nvptx.c: Likewise.
8228 * config/pa/pa.c: Likewise.
8229 * config/pdp11/pdp11.c: Likewise.
8230 * config/rl78/rl78.c: Likewise.
8231 * config/rs6000/rs6000.c: Likewise.
8232 * config/rx/rx.c: Likewise.
8233 * config/s390/s390.c: Likewise.
8234 * config/sh/sh.c: Likewise.
8235 * config/sh/sh-mem.cc: Likewise.
8236 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8237 * config/sh/sh_treg_combine.cc: Likewise.
8238 * config/sparc/sparc.c: Likewise.
8239 * config/spu/spu.c: Likewise.
8240 * config/stormy16/stormy16.c: Likewise.
8241 * config/tilegx/tilegx.c: Likewise.
8242 * config/tilepro/tilepro.c: Likewise.
8243 * config/v850/v850.c: Likewise.
8244 * config/vax/vax.c: Likewise.
8245 * config/visium/visium.c: Likewise.
8246 * config/xtensa/xtensa.c: Likewise.
8248 2015-07-10 Richard Biener <rguenther@suse.de>
8250 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
8251 (decision_tree::gen_gimple): Likewise.
8252 (decision_tree::gen_generic): Likewise.
8254 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8257 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
8258 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
8260 2015-07-10 Jakub Jelinek <jakub@redhat.com>
8263 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
8264 or ORT_TASK contexts.
8265 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
8268 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8270 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
8273 2015-07-10 Tom de Vries <tom@codesourcery.com>
8275 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
8276 insert nit + 1 bound.
8278 2015-07-10 Richard Biener <rguenther@suse.de>
8280 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
8281 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
8282 (if_convertible_loop_p_1): For this always compute bb predicates.
8283 (if_convertible_loop_p): And free them.
8285 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8287 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
8290 2015-07-10 Richard Biener <rguenther@suse.de>
8292 PR tree-optimization/66823
8293 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
8296 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
8298 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
8299 to handle mips[32|64]r3 and mips[32|64]r5.
8301 2015-07-09 Jakub Jelinek <jakub@redhat.com>
8304 * tree-nested.c (get_static_chain): Or in a flag into
8305 info->static_chain_added.
8306 (get_frame_field, get_nonlocal_debug_decl): Likewise.
8307 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
8309 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
8310 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
8313 PR tree-optimization/66718
8314 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
8316 (vect_simd_lane_linear): New function.
8317 (vectorizable_simd_clone_call): Support using linear arguments for
8318 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
8320 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8323 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
8325 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
8327 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
8328 Use machine mode, not enum machine_mode in the prototype.
8330 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
8331 classify 128-bit floating point support.
8332 (FLOAT128_IBM_P): Likewise.
8333 (FLOAT128_VECTOR_P): Likewise.
8334 (FLOAT128_2REG_P): Likewise.
8335 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
8336 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
8337 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8338 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8340 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
8341 tests against TFmode/TDmode, since those modes do not use VSX
8343 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
8345 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
8346 tests against TFmode, etc.
8347 (invalid_e500_subreg): Add tests against IFmode/KFmode.
8348 (reg_offset_addressing_ok_p): Likewise.
8349 (rs6000_legitimate_offset_address_p): Likewise.
8350 (rs6000_legitimize_address): Likewise.
8351 (rs6000_legitimize_reload_address): Likewise.
8352 (rs6000_legitimate_address_p): Clean up tests against TFmode and
8353 TDmode to use the new helper macros, which will include IFmode and
8355 (rs6000_emit_move): Likewise.
8356 (rs6000_darwin64_record_arg_recurse): Likewise.
8357 (print_operand): Likewise.
8358 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
8359 that uses a single vector register as a vector and not as a
8360 floating point register in terms of the calling sequence.
8361 (rs6000_discover_homogeneous_aggregate): Likewise.
8362 (rs6000_return_in_memory): Likewise.
8363 (init_cumulative_args): Likewise.
8364 (rs6000_function_arg_boundary): Likewise.
8365 (rs6000_function_arg_advance_1): Likewise.
8366 (rs6000_function_arg): Likewise.
8367 (rs6000_pass_by_reference): Likewise.
8368 (rs6000_gimplify_va_arg): Likewise.
8369 (rs6000_secondary_reload_memory): Use machine_mode not enum
8371 (rs6000_split_multireg_move): Use new helper macros.
8372 (spe_func_has_64bit_regs_p): Likewise.
8373 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
8374 (output_toc): Use new helper macros.
8375 (rs6000_register_move_cost): Likewise.
8376 (rs6000_function_value): Add IEEE 128-bit floating point calling
8378 (rs6000_libcall_value): Likewise.
8379 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
8380 floating point support.
8381 (rs6000_vector_mode_supported_p): Likewise.
8383 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
8385 PR rtl-optimization/66782
8386 * lra-int.h (struct lra_insn_recog_data): Add comment about
8387 clobbered hard regs for arg_hard_regs.
8388 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
8389 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
8390 Add condition for processing used hard regs.
8391 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
8392 Process clobbered hard regs.
8394 2015-07-09 Michael Matz <matz@suse.de>
8396 * genmatch.c (fprintf_indent): New function.
8397 (operand::gen_transform): Add indent parameter.
8398 (expr::gen_transform, c_expr::gen_transform,
8399 capture::gen_transform): Ditto and use fprintf_indent.
8400 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
8401 (dt_operand::gen, dt_operand::gen_predicate,
8402 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
8403 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
8404 (decision_tree::gen_gimple): Adjust calls and indent generated
8406 (decision_tree::gen_generic): Ditto.
8407 (write_predicate): Ditto.
8409 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8412 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
8413 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
8414 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
8415 {GENERAL,SSE,MMX}_REG_P where appropriate.
8417 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8419 * lto-streamer.h: Don't include target.h and alloc-pool.h.
8420 * builtins.c: Adjust includes.
8421 * gimple.c: Likewise.
8422 * ipa-icf.c: Likewise.
8423 * lto-opts.c: Likewise.
8424 * ipa-reference.c: Likewise.
8425 * lto-section-out.c: Likewise.
8426 * lto-streamer-in.c: Likewise.
8427 * lto-streamer-out.c: Likewise.
8428 * opts-global.c: Likewise.
8429 * symtab.c: Likewise.
8430 * tree-chkp.c: Likewise.
8431 * tree-ssa-live.c: Likewise.
8432 * tree-streamer-in.c: Likewise.
8433 * tree-streamer-out.c: Likewise.
8434 * config/darwin.c: Likewise.
8435 * config/i386/winnt.c: Likewise.
8437 2015-07-09 Richard Biener <rguenther@suse.de>
8439 * genmatch.c (struct expr): Add force_single_use flag.
8440 (expr::expr): Add copy constructor.
8441 (capture_info::walk_match): Gather force_single_use captures.
8442 (expr::gen_transform): Use possibly NULLified sequence.
8443 (dt_simplify::gen): Apply single-use restrictions by NULLifying
8444 seq if any constrained expr is not single-use.
8445 (parser::parse_expr): Refactor to allow multiple flags. Handle
8446 's' flag to force an expression have a single-use if the pattern
8447 simplifies to more than one statement.
8448 * match.pd: Convert most single_use conditionals to :s flags.
8450 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8452 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
8453 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8454 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8456 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8458 * flags.h: Don't include flag-types.h or options.h.
8459 * opts-common.c: Adjust includes.
8460 * opts-global.c: Likewise.
8461 * common/config/epiphany/epiphany-common.c: Likewise.
8463 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8466 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
8469 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8472 * config/i386/i386.c (ix86_return_in_memory): Return true
8473 if int_size_in_bytes returns negative for IA MCU.
8475 2015-07-09 Marek Polacek <polacek@redhat.com>
8477 PR tree-optimization/66718
8478 * Makefile.in (OBJS): Add gimple-laddress.o.
8479 * passes.def: Schedule pass_laddress.
8480 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
8481 * tree-pass.h (make_pass_laddress): Declare.
8482 * gimple-laddress.c: New file.
8484 2015-07-09 Richard Biener <rguenther@suse.de>
8486 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
8488 2015-07-09 Richard Biener <rguenther@suse.de>
8490 PR tree-optimization/66807
8491 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
8493 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
8495 * function.c (stack_protect_epilogue): Use if rather than switch for
8496 check targetm.have_stack_protect_test.
8498 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8500 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
8501 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
8502 * config/arc/arc.h: Likewise.
8503 * config/arm/arm.h: Likewise.
8504 * config/bfin/bfin.h: Likewise.
8505 * config/epiphany/epiphany.h: Likewise.
8506 * config/frv/frv.h: Likewise.
8507 * config/ia64/ia64.h: Likewise.
8508 * config/iq2000/iq2000.h: Likewise.
8509 * config/lm32/lm32.h: Likewise.
8510 * config/m32r/m32r.h: Likewise.
8511 * config/mcore/mcore.h: Likewise.
8512 * config/mep/mep.h: Likewise.
8513 * config/microblaze/microblaze.h: Likewise.
8514 * config/mips/mips.h: Likewise.
8515 * config/mmix/mmix.h: Likewise.
8516 * config/mn10300/mn10300.h: Likewise.
8517 * config/nds32/nds32.h: Likewise.
8518 * config/nios2/nios2.h: Likewise.
8519 * config/pa/pa.h: Likewise.
8520 * config/rl78/rl78.h: Likewise.
8521 * config/sh/sh.h: Likewise.
8522 * config/sparc/sparc.h: Likewise.
8523 * config/stormy16/stormy16.h: Likewise.
8524 * config/tilegx/tilegx.h: Likewise.
8525 * config/tilepro/tilepro.h: Likewise.
8526 * config/v850/v850.h: Likewise.
8527 * config/xtensa/xtensa.h: Likewise.
8528 * doc/tm.texi: Regenerate.
8529 * doc/tm.texi.in: Adjust.
8530 * combine.c (simplify_set): Likewise.
8531 (simplify_comparison): Likewise.
8532 * expr.c (store_constructor): Likewise.
8533 * internal-fn.c (expand_arith_overflow): Likewise.
8534 * reload.c (push_reload): Likewise.
8535 (find_reloads): Likewise.
8536 (find_reloads_subreg_address): Likewise.
8537 * reload1.c (eliminate_regs_1): Likewise.
8538 * rtlanal.c (nonzero_bits1): Likewise.
8539 (num_sign_bit_copies1): Likewise.
8540 * simplify-rtx.c (simplify_truncation): Likewise.
8542 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8544 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
8545 of AUTO_INC_DEC with the preprocessor.
8546 * combine.c (combine_instructions): Likewise.
8547 (can_combine_p): Likewise.
8548 (try_combine): Likewise.
8549 * emit-rtl.c (try_split): Likewise.
8550 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8551 * lower-subreg.c (resolve_simple_move): Likewise.
8552 * lra.c (update_inc_notes): Likewise.
8553 * recog.c (asm_operand_ok): Likewise.
8554 (constrain_operands): Likewise.
8555 * regrename.c (scan_rtx_address): Likewise.
8556 * reload.c (update_auto_inc_notes): Likewise.
8557 (reg_inc_found_and_valid_p): Likewise.
8558 * reload1.c (reload): Likewise.
8559 (emit_input_reload_insns): Likewise.
8560 (delete_output_reload): Likewise.
8561 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8562 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8564 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8566 * rtl.h: Always define AUTO_INC_DEC.
8567 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
8568 * combine.c (combine_instructions): Likewise.
8569 (can_combine_p): Likewise.
8570 (try_combine): Likewise.
8571 * emit-rtl.c (try_split): Likewise.
8572 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8573 * lower-subreg.c (resolve_simple_move): Likewise.
8574 * lra.c (update_inc_notes): Likewise.
8575 * recog.c (asm_operand_ok): Likewise.
8576 (constrain_operands): Likewise.
8577 * regrename.c (scan_rtx_address): Likewise.
8578 * reload.c (update_auto_inc_notes): Likewise.
8579 (find_equiv_reg): Likewise.
8580 * reload1.c (reload): Likewise.
8581 (reload_as_needed): Likewise.
8582 (choose_reload_regs): Likewise.
8583 (emit_input_reload_insns): Likewise.
8584 (delete_output_reload): Likewise.
8585 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8586 * valtrack.c (cleanup_auto_inc_dec): Likewise.
8588 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8590 * combine.c (can_combine_def_p): Don't check the value of
8591 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
8592 (combinable_i3pat): Likewise.
8593 (mark_used_regs_combine): Likewise.
8594 * regrename.c (rename_chains): Likewise.
8595 * reload.c (find_reloads_address): Likewise.
8596 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8598 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8600 * combine.c (update_rsp_from_reg_equal): Don't check if
8601 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
8602 (reg_nonzero_bits_for_combine): Likewise.
8603 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
8605 * config/frv/frv.h: Likewise.
8606 * config/lm32/lm32.h: Likewise.
8607 * config/mep/mep.h: Likewise.
8608 * config/mips/mips.h: Likewise.
8609 * config/rs6000/rs6000.h: Likewise.
8610 * config/sh/sh.h: Likewise.
8611 * config/tilegx/tilegx.h (enum reg_class): Likewise.
8612 * config/tilepro/tilepro.h: Likewise.
8613 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
8614 * doc/tm.texi: Regenerate.
8615 * doc/tm.texi.in: Adjust.
8616 * rtlanal.c (nonzero_bits1): Likewise.
8618 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8620 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
8621 with the preprocessor.
8622 (combine_instructions): Likewise.
8623 (try_combine): Likewise.
8625 (distribute_notes): Likewise.
8627 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8629 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
8631 (simplify_set): Likewise.
8632 * cse.c (cse_insn): Likewise.
8633 * fold-const.c (fold_single_bit_test): Likewise.
8634 (fold_unary_loc): Likewise.
8635 * postreload.c (reload_cse_simplify_set): Likewise.
8636 (reload_cse_simplify_operands): Likewise.
8638 2015-07-08 Jiong Wang <jiong.wang@arm.com>
8640 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
8641 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
8643 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8646 * config/i386/x86intrin.h: Include <adxintrin.h> even if
8647 __iamcu__ is defined.
8649 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8651 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
8653 2015-07-08 Iain Sandoe <iain@codesourcery.com>
8656 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
8657 names from preservation.
8659 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
8662 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
8664 (function_arg_advance_32): Don't pass vectors in registers for
8666 (function_arg_32): Likewise.
8667 (ix86_return_in_memory): Don't return vectors in registers for
8670 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
8673 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
8674 hard regno live at the start of BB with incoming abnormal edges.
8675 * lra-lives.c (process_bb_lives): Ditto.
8677 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8680 * config/nvptx/mkoffload.c (main): Create an offload image only in
8681 64-bit configurations.
8683 2015-07-08 Martin Liska <mliska@suse.cz>
8686 * tree-sra.c (create_access_1): Call ctor without brackets.
8687 (create_artificial_child_access): Likewise.
8689 2015-07-08 Richard Biener <rguenther@suse.de>
8691 PR tree-optimization/66793
8692 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
8693 Properly split the block after stmts ending it.
8695 2015-07-08 Richard Biener <rguenther@suse.de>
8697 PR tree-optimization/66794
8698 * passes.c (execute_function_todo): Assert that post-dominators
8700 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
8701 Free post-dominators.
8703 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8705 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
8708 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8710 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
8711 more than or equal 8 and less than 32 when optimizing for size.
8713 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8715 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
8716 COSTS_N_INSNS (1) and increment it appropriately throughout the
8719 2015-07-08 Richard Biener <rguenther@suse.de>
8721 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
8723 2015-07-08 Alan Modra <amodra@gmail.com>
8725 * target.def (rtx_costs): Remove "code" param, add "mode".
8726 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
8727 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
8728 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
8729 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
8730 call. Track mode when given in rtx.
8731 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
8732 (default_address_cost): Pass Pmode to rtx_cost.
8733 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
8734 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
8736 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
8737 (notreg_cost): Add mode param. Use it.
8738 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
8739 mode param and pass to set_src_cost. Update all calls.
8740 (hash_scan_set): Formatting.
8741 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
8742 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
8744 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
8745 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
8746 emit_store_flag): Update set_src_cost and rtx_cost calls.
8747 * auto-inc-dec.c (attempt_change): Likewise.
8748 * calls.c (precompute_register_parameters): Likewise.
8749 * combine.c (expand_compound_operation, make_extraction,
8750 force_to_mode, distribute_and_simplify_rtx): Likewise.
8751 * dojump.c (prefer_and_bit_test): Likewise.
8752 * dse.c (find_shift_sequence): Likewise.
8753 * expr.c (compress_float_constant): Likewise.
8754 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
8755 * ifcvt.c (noce_try_sign_mask): Likewise.
8756 * loop-doloop.c (doloop_optimize): Likewise.
8757 * loop-invariant.c (create_new_invariant): Likewise.
8758 * lower-subreg.c (shift_cost, compute_costs): Likewise.
8759 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
8760 lshift_cheap_p): Likewise.
8761 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
8762 try_replace_in_use, reload_cse_move2add): Likewise.
8763 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
8765 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8766 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8767 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
8768 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
8769 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
8770 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
8772 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
8773 * config/arc/arc.c (arc_rtx_costs): Likewise.
8774 * config/arm/arm.c (arm_rtx_costs): Likewise.
8775 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
8776 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8777 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
8778 * config/cris/cris.c (cris_rtx_costs): Likewise.
8779 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
8780 * config/frv/frv.c (frv_rtx_costs): Likewise.
8781 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
8782 * config/i386/i386.c (ix86_rtx_costs): Likewise.
8783 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
8784 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
8785 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
8786 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
8787 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
8788 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
8789 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
8790 * config/mep/mep.c (mep_rtx_cost): Likewise.
8791 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
8792 * config/mips/mips.c (mips_rtx_costs): Likewise.
8793 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
8794 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
8795 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
8796 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
8797 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
8798 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
8799 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
8800 * config/pa/pa.c (hppa_rtx_costs): Likewise.
8801 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
8802 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
8803 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
8804 * config/s390/s390.c (s390_rtx_costs): Likewise.
8805 * config/sh/sh.c (sh_rtx_costs): Likewise.
8806 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
8807 * config/spu/spu.c (spu_rtx_costs): Likewise.
8808 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
8809 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
8810 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
8811 * config/v850/v850.c (v850_rtx_costs): Likewise.
8812 * config/vax/vax.c (vax_rtx_costs): Likewise.
8813 * config/visium/visium.c (visium_rtx_costs): Likewise.
8814 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
8815 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
8816 "code" param, and pass as outer_code to first rtx_cost call. Pass
8817 mode to rtx_cost calls.
8818 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
8820 (aarch64_rtx_costs_wrapper): Update.
8821 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
8822 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
8824 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
8826 (avr_operand_rtx_cost): Similarly.
8827 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
8828 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
8829 * config/mips/mips.c (mips_stack_address_p): Comment typo.
8830 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
8831 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
8832 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
8834 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
8835 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
8836 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
8837 * doc/tm.texi: Regenerate.
8839 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
8841 * tree-core.h: Include symtab.h.
8842 * rtl.h: Include hard-reg-set.h but not flags.h.
8843 (HARD_CONST): Remove condition compilation involving HARD_CONST since
8844 hard-reg-set.h is always included.
8845 * regs.h: Don't include hard-reg-set.h or rtl.h.
8846 * cfg.h: Include dominance.h.
8847 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
8848 * backend.h: New. Aggregate commonly used backend header files.
8849 * gimple-ssa.h: Don't include tree-hasher.h.
8850 * ssa.h: New. Aggregate commonly used SSA header files.
8851 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
8852 * sel-sched-ir.h: Flatten includes.
8853 * lra-int.h: Flatten completely.
8854 * sel-sched-dump.h: Flatten includes.
8855 * ira-int.h: Flatten includes.
8856 * gimple-streamer.h: Remove all includes.
8857 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
8858 * resource.h: Flatten hard-reg-set.h and df.h.
8859 * sched-int.h: Flatten insn-arrt.h and df.h.
8860 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
8861 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
8862 * genattrtab.c (write_header): Adjust generated includes.
8863 * genautomata.c (main): Likewise.
8864 * genconditions.c (write-header): Likewise.
8865 * genemit.c (main): Likewise.
8866 * gengtype.c (open_base_files): Likewise.
8867 * genopinit.c (main): Likewise.
8868 * genoutput.c (output_prologue): Likewise.
8869 * genpeep.c (main): Likewise.
8870 * genpreds.c (write_insn_preds_c): Likewise.
8871 * genrecog.c (write_header): Likewise.
8872 * alias.c: Adjust includes.
8874 * attribs.c: Likewise.
8875 * auto-inc-dec.c: Likewise.
8876 * auto-profile.c: Likewise.
8877 * bb-reorder.c: Likewise.
8878 * bt-load.c: Likewise.
8879 * builtins.c: Likewise.
8880 * caller-save.c: Likewise.
8881 * calls.c: Likewise.
8884 * cfganal.c: Likewise.
8885 * cfgbuild.c: Likewise.
8886 * cfgcleanup.c: Likewise.
8887 * cfgexpand.c: Likewise.
8888 * cfghooks.c: Likewise.
8889 * cfgloop.c: Likewise.
8890 * cfgloopanal.c: Likewise.
8891 * cfgloopmanip.c: Likewise.
8892 * cfgrtl.c: Likewise.
8893 * cgraph.c: Likewise.
8894 * cgraphbuild.c: Likewise.
8895 * cgraphclones.c: Likewise.
8896 * cgraphunit.c: Likewise.
8897 * cilk-common.c: Likewise.
8898 * combine-stack-adj.c: Likewise.
8899 * combine.c: Likewise.
8900 * compare-elim.c: Likewise.
8901 * convert.c: Likewise.
8902 * coverage.c: Likewise.
8903 * cppbuiltin.c: Likewise.
8904 * cprop.c: Likewise.
8906 * cselib.c: Likewise.
8907 * data-streamer-in.c: Likewise.
8908 * data-streamer-out.c: Likewise.
8909 * data-streamer.c: Likewise.
8910 * dbxout.c: Likewise.
8913 * debug.c: Likewise.
8914 * df-core.c: Likewise.
8915 * df-problems.c: Likewise.
8916 * df-scan.c: Likewise.
8918 * dojump.c: Likewise.
8919 * dominance.c: Likewise.
8920 * domwalk.c: Likewise.
8921 * double-int.c: Likewise.
8923 * dumpfile.c: Likewise.
8924 * dwarf2asm.c: Likewise.
8925 * dwarf2cfi.c: Likewise.
8926 * dwarf2out.c: Likewise.
8927 * emit-rtl.c: Likewise.
8928 * et-forest.c: Likewise.
8929 * except.c: Likewise.
8930 * explow.c: Likewise.
8931 * expmed.c: Likewise.
8933 * final.c: Likewise.
8934 * fixed-value.c: Likewise.
8935 * fold-const.c: Likewise.
8936 * function.c: Likewise.
8937 * fwprop.c: Likewise.
8938 * gcc-plugin.h: Likewise.
8939 * gcse-common.c: Likewise.
8941 * generic-match-head.c: Likewise.
8942 * ggc-page.c: Likewise.
8943 * gimple-builder.c: Likewise.
8944 * gimple-expr.c: Likewise.
8945 * gimple-fold.c: Likewise.
8946 * gimple-iterator.c: Likewise.
8947 * gimple-low.c: Likewise.
8948 * gimple-match-head.c: Likewise.
8949 * gimple-pretty-print.c: Likewise.
8950 * gimple-ssa-isolate-paths.c: Likewise.
8951 * gimple-ssa-strength-reduction.c: Likewise.
8952 * gimple-streamer-in.c: Likewise.
8953 * gimple-streamer-out.c: Likewise.
8954 * gimple-walk.c: Likewise.
8955 * gimple.c: Likewise.
8956 * gimplify-me.c: Likewise.
8957 * gimplify.c: Likewise.
8958 * godump.c: Likewise.
8959 * graph.c: Likewise.
8960 * graphite-blocking.c: Likewise.
8961 * graphite-dependences.c: Likewise.
8962 * graphite-interchange.c: Likewise.
8963 * graphite-isl-ast-to-gimple.c: Likewise.
8964 * graphite-optimize-isl.c: Likewise.
8965 * graphite-poly.c: Likewise.
8966 * graphite-scop-detection.c: Likewise.
8967 * graphite-sese-to-poly.c: Likewise.
8968 * graphite.c: Likewise.
8969 * haifa-sched.c: Likewise.
8970 * hw-doloop.c: Likewise.
8971 * ifcvt.c: Likewise.
8972 * init-regs.c: Likewise.
8973 * internal-fn.c: Likewise.
8974 * ipa-chkp.c: Likewise.
8975 * ipa-comdats.c: Likewise.
8976 * ipa-cp.c: Likewise.
8977 * ipa-devirt.c: Likewise.
8978 * ipa-icf-gimple.c: Likewise.
8979 * ipa-icf.c: Likewise.
8980 * ipa-inline-analysis.c: Likewise.
8981 * ipa-inline-transform.c: Likewise.
8982 * ipa-inline.c: Likewise.
8983 * ipa-polymorphic-call.c: Likewise.
8984 * ipa-profile.c: Likewise.
8985 * ipa-prop.c: Likewise.
8986 * ipa-pure-const.c: Likewise.
8987 * ipa-ref.c: Likewise.
8988 * ipa-reference.c: Likewise.
8989 * ipa-split.c: Likewise.
8990 * ipa-utils.c: Likewise.
8991 * ipa-visibility.c: Likewise.
8993 * ira-build.c: Likewise.
8994 * ira-color.c: Likewise.
8995 * ira-conflicts.c: Likewise.
8996 * ira-costs.c: Likewise.
8997 * ira-emit.c: Likewise.
8998 * ira-lives.c: Likewise.
9001 * langhooks.c: Likewise.
9003 * loop-doloop.c: Likewise.
9004 * loop-init.c: Likewise.
9005 * loop-invariant.c: Likewise.
9006 * loop-iv.c: Likewise.
9007 * loop-unroll.c: Likewise.
9008 * lower-subreg.c: Likewise.
9009 * lra-assigns.c: Likewise.
9010 * lra-coalesce.c: Likewise.
9011 * lra-constraints.c: Likewise.
9012 * lra-eliminations.c: Likewise.
9013 * lra-lives.c: Likewise.
9014 * lra-remat.c: Likewise.
9015 * lra-spills.c: Likewise.
9017 * lto-cgraph.c: Likewise.
9018 * lto-compress.c: Likewise.
9019 * lto-opts.c: Likewise.
9020 * lto-section-in.c: Likewise.
9021 * lto-section-out.c: Likewise.
9022 * lto-streamer-in.c: Likewise.
9023 * lto-streamer-out.c: Likewise.
9024 * lto-streamer.c: Likewise.
9026 * mode-switching.c: Likewise.
9027 * modulo-sched.c: Likewise.
9028 * omega.c: Likewise.
9029 * omp-low.c: Likewise.
9030 * optabs.c: Likewise.
9031 * opts-global.c: Likewise.
9032 * passes.c: Likewise.
9033 * plugin.c: Likewise.
9034 * postreload-gcse.c: Likewise.
9035 * postreload.c: Likewise.
9036 * predict.c: Likewise.
9037 * print-rtl.c: Likewise.
9038 * print-tree.c: Likewise.
9039 * profile.c: Likewise.
9041 * realmpfr.c: Likewise.
9042 * recog.c: Likewise.
9044 * reg-stack.c: Likewise.
9045 * regcprop.c: Likewise.
9046 * reginfo.c: Likewise.
9047 * regrename.c: Likewise.
9048 * regstat.c: Likewise.
9049 * reload.c: Likewise.
9050 * reload1.c: Likewise.
9051 * reorg.c: Likewise.
9052 * resource.c: Likewise.
9053 * rtl-chkp.c: Likewise.
9054 * rtlanal.c: Likewise.
9055 * rtlhooks.c: Likewise.
9056 * sanopt.c: Likewise.
9057 * sched-deps.c: Likewise.
9058 * sched-ebb.c: Likewise.
9059 * sched-rgn.c: Likewise.
9060 * sched-vis.c: Likewise.
9061 * sdbout.c: Likewise.
9062 * sel-sched-dump.c: Likewise.
9063 * sel-sched-ir.c: Likewise.
9064 * sel-sched.c: Likewise.
9066 * shrink-wrap.c: Likewise.
9067 * simplify-rtx.c: Likewise.
9068 * stack-ptr-mod.c: Likewise.
9070 * stor-layout.c: Likewise.
9071 * store-motion.c: Likewise.
9072 * stringpool.c: Likewise.
9073 * symtab.c: Likewise.
9074 * target-globals.c: Likewise.
9075 * targhooks.c: Likewise.
9076 * toplev.c: Likewise.
9077 * tracer.c: Likewise.
9078 * trans-mem.c: Likewise.
9079 * tree-affine.c: Likewise.
9080 * tree-browser.c: Likewise.
9081 * tree-call-cdce.c: Likewise.
9082 * tree-cfg.c: Likewise.
9083 * tree-cfgcleanup.c: Likewise.
9084 * tree-chkp-opt.c: Likewise.
9085 * tree-chkp.c: Likewise.
9086 * tree-chrec.c: Likewise.
9087 * tree-complex.c: Likewise.
9088 * tree-data-ref.c: Likewise.
9089 * tree-dfa.c: Likewise.
9090 * tree-diagnostic.c: Likewise.
9091 * tree-dump.c: Likewise.
9092 * tree-eh.c: Likewise.
9093 * tree-emutls.c: Likewise.
9094 * tree-if-conv.c: Likewise.
9095 * tree-inline.c: Likewise.
9096 * tree-into-ssa.c: Likewise.
9097 * tree-iterator.c: Likewise.
9098 * tree-loop-distribution.c: Likewise.
9099 * tree-nested.c: Likewise.
9100 * tree-nrv.c: Likewise.
9101 * tree-object-size.c: Likewise.
9102 * tree-outof-ssa.c: Likewise.
9103 * tree-parloops.c: Likewise.
9104 * tree-phinodes.c: Likewise.
9105 * tree-predcom.c: Likewise.
9106 * tree-pretty-print.c: Likewise.
9107 * tree-profile.c: Likewise.
9108 * tree-scalar-evolution.c: Likewise.
9109 * tree-sra.c: Likewise.
9110 * tree-ssa-address.c: Likewise.
9111 * tree-ssa-alias.c: Likewise.
9112 * tree-ssa-ccp.c: Likewise.
9113 * tree-ssa-coalesce.c: Likewise.
9114 * tree-ssa-copy.c: Likewise.
9115 * tree-ssa-copyrename.c: Likewise.
9116 * tree-ssa-dce.c: Likewise.
9117 * tree-ssa-dom.c: Likewise.
9118 * tree-ssa-dse.c: Likewise.
9119 * tree-ssa-forwprop.c: Likewise.
9120 * tree-ssa-ifcombine.c: Likewise.
9121 * tree-ssa-live.c: Likewise.
9122 * tree-ssa-loop-ch.c: Likewise.
9123 * tree-ssa-loop-im.c: Likewise.
9124 * tree-ssa-loop-ivcanon.c: Likewise.
9125 * tree-ssa-loop-ivopts.c: Likewise.
9126 * tree-ssa-loop-manip.c: Likewise.
9127 * tree-ssa-loop-niter.c: Likewise.
9128 * tree-ssa-loop-prefetch.c: Likewise.
9129 * tree-ssa-loop-unswitch.c: Likewise.
9130 * tree-ssa-loop.c: Likewise.
9131 * tree-ssa-math-opts.c: Likewise.
9132 * tree-ssa-operands.c: Likewise.
9133 * tree-ssa-phiopt.c: Likewise.
9134 * tree-ssa-phiprop.c: Likewise.
9135 * tree-ssa-pre.c: Likewise.
9136 * tree-ssa-propagate.c: Likewise.
9137 * tree-ssa-reassoc.c: Likewise.
9138 * tree-ssa-sccvn.c: Likewise.
9139 * tree-ssa-scopedtables.c: Likewise.
9140 * tree-ssa-sink.c: Likewise.
9141 * tree-ssa-strlen.c: Likewise.
9142 * tree-ssa-structalias.c: Likewise.
9143 * tree-ssa-tail-merge.c: Likewise.
9144 * tree-ssa-ter.c: Likewise.
9145 * tree-ssa-threadedge.c: Likewise.
9146 * tree-ssa-threadupdate.c: Likewise.
9147 * tree-ssa-uncprop.c: Likewise.
9148 * tree-ssa-uninit.c: Likewise.
9149 * tree-ssa.c: Likewise.
9150 * tree-ssanames.c: Likewise.
9151 * tree-stdarg.c: Likewise.
9152 * tree-streamer-in.c: Likewise.
9153 * tree-streamer-out.c: Likewise.
9154 * tree-streamer.c: Likewise.
9155 * tree-switch-conversion.c: Likewise.
9156 * tree-tailcall.c: Likewise.
9157 * tree-vect-data-refs.c: Likewise.
9158 * tree-vect-generic.c: Likewise.
9159 * tree-vect-loop-manip.c: Likewise.
9160 * tree-vect-loop.c: Likewise.
9161 * tree-vect-patterns.c: Likewise.
9162 * tree-vect-slp.c: Likewise.
9163 * tree-vect-stmts.c: Likewise.
9164 * tree-vectorizer.c: Likewise.
9165 * tree-vrp.c: Likewise.
9168 * ubsan.c: Likewise.
9169 * valtrack.c: Likewise.
9170 * value-prof.c: Likewise.
9171 * var-tracking.c: Likewise.
9172 * varasm.c: Likewise.
9173 * varpool.c: Likewise.
9174 * vmsdbgout.c: Likewise.
9175 * vtable-verify.c: Likewise.
9177 * wide-int.cc: Likewise.
9178 * xcoffout.c: Likewise.
9179 * config/aarch64/aarch64-builtins.c: Likewise.
9180 * config/aarch64/aarch64.c: Likewise.
9181 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9182 * config/alpha/alpha.c: Likewise.
9183 * config/arc/arc.c: Likewise.
9184 * config/arm/aarch-common.c: Likewise.
9185 * config/arm/arm-builtins.c: Likewise.
9186 * config/arm/arm-c.c: Likewise.
9187 * config/arm/arm.c: Likewise.
9188 * config/avr/avr-c.c: Likewise.
9189 * config/avr/avr-log.c: Likewise.
9190 * config/avr/avr.c: Likewise.
9191 * config/bfin/bfin.c: Likewise.
9192 * config/c6x/c6x.c: Likewise.
9193 * config/cr16/cr16.c: Likewise.
9194 * config/cris/cris.c: Likewise.
9195 * config/darwin-c.c: Likewise.
9196 * config/darwin.c: Likewise.
9197 * config/epiphany/epiphany.c: Likewise.
9198 * config/epiphany/mode-switch-use.c: Likewise.
9199 * config/epiphany/resolve-sw-modes.c: Likewise.
9200 * config/fr30/fr30.c: Likewise.
9201 * config/frv/frv.c: Likewise.
9202 * config/ft32/ft32.c: Likewise.
9203 * config/h8300/h8300.c: Likewise.
9204 * config/i386/i386-c.c: Likewise.
9205 * config/i386/i386.c: Likewise.
9206 * config/i386/msformat-c.c: Likewise.
9207 * config/i386/winnt-cxx.c: Likewise.
9208 * config/i386/winnt-stubs.c: Likewise.
9209 * config/i386/winnt.c: Likewise.
9210 * config/ia64/ia64-c.c: Likewise.
9211 * config/ia64/ia64.c: Likewise.
9212 * config/iq2000/iq2000.c: Likewise.
9213 * config/lm32/lm32.c: Likewise.
9214 * config/m32c/m32c-pragma.c: Likewise.
9215 * config/m32c/m32c.c: Likewise.
9216 * config/m32r/m32r.c: Likewise.
9217 * config/m68k/m68k.c: Likewise.
9218 * config/mcore/mcore.c: Likewise.
9219 * config/mep/mep-pragma.c: Likewise.
9220 * config/mep/mep.c: Likewise.
9221 * config/microblaze/microblaze-c.c: Likewise.
9222 * config/microblaze/microblaze.c: Likewise.
9223 * config/mips/mips.c: Likewise.
9224 * config/mmix/mmix.c: Likewise.
9225 * config/mn10300/mn10300.c: Likewise.
9226 * config/moxie/moxie.c: Likewise.
9227 * config/msp430/msp430-c.c: Likewise.
9228 * config/msp430/msp430.c: Likewise.
9229 * config/nds32/nds32-cost.c: Likewise.
9230 * config/nds32/nds32-fp-as-gp.c: Likewise.
9231 * config/nds32/nds32-intrinsic.c: Likewise.
9232 * config/nds32/nds32-isr.c: Likewise.
9233 * config/nds32/nds32-md-auxiliary.c: Likewise.
9234 * config/nds32/nds32-memory-manipulation.c: Likewise.
9235 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9236 * config/nds32/nds32-predicates.c: Likewise.
9237 * config/nds32/nds32.c: Likewise.
9238 * config/nios2/nios2.c: Likewise.
9239 * config/nvptx/nvptx.c: Likewise.
9240 * config/pa/pa.c: Likewise.
9241 * config/pdp11/pdp11.c: Likewise.
9242 * config/rl78/rl78-c.c: Likewise.
9243 * config/rl78/rl78.c: Likewise.
9244 * config/rs6000/rs6000-c.c: Likewise.
9245 * config/rs6000/rs6000.c: Likewise.
9246 * config/rx/rx.c: Likewise.
9247 * config/s390/s390-c.c: Likewise.
9248 * config/s390/s390.c: Likewise.
9249 * config/sh/sh-c.c: Likewise.
9250 * config/sh/sh-mem.cc: Likewise.
9251 * config/sh/sh.c: Likewise.
9252 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9253 * config/sh/sh_treg_combine.cc: Likewise.
9254 * config/sol2-c.c: Likewise.
9255 * config/sol2-cxx.c: Likewise.
9256 * config/sol2-stubs.c: Likewise.
9257 * config/sol2.c: Likewise.
9258 * config/sparc/sparc-c.c: Likewise.
9259 * config/sparc/sparc.c: Likewise.
9260 * config/spu/spu-c.c: Likewise.
9261 * config/spu/spu.c: Likewise.
9262 * config/stormy16/stormy16.c: Likewise.
9263 * config/tilegx/mul-tables.c: Likewise.
9264 * config/tilegx/tilegx-c.c: Likewise.
9265 * config/tilegx/tilegx.c: Likewise.
9266 * config/tilepro/mul-tables.c: Likewise.
9267 * config/tilepro/tilepro-c.c: Likewise.
9268 * config/tilepro/tilepro.c: Likewise.
9269 * config/v850/v850-c.c: Likewise.
9270 * config/v850/v850.c: Likewise.
9271 * config/vax/vax.c: Likewise.
9272 * config/visium/visium.c: Likewise.
9273 * config/vms/vms-c.c: Likewise.
9274 * config/vms/vms.c: Likewise.
9275 * config/vxworks.c: Likewise.
9276 * config/xtensa/xtensa.c: Likewise.
9278 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
9280 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
9281 Remove operand constraints. Change operand 2 predicate to
9282 nonmemory operand. Limit const_int values to mode bitsize. Only
9283 allow const_int values less than 32 when optimizing for size.
9284 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
9285 Remove operand constraints.
9286 (*bt<mode>): Use SImode for const_int values less than 32.
9287 (regmode): Remove mode attribute.
9289 2015-07-07 Anatoly Sokolov <aesok@post.ru>
9291 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9292 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
9293 moxie_legitimate_address_p): New functions.
9294 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9296 2015-07-07 Tom de Vries <tom@codesourcery.com>
9298 PR tree-optimization/66642
9299 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
9300 header comment. Rename split_edge variable to edge_at_split. Split
9301 exit edge to create new loop exit bb. Insert loop exit phis in new
9304 2015-07-07 Tom de Vries <tom@codesourcery.com>
9306 * tree-cfg.c (get_virtual_phi): New function.
9307 * tree-cfg.h (get_virtual_phi): Declare.
9308 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
9309 (rewrite_virtuals_into_loop_closed_ssa): New function.
9310 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
9312 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
9313 (transform_to_exit_first_loop_alt): Use
9314 rewrite_virtuals_into_loop_closed_ssa.
9316 2015-07-07 Richard Biener <rguenther@suse.de>
9318 * fold-const.c (fold_binary_loc): Move
9319 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
9320 * match.pd: ... here.
9321 Add (X * C1) % C2 -> 0 simplification pattern derived from
9324 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
9327 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
9328 change for target/65249.
9330 2015-07-07 Paulo Matos <pmatos@broadcom.com>
9332 * symtab.c (address_matters_1): Fix typo in comment above.
9333 (can_increase_alignment_p): Likewise.
9335 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9337 * function.c (free_after_compilation): Clear PROP_cfg in
9340 2015-07-07 Richard Biener <rguenther@suse.de>
9342 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
9344 (add_control_edge): Remove excessive vertical space in dumping.
9345 (process_ssa_edge_worklist): Simulate at most one statement and
9346 return whether we did. Do not simulate PHIs if they are in a
9347 BB not yet simulated.
9348 (ssa_propagate): Adjust to always drain the BB worklist whenever
9349 a BB is available there, likewise the VARYING edges list before
9350 the interesting edge list.
9352 2015-07-07 Christian Bruel <christian.bruel@st.com>
9355 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
9357 2015-07-07 Richard Biener <rguenther@suse.de>
9360 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
9363 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9365 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
9366 modes for operands 0 and 3. Use SImode for operands 2 and 3.
9367 Copy operand 0 to a temporary if !ext_register_operand. Remove
9368 ancient extract_bit_field workaround.
9369 (insv<mode>_1): Rename from mov<mode>_insv_1.
9370 (*insvqi): Rename from *movqi_insv_2.
9371 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
9372 for renamed insvsi_1.
9373 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
9375 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
9377 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
9378 call to nvptx_reorg_subreg.
9380 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
9382 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
9383 * graphite-dependencies.c, graphite-interchange.c,
9384 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
9385 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
9388 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
9390 * match.pd: Remove element_mode inside HONOR_*.
9391 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
9392 (~X | X -> -1, ~X ^ X -> -1): Merge.
9393 * tree.c (build_each_one_cst): New function.
9394 * tree.h (build_each_one_cst): Likewise.
9396 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9398 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9401 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
9403 * config.gcc <mips*-*-*>: Add fused-madd.opt.
9404 * config/mips/mips.opt (mfused-madd): Remove.
9405 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
9406 * config/mips/mips.h (TARGET_MIPS8000): New.
9407 (ISA_HAS_FP_MADD4_MSUB4): Remove.
9408 (ISA_HAS_FP_MADDF_MSUBF): Remove.
9409 (ISA_HAS_FP_MADD3_MSUB3): Remove.
9410 (ISA_HAS_NMADD4_NMSUB4): Remove.
9411 (ISA_HAS_NMADD3_NMSUB3): Remove.
9412 (ISA_HAS_FUSED_MADD4): New.
9413 (ISA_HAS_UNFUSED_MADD4): New.
9414 (ISA_HAS_FUSED_MADDF): New.
9415 (ISA_HAS_FUSED_MADD3): New.
9416 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
9417 (*fma<mode>4_madd3) New.
9418 (*fma<mode>4_madd4) New.
9419 (*fma<mode>4_maddf) New.
9421 (*fms<mode>4_msub3) New.
9422 (*fms<mode>4_msub4) New.
9424 (*fnma<mode>4_nmadd3) New.
9425 (*fnma<mode>4_nmadd4) New.
9427 (*fnms<mode>4_nmsub3) New.
9428 (*fnms<mode>4_nmsub4) New.
9429 (*madd4<mode>) Modify to be unfused only.
9430 (*msub4<mode>) Modify to be unfused only.
9431 (*nmadd4<mode>) Modify to be unfused only.
9432 (*nmsub4<mode>) Modify to be unfused only.
9433 (*madd3<mode>) Remove.
9434 (*msub3<mode>) Remove.
9435 (*nmadd3<mode>) Remove.
9436 (*nmsub3<mode>) Remove.
9437 (*nmadd3<mode>_fastmath) Remove.
9438 (*nmsub3<mode>_fastmath) Remove.
9439 (*nmadd4<mode>_fastmath) Update condition.
9440 (*nmsub4<mode>_fastmath) Update condition.
9442 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9445 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
9446 alignment attribute, exploring one level down for records and arrays.
9448 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9450 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
9451 modes for operands 0 and 1. Use SImode for operands 2 and 3.
9452 Copy operand 1 to a temporary if !ext_register_operand. Remove
9453 ancient extract_bit_field workaround.
9454 (*extv<mode>): Rename from *mov<mode>_extv_1.
9455 (*extvqi): Rename from *movqi_extv_1.
9456 (extzv<mode>): Rename from extzv. Use SWI248 modes for
9457 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
9458 to a temporary if !ext_register_operand. Remove ancient
9459 extract_bit_field workaround.
9460 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
9461 (*extzvqi): Rename from *movqi_extzv_2.
9462 (*testqi_ext_3): Remove modes from const_int_operand predicated
9463 operands. Add "n" constraint.
9464 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
9465 operand. Add "J" constraint.
9466 (*btsq, *btrq, *btcq peephole2s): Remove mode from
9467 const_0_to_63 predicated operand.
9468 (regmode): New insn attribute.
9469 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
9470 to nonmemory_operand. Use regmode insn attribute.
9471 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
9472 (*jcc_bt<mode>_mask): Remove mode from operand 3.
9473 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
9474 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
9475 operands. Use "N" constraint instead of "n".
9477 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9479 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
9481 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9484 * config/i386/i386.c (iamcu_cost): New.
9485 (m_IAMCU): Likewise.
9486 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
9487 (processor_target_table): Add an entry for "iamcu".
9488 (processor_alias_table): Likewise.
9489 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
9490 (ix86_adjust_cost): Likewise.
9491 (ia32_multipass_dfa_lookahead): Likewise.
9492 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
9493 * config/i386/x86-tune.def: Updated for m_IAMCU.
9495 2015-07-06 Richard Biener <rguenther@suse.de>
9497 PR tree-optimization/66772
9498 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
9499 values are available in the PHI node BB when there are
9500 still unexecutable edges.
9502 2015-07-06 Richard Biener <rguenther@suse.de>
9504 PR tree-optimization/66767
9505 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
9506 Make sure to build the alignment test on a SSA name without
9507 final alignment info valid only if the alignment test
9510 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
9513 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
9514 loop start when inserting LSETUP.
9516 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9519 * config/i386/i386.c (ix86_option_override_internal): Allow
9520 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
9522 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9524 * read-md.c (decimal_string): Rename to ...
9525 (md_decimal_string): ... this.
9526 (handle_enum): Reflect this.
9528 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9531 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
9533 2015-07-06 Richard Biener <rguenther@suse.de>
9536 * match.pd: Add missing constraint of y to REAL_CST in
9537 REAL_CST - x CMP y to y - CST CMP x simplification.
9539 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
9541 PR tree-optimization/66757
9542 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
9544 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
9545 Sandra Loosemore <sandra@codesourcery.com>
9547 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
9548 Delete extern declaration.
9549 (gprel_constant_p): Add extern declaration.
9550 * config/nios2/constraints.md ("S"): Use gprel_constant_p
9551 instead of nios2_symbol_ref_in_small_data_p.
9552 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
9553 (nios2_symbol_ref_in_small_data_p): Make static.
9554 (gprel_constant_p): Make non-static.
9556 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9558 * doc/fragments.texi (Target Fragment): Convert debian.org
9560 * doc/install.texi (Configuration): Ditto.
9562 2015-07-05 Jakub Jelinek <jakub@redhat.com>
9564 PR tree-optimization/66718
9565 * tree-vect-stmts.c (vectorizable_call): Replace uses of
9566 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
9568 PR tree-optimization/66718
9569 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
9570 vectorizable_load, vectorizable_condition): Move vectype,
9571 nunits, ncopies computation after checking what kind of statement
9574 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9576 * target-insns.def (extv, extzv, insv): New targetm instruction
9578 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
9580 * recog.c (simplify_while_replacing): Likewise.
9582 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9584 * target-insns.def (doloop_begin, doloop_end): New targetm
9585 instruction patterns.
9586 * loop-init.c: Include target.h.
9587 (pass_loop2::gate): Use the new targetm patterns instead of
9588 HAVE_*/gen_* interface.
9589 (pass_rtl_doloop::gate): Likewise.
9590 (pass_rtl_doloop::execute): Remove preprocessor condition.
9591 * hw-doloop.c: Build unconditionally.
9592 * loop-doloop.c: Likewise.
9593 (doloop_optimize): Use the new targetm patterns instead of
9594 HAVE_*/gen_* interface.
9595 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
9596 * modulo-sched.c (doloop_register_get): Likewise.
9598 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9600 * target-insns.def (clear_cache): New targetm instruction pattern.
9601 * builtins.c (expand_builtin___clear_cache): Use it instead of
9602 HAVE_*/gen_* interface.
9604 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9606 * target-insns.def (allocate_stack, check_stack, probe_stack)
9607 (probe_stack_address, split_stack_prologue, split_stack_space_check):
9608 New targetm instruction patterns.
9609 * explow.c (allocate_dynamic_stack_space): Use them instead of
9610 HAVE_*/gen_* interface.
9611 (emit_stack_probe): Likewise.
9612 (probe_stack_range): Likewise.
9613 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9615 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9617 * target-insns.def (stack_protect_set, stack_protect_test): New
9618 targetm instruction patterns.
9619 * cfgexpand.c (stack_protect_prologue): Use them instead of
9620 HAVE_*/gen_* interface.
9621 * function.c (stack_protect_epilogue): Likewise.
9623 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9625 * expr.h (gen_move_insn_uncast): Delete.
9626 * expr.c (gen_move_insn_uncast): Delete.
9628 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9630 * target-insns.def (restore_stack_block, restore_stack_function)
9631 (restore_stack_nonlocal, save_stack_block, save_stack_function)
9632 (save_stack_nonlocal): New targetm instruction patterns.
9633 * builtins.c (expand_builtin_apply): Use them instead of
9634 HAVE_*/gen_* interface.
9635 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
9637 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9639 * target-insns.def (trap): New targetm instruction pattern.
9640 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
9642 * explow.c (allocate_dynamic_stack_space): Likewise.
9643 * ifcvt.c (find_if_header): Likewise.
9645 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9647 * target-insns.def (prefetch): New targetm instruction pattern.
9648 * tree-ssa-loop-prefetch.c: Include targeth.
9649 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
9650 of HAVE_*/gen_* interface.
9651 * builtins.c (expand_builtin_prefetch): Likewise.
9652 * toplev.c (process_options): Likewise.
9654 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9656 * target-insns.def (untyped_call, untyped_return): New targetm
9657 instruction patterns.
9658 * builtins.c (expand_builtin_apply): Use them instead of
9659 HAVE_*/gen_* interface.
9660 (result_vector): Define unconditionally.
9662 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9664 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
9665 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
9666 (nonlocal_goto_receiver): New targetm instruction patterns.
9667 * builtins.c (expand_builtin_setjmp_setup): Use them instead
9668 of HAVE_*/gen_* interface.
9669 (expand_builtin_setjmp_receiver): Likewise.
9670 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
9671 * except.c (expand_dw2_landing_pad_for_region): Likewise.
9673 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
9675 * target.def: Add code_for_* hooks.
9676 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
9677 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
9678 * target-insns.def (casesi, tablejump): New targetm instruction
9680 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
9681 (do_tablejump): Likewise.
9682 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
9683 (expand_sjlj_dispatch_table): Likewise.
9684 * targhooks.c (default_case_values_threshold): Likewise.
9686 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
9688 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
9689 Use rtx_insn * instead of rtx.
9690 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
9691 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
9692 (nios2_call_tls_get_addr): Likewise.
9693 (nios2_emit_expensive_div): Likewise.
9694 (nios2_emit_move_sequence): Change return type to bool.
9695 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
9696 Change return type to bool.
9698 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9701 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
9703 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
9706 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
9707 of register_operand. Remove constraint.
9709 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
9711 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
9714 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
9716 * attribs.c (decl_attributes): Guard inform with the return value
9717 of the preceding warning.
9719 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9721 * doc/invoke.texi (moverride): Move to correct section.
9723 2015-07-03 Richard Biener <rguenther@suse.de>
9725 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
9727 (dt_operand::gen_gimple_expr): After valueizing operands
9728 re-canonicalize operand order for commutative tree codes.
9730 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
9733 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
9735 (__crc32w): Likewise.
9736 (__crc32d): Likewise.
9737 (__rdpmc): Likewise.
9738 (__rdtscp): Likewise.
9740 (_rdtscp): Likewise.
9741 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
9744 2015-07-03 Richard Biener <rguenther@suse.de>
9746 * fold-const.c (fold_mathfn_compare): Remove.
9747 (fold_inf_compare): Likewise.
9748 (fold_comparison): Move floating point comparison simplifications...
9749 * match.pd: ... to patterns here. Introduce simple_comparisons
9750 operator list and use it for patterns formerly in fold_comparison.
9752 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
9754 PR tree-optimization/66119
9755 * toplev.c (process_options): Don't set up default values for
9756 the sra_max_scalarization_size_{speed,size} parameters.
9757 * tree-sra (analyze_all_variable_accesses): If no values
9758 have been set for the sra_max_scalarization_size_{speed,size}
9759 parameters, call get_move_ratio to get target defaults.
9761 2015-07-03 Richard Biener <rguenther@suse.de>
9763 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
9764 * match.pd: ... here.
9766 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
9769 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
9770 is not actually the default on FreeBSD.
9772 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9774 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
9776 (CMPGE_8HI): Likewise.
9777 (CMPGE_4SI): Likewise.
9778 (CMPGE_2DI): Likewise.
9779 (CMPGE_U16QI): Likewise.
9780 (CMPGE_U8HI): Likewise.
9781 (CMPGE_U4SI): Likewise.
9782 (CMPGE_U2DI): Likewise.
9783 (CMPLE_16QI): Likewise.
9784 (CMPLE_8HI): Likewise.
9785 (CMPLE_4SI): Likewise.
9786 (CMPLE_2DI): Likewise.
9787 (CMPLE_U16QI): Likewise.
9788 (CMPLE_U8HI): Likewise.
9789 (CMPLE_U4SI): Likewise.
9790 (CMPLE_U2DI): Likewise.
9791 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9792 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
9793 ALTIVEC_BUILTIN_VEC_CMPLE.
9794 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
9795 floating-point vector modes.
9796 (vector_nlt<mode>): New define_expand.
9797 (vector_nltu<mode>): Likewise.
9798 (vector_ngt<mode>): Likewise.
9799 (vector_ngtu<mode>): Likewise.
9801 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9803 PR rtl-optimization/66706
9804 * combine.c (make_compound_operation): If an AND of SUBREG of
9805 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
9807 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
9809 * tree-pass.h (make_pass_ch_vect): New.
9810 * passes.def: Add pass_ch_vect just before pass_if_conversion.
9812 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
9813 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
9814 make_pass_ch_vect): New.
9815 (pass_ch): Extend ch_base.
9817 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
9818 (ch_base::copy_headers): ...here.
9820 2015-07-02 Richard Biener <rguenther@suse.de>
9822 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
9823 * fold-const.c (get_pointer_modulus_and_residue): Remove.
9824 (fold_binary_loc): Implement (T)ptr & CST in terms of
9825 get_pointer_alignment_1.
9826 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
9827 Make sure to build the alignment test on a SSA name without
9828 final alignment info valid only after the prologue.
9830 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
9832 * config/cris/cris.md ("epilogue"): Remove condition.
9833 ("prologue"): Ditto.
9835 2015-07-02 Richard Biener <rguenther@suse.de>
9837 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
9838 parameter to record a condition that is false.
9839 (record_conditions): When recording an extra NE_EXPR that is
9840 true also record a EQ_EXPR that is false.
9842 2015-07-02 Bin Cheng <bin.cheng@arm.com>
9844 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
9845 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
9846 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
9847 (set_iv, find_interesting_uses_address, add_candidate_1): New
9848 argument to alloc_iv.
9849 (find_interesting_uses_op, find_interesting_uses_cond): Don't
9850 duplicate struct iv.
9851 (free_loop_data): Don't free struct iv explicitly.
9852 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
9854 2015-07-01 DJ Delorie <dj@redhat.com>
9856 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
9858 (SUPPORTS_DISCRIMINATOR): Define.
9860 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9863 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
9864 there are no CALLs in the same pattern.
9866 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9868 PR rtl-optimization/61047
9869 * rtlanal.c (get_initial_register_offset): New function.
9870 (rtx_addr_can_trap_p_1): Check offsets of stack references.
9872 2015-07-01 Richard Biener <rguenther@suse.de>
9874 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
9875 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
9876 ~X CMP C -> X CMP' ~C to ...
9877 * match.pd: ... patterns here.
9879 2015-07-01 Nick Clifton <nickc@redhat.com>
9881 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
9882 a 16-bit value into a 20-bit memory slot.
9884 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9886 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9887 "aarch64_tiny", "aarch64_small", "aarch64_large",
9888 "aarch64_little_endian", "aarch64_big_endian".
9890 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9892 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
9893 Document "aarch64_small_fpic".
9895 2015-07-01 Jiong Wang <jiong.wang@arm.com>
9897 * configure.ac: Add check for aarch64 assembler -fpic relocation
9899 * configure: Regenerate.
9900 * config.in: Regenerate.
9901 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
9902 to -fPIC if not support of -fpic relocation modifier in assembler.
9904 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
9907 * rtl.c (classify_insn): Handle returns in PARALLELs.
9909 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
9912 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
9913 to true if the function is nested and if not optimizing.
9914 (convert_local_omp_clauses): Initialize need_frame to true if the
9915 function contains nested functions and if not optimizing.
9917 2015-07-01 Richard Biener <rguenther@suse.de>
9919 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
9920 (X & Y) ^ Y -> ~X & Y transforms to ...
9921 * match.pd: ... here.
9923 2015-07-01 Richard Biener <rguenther@suse.de>
9925 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
9926 of converts to avoid uninteresting noise from the conversion
9927 simplifying patterns.
9929 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
9931 * config/c6x/c6x.c (try_rename_operands): Do not depend on
9932 gcc_assert evaluating its argument for side-effect.
9934 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
9937 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
9940 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9942 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
9943 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
9944 (hash_scc): Add this_ref_p and ref_p parameters and pass them
9945 to the inner DFS walk.
9947 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9949 * target-insns.def (jump): New targetm instruction pattern.
9950 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
9951 instead of gen_jump.
9952 (fix_up_crossing_landing_pad): Likewise.
9953 (add_labels_and_missing_jumps): Likewise.
9954 (fix_crossing_conditional_branches): Likewise.
9955 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9956 (force_nonfallthru_and_redirect): Likewise.
9957 * cse.c (cse_insn): Likewise.
9958 * expmed.c (expand_divmod): Likewise.
9959 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
9960 * haifa-sched.c (init_before_recovery): Likewise.
9961 (sched_create_recovery_edges): Likewise.
9962 * ifcvt.c (find_cond_trap): Likewise.
9963 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
9964 (expand_float, expand_fix): Likewise.
9965 * stmt.c (emit_jump): Likewise.
9967 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9969 * defaults.h (HAVE_load_multiple, gen_load_multiple)
9970 (HAVE_store_multiple, gen_store_multiple): Delete.
9971 * target-insns.def (load_multiple, store_multiple): New targetm
9972 instruction patterns.
9973 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
9974 of HAVE_*/gen_* interface.
9976 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9978 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
9979 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
9980 (gen_mem_signal_fence): Delete.
9981 * target-insns.def (mem_signal_fence, mem_thread_fence)
9982 (memory_barrier): New targetm instruction patterns.
9983 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
9985 (expand_mem_signal_fence): Likewise.
9987 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9989 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
9990 * target-insns.def (epilogue, prologue, sibcall_prologue): New
9991 targetm instruction patterns.
9992 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
9994 * calls.c (expand_call): Likewise.
9995 * cfgrtl.c (cfg_layout_finalize): Likewise.
9996 * df-scan.c (df_get_entry_block_def_set): Likewise.
9997 (df_get_exit_block_use_set): Likewise.
9998 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
9999 * final.c (final_start_function): Likewise.
10000 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10001 (reposition_prologue_and_epilogue_notes): Likewise.
10002 * reorg.c (find_end_label): Likewise.
10003 * toplev.c (process_options): Likewise.
10005 2015-06-30 David Malcolm <dmalcolm@redhat.com>
10007 * typed-splay-tree.h: New file.
10009 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
10012 * lra-int.h (lra_substitute_pseudo): Add a parameter.
10013 (lra_substitute_pseudo_within_insn): Ditto.
10014 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
10016 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
10017 to lra_substitute_pseudo.
10018 * lra-lives.c (process_bb_lives): Add an argument to
10019 lra_substitute_pseudo_within_insn call.
10020 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
10021 argument to lra_substitute_pseudo and
10022 lra_substitute_pseudo_within_insn calls.
10023 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
10025 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10027 * configure: Regenerated.
10029 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10031 * config.gcc: Support i[34567]86-*-elfiamcu target.
10032 * config/i386/iamcu.h: New.
10033 * config/i386/i386.opt: Add -miamcu.
10034 * doc/invoke.texi: Document -miamcu.
10035 * common/config/i386/i386-common.c (ix86_handle_option): Turn
10036 off x87/MMX/SSE/AVX codegen for -miamcu.
10037 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10038 __iamcu/__iamcu__ for -miamcu.
10039 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
10040 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
10041 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
10042 * config/i386/i386.c (ix86_option_override_internal): Ignore and
10043 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
10044 MCU by default. Default long double to 64-bit for Intel MCU.
10045 Turn on -freg-struct-return for Intel MCU. Issue an error when
10046 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
10048 (function_arg_advance_32): Pass value whose size is no larger
10049 than 8 bytes in registers for Intel MCU.
10050 (function_arg_32): Likewise.
10051 (ix86_return_in_memory): Return value whose size is no larger
10052 than 8 bytes in registers for Intel MCU.
10053 (iamcu_alignment): New function.
10054 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
10056 (ix86_local_alignment): Don't increase alignment for Intel MCU.
10057 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
10060 2015-06-30 Marek Polacek <polacek@redhat.com>
10062 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
10063 both operands of the resulting expression.
10065 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
10066 the final expression with the operand's type and then convert
10067 it to the type of the expression.
10069 2015-06-30 Richard Biener <rguenther@suse.de>
10071 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
10072 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
10073 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
10074 * match.pd: ... to patterns here.
10076 2015-06-30 Richard Biener <rguenther@suse.de>
10078 PR tree-optimization/66704
10079 * tree-vect-data-refs.c (vect_setup_realignment): Use
10080 make_ssa_name for non-SSA name source.
10082 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10084 PR middle-end/66702
10085 * omp-low.c (simd_clone_adjust): Handle addressable linear
10086 or uniform parameters or non-gimple type uniform parameters.
10088 2015-06-30 Richard Biener <rguenther@suse.de>
10090 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
10091 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
10092 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
10093 * match.pd: ... here.
10094 Add a few cases of A - B -> A + (-B) when B "easily" negates.
10095 Move (x & y) | x -> x and friends before
10096 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
10098 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10100 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
10101 -mfix-ut699 is not specified.
10102 (leon3_load): Rename into...
10103 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
10106 2015-06-30 Marek Polacek <polacek@redhat.com>
10108 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
10109 * match.pd: ... here.
10111 2015-06-30 Richard Biener <rguenther@suse.de>
10113 * target-insns.def (canonicalize_funcptr_for_compare): Add.
10114 * fold-const.c (build_range_check): Replace uses of
10115 HAVE_canonicalize_funcptr_for_compare.
10116 (fold_widened_comparison): Likewise.
10117 (fold_sign_changed_comparison): Likewise.
10118 * dojump.c: Include "target.h".
10119 (do_compare_and_jump): Replace uses of
10120 HAVE_canonicalize_funcptr_for_compare and
10121 gen_canonicalize_funcptr_for_compare.
10122 * expr.c (do_store_flag): Likewise.
10124 2015-06-30 Tom de Vries <tom@codesourcery.com>
10126 PR tree-optimization/66652
10127 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
10128 max_loop_iterations to determine if nit + 1 overflows.
10130 2015-06-30 Richard Biener <rguenther@suse.de>
10132 * tree-vrp.c (register_edge_assert_for_2): Also register
10133 asserts for dominating conversion results.
10135 2015-06-30 Bin Cheng <bin.cheng@arm.com>
10137 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
10138 field in struct iv.
10140 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
10143 * configure.ac: Fix filds and fildq test for 64-bit.
10144 * configure: Regenerated.
10146 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
10148 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
10149 (nvptx_reorg): Here. Keep the non-subreg pieces.
10151 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
10153 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
10154 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10156 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
10158 * config/i386/i386.md (*jcc_1): Use %! in asm template.
10159 Set attribute "length_nobnd" instead of "length".
10162 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
10164 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
10166 * config/nios2/nios2.c (nios2_delegitimize_address): Make
10167 assert less restrictive.
10169 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10172 * cgraphunit.c (cgraph_node::finalize_function): Do not call
10173 do_warn_unused_parameter.
10174 * function.c (do_warn_unused_parameter): Move from here.
10175 * function.h (do_warn_unused_parameter): Do not declare.
10177 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10180 * gcc.target/arm/armv-sync-comp-swap.c: New.
10181 * gcc.target/arm/armv-sync-op-acquire.c: New.
10182 * gcc.target/arm/armv-sync-op-full.c: New.
10183 * gcc.target/arm/armv-sync-op-release.c: New.
10185 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10188 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
10189 initial acquire barrier with final barrier.
10191 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10194 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
10195 initial acquire barrier with final barrier.
10197 2015-06-29 Richard Henderson <rth@redhat.com>
10199 * config/i386/constraints.md (Bf): New constraint.
10200 * config/i386/i386-c.c (ix86_target_macros): Define
10201 __GCC_ASM_FLAG_OUTPUTS__.
10202 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
10204 * doc/extend.texi (FlagOutputOperands): Document them.
10206 2015-06-29 Jiong Wang <jiong.wang@arm.com>
10208 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
10209 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
10211 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
10212 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
10213 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
10214 (aarch64_symbol_context): Ditto.
10215 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
10216 and use new pattern name.
10217 (aarch64_expand_mov_immediate): Ditto.
10218 (aarch64_print_operand): Ditto.
10219 (aarch64_classify_tls_symbol): Ditto.
10221 2015-06-29 Marek Polacek <polacek@redhat.com>
10222 Marc Glisse <marc.glisse@inria.fr>
10224 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
10225 * match.pd: ... pattern here.
10227 2015-06-29 Tom de Vries <tom@codesourcery.com>
10229 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
10230 function structure.
10232 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10234 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
10235 feature description, split out the native option, add a link to
10236 the feature documentation, rearrange and slightly rewrite text.
10237 (Aarch64 options, -mcpu): Likewise.
10238 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
10239 +rdma implies Adv. SIMD.
10241 2015-06-29 Marek Polacek <polacek@redhat.com>
10244 * function.c (stack_protect_epilogue): Remove a cast to int.
10245 * doc/invoke.texi: Update -Wswitch-bool description.
10247 2015-06-29 Richard Biener <rguenther@suse.de>
10249 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
10250 * fold-const.c (fold_binary_loc): Move &A - &B simplification
10251 via ptr_difference_const ...
10252 * match.pd: ... here.
10253 When matching (X ^ Y) == Y also match with swapped operands.
10255 2015-06-29 Richard Biener <rguenther@suse.de>
10257 * lto-streamer.h (LTO_major_version): Bump to 5.
10259 2015-06-29 Richard Biener <rguenther@suse.de>
10261 PR tree-optimization/66677
10262 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
10263 STMT_VINFO_VEC_STMT clobbering less strict.
10265 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10267 PR middle-end/64130
10268 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
10269 division, compute max and min when value ranges for dividend and
10270 divisor are available.
10272 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
10273 Sandra Loosemore <sandra@codesourcery.com>
10275 * regrename.h (regrename_do_replace): Change to return bool.
10276 * regrename.c (rename_chains): Check return value of
10277 regname_do_replace.
10278 (regrename_do_replace): Re-validate the modified insns and
10279 return bool status.
10280 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10281 Update to match rename_chains changes.
10282 * config/c6x/c6x.c (try_rename_operands): Assert that
10283 regrename_do_replace returns true.
10285 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
10287 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
10288 operand 2 here. Use copy_addr_to_reg to copy non-index
10289 register operand 2 to a temporary.
10290 (<mode>_stx): Ditto for operand 1.
10291 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
10292 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
10293 (ix86_store_bounds): Ditto.
10295 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
10297 * print-tree.c (print_node) [TREE_VEC]: Print its length.
10299 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
10301 * gimple.c (gimple_call_set_fndecl): Remove.
10302 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
10303 build1_loc directly instead of build_fold_addr_expr_loc.
10305 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10307 * hash-map.h (hash_map::traverse): Use the definition of the
10308 Key typedef rather than the typedef itself.
10310 2015-06-26 Martin Jambor <mjambor@suse.cz>
10313 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
10314 NULL instead of calling dump_enabled_p.
10316 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10318 * config/aarch64/aarch64.opt: (override): New.
10319 * doc/invoke.texi (override): Document.
10320 * config/aarch64/aarch64.c (aarch64_flag_desc): New
10321 (aarch64_fusible_pairs): Likewise.
10322 (aarch64_tuning_flags): Likewise.
10323 (aarch64_tuning_override_function): Likewise.
10324 (aarch64_tuning_override_functions): Likewise.
10325 (aarch64_parse_one_option_token): Likewise.
10326 (aarch64_parse_boolean_options): Likewise.
10327 (aarch64_parse_fuse_string): Likewise.
10328 (aarch64_parse_tune_string): Likewise.
10329 (aarch64_parse_one_override_token): Likewise.
10330 (aarch64_parse_override_string): Likewise.
10331 (aarch64_override_options): Parse the -override string if it
10334 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10336 * config/aarch64/aarch64-protos.h (tune_params): Remove
10337 const from members.
10338 (aarch64_tune_params): Remove const, change to no longer be
10340 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
10341 change to no longer be a pointer, initialize to generic_tunings.
10342 (aarch64_min_divisions_for_recip_mul): Change dereference of
10343 aarch64_tune_params to member access.
10344 (aarch64_reassociation_width): Likewise.
10345 (aarch64_rtx_mult_cost): Likewise.
10346 (aarch64_address_cost): Likewise.
10347 (aarch64_branch_cost): Likewise.
10348 (aarch64_rtx_costs): Likewise.
10349 (aarch64_register_move_cost): Likewise.
10350 (aarch64_memory_move_cost): Likewise.
10351 (aarch64_sched_issue_rate): Likewise.
10352 (aarch64_builtin_vectorization_cost): Likewise.
10353 (aarch64_override_options): Take a copy of the selected tuning
10354 struct in to aarch64_tune_params, rather than just setting
10355 a pointer, change dereferences of aarch64_tune_params to member
10357 (aarch64_override_options_after_change): Change dereferences of
10358 aarch64_tune_params to member access.
10359 (aarch64_macro_fusion_p): Likewise.
10360 (aarch_macro_fusion_pair_p): Likewise.
10361 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
10363 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10365 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
10366 (aarch64_tune_flags): Likewise.
10367 (AARCH64_TUNE_FMA_STEERING): Likewise.
10368 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
10369 to AARCH64_FL_USE_FMA_STEERING_PASS.
10370 (cortex-a57.cortex-a53): Likewise.
10371 (cortex-a72): Use cortexa72_tunings.
10372 (cortex-a72.cortex-a53): Likewise.
10373 (exynos-m1): Likewise.
10374 * config/aarch64/aarch64-protos.h (tune_params): Add
10375 a field: extra_tuning_flags.
10376 * config/aarch64/aarch64-tuning-flags.def: New.
10377 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
10378 (aarch64_extra_tuning_flags): Likewise.
10379 (aarch64_tune_params): Declare here.
10380 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
10381 (cortexa53_tunings): Likewise.
10382 (cortexa57_tunings): Likewise.
10383 (thunderx_tunings): Likewise.
10384 (xgene1_tunings): Likewise.
10385 (cortexa72_tunings): New.
10386 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
10387 (gate): Check against aarch64_tune_params.
10388 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
10391 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10393 * config/aarch64/aarch64-fusion-pairs.def: New.
10394 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
10395 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
10396 aarch64_fusion_pairs.
10397 (AARCH64_FUSE_MOV_MOVK): Likewise.
10398 (AARCH64_FUSE_ADRP_ADD): Likewise.
10399 (AARCH64_FUSE_MOVK_MOVK): Likewise.
10400 (AARCH64_FUSE_ADRP_LDR): Likewise.
10401 (AARCH64_FUSE_CMP_BRANCH): Likewise.
10403 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10405 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
10406 SYMBOL_SMALL_GOT_28K.
10407 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
10408 relocation modifiers.
10409 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
10410 (ldr_got_small_28k_<mode>): New.
10411 (ldr_got_small_28k_sidi): New.
10412 * config/aarch64/iterators.md (got_modifier): New mode iterator.
10413 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
10414 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10415 SYMBOL_SMALL_GOT_28K.
10416 (aarch64_rtx_costs): Add costs for new instruction sequences.
10417 (initialize_aarch64_code_model): Initialize new model.
10418 (aarch64_classify_symbol): Recognize new model and new symbol classification.
10419 (aarch64_asm_preferred_eh_data_format): Support new model.
10420 (aarch64_load_symref_appropriately): Generate new instruction
10421 sequences for -fpic.
10422 (TARGET_USE_PSEUDO_PIC_REG): New definition.
10423 (aarch64_use_pseudo_pic_reg): New function.
10425 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10427 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10428 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
10429 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
10430 (aarch64_expand_mov_immediate): Ditto.
10431 (aarch64_print_operand): Ditto.
10432 (aarch64_classify_symbol): Ditto.
10434 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
10436 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
10438 2015-06-26 Bin Cheng <bin.cheng@arm.com>
10441 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
10442 assertion failed. Remove assertion itself.
10444 2015-06-26 Richard Biener <rguenther@suse.de>
10446 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
10447 and -A CMP CST -> A CMP -CST which is redundant with a pattern
10449 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
10450 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
10451 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
10452 * match.pd: ... patterns here.
10454 2015-06-26 Marek Polacek <polacek@redhat.com>
10456 * match.pd ((x | y) & ~(x & y) -> x ^ y,
10457 (x | y) & (~x ^ y) -> x & y): New patterns.
10459 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10461 * rtl.h (emit): Add an optional boolean parameter to control
10462 whether barriers are emitted.
10463 * emit-rtl.c (emit): Likewise.
10464 * gensupport.c (get_emit_function): Return null rather than "emit".
10465 * genemit.c (gen_emit_seq): Handle the null return value.
10466 Don't emit barriers after the final instruction in the sequence.
10467 * gentarget-def.c (main): Don't emit barriers after the instruction.
10469 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10471 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
10472 TARGET_UNIFIED_ASM.
10474 2015-06-26 Richard Biener <rguenther@suse.de>
10476 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
10478 2015-06-26 Richard Biener <rguenther@suse.de>
10480 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
10481 irrespective on whether the inner operation has a single use
10482 of both off are constant.
10484 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
10485 Segher Boessenkool <segher@kernel.crashing.org>
10488 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
10489 before doing PUT_MODE or PUT_CODE on operands to avoid
10490 in-place RTX modification.
10492 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10494 * gentarget-def.c (def_target_insn): Cast return of strtol to
10497 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10499 * gimple.h (gimple_call_set_fn): Move inline function.
10500 * gimple.c (gimple_call_set_fn): Relocate here.
10502 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
10506 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
10507 the replacement insn will work.
10509 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10511 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
10514 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10516 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
10517 * cgraph.h: Include ipa-ref.h and plugin-api.h.
10518 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
10519 (symtab_node::address_can_be_compared_p): Move function.
10520 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
10522 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
10523 * auto-profile.c: Likewise.
10524 * bb-reorder.c: Likewise.
10525 * builtins.c: Likewise.
10526 * calls.c: Likewise.
10527 * cfgexpand.c: Likewise.
10528 * cgraphbuild.c: Likewise.
10529 * cgraphclones.c: Likewise.
10530 * cgraphunit.c: Likewise.
10531 * combine.c: Likewise.
10532 * coverage.c: Likewise.
10533 * data-streamer-in.c: Likewise.
10534 * data-streamer-out.c: Likewise.
10535 * data-streamer.c: Likewise.
10536 * dbxout.c: Likewise.
10537 * dwarf2out.c: Likewise.
10538 * except.c: Likewise.
10539 * expr.c: Likewise.
10540 * final.c: Likewise.
10541 * fold-const.c: Likewise.
10542 * ggc-page.c: Likewise.
10543 * gimple-fold.c: Likewise.
10544 * gimple-iterator.c: Likewise.
10545 * gimple-pretty-print.c: Likewise.
10546 * gimple-streamer-in.c: Likewise.
10547 * gimple-streamer-out.c: Likewise.
10548 * gimple.c: Likewise.
10549 * gimplify.c: Likewise.
10550 * ipa-chkp.c: Likewise.
10551 * ipa-comdats.c: Likewise.
10552 * ipa-cp.c: Likewise.
10553 * ipa-devirt.c: Likewise.
10554 * ipa-icf-gimple.c: Likewise.
10555 * ipa-icf.c: Likewise.
10556 * ipa-inline-analysis.c: Likewise.
10557 * ipa-inline-transform.c: Likewise.
10558 * ipa-inline.c: Likewise.
10559 * ipa-polymorphic-call.c: Likewise.
10560 * ipa-profile.c: Likewise.
10561 * ipa-prop.c: Likewise.
10562 * ipa-pure-const.c: Likewise.
10563 * ipa-ref.c: Likewise.
10564 * ipa-reference.c: Likewise.
10565 * ipa-split.c: Likewise.
10566 * ipa-utils.c: Likewise.
10567 * ipa-visibility.c: Likewise.
10569 * langhooks.c: Likewise.
10570 * lto-cgraph.c: Likewise.
10571 * lto-compress.c: Likewise.
10572 * lto-opts.c: Likewise.
10573 * lto-section-in.c: Likewise.
10574 * lto-section-out.c: Likewise.
10575 * lto-streamer-in.c: Likewise.
10576 * lto-streamer-out.c: Likewise.
10577 * lto-streamer.c: Likewise.
10578 * omp-low.c: Likewise.
10579 * opts-global.c: Likewise.
10580 * passes.c: Likewise.
10581 * predict.c: Likewise.
10582 * print-tree.c: Likewise.
10583 * profile.c: Likewise.
10585 * sanopt.c: Likewise.
10586 * stor-layout.c: Likewise.
10587 * symtab.c: Likewise.
10588 * toplev.c: Likewise.
10589 * trans-mem.c: Likewise.
10590 * tree-cfg.c: Likewise.
10591 * tree-chkp.c: Likewise.
10592 * tree-eh.c: Likewise.
10593 * tree-emutls.c: Likewise.
10594 * tree-inline.c: Likewise.
10595 * tree-nested.c: Likewise.
10596 * tree-parloops.c: Likewise.
10597 * tree-pretty-print.c: Likewise.
10598 * tree-profile.c: Likewise.
10599 * tree-sra.c: Likewise.
10600 * tree-ssa-alias.c: Likewise.
10601 * tree-ssa-live.c: Likewise.
10602 * tree-ssa-loop-ivcanon.c: Likewise.
10603 * tree-ssa-loop-ivopts.c: Likewise.
10604 * tree-ssa-pre.c: Likewise.
10605 * tree-ssa-sccvn.c: Likewise.
10606 * tree-ssa-strlen.c: Likewise.
10607 * tree-ssa-structalias.c: Likewise.
10608 * tree-streamer-in.c: Likewise.
10609 * tree-streamer-out.c: Likewise.
10610 * tree-streamer.c: Likewise.
10611 * tree-switch-conversion.c: Likewise.
10612 * tree-tailcall.c: Likewise.
10613 * tree-vect-data-refs.c: Likewise.
10614 * tree-vect-stmts.c: Likewise.
10615 * tree-vectorizer.c: Likewise.
10616 * tree.c: Likewise.
10617 * tsan.c: Likewise.
10618 * ubsan.c: Likewise.
10619 * value-prof.c: Likewise.
10620 * varasm.c: Likewise.
10621 * varpool.c: Likewise.
10622 * config/arm/arm.c: Likewise.
10623 * config/bfin/bfin.c: Likewise.
10624 * config/c6x/c6x.c: Likewise.
10625 * config/cris/cris.c: Likewise.
10626 * config/darwin-c.c: Likewise.
10627 * config/darwin.c: Likewise.
10628 * config/i386/i386.c: Likewise.
10629 * config/i386/winnt.c: Likewise.
10630 * config/microblaze/microblaze.c: Likewise.
10631 * config/mips/mips.c: Likewise.
10632 * config/rs6000/rs6000.c: Likewise.
10633 * config/rx/rx.c: Likewise.
10634 * config/s390/s390.c: Likewise.
10635 * config/tilegx/mul-tables.c: Likewise.
10637 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10639 * config/aarch64/aarch64.c, config/alpha/alpha.c,
10640 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
10641 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
10642 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
10643 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10644 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10645 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10646 config/microblaze/microblaze.c, config/mips/mips.c,
10647 config/mmix/mmix.c, config/mn10300/mn10300.c,
10648 config/moxie/moxie.c, config/msp430/msp430.c,
10649 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10650 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10651 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10652 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10653 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10654 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10655 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
10656 target-def.h include.
10657 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
10659 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10661 * Makefile.in (TARGET_DEF): Add target-insns.def.
10662 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
10663 (build/gentarget-def.o): New rule.
10664 (genprogrtl): Add target-def.
10665 * target-insns.def, gentarget-def.c: New files.
10666 * target.def: Add targetm.have_* and targetm.gen_* hooks,
10667 based on the contents of target-insns.def.
10668 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
10669 (HAVE_return, gen_return): Delete.
10670 * target-def.h: Include insn-target-def.h.
10671 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
10672 instead of direct calls. Rely on them to do the appropriate assertions.
10673 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
10674 (convert_jumps_to_returns): Use targetm interface instead of
10676 (thread_prologue_and_epilogue_insns): Likewise.
10677 * reorg.c (find_end_label, dbr_schedule): Likewise.
10678 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
10679 * shrink-wrap.c (convert_to_simple_return): Likewise.
10680 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
10682 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10684 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
10685 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10686 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
10687 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
10688 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10689 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10690 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10691 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
10692 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
10693 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10694 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10695 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10696 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10697 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10698 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10699 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
10702 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10704 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
10705 (unbounded_int_hashmap_traits::key_type): Likewise.
10706 * hash-map.h (hash_map): Get the key type from the traits.
10707 * hash-traits.h (default_hash_traits): By default, inherit from the
10708 template parameter.
10709 * alias.c (alias_set_traits): Delete.
10710 (alias_set_entry_d::children): Use alias_set_hash as the first
10711 template parameter.
10712 (record_alias_subset): Update accordingly.
10713 * except.c (tree_hash_traits): Delete.
10714 (type_to_runtime_map): Use tree_hash as the first template parameter.
10715 (init_eh): Update accordingly.
10716 * genmatch.c (capture_id_map_hasher): Delete.
10717 (cid_map_t): Use nofree_string_hash as first template parameter.
10718 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
10719 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10720 Use symbol_compare_hash as the first template parameter in
10721 subdivide_hash_map.
10722 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
10723 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
10724 template parameter.
10725 * passes.c (pass_registry_hasher): Delete.
10726 (name_to_pass_map): Use nofree_string_hash as the first template
10728 (register_pass_name): Update accordingly.
10729 * sanopt.c (sanopt_tree_map_traits): Delete.
10730 (sanopt_tree_triplet_map_traits): Delete.
10731 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
10732 template parameter.
10733 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
10734 the first template parameter.
10735 * sese.c (rename_map_hasher): Delete.
10736 (rename_map_type): Use tree_ssa_name_hash as the first template
10738 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
10739 (function_summary::m_map): Use map_hash as the first template
10741 (function_summary::release): Update accordingly.
10742 * tree-if-conv.c (phi_args_hash_traits): Delete.
10743 (predicate_scalar_phi): Use tree_operand_hash as the first template
10744 parameter to phi_arg_map.
10745 * tree-inline.h (dependence_hasher): Delete.
10746 (copy_body_data::dependence_map): Use dependence_hash as the first
10747 template parameter.
10748 * tree-inline.c (remap_dependence_clique): Update accordingly.
10749 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
10750 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
10752 (addr_stridxptr): Update accordingly.
10753 * value-prof.c (profile_id_traits): Delete.
10754 (cgraph_node_map): Use profile_id_hash as the first template
10756 (init_node_map): Update accordingly.
10757 * config/alpha/alpha.c (string_traits): Delete.
10758 (machine_function::links): Use nofree_string_hash as the first
10759 template parameter.
10760 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
10761 * config/m32c/m32c.c (pragma_traits): Delete.
10762 (pragma_htab): Use nofree_string_hash as the first template parameter.
10763 (m32c_note_pragma_address): Update accordingly.
10764 * config/mep/mep.c (pragma_traits): Delete.
10765 (pragma_htab): Use nofree_string_hash as the first template parameter.
10766 (mep_note_pragma_flag): Update accordingly.
10767 * config/mips/mips.c (mips16_flip_traits): Delete.
10768 (mflip_mips16_htab): Use nofree_string_hash as the first template
10770 (mflip_mips16_use_mips16_p): Update accordingly.
10771 (local_alias_traits): Delete.
10772 (mips16_local_aliases): Use nofree_string_hash as the first template
10774 (mips16_local_alias): Update accordingly.
10776 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10778 * hash-map-traits.h (default_hashmap_traits): Delete.
10780 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10782 * hash-map-traits.h (unbounded_hashmap_traits): New class.
10783 (unbounded_int_hashmap_traits): Likewise.
10784 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
10786 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10788 * ipa-icf.h (symbol_compare_hash): New class.
10789 (symbol_compare_hashmap_traits): Use it.
10790 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
10791 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
10792 (mem_alloc_description::reverse_mem_map_t): Remove redundant
10793 default_hashmap_traits.
10794 * sanopt.c (sanopt_tree_triplet_hash): New class.
10795 (sanopt_tree_triplet_map_traits): Use it.
10797 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10799 * gengtype-parse.c (require_template_declaration): Allow '+' in
10800 template parameters. Consolidate cases.
10801 * hash-traits.h (int_hash): New class.
10802 * alias.c (alias_set_hash): New structure.
10803 (alias_set_traits): Use it.
10804 * symbol-summary.h (function_summary::map_hash): New class.
10805 (function_summary::summary_hashmap_traits): Use it.
10806 * tree-inline.h (dependence_hash): New class.
10807 (dependence_hasher): Use it.
10808 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
10809 * value-prof.c (profile_id_hash): New class.
10810 (profile_id_traits): Use it.
10812 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10814 * config/mips/mips.c (mips16_flip_traits): Use it.
10815 (local_alias_traits, mips16_local_aliases): Convert from a map of
10816 rtxes to a map of symbol names.
10817 (mips16_local_alias): Update accordingly.
10819 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10821 * hash-traits.h (string_hash, nofree_string_hash): New classes.
10822 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
10823 * passes.c (pass_registry_hasher): Likewise.
10824 * config/alpha/alpha.c (string_traits): Likewise.
10825 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
10826 * config/m32c/m32c.c (pragma_traits): Likewise.
10827 * config/mep/mep.c (pragma_traits): Likewise.
10829 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10831 * tree-hash-traits.h (tree_hash): New class.
10832 * except.c: Include tree-hash-traits.h.
10833 (tree_hash_traits): Use tree_hash.
10835 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10837 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
10838 * sese.c: Include tree-hash-traits.h.
10839 (rename_map_hasher): Use tree_ssa_name_hasher.
10841 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10843 * tree-hash-traits.h (tree_decl_hash): New class.
10844 * tree-ssa-strlen.c: Include tree-hash-traits.h.
10845 (stridxlist_hash_traits): Use tree_decl_hash.
10847 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10849 * tree-hash-traits.h: New file.
10850 (tree_operand_hash): New class.
10851 * sanopt.c: Include tree-hash-traits.h.
10852 (sanopt_tree_map_traits): Use tree_operand_hash.
10853 * tree-if-conv.c: Include tree-hash-traits.h.
10854 (phi_args_hash_traits): Use tree_operand_hash.
10855 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
10856 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
10858 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10860 * hash-map-traits.h: Include hash-traits.h.
10861 (simple_hashmap_traits): New class.
10862 * mem-stats.h (hash_map): Change the default traits to
10863 simple_hashmap_traits<default_hash_traits<Key> >.
10865 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10867 * hash-table.h: Update comments.
10869 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10871 * hash-traits.h (default_hash_traits): New structure.
10872 * hash-set.h (default_hashset_traits): Delete.
10873 (hash_set): Use default_hash_traits<Key> instead of
10874 default_hashset_traits. Delete hash_entry type and use Key directly.
10875 * ipa-devirt.c (pair_traits): Delete.
10876 (default_hash_traits <type_pair>): Override.
10877 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
10878 (odr_types_equivalent_p, add_type_duplicate): Likewise.
10880 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10882 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
10884 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10886 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
10887 (has_is_empty, is_empty_helper): Delete.
10888 (has_mark_deleted, mark_deleted_helper): Delete.
10889 (has_mark_empty, mark_empty_helper): Delete.
10890 (hash_table::is_deleted): Call the Descriptor unconditionally.
10891 (hash_table::is_empty): Likewise.
10892 (hash_table::mark_deleted): Likewise.
10893 (hash_table::mark_empty): Likewise.
10895 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10897 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
10898 redundant typedefs and members.
10899 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
10900 redundant typedefs.
10901 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
10902 * ipa-devirt.c (odr_name_hasher): Likewise.
10903 (polymorphic_call_target_hasher): Likewise.
10904 * ira-costs.c (cost_classes_hasher): Likewise.
10905 * statistics.c (stats_counter_hasher): Likewise.
10906 * trans-mem.c (log_entry_hasher): Likewise.
10907 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10908 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
10909 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
10910 * var-tracking.c (variable_hasher): Likewise.
10911 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
10912 Remove redundant typedefs and members.
10914 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10916 * hash-traits.h (ggc_cache_hasher): Rename to...
10917 (ggc_cache_remove): ...this and remove typedefs.
10918 (ggc_cache_ptr_hash): New class.
10919 * hash-table.h: Update commentary.
10920 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
10921 rather than ggc_cache_hasher.
10922 (const_wide_int_hasher, reg_attr_hasher): Likewise.
10923 (const_double_hasher, const_fixed_hasher): Likewise.
10924 * function.c (insn_cache_hasher): Likewise.
10925 * trans-mem.c (tm_wrapper_hasher): Likewise.
10926 * tree.h (tree_decl_map_cache_hasher): Likewise.
10927 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
10928 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
10929 * ubsan.c (tree_type_map_cache_hasher): Likewise.
10930 * varasm.c (tm_clone_hasher): Likewise.
10931 * config/i386/i386.c (dllimport_hasher): Likewise.
10932 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
10933 (tree_hasher): Likewise.
10935 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10937 * hash-traits.h (ggc_hasher): Rename to...
10938 (ggc_remover): ...this and remove typedefs.
10939 (ggc_cache_hasher): Update accordingly. Add typedefs.
10940 (ggc_ptr_hash): New class.
10941 * hash-table.h: Update comment.
10942 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
10944 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
10945 (tree_descriptor_hasher): Likewise.
10946 * cgraph.c (function_version_hasher): Likewise.
10947 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
10948 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
10949 (dw_loc_list_hasher, addr_hasher): Likewise.
10950 * function.h (used_type_hasher): Likewise.
10951 * function.c (temp_address_hasher): Likewise.
10952 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
10953 * libfuncs.h (libfunc_hasher): Likewise.
10954 * lto-streamer.h (decl_state_hasher): Likewise.
10955 * optabs.c (libfunc_decl_hasher): Likewise.
10956 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
10957 * varasm.c (section_hasher, object_block_hasher): Likewise.
10958 (const_rtx_desc_hasher): Likewise.
10959 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
10960 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
10962 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10964 * hash-traits.h (free_ptr_hash): New class.
10965 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
10966 rather than typed_free_remove. Remove redudant typedefs.
10967 (external_ref_hasher): Likewise.
10968 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
10969 (ehspec_hasher): Likewise.
10970 * ggc-common.c (saving_hasher): Likewise.
10971 * gimplify.c (gimplify_hasher): Likewise.
10972 * haifa-sched.c (delay_i2_hasher): Likewise.
10973 * loop-invariant.c (invariant_expr_hasher): Likewise.
10974 * loop-iv.c (biv_entry_hasher): Likewise.
10975 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
10976 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
10977 * tree-cfg.c (locus_discrim_hasher): Likewise.
10978 * tree-eh.c (finally_tree_hasher): Likewise.
10979 * tree-into-ssa.c (var_info_hasher): Likewise.
10980 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
10981 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
10982 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
10983 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
10984 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
10985 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
10986 (shared_bitmap_hasher): Likewise.
10987 * tree-ssa-threadupdate.c (redirection_data): Likewise.
10988 * tree-vectorizer.h (peel_info_hasher): Likewise.
10989 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
10990 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
10992 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10994 * hash-table.h: Update comments.
10995 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
10996 (nofree_ptr_hash): New class.
10997 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
10998 than typed_noop_remove. Remove redudant typedefs.
10999 * attribs.c (attribute_hasher): Likewise.
11000 * cfg.c (bb_copy_hasher): Likewise.
11001 * cselib.c (cselib_hasher): Likewise.
11002 * dse.c (invariant_group_base_hasher): Likewise.
11003 * dwarf2cfi.c (trace_info_hasher): Likewise.
11004 * dwarf2out.c (macinfo_entry_hasher): Likewise.
11005 (comdat_type_hasher, loc_list_hasher): Likewise.
11006 * gcse.c (pre_ldst_expr_hasher): Likewise.
11007 * genmatch.c (id_base): Likewise.
11008 * genrecog.c (test_pattern_hasher): Likewise.
11009 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
11010 * haifa-sched.c (delay_i1_hasher): Likewise.
11011 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
11012 * ipa-icf.h (congruence_class_group_hash): Likewise.
11013 * ipa-profile.c (histogram_hash): Likewise.
11014 * ira-color.c (allocno_hard_regs_hasher): Likewise.
11015 * lto-streamer.h (string_slot_hasher): Likewise.
11016 * lto-streamer.c (tree_entry_hasher): Likewise.
11017 * plugin.c (event_hasher): Likewise.
11018 * postreload-gcse.c (expr_hasher): Likewise.
11019 * store-motion.c (st_expr_hasher): Likewise.
11020 * tree-sra.c (uid_decl_hasher): Likewise.
11021 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
11022 (ssa_name_var_hash): Likewise.
11023 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
11024 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
11025 * tree-ssa-pre.c (pre_expr_d): Likewise.
11026 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
11027 * vtable-verify.h (registration_hasher): Likewise.
11028 * vtable-verify.c (vtbl_map_hasher): Likewise.
11029 * config/arm/arm.c (libcall_hasher): Likewise.
11030 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
11031 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
11032 * config/sol2.c (comdat_entry_hasher): Likewise.
11033 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
11034 (print_fold_checksum, fold_checksum_tree): Likewise.
11035 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
11036 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
11037 (fold_build_call_array_loc): Likewise.
11038 * tree-ssa-ccp.c (gimple_htab): Likewise.
11039 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
11040 rather than pointer_type.
11042 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11044 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
11045 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
11047 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11049 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
11050 (ggc_hasher::ggc_mx): Likewise.
11051 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
11052 that duplicate ggc_hasher ones.
11054 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11056 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
11057 (gt_cleare_cache): Check here for deleted and empty entries.
11058 Replace handle_cache_entry with a call to keep_cache_entry.
11059 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
11060 (ggc_cache_hasher::keep_cache_entry): New function.
11061 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
11062 (tm_wrapper_hasher::keep_cache_entry): New function.
11063 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
11064 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11065 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
11066 (type_cache_hasher::keep_cache_entry): New function.
11067 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
11068 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11069 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
11070 (tree_type_map_cache_hasher::keep_cache_entry): New function.
11071 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
11072 (tm_clone_hasher::keep_cache_entry): New function.
11073 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
11074 (dllimport_hasher::keep_cache_entry): New function.
11076 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11078 * hash-table.h: Include hash-traits.h.
11079 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
11080 (ggc_cache_hasher): Move to...
11081 * hash-traits.h: ...this new file.
11083 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11085 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
11086 struct cl_optimization.
11087 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
11088 * tree.c (make_node_stat): Allocate cl_optimization struct.
11089 (copy_node_stat): Allocate and copy cl_optimization struct.
11091 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11093 * function.h (struct incoming_args): Move struct.
11094 (pass_by_reference, reference_callee_copied): Remove prototypes.
11095 * emit-rtl.h (struct incoming_args): Relocate struct here.
11096 * calls.h (pass_by_reference, reference_callee_copied): Relocate
11098 * function.c (pass_by_reference, reference_callee_copied): Move.
11099 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
11100 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
11101 * ipa-chkp.c: Include calls.h.
11103 2015-06-25 Andrew Macleod <amacleod@redhat.com>
11105 * alias.h (alias_set_type): Move typedef.
11106 * coretypes.h (alias_set_type): Relocate typedef here.
11107 * rtl.h: Don't include alias.h.
11109 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11111 * cgraph.h (cgraph_rtl_info): Move to rtl.h
11112 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
11114 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
11115 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
11117 * calls.c: Include hard-reg-set.h before rtl.h.
11120 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11121 Vladimir Makarov <vmakarov@redhat.com>
11123 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
11126 2015-06-25 Richard Biener <rguenther@suse.de>
11128 * fold-const.c (fold_binary_loc): Move simplification of
11129 (X <<>> C1) & C2 ...
11130 * match.pd: ... here.
11132 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
11134 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
11136 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11138 * match.pd: Add patterns for vec_conds between 1 and 0.
11140 2015-06-25 Richard Biener <rguenther@suse.de>
11142 * tree-vect-stmts.c (vectorizable_conversion): Do not set
11143 STMT_VINFO_VEC_STMT for SLP.
11144 (vectorizable_store): Likewise.
11145 (vectorizable_load): Likewise.
11146 (vect_transform_stmt): Catch SLP vectorization clobbering
11147 STMT_VINFO_VEC_STMT.
11149 2015-06-25 Richard Biener <rguenther@suse.de>
11151 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
11153 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
11154 cleanup resulting dead code and parameters.
11155 (vect_transform_slp_perm_load): Adjust.
11157 2015-06-25 Nick Clifton <nickc@redhat.com>
11159 * config/bfin/bfin.c (bfin_expand_prologue): Set
11160 current_function_static_stack_size if flag_stack_usage_info is set.
11161 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11162 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
11163 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11164 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
11166 2015-06-25 Tom de Vries <tom@codesourcery.com>
11168 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
11169 comment that the generated IV is unsigned.
11171 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11174 * config/arm/arm.c (arm_dbx_register_number): Return
11175 DWARF_FRAME_REGISTERS by default.
11177 2015-06-25 Tom de Vries <tom@codesourcery.com>
11179 * dominance.c (calculate_dominance_info): Fix verify_dominators call
11180 argument. Call verify_dominator when reusing dominator info.
11182 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
11185 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
11186 an additional element of the unspec vector. Modify indices
11188 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
11189 * config/sh/sh.c (prepare_move_operands): Pass incremented
11190 const_int to gen_GOTaddr2picreg.
11191 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
11193 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11195 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
11196 Condition on TARGET_FLOAT.
11198 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11200 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
11203 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11205 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
11207 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
11208 aarch64_err_no_fpadvsimd.
11210 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
11211 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
11212 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
11213 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
11214 Turn error into assert, test TARGET_FLOAT.
11215 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
11218 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
11221 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
11223 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11225 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
11227 2015-06-24 Renlin Li <renlin.li@arm.com>
11229 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
11230 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
11232 2015-06-24 Richard Biener <rguenther@suse.de>
11234 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
11236 (lower_opt_convert): Support lowering of conditional view_convert.
11237 (parser::parse_operation): Likewise.
11238 (parser::parse_for): Likewise.
11240 2015-06-24 Renlin Li <renlin.li@arm.com>
11242 * varasm.c (emit_local): Use unsigned int for align variable.
11244 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11247 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
11248 for negative numbers.
11250 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11252 PR rtl-optimization/66306
11253 * reload.c (find_reloads): Swap the match_dup info for
11254 commutative operands.
11256 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11258 * config/s390/vx-builtins.md
11259 ("vec_scatter_element<mode>_<non_vec_int>")
11260 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
11261 attribute with bhfgq.
11263 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11265 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
11267 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11269 * config/s390/s390-builtin-types.def: Add flag to indicate the
11270 options under which the function type is needed.
11271 * config/s390/s390-builtins.def: Add flag to indicate the options
11272 under which the builtin is enabled.
11273 * config/s390/s390-builtins.h: Add flags parameter to macro
11275 (bflags_for_builtin): New function.
11276 (flags_for_builtin): Renamed to ...
11277 (opflags_for_builtin): ... this.
11278 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
11279 flags_for_builtin to bflags_for_builtin and
11280 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
11281 * config/s390/s390.c: Add initialization of bflags_builtin and
11282 opflags_builtin arrays.
11283 Remove code for flags_builtin.
11284 (s390_init_builtins): Only create builtin function types if one of
11285 their flags is active.
11286 Only create builtins if all of their flags are active.
11287 (s390_expand_builtin): Rename flags_for_builtin to
11288 opflags_for_builtin.
11290 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11292 * config/s390/vecintrin.h: Remove internal builtins.
11294 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11296 * config/s390/s390.c (s390_secondary_reload): Fix check for
11297 GENERAL_REGS register class.
11299 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11301 * config/s390/s390.c (s390_support_vector_misalignment): Call
11302 default implementation for !TARGET_VX.
11304 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11306 * config/s390/s390.c (s390_legitimate_constant_p): Add
11309 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11311 * config/s390/s390.c (s390_vector_abi): New variable definition.
11312 (s390_check_type_for_vector_abi): New function.
11313 (TARGET_ASM_FILE_END): New macro definition.
11314 (s390_asm_file_end): New function.
11315 (s390_function_arg): Call s390_check_type_for_vector_abi.
11316 (s390_gimplify_va_arg): Likewise.
11317 * configure: Regenerate.
11318 * configure.ac: Check for .gnu_attribute Binutils feature.
11320 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
11323 * config/bfin/bfin.c (hwloop_optimize): Initialize
11324 JUMP_LABEL for newly created jump.
11326 2015-06-23 Tristan Gingold <gingold@adacore.com>
11328 * collect-utils.c (collect_wait): Unlink the response file here
11330 (do_wait): ...here.
11331 (utils_cleanup): ...and here.
11333 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
11335 * df-scan.c: Don't include target-def.h.
11336 * targhooks.c: Likewise.
11337 * config/arm/arm-c.c: Likewise.
11338 * config/i386/i386-c.c: Likewise.
11339 * config/nds32/nds32-cost.c: Likewise.
11340 * config/nds32/nds32-fp-as-gp.c: Likewise.
11341 * config/nds32/nds32-intrinsic.c: Likewise.
11342 * config/nds32/nds32-isr.c: Likewise.
11343 * config/nds32/nds32-md-auxiliary.c: Likewise.
11344 * config/nds32/nds32-memory-manipulation.c: Likewise.
11345 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11346 * config/nds32/nds32-predicates.c: Likewise.
11348 2015-06-23 Richard Biener <rguenther@suse.de>
11350 PR tree-optimization/66636
11351 * tree-vect-stmts.c (vectorizable_store): Properly compute the
11352 def type for further defs for strided stores.
11354 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
11356 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
11357 conditional selects.
11358 (setcc_int<mode>, setcc_float<mode>): Reformat.
11360 2015-06-23 Marek Polacek <polacek@redhat.com>
11362 * match.pd ((x + y) - (x | y) -> x & y,
11363 (x + y) - (x & y) -> x | y): New patterns.
11365 2015-06-23 Ludovic Courtès <ludo@gnu.org>
11368 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
11369 '-dynamic-linker' within %{!shared: ...}.
11371 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
11374 * config/i386/predicates.md (addsub_vm_operator): New predicate.
11375 (addsub_vs_operator): Ditto.
11376 (addsub_vs_parallel): Ditto.
11377 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
11378 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
11379 Put minus RTX before plus and adjust vec_merge selector.
11380 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
11381 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
11382 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
11383 (addsub vec_merge splitters): New combiner splitters.
11384 (addsub vec_select/vec_concat splitters): Ditto.
11386 2015-06-23 Bin Cheng <bin.cheng@arm.com>
11388 PR tree-optimization/66449
11389 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
11390 POINTER_PLUS_EXPR for pointers.
11392 2015-06-23 Alan Modra <amodra@gmail.com>
11394 * rtlanal.c (commutative_operand_precedence): Correct comments.
11395 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
11396 declaration. Return an int. Distinguish REG,REG return from
11398 (struct simplify_plus_minus_op_data): Make local to function.
11399 (simplify_plus_minus): Don't set canonicalized if merely sorting
11400 registers. Avoid packing ops if nothing changes. White space fixes.
11402 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
11404 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
11405 -fdump-ada-spec is passed but not if -fsyntax-only is.
11407 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
11410 * lra-lives.c (process_bb_lives): Check insn copying the same
11411 reload pseudo and don't create a copy for it.
11413 2015-06-22 Tom de Vries <tom@codesourcery.com>
11415 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
11418 2015-06-22 Tom de Vries <tom@codesourcery.com>
11420 * builtins.def (DEF_GOMP_BUILTIN): Test
11421 'flag_tree_parallelize_loops > 1' instead of
11422 'flag_tree_parallelize_loops'. Test flag_cilkplus.
11424 2015-06-22 Tom de Vries <tom@codesourcery.com>
11426 * dominance.c (calculate_dominance_info): Verify dominators if
11429 2015-06-22 Marek Polacek <polacek@redhat.com>
11431 * match.pd ((x ^ y) ^ (x | y) -> x & y,
11432 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
11433 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
11434 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
11436 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
11439 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
11440 cost of embedded comparison.
11442 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11445 * config/rs6000/predicates.md (altivec_register_operand): Permit
11446 virtual stack registers.
11447 (vsx_register_operand): Likewise.
11448 (vfloat_operand): Likewise.
11449 (vint_operand): Likewise.
11450 (vlogical_operand): Likewise.
11452 2015-06-22 Richard Biener <rguenther@suse.de>
11454 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
11455 and single_scalar_iteration_cost members.
11456 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
11457 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
11458 (vect_get_single_scalar_iteration_cost): Remove.
11459 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11460 Use LOOP_VINFO_SCALAR_ITERATION_COST.
11461 * tree-vect-loop.c (destroy_loop_vec_info): Free
11463 (vect_get_single_scalar_iteration_cost): Compute result into
11464 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
11465 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
11466 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
11467 (vect_estimate_min_profitable_iters): Use them.
11469 2015-06-22 Christian Bruel <christian.bruel@st.com>
11472 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
11473 (TARGET_INSERT_ATTRIBUTES): Define.
11474 (thumb_flipper): New var.
11475 * config/arm/arm.opt (-mflip-thumb): New switch.
11477 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11478 Martin Liska <mliska@suse.cz>
11481 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
11482 construction of arg_types.
11483 (sem_function::sem_function): Likewise.
11484 (sem_function::~sem_function): Remove destruction of arg_types.
11485 (sem_function::compatible_parm_types_p): New function.
11486 (sem_function::equals_wpa): Reorg matching of return values
11487 and parameter types.
11488 (sem_function::equals_private): Reorg mathcing of argument types.
11489 (sem_function::parse_tree_args): Remove.
11490 * ipa-icf.h (init_wpa): Do not call it.
11491 (parse_tree_args): Remove.
11492 (compatible_parm_types_p): Declare.
11493 (result_type): Remove.
11494 (arg_types): Remove.
11496 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11499 * ipa-polymorphic-call.c
11500 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
11501 initializing alias oracle; fix formating; set base_alias_set if it
11504 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
11506 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
11507 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
11508 (find_inc): Likewise.
11509 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
11511 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11512 * df-scan.c (df_swap_refs): Remove.
11513 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
11514 * dominance.c (link_roots): Use std::swap instead of manually swapping.
11515 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
11516 * fold-const.c (fold_relational_const): Likewise.
11517 * genattrtab.c (simplify_test_exp): Likewise.
11518 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
11519 gimple_simplify): Likewise.
11520 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
11521 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
11522 * ipa-devirt.c (add_type_duplicate): Likewise.
11523 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
11524 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
11525 * lra.c (lra_create_copy): Likewise.
11526 * lto-streamer-out.c (DFS::DFS): Likewise.
11527 * modulo-sched.c (get_sched_window): Likewise.
11528 * omega.c (omega_pretty_print_problem): Likewise.
11529 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
11530 * reload1.c (reloads_unique_chain_p): Likewise.
11531 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
11532 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
11534 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
11536 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
11537 predicate_mem_writes): Likewise.
11538 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
11539 * tree-predcom.c (combine_chains): Likewise.
11540 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
11541 refs_may_alias_p_1): Likewise.
11542 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
11543 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
11544 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
11545 number_of_iterations_cond): Likewise.
11546 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
11547 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11548 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
11549 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
11550 * tree-vrp.c (extract_range_from_binary_expr_1,
11551 extract_range_from_unary_expr_1): Likewise.
11553 2015-06-20 Marek Polacek <polacek@redhat.com>
11555 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
11557 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
11560 * config/sh/sh.c (prepare_move_operands): Replace subreg
11561 index term with R0 for base and index addressing.
11563 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
11565 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
11567 (movsf_aarch64): Change condition from register_operand to
11568 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
11569 load1. Change type for alternative 7 to store1.
11570 (movdf_aarch64): Likewise.
11572 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
11574 * config/vax/vax.md: Adjust sign/zero extend patterns to
11575 handle SUBREGs in operands[1].
11577 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11579 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
11580 of manually swapping.
11581 (expand_vec_perm_interleave2): Likewise.
11583 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
11585 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
11586 reuse bounds created for abnormal ssa names.
11588 2015-06-19 Jakub Jelinek <jakub@redhat.com>
11590 * config/nvptx/nvptx.md (allocate_stack): Rename to...
11591 (allocate_stack_<mode>): ... this, and add :P on both
11592 match_operand and unspec.
11593 (allocate_stack): New expander.
11595 2015-06-19 Christian Bruel <christian.bruel@st.com>
11599 * config/arm/arm.c (arm_set_current_function): Handle
11600 explicit default options.
11602 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11604 * config/i386/i386.md (*movsicc_noc_zext): New insn.
11605 (zero-extended cmove with mem peephole2): New pattern.
11606 (cmove with mem peephole2): Merge patterns.
11608 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11610 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
11612 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
11614 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
11615 * config/mips/mips.md (*madd4<mode>): Ditto.
11616 (*nmadd3<mode>) Ditto.
11617 (*nmadd4<mode>_fastmath): Ditto.
11618 (*nmadd3<mode>_fastmath): Ditto.
11619 (*nmsub4<mode>): Ditto.
11620 (*nmsub3<mode>): Ditto.
11621 (*nmsub4<mode>_fastmath): Ditto.
11622 (*nmsub3<mode>_fastmath): Ditto.
11624 2015-06-18 Michael Matz <matz@suse.de>
11626 PR middle-end/66253
11627 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
11628 grouped strided stores.
11629 (vectorizable_load): Don't use the DR from first_stmt in
11630 the non-SLP grouped strided case.
11632 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11635 * function.c (assign_bounds): Add arguments assign_regs,
11636 assign_special, assign_bt.
11637 (assign_parms): For vararg functions handle bounds in BT
11638 and special slots after incoming vararg bounds.
11640 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11642 PR middle-end/66568
11643 * cfgexpand.c (expand_return): Handle missing bounds.
11644 (expand_gimple_stmt_1): Likewise.
11645 * tree-chkp.c (chkp_expand_zero_bounds): New.
11646 * tree-chkp.h (chkp_expand_zero_bounds): New.
11648 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
11650 PR middle-end/66567
11651 * ipa-chkp.c (chkp_maybe_create_clone): Require
11652 functions to be instrumentable.
11653 * tree-chkp.c (chkp_replace_function_pointer): Use
11654 chkp_instrumentable_p instead of attribute check.
11656 2015-06-18 Richard Biener <rguenther@suse.de>
11658 PR tree-optimization/66510
11659 * tree-vect-stmts.c (vectorizable_load): Properly compute the
11660 number of vector loads for SLP permuted loads.
11661 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
11662 check the stride for loop vectorization.
11663 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
11664 vectorization factor.
11665 (vect_analyze_group_access): If the group size is not a power
11666 of two require a epilogue loop.
11667 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
11668 compute and optimizing and alias test pruning after final
11669 vectorization factor computation.
11670 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
11672 (vect_transform_slp_perm_load): Properly compute the original
11673 number of vector load stmts.
11675 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
11677 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
11678 "unlikely character , in @var" warning.
11680 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
11682 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
11683 (ix86_function_arg_advance): Ditto.
11684 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
11686 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11688 * function.h (struct rtl_data): Remove struct and accessor macros.
11689 * emit-rtl.h (struct rtl_data): Relocate to here.
11690 * Makefile.in (GTFILES): Add emit-rtl.h.
11691 * df-core.c: Include emit-rtl.h.
11692 * genattrtab.c: Likewise.
11693 * genconditions.c: Likewise.
11694 * genpreds.c: Likewise.
11695 * genrecog.c: Likewise.
11696 * regcprop.c: Likewise.
11697 * resource.c: Likewise.
11698 * sched-rgn.c: Likewise.
11699 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11700 * config/i386/winnt.c: Likewise.
11702 2015-06-17 Jakub Jelinek <jakub@redhat.com>
11704 PR middle-end/66429
11705 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
11706 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
11707 and has_force_vectorize_loops flags from cfun into
11709 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
11710 if simduid is non-NULL.
11711 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
11712 * passes.def (pass_simduid_cleanup): Add new pass after loop
11714 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
11715 indirection from htab argument's type.
11716 (shrink_simd_arrays): New function.
11717 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
11718 Don't call adjust_simduid_builtins if there are no loops.
11719 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
11720 (pass_simduid_cleanup::execute): New method.
11721 (make_pass_simduid_cleanup): New function.
11723 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
11725 * tree-core.h (tree_target_option): Make opts field a pointer to a
11726 cl_target_option instead of an instance of the struct.
11727 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
11729 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
11730 TARGET_OPTION_NODE.
11731 (copy_node_stat): Allocate and copy struct cl_target_option.
11733 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11735 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
11736 Remove conditional exposure of prototypes.
11737 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
11738 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
11739 definitions in tree.h with functions.
11740 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
11742 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
11744 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
11746 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
11747 (*cmp<mode>_signed): ... this.
11748 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
11749 (*cmp<mode>_unsigned): ... this. Remove %b.
11751 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
11753 * coretypes.h: Include input.h and as-a.h.
11754 * rtl.h: Include input.h and as-a.h for generator files.
11755 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
11756 * vec.c: Don't include diagnostic-core.h.
11757 * alias.c: Do not include input.h, line-map.h or is-a.h.
11758 * asan.c: Likewise.
11759 * attribs.c: Likewise.
11760 * auto-inc-dec.c: Likewise.
11761 * auto-profile.c: Likewise.
11762 * bb-reorder.c: Likewise.
11763 * bt-load.c: Likewise.
11764 * builtins.c: Likewise.
11765 * caller-save.c: Likewise.
11766 * calls.c: Likewise.
11767 * ccmp.c: Likewise.
11769 * cfganal.c: Likewise.
11770 * cfgbuild.c: Likewise.
11771 * cfgcleanup.c: Likewise.
11772 * cfgexpand.c: Likewise.
11773 * cfghooks.c: Likewise.
11774 * cfgloop.c: Likewise.
11775 * cfgloop.h: Likewise.
11776 * cfgloopanal.c: Likewise.
11777 * cfgloopmanip.c: Likewise.
11778 * cfgrtl.c: Likewise.
11779 * cgraph.c: Likewise.
11780 * cgraphbuild.c: Likewise.
11781 * cgraphclones.c: Likewise.
11782 * cgraphunit.c: Likewise.
11783 * cilk-common.c: Likewise.
11784 * combine-stack-adj.c: Likewise.
11785 * combine.c: Likewise.
11786 * compare-elim.c: Likewise.
11787 * convert.c: Likewise.
11788 * coverage.c: Likewise.
11789 * cppbuiltin.c: Likewise.
11790 * cprop.c: Likewise.
11792 * cselib.c: Likewise.
11793 * data-streamer-in.c: Likewise.
11794 * data-streamer-out.c: Likewise.
11795 * data-streamer.c: Likewise.
11796 * dbxout.c: Likewise.
11799 * debug.c: Likewise.
11800 * df-core.c: Likewise.
11801 * df-problems.c: Likewise.
11802 * df-scan.c: Likewise.
11805 * diagnostic-core.h: Likewise.
11806 * diagnostic.c: Likewise.
11807 * dojump.c: Likewise.
11808 * dominance.c: Likewise.
11809 * domwalk.c: Likewise.
11810 * double-int.c: Likewise.
11812 * dumpfile.c: Likewise.
11813 * dumpfile.h: Likewise.
11814 * dwarf2asm.c: Likewise.
11815 * dwarf2cfi.c: Likewise.
11816 * dwarf2out.c: Likewise.
11817 * emit-rtl.c: Likewise.
11818 * et-forest.c: Likewise.
11819 * except.c: Likewise.
11820 * explow.c: Likewise.
11821 * expmed.c: Likewise.
11822 * expr.c: Likewise.
11823 * final.c: Likewise.
11824 * fixed-value.c: Likewise.
11825 * fold-const.c: Likewise.
11826 * function.c: Likewise.
11827 * fwprop.c: Likewise.
11828 * gcc-plugin.h: Likewise.
11829 * gcse.c: Likewise.
11830 * generic-match-head.c: Likewise.
11831 * ggc-page.c: Likewise.
11832 * gimple-builder.c: Likewise.
11833 * gimple-expr.c: Likewise.
11834 * gimple-fold.c: Likewise.
11835 * gimple-iterator.c: Likewise.
11836 * gimple-low.c: Likewise.
11837 * gimple-match-head.c: Likewise.
11838 * gimple-pretty-print.c: Likewise.
11839 * gimple-ssa-isolate-paths.c: Likewise.
11840 * gimple-ssa-strength-reduction.c: Likewise.
11841 * gimple-streamer-in.c: Likewise.
11842 * gimple-streamer-out.c: Likewise.
11843 * gimple-streamer.h: Likewise.
11844 * gimple-walk.c: Likewise.
11845 * gimple.c: Likewise.
11846 * gimplify-me.c: Likewise.
11847 * gimplify.c: Likewise.
11848 * godump.c: Likewise.
11849 * graph.c: Likewise.
11850 * graphite-blocking.c: Likewise.
11851 * graphite-dependences.c: Likewise.
11852 * graphite-interchange.c: Likewise.
11853 * graphite-isl-ast-to-gimple.c: Likewise.
11854 * graphite-optimize-isl.c: Likewise.
11855 * graphite-poly.c: Likewise.
11856 * graphite-scop-detection.c: Likewise.
11857 * graphite-sese-to-poly.c: Likewise.
11858 * graphite.c: Likewise.
11859 * haifa-sched.c: Likewise.
11860 * hw-doloop.c: Likewise.
11861 * ifcvt.c: Likewise.
11862 * init-regs.c: Likewise.
11863 * input.c: Likewise.
11864 * internal-fn.c: Likewise.
11865 * ipa-chkp.c: Likewise.
11866 * ipa-comdats.c: Likewise.
11867 * ipa-cp.c: Likewise.
11868 * ipa-devirt.c: Likewise.
11869 * ipa-icf-gimple.c: Likewise.
11870 * ipa-icf.c: Likewise.
11871 * ipa-inline-analysis.c: Likewise.
11872 * ipa-inline-transform.c: Likewise.
11873 * ipa-inline.c: Likewise.
11874 * ipa-polymorphic-call.c: Likewise.
11875 * ipa-profile.c: Likewise.
11876 * ipa-prop.c: Likewise.
11877 * ipa-pure-const.c: Likewise.
11878 * ipa-ref.c: Likewise.
11879 * ipa-reference.c: Likewise.
11880 * ipa-split.c: Likewise.
11881 * ipa-utils.c: Likewise.
11882 * ipa-visibility.c: Likewise.
11884 * ira-build.c: Likewise.
11885 * ira-color.c: Likewise.
11886 * ira-conflicts.c: Likewise.
11887 * ira-costs.c: Likewise.
11888 * ira-emit.c: Likewise.
11889 * ira-lives.c: Likewise.
11891 * jump.c: Likewise.
11892 * langhooks.c: Likewise.
11894 * loop-doloop.c: Likewise.
11895 * loop-init.c: Likewise.
11896 * loop-invariant.c: Likewise.
11897 * loop-iv.c: Likewise.
11898 * loop-unroll.c: Likewise.
11899 * lower-subreg.c: Likewise.
11900 * lra-assigns.c: Likewise.
11901 * lra-coalesce.c: Likewise.
11902 * lra-constraints.c: Likewise.
11903 * lra-eliminations.c: Likewise.
11904 * lra-lives.c: Likewise.
11905 * lra-remat.c: Likewise.
11906 * lra-spills.c: Likewise.
11908 * lto-cgraph.c: Likewise.
11909 * lto-compress.c: Likewise.
11910 * lto-opts.c: Likewise.
11911 * lto-section-in.c: Likewise.
11912 * lto-section-out.c: Likewise.
11913 * lto-streamer-in.c: Likewise.
11914 * lto-streamer-out.c: Likewise.
11915 * lto-streamer.c: Likewise.
11917 * mode-switching.c: Likewise.
11918 * modulo-sched.c: Likewise.
11919 * omega.c: Likewise.
11920 * omp-low.c: Likewise.
11921 * optabs.c: Likewise.
11922 * opts-global.c: Likewise.
11923 * opts.h: Likewise.
11924 * passes.c: Likewise.
11925 * plugin.c: Likewise.
11926 * postreload-gcse.c: Likewise.
11927 * postreload.c: Likewise.
11928 * predict.c: Likewise.
11929 * pretty-print.h: Likewise.
11930 * print-rtl.c: Likewise.
11931 * print-tree.c: Likewise.
11932 * profile.c: Likewise.
11933 * real.c: Likewise.
11934 * realmpfr.c: Likewise.
11935 * recog.c: Likewise.
11937 * reg-stack.c: Likewise.
11938 * regcprop.c: Likewise.
11939 * reginfo.c: Likewise.
11940 * regrename.c: Likewise.
11941 * regstat.c: Likewise.
11942 * reload.c: Likewise.
11943 * reload1.c: Likewise.
11944 * reorg.c: Likewise.
11945 * resource.c: Likewise.
11946 * rtl-chkp.c: Likewise.
11947 * rtl-error.c: Likewise.
11948 * rtlanal.c: Likewise.
11949 * rtlhooks.c: Likewise.
11950 * sanopt.c: Likewise.
11951 * sched-deps.c: Likewise.
11952 * sched-ebb.c: Likewise.
11953 * sched-rgn.c: Likewise.
11954 * sched-vis.c: Likewise.
11955 * sdbout.c: Likewise.
11956 * sel-sched-dump.c: Likewise.
11957 * sel-sched-ir.c: Likewise.
11958 * sel-sched.c: Likewise.
11959 * sese.c: Likewise.
11960 * shrink-wrap.c: Likewise.
11961 * simplify-rtx.c: Likewise.
11962 * stack-ptr-mod.c: Likewise.
11963 * statistics.c: Likewise.
11964 * stmt.c: Likewise.
11965 * stor-layout.c: Likewise.
11966 * store-motion.c: Likewise.
11967 * streamer-hooks.c: Likewise.
11968 * stringpool.c: Likewise.
11969 * symtab.c: Likewise.
11970 * target-globals.c: Likewise.
11971 * targhooks.c: Likewise.
11972 * toplev.c: Likewise.
11973 * tracer.c: Likewise.
11974 * trans-mem.c: Likewise.
11975 * tree-affine.c: Likewise.
11976 * tree-browser.c: Likewise.
11977 * tree-call-cdce.c: Likewise.
11978 * tree-cfg.c: Likewise.
11979 * tree-cfgcleanup.c: Likewise.
11980 * tree-chkp-opt.c: Likewise.
11981 * tree-chkp.c: Likewise.
11982 * tree-chrec.c: Likewise.
11983 * tree-complex.c: Likewise.
11984 * tree-data-ref.c: Likewise.
11985 * tree-dfa.c: Likewise.
11986 * tree-diagnostic.c: Likewise.
11987 * tree-dump.c: Likewise.
11988 * tree-eh.c: Likewise.
11989 * tree-emutls.c: Likewise.
11990 * tree-if-conv.c: Likewise.
11991 * tree-inline.c: Likewise.
11992 * tree-into-ssa.c: Likewise.
11993 * tree-iterator.c: Likewise.
11994 * tree-loop-distribution.c: Likewise.
11995 * tree-nested.c: Likewise.
11996 * tree-nrv.c: Likewise.
11997 * tree-object-size.c: Likewise.
11998 * tree-outof-ssa.c: Likewise.
11999 * tree-parloops.c: Likewise.
12000 * tree-phinodes.c: Likewise.
12001 * tree-predcom.c: Likewise.
12002 * tree-pretty-print.c: Likewise.
12003 * tree-profile.c: Likewise.
12004 * tree-scalar-evolution.c: Likewise.
12005 * tree-sra.c: Likewise.
12006 * tree-ssa-address.c: Likewise.
12007 * tree-ssa-alias.c: Likewise.
12008 * tree-ssa-ccp.c: Likewise.
12009 * tree-ssa-coalesce.c: Likewise.
12010 * tree-ssa-copy.c: Likewise.
12011 * tree-ssa-copyrename.c: Likewise.
12012 * tree-ssa-dce.c: Likewise.
12013 * tree-ssa-dom.c: Likewise.
12014 * tree-ssa-dse.c: Likewise.
12015 * tree-ssa-forwprop.c: Likewise.
12016 * tree-ssa-ifcombine.c: Likewise.
12017 * tree-ssa-live.c: Likewise.
12018 * tree-ssa-loop-ch.c: Likewise.
12019 * tree-ssa-loop-im.c: Likewise.
12020 * tree-ssa-loop-ivcanon.c: Likewise.
12021 * tree-ssa-loop-ivopts.c: Likewise.
12022 * tree-ssa-loop-manip.c: Likewise.
12023 * tree-ssa-loop-niter.c: Likewise.
12024 * tree-ssa-loop-prefetch.c: Likewise.
12025 * tree-ssa-loop-unswitch.c: Likewise.
12026 * tree-ssa-loop.c: Likewise.
12027 * tree-ssa-math-opts.c: Likewise.
12028 * tree-ssa-operands.c: Likewise.
12029 * tree-ssa-phiopt.c: Likewise.
12030 * tree-ssa-phiprop.c: Likewise.
12031 * tree-ssa-pre.c: Likewise.
12032 * tree-ssa-propagate.c: Likewise.
12033 * tree-ssa-reassoc.c: Likewise.
12034 * tree-ssa-sccvn.c: Likewise.
12035 * tree-ssa-scopedtables.c: Likewise.
12036 * tree-ssa-sink.c: Likewise.
12037 * tree-ssa-strlen.c: Likewise.
12038 * tree-ssa-structalias.c: Likewise.
12039 * tree-ssa-tail-merge.c: Likewise.
12040 * tree-ssa-ter.c: Likewise.
12041 * tree-ssa-threadedge.c: Likewise.
12042 * tree-ssa-threadupdate.c: Likewise.
12043 * tree-ssa-uncprop.c: Likewise.
12044 * tree-ssa-uninit.c: Likewise.
12045 * tree-ssa.c: Likewise.
12046 * tree-ssanames.c: Likewise.
12047 * tree-stdarg.c: Likewise.
12048 * tree-streamer-in.c: Likewise.
12049 * tree-streamer-out.c: Likewise.
12050 * tree-streamer.c: Likewise.
12051 * tree-switch-conversion.c: Likewise.
12052 * tree-tailcall.c: Likewise.
12053 * tree-vect-data-refs.c: Likewise.
12054 * tree-vect-generic.c: Likewise.
12055 * tree-vect-loop-manip.c: Likewise.
12056 * tree-vect-loop.c: Likewise.
12057 * tree-vect-patterns.c: Likewise.
12058 * tree-vect-slp.c: Likewise.
12059 * tree-vect-stmts.c: Likewise.
12060 * tree-vectorizer.c: Likewise.
12061 * tree-vrp.c: Likewise.
12062 * tree.c: Likewise.
12063 * tsan.c: Likewise.
12064 * ubsan.c: Likewise.
12065 * valtrack.c: Likewise.
12066 * value-prof.c: Likewise.
12067 * var-tracking.c: Likewise.
12068 * varasm.c: Likewise.
12069 * varpool.c: Likewise.
12070 * vmsdbgout.c: Likewise.
12071 * vtable-verify.c: Likewise.
12073 * wide-int.cc: Likewise.
12074 * xcoffout.c: Likewise.
12075 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
12076 * common/common-targhooks.c: Likewise.
12077 * config/aarch64/aarch64-builtins.c: Likewise.
12078 * config/aarch64/aarch64.c: Likewise.
12079 * config/alpha/alpha.c: Likewise.
12080 * config/arc/arc.c: Likewise.
12081 * config/arm/aarch-common.c: Likewise.
12082 * config/arm/arm-builtins.c: Likewise.
12083 * config/arm/arm-c.c: Likewise.
12084 * config/arm/arm.c: Likewise.
12085 * config/avr/avr-c.c: Likewise.
12086 * config/avr/avr-log.c: Likewise.
12087 * config/avr/avr.c: Likewise.
12088 * config/bfin/bfin.c: Likewise.
12089 * config/c6x/c6x.c: Likewise.
12090 * config/cr16/cr16.c: Likewise.
12091 * config/cris/cris.c: Likewise.
12092 * config/darwin-c.c: Likewise.
12093 * config/darwin.c: Likewise.
12094 * config/default-c.c: Likewise.
12095 * config/epiphany/epiphany.c: Likewise.
12096 * config/epiphany/mode-switch-use.c: Likewise.
12097 * config/epiphany/resolve-sw-modes.c: Likewise.
12098 * config/fr30/fr30.c: Likewise.
12099 * config/frv/frv.c: Likewise.
12100 * config/ft32/ft32.c: Likewise.
12101 * config/glibc-c.c: Likewise.
12102 * config/h8300/h8300.c: Likewise.
12103 * config/i386/i386-c.c: Likewise.
12104 * config/i386/i386.c: Likewise.
12105 * config/i386/msformat-c.c: Likewise.
12106 * config/i386/winnt-cxx.c: Likewise.
12107 * config/i386/winnt-stubs.c: Likewise.
12108 * config/i386/winnt.c: Likewise.
12109 * config/ia64/ia64-c.c: Likewise.
12110 * config/ia64/ia64.c: Likewise.
12111 * config/iq2000/iq2000.c: Likewise.
12112 * config/lm32/lm32.c: Likewise.
12113 * config/m32c/m32c-pragma.c: Likewise.
12114 * config/m32c/m32c.c: Likewise.
12115 * config/m32r/m32r.c: Likewise.
12116 * config/m68k/m68k.c: Likewise.
12117 * config/mcore/mcore.c: Likewise.
12118 * config/mep/mep-pragma.c: Likewise.
12119 * config/mep/mep.c: Likewise.
12120 * config/microblaze/microblaze-c.c: Likewise.
12121 * config/microblaze/microblaze.c: Likewise.
12122 * config/mips/mips.c: Likewise.
12123 * config/mmix/mmix.c: Likewise.
12124 * config/mn10300/mn10300.c: Likewise.
12125 * config/moxie/moxie.c: Likewise.
12126 * config/msp430/msp430-c.c: Likewise.
12127 * config/msp430/msp430.c: Likewise.
12128 * config/nds32/nds32-cost.c: Likewise.
12129 * config/nds32/nds32-fp-as-gp.c: Likewise.
12130 * config/nds32/nds32-intrinsic.c: Likewise.
12131 * config/nds32/nds32-isr.c: Likewise.
12132 * config/nds32/nds32-md-auxiliary.c: Likewise.
12133 * config/nds32/nds32-memory-manipulation.c: Likewise.
12134 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12135 * config/nds32/nds32-predicates.c: Likewise.
12136 * config/nds32/nds32.c: Likewise.
12137 * config/nios2/nios2.c: Likewise.
12138 * config/nvptx/nvptx.c: Likewise.
12139 * config/pa/pa.c: Likewise.
12140 * config/pdp11/pdp11.c: Likewise.
12141 * config/rl78/rl78-c.c: Likewise.
12142 * config/rl78/rl78.c: Likewise.
12143 * config/rs6000/rs6000-c.c: Likewise.
12144 * config/rs6000/rs6000.c: Likewise.
12145 * config/rx/rx.c: Likewise.
12146 * config/s390/s390-c.c: Likewise.
12147 * config/s390/s390.c: Likewise.
12148 * config/sh/sh-c.c: Likewise.
12149 * config/sh/sh-mem.cc: Likewise.
12150 * config/sh/sh.c: Likewise.
12151 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12152 * config/sh/sh_treg_combine.cc: Likewise.
12153 * config/sol2-c.c: Likewise.
12154 * config/sol2-cxx.c: Likewise.
12155 * config/sol2-stubs.c: Likewise.
12156 * config/sol2.c: Likewise.
12157 * config/sparc/sparc-c.c: Likewise.
12158 * config/sparc/sparc.c: Likewise.
12159 * config/spu/spu-c.c: Likewise.
12160 * config/spu/spu.c: Likewise.
12161 * config/stormy16/stormy16.c: Likewise.
12162 * config/tilegx/mul-tables.c: Likewise.
12163 * config/tilegx/tilegx-c.c: Likewise.
12164 * config/tilegx/tilegx.c: Likewise.
12165 * config/tilepro/mul-tables.c: Likewise.
12166 * config/tilepro/tilepro-c.c: Likewise.
12167 * config/tilepro/tilepro.c: Likewise.
12168 * config/v850/v850-c.c: Likewise.
12169 * config/v850/v850.c: Likewise.
12170 * config/vax/vax.c: Likewise.
12171 * config/visium/visium.c: Likewise.
12172 * config/vms/vms-c.c: Likewise.
12173 * config/vms/vms.c: Likewise.
12174 * config/vxworks.c: Likewise.
12175 * config/winnt-c.c: Likewise.
12176 * config/xtensa/xtensa.c: Likewise.
12178 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
12180 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
12182 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
12184 2015-06-17 Richard Biener <rguenther@suse.de>
12186 PR tree-optimization/66251
12187 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
12188 stmts for SLP strided stores.
12191 2015-05-22 Richard Biener <rguenther@suse.de>
12193 PR tree-optimization/66251
12194 * tree-vect-stmts.c (vectorizable_conversion): Properly
12195 set STMT_VINFO_VEC_STMT even for the SLP case.
12197 2015-05-26 Michael Matz <matz@suse.de>
12199 PR middle-end/66251
12200 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
12201 STMT_VINFO_VEC_STMT, also with SLP.
12203 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
12206 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
12207 (*avx_addsubv4df3_1s): Ditto.
12208 (*sse3_addsubv2df3_1): Ditto.
12209 (*sse3_addsubv2df3_1s): Ditto.
12210 (*avx_addsubv8sf3_1): Ditto.
12211 (*avx_addsubv8sf3_1s): Ditto.
12212 (*sse3_addsubv4sf3_1): Ditto.
12213 (*sse3_addsubv4sf3_1s): Ditto.
12215 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
12217 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
12218 (SYSROOT_SUFFIX_SPEC): Update.
12219 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
12220 (STARTFILE_PREFIX_SPEC): Update.
12221 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
12222 (MULTILIB_REQUIRED): New.
12223 (MULTILIB_OSDIRNAMES): New.
12224 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
12225 (MULTILIB_REQUIRED): New.
12226 (MULTILIB_OSDIRNAMES): New.
12228 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
12230 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
12231 * config/aarch64/aarch64-options-extensions.def: Update "fP",
12232 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
12233 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
12234 (AARCH64_FL_PAN): New.
12235 (AARCH64_FL_LOR): New.
12236 (AARCH64_FL_RDMA): New.
12237 (AARCH64_FL_FOR_ARCH8_1): New.
12238 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
12239 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
12241 2015-06-16 Martin Liska <mliska@suse.cz>
12243 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
12244 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
12247 2015-06-16 Richard Biener <rguenther@suse.de>
12249 * tree-vect-stmts.c (vectorizable_store): Adjust.
12250 (vectorizable_load): Likewise.
12251 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12253 (vect_create_data_ref_ptr): Likewise.
12254 (bump_vector_ptr): Adjust.
12256 2015-06-16 Richard Biener <rguenther@suse.de>
12258 * tree-vect-stmts.c (vectorizable_load): Properly start loads
12259 with the first element if this is grouped loads.
12261 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
12263 * config/arm/arm-protos.h (struct tune_params): Rename
12264 log_op_non_sc to log_op_non_short_circuit, and rename enum
12265 values to expand SC to SHORT_CIRCUIT.
12266 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
12267 to LOG_OP_NON_SHORT_CIRCUIT.
12268 (arm_fastmul_tune):Likewise
12269 (arm_strongarm_tune): Likewise.
12270 (arm_xscale_tune): Likewise.
12271 (arm_9e_tune): Likewise.
12272 (arm_marvell_pj4_tune): Likewise.
12273 (arm_v6t2_tune): Likewise.
12274 (arm_cortex_tune): Likewise.
12275 (arm_cortex_a8_tune): Likewise.
12276 (arm_cortex_a7_tune): Likewise.
12277 (arm_cortex_a15_tune): Likewise.
12278 (arm_cortex_a53_tune): Likewise.
12279 (arm_cortex_a57_tune): Likewise.
12280 (arm_xgene1_tune): Likewise.
12281 (arm_cortex_a5_tune): Likewise.
12282 (arm_cortex_a9_tune): Likewise.
12283 (arm_cortex_a12_tune): Likewise.
12284 (arm_v7m_tune): Likewise.
12285 (arm_cortex_m7_tune): Likewise.
12286 (arm_v6m_tune): Likewise.
12287 (arm_fa726te_tune): Likewise.
12289 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
12291 * altivec.md: Delete UNSPEC_VMLADDUHM.
12292 (mulv4si3_p8): New pattern.
12293 (mulv4si3): Use it for POWER8.
12294 (mulv8hi3): Use vmladduhm with zero addend.
12295 (altivec_vmladduhm): Descriptive RTL.
12297 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
12299 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
12300 to use neon_move instead of mov_imm.
12301 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
12302 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
12304 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
12305 aarch64_float_const_zero_rtx_p check before TFmode check.
12306 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
12308 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
12309 code and attributes to match. Change condition from register_operand
12310 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
12311 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
12314 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
12317 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
12318 there is no parent.
12320 2015-06-14 Shiva Chen <shiva0217@gmail.com>
12322 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
12323 HOST_WIDE_INT parameter.
12325 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
12328 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
12329 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
12331 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
12333 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
12335 * rtl.h (classify_insn): Declare.
12336 * emit-rtl.c (classify_insn): Move to...
12337 * rtl.c: ...here and add generator support.
12338 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
12339 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
12340 * genemit.c (gen_emit_seq): New function.
12341 (gen_expand, gen_split): Use it.
12343 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
12345 * tree.c (make_vector_stat): Fix comment to state that the
12346 function returns a VECTOR_CST.
12348 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
12350 * gensupport.h (add_implicit_parallel): Declare.
12351 * genrecog.c (add_implicit_parallel): Move to...
12352 * gensupport.c (add_implicit_parallel): ...here.
12353 (process_one_cond_exec): Use it.
12354 * genemit.c (gen_insn): Likewise.
12356 2015-06-13 Iain Sandoe <iain@codesourcery.com>
12359 * passes.c (rest_of_decl_compilation): Do not register globals for
12360 early debug if they are declared in built-ins.
12362 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
12364 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
12366 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12368 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
12370 (noce_try_cmove_arith): Likewise.
12371 (noce_get_alt_condition): Likewise.
12373 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12375 * common/config/i386/i386-common.c
12376 (OPTION_MASK_ISA_MWAITX_SET): New.
12377 (ix86_handle_option): Handle mwaitx.
12378 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
12379 (x86_64-*-*): Likewise.
12380 * config/i386/mwaitxintrin.h: New header.
12381 * config/i386/cpuid.h (bit_MWAITX): Define.
12382 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12384 * config/i386/i386.opt (mwaitx): New.
12385 * config/i386/i386-builtin-types.def
12386 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
12387 * config/i386/i386-c.c: Define __MWAITX__ if needed.
12388 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
12390 (ix86_option_override_internal): Handle new option.
12391 (processor_alias_table): Added PTA_MWAITX.
12392 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
12393 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
12394 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
12395 IX86_BUILTIN_MONITORX built-ins.
12396 * config/i386/i386.h (TARGET_MWAITX): New.
12397 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
12399 (mwaitx): New pattern.
12400 (monitorx_<mode>): New pattern.
12401 * config/i386/x86intrin.h: Include mwaitxintrin.h.
12402 * doc/extend.texi: Document monitorx and mwaitx builtins.
12403 * doc/invoke.texi: Document -mmwaitx option.
12405 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
12407 * emit-rtl.c (need_atomic_barrier_p): Mask model with
12408 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
12410 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12412 * dbxout.c (xcoff_debug_hooks): Provide a function for
12413 register_main_translation_unit hook.
12415 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12417 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
12418 variants cases from switch.
12419 (rs6000_post_atomic_barrier): Same.
12420 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
12421 (rs6000_expand_atomic_exchange): Same.
12422 (rs6000_expand_atomic_op): Same.
12423 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
12424 SYNC variants cases from switch.
12425 (atomic_load): Same.
12426 (atomic_store): Same.
12428 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
12430 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
12431 CONST_INT for goto.
12433 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
12436 * dwarf2out.c (check_die): Check for common duplicate attributes.
12437 (add_location_or_const_value_attribute): Do not add duplicate
12439 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
12441 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
12442 (gen_type_die_with_usage): Call check_die.
12443 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
12445 2015-06-11 Jason Merrill <jason@redhat.com>
12447 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
12450 2015-06-11 Marek Polacek <polacek@redhat.com>
12452 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
12454 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
12457 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
12458 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
12459 (*addx_extend_sp32): Fix pasto.
12460 (*subx_extend): Rename into...
12461 (*subx_extend_sp32): ...this.
12462 (*adddi3_extend_sp32): Add earlyclobber.
12463 (*subdi3_insn_sp32): Likewise.
12464 (*subdi3_extend_sp32): Likewise.
12465 (*and_not_di_sp32): Likewise.
12466 (*or_not_di_sp32): Likewise.
12467 (*xor_not_di_sp32): Likewise.
12468 (*negdi2_sp32): Likewise.
12469 (*one_cmpldi2_sp32): Likewise.
12471 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
12473 * debug.h (struct gcc_debug_hooks): Add a
12474 register_main_translation_unit hook.
12475 * debug.c (do_nothing_debug_hooks): Provide a function for this
12477 * dbxout.c (dbx_debug_hooks): Likewise.
12478 * sdbout.c (sdb_debug_hooks): Likewise.
12479 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12480 * dwarf2out.c (main_translation_unit): New global variable.
12481 (dwarf2out_register_main_translation_unit): New function
12482 implementing the new hook.
12483 (dwarf2_debug_hooks): Assign
12484 dwarf2out_register_main_translation_unit to this new hook.
12485 (dwarf2out_init): Associate any main translation unit to
12488 2015-06-11 Marek Polacek <polacek@redhat.com>
12490 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
12492 2015-06-11 Marek Polacek <polacek@redhat.com>
12494 * match.pd: Use single_use throughout.
12496 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12498 * config/arm/arm.c (arm_option_params_internal): When optimising
12499 for speed set max_insns_skipped when arm_restrict_it.
12501 2015-06-11 Christian Bruel <christian.bruel@st.com>
12504 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
12506 (arm_cpu_builtins): New function.
12507 (arm_pragma_target_parse): Call arm_cpu_builtins.
12508 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
12509 (arm_register_target_pragmas): Likewise.
12510 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
12511 Call arm_register_target_pragmas.
12512 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
12513 (arm_pragma_target_parse): Likewise.
12515 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
12517 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
12518 of the second operand.
12520 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
12523 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
12524 to prepare mask operand for AVX512 modes.
12526 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12529 * doc/md.texi (Machine Constraints): Document that on the PowerPC
12530 if you use a constraint that targets a VSX register, you must use
12531 %x<n> in the template.
12533 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
12535 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
12536 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
12537 (define_insn "trap"): New definition.
12539 2015-06-10 Richard Biener <rguenther@suse.de>
12541 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
12543 (vect_supported_load_permutation_p): ... here. Handle
12544 supportable permutations in reductions.
12545 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
12546 for vectorizing strided group loads.
12548 2015-06-10 Jakub Jelinek <jakub@redhat.com>
12551 * config/i386/i386.c (ix86_split_long_move): For collisions
12552 involving direct tls segment refs, move the UNSPEC_TP possibly
12553 wrapped in ZERO_EXTEND out of the address for lea, to each of
12556 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12558 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
12559 dmb sy. Adjust tabs.
12561 2015-06-10 Tom de Vries <tom@codesourcery.com>
12563 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
12565 2015-06-10 Martin Liska <mliska@suse.cz>
12568 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
12569 all enum values in mem_alloc_origin.
12570 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
12572 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
12573 * bitmap.c (bitmap_register): Likewise.
12574 (dump_bitmap_statistics): Likewise.
12575 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
12576 (ggc_record_overhead): Likewise.
12577 * hash-map.h: Likewise.
12578 * hash-set.h: Likewise.
12579 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
12580 * hash-table.h: Likewise.
12581 * vec.c (vec_prefix::register_overhead): Likewise.
12582 (vec_prefix::release_overhead): Likewise.
12583 (dump_vec_loc_statistics): Likewise.
12585 2015-06-09 Christian Bruel <christian.bruel@st.com>
12588 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
12589 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
12590 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
12591 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
12592 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
12593 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
12594 (arm_valid_target_attribute_p): Likewise.
12595 (arm_set_current_function, arm_can_inline_p): Likewise.
12596 (arm_valid_target_attribute_rec): Likewise.
12597 (arm_previous_fndecl): New variable.
12598 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12599 (TARGET_CAN_INLINE_P): Define.
12600 (arm_asm_trampoline_template): Emit mode.
12601 (arm_file_start): Don't set unified syntax.
12602 (arm_declare_function_name): Set unified syntax and mode.
12603 (arm_option_override): Init target_option_default_node.
12604 and target_option_current_node.
12605 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
12606 (*call_symbol): Likewise.
12607 * doc/extend.texi: Document ARM/Thumb target attribute.
12608 * doc/invoke.texi: Likewise.
12610 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12613 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12614 PR rtl-optimization/64164
12615 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12616 * tree-ssa-copyrename.c: Removed.
12617 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12618 -ftree-coalesce-vars.
12619 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12620 * common.opt (ftree-copyrename): Ignore.
12621 (ftree-coalesce-inlined-vars): Likewise.
12622 * doc/invoke.texi: Remove the ignored options above.
12623 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12624 * tree-ssa-coalesce.h: ... here.
12625 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12626 headers required by it.
12627 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12628 across variables when flag_tree_coalesce_vars. Check register
12629 use and promoted modes to allow coalescing. Moved to
12630 tree-ssa-coalesce.c.
12631 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12632 with its member functions to tree-ssa-coalesce.c.
12633 (var_map_base_init): Likewise. Renamed to
12634 compute_samebase_partition_bases.
12635 (partition_view_normal): Drop want_bases parameter.
12636 (partition_view_bitmap): Likewise.
12637 * tree-ssa-live.h: Adjust declarations.
12638 * tree-ssa-coalesce.c: Include explow.h.
12639 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12640 default defs at the entry point.
12641 (dump_part_var_map): New.
12642 (compute_optimized_partition_bases): New, called by...
12643 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12644 of compute_samebase_partition_bases. Adjust.
12645 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12646 * cfgexpand.c (leader_merge): New.
12647 (get_rtl_for_parm_ssa_default_def): New.
12648 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12649 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12650 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12651 redundant MEM attr setting.
12652 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12654 (expand_one_stack_var): ... this. New wrapper to check and
12655 skip already expanded SSA partitions.
12656 (record_alignment_for_reg_var): New, factored out of...
12657 (expand_one_var): ... this.
12658 (expand_one_ssa_partition): New.
12659 (adjust_one_expanded_partition_var): New.
12660 (expand_one_register_var): Check and skip already expanded SSA
12662 (expand_used_vars): Don't create DECLs for anonymous SSA
12663 names. Expand all SSA partitions, then adjust all SSA names.
12664 (pass::execute): Replace the loops that set
12665 SA.partition_to_pseudo from partition leaders and cleared
12666 DECL_RTL for multi-location variables, and that which used to
12667 rename vars and set attrs, with one that clears DECL_RTL and
12668 checks that PARMs and RESULTs default_defs match DECL_RTL.
12669 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12670 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12671 * explow.c (promote_ssa_mode): New.
12672 * explow.h (promote_ssa_mode): Declare.
12673 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12674 * function.c: Include cfgexpand.h.
12675 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12676 (use_register_for_parm_decl): Wrapper for the above to
12677 special-case the result_ptr.
12678 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12679 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12680 multiple locations.
12681 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12682 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12683 (assign_parm_setup_block): Prefer SSA-assigned location.
12684 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12685 if stack_parm is NULL.
12686 (assign_parm_setup_stack): Prefer SSA-assigned location.
12687 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12688 rtl before testing for pointer bounds. Special-case result_ptr.
12689 (expand_function_start): Maybe reset DECL_RTL of result.
12690 Prefer SSA-assigned location for result and static chain.
12691 Factor out DECL_RESULT and SET_DECL_RTL.
12692 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12693 anonymous SSA names. Use promote_ssa_mode.
12694 (get_temp_reg): Likewise.
12695 (remove_ssa_form): Adjust.
12696 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12697 and get its reg_usage for reg invalidation.
12698 (compute_bb_dataflow): Pass it insn.
12699 (emit_notes_in_bb): Likewise.
12700 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12701 fail assert on conversion between unsigned types.
12703 2015-06-09 Tom de Vries <tom@codesourcery.com>
12705 PR tree-optimization/65460
12706 * omp-low.c (expand_omp_target): Set parallelized_function on
12707 cgraph_node for child_fn.
12709 2015-06-09 Tom de Vries <tom@codesourcery.com>
12711 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
12712 parallelized_function before add_new_function.
12714 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
12716 * gcc-plugin.h: Move decls to plugin.h and include it.
12717 * plugin.h: Relocate decls from gcc-plugin.h
12718 * ggc-page.c: Include required header files.
12719 * passes.c: Likewise.
12720 * cgraphunit.c: Likewise.
12722 2015-06-09 Tom de Vries <tom@codesourcery.com>
12724 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
12726 2015-06-09 Jason Merrill <jason@redhat.com>
12729 * toplev.c (check_global_declaration): Don't warn about a clone.
12731 2015-06-09 Marek Polacek <polacek@redhat.com>
12733 PR tree-optimization/66299
12734 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
12735 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
12738 2015-06-09 Richard Biener <rguenther@suse.de>
12740 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
12741 (vect_analyze_slp_instance): Instead do not falsely drop
12744 2015-06-09 Richard Biener <rguenther@suse.de>
12746 PR middle-end/66423
12747 * match.pd: Handle A % (unsigned)(1 << B).
12749 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
12751 * varasm.c (output_object_block_htab): Remove.
12752 (output_object_block_compare): New.
12753 (output_object_blocks): Sort named object_blocks before outputting
12756 2015-06-09 Richard Biener <rguenther@suse.de>
12758 PR tree-optimization/66419
12759 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
12760 consider GROUP_GAP when detecting a perfect subchain.
12762 2015-06-09 Nick Clifton <nickc@redhat.com>
12764 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
12765 place read only data in the .frodata section.
12767 2015-06-09 Shiva Chen <shiva0217@gmail.com>
12769 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
12770 (atomic_store<mode>): Likewise.
12772 2015-06-09 Richard Biener <rguenther@suse.de>
12774 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
12776 2015-06-09 Richard Biener <rguenther@suse.de>
12778 PR middle-end/66413
12779 * tree-inline.c (insert_init_debug_bind): Unshare value.
12781 2015-06-09 Richard Biener <rguenther@suse.de>
12783 PR tree-optimization/66396
12784 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
12785 Rename virtual operands.
12787 2015-06-09 Tom de Vries <tom@codesourcery.com>
12789 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
12790 always return false.
12792 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12794 PR rtl-optimization/64164
12795 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12796 * tree-ssa-copyrename.c: Removed.
12797 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12798 -ftree-coalesce-vars.
12799 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12800 * common.opt (ftree-copyrename): Ignore.
12801 (ftree-coalesce-inlined-vars): Likewise.
12802 * doc/invoke.texi: Remove the ignored options above.
12803 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12804 * tree-ssa-coalesce.h: ... here.
12805 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12806 headers required by it.
12807 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12808 across variables when flag_tree_coalesce_vars. Check register
12809 use and promoted modes to allow coalescing. Moved to
12810 tree-ssa-coalesce.c.
12811 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12812 with its member functions to tree-ssa-coalesce.c.
12813 (var_map_base_init): Likewise. Renamed to
12814 compute_samebase_partition_bases.
12815 (partition_view_normal): Drop want_bases parameter.
12816 (partition_view_bitmap): Likewise.
12817 * tree-ssa-live.h: Adjust declarations.
12818 * tree-ssa-coalesce.c: Include explow.h.
12819 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12820 default defs at the entry point.
12821 (dump_part_var_map): New.
12822 (compute_optimized_partition_bases): New, called by...
12823 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12824 of compute_samebase_partition_bases. Adjust.
12825 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12826 * cfgexpand.c (leader_merge): New.
12827 (get_rtl_for_parm_ssa_default_def): New.
12828 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12829 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12830 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12831 redundant MEM attr setting.
12832 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12834 (expand_one_stack_var): ... this. New wrapper to check and
12835 skip already expanded SSA partitions.
12836 (record_alignment_for_reg_var): New, factored out of...
12837 (expand_one_var): ... this.
12838 (expand_one_ssa_partition): New.
12839 (adjust_one_expanded_partition_var): New.
12840 (expand_one_register_var): Check and skip already expanded SSA
12842 (expand_used_vars): Don't create DECLs for anonymous SSA
12843 names. Expand all SSA partitions, then adjust all SSA names.
12844 (pass::execute): Replace the loops that set
12845 SA.partition_to_pseudo from partition leaders and cleared
12846 DECL_RTL for multi-location variables, and that which used to
12847 rename vars and set attrs, with one that clears DECL_RTL and
12848 checks that PARMs and RESULTs default_defs match DECL_RTL.
12849 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12850 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12851 * explow.c (promote_ssa_mode): New.
12852 * explow.h (promote_ssa_mode): Declare.
12853 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12854 * function.c: Include cfgexpand.h.
12855 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12856 (use_register_for_parm_decl): Wrapper for the above to
12857 special-case the result_ptr.
12858 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12859 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12860 multiple locations.
12861 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12862 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12863 (assign_parm_setup_block): Prefer SSA-assigned location.
12864 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12865 if stack_parm is NULL.
12866 (assign_parm_setup_stack): Prefer SSA-assigned location.
12867 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12868 rtl before testing for pointer bounds. Special-case result_ptr.
12869 (expand_function_start): Maybe reset DECL_RTL of result.
12870 Prefer SSA-assigned location for result and static chain.
12871 Factor out DECL_RESULT and SET_DECL_RTL.
12872 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12873 anonymous SSA names. Use promote_ssa_mode.
12874 (get_temp_reg): Likewise.
12875 (remove_ssa_form): Adjust.
12876 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12877 and get its reg_usage for reg invalidation.
12878 (compute_bb_dataflow): Pass it insn.
12879 (emit_notes_in_bb): Likewise.
12880 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12881 fail assert on conversion between unsigned types.
12883 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
12886 * tree-inline.c (reset_debug_binding): New.
12887 (reset_debug_bindings): Likewise.
12888 (expand_call_inline): Call it.
12890 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12892 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
12895 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12897 * lto-streamer-out.c (lto_output_location): Stream
12898 reserved locations correctly.
12899 * lto-streamer-in.c (lto_output_location): Likewise.
12901 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
12903 * coretypes.h: Include hash-table.h and hash-set.h for host files.
12904 * ggc.h: Don't include statistics.h>
12905 * hash-map.h: Remove all includes.
12906 * hash-set.h: Likewise.
12907 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
12908 the include list. Remove <new>.
12909 * inchash.h: Remove all includes.
12910 * mem-stats.h: Likewise.
12911 * vec.h: No special processing for generators or ggc.
12912 * alias.c : Adjust include files.
12913 * alloc-pool.c : Likewise.
12914 * alloc-pool.h : Likewise.
12915 * asan.c : Likewise.
12916 * attribs.c : Likewise.
12917 * auto-inc-dec.c : Likewise.
12918 * auto-profile.c : Likewise.
12919 * bb-reorder.c : Likewise.
12920 * bitmap.c : Likewise.
12921 * bitmap.h : Likewise.
12922 * bt-load.c : Likewise.
12923 * builtins.c : Likewise.
12924 * caller-save.c : Likewise.
12925 * calls.c : Likewise.
12926 * ccmp.c : Likewise.
12927 * cfg.c : Likewise.
12928 * cfganal.c : Likewise.
12929 * cfgbuild.c : Likewise.
12930 * cfgcleanup.c : Likewise.
12931 * cfgexpand.c : Likewise.
12932 * cfghooks.c : Likewise.
12933 * cfgloop.c : Likewise.
12934 * cfgloop.h : Likewise.
12935 * cfgloopanal.c : Likewise.
12936 * cfgloopmanip.c : Likewise.
12937 * cfgrtl.c : Likewise.
12938 * cgraph.c : Likewise.
12939 * cgraphbuild.c : Likewise.
12940 * cgraphclones.c : Likewise.
12941 * cgraphunit.c : Likewise.
12942 * cilk-common.c : Likewise.
12943 * combine-stack-adj.c : Likewise.
12944 * combine.c : Likewise.
12945 * compare-elim.c : Likewise.
12946 * context.c : Likewise.
12947 * convert.c : Likewise.
12948 * coverage.c : Likewise.
12949 * cppbuiltin.c : Likewise.
12950 * cprop.c : Likewise.
12951 * cse.c : Likewise.
12952 * cselib.c : Likewise.
12953 * data-streamer-in.c : Likewise.
12954 * data-streamer-out.c : Likewise.
12955 * data-streamer.c : Likewise.
12956 * data-streamer.h : Likewise.
12957 * dbxout.c : Likewise.
12958 * dce.c : Likewise.
12959 * ddg.c : Likewise.
12960 * debug.c : Likewise.
12961 * df-core.c : Likewise.
12962 * df-problems.c : Likewise.
12963 * df-scan.c : Likewise.
12965 * dfp.c : Likewise.
12966 * dojump.c : Likewise.
12967 * dominance.c : Likewise.
12968 * domwalk.c : Likewise.
12969 * double-int.c : Likewise.
12970 * dse.c : Likewise.
12971 * dumpfile.c : Likewise.
12972 * dwarf2asm.c : Likewise.
12973 * dwarf2cfi.c : Likewise.
12974 * dwarf2out.c : Likewise.
12975 * emit-rtl.c : Likewise.
12976 * et-forest.c : Likewise.
12977 * except.c : Likewise.
12978 * except.h : Likewise.
12979 * explow.c : Likewise.
12980 * expmed.c : Likewise.
12981 * expr.c : Likewise.
12982 * final.c : Likewise.
12983 * fixed-value.c : Likewise.
12984 * fold-const.c : Likewise.
12985 * function.c : Likewise.
12986 * fwprop.c : Likewise.
12987 * gcc-plugin.h : Likewise.
12988 * gcc.c : Likewise.
12989 * gcse-common.c : Likewise.
12990 * gcse.c : Likewise.
12991 * genattrtab.c : Likewise.
12992 * genautomata.c : Likewise.
12993 * genconditions.c : Likewise.
12994 * genemit.c : Likewise.
12995 * generic-match-head.c : Likewise.
12996 * genextract.c : Likewise.
12997 * gengtype-state.c : Likewise.
12998 * gengtype.c : Likewise.
12999 * genhooks.c : Likewise.
13000 * genmatch.c : Likewise.
13001 * genmodes.c : Likewise.
13002 * genrecog.c : Likewise.
13003 * gensupport.c : Likewise.
13004 * ggc-common.c : Likewise.
13005 * ggc-internal.h : Likewise.
13006 * ggc-none.c : Likewise.
13007 * ggc-page.c : Likewise.
13008 * gimple-builder.c : Likewise.
13009 * gimple-expr.c : Likewise.
13010 * gimple-fold.c : Likewise.
13011 * gimple-iterator.c : Likewise.
13012 * gimple-low.c : Likewise.
13013 * gimple-match-head.c : Likewise.
13014 * gimple-pretty-print.c : Likewise.
13015 * gimple-ssa-isolate-paths.c : Likewise.
13016 * gimple-ssa-strength-reduction.c : Likewise.
13017 * gimple-ssa.h : Likewise.
13018 * gimple-streamer-in.c : Likewise.
13019 * gimple-streamer-out.c : Likewise.
13020 * gimple-streamer.h : Likewise.
13021 * gimple-walk.c : Likewise.
13022 * gimple.c : Likewise.
13023 * gimplify-me.c : Likewise.
13024 * gimplify.c : Likewise.
13025 * godump.c : Likewise.
13026 * graph.c : Likewise.
13027 * graphds.c : Likewise.
13028 * graphite-blocking.c : Likewise.
13029 * graphite-dependences.c : Likewise.
13030 * graphite-interchange.c : Likewise.
13031 * graphite-isl-ast-to-gimple.c : Likewise.
13032 * graphite-optimize-isl.c : Likewise.
13033 * graphite-poly.c : Likewise.
13034 * graphite-scop-detection.c : Likewise.
13035 * graphite-sese-to-poly.c : Likewise.
13036 * graphite.c : Likewise.
13037 * haifa-sched.c : Likewise.
13038 * hard-reg-set.h : Likewise.
13039 * hw-doloop.c : Likewise.
13040 * ifcvt.c : Likewise.
13041 * inchash.c : Likewise.
13042 * incpath.c : Likewise.
13043 * init-regs.c : Likewise.
13044 * input.c : Likewise.
13045 * internal-fn.c : Likewise.
13046 * ipa-chkp.c : Likewise.
13047 * ipa-comdats.c : Likewise.
13048 * ipa-cp.c : Likewise.
13049 * ipa-devirt.c : Likewise.
13050 * ipa-icf-gimple.c : Likewise.
13051 * ipa-icf.c : Likewise.
13052 * ipa-inline-analysis.c : Likewise.
13053 * ipa-inline-transform.c : Likewise.
13054 * ipa-inline.c : Likewise.
13055 * ipa-polymorphic-call.c : Likewise.
13056 * ipa-profile.c : Likewise.
13057 * ipa-prop.c : Likewise.
13058 * ipa-pure-const.c : Likewise.
13059 * ipa-ref.c : Likewise.
13060 * ipa-reference.c : Likewise.
13061 * ipa-split.c : Likewise.
13062 * ipa-utils.c : Likewise.
13063 * ipa-visibility.c : Likewise.
13064 * ipa.c : Likewise.
13065 * ira-build.c : Likewise.
13066 * ira-color.c : Likewise.
13067 * ira-conflicts.c : Likewise.
13068 * ira-costs.c : Likewise.
13069 * ira-emit.c : Likewise.
13070 * ira-lives.c : Likewise.
13071 * ira.c : Likewise.
13072 * jump.c : Likewise.
13073 * langhooks.c : Likewise.
13074 * lcm.c : Likewise.
13075 * libfuncs.h : Likewise.
13076 * lists.c : Likewise.
13077 * loop-doloop.c : Likewise.
13078 * loop-init.c : Likewise.
13079 * loop-invariant.c : Likewise.
13080 * loop-iv.c : Likewise.
13081 * loop-unroll.c : Likewise.
13082 * lower-subreg.c : Likewise.
13083 * lra-assigns.c : Likewise.
13084 * lra-coalesce.c : Likewise.
13085 * lra-constraints.c : Likewise.
13086 * lra-eliminations.c : Likewise.
13087 * lra-lives.c : Likewise.
13088 * lra-remat.c : Likewise.
13089 * lra-spills.c : Likewise.
13090 * lra.c : Likewise.
13091 * lto-cgraph.c : Likewise.
13092 * lto-compress.c : Likewise.
13093 * lto-opts.c : Likewise.
13094 * lto-section-in.c : Likewise.
13095 * lto-section-out.c : Likewise.
13096 * lto-streamer-in.c : Likewise.
13097 * lto-streamer-out.c : Likewise.
13098 * lto-streamer.c : Likewise.
13099 * lto-streamer.h : Likewise.
13100 * mcf.c : Likewise.
13101 * mode-switching.c : Likewise.
13102 * modulo-sched.c : Likewise.
13103 * omega.c : Likewise.
13104 * omp-low.c : Likewise.
13105 * optabs.c : Likewise.
13106 * opts-global.c : Likewise.
13107 * opts.h : Likewise.
13108 * passes.c : Likewise.
13109 * plugin.c : Likewise.
13110 * postreload-gcse.c : Likewise.
13111 * postreload.c : Likewise.
13112 * predict.c : Likewise.
13113 * print-rtl.c : Likewise.
13114 * print-tree.c : Likewise.
13115 * profile.c : Likewise.
13116 * read-md.c : Likewise.
13117 * read-md.h : Likewise.
13118 * read-rtl.c : Likewise.
13119 * real.c : Likewise.
13120 * realmpfr.c : Likewise.
13121 * recog.c : Likewise.
13122 * ree.c : Likewise.
13123 * reg-stack.c : Likewise.
13124 * regcprop.c : Likewise.
13125 * reginfo.c : Likewise.
13126 * regrename.c : Likewise.
13127 * regstat.c : Likewise.
13128 * reload.c : Likewise.
13129 * reload1.c : Likewise.
13130 * reorg.c : Likewise.
13131 * resource.c : Likewise.
13132 * rtl-chkp.c : Likewise.
13133 * rtl.c : Likewise.
13134 * rtl.h : Likewise.
13135 * rtlanal.c : Likewise.
13136 * rtlhash.c : Likewise.
13137 * rtlhash.h : Likewise.
13138 * rtlhooks.c : Likewise.
13139 * sanopt.c : Likewise.
13140 * sched-deps.c : Likewise.
13141 * sched-ebb.c : Likewise.
13142 * sched-rgn.c : Likewise.
13143 * sched-vis.c : Likewise.
13144 * sdbout.c : Likewise.
13145 * sel-sched-dump.c : Likewise.
13146 * sel-sched-ir.c : Likewise.
13147 * sel-sched-ir.h : Likewise.
13148 * sel-sched.c : Likewise.
13149 * sese.c : Likewise.
13150 * shrink-wrap.c : Likewise.
13151 * shrink-wrap.h : Likewise.
13152 * simplify-rtx.c : Likewise.
13153 * stack-ptr-mod.c : Likewise.
13154 * statistics.c : Likewise.
13155 * stmt.c : Likewise.
13156 * stor-layout.c : Likewise.
13157 * store-motion.c : Likewise.
13158 * stringpool.c : Likewise.
13159 * symtab.c : Likewise.
13160 * target-globals.c : Likewise.
13161 * targhooks.c : Likewise.
13162 * tlink.c : Likewise.
13163 * toplev.c : Likewise.
13164 * tracer.c : Likewise.
13165 * trans-mem.c : Likewise.
13166 * tree-affine.c : Likewise.
13167 * tree-affine.h : Likewise.
13168 * tree-browser.c : Likewise.
13169 * tree-call-cdce.c : Likewise.
13170 * tree-cfg.c : Likewise.
13171 * tree-cfgcleanup.c : Likewise.
13172 * tree-chkp-opt.c : Likewise.
13173 * tree-chkp.c : Likewise.
13174 * tree-chrec.c : Likewise.
13175 * tree-complex.c : Likewise.
13176 * tree-data-ref.c : Likewise.
13177 * tree-dfa.c : Likewise.
13178 * tree-diagnostic.c : Likewise.
13179 * tree-dump.c : Likewise.
13180 * tree-eh.c : Likewise.
13181 * tree-eh.h : Likewise.
13182 * tree-emutls.c : Likewise.
13183 * tree-hasher.h : Likewise.
13184 * tree-if-conv.c : Likewise.
13185 * tree-inline.c : Likewise.
13186 * tree-inline.h : Likewise.
13187 * tree-into-ssa.c : Likewise.
13188 * tree-iterator.c : Likewise.
13189 * tree-loop-distribution.c : Likewise.
13190 * tree-nested.c : Likewise.
13191 * tree-nrv.c : Likewise.
13192 * tree-object-size.c : Likewise.
13193 * tree-outof-ssa.c : Likewise.
13194 * tree-parloops.c : Likewise.
13195 * tree-phinodes.c : Likewise.
13196 * tree-predcom.c : Likewise.
13197 * tree-pretty-print.c : Likewise.
13198 * tree-profile.c : Likewise.
13199 * tree-scalar-evolution.c : Likewise.
13200 * tree-sra.c : Likewise.
13201 * tree-ssa-address.c : Likewise.
13202 * tree-ssa-alias.c : Likewise.
13203 * tree-ssa-ccp.c : Likewise.
13204 * tree-ssa-coalesce.c : Likewise.
13205 * tree-ssa-copy.c : Likewise.
13206 * tree-ssa-copyrename.c : Likewise.
13207 * tree-ssa-dce.c : Likewise.
13208 * tree-ssa-dom.c : Likewise.
13209 * tree-ssa-dse.c : Likewise.
13210 * tree-ssa-forwprop.c : Likewise.
13211 * tree-ssa-ifcombine.c : Likewise.
13212 * tree-ssa-live.c : Likewise.
13213 * tree-ssa-loop-ch.c : Likewise.
13214 * tree-ssa-loop-im.c : Likewise.
13215 * tree-ssa-loop-ivcanon.c : Likewise.
13216 * tree-ssa-loop-ivopts.c : Likewise.
13217 * tree-ssa-loop-manip.c : Likewise.
13218 * tree-ssa-loop-niter.c : Likewise.
13219 * tree-ssa-loop-prefetch.c : Likewise.
13220 * tree-ssa-loop-unswitch.c : Likewise.
13221 * tree-ssa-loop.c : Likewise.
13222 * tree-ssa-math-opts.c : Likewise.
13223 * tree-ssa-operands.c : Likewise.
13224 * tree-ssa-phiopt.c : Likewise.
13225 * tree-ssa-phiprop.c : Likewise.
13226 * tree-ssa-pre.c : Likewise.
13227 * tree-ssa-propagate.c : Likewise.
13228 * tree-ssa-reassoc.c : Likewise.
13229 * tree-ssa-sccvn.c : Likewise.
13230 * tree-ssa-scopedtables.c : Likewise.
13231 * tree-ssa-sink.c : Likewise.
13232 * tree-ssa-strlen.c : Likewise.
13233 * tree-ssa-structalias.c : Likewise.
13234 * tree-ssa-tail-merge.c : Likewise.
13235 * tree-ssa-ter.c : Likewise.
13236 * tree-ssa-threadedge.c : Likewise.
13237 * tree-ssa-threadupdate.c : Likewise.
13238 * tree-ssa-uncprop.c : Likewise.
13239 * tree-ssa-uninit.c : Likewise.
13240 * tree-ssa.c : Likewise.
13241 * tree-ssanames.c : Likewise.
13242 * tree-stdarg.c : Likewise.
13243 * tree-streamer-in.c : Likewise.
13244 * tree-streamer-out.c : Likewise.
13245 * tree-streamer.c : Likewise.
13246 * tree-streamer.h : Likewise.
13247 * tree-switch-conversion.c : Likewise.
13248 * tree-tailcall.c : Likewise.
13249 * tree-vect-data-refs.c : Likewise.
13250 * tree-vect-generic.c : Likewise.
13251 * tree-vect-loop-manip.c : Likewise.
13252 * tree-vect-loop.c : Likewise.
13253 * tree-vect-patterns.c : Likewise.
13254 * tree-vect-slp.c : Likewise.
13255 * tree-vect-stmts.c : Likewise.
13256 * tree-vectorizer.c : Likewise.
13257 * tree-vectorizer.h : Likewise.
13258 * tree-vrp.c : Likewise.
13259 * tree.c : Likewise.
13260 * tsan.c : Likewise.
13261 * ubsan.c : Likewise.
13262 * valtrack.c : Likewise.
13263 * valtrack.h : Likewise.
13264 * value-prof.c : Likewise.
13265 * var-tracking.c : Likewise.
13266 * varasm.c : Likewise.
13267 * varpool.c : Likewise.
13269 * vmsdbgout.c : Likewise.
13270 * vtable-verify.c : Likewise.
13271 * vtable-verify.h : Likewise.
13272 * web.c : Likewise.
13273 * wide-int.cc : Likewise.
13274 * xcoffout.c : Likewise.
13275 * config/aarch64/aarch64-builtins.c : Likewise.
13276 * config/aarch64/aarch64.c : Likewise.
13277 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
13278 * config/alpha/alpha.c : Likewise.
13279 * config/arc/arc.c : Likewise.
13280 * config/arm/aarch-common.c : Likewise.
13281 * config/arm/arm-builtins.c : Likewise.
13282 * config/arm/arm-c.c : Likewise.
13283 * config/arm/arm.c : Likewise.
13284 * config/avr/avr-c.c : Likewise.
13285 * config/avr/avr-log.c : Likewise.
13286 * config/avr/avr.c : Likewise.
13287 * config/bfin/bfin.c : Likewise.
13288 * config/c6x/c6x.c : Likewise.
13289 * config/cr16/cr16.c : Likewise.
13290 * config/cris/cris.c : Likewise.
13291 * config/darwin-c.c : Likewise.
13292 * config/darwin.c : Likewise.
13293 * config/default-c.c : Likewise.
13294 * config/epiphany/epiphany.c : Likewise.
13295 * config/epiphany/mode-switch-use.c : Likewise.
13296 * config/epiphany/resolve-sw-modes.c : Likewise.
13297 * config/fr30/fr30.c : Likewise.
13298 * config/frv/frv.c : Likewise.
13299 * config/ft32/ft32.c : Likewise.
13300 * config/glibc-c.c : Likewise.
13301 * config/h8300/h8300.c : Likewise.
13302 * config/i386/i386-c.c : Likewise.
13303 * config/i386/i386.c : Likewise.
13304 * config/i386/msformat-c.c : Likewise.
13305 * config/i386/winnt-cxx.c : Likewise.
13306 * config/i386/winnt-stubs.c : Likewise.
13307 * config/i386/winnt.c : Likewise.
13308 * config/ia64/ia64-c.c : Likewise.
13309 * config/ia64/ia64.c : Likewise.
13310 * config/iq2000/iq2000.c : Likewise.
13311 * config/lm32/lm32.c : Likewise.
13312 * config/m32c/m32c-pragma.c : Likewise.
13313 * config/m32c/m32c.c : Likewise.
13314 * config/m32r/m32r.c : Likewise.
13315 * config/m68k/m68k.c : Likewise.
13316 * config/mcore/mcore.c : Likewise.
13317 * config/mep/mep-pragma.c : Likewise.
13318 * config/mep/mep.c : Likewise.
13319 * config/microblaze/microblaze-c.c : Likewise.
13320 * config/microblaze/microblaze.c : Likewise.
13321 * config/mips/mips.c : Likewise.
13322 * config/mmix/mmix.c : Likewise.
13323 * config/mn10300/mn10300.c : Likewise.
13324 * config/moxie/moxie.c : Likewise.
13325 * config/msp430/msp430-c.c : Likewise.
13326 * config/msp430/msp430.c : Likewise.
13327 * config/nds32/nds32-cost.c : Likewise.
13328 * config/nds32/nds32-fp-as-gp.c : Likewise.
13329 * config/nds32/nds32-intrinsic.c : Likewise.
13330 * config/nds32/nds32-isr.c : Likewise.
13331 * config/nds32/nds32-md-auxiliary.c : Likewise.
13332 * config/nds32/nds32-memory-manipulation.c : Likewise.
13333 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
13334 * config/nds32/nds32-predicates.c : Likewise.
13335 * config/nds32/nds32.c : Likewise.
13336 * config/nios2/nios2.c : Likewise.
13337 * config/nvptx/nvptx.c : Likewise.
13338 * config/pa/pa.c : Likewise.
13339 * config/pdp11/pdp11.c : Likewise.
13340 * config/rl78/rl78-c.c : Likewise.
13341 * config/rl78/rl78.c : Likewise.
13342 * config/rs6000/rs6000-c.c : Likewise.
13343 * config/rs6000/rs6000.c : Likewise.
13344 * config/rx/rx.c : Likewise.
13345 * config/s390/s390-c.c : Likewise.
13346 * config/s390/s390.c : Likewise.
13347 * config/sh/sh-c.c : Likewise.
13348 * config/sh/sh-mem.cc : Likewise.
13349 * config/sh/sh.c : Likewise.
13350 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
13351 * config/sh/sh_treg_combine.cc : Likewise.
13352 * config/sol2-c.c : Likewise.
13353 * config/sol2-cxx.c : Likewise.
13354 * config/sol2-stubs.c : Likewise.
13355 * config/sol2.c : Likewise.
13356 * config/sparc/sparc-c.c : Likewise.
13357 * config/sparc/sparc.c : Likewise.
13358 * config/spu/spu-c.c : Likewise.
13359 * config/spu/spu.c : Likewise.
13360 * config/stormy16/stormy16.c : Likewise.
13361 * config/tilegx/mul-tables.c : Likewise.
13362 * config/tilegx/tilegx-c.c : Likewise.
13363 * config/tilegx/tilegx.c : Likewise.
13364 * config/tilepro/mul-tables.c : Likewise.
13365 * config/tilepro/tilepro-c.c : Likewise.
13366 * config/tilepro/tilepro.c : Likewise.
13367 * config/v850/v850-c.c : Likewise.
13368 * config/v850/v850.c : Likewise.
13369 * config/vax/vax.c : Likewise.
13370 * config/visium/visium.c : Likewise.
13371 * config/vms/vms-c.c : Likewise.
13372 * config/vms/vms.c : Likewise.
13373 * config/vxworks.c : Likewise.
13374 * config/winnt-c.c : Likewise.
13375 * config/xtensa/xtensa.c : Likewise.
13377 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13380 * ipa-utils.h (warn_types_mismatch): Update prototype.
13381 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
13383 (type_mismatch_p): New function.
13384 (warn_types_mismatch): Reorg to work better on non-C++ types.
13385 (odr_types_equivalent_p): Add loc1/loc2 parameters.
13386 (add_type_duplicate): Update.
13388 2015-06-08 Tom de Vries <tom@codesourcery.com>
13390 PR rtl-optimization/66444
13391 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
13394 2015-06-08 Richard Biener <rguenther@suse.de>
13396 PR tree-optimization/66422
13397 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
13398 block after inserted gcc_unreachable.
13400 2015-06-08 Nick Clifton <nickc@redhat.com>
13402 * config/rx/rx.c (rx_function_value): Do not promote vector types.
13403 (rx_promote_function_mode): Likewise.
13404 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
13406 2015-06-08 Jakub Jelinek <jakub@redhat.com>
13408 * genattrtab.c (insn_alternatives): Change type from int *
13410 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
13411 (get_attr_value): Change type of num_alt to uint64_t.
13412 (compute_alternative_mask): Change return type from
13413 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
13414 (make_alternative_compare, mk_attr_alt): Change argument type
13415 from int to uint64_t.
13416 (simplify_test_exp): Change type of i from int to uint64_t.
13417 Shift ((uint64_t) 1) instead of 1 up.
13418 (main): Adjust oballocvec first argument from int to uint64_t.
13419 Shift ((uint64_t) 1) instead of 1 up.
13421 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13424 * gdbhooks.py: Import sys.
13425 (intptr): New function. Replace int(...) by intptr(...).
13427 2015-06-08 Richard Biener <rguenther@suse.de>
13429 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
13430 adjustment for gaps at the end of a SLP load group properly.
13431 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
13432 all permutations we can generate.
13433 (vect_transform_slp_perm_load): Use the correct group-size.
13435 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
13437 * genmatch.c (expr::gen_transform): For conditions, guess the type
13438 from the second operand.
13440 2015-06-08 Tom de Vries <tom@codesourcery.com>
13442 PR tree-optimization/66442
13443 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
13444 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
13445 if the loop latch is not a singleton. Use
13446 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
13448 2015-06-08 Marek Polacek <polacek@redhat.com>
13451 * toplev.c (check_global_declaration): Don't warn about artificial
13454 2015-06-08 Tom de Vries <tom@codesourcery.com>
13456 PR tree-optimization/66436
13457 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
13459 * gimplify.c: Add tree-dump.h include.
13460 (gimplify_function_tree): Dump function to gimple dump file.
13461 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
13464 2015-06-08 Tom de Vries <tom@codesourcery.com>
13466 PR tree-optimization/66435
13467 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
13470 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
13472 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
13473 of ptr_type_node to not be ptr_to_node.
13474 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
13475 TREE_TYPE of pointers.
13476 * gimple-expr.c (useless_type_conversion): Reorder the check for
13477 function pointers and TYPE_CANONICAL.
13479 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
13482 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
13483 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
13484 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
13486 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
13487 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
13488 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
13489 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
13490 and non iso if unix2003.
13492 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
13494 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
13496 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
13498 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
13499 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
13500 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
13501 except.c, final.c, function.c, gcse-common.c, genemit.c,
13502 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
13503 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
13504 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
13505 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
13508 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
13510 * combine.c (combine_split_insns): Remove cast.
13511 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
13512 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
13513 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
13514 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
13515 * genemit.c (gen_split): Change return type of generated functions to
13517 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
13518 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
13519 gen_peephole2_* functions.
13520 (print_subroutine, main): Likewise.
13521 * recog.c (peephole2_optimize): Remove cast.
13522 (peep2_next_insn): Promote return type to rtx_insn.
13523 * recog.h (peep2_next_insn): Fix prototype.
13524 * rtl.h (try_split, split_insns): Likewise.
13526 2015-06-06 DJ Delorie <dj@redhat.com>
13528 * config/msp430/msp430.c (msp430_asm_integer): Support addition
13529 and subtraction too.
13531 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
13534 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
13535 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
13536 instead of Snd. Disparage Sid/z alternative with '^'.
13538 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
13540 * dwarf2out.c: Remove deferred_locations*.
13541 (dwarf2_debug_hooks): Add early_finish hook.
13542 Remove global_decl hook.
13543 Add early_global_decl and late_global_decl hook.
13544 New global early_dwarf.
13545 New structure set_early_dwarf.
13546 (output_die): Indicate whether a DIE was generated early
13547 when generating assembly with -dA.
13548 (struct limbo_die_struct): Document created_for field.
13549 Remove file_table_last_lookup.
13550 (remove_AT): Return TRUE if successful.
13551 (remove_child_TAG): Clear die_parent.
13552 (reparent_child): New function abstracted from...
13553 (splice_child_die): ...here.
13554 (new_die): ICE if a DIE ends up in limbo too late.
13556 (defer_location): Remove.
13557 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
13558 (fill_variable_array_bounds): New.
13559 (decl_start_label): Call fill_variable_array_bounds.
13560 (gen_formal_parameter_die): Rewrite to reuse previously generated
13562 (gen_subprogram_die): Same.
13563 (gen_variable_die): Same.
13564 (gen_const_die): Same.
13565 (gen_label_die): Same.
13566 (gen_lexical_block_die): Same.
13567 (decl_will_get_specification_p): New.
13568 (local_function_static): New.
13569 (gen_struct_or_union_type_die): Fill in variable-length fields.
13570 (gen_typedef_die): Fill in variable-length typedefs.
13571 (gen_tagged_type_die): Gracefully return on error_mark_node.
13572 Handle re-entrancy.
13573 (gen_type_die_with_usage): Handle variable-length types.
13574 Remove duplicate code for ARRAY_TYPE case.
13575 (process_scope_var): Only process imported modules during early
13577 (dwarf2out_early_global_decl): New.
13578 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
13579 (dwarf2out_type_decl): Set early_dwarf while calling
13581 (dwarf2out_decl): Verify that we did not recreate a previously
13583 Do not return on DECL_EXTERNALs in VAR_DECLs.
13584 Abstract some code to local_function_static.
13585 (lookup_filename): Remove use of file_table_last_lookup.
13586 Gracefully exit on missing file_name.
13587 (dwarf2out_finish): Verify limbo list.
13588 Remove deferred_locations_list use.
13589 Move deferred_asm_name and limbo flushing to...
13590 (dwarf2out_early_finish): ...here. New.
13591 (dwarf2out_c_finalize): Remove set of deferred_location_list,
13592 deferred_asm_name, and file_table_last_lookup.
13593 * cgraph.h (referred_to_p): Add default argument.
13594 * cgraphunit.c (referred_to_p): Add and handle include_self
13596 (analyze_functions): Add first_time argument.
13597 Call check_global_declaration for all symbols.
13598 Call late_global_decl for nodes for moribund nodes.
13599 (finalize_compilation_unit): Add new argument to
13601 Call early_global_decl for functions.
13602 Call early_finish debug hook.
13603 * dbxout.c (dbxout_early_global_decl): New.
13604 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
13605 (dbx_debug_hooks): Add new hooks.
13606 (xcoff_debug_hooks): Same.
13607 * debug.c (do_nothing_debug_hooks): Add early_finish field.
13608 Add early and late debug hooks.
13609 Remove global_decl hook.
13610 * debug.h (struct gcc_debug_hooks): Add early_finish,
13611 early_global_decl, and late_global_decl fields.
13612 Remove global_decl field.
13613 Document gcc_debug_hooks.
13614 * gengtype.c (output_typename): Remove.
13615 * godump.c (go_early_global_decl): New.
13616 (go_late_global_decl): New.
13617 (go_global_decl): Remove.
13618 (dump_go_spec_init): Remove global_decl. Add
13619 {early,late}_global_decl.
13620 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
13621 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
13622 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
13623 (write_global_declarations): Remove.
13624 (global_decl_processing): New.
13625 * langhooks.h (struct lang_hooks_for_decls): Remove
13626 final_write_globals field.
13627 Add post_compilation_parsing_cleanups field.
13628 * passes.c (rest_of_decl_compilation): Call early_global_decl.
13629 * sdbout.c: Add early and late_global_decl hooks. Remove
13630 sdbout_global_decl hook.
13631 Add early_finish field for sdb_debug_hooks.
13632 (sdbout_global_decl): Remove.
13633 (sdbout_early_global_decl): New.
13634 (sdbout_late_global_decl): New.
13635 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
13636 * toplev.c (check_global_declaration): Rename from
13637 check_global_declaration_1.
13638 Adapt to use symtab infrastructure.
13639 (check_global_declarations): Remove.
13640 (emit_debug_global_declarations): Remove.
13641 (compile_file): Remove call to final_write_globals langhook.
13642 Run the actual compilation process.
13643 Perform any post compilation parser cleanups.
13644 Generate late debug info.
13645 * toplev.h (check_global_declaration): New.
13646 (check_global_declaration_1): Remove.
13647 (check_global_declarations): Remove.
13648 (write_global_declarations): Remove.
13649 (emit_debug_global_declarations): Remove.
13650 (global_decl_processing): New.
13651 * tree-core.h (struct tree_block): Add DIE field.
13652 * tree.h (BLOCK_DIE): New.
13653 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
13655 (vmsdbgout_early_global_decl): New.
13656 (vmsdbgout_late_global_decl): New.
13657 Add early_finish debug hook field to vmsdbg_debug_hooks.
13658 Remove vmsdbgout_decl to vmsdbgout_function_decl.
13659 Add early and late_global_decl debug hooks.
13661 2015-06-05 Julian Brown <julian@codesourcery.com>
13662 Sandra Loosemore <sandra@codesourcery.com>
13664 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
13665 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
13666 to print-sysroot-suffix.sh script.
13668 2015-06-05 Tom de Vries <tom@codesourcery.com>
13670 merge from gomp4 branch:
13671 2015-05-28 Tom de Vries <tom@codesourcery.com>
13673 PR tree-optimization/65443
13674 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
13675 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
13676 (try_transform_to_exit_first_loop_alt): New function.
13677 (transform_to_exit_first_loop): Use
13678 try_transform_to_exit_first_loop_alt.
13680 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
13682 * builtins.c (expand_builtin_atomic_compare_exchange): Call
13683 emit_cmp_and_jump_insns with the mode of target.
13685 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13687 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
13689 2015-06-04 DJ Delorie <dj@redhat.com>
13691 * config/msp430/msp430.md (movsi_s): New. Special case for
13692 storing a 20-bit symbol into a 32-bit register.
13693 * config/msp430/msp430.c (msp430_subreg): Add support for it.
13694 * config/msp430/predicates.md (msp430_symbol_operand): New.
13696 2015-06-04 Sriraman Tallam <tmsriram@google.com>
13698 * c-family/c-common.c (noplt): New attribute.
13699 (handle_noplt_attribute): New handler.
13700 * calls.c (prepare_call_address): Check for noplt
13702 * config/i386/i386.c (ix86_expand_call): Check
13703 for noplt attribute.
13704 (ix86_nopic_noplt_attribute_p): New function.
13705 (ix86_output_call_insn): Output indirect call for non-pic
13707 * doc/extend.texi (noplt): Document new attribute.
13708 * doc/invoke.texi: Document new attribute.
13710 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
13712 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
13713 real.h, and fixed-value.h when included in host source files.
13714 * double-int.h: Remove redundant #includes listed above.
13715 * fixed-value.h: Likewise.
13716 * real.h: Likewise.
13717 * wide-int.h: Likewise.
13718 * inchash.h: Likewise.
13719 * rtl.h: Add some include files When included from a generator file.
13720 * target.h: Remove wide-int.h and insn-modes.h from the include list.
13721 * internal-fn.h: Don't include coretypes.h.
13722 * alias.c: Adjust includes for restructured coretypes.h.
13723 * asan.c: Likewise.
13724 * attribs.c: Likewise.
13725 * auto-inc-dec.c: Likewise.
13726 * auto-profile.c: Likewise.
13727 * bb-reorder.c: Likewise.
13728 * bt-load.c: Likewise.
13729 * builtins.c: Likewise.
13730 * caller-save.c: Likewise.
13731 * calls.c: Likewise.
13732 * ccmp.c: Likewise.
13734 * cfganal.c: Likewise.
13735 * cfgbuild.c: Likewise.
13736 * cfgcleanup.c: Likewise.
13737 * cfgexpand.c: Likewise.
13738 * cfghooks.c: Likewise.
13739 * cfgloop.c: Likewise.
13740 * cfgloop.h: Likewise.
13741 * cfgloopanal.c: Likewise.
13742 * cfgloopmanip.c: Likewise.
13743 * cfgrtl.c: Likewise.
13744 * cgraph.c: Likewise.
13745 * cgraphbuild.c: Likewise.
13746 * cgraphclones.c: Likewise.
13747 * cgraphunit.c: Likewise.
13748 * cilk-common.c: Likewise.
13749 * combine-stack-adj.c: Likewise.
13750 * combine.c: Likewise.
13751 * compare-elim.c: Likewise.
13752 * convert.c: Likewise.
13753 * coverage.c: Likewise.
13754 * cppbuiltin.c: Likewise.
13755 * cprop.c: Likewise.
13757 * cselib.c: Likewise.
13758 * data-streamer-in.c: Likewise.
13759 * data-streamer-out.c: Likewise.
13760 * data-streamer.c: Likewise.
13761 * dbxout.c: Likewise.
13764 * debug.c: Likewise.
13765 * df-core.c: Likewise.
13766 * df-problems.c: Likewise.
13767 * df-scan.c: Likewise.
13770 * dojump.c: Likewise.
13771 * dominance.c: Likewise.
13772 * domwalk.c: Likewise.
13773 * double-int.c: Likewise.
13775 * dumpfile.c: Likewise.
13776 * dwarf2asm.c: Likewise.
13777 * dwarf2cfi.c: Likewise.
13778 * dwarf2out.c: Likewise.
13779 * dwarf2out.h: Likewise.
13780 * emit-rtl.c: Likewise.
13781 * et-forest.c: Likewise.
13782 * except.c: Likewise.
13783 * explow.c: Likewise.
13784 * expmed.c: Likewise.
13785 * expr.c: Likewise.
13786 * final.c: Likewise.
13787 * fixed-value.c: Likewise.
13788 * fold-const.c: Likewise.
13789 * function.c: Likewise.
13790 * fwprop.c: Likewise.
13791 * gcc-plugin.h: Likewise.
13792 * gcse.c: Likewise.
13793 * generic-match-head.c: Likewise.
13794 * ggc-page.c: Likewise.
13795 * gimple-builder.c: Likewise.
13796 * gimple-expr.c: Likewise.
13797 * gimple-fold.c: Likewise.
13798 * gimple-iterator.c: Likewise.
13799 * gimple-low.c: Likewise.
13800 * gimple-match-head.c: Likewise.
13801 * gimple-pretty-print.c: Likewise.
13802 * gimple-ssa-isolate-paths.c: Likewise.
13803 * gimple-ssa-strength-reduction.c: Likewise.
13804 * gimple-streamer-in.c: Likewise.
13805 * gimple-streamer-out.c: Likewise.
13806 * gimple-streamer.h: Likewise.
13807 * gimple-walk.c: Likewise.
13808 * gimple.c: Likewise.
13809 * gimplify-me.c: Likewise.
13810 * gimplify.c: Likewise.
13811 * godump.c: Likewise.
13812 * graph.c: Likewise.
13813 * graphite-blocking.c: Likewise.
13814 * graphite-dependences.c: Likewise.
13815 * graphite-interchange.c: Likewise.
13816 * graphite-isl-ast-to-gimple.c: Likewise.
13817 * graphite-optimize-isl.c: Likewise.
13818 * graphite-poly.c: Likewise.
13819 * graphite-scop-detection.c: Likewise.
13820 * graphite-sese-to-poly.c: Likewise.
13821 * graphite.c: Likewise.
13822 * haifa-sched.c: Likewise.
13823 * hooks.h: Likewise.
13824 * hw-doloop.c: Likewise.
13825 * ifcvt.c: Likewise.
13826 * incpath.c: Likewise.
13827 * init-regs.c: Likewise.
13828 * internal-fn.c: Likewise.
13829 * ipa-chkp.c: Likewise.
13830 * ipa-comdats.c: Likewise.
13831 * ipa-cp.c: Likewise.
13832 * ipa-devirt.c: Likewise.
13833 * ipa-icf-gimple.c: Likewise.
13834 * ipa-icf.c: Likewise.
13835 * ipa-inline-analysis.c: Likewise.
13836 * ipa-inline-transform.c: Likewise.
13837 * ipa-inline.c: Likewise.
13838 * ipa-polymorphic-call.c: Likewise.
13839 * ipa-profile.c: Likewise.
13840 * ipa-prop.c: Likewise.
13841 * ipa-pure-const.c: Likewise.
13842 * ipa-ref.c: Likewise.
13843 * ipa-reference.c: Likewise.
13844 * ipa-split.c: Likewise.
13845 * ipa-utils.c: Likewise.
13846 * ipa-visibility.c: Likewise.
13848 * ira-build.c: Likewise.
13849 * ira-color.c: Likewise.
13850 * ira-conflicts.c: Likewise.
13851 * ira-costs.c: Likewise.
13852 * ira-emit.c: Likewise.
13853 * ira-lives.c: Likewise.
13855 * jump.c: Likewise.
13856 * langhooks.c: Likewise.
13858 * loop-doloop.c: Likewise.
13859 * loop-init.c: Likewise.
13860 * loop-invariant.c: Likewise.
13861 * loop-iv.c: Likewise.
13862 * loop-unroll.c: Likewise.
13863 * lower-subreg.c: Likewise.
13864 * lra-assigns.c: Likewise.
13865 * lra-coalesce.c: Likewise.
13866 * lra-constraints.c: Likewise.
13867 * lra-eliminations.c: Likewise.
13868 * lra-lives.c: Likewise.
13869 * lra-remat.c: Likewise.
13870 * lra-spills.c: Likewise.
13872 * lto-cgraph.c: Likewise.
13873 * lto-compress.c: Likewise.
13874 * lto-opts.c: Likewise.
13875 * lto-section-in.c: Likewise.
13876 * lto-section-out.c: Likewise.
13877 * lto-streamer-in.c: Likewise.
13878 * lto-streamer-out.c: Likewise.
13879 * lto-streamer.c: Likewise.
13881 * mode-switching.c: Likewise.
13882 * modulo-sched.c: Likewise.
13883 * omega.c: Likewise.
13884 * omp-low.c: Likewise.
13885 * optabs.c: Likewise.
13886 * opts-global.c: Likewise.
13887 * passes.c: Likewise.
13888 * plugin.c: Likewise.
13889 * postreload-gcse.c: Likewise.
13890 * postreload.c: Likewise.
13891 * predict.c: Likewise.
13892 * print-rtl.c: Likewise.
13893 * print-tree.c: Likewise.
13894 * profile.c: Likewise.
13895 * real.c: Likewise.
13896 * realmpfr.c: Likewise.
13897 * realmpfr.h: Likewise.
13898 * recog.c: Likewise.
13900 * reg-stack.c: Likewise.
13901 * regcprop.c: Likewise.
13902 * reginfo.c: Likewise.
13903 * regrename.c: Likewise.
13904 * regs.h: Likewise.
13905 * regstat.c: Likewise.
13906 * reload.c: Likewise.
13907 * reload1.c: Likewise.
13908 * reorg.c: Likewise.
13909 * resource.c: Likewise.
13910 * rtl-chkp.c: Likewise.
13911 * rtlanal.c: Likewise.
13912 * rtlhooks.c: Likewise.
13913 * sanopt.c: Likewise.
13914 * sched-deps.c: Likewise.
13915 * sched-ebb.c: Likewise.
13916 * sched-rgn.c: Likewise.
13917 * sched-vis.c: Likewise.
13918 * sdbout.c: Likewise.
13919 * sel-sched-dump.c: Likewise.
13920 * sel-sched-ir.c: Likewise.
13921 * sel-sched.c: Likewise.
13922 * sese.c: Likewise.
13923 * shrink-wrap.c: Likewise.
13924 * shrink-wrap.h: Likewise.
13925 * simplify-rtx.c: Likewise.
13926 * stack-ptr-mod.c: Likewise.
13927 * statistics.c: Likewise.
13928 * stmt.c: Likewise.
13929 * stor-layout.c: Likewise.
13930 * store-motion.c: Likewise.
13931 * stringpool.c: Likewise.
13932 * symtab.c: Likewise.
13933 * target-globals.c: Likewise.
13934 * targhooks.c: Likewise.
13935 * toplev.c: Likewise.
13936 * tracer.c: Likewise.
13937 * trans-mem.c: Likewise.
13938 * tree-affine.c: Likewise.
13939 * tree-affine.h: Likewise.
13940 * tree-browser.c: Likewise.
13941 * tree-call-cdce.c: Likewise.
13942 * tree-cfg.c: Likewise.
13943 * tree-cfgcleanup.c: Likewise.
13944 * tree-chkp-opt.c: Likewise.
13945 * tree-chkp.c: Likewise.
13946 * tree-chrec.c: Likewise.
13947 * tree-complex.c: Likewise.
13948 * tree-data-ref.c: Likewise.
13949 * tree-dfa.c: Likewise.
13950 * tree-diagnostic.c: Likewise.
13951 * tree-dump.c: Likewise.
13952 * tree-eh.c: Likewise.
13953 * tree-emutls.c: Likewise.
13954 * tree-if-conv.c: Likewise.
13955 * tree-inline.c: Likewise.
13956 * tree-into-ssa.c: Likewise.
13957 * tree-iterator.c: Likewise.
13958 * tree-loop-distribution.c: Likewise.
13959 * tree-nested.c: Likewise.
13960 * tree-nrv.c: Likewise.
13961 * tree-object-size.c: Likewise.
13962 * tree-outof-ssa.c: Likewise.
13963 * tree-parloops.c: Likewise.
13964 * tree-phinodes.c: Likewise.
13965 * tree-predcom.c: Likewise.
13966 * tree-pretty-print.c: Likewise.
13967 * tree-pretty-print.h: Likewise.
13968 * tree-profile.c: Likewise.
13969 * tree-scalar-evolution.c: Likewise.
13970 * tree-sra.c: Likewise.
13971 * tree-ssa-address.c: Likewise.
13972 * tree-ssa-alias.c: Likewise.
13973 * tree-ssa-ccp.c: Likewise.
13974 * tree-ssa-coalesce.c: Likewise.
13975 * tree-ssa-copy.c: Likewise.
13976 * tree-ssa-copyrename.c: Likewise.
13977 * tree-ssa-dce.c: Likewise.
13978 * tree-ssa-dom.c: Likewise.
13979 * tree-ssa-dse.c: Likewise.
13980 * tree-ssa-forwprop.c: Likewise.
13981 * tree-ssa-ifcombine.c: Likewise.
13982 * tree-ssa-live.c: Likewise.
13983 * tree-ssa-loop-ch.c: Likewise.
13984 * tree-ssa-loop-im.c: Likewise.
13985 * tree-ssa-loop-ivcanon.c: Likewise.
13986 * tree-ssa-loop-ivopts.c: Likewise.
13987 * tree-ssa-loop-manip.c: Likewise.
13988 * tree-ssa-loop-niter.c: Likewise.
13989 * tree-ssa-loop-prefetch.c: Likewise.
13990 * tree-ssa-loop-unswitch.c: Likewise.
13991 * tree-ssa-loop.c: Likewise.
13992 * tree-ssa-loop.h: Likewise.
13993 * tree-ssa-math-opts.c: Likewise.
13994 * tree-ssa-operands.c: Likewise.
13995 * tree-ssa-phiopt.c: Likewise.
13996 * tree-ssa-phiprop.c: Likewise.
13997 * tree-ssa-pre.c: Likewise.
13998 * tree-ssa-propagate.c: Likewise.
13999 * tree-ssa-reassoc.c: Likewise.
14000 * tree-ssa-sccvn.c: Likewise.
14001 * tree-ssa-scopedtables.c: Likewise.
14002 * tree-ssa-sink.c: Likewise.
14003 * tree-ssa-strlen.c: Likewise.
14004 * tree-ssa-structalias.c: Likewise.
14005 * tree-ssa-tail-merge.c: Likewise.
14006 * tree-ssa-ter.c: Likewise.
14007 * tree-ssa-threadedge.c: Likewise.
14008 * tree-ssa-threadupdate.c: Likewise.
14009 * tree-ssa-uncprop.c: Likewise.
14010 * tree-ssa-uninit.c: Likewise.
14011 * tree-ssa.c: Likewise.
14012 * tree-ssanames.c: Likewise.
14013 * tree-stdarg.c: Likewise.
14014 * tree-streamer-in.c: Likewise.
14015 * tree-streamer-out.c: Likewise.
14016 * tree-streamer.c: Likewise.
14017 * tree-switch-conversion.c: Likewise.
14018 * tree-tailcall.c: Likewise.
14019 * tree-vect-data-refs.c: Likewise.
14020 * tree-vect-generic.c: Likewise.
14021 * tree-vect-loop-manip.c: Likewise.
14022 * tree-vect-loop.c: Likewise.
14023 * tree-vect-patterns.c: Likewise.
14024 * tree-vect-slp.c: Likewise.
14025 * tree-vect-stmts.c: Likewise.
14026 * tree-vectorizer.c: Likewise.
14027 * tree-vrp.c: Likewise.
14028 * tree.c: Likewise.
14029 * tsan.c: Likewise.
14030 * ubsan.c: Likewise.
14031 * valtrack.c: Likewise.
14032 * value-prof.c: Likewise.
14033 * var-tracking.c: Likewise.
14034 * varasm.c: Likewise.
14035 * varpool.c: Likewise.
14036 * vmsdbgout.c: Likewise.
14037 * vtable-verify.c: Likewise.
14039 * wide-int-print.cc: Likewise.
14040 * wide-int-print.h: Likewise.
14041 * wide-int.cc: Likewise.
14042 * xcoffout.c: Likewise.
14043 * config/aarch64/aarch64-builtins.c: Likewise.
14044 * config/aarch64/aarch64.c: Likewise.
14045 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14046 * config/alpha/alpha.c: Likewise.
14047 * config/arc/arc.c: Likewise.
14048 * config/arm/aarch-common.c: Likewise.
14049 * config/arm/arm-builtins.c: Likewise.
14050 * config/arm/arm-c.c: Likewise.
14051 * config/arm/arm.c: Likewise.
14052 * config/avr/avr-c.c: Likewise.
14053 * config/avr/avr-log.c: Likewise.
14054 * config/avr/avr.c: Likewise.
14055 * config/bfin/bfin.c: Likewise.
14056 * config/c6x/c6x.c: Likewise.
14057 * config/cr16/cr16.c: Likewise.
14058 * config/cris/cris.c: Likewise.
14059 * config/darwin-c.c: Likewise.
14060 * config/darwin.c: Likewise.
14061 * config/default-c.c: Likewise.
14062 * config/epiphany/epiphany.c: Likewise.
14063 * config/epiphany/mode-switch-use.c: Likewise.
14064 * config/epiphany/resolve-sw-modes.c: Likewise.
14065 * config/fr30/fr30.c: Likewise.
14066 * config/frv/frv.c: Likewise.
14067 * config/ft32/ft32.c: Likewise.
14068 * config/glibc-c.c: Likewise.
14069 * config/h8300/h8300.c: Likewise.
14070 * config/i386/i386-c.c: Likewise.
14071 * config/i386/i386.c: Likewise.
14072 * config/i386/msformat-c.c: Likewise.
14073 * config/i386/winnt-cxx.c: Likewise.
14074 * config/i386/winnt-stubs.c: Likewise.
14075 * config/i386/winnt.c: Likewise.
14076 * config/ia64/ia64-c.c: Likewise.
14077 * config/ia64/ia64.c: Likewise.
14078 * config/iq2000/iq2000.c: Likewise.
14079 * config/lm32/lm32.c: Likewise.
14080 * config/m32c/m32c-pragma.c: Likewise.
14081 * config/m32c/m32c.c: Likewise.
14082 * config/m32r/m32r.c: Likewise.
14083 * config/m68k/m68k.c: Likewise.
14084 * config/mcore/mcore.c: Likewise.
14085 * config/mep/mep-pragma.c: Likewise.
14086 * config/mep/mep.c: Likewise.
14087 * config/microblaze/microblaze-c.c: Likewise.
14088 * config/microblaze/microblaze.c: Likewise.
14089 * config/mips/mips.c: Likewise.
14090 * config/mmix/mmix.c: Likewise.
14091 * config/mn10300/mn10300.c: Likewise.
14092 * config/moxie/moxie.c: Likewise.
14093 * config/msp430/msp430-c.c: Likewise.
14094 * config/msp430/msp430.c: Likewise.
14095 * config/nds32/nds32-cost.c: Likewise.
14096 * config/nds32/nds32-fp-as-gp.c: Likewise.
14097 * config/nds32/nds32-intrinsic.c: Likewise.
14098 * config/nds32/nds32-isr.c: Likewise.
14099 * config/nds32/nds32-md-auxiliary.c: Likewise.
14100 * config/nds32/nds32-memory-manipulation.c: Likewise.
14101 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14102 * config/nds32/nds32-predicates.c: Likewise.
14103 * config/nds32/nds32.c: Likewise.
14104 * config/nios2/nios2.c: Likewise.
14105 * config/nvptx/nvptx.c: Likewise.
14106 * config/pa/pa.c: Likewise.
14107 * config/pdp11/pdp11.c: Likewise.
14108 * config/rl78/rl78-c.c: Likewise.
14109 * config/rl78/rl78.c: Likewise.
14110 * config/rs6000/rs6000-c.c: Likewise.
14111 * config/rs6000/rs6000.c: Likewise.
14112 * config/rx/rx.c: Likewise.
14113 * config/s390/s390-c.c: Likewise.
14114 * config/s390/s390.c: Likewise.
14115 * config/sh/sh-c.c: Likewise.
14116 * config/sh/sh-mem.cc: Likewise.
14117 * config/sh/sh.c: Likewise.
14118 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14119 * config/sh/sh_treg_combine.cc: Likewise.
14120 * config/sol2-c.c: Likewise.
14121 * config/sol2-cxx.c: Likewise.
14122 * config/sol2-stubs.c: Likewise.
14123 * config/sol2.c: Likewise.
14124 * config/sparc/sparc-c.c: Likewise.
14125 * config/sparc/sparc.c: Likewise.
14126 * config/spu/spu-c.c: Likewise.
14127 * config/spu/spu.c: Likewise.
14128 * config/stormy16/stormy16.c: Likewise.
14129 * config/tilegx/mul-tables.c: Likewise.
14130 * config/tilegx/tilegx-c.c: Likewise.
14131 * config/tilegx/tilegx.c: Likewise.
14132 * config/tilepro/mul-tables.c: Likewise.
14133 * config/tilepro/tilepro-c.c: Likewise.
14134 * config/tilepro/tilepro.c: Likewise.
14135 * config/v850/v850-c.c: Likewise.
14136 * config/v850/v850.c: Likewise.
14137 * config/vax/vax.c: Likewise.
14138 * config/visium/visium.c: Likewise.
14139 * config/vms/vms-c.c: Likewise.
14140 * config/vms/vms.c: Likewise.
14141 * config/vxworks.c: Likewise.
14142 * config/winnt-c.c: Likewise.
14143 * config/xtensa/xtensa.c: Likewise.
14144 * common/config/bfin/bfin-common.c: Likewise.
14146 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
14148 * tree.h (tree_code_for_canonical_type_merging): New function.
14149 * tree.c (gimple_canonical_types_compatible_p): Use
14150 tree_code_for_canonical_type_merging..
14152 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14156 * doc/tm.texi: Regenerate.
14157 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
14158 * target.def (TARGET_RELAXED_ORDERING): Likewise.
14159 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
14160 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
14161 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
14162 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
14163 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14164 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
14165 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
14167 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14169 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
14170 register fma steering pass.
14171 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
14172 AARCH64_TUNE_FMA_STEERING.
14174 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
14176 * tree.c (verify_type_variant): Verify that type and variant is
14178 (gimple_canonical_types_compatible_p): Look for main variants.
14180 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14182 * config.gcc (powerpc*-*-*): Add support for a new configure
14183 option --with-advance-toolchain=<xxx> which overrides using the
14184 default header files, libraries and dynamic linker.
14186 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
14187 specs to support the configure --with-advance-toolchain=<xxx>
14189 (INCLUDE_EXTRA_SPEC): Likewise.
14190 (LINK_OS_EXTRA_SPEC32): Likewise.
14191 (LINK_OK_EXTRA_SPEC64): Likewise.
14192 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
14193 (DYNAMIC_LINKER_PREFIX): Likewise.
14194 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
14196 (GLIBC_DYNAMIC_LINKER32): Likewise.
14197 (GLIBC_DYNAMIC_LINKER64): Likewise.
14198 (LINK_OS_LINUX_SPEC32): Likewise.
14199 (LINK_OS_LINUX_SPEC64): Likewise.
14201 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
14202 configuration option.
14204 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
14207 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
14208 to determine current function ABI.
14209 (ix86_function_value_regno_p): Ditto.
14211 2015-06-03 Martin Liska <mliska@suse.cz>
14213 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
14214 * bitmap.h (struct bitmap_usage): Likewise.
14215 * ggc-common.c (struct ggc_usage): Likewise.
14216 * mem-stats.h (struct mem_location): Likewise.
14217 (struct mem_usage): Likewise.
14218 * vec.c (struct vec_usage): Likewise.
14220 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
14222 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
14225 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
14227 * doc/plugins.texi (enum plugin_event): New event.
14228 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
14229 and PLUGIN_FINISH_FUNCTION.
14230 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
14231 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
14233 2015-06-03 Richard Biener <rguenther@suse.de>
14235 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14236 compute GROUP_GAP for the first element.
14237 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
14240 2015-06-03 Nick Clifton <nickc@redhat.com>
14242 * config/rl78/rl78-real.md: Add peepholes to avoid a register
14243 copy when calling a function.
14244 * config/rl78/rl78.c (need_to_save): Do not push the frame
14245 pointer in an interrupt handler prologue if it is never used.
14247 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14249 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
14251 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14253 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
14254 reference when cloning alias node.
14256 2015-06-03 Martin Liska <mliska@suse.cz>
14258 * alloc-pool.h (struct pool_usage): Correct space padding.
14259 * ggc-page.c (ggc_print_statistics): Align columns in a report.
14260 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
14261 * tree.c (dump_tree_statistics): Align columns in a report.
14263 2015-06-03 Martin Liska <mliska@suse.cz>
14265 * alloc-pool.c (allocate_pool_descriptor): Remove.
14266 (struct pool_output_info): Likewise.
14267 (print_alloc_pool_statistics): Likewise.
14268 (dump_alloc_pool_statistics): Likewise.
14269 * alloc-pool.h (struct pool_usage): New struct.
14270 (pool_allocator::initialize): Change usage of memory statistics
14271 to a new interface.
14272 (pool_allocator::release): Likewise.
14273 (pool_allocator::allocate): Likewise.
14274 (pool_allocator::remove): Likewise.
14275 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
14276 for a pool allocator.
14277 * mem-stats.h (struct mem_location): Add new ctor.
14278 (struct mem_usage): Add counter for number of
14280 (mem_alloc_description::register_descriptor): New overload of
14281 * mem-stats.h (mem_location::to_string): New function.
14282 * bitmap.h (struct bitmap_usage): Use this new function.
14283 * ggc-common.c (struct ggc_usage): Likewise.
14286 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
14288 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
14289 of GCC_INSN_FLAGS_H block.
14291 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
14293 * explow.c (plus_constant): Update check after force_const_mem call
14294 to see if the value returned is not a NULL_RTX.
14296 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14298 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
14299 remove instumentation thunks calling reachable functions.
14300 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
14301 * lto/lto-partition.c (privatize_symbol_name_1): New.
14302 (privatize_symbol_name): Privatize both decl and orig_decl
14303 names for instrumented functions.
14304 * cgraph.c (cgraph_node::verify_node): Add transparent
14305 alias chain check for instrumented node.
14307 2015-06-03 Marek Polacek <polacek@redhat.com>
14311 * tree.c (attribute_value_equal): Handle attribute format.
14312 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
14314 2015-06-03 Richard Biener <rguenther@suse.de>
14316 PR tree-optimization/63916
14317 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14318 Forward-propagate non-invariant addresses by splicing their
14319 reference ops if the result isn't going to be used by PRE.
14320 (vn_reference_lookup_3): Remove pointless assert.
14322 2015-06-03 Richard Biener <rguenther@suse.de>
14324 PR tree-optimization/66375
14325 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
14326 add to the evolution before following SSA edges.
14328 2015-06-03 Bin Cheng <bin.cheng@arm.com>
14330 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
14331 (dump_use, dump_cand, find_induction_variables): Pass new argument
14333 (record_use): Preserve the ssa name information in IV.
14335 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
14337 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
14339 (add_mode_tests): Don't add mode tests if the predicate only
14340 accepts scalar constant integers. Otherwise, allow the mode
14341 of "op" to be VOIDmode if the predicate does accept such integers.
14343 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
14346 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
14347 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
14348 (aarch64_secondary_reload): Likewise
14349 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
14351 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
14354 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
14355 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14358 * cprop.c (try_replace_reg): Check cost of constants before propagating.
14360 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14362 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
14363 provide access to the IBM extended double floating point mode if
14364 long double is IEEE 128-bit floating point.
14365 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
14366 point if long double is the IBM extended double type.
14368 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
14369 enable adding IEEE 128-bit floating point support.
14370 (-mfloat128-software): Likewise.
14371 (-mfloat128-sw): Likewise.
14373 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
14374 128-bit floating point types to occupy any register if
14375 -mlong-double-64. Do not allow use of IFmode/KFmode unless
14376 -mfloat128-software is enabled.
14377 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
14379 (rs6000_option_override_internal): Add -mfloat128-* support.
14380 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
14382 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
14383 and float128 type nodes.
14384 (ieee128_float_type_node): Likewise.
14385 (ibm128_float_type_node): Likewise.
14387 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
14390 * config/aarch64/geniterators.sh: Rewrite in awk.
14392 2015-06-02 Martin Liska <mliska@suse.cz>
14394 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
14395 values to avoid -Wmaybe-uninitialized errors.
14397 2015-06-02 Richard Biener <rguenther@suse.de>
14400 * dwarf2out.c (lookup_context_die): New function.
14401 (resolve_addr): Avoid forcing a full DIE for the
14402 target of a DW_TAG_GNU_call_site during late compilation.
14403 Instead create a stub DIE without a type if we have a
14404 context DIE present.
14406 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
14408 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
14410 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14412 PR tree-optimization/48052
14413 * cfgloop.h (struct control_iv): New.
14414 (struct loop): New field control_ivs.
14415 * tree-ssa-loop-niter.c : Include "stor-layout.h".
14416 (number_of_iterations_lt): Set no_overflow information.
14417 (number_of_iterations_exit): Init control iv in niter struct.
14418 (record_control_iv): New.
14419 (estimate_numbers_of_iterations_loop): Call record_control_iv.
14420 (loop_exits_before_overflow): New. Interface factored out of
14421 scev_probably_wraps_p.
14422 (scev_probably_wraps_p): Factor loop niter related code into
14423 loop_exits_before_overflow.
14424 (free_numbers_of_iterations_estimates_loop): Free control ivs.
14425 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
14427 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
14429 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
14430 the target doesn't belong to the current function.
14432 2015-06-02 Marek Polacek <polacek@redhat.com>
14434 PR middle-end/66345
14435 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
14436 get_maxval_strlen does not produce an INTEGER_CST.
14438 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
14440 * config/arc/constraints.md: Use lower-case names in match_code.
14441 * config/mmix/constraints.md: Likewise.
14443 2015-06-02 Richard Biener <rguenther@suse.de>
14445 PR tree-optimization/65961
14446 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
14447 check and clarify dump message.
14448 (vect_build_slp_tree): If all children are built up from scalars
14449 build up the parent from scalars instead.
14450 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
14452 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
14455 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
14456 instead of print ... .
14458 2015-06-02 Alan Modra <amodra@gmail.com>
14460 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
14463 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14465 PR tree-optimization/52563
14466 PR tree-optimization/62173
14467 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
14468 (alloc_iv, set_iv): New parameter.
14469 (determine_biv_step): Delete.
14470 (find_bivs): Inline original determine_biv_step. Pass new
14471 argument to set_iv.
14472 (idx_find_step): Use no_overflow information for conversion.
14473 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
14474 resolve_mixers handle folded_casts.
14475 (instantiate_scev_name): Change bool parameter to bool pointer.
14476 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
14477 (instantiate_array_ref, instantiate_scev_not): Ditto.
14478 (instantiate_scev_3, instantiate_scev_2): Ditto.
14479 (instantiate_scev_1, instantiate_scev_r): Ditto.
14480 (instantiate_scev_convert, ): Change parameter. Pass argument
14481 to chrec_convert_aggressive.
14482 (instantiate_scev): Change argument.
14483 (resolve_mixers): New parameter and set it.
14484 (scev_const_prop): New argument.
14485 * tree-scalar-evolution.h (resolve_mixers): New parameter.
14486 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
14488 (chrec_convert): New parameter. Move definition below.
14489 (chrec_convert_aggressive): New parameter and set it. Call
14490 convert_affine_scev.
14491 * tree-chrec.h (chrec_convert): New parameter.
14492 (chrec_convert_aggressive): Ditto.
14494 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14496 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
14497 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
14498 the LHS of a no-return call if its type has variable size.
14499 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14500 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
14502 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
14504 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
14505 * config.in: Regenerate.
14507 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14509 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14510 consecutive accesses within outer-loop with force_vectorize
14511 for references with zero step in inner-loop.
14513 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14515 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
14516 rather than from gcc/build directory.
14518 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14521 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
14522 for __sync memory models, emit initial loads and final barriers as
14525 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14528 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
14529 (aarch64_split_atomic_op): Check for __sync memory models, emit
14530 appropriate initial loads and final barriers.
14532 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14534 * Makefile.in: Fix gcov dependencies that should
14535 not point to a build folder.
14537 2015-06-01 Richard Biener <rguenther@suse.de>
14540 2015-05-29 Richard Biener <rguenther@suse.de>
14542 PR tree-optimization/66314
14543 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14544 parameter that says which loop the new block belongs to.
14545 (ssa_create_duplicates): Blocks duplicated for the threaded
14546 path belong to the loop of the thread destination.
14548 2015-06-01 Martin Liska <mliska@suse.cz>
14550 * sched-deps.c: Include pool-alloc.h before
14551 cselib.h header file is included.
14553 2015-06-01 Richard Biener <rguenther@suse.de>
14555 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
14558 2015-06-01 Martin Liska <mliska@suse.cz>
14560 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
14561 a function local variable.
14563 2015-06-01 Martin Liska <mliska@suse.cz>
14565 * alloc-pool.c (create_alloc_pool): Remove.
14566 (empty_alloc_pool): Likewise.
14567 (free_alloc_pool): Likewise.
14568 (free_alloc_pool_if_empty): Likewise.
14569 (pool_alloc): Likewise.
14570 (pool_free): Likewise.
14571 * alloc-pool.h: Remove old declarations.
14573 2015-06-01 Martin Liska <mliska@suse.cz>
14575 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
14576 (ira_create_object): Likewise.
14577 (ira_create_allocno): Likewise.
14578 (ira_create_live_range): Likewise.
14579 (copy_live_range): Likewise.
14580 (ira_finish_live_range): Likewise.
14581 (ira_free_allocno_costs): Likewise.
14582 (finish_allocno): Likewise.
14583 (finish_allocnos): Likewise.
14584 (initiate_prefs): Likewise.
14585 (ira_create_pref): Likewise.
14586 (finish_pref): Likewise.
14587 (finish_prefs): Likewise.
14588 (initiate_copies): Likewise.
14589 (ira_create_copy): Likewise.
14590 (finish_copy): Likewise.
14591 (finish_copies): Likewise.
14592 (finish_prefs): Likewise.
14594 2015-06-01 Martin Liska <mliska@suse.cz>
14596 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
14597 (allocate_and_init_ipcp_value): Likewise.
14598 (ipcp_lattice::add_value): Likewise.
14599 (merge_agg_lats_step): Likewise.
14600 (ipcp_driver): Likewise.
14601 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
14602 (ipa_free_all_structures_after_iinln): Likewise.
14603 * ipa-prop.h: Likewise.
14605 2015-06-01 Martin Liska <mliska@suse.cz>
14607 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
14609 (set_hint_predicate): Likewise.
14610 (inline_summary_alloc): Likewise.
14611 (reset_inline_edge_summary): Likewise.
14612 (reset_inline_summary): Likewise.
14613 (set_cond_stmt_execution_predicate): Likewise.
14614 (set_switch_stmt_execution_predicate): Likewise.
14615 (compute_bb_predicates): Likewise.
14616 (estimate_function_body_sizes): Likewise.
14617 (inline_free_summary): Likewise.
14619 2015-06-01 Martin Liska <mliska@suse.cz>
14621 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
14622 (ipa_edge_duplication_hook): Likewise.
14623 (ipa_free_all_structures_after_ipa_cp): Likewise.
14624 (ipa_free_all_structures_after_iinln): Likewise.
14626 2015-06-01 Martin Liska <mliska@suse.cz>
14628 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
14629 (ipa_profile_generate_summary): Likewise.
14630 (ipa_profile_read_summary): Likewise.
14631 (ipa_profile): Likewise.
14633 2015-06-01 Martin Liska <mliska@suse.cz>
14635 * tree-ssa-structalias.c (new_var_info): Use new type-based
14637 (new_constraint): Likewise.
14638 (init_alias_vars): Likewise.
14639 (delete_points_to_sets): Likewise.
14641 2015-06-01 Martin Liska <mliska@suse.cz>
14643 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
14644 (free_strinfo): Likewise.
14645 (pass_strlen::execute): Likewise.
14647 2015-06-01 Martin Liska <mliska@suse.cz>
14649 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
14651 (vn_reference_insert_pieces): Likewise.
14652 (vn_phi_insert): Likewise.
14653 (visit_reference_op_call): Likewise.
14654 (copy_phi): Likewise.
14655 (copy_reference): Likewise.
14656 (process_scc): Likewise.
14657 (allocate_vn_table): Likewise.
14658 (free_vn_table): Likewise.
14660 2015-06-01 Martin Liska <mliska@suse.cz>
14662 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
14664 (add_repeat_to_ops_vec): Likewise.
14665 (get_ops): Likewise.
14666 (maybe_optimize_range_tests): Likewise.
14667 (init_reassoc): Likewise.
14668 (fini_reassoc): Likewise.
14670 2015-06-01 Martin Liska <mliska@suse.cz>
14672 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
14674 (bitmap_set_new): Likewise.
14675 (get_or_alloc_expr_for_constant): Likewise.
14676 (get_or_alloc_expr_for): Likewise.
14677 (phi_translate_1): Likewise.
14678 (compute_avail): Likewise.
14679 (init_pre): Likewise.
14680 (fini_pre): Likewise.
14682 2015-06-01 Martin Liska <mliska@suse.cz>
14684 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
14685 (delete_dep_node): Likewise.
14686 (create_deps_list): Likewise.
14687 (free_deps_list): Likewise.
14688 (sched_deps_init): Likewise.
14689 (sched_deps_finish): Likewise.
14691 2015-06-01 Martin Liska <mliska@suse.cz>
14693 * regcprop.c (free_debug_insn_changes): Use new type-based
14695 (replace_oldest_value_reg): Likewise.
14696 (pass_cprop_hardreg::execute): Likewise.
14698 2015-06-01 Martin Liska <mliska@suse.cz>
14700 * ira-build.c (initiate_cost_vectors): Use new type-based
14702 (ira_allocate_cost_vector): Likewise.
14703 (ira_free_cost_vector): Likewise.
14704 (finish_cost_vectors): Likewise.
14706 2015-06-01 Martin Liska <mliska@suse.cz>
14708 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
14710 (free_sched_pools): Likewise.
14711 * sel-sched-ir.h (_list_alloc): Likewise.
14712 (_list_remove): Likewise.
14714 2015-06-01 Martin Liska <mliska@suse.cz>
14716 * stmt.c (add_case_node): Use new type-based pool allocator.
14717 (expand_case): Likewise.
14718 (expand_sjlj_dispatch_table): Likewise.
14720 2015-06-01 Martin Liska <mliska@suse.cz>
14722 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
14723 (free_bb): Likewise.
14724 (pass_cse_reciprocals::execute): Likewise.
14726 2015-06-01 Martin Liska <mliska@suse.cz>
14728 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
14729 (sra_deinitialize) Likewise.
14730 (create_access_1) Likewise.
14731 (build_accesses_from_assign) Likewise.
14732 (create_artificial_child_access) Likewise.
14734 2015-06-01 Martin Liska <mliska@suse.cz>
14736 * dse.c (get_group_info):Use new type-based pool allocator.
14737 (dse_step0) Likewise.
14738 (free_store_info) Likewise.
14739 (delete_dead_store_insn) Likewise.
14740 (free_read_records) Likewise.
14741 (record_store) Likewise.
14742 (replace_read) Likewise.
14743 (check_mem_read_rtx) Likewise.
14744 (scan_insn) Likewise.
14745 (dse_step1) Likewise.
14746 (dse_step7) Likewise.
14748 2015-06-01 Martin Liska <mliska@suse.cz>
14750 * df-scan.c (struct df_scan_problem_data):Use new type-based
14752 (df_scan_free_internal) Likewise.
14753 (df_scan_alloc) Likewise.
14754 (df_grow_reg_info) Likewise.
14755 (df_free_ref) Likewise.
14756 (df_insn_create_insn_record) Likewise.
14757 (df_mw_hardreg_chain_delete) Likewise.
14758 (df_insn_info_delete) Likewise.
14759 (df_free_collection_rec) Likewise.
14760 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
14761 (df_sort_and_compress_mws) Likewise.
14762 (df_ref_create_structure) Likewise.
14763 (df_ref_record) Likewise.
14765 2015-06-01 Martin Liska <mliska@suse.cz>
14767 * df-problems.c (df_chain_create):Use new type-based pool allocator.
14768 (df_chain_unlink_1) Likewise.
14769 (df_chain_unlink) Likewise.
14770 (df_chain_remove_problem) Likewise.
14771 (df_chain_alloc) Likewise.
14772 (df_chain_free) Likewise.
14773 * df.h (struct dataflow) Likewise.
14775 2015-06-01 Martin Liska <mliska@suse.cz>
14777 * cselib.c (new_elt_list):Use new type-based pool allocator.
14778 (new_elt_loc_list) Likewise.
14779 (unchain_one_elt_list) Likewise.
14780 (unchain_one_elt_loc_list) Likewise.
14781 (unchain_one_value) Likewise.
14782 (new_cselib_val) Likewise.
14783 (cselib_init) Likewise.
14784 (cselib_finish) Likewise.
14786 2015-06-01 Martin Liska <mliska@suse.cz>
14788 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
14789 (sh_reorg) Likewise.
14791 2015-06-01 Martin Liska <mliska@suse.cz>
14793 * cfg.c (initialize_original_copy_tables):Use new type-based
14795 (free_original_copy_tables) Likewise.
14796 (copy_original_table_clear) Likewise.
14797 (copy_original_table_set) Likewise.
14799 2015-06-01 Martin Liska <mliska@suse.cz>
14801 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
14803 (asan_mem_ref_new) Likewise.
14804 (free_mem_ref_resources) Likewise.
14806 2015-06-01 Martin Liska <mliska@suse.cz>
14808 * var-tracking.c (variable_htab_free):Use new type-based
14810 (attrs_list_clear) Likewise.
14811 (attrs_list_insert) Likewise.
14812 (attrs_list_copy) Likewise.
14813 (shared_hash_unshare) Likewise.
14814 (shared_hash_destroy) Likewise.
14815 (unshare_variable) Likewise.
14816 (var_reg_delete_and_set) Likewise.
14817 (var_reg_delete) Likewise.
14818 (var_regno_delete) Likewise.
14819 (drop_overlapping_mem_locs) Likewise.
14820 (variable_union) Likewise.
14821 (insert_into_intersection) Likewise.
14822 (canonicalize_values_star) Likewise.
14823 (variable_merge_over_cur) Likewise.
14824 (dataflow_set_merge) Likewise.
14825 (remove_duplicate_values) Likewise.
14826 (variable_post_merge_new_vals) Likewise.
14827 (dataflow_set_preserve_mem_locs) Likewise.
14828 (dataflow_set_remove_mem_locs) Likewise.
14829 (variable_from_dropped) Likewise.
14830 (variable_was_changed) Likewise.
14831 (set_slot_part) Likewise.
14832 (clobber_slot_part) Likewise.
14833 (delete_slot_part) Likewise.
14834 (loc_exp_insert_dep) Likewise.
14835 (notify_dependents_of_changed_value) Likewise.
14836 (emit_notes_for_differences_1) Likewise.
14837 (vt_emit_notes) Likewise.
14838 (vt_initialize) Likewise.
14839 (vt_finalize) Likewise.
14841 2015-06-01 Martin Liska <mliska@suse.cz>
14843 * ira-color.c (init_update_cost_records):Use new type-based
14845 (get_update_cost_record) Likewise.
14846 (free_update_cost_record_list) Likewise.
14847 (finish_update_cost_records) Likewise.
14848 (initiate_cost_update) Likewise.
14850 2015-06-01 Martin Liska <mliska@suse.cz>
14852 * lra.c (init_insn_regs): Use new type-based pool allocator.
14853 (new_insn_reg) Likewise.
14854 (free_insn_reg) Likewise.
14855 (free_insn_regs) Likewise.
14856 (finish_insn_regs) Likewise.
14857 (init_insn_recog_data) Likewise.
14858 (init_reg_info) Likewise.
14859 (finish_reg_info) Likewise.
14860 (lra_free_copies) Likewise.
14861 (lra_create_copy) Likewise.
14862 (invalidate_insn_data_regno_info) Likewise.
14864 2015-06-01 Martin Liska <mliska@suse.cz>
14866 * lra-lives.c (free_live_range): Use new type-based pool allocator.
14867 (free_live_range_list) Likewise.
14868 (create_live_range) Likewise.
14869 (copy_live_range) Likewise.
14870 (lra_merge_live_ranges) Likewise.
14871 (remove_some_program_points_and_update_live_ranges) Likewise.
14872 (lra_live_ranges_init) Likewise.
14873 (lra_live_ranges_finish) Likewise.
14875 2015-06-01 Martin Liska <mliska@suse.cz>
14877 * et-forest.c (et_new_occ): Use new type-based pool allocator.
14878 (et_new_tree): Likewise.
14879 (et_free_tree): Likewise.
14880 (et_free_tree_force): Likewise.
14881 (et_free_pools): Likewise.
14882 (et_split): Likewise.
14884 2015-06-01 Martin Liska <mliska@suse.cz>
14886 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
14888 * alloc-pool.h (pool_allocator::pool_allocator): New function.
14889 (pool_allocator::release): Likewise.
14890 (inline pool_allocator::release_if_empty): Likewise.
14891 (inline pool_allocator::~pool_allocator): Likewise.
14892 (pool_allocator::allocate): Likewise.
14893 (pool_allocator::remove): Likewise.
14895 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14897 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
14900 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14902 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
14904 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
14905 (arm_macro_fusion_p): Likewise.
14906 (arm_macro_fusion_pair_p): Likewise.
14908 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
14910 * config/aarch64/aarch64-protos.h (tune_params): Rename
14911 fuseable_ops to fusible_ops.
14912 * config/aarch64/aarch64.c (generic_tunings): Rename
14913 fuseable_ops to fusible_ops.
14914 (cortexa53_tunings): Likewise.
14915 (cortexa57_tunings): Likewise.
14916 (thunderx_tunings): Likewise.
14917 (xgene1_tunings): Likewise.
14918 (aarch64_macro_fusion_p): Likewise.
14919 (aarch64_macro_fusion_pair_p): Likewise.
14921 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
14923 * config/s390/driver-native.c: New file.
14924 * config/s390/x-native: New file.
14925 * config.host: Add new files for s390.
14926 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
14928 * config.gcc: Likewise.
14929 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
14930 * config/s390/s390-opts.h (enum processor_type): Ditto.
14931 * config/s390/s390.c (s390_option_override): Catch unhandled
14934 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
14937 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
14938 redirection for instrumented calls.
14939 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
14940 (append_compiler_options): Append -fcheck-pointer-bounds.
14941 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
14942 (chkp_redirect_edge): New.
14943 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
14944 (chkp_redirect_edge): New.
14946 2015-06-01 Richard Biener <rguenther@suse.de>
14948 PR tree-optimization/66280
14949 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
14952 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14954 * config/aarch64/aarch64.md
14955 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
14958 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14960 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
14961 Remove obsolete kludge.
14963 2015-06-01 Richard Biener <rguenther@suse.de>
14965 * tree-ssa-reassoc.c (get_rank): Simplify.
14967 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
14969 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
14970 * configure: Regenerated.
14972 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
14974 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
14975 issue (add space between string literal and macro).
14976 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
14978 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
14980 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
14981 implict or explicit -fPIE or -fpie.
14983 2015-05-30 Mike Frysinger <vapier@gentoo.org>
14985 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
14987 2015-05-28 DJ Delorie <dj@redhat.com>
14989 * expmed.c (extract_bit_field_1): Avoid clobbering a
14990 yet-to-be-used base/index register.
14992 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
14994 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
14995 (alias_stats): Add num_universal.
14996 (alias_set_subset_of): Special case pointers; be ready for NULL
14998 (alias_sets_conflict_p): Special case pointers; be ready for NULL
15000 (init_alias_set_entry): Break out from ...
15001 (record_alias_subset): ... here; propagate new fields;
15002 allocate children only when really needed.
15003 (get_alias_set): Do less generous pointer globbing.
15004 (dump_alias_stats_in_alias_c): Update statistics.
15006 2015-05-30 Alan Modra <amodra@gmail.com>
15008 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
15009 correct block for use of r12.
15010 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
15012 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15015 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
15018 2015-05-29 Jakub Jelinek <jakub@redhat.com>
15020 PR tree-optimization/66142
15021 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
15022 virtual phis that feed themselves.
15024 2015-05-29 Richard Biener <rguenther@suse.de>
15026 PR tree-optimization/66314
15027 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15028 parameter that says which loop the new block belongs to.
15029 (ssa_create_duplicates): Blocks duplicated for the threaded
15030 path belong to the loop of the thread destination.
15032 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15034 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
15035 to cleanup-saved-temps.
15036 * doc/sourcebuild.texi (Clean up generated test files): Expand
15038 (dg-keep-saved-temps): Document new proc.
15039 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
15040 cleanup-saved-temps): Remove.
15042 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
15044 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
15045 gcc_AC_CHECK_DECLS.
15046 * configure: Regenerate.
15048 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15050 * config/nios2/linux.h (CPP_SPEC): Define.
15052 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15054 * config/microblaze/linux.h (CPP_SPEC): Define.
15056 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15058 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
15059 -pthread is specified.
15061 2015-05-28 Richard Biener <rguenther@suse.de>
15063 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
15064 (vect_fixup_scalar_cycles_with_patterns): Likewise.
15065 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
15066 after pattern recog.
15067 (vect_create_epilog_for_reduction): Properly handle reductions
15069 (vectorizable_reduction): Likewise.
15070 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
15072 (vect_get_constant_vectors): Create the correct number of
15073 initial values for reductions.
15074 (vect_schedule_slp_instance): Handle reduction chains that are
15075 type changing properly.
15076 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
15078 2015-05-28 Richard Biener <rguenther@suse.de>
15080 PR tree-optimization/66142
15081 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
15082 values better in memcpy destination handling. Handle non-aliasing
15085 2015-05-28 Lawrence Velázquez <vq@larryv.me>
15088 * config/darwin-c.c (version_components): New global enum.
15089 (parse_version, version_as_legacy_macro)
15090 (version_as_modern_macro, macosx_version_as_macro): New functions.
15091 (version_as_macro): Remove.
15092 (darwin_cpp_builtins): Use new function.
15094 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
15096 * builtins.c (expand_builtin_acc_on_device): Mark parameters
15097 with ATTRIBUTE_UNUSED.
15099 2015-05-28 Julian Brown <julian@codesourcery.com>
15103 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
15104 sequence for !ACCEL_COMPILER.
15106 2015-05-28 Nick Clifton <nickc@redhat.com>
15108 * config/rx/rx.c (push_regs): New function. Extracts code from...
15109 (rx_expand_prologue): ... here. Use push_regs to push even small
15110 spans of registers.
15111 (pop_regs): New function.
15112 (rx_expand_epilogue): Use pop_regs to pop even small spans of
15115 2015-05-28 Richard Biener <rguenther@suse.de>
15117 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
15119 (SLP_INSTANCE_BODY_COST_VEC): Remove.
15120 (vect_update_slp_costs_according_to_vf): Likewise.
15121 (vect_slp_analyze_operations): Update prototype.
15122 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
15123 vect_update_slp_costs_according_to_vf, adjust.
15124 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
15125 (vect_analyze_slp_cost_1): Likewise.
15126 (vect_analyze_slp_cost): Likewise. Properly deal with
15127 widening reduction ops. Commit body costs.
15128 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
15129 cost for loops from here.
15130 (vect_slp_analyze_operations): But do it from here when
15131 the vectorization factor is known and stmts are analyzed.
15132 (vect_bb_vectorization_profitable_p): Simplify.
15133 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
15134 (vect_update_slp_costs_according_to_vf): Remove.
15136 2015-05-27 Magnus Granberg <zorry@gentoo.org>
15137 H.J. Lu <hongjiu.lu@intel.com>
15139 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
15140 (BUILD_CFLAGS): Likewise.
15141 (BUILD_CXXFLAGS): Likewise.
15142 (LINKER): Add @NO_PIE_FLAG@.
15143 (BUILD_LDFLAGS): Likewise.
15144 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
15145 --enable-default-pie.
15146 * common.opt (fPIE): Initialize to -1.
15148 (no-pie): New option.
15149 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
15150 * configure.ac: Add --enable-default-pie.
15151 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
15152 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
15153 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
15154 * gcc.c (NO_PIE_SPEC): New.
15155 (PIE_SPEC): Likewise.
15156 (NO_FPIE1_SPEC): Likewise.
15157 (FPIE1_SPEC): Likewise.
15158 (NO_FPIE2_SPEC): Likewise.
15159 (FPIE2_SPEC): Likewise.
15160 (NO_FPIE2_SPEC): Likewise.
15161 (FPIE_SPEC): Likewise.
15162 (NO_FPIE_SPEC): Likewise.
15163 (NO_FPIC1_SPEC): Likewise.
15164 (FPIC1_SPEC): Likewise.
15165 (NO_FPIC2_SPEC): Likewise.
15166 (FPIC2_SPEC): Likewise.
15167 (NO_FPIC2_SPEC): Likewise.
15168 (FPIC_SPEC): Likewise.
15169 (NO_FPIC_SPEC): Likewise.
15170 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
15171 (FPIE1_OR_FPIC1_SPEC): Likewise.
15172 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
15173 (FPIE2_OR_FPIC2_SPEC): Likewise.
15174 (NO_FPIE_AND_FPIC_SPEC): Likewise.
15175 (FPIE_OR_FPIC_SPEC): Likewise.
15176 (LD_PIE_SPEC): Likewise.
15177 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
15178 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
15179 * config/darwin.h (PIE_SPEC): Renamed to ...
15180 (DARWIN_PIE_SPEC): This.
15181 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
15182 * config/darwin9.h (PIE_SPEC): Renamed to ...
15183 (DARWIN_PIE_SPEC): This.
15184 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
15185 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15186 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
15187 FPIE2_OR_FPIC2_SPEC.
15188 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15189 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15190 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
15191 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15192 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15193 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15194 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
15195 * config/m32r/m32r.h (ASM_SPEC): Likewise.
15196 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
15197 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15198 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
15199 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
15200 * config/sparc/linux.h (ASM_SPEC): Likewise.
15201 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15202 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
15203 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
15204 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15205 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15206 * config/sparc/sparc.h (ASM_SPEC): Likewise.
15207 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
15208 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
15209 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
15210 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
15211 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
15212 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
15213 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
15214 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
15215 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
15216 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
15217 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
15218 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
15219 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15220 * config/vax/linux.h (ASM_SPEC): Likewise.
15221 * doc/install.texi: Document --enable-default-pie.
15222 * doc/invoke.texi: Document -no-pie.
15223 * config.in: Regenerated.
15224 * configure: Likewise.
15226 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15228 PR rtl-optimization/66168
15229 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
15230 can_move_invariant_reg.
15232 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
15235 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
15236 REG_EQUAL note when doing insert.
15238 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
15239 instead of "%d" for 'o' operand.
15241 2015-05-27 Nathan Sidwell <nathan@acm.org>
15244 * tree.c (build_pointer_type_for_mode): Canonical type does not
15245 inherit can_alias_all.
15246 (build_reference_type_for_mode): Likewise.
15248 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
15250 * expr.h (array_at_struct_end_p): Move to...
15251 (array_ref_element_size): Likewise.
15252 (component_ref_field_offset): Likewise.
15253 * tree.h (array_ref_element_size): ...here.
15254 (array_at_struct_end_p): Likewise.
15255 (component_ref_field_offset): Likewise.
15256 * expr.c (array_ref_element_size): Move to...
15257 (array_ref_low_bound): Likewise.
15258 (array_at_struct_end_p): Likewise.
15259 (array_ref_up_bound): Likewise.
15260 (component_ref_field_offset): Likewise.
15261 * tree.c (array_ref_element_size): ...here.
15262 (array_ref_low_bound): Likewise.
15263 (array_ref_up_bound): Likewise.
15264 (array_at_struct_end_p): Likewise.
15265 (component_ref_field_offset): Likewise.
15267 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15268 Szabolcs Nagy <szabolcs.nagy@arm.com>
15270 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
15272 2015-05-27 Jason Merrill <jason@redhat.com>
15275 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
15276 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
15277 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
15279 2015-05-22 Aditya Kumar <hiraditya@msn.com>
15281 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
15284 * statistics.c (statistics_fini_pass): Print pass name.
15286 2015-05-27 Richard Biener <rguenther@suse.de>
15288 PR tree-optimization/66272
15290 2014-08-15 Richard Biener <rguenther@suse.de>
15292 PR tree-optimization/62031
15293 * tree-data-ref.c (dr_analyze_indices): Do not set
15294 DR_UNCONSTRAINED_BASE.
15295 (dr_may_alias_p): All indirect accesses have to go the
15296 formerly DR_UNCONSTRAINED_BASE path.
15297 * tree-data-ref.h (struct indices): Remove
15298 unconstrained_base member.
15299 (DR_UNCONSTRAINED_BASE): Remove.
15301 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
15303 * dwarf2out.c: Remove block_map.
15304 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
15305 (gen_lexical_block_die): Same.
15306 (dwarf2out_function_decl): Remove block_map use.
15307 (dwarf2out_c_finalize): Same.
15308 * tree-core.h (struct tree_block): Add die field.
15309 * tree.h (BLOCK_DIE): New.
15311 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15314 * expr.c (memory_load_overlap): New function.
15315 (emit_push_insn): When pushing partial args to the stack would
15316 clobber the register part load the overlapping part into a pseudo
15317 and put it into the hard reg after pushing. Change return type
15318 to bool. Add bool argument.
15319 * expr.h (emit_push_insn): Change return type to bool.
15321 * calls.c (expand_call): Cancel sibcall optimization when encountering
15322 partial argument on targets with ARGS_GROW_DOWNWARD and
15323 !STACK_GROWS_DOWNWARD.
15324 (emit_library_call_value_1): Update callsite of emit_push_insn.
15325 (store_one_arg): Likewise.
15327 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15329 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
15331 2015-05-27 Martin Liska <mliska@suse.cz>
15333 * Makefile.in: Add additional dependencies related to memory report
15335 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
15336 * bitmap.c (struct bitmap_descriptor_d): Remove.
15337 (struct loc): Likewise.
15338 (struct bitmap_desc_hasher): Likewise.
15339 (bitmap_desc_hasher::hash): Likewise.
15340 (bitmap_desc_hasher::equal): Likewise.
15341 (get_bitmap_descriptor): Likewise.
15342 (bitmap_register): User new memory descriptor API.
15343 (register_overhead): Likewise.
15344 (bitmap_find_bit): Register nsearches and search_iter statistics.
15345 (struct bitmap_output_info): Remove.
15346 (print_statistics): Likewise.
15347 (dump_bitmap_statistics): Use new memory descriptor.
15348 * bitmap.h (struct bitmap_usage): New class.
15349 * genmatch.c: Extend header file inclusion.
15350 * genpreds.c: Likewise.
15351 * ggc-common.c (struct ggc_usage): New class.
15352 (struct ggc_loc_desc_hasher): Remove.
15353 (ggc_loc_desc_hasher::hash): Likewise.
15354 (ggc_loc_desc_hasher::equal): Likewise.
15355 (struct ggc_ptr_hash_entry): Likewise.
15356 (struct ptr_hash_hasher): Likewise.
15357 (ptr_hash_hasher::hash): Likewise.
15358 (ptr_hash_hasher::equal): Likewise.
15359 (make_loc_descriptor): Likewise.
15360 (ggc_prune_ptr): Likewise.
15361 (dump_ggc_loc_statistics): Use new memory descriptor.
15362 (ggc_record_overhead): Likewise.
15363 (ggc_free_overhead): Likewise.
15364 (final_cmp_statistic): Remove.
15365 (cmp_statistic): Likewise.
15366 (ggc_add_statistics): Liekwise.
15367 (ggc_prune_overhead_list): Likewise.
15368 * hash-map-traits.h: New file.
15369 * hash-map.h (struct default_hashmap_traits): Move the traits to a
15370 separate header file.
15371 * hash-set.h: Pass memory statistics info to ctor.
15372 * hash-table.c (void dump_hash_table_loc_statistics): New function.
15373 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
15374 (hash_table::~hash_table): Register memory release operation.
15375 (hash_table::alloc_entries): Handle memory allocation operation.
15376 (hash_table::expand): Likewise.
15377 * inchash.c (iterative_hash_hashval_t): Move implementation to header
15379 (iterative_hash_host_wide_int): Likewise.
15380 * inchash.h (class hash): Likewise.
15381 * mem-stats-traits.h: New file.
15382 * mem-stats.h: New file.
15383 (mem_location): Add new class.
15384 (mem_usage): Likewise.
15385 (mem_alloc_description): Likewise.
15386 * sese.c: Add new header file inclusision.
15387 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
15389 * tree-sra.c: Add new header file inclusision.
15390 * vec.c (struct vec_descriptor): Remove.
15391 (hash_descriptor): Likewise.
15392 (struct vec_usage): Likewise.
15393 (struct ptr_hash_entry): Likewise.
15394 (hash_ptr): Likewise.
15395 (eq_ptr): Likewise.
15396 (vec_prefix::register_overhead): Use new memory descriptor API.
15397 (vec_prefix::release_overhead): Likewise.
15398 (add_statistics): Remove.
15399 (dump_vec_loc_statistics): Use new memory descriptor API.
15400 * vec.h (struct vec_prefix): Likewise.
15401 (va_heap::reserve): Likewise.
15402 (va_heap::release): Likewise.
15403 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
15405 2015-05-27 Richard Biener <rguenther@suse.de>
15407 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
15408 earlier and remove ??? comment.
15409 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
15410 and got called from loop analysis bail out. Always pass the SLP
15411 node to the vectorizable_* functions.
15412 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
15413 the premature SLP check here.
15414 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
15415 detected SLP stmts.
15416 (vect_detect_hybrid_slp_1): Likewise.
15418 2015-05-26 Jeff Law <law@redhat.com>
15420 * combine.c (find_split_point): Verify that the shift count is a
15421 constant when choosing (plus (ashift ...)) as a split point.
15423 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
15424 No functional changes.
15426 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
15428 * ipa-polymorphic-call.c
15429 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
15430 case when call target is already known.
15432 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
15435 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
15436 take into account the case that operands[1] and operands[2]
15437 are the same register.
15439 2015-05-26 Michael Matz <matz@suse.de>
15441 PR middle-end/66251
15443 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
15445 (vect_create_vectorized_demotion_stmts): Always set
15446 STMT_VINFO_VEC_STMT, also with SLP.
15447 (vectorizable_store): Handle strided group stores.
15449 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15452 * config/aarch64/aarch64.md
15453 (*adds_shift_imm_<mode>): New pattern.
15454 (*subs_shift_imm_<mode>): Likewise.
15455 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15456 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15457 (*add_uxt<mode>_shift2): Likewise.
15458 (*add_uxtsi_shift2_uxtw): Likewise.
15459 (*sub_uxt<mode>_shift2): Likewise.
15460 (*sub_uxtsi_shift2_uxtw): Likewise.
15462 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
15464 * config/rs6000/constraints.md (Y, U): Use match_test.
15466 2015-05-26 Christian Bruel <christian.bruel@st.com>
15469 * config/arm/arm.c (arm_option_check_internal)
15470 (arm_option_params_internal): Check opts->target_flags to set macros.
15471 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15472 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
15473 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15474 (builtin_define): Replaced with def_or_undef_macro.
15475 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15476 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
15477 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15478 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
15479 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
15480 (TARGET_ARM_FEATURE_LDREX_P)
15481 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
15482 * config/arm/arm-c.c (def_or_undef_macro): New function.
15483 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
15485 2015-05-26 Christian Bruel <christian.bruel@st.com>
15487 * c-common.h (builtin_define_with_int_value)
15488 (builtin_define_type_sizeof): Declare.
15489 * c-cppbuiltin.c (builtin_define_with_int_value)
15490 (builtin_define_type_sizeof): Externalize.
15491 (builtin_define_std): Cleanup declaration.
15492 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
15493 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
15494 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
15495 (builtin_define, builtin_assert): New macros.
15497 2015-05-26 Richard Biener <rguenther@suse.de>
15499 PR tree-optimization/66142
15500 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
15501 MEM_REFs for the same base address.
15503 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15506 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
15508 2015-05-26 Jason Merrill <jason@redhat.com>
15510 * configure.ac: Set CXXFLAGS for ISL test.
15511 * configure: Regenerate.
15513 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
15514 strstr and basename.
15515 * configure: Regenerate.
15517 2015-05-26 Richard Biener <rguenther@suse.de>
15519 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
15520 X % C -> X & (C - 1) for C being a power-of two to ...
15521 * match.pd: ... patterns.
15523 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
15525 * match.pd (swapped_tcc_comparison): New operator list.
15526 (-A CMP -B): New simplification.
15527 * fold-const.c (fold_comparison): Remove corresponding code.
15529 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15531 * caller-save.c (init_caller_save): Base temporary register numbers
15532 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
15533 * cfgloopanal.c (init_set_costs): Likewise.
15534 * dojump.c (prefer_and_bit_test): Likewise.
15535 * expr.c (init_expr_target): Likewise.
15536 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15537 * lower-subreg.c (init_lower_subreg): Likewise.
15538 * postreload.c (reload_cse_regs_1): Likewise.
15540 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15542 * gensupport.h (compute_test_codes): Declare.
15543 * gensupport.c (compute_predicate_codes): Rename to...
15544 (compute_test_codes): ...this. Generalize error message.
15545 (process_define_predicate): Update accordingly.
15546 * genpreds.c (compute_maybe_allows): Delete.
15547 (add_constraint): Use compute_test_codes to determine whether
15548 something can accept a SUBREG, REG or MEM.
15550 2015-05-26 Torvald Riegel <triegel@redhat.com>
15552 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
15553 'memory model' to align with C++11; fix description of memory orders;
15556 2015-05-26 Richard Biener <rguenther@suse.de>
15558 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
15559 (vect_analyze_loop_operations): ... here. Remove slp parameter,
15560 detect whether we apply SLP. Remove call to
15561 vect_update_slp_costs_according_to_vf.
15562 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
15563 vect_update_slp_costs_according_to_vf from here. Dispatch
15564 to vect_slp_analyze_operations to analyze SLP stmts.
15565 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
15566 unused bb_vec_info parameter, adjust assert.
15567 (vect_slp_analyze_operations): Pass in the slp instance tree
15568 instead of bb_vec_info.
15569 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
15570 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
15572 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15574 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
15575 Q_REGS. Expand comment.
15576 (REG_CLASS_NAMES): Ditto.
15577 (REG_CLASS_CONTENTS): Ditto.
15579 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
15582 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
15583 when LEGACY_INT_REGNO_P is processed.
15585 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
15587 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
15589 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15591 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
15592 register if not marked dead/unused, before return.
15594 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15597 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
15598 is set; check for assembler name at LTO time.
15599 (type_in_anonymous_namespace): Remove hacks, check that all
15600 anonymous types are called "<anon>"
15601 (odr_type_p): Simplify; add check for "<anon>"
15602 (odr_subtypes_equivalent): Add odr_type_p check.
15603 * tree.c (need_assembler_name_p): Even anonymous namespace needs
15606 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15608 * ipa-utils.h (method_class_type): Remove.
15609 * cgraphunit.c (walk_polymorphic_call_targets): Use
15610 TYPE_METHOD_BASETYPE.
15611 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
15612 on main variants only.
15613 (method_class_type): Remove.
15614 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
15615 (build_type_inheritance_graph): Likewise.
15616 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15617 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
15618 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
15620 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
15622 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
15623 is_typedef_decl, typedef_variant_p): Constify.
15624 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
15625 is_typedef_decl, typedef_variant_p): Constify.
15627 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15629 * defaults.h (gen_tablejump): New function.
15630 (HAVE_tablejump): Add default value.
15632 * stmt.c: Likewise.
15634 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15636 * defaults.h (gen_store_multiple): New function.
15637 (HAVE_store_multiple): Add default value.
15638 * expr.c (move_block_from_reg): Adjust.
15640 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15642 * defaults.h (gen_load_multiple): New function.
15643 (HAVE_load_multiple): Add default value.
15644 * expr.c (move_block_to_reg): Adjust.
15646 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15648 * defaults.h (gen_mem_signal_fence): New function.
15649 (HAVE_mem_signal_fence): Add default value.
15650 * optabs.c: Adjust.
15652 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15654 * defaults.h (gen_memory_barrier): New function.
15655 (HAVE_memory_barrier): Add default value.
15656 * optabs.c: Adjust.
15658 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15660 * defaults.h (gen_mem_thread_fence): New function.
15661 (HAVE_mem_thread_fence): Add default definition.
15662 * optabs.c: Adjust.
15664 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15666 * combine.c (find_split_point): Check the value of HAVE_lo_sum
15667 instead of if it is defined.
15668 (combine_simplify_rtx): Likewise.
15669 * lra-constraints.c (process_address_1): Likewise.
15670 * config/darwin.c: Adjust.
15671 * genconfig.c (main): Always define HAVE_lo_sum.
15673 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15675 * genmatch.c (parser::parse_operation): Reject expanding
15676 operator-list inside 'for'.
15678 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15680 * genmatch.c (parser::parse_for): Reject iterator if used as
15683 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15685 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
15686 after end of id-list.
15688 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15690 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
15691 we do not try to compute canonical type for type that does not need
15693 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
15695 * tree.h (type_with_alias_set_p): New.
15697 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
15699 * tree.c (gimple_canonical_types_compatible_p): Do not compare
15700 function attributes.
15701 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
15703 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
15705 * Makefile.in (check_gcc_parallelize): Delete.
15706 (lang_checks_parallelized): Update comment.
15708 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
15710 PR rtl-optimization/66237
15711 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
15712 location of an "as_a" cast.
15714 2015-05-22 Jeff Law <law@redhat.com>
15716 * config/pa/pa.md (non-canonical shift-add insns): Remove.
15717 (peepholes with non-canonical RTL sources): Remove.
15718 (peepholes for indexed stores of FP regs in integer modes): Match and
15719 generate canonical RTL.
15721 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15723 PR tree-optimization/63387
15724 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
15725 ((x ord x) & (y ord y) -> (x ord y),
15726 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
15727 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
15728 vectors like scalars.
15730 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15732 * convert.c (convert_to_integer, convert_to_vector): Include the
15733 types in the error message.
15735 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
15737 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
15740 2015-05-22 Jeff Law <law@redhat.com>
15742 * config/pa/pa.md (integer_indexed_store splitters): Use
15743 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
15744 insns -- adjusting the constant 2nd operand accordingly.
15746 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
15747 (plus (ashift X log2) Y) if it is a split point.
15749 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
15750 out of hppa_legitimize_address to handle both forms of a multiply
15752 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
15753 Always generate the ASHIFT variant as the result is not directly
15754 used in a MEM. Update comments and refactor slightly to improve
15757 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15760 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
15761 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
15762 (aarch64_composite_type_p): Return false if given type and mode are
15763 for a short vector.
15765 2015-05-22 Richard Biener <rguenther@suse.de>
15767 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
15769 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
15770 patterns when determining whether SLP is pure.
15771 (vect_is_slp_reduction): Remove check for pattern stmts.
15772 (vect_is_simple_reduction_1): Remove dead code.
15773 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
15774 (vect_get_and_check_slp_defs): Pass in the stmt number.
15775 Allow the first def in a reduction to be not a pattern stmt when
15776 the rest of the stmts def are patterns.
15777 (vect_build_slp_tree_1): Allow tcc_expression codes like
15778 SAD_EXPR and DOT_PROD_EXPR.
15779 (vect_build_slp_tree): Adjust.
15780 (vect_analyze_slp): Refactor and move BB vect error message ...
15781 (vect_slp_analyze_bb_1): ... here.
15783 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
15785 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
15786 for CSWTCH temporary.
15788 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15790 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
15791 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
15794 2015-05-22 Richard Biener <rguenther@suse.de>
15796 PR tree-optimization/66251
15797 * tree-vect-stmts.c (vectorizable_conversion): Properly
15798 set STMT_VINFO_VEC_STMT even for the SLP case.
15800 2015-05-22 Marek Polacek <polacek@redhat.com>
15802 * doc/extend.texi: Use @pxref instead of @xref.
15804 2015-05-22 hiraditya <hiraditya@msn.com>
15806 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
15809 2015-05-22 Richard Biener <rguenther@suse.de>
15811 PR tree-optimization/65701
15812 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15813 Move peeling cost models into one place. Peel for alignment
15814 for single loads only if an aligned load is cheaper than
15817 2015-05-22 Marek Polacek <polacek@redhat.com>
15820 * doc/extend.texi (Enumerator Attributes): New section.
15821 Document syntax of enumerator attributes.
15823 2015-05-22 Richard Biener <rguenther@suse.de>
15825 * tree-vect-loop.c (get_reduction_op): New function.
15826 (vect_model_reduction_cost): Use it, add reduc_index parameter.
15827 Make ready for BB reductions.
15828 (vect_create_epilog_for_reduction): Use get_reduction_op.
15829 (vectorizable_reduction): Init reduc_index to a valid value.
15830 Adjust vect_model_reduction_cost call.
15831 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
15832 operand for reduction defaults. Add SAD_EXPR support.
15833 Assert we have a neutral op for SLP reductions.
15834 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
15835 walking pattern stmt ops only recurse to SSA names.
15837 2015-05-22 Richard Biener <rguenther@suse.de>
15839 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
15840 assert with guard, remove check on detected reduction.
15841 (vect_recog_sad_pattern): Likewise.
15842 (vect_recog_widen_sum_pattern): Likewise.
15844 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15846 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
15847 __always_inline__ attribute.
15848 (vaesdq_u8): Likewise.
15849 (vaesmcq_u8): Likewise.
15850 (vaesimcq_u8): Likewise.
15851 (vsha1cq_u32): Likewise.
15852 (vsha1mq_u32): Likewise.
15853 (vsha1pq_u32): Likewise.
15854 (vsha1h_u32): Likewise.
15855 (vsha1su0q_u32): Likewise.
15856 (vsha1su1q_u32): Likewise.
15857 (vsha256hq_u32): Likewise.
15858 (vsha256h2q_u32): Likewise.
15859 (vsha256su0q_u32): Likewise.
15860 (vsha256su1q_u32): Likewise.
15861 (vmull_p64): Likewise.
15862 (vmull_high_p64): Likewise.
15864 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15866 * final.c (final_scan_insn): Don't check HAVE_peephole with the
15868 * output.h: Likewise.
15869 * genconfig.c (main): Alwways define HAVE_peephole.
15870 * genpeep.c: Don't emit checks of HAVE_peephole.
15872 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15874 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
15875 check HAVE_conditional_move with the preprocessor.
15877 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15879 * genconfig.c (main): Always define HAVE_conditional_move.
15880 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
15881 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
15884 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15886 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
15887 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
15888 and FRAME_POINTER_REGNUM with the preprocessor.
15890 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15892 * defaults.h: Add default for STACK_PUSH_CODE.
15893 * expr.c: Don't redefine STACK_PUSH_CODE.
15894 * recog.c: Likewise.
15896 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15898 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
15899 sched-deps.c: Use if instead of preprocessor checks with
15900 STACK_GROWS_DOWNWARD.
15902 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15904 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
15906 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
15907 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
15908 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
15909 * doc/tm.texi: Regenerate.
15911 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
15914 * config/i386/constraints.md (Bg): New constraint for GOT memory
15916 * config/i386/i386.md (*call_got_x32): New pattern.
15917 (*call_value_got_x32): Likewise.
15918 * config/i386/predicates.md (GOT_memory_operand): New predicate.
15920 2015-05-21 Jakub Jelinek <jakub@redhat.com>
15922 PR tree-optimization/66233
15923 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
15926 2015-05-21 Jeff Law <law@redhat.com>
15928 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
15929 than MULT for shadd sequences.
15931 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
15933 * alias.c (alias_stats): New static var.
15934 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
15935 (dump_alias_stats_in_alias_c): New function.
15936 * alias.h (dump_alias_stats_in_alias_c): Declare.
15937 * tree-ssa-alias.c (dump_alias_stats): Call it.
15939 2015-05-08 Michael Matz <matz@suse.de>
15941 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
15943 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
15944 (STMT_VINFO_STRIDED_P): ... this.
15945 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
15946 (vect_verify_datarefs_alignment): Likewise.
15947 (vect_enhance_data_refs_alignment): Likewise.
15948 (vect_analyze_data_ref_access): Likewise.
15949 (vect_analyze_data_refs): Accept strided stores.
15950 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
15951 (vect_model_load_cost): Adjust for macro rename.
15952 (vectorizable_mask_load_store): Likewise.
15953 (vectorizable_load): Likewise.
15954 (vectorizable_store): Open code strided stores.
15956 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15958 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
15959 Document sqrt_insn.
15961 2015-05-21 Richard Biener <rguenther@suse.de>
15964 * match.pd: Guard pattern optimzing (int)(float)int
15965 conversions to apply only on GIMPLE.
15967 2015-05-21 Jeff Law <law@redhat.com>
15969 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
15970 multiply-accumulate/shift-add insn generation.
15972 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15975 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
15976 operands[1] are the same.
15978 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
15980 PR middle-end/66221
15981 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
15982 build_distinct_type_copy to copy bounds.
15984 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
15986 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
15987 Change to unsigned int.
15989 2015-05-20 Jeff Law <law@redhat.com>
15991 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
15992 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
15993 (pa_shadd_constant_p): Allow constants for shadd insns rather
15994 than valid scaling constants for memory addresses.
15995 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
15996 * config/pa/predicates.md (mem_shadd_operand): New predicate.
15997 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
15998 (shift-add insns using ASHIFT): New patterns.
16000 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
16002 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
16004 (fix_up_fall_thru_edges): Likewise.
16005 (fix_crossing_conditional_branches): Likewise. Promote jump targets
16006 from to rtx_insn to rtx_code_label where feasible.
16007 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
16008 gen_move_insn (returned type changed to rtx_insn).
16009 * builtins.c (expand_errno_check): Fix arguments of
16010 do_compare_rtx_and_jump (now expects rtx_code_label).
16011 (expand_builtin_acc_on_device): Likewise.
16012 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
16013 invert_jump (now exprects rtx_jump_insn).
16014 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
16015 (construct_init_block): Use rtx_code_label.
16016 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
16017 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
16018 calling redirect_jump.
16019 (patch_jump_insn): Likewise.
16020 (redirect_branch_edge): Likewise.
16021 (force_nonfallthru_and_redirect): Likewise.
16022 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
16024 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
16025 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
16026 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
16027 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
16028 to store the value retured by gen_label_rtx.
16029 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
16031 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
16032 (split_branches): Fix calls of redirect_jump.
16033 * dojump.c (jumpifnot): Promote argument type from rtx to
16035 (jumpifnot_1): Likewise.
16036 (jumpif): Likewise.
16037 (jumpif_1): Likewise.
16038 (do_jump_1): Likewise.
16039 (do_jump): Likewise. Use rtx_code_label when feasible.
16040 (do_jump_by_parts_greater_rtx): Likewise.
16041 (do_jump_by_parts_zero_rtx): Likewise.
16042 (do_jump_by_parts_equality_rtx): Likewise.
16043 (do_compare_rtx_and_jump): Likewise.
16044 * dojump.h: Update function prototypes.
16045 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
16047 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
16049 (emit_label_before): Likewise.
16050 (emit_jump_insn_after_noloc): Likewise.
16051 (emit_jump_insn_after_setloc): Likewise.
16052 (emit_jump_insn_after): Likewise
16053 (emit_jump_insn_before_setloc): Likewise.
16054 (emit_jump_insn_before): Likewise.
16055 (emit_label_before): Promote return type to rtx_code_label.
16056 (emit_label): Likewise.
16057 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
16058 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
16060 (emit_stack_restore): Likewise.
16061 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
16062 (do_cmp_and_jump): Likewise.
16063 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
16064 from rtx to rtx_code_label.
16065 (gen_move_insn_uncast): New function.
16066 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
16067 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
16068 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
16069 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
16070 invert_jump_1 and redirect_jump_1.
16071 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
16072 do_compare_rtx_and_jump.
16073 (expand_addsub_overflow): Likewise.
16074 (expand_neg_overflow): Likewise.
16075 (expand_mul_overflow): Likewise.
16076 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
16077 return value of gen_move_insn.
16078 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
16079 * loop-doloop.c (add_test): Use rtx_code_label.
16080 (doloop_modify): Likewise.
16081 (doloop_optimize): Likewise.
16082 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
16083 * lra-constraints.c (emit_spill_move): Remove cast of value returned
16085 (inherit_reload_reg): Add cast when calling dump_insn_slim.
16086 (split_reg): Likewise.
16087 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
16089 * optabs.c (expand_binop_directly): Remove casts of values returned by
16091 (expand_unop_direct): Likewise.
16092 (expand_abs): Likewise.
16093 (maybe_emit_unop_insn): Likewise.
16094 (maybe_gen_insn): Promote return type to rtx_insn.
16095 * optabs.h: Update prototype of maybe_gen_insn.
16096 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
16098 * recog.c (struct peep2_insn_data): Promote type of insn field to
16100 (peep2_reinit_state): Use NULL instead of NULL_RTX.
16101 (peep2_attempt): Remove casts of insn in peep2_insn_data.
16102 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
16103 * recog.h (struct insn_gen_fn): Promote return types of function
16104 pointers and operator ().from rtx to rtx_insn.
16105 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
16106 (fill_eager_delay_slots): Likewise.
16107 (relax_delay_slots): Likewise.
16108 (make_return_insns): Likewise.
16109 (dbr_schedule): Likewise.
16110 (optimize_skips): Likewise.
16111 (reorg_redirect_jump): Likewise.
16112 (fill_slots_from_thread): Likewise.
16113 * reorg.h: Update prototypes.
16114 * resource.c (find_dead_or_set_registers): Use dyn_cast to
16115 rtx_jump_insn instead of check. Use it's jump_target method.
16116 * rtl.h (rtx_jump_insn::jump_label): Define new method.
16117 (rtx_jump_insn::jump_target): Define new method.
16118 (rtx_jump_insn::set_jump_target): Define new method.
16119 * rtlanal.c (tablejump_p): Promote type of one local variable.
16120 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
16121 (sched_analyze_insn): Likewise.
16122 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
16123 (print_insn): Likewise.
16124 * stmt.c (label_rtx): Promote return type to rtx_insn.
16125 (force_label_rtx): Likewise.
16126 (jump_target_rtx): Define new function.
16127 (expand_label): Use it, get rid of one cast.
16128 (expand_naked_return): Promote rtx to rtx_code_label.
16129 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
16130 (expand_case): Use rtx_code_label instread of rtx where feasible.
16131 (expand_sjlj_dispatch_table): Likewise.
16132 (emit_case_nodes): Likewise.
16133 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
16134 * store-motion.c (insert_store): Make use of new return type of
16135 gen_move_insn and remove a cast.
16136 (replace_store_insn): Likewise.
16138 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
16140 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
16141 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
16143 2015-05-20 Jeff Law <law@redhat.com>
16145 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
16146 dispose of the jump thread path when the jump threading
16147 opportunity is cancelled.
16149 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16151 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
16152 when printing the caret character.
16154 2015-05-20 Marek Polacek <polacek@redhat.com>
16156 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
16158 2015-05-20 Marek Polacek <polacek@redhat.com>
16160 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
16161 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
16162 * gimple-fold.c (canonicalize_bool): Likewise.
16163 (same_bool_result_p): Likewise.
16164 * tree-if-conv.c (parse_predicate): Likewise.
16166 2015-05-20 Marek Polacek <polacek@redhat.com>
16168 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
16169 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
16171 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16173 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
16174 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
16177 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
16179 * config/mips/mips.h (micromips_globals): Declare.
16181 2015-05-20 David Malcolm <dmalcolm@redhat.com>
16183 * timevar.def (TV_INITIALIZE_RTL): New.
16184 * toplev.c (initialize_rtl): Use an auto_timevar to account this
16185 function's time to TV_INITIALIZE_RTL.
16187 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
16189 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
16190 gimple_build_nop calls.
16191 (chkp_find_bounds_for_elem): Likewise.
16192 (chkp_get_zero_bounds): Likewise.
16193 (chkp_get_none_bounds): Likewise.
16194 (chkp_get_bounds_by_definition): Likewise.
16195 (chkp_generate_extern_var_bounds): Likewise.
16196 (chkp_get_bounds_for_decl_addr): Likewise.
16197 (chkp_get_bounds_for_string_cst): Likewise.
16199 2015-05-20 Bin Cheng <bin.cheng@arm.com>
16201 PR tree-optimization/65447
16202 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
16203 (dump_use, dump_uses): Support to dump sub use.
16204 (record_use): New parameters to support sub use. Remove call to
16206 (record_sub_use, record_group_use): New functions.
16207 (compute_max_addr_offset, split_all_small_groups): New functions.
16208 (group_address_uses, rewrite_use_address): New functions.
16209 (strip_offset): New declaration.
16210 (find_interesting_uses_address): Call record_group_use.
16211 (add_candidate): New assertion.
16212 (infinite_cost_p): Move definition forward.
16213 (add_costs): Check INFTY cost and return immediately.
16214 (get_computation_cost_at): Clear setup cost and dependent bitmap
16216 (determine_use_iv_cost_address): Compute cost for sub uses.
16217 (rewrite_use_address_1): Rename from old rewrite_use_address.
16218 (free_loop_data): Free sub uses.
16219 (tree_ssa_iv_optimize_loop): Call group_address_uses.
16221 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16222 Jim Wilson <jim.wilson@linaro.org>
16224 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
16225 new fields loadv and storev.
16226 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
16227 Initialize loadv and storev.
16228 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
16229 (cortexa53_extra_costs): Likewise.
16230 (cortexa57_extra_costs): Likewise.
16231 (xgene1_extra_costs): Likewise.
16232 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
16235 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16237 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
16239 (cortexa8_extra_costs): Likewise.
16240 (cortexa5_extra_costs): Likewise.
16241 (cortexa7_extra_costs): Likewise.
16242 (cortexa12_extra_costs): Likewise.
16243 (cortexa15_extra_costs): Likewise.
16244 (v7m_extra_costs): Likewise.
16246 2015-05-20 Jeff Law <law@redhat.com>
16248 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
16249 instead of open-coded version. Also delete the jump thread created
16250 within this function.
16252 2015-05-20 Alan Modra <amodra@gmail.com>
16254 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
16255 stack adjusting insn. Formatting.
16256 (rs6000_emit_prologue): Track stack adjusting insn, and use of
16257 r12. If possible, emit first -fsplit-stack arg pointer insn
16258 before stack adjust. Don't use r12 to save cr if split-stack.
16260 2015-05-20 Alan Modra <amodra@gmail.com>
16262 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
16264 (rs6000_supports_split_stack): New function.
16265 * gcc/config/rs6000/rs6000.c (machine_function): Add
16266 split_stack_arg_pointer.
16267 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
16268 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
16269 rather than virtual_incoming_args_rtx.
16270 (rs6000_va_start): Likewise.
16271 (split_stack_arg_pointer_used_p): New function.
16272 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
16273 (morestack_ref): New var.
16274 (gen_add3_const, rs6000_expand_split_stack_prologue,
16275 rs6000_internal_arg_pointer, rs6000_live_on_entry,
16276 rs6000_split_stack_space_check): New functions.
16277 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
16278 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
16279 (UNSPECV_SPLIT_STACK_RETURN): Define.
16280 (split_stack_prologue, load_split_stack_limit,
16281 load_split_stack_limit_di, load_split_stack_limit_si,
16282 split_stack_return, split_stack_space_check): New expands and insns.
16283 * gcc/config/rs6000/rs6000-protos.h
16284 (rs6000_expand_split_stack_prologue): Declare.
16285 (rs6000_split_stack_space_check): Declare.
16287 2015-05-20 Alan Modra <amodra@gmail.com>
16289 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
16290 (direct_return): Test vrsave_size rather than vrsave_mask.
16291 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
16292 (rs6000_emit_epilogue): Likewise.
16294 2015-05-20 Alan Modra <amodra@gmail.com>
16296 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
16297 when not saving registers.
16298 (debug_stack_info): Adjust to omit printing unused offsets,
16300 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
16303 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16306 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
16307 value_type to const char *.
16309 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
16311 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
16312 to build a biarch toolchain again.
16314 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16316 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
16317 or implicit declarations.
16318 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
16320 (get_odr_type): Check type has linkage before adding bases.
16321 (register_odr_type): Check that type has linkage before adding it.
16322 (type_known_to_have_no_deriavations_p): Rename to ..
16323 (type_known_to_have_no_derivations_p): This one.
16324 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
16325 (type_known_to_have_no_derivations_p): This one.
16326 * ipa-polymorphic-call.c
16327 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
16330 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16332 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
16333 (layout_type): Use RECORD_OR_UNION_TYPE_P.
16335 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16337 * config/s390/s390.c (s390_vector_bool_type_p): New function.
16338 (s390_invalid_binary_op): New function.
16339 (TARGET_INVALID_BINARY_OP): Define macro.
16341 2015-05-19 David Sherwood <david.sherwood@arm.com>
16343 * loop-invariant.c (create_new_invariant): Don't calculate address cost
16344 if mode is not a scalar integer.
16345 (get_inv_cost): Increase computational cost for unused invariants.
16347 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16349 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
16350 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
16351 * config/s390/s390-builtin-types.def: New file.
16352 * config/s390/s390-builtins.def: New file.
16353 * config/s390/s390-builtins.h: New file.
16354 * config/s390/s390-c.c: New file.
16355 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
16356 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
16357 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
16358 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
16360 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
16362 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
16363 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
16364 variable definitions.
16365 (s390_const_operand_ok): New function.
16366 (s390_expand_builtin): Rewrite.
16367 (s390_init_builtins): New function.
16368 (s390_handle_vectorbool_attribute): New function.
16369 (s390_attribute_table): Add s390_vector_bool attribute.
16370 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
16371 (s390_branch_condition_mask): Generate masks for new modes.
16372 (s390_expand_vec_compare_cc): New function.
16373 (s390_mangle_type): Add mangling for vector bool types.
16374 (enum s390_builtin): Remove.
16375 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
16377 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
16378 s390_cpu_cpp_builtins.
16379 (REGISTER_TARGET_PRAGMAS): New macro.
16380 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
16381 (insn_cmp mode attribute): Add new CC modes.
16382 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
16383 (lcbb): New pattern definition.
16384 * config/s390/s390intrin.h: Include vecintrin.h.
16385 * config/s390/t-s390: New file.
16386 * config/s390/vecintrin.h: New file.
16387 * config/s390/vector.md: Include vx-builtins.md.
16388 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
16391 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16393 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
16395 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
16396 (s390_select_ccmode): Likewise.
16397 (s390_canonicalize_comparison): Swap operands if necessary.
16398 (s390_expand_vec_compare_scalar): Expand DFmode compare using
16399 single element vector instructions.
16400 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
16401 (s390_branch_condition_mask): Generate CC masks for the new modes.
16402 * config/s390/s390.md (v0, vf, vd): New mode attributes.
16403 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
16404 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
16405 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
16406 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
16407 (*extend<DSF:mode><BFP:mode>2): New insn definition.
16408 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
16409 (extend<DSF:mode><BFP:mode>2): Turn into expander.
16410 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
16411 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
16412 (sqrt<mode>2): Add vector instruction.
16414 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16416 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
16418 * config/s390/predicates.md (const0_operand, constm1_operand)
16419 (constable_operand): Accept vector operands.
16420 * config/s390/s390-modes.def: Add supported vector modes.
16421 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
16422 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
16423 (s390_bytemask_vector_p, s390_expand_vec_strlen)
16424 (s390_expand_vec_compare, s390_expand_vcond)
16425 (s390_expand_vec_init): Add prototypes.
16426 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
16427 (s390_vector_mode_supported_p): New function.
16428 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
16429 (s390_contiguous_bitmask_vector_p): New function.
16430 (s390_bytemask_vector_p): New function.
16431 (s390_split_ok_p): Vector regs don't work either.
16432 (regclass_map): Add VEC_REGS.
16433 (s390_legitimate_constant_p): Handle vector constants.
16434 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
16435 (legitimate_reload_vector_constant_p): New function.
16436 (s390_preferred_reload_class): Handle CONST_VECTOR.
16437 (s390_reload_symref_address): Likewise.
16438 (s390_secondary_reload): Vector memory instructions only support
16439 short displacements. Rename reload*_nonoffmem* to reload*_la*.
16440 (s390_emit_ccraw_jump): New function.
16441 (s390_expand_vec_strlen): New function.
16442 (s390_expand_vec_compare): New function.
16443 (s390_expand_vcond): New function.
16444 (s390_expand_vec_init): New function.
16445 (s390_dwarf_frame_reg_mode): New function.
16446 (print_operand): Handle addresses with 'O' and 'R' constraints.
16447 (NR_C_MODES, constant_modes): Add vector modes.
16448 (s390_output_pool_entry): Handle vector constants.
16449 (s390_hard_regno_mode_ok): Handle vector registers.
16450 (s390_class_max_nregs): Likewise.
16451 (s390_cannot_change_mode_class): New function.
16452 (s390_invalid_arg_for_unprototyped_fn): New function.
16453 (s390_function_arg_vector): New function.
16454 (s390_function_arg_float): Remove size variable.
16455 (s390_pass_by_reference): Handle vector arguments.
16456 (s390_function_arg_advance): Likewise.
16457 (s390_function_arg): Likewise.
16458 (s390_return_in_memory): Vector values are returned in a VR if
16460 (s390_function_and_libcall_value): Handle vector arguments.
16461 (s390_gimplify_va_arg): Likewise.
16462 (s390_call_saved_register_used): Consider the arguments named.
16463 (s390_conditional_register_usage): Disable v16-v31 for non-vec
16465 (s390_preferred_simd_mode): New function.
16466 (s390_support_vector_misalignment): New function.
16467 (s390_vector_alignment): New function.
16468 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
16469 (TARGET_VECTOR_MODE_SUPPORTED_P)
16470 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
16471 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16472 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
16473 (TARGET_VECTOR_ALIGNMENT): Define target macro.
16474 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
16475 (FIRST_PSEUDO_REGISTER): Increase value.
16476 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
16477 (VECTOR_REG_P): Define macros.
16478 (FIXED_REGISTERS, CALL_USED_REGISTERS)
16479 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
16480 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
16481 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
16482 Add vector registers.
16483 (CANNOT_CHANGE_MODE_CLASS): Call C function.
16484 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
16485 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
16487 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
16488 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
16489 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
16490 (VR*_REGNUM): New constants.
16491 (ALL): New mode iterator.
16492 (INTALL): Remove mode iterator.
16494 (movti): Implement TImode moves for VRs.
16495 Disable TImode splitter for VR targets.
16496 Implement splitting TImode GPR<->VR moves.
16497 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
16498 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
16499 reload<mode>_la_in, reload<mode>_la_out.
16500 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
16501 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
16502 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
16503 (mov<mode> SF SD): Prefer lder, lde for loading.
16504 Add lrl and strl instructions.
16505 Add vector instructions.
16506 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
16507 Call s390_expand_vec_strlen on z13.
16508 (*cc_to_int): Change predicate to nonimmediate_operand.
16509 (addti3): Rename to *addti3. New expander.
16510 (subti3): Rename to *subti3. New expander.
16511 * config/s390/vector.md: New file.
16513 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16515 * common/config/s390/s390-common.c (processor_flags_table): Add
16517 * config.gcc: Add z13.
16518 * config/s390/s390-opts.h (enum processor_type): Add
16519 PROCESSOR_2964_Z13.
16520 * config/s390/s390.c (s390_adjust_priority): Check for
16521 PROCESSOR_2964_Z13.
16522 (s390_reorg): Likewise.
16523 (s390_sched_reorder): Likewise.
16524 (s390_sched_variable_issue): Likewise.
16525 (s390_loop_unroll_adjust): Likewise.
16526 (s390_option_override): Likewise. Default to -mvx when available.
16527 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
16528 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
16529 (TARGET_VX_ABI): Define macros.
16531 (TARGET_DEFAULT): Add MASK_OPT_VX.
16532 * config/s390/s390.md ("cpu" attribute): Add z13.
16533 ("cpu_facility" attribute): Add vec.
16534 * config/s390/s390.opt (processor_type): Add z13.
16535 (mvx): New options.
16536 * doc/invoke.texi: Add z13 option for -march.
16538 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16540 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
16541 mode check to make sure that only scalar integer values are
16544 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16546 * tree.c (verify_type_variant): Fix #undef.
16547 (gimple_canonical_types_compatible_p): Move here from lto.c
16548 (verify_type): Verify TYPE_CANONICAL compatibility.
16549 * tree.h (gimple_canonical_types_compatible_p): Declare.
16551 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16553 PR middle-end/66199
16554 * tree.h (OMP_TEAMS_COMBINED): Define.
16555 * gimplify.c (enum gimplify_omp_var_data): Add
16556 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
16557 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
16558 (omp_notice_variable): Accept both ORT_TEAMS
16559 and ORT_COMBINED_TEAMS. Don't recurse if
16560 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
16561 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
16563 (omp_no_lastprivate): New function.
16564 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
16565 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
16566 notice_outer and set appropriate bits, otherwise make
16567 sure default(none) combined constructs won't complain.
16568 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
16569 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
16570 omp_no_lastprivate either remove the clause or turn it
16571 into OMP_CLAUSE_PRIVATE.
16572 (gimplify_omp_for): Fix up handling of implicit
16573 lastprivate or linear iterators.
16574 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
16575 ORT_COMBINED_TEAMS.
16576 * omp-low.c (lower_omp_for_lastprivate): For combined
16577 for simd use fd.loop.n2 from the for rather than simd.
16579 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16581 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
16582 instead of gen_rtx_raw_REG.
16583 (cris_expand_epilogue): Likewise.
16584 * config/microblaze/microblaze.c (microblaze_classify_address):
16586 * config/sparc/sparc.md: Likewise.
16588 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
16590 * config/alpha/alpha.c (alpha_legitimize_reload_address)
16591 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
16592 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
16593 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
16594 Use CASE_CONST_SCALAR_INT.
16595 (print_operand) <case 'M'>: Use mode_width_operand to check the
16596 value of the constant.
16597 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
16598 * config/alpha/predicates.md (input_operand): Use general_operand
16599 instead of match_code as operand check.
16600 (symbolic_operand): Use match_code with subexpression digits.
16601 * config/alpha/constraints.md (Q): Ditto.
16603 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16605 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
16607 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16609 * config/s390/s390.c (s390_secondary_reload): Fix check for
16610 load/store relative.
16612 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16614 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
16615 alternative_mask to uint64_t.
16617 2015-05-19 Jakub Jelinek <jakub@redhat.com>
16619 PR tree-optimization/66187
16620 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
16621 Pass TYPE_SIGN to tree_int_cst_min_precision. If
16622 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
16624 2015-05-19 David Malcolm <dmalcolm@redhat.com>
16626 * diagnostic.c (diagnostic_report_current_module): Strengthen
16627 local "new_map" from const line_map * to
16628 const line_map_ordinary *.
16629 * genmatch.c (error_cb): Likewise for local "map".
16630 (output_line_directive): Likewise for local "map".
16631 * input.c (expand_location_1): Likewise for local "map".
16632 Pass NULL rather than &map to
16633 linemap_unwind_to_first_non_reserved_loc, since the value is never
16634 read from there, and the value written back not read from here.
16635 (is_location_from_builtin_token): Strengthen local "map" from
16636 const line_map * to const line_map_ordinary *.
16637 (dump_location_info): Strengthen locals "map" from
16638 line_map *, one to const line_map_ordinary *, the other
16639 to const line_map_macro *.
16640 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
16641 const line_map * to const line_map_macro *.
16642 (maybe_unwind_expanded_macro_loc): Add a call to
16643 linemap_check_macro when writing to the "map" field of the
16645 Introduce local const line_map_ordinary * "ord_map", using it in
16646 place of "map" in the part of the function where we know we have
16647 an ordinary map. Strengthen local "m" from const line_map * to
16648 const line_map_ordinary *.
16650 2015-05-19 Nick Clifton <nickc@redhat.com>
16653 * config/msp430/msp430.md (zero_extendhisi2): Add support for
16654 separate source and destination registers.
16656 2015-05-19 Richard Biener <rguenther@suse.de>
16658 PR tree-optimization/66165
16659 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
16660 for no load permutation.
16662 PR tree-optimization/66185
16663 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
16664 when building the SLP node from scalars.
16666 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16667 Tristan Gingold <gingold@adacore.com>
16669 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
16670 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
16671 (expand_stack_restore): Call record_new_stack_level.
16672 (expand_stack_save): Do not call do_pending_stack_adjust.
16673 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
16674 * calls.c (expand_call): Call record_new_stack_level for alloca.
16675 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
16676 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
16677 (update_sjlj_context): New global function.
16678 * except.h (update_sjlj_context): Declare.
16679 * explow.c (record_new_stack_level): New global function.
16680 (allocate_dynamic_stack_space): Call record_new_stack_level.
16681 * explow.h (record_new_stack_level): Declare.
16682 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
16683 * cfgrtl.c (duplicate_insn_chain): Likewise.
16685 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16687 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
16688 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
16689 STACK_GROWS_DOWNWARD as normal if.
16690 (expand_call): Likewise.
16692 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
16695 * config/sh/sh.md (*round_int_even): New insn_and_split and
16696 accompanying new unnamed split.
16698 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16700 * bitmap.c (bitmap_set_range): Handle count==1 specially.
16701 (bitmap_clear_range): Likewise.
16702 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
16703 bitmap_set_range unconditionally.
16704 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16705 * df-scan.c (df_mark_reg): Likewise.
16706 * haifa-sched.c (setup_ref_regs): Likewise.
16707 * sched-rgn.c (update_live_1): Likewise.
16709 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16711 * regs.h (END_HARD_REGNO): Delete.
16712 (END_REGNO): Move to...
16714 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
16715 * caller-save.c (mark_set_regs): Likewise.
16716 * combine.c (move_deaths, distribute_notes): Likewise.
16717 * cse.c (invalidate, invalidate_for_call): Likewise.
16718 * df-scan.c (df_ref_record): Likewise.
16719 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
16720 (record_last_reg_set_info): Likewise.
16721 * reg-stack.c (convert_regs_exit): Likewise.
16722 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
16723 * resource.c (update_live_status): Likewise.
16724 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
16726 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16728 * rtl.h (reg_info): Add an nregs field.
16729 (REG_NREGS): Use it.
16730 (SET_REGNO_RAW): Delete.
16731 (set_regno_raw): New function.
16732 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
16733 (END_REGNO): Redefine in terms of REG_NREGS.
16734 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
16736 * emit-rtl.c (set_mode_and_regno): Likewise.
16737 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
16738 instead of SET_REGNO_RAW.
16740 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16742 * rtl.h (PUT_MODE_RAW): New macro.
16743 (PUT_REG_NOTE_KIND): Use it.
16744 (set_mode_and_regno): Declare.
16745 (gen_raw_REG): Change regno to "unsigned int".
16746 (gen_rtx_REG): Change "unsigned" to "unsigned int".
16747 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
16748 use set_mode_and_regno to change the mode of registers.
16749 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
16750 * emit-rtl.c (set_mode_and_regno): New function.
16751 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
16752 * caller-save.c (reg_save_code): Use set_mode_and_regno.
16753 * expr.c (init_expr_target): Likewise.
16754 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16755 * postreload.c (reload_cse_simplify_operands): Likewise.
16757 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16759 * caller-save.c (init_caller_save): Use word_mode and
16760 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
16761 * expr.c (init_expr_target): Likewise.
16762 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16763 * postreload.c (reload_cse_regs_1): Likewise.
16765 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16767 * rtl.def (REG): Change format to "r".
16768 * rtl.h (rtunion): Remove rt_reg.
16769 (reg_info): New structure.
16770 (rtx_def): Add reg field to main union.
16771 (X0REGATTR): Delete.
16772 (REG_CHECK): New macro.
16773 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
16774 * rtl.c (rtx_format): Document "r".
16775 (rtx_code_size): Handle REG specially.
16776 * gengenrtl.c (special_format): Return true for formats
16778 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
16779 Deal with REG_ATTRS after the field loop.
16780 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
16781 * expmed.c (init_expmed): Call gen_raw_REG instead of
16783 * expr.c (init_expr_target): Likewise.
16784 * regcprop.c (maybe_mode_change): Likewise.
16785 * varasm.c (make_decl_rtl): Likewise.
16786 * final.c (leaf_renumber_regs_insn): Return early after
16788 * genemit.c (gen_exp): Handle 'r' fields.
16789 * genpeep.c (match_rtx): Likewise.
16790 * gensupport.c (subst_pattern_match): Likewise.
16791 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
16792 (alter_constraints, subst_dup): Likewise.
16793 * read-rtl.c (read_rtx_code): Likewise.
16794 * print-rtl.c (print_rtx): Likewise.
16795 * genrecog.c (find_operand, find_matching_operand): Likewise.
16796 (validate_pattern, match_pattern_2): Likewise.
16797 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
16798 (rtx_test::regno_field): New function.
16799 (operator ==, safe_to_hoist_p, transition_parameter_type)
16800 (parameter_type_string, print_parameter_value)
16801 (print_nonbool_test, print_test): Handle new enum values.
16802 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
16803 * lra-constraints.c (operands_match_p): Likewise.
16805 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16807 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
16808 Change type of new_regno to unsigned int.
16809 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
16810 new_regno to unsigned int.
16811 (df_ref_change_reg_with_loc): Remove old_regno parameter.
16812 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
16813 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
16814 (SET_REGNO_RAW): Add space after ",".
16816 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16818 * rtl.h (REG_NREGS): New macro
16819 * alias.c (record_set): Use it.
16820 * cfgcleanup.c (mark_effect): Likewise.
16821 * combine.c (likely_spilled_retval_1): Likewise.
16822 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
16823 (move_deaths, distribute_notes): Likewise.
16824 * cselib.c (cselib_record_set): Likewise.
16825 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16826 * df-scan.c (df_mark_reg): Likewise.
16827 * dse.c (look_for_hardregs): Likewise.
16828 * dwarf2out.c (reg_loc_descriptor): Likewise.
16829 (multiple_reg_loc_descriptor): Likewise.
16830 * expr.c (write_complex_part, read_complex_part): Likewise.
16831 (emit_move_complex): Likewise.
16832 * haifa-sched.c (setup_ref_regs): Likewise.
16833 * ira-lives.c (mark_hard_reg_live): Likewise.
16834 * lra.c (lra_set_insn_recog_data): Likewise.
16835 * mode-switching.c (create_pre_exit): Likewise.
16836 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
16837 (reload_combine_recognize_pattern): Likewise.
16838 (reload_combine_note_use, move2add_record_mode): Likewise.
16839 (reload_cse_move2add): Likewise.
16840 * reg-stack.c (subst_stack_regs_pat): Likewise.
16841 * regcprop.c (kill_value, copy_value): Likewise.
16842 (copyprop_hardreg_forward_1): Likewise.
16843 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
16844 (build_def_use): Likewise.
16845 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
16846 (deps_analyze_insn): Likewise.
16847 * sched-rgn.c (check_live_1, update_live_1): Likewise.
16848 * sel-sched.c (count_occurrences_equiv): Likewise.
16849 * valtrack.c (dead_debug_insert_temp): Likewise.
16851 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
16853 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
16854 * dse.c (note_add_store): Likewise.
16855 * ira-lives.c (mark_hard_reg_dead): Likewise.
16856 * loop-invariant.c (mark_reg_store): Likewise.
16857 (mark_reg_death): Likewise.
16858 * postreload.c (reload_combine): Likewise.
16859 (reload_combine_note_store): Likewise.
16860 (reload_combine_note_use): Likewise.
16861 * recog.c (peep2_reg_dead_p): Likewise.
16863 2015-05-19 Alan Modra <amodra@gmail.com>
16865 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
16866 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
16867 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
16869 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
16870 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
16871 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
16872 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
16874 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
16876 * config/mips/mips.md (JOIN_MODE): New mode iterator.
16877 (join2_load_Store<JOIN_MODE:mode>): New pattern.
16878 (join2_loadhi): Likewise.
16879 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
16880 load-load and store-stores.
16881 * config/mips/mips.opt (mload-store-pairs): New option.
16882 (TARGET_LOAD_STORE_PAIRS): New macro.
16883 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
16884 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
16885 * config/mips/mips.c (mips_load_store_bonding_p): New function.
16887 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
16889 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
16891 * dojump.c (do_compare_rtx_and_jump): Likewise.
16892 * expmed.c (emit_store_flag_1): Likewise.
16893 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
16894 * final.c (sprint_ul): Use std::reverse for reversing a string.
16895 * fold-const.c (extract_muldiv_1): Use std::swap.
16896 * genmodes.c (emit_mode_int_n): Likewise.
16897 * ifcvt.c (dead_or_predicable): Likewise.
16898 * ira-build.c (ira_merge_live_ranges): Likewise.
16899 (swap_allocno_copy_ends_if_necessary): Likewise.
16900 * ira.c (ira_setup_alts): Likewise.
16901 * loop-iv.c (iv_analyze_expr): Likewise.
16902 (implies_p): Likewise.
16903 (canon_condition): Likewise.
16904 * lra-constraints.c (swap_operands): Likewise.
16905 * lra-lives.c (lra_merge_live_ranges): Likewise.
16906 * omega.c (swap): Remove.
16908 (omega_unprotect_1): Use std::swap.
16909 (omega_solve_geq): Likewise.
16910 * optabs.c (expand_binop_directly): Likewise.
16911 (expand_binop): Likewise.
16912 (emit_conditional_move): Likewise.
16913 (emit_conditional_add): Likewise.
16914 * postreload.c (reload_cse_simplify_operands): Likewise.
16915 * reg-stack.c (emit_swap_insn): Likewise.
16916 (swap_to_top): Likewise.
16917 (compare_for_stack_reg): Likewise.
16918 (subst_asm_stack_regs): Likewise.
16919 * reload.c (find_reloads): Likewise.
16920 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
16921 * sel-sched.c (invoke_reorder_hooks): Likewise.
16922 (create_block_for_bookkeeping): Likewise.
16923 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
16924 (lambda_matrix_right_hermite): Use std::swap.
16925 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
16926 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
16927 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
16928 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
16929 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
16930 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
16931 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16932 * tree-vrp.c (compare_ranges): Likewise.
16933 * var-tracking.c (add_with_sets): Likewise.
16934 (vt_find_locations): Likewise.
16936 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
16938 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
16940 (FBSD_ENDFILE_SPEC): Likewise.
16941 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
16942 config/freebsd-spec.h.
16943 (ENDFILE_SPEC): Likewise.
16945 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
16946 Richard Henderson <rth@redhat.com>
16949 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
16950 Check for a memory location that is not a reference (using an AND)
16951 to an unaligned location here.
16952 * config/alpha/predicates.md (normal_memory_operand): Remove.
16954 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
16956 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
16957 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
16959 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
16961 * config/mips/mips.c (micromips_globals): New variable.
16962 (mips_set_compression_mode): Save and reinitialize target-dependent
16963 state for microMIPS.
16965 2015-05-18 Martin Liska <mliska@suse.cz>
16967 * dbgcnt.def: Add new counter.
16968 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
16970 2015-05-18 Martin Liska <mliska@suse.cz>
16972 * dbgcnt.def: Sort counters.
16973 * opts.c (common_handle_option): Do not compile if
16974 -fdbg-cnt-list is enabled.
16976 2015-05-18 Tom de Vries <tom@codesourcery.com>
16978 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
16979 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
16980 address operator to va_list operand.
16981 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
16983 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
16985 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
16986 * config/s390/s390.c (s390_gimplify_va_arg): Same.
16987 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
16989 2015-05-18 Tom de Vries <tom@codesourcery.com>
16991 * tree-ssa-tail-merge.c: Fix whitespace.
16993 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
16995 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
16996 cortex-a17, and cortex-a17.cortex-a7.
16998 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
17001 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
17003 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
17006 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
17007 QImode inner modes for TARGET_AVX512BW. Force mask operand
17008 to a register for AVX512F modes.
17010 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17012 * toplev.c (emit_debug_global_declarations): Do not output debug info
17013 when doing slim LTO objects.
17015 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17017 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
17018 odr_types_equivalent_p): Declare.
17019 (odr_type_p): Use gcc_checking_assert.
17020 (type_in_anonymous_namespace_p) Declare.
17021 (type_with_linkage_p): Declare.
17022 * common.opt (Wlto-type-mismatch): New warning.
17023 * ipa-devirt.c (compound_type_base): New function.
17024 (odr_or_derived_type_p): New function.
17025 (odr_types_equivalent_p): New function.
17026 (add_type_duplicate): Simplify.
17027 (type_with_linkage_p): Add hack to prevent false positives on C types
17028 (type_in_anonymous_namespace_p): Likewise.
17029 * tree.c (need_assembler_name_p): Use type_with_linkage.
17030 * tree.h (type_in_anonymous_namespace_p): Remove.
17031 * doc/invoke.texi (-Wlto-type-mismatch): Document
17033 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17035 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
17036 (verify_type): Verify STRING_FLAG.
17038 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
17041 * tree-pretty-print.c (percent_K_format): Replace locus pointer
17042 with accessor function.
17043 * tree-diagnostic.c (diagnostic_report_current_function): Use
17044 diagnostic_location function.
17045 (maybe_unwind_expanded_macro_loc): Likewise.
17046 (virt_loc_aware_diagnostic_finalizer): Likewise.
17047 (default_tree_printer): Replace locus pointer with accessor function.
17048 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
17049 (diagnostic_set_info_translated): Initialize second location.
17050 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
17051 (diagnostic_show_locus): Handle two locations. Call
17052 diagnostic_print_caret_line.
17053 (diagnostic_print_caret_line): New.
17054 (default_diagnostic_starter): Use diagnostic_location function.
17055 (diagnostic_report_diagnostic): Use diagnostic_location function.
17056 (verbatim): Do not set text.locus.
17057 * diagnostic.h (struct diagnostic_info): Remove location field.
17058 (struct diagnostic_context): Make caret_chars an array of two.
17059 (diagnostic_location): New inline.
17060 (diagnostic_expand_location): Handle two locations.
17061 (diagnostic_same_line): New inline.
17062 (diagnostic_print_caret_line): Declare.
17063 (CARET_LINE_MARGIN): New constant.
17064 * pretty-print.c (pp_printf): Do not set text.locus.
17065 (pp_verbatim): Do not set text.locus.
17066 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
17067 (struct text_info): Replace locus pointer with locations
17068 array. Add accessor functions.
17070 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
17071 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17074 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
17075 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
17076 large constants in register instead of splitting them.
17078 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
17081 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
17082 replacements in memory addresses.
17083 (get_unaligned_address): Ditto.
17085 2015-05-16 James Bowman <james.bowman@ftdichip.com>
17087 * config/ft32/*: New files for FT32 port.
17088 * doc/install.texi: Add FT32 information.
17089 * doc/invoke.texi: Add FT32 information.
17090 * doc/md.texi: Add FT32 information.
17091 * doc/contrib.texi: Self added.
17093 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
17095 PR tree-optimization/64454
17096 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
17097 (-1 - A -> ~A): Remove unnecessary condition.
17099 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
17101 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
17102 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
17103 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
17105 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
17107 * ipa-chkp.h (chkp_wrap_function): New.
17108 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
17109 (chkp_wrap_function_name): New.
17110 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
17111 to get wrapper name.
17112 * lto-cgraph.c: Include ipa-chkp.h.
17113 (input_cgraph_1): Avoid alias chain for wrappers.
17115 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
17117 PR middle-end/66134
17118 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
17119 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
17121 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17123 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
17124 (AARCH64_FL_SLOWMUL): Delete.
17125 (AARCH64_FL_CRC): Redefine to 1<<3.
17126 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
17128 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17130 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
17133 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17135 * config/alpha/alpha.md (extendqidi2): Use general_operand
17136 instead of some_operand for operand[1] predicate.
17137 (extendhidi2): Ditto.
17138 (cbranchdi4): Use general_operand instead of some_operand
17139 for operand[1] and operands[2] predicates.
17140 (cstoredi4): Ditto.
17141 * config/alpha/predicates.md (some_operand): Remove unused predicate.
17142 (some_ni_operand): Ditto.
17144 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17146 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
17147 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
17148 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
17149 low part of the constant using alpha_emit_set_const_1.
17150 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
17152 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
17154 * varasm.c (output_constant_pool_1): Pass down alignment from
17155 constant pool entry's descriptor to output_constant_pool_2.
17156 (output_object_block): Add comment prior to call to
17157 output_constant_pool_1.
17159 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
17161 PR rtl-optimization/65862
17162 * target.def (ira_change_pseudo_allocno_class): New hook.
17163 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
17165 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
17166 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
17168 * ira-costs.c (find_costs_and_classes): Call the hook and change
17169 classes when it is necessary.
17170 * doc/tm.texi: Update.
17172 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
17174 * config/i386/i386.md (sibcall_memory): Check that register with
17175 callee address is not also used as one of the arguments, instead
17176 of checking that it is not live after the sibcall.
17177 (sibcall_pop_memory): Ditto.
17178 (sibcall_value_memory): Ditto.
17179 (sibcall_value_pop_memory): Ditto.
17181 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
17183 * generic-match-head.c (types_match): Handle non-types.
17184 * gimple-match-head.c (types_match): Likewise.
17185 * match.pd: Remove unnecessary TREE_TYPE for types_match.
17187 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
17189 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
17190 (csneg3<mode>_insn): Enable expansion of pattern.
17192 2015-05-14 Nick Clifton <nickc@redhat.com>
17194 * config/rl78/rl78.c (rl78_select_section): Select the correct
17195 default section based upon the category of the decl.
17197 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17199 PR rtl-optimization/30967
17200 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
17201 destination mode for the cost of scc patterns.
17203 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17205 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
17206 using SWIM248 mode iterator.
17207 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
17208 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
17209 for operand[2] constraint.
17210 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
17212 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17214 PR middle-end/66133
17215 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
17216 make sure it is never noreturn, even when the task body does not
17218 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
17219 right before GIMPLE_OMP_RETURN.
17220 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
17221 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
17222 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
17224 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17226 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
17227 * tree-ssa-math-opts.c: Include params.h
17228 (pow_synth_sqrt_info): New struct.
17229 (representable_as_half_series_p): New function.
17230 (get_fn_chain): Likewise.
17231 (print_nested_fn): Likewise.
17232 (dump_fractional_sqrt_sequence): Likewise.
17233 (dump_integer_part): Likewise.
17234 (expand_pow_as_sqrts): Likewise.
17235 (gimple_expand_builtin_pow): Use above to attempt to expand
17236 pow as series of square roots. Removed now unused variables.
17238 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17240 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
17241 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
17242 Remove *p0 and *p1 arguments. Rewrite function.
17243 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
17244 (alpha_split_const_mov): Update calls to alpha_extract_integer and
17245 alpha_emit_set_long_const.
17246 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
17247 (alpha_output_mi_thunk_osf): Ditto.
17248 * config/alpha/alpha.md (movti): Do not check operands[1]
17251 2015-05-13 Richard Biener <rguenther@suse.de>
17253 PR tree-optimization/66129
17254 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
17256 (vect_schedule_slp_instance): Fix typo.
17258 2015-05-13 David Malcolm <dmalcolm@redhat.com>
17260 * common.opt (fdump-internal-locations): New option.
17261 * input.c: Include diagnostic-core.h.
17262 (get_end_location): New function.
17263 (write_digit): New function.
17264 (write_digit_row): New function.
17265 (dump_location_range): New function.
17266 (dump_labelled_location_range): New function.
17267 (dump_location_info): New function.
17268 * input.h (dump_location_info): New prototype.
17269 * toplev.c (compile_file): Handle flag_dump_locations.
17271 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
17273 * gimple-expr.h (is_gimple_constant): Reorder.
17274 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
17276 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17278 * combine.c (simplify_set): When generating a CC set, if the
17279 source already is in the correct mode, do not wrap it in a
17280 compare. Simplify the rest of that code.
17282 2015-05-13 Richard Biener <rguenther@suse.de>
17284 PR tree-optimization/66123
17285 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
17288 2015-05-13 Richard Biener <rguenther@suse.de>
17290 PR middle-end/66110
17291 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
17293 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
17295 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17297 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
17298 * aclocal.m4: Regenerated with automake-1.11.6.
17300 2015-05-13 Tom de Vries <tom@codesourcery.com>
17302 PR tree-optimization/66010
17303 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
17304 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
17305 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
17306 and rval based on do_deref.
17308 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17311 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
17312 link time constants into adress expressions and therefore set
17315 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17318 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
17319 Use SWI248 iterator instead of SWI.
17320 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
17321 Use eq_attr "alternative" "0" instead of match_test in
17322 length_immediate attribute computation.
17323 (*mulvhi4, *mulvhi4_1): New define_insns.
17326 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
17327 SIGNED to get precision of non-negative value.
17329 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17332 * function.c (diddle_return_value_1): Process bounds first.
17333 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
17336 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17338 PR rtl-optimization/64616
17339 * loop-invariant.c (can_move_invariant_reg): New.
17340 (move_invariant_reg): Call above new function to decide whether
17341 instruction can just be moved, skipping creation of temporary
17344 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17346 PR target/pr66047.c
17347 * i386.c (ix86_function_sseregparm): Only return -1 if local function
17348 with implied regparm is called from -mno-sse function.
17349 (init_cumulative_args): Output error if ix86_function_sseregparm
17350 return -1 and SSE register would be needed.
17351 (function_arg_advance_32): Likewise.
17352 (function_arg_32): Likewise.
17353 * i386.h (ix86_args): Add decl field.
17355 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17358 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
17359 inlines across optimization boundary.
17361 2015-05-12 Jason Merrill <jason@redhat.com>
17363 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
17364 string literal and macro name.
17366 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
17368 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
17369 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
17370 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
17372 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17374 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
17375 (-Wmisleading-indentation): New option.
17376 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
17378 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
17380 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
17381 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
17382 (alpha_extract_integer): Ditto.
17383 (alpha_legitimate_constant_p): Ditto.
17384 (alpha_split_tmode_pair): Ditto.
17385 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
17386 (alpha_expand_mov): Ditto.
17387 (print_operand): Remove handling of 'H' modifier.
17388 <case 'm'>: Remove CONST_DOUBLE handling.
17389 (summarize_insn): Handle CONST_WIDE_INT.
17390 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
17392 (movti): Handle CONST_WIDE_INT.
17393 * config/alpha/constraints.md ('H'): Remove constraint definition.
17394 ('G'): Do not match MODE_FLOAT class.
17395 * config/alpha/predicates.md (const0_operand): Also match
17397 (non_add_const_operand): Ditto.
17398 (non_zero_const_operand): Ditto.
17399 (some_operand): Ditto.
17400 (input_operand): Ditto. Handle CONST_WIDE_INT.
17401 (and_operand): Do not match const_double.
17402 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
17404 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
17407 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
17408 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
17409 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
17410 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
17411 is_mm_seq_cst, is_mm_sync): New accessor functions.
17412 * builtins.c (expand_builtin_sync_operation,
17413 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
17414 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
17415 (get_memmodel, expand_builtin_atomic_compare_exchange,
17416 expand_builtin_atomic_load, expand_builtin_atomic_store,
17417 expand_builtin_atomic_clear): Use new accessor routines.
17418 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
17419 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
17420 (maybe_emit_sync_lock_test_and_set): Use new accessors and
17421 MEMMODEL_SYNC_ACQUIRE.
17422 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
17423 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
17424 expand_atomic_store): Use new accessors.
17425 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
17426 * tsan.c (instrument_builtin_call): Update check for memory model beyond
17427 final enum to use MEMMODEL_LAST.
17428 * c-family/c-common.c: Use new accessor for memmodel_base.
17429 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
17431 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
17432 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
17433 mem_thread_fence, *dmb): Likewise.
17434 * config/alpha/alpha.c (alpha_split_compare_and_swap,
17435 alpha_split_compare_and_swap_12): Likewise.
17436 * config/arm/arm.c (arm_expand_compare_and_swap,
17437 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
17438 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
17439 atomic_loaddi): Likewise.
17440 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
17442 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
17443 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
17445 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
17446 atomic_store<mode>, atomic_compare_and_swap<mode>,
17447 atomic_exchange<mode>): Use new accessors.
17448 * config/mips/mips.c (mips_process_sync_loop): Likewise.
17449 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
17450 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
17451 rs6000_post_atomic_barrier): Add new cases.
17452 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
17453 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
17454 (atomic_load<mode>): Add new cases and use new accessors.
17455 (store_quadpti): Add new cases.
17456 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
17458 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
17459 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
17462 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17464 * ipa-devirt.c (type_with_linkage_p): New function.
17465 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
17467 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
17468 (can_be_name_hashed_p): Simplify.
17469 (hash_odr_name): Check that type has linkage before checking if it is
17471 (types_same_for_odr): Likewise.
17472 (odr_name_hasher::equal): Likewise.
17473 (odr_subtypes_equivalent_p): Likewise.
17474 (warn_types_mismatch): Likewise.
17475 (get_odr_type): Likewise.
17476 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
17477 * ipa-utils.h (odr_type_p): Move offline.
17478 * tree.c (need_assembler_name_p): Fix handling of types
17480 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
17482 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17484 * timevar.c (timevar_enable): Delete in favor of...
17485 (g_timer): New global.
17486 (struct timevar_def): Move to timevar.h inside class timer.
17487 (struct timevar_stack_def): Likewise.
17488 (timevars): Delete global in favor of field "m_timevars" within
17489 class timer in timevar.h
17490 (stack): Likewise, in favor of field "m_stack".
17491 (unused_stack_instances): Likewise, in favor of field
17492 "m_unused_stack_instances".
17493 (start_time): Likewise, in favor of field "m_start_time".
17494 (get_time): Eliminate check for timevar_enable.
17495 (timer::timer): New function, built from part of timevar_init.
17496 (timevar_init): Rewrite idempotency test from using
17497 "timevar_enable" bool to using dynamic allocation of "g_timer".
17498 Move rest of implementation into timer's constructor.
17499 (timevar_push_1): Rename to...
17500 (timer::push): ...this, adding "m_" prefixes to variables that
17501 are now fields of timer.
17502 (timevar_pop_1): Likewise, rename to...
17503 (timer::pop): ...this, and add "m_" prefixes.
17504 (timevar_start): Replace test for "timevar_enable" with one for
17505 "g_timer", and move bulk of implementation to...
17506 (timer::start): ...here, adding "m_" prefixes.
17507 (timevar_stop): Likewise, from here...
17508 (timer::stop): ...to here.
17509 (timevar_cond_start): Likewise, from here...
17510 (timer::cond_start): ...to here.
17511 (timevar_cond_stop): Likewise, from here...
17512 (timer::cond_stop): ...to here.
17513 (validate_phases): Rename to...
17514 (timer::validate_phases): ...this, and add "m_" prefixes. Make
17515 locals "total" and "tv" const.
17516 (timevar_print): Rename to...
17517 (timer::print): ...this, and add "m_" prefixes. Make locals
17518 "total" and "tv" const. Eliminate test for timevar_enable.
17519 * timevar.h (timevar_enable): Eliminate.
17520 (g_timer): New declaration.
17521 (timevar_push_1): Eliminate.
17522 (timevar_pop_1): Eliminate.
17523 (timevar_print): Eliminate.
17524 (class timer): New class.
17525 (timevar_push): Rewrite to use g_timer.
17526 (timevar_pop): Likewise.
17527 * toplev.c (toplev::~toplev): Likewise.
17529 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
17531 * arm-protos.h (arm_sched_autopref): Delete.
17532 (tune_params): Re-organize, use enums for flag values.
17533 (FUSE_OPS): New macro.
17534 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
17535 (ARM_PREFETCH_BENEFICIAL): Likewise.
17536 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
17537 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
17538 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
17539 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
17540 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
17541 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
17542 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
17543 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
17545 (arm_option_override, thumb2_reorg, arm_print_tune_info)
17546 (aarch_macro_fusion_pair_p): Update uses of current_tune.
17547 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
17549 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
17551 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
17554 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
17555 Sandra Loosemore <sandra@codesourcery.com>
17557 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
17559 (REG_CLASS_NAMES): Add "IJMP_REGS".
17560 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
17561 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
17562 use new "c" register constraint.
17563 * config/nios2/constraint.md (c): New register constraint
17564 corresponding to IJMP_REGS.
17566 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17568 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
17569 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
17570 define_splits): Delete, revamp, transmogrify into ...
17571 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17572 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17573 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17576 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17578 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
17579 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
17581 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17583 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
17584 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
17585 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
17586 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
17587 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
17588 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
17589 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
17590 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
17591 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
17592 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17593 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
17594 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
17595 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
17596 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
17597 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
17598 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
17599 and 30 corresponding splitters): Delete.
17601 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17603 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
17606 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17608 * combine.c (recog_for_combine_1): New function, factored out
17609 from recog_for_combine.
17610 (change_zero_ext): New function.
17611 (recog_for_combine): If recog fails, try again with the pattern
17612 modified by change_zero_ext; if that still fails, restore the
17615 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
17617 * combine.c (get_undo_marker): New function.
17618 (undo_to_marker): New function, largely factored out from ...
17619 (undo_all): ... this. Adjust.
17621 2015-05-12 Richard Biener <rguenther@suse.de>
17623 PR tree-optimization/66101
17624 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
17625 fixup if we turn a loop exit edge to a fallthru edge.
17627 2015-05-12 Richard Biener <rguenther@suse.de>
17629 PR tree-optimization/37021
17630 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
17631 (SLP_TREE_TWO_OPERATORS): New define.
17632 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
17633 SLP_TREE_TWO_OPERATORS.
17634 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
17636 (vect_build_slp_tree): Adjust.
17637 (vect_analyze_slp_cost_1): Likewise.
17638 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
17639 emitting two vector stmts and mixing the results.
17641 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
17643 * call.c (print_z_candidates): Remove dead code.
17645 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17647 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
17648 and zEC12_simple_fp.
17649 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
17652 2015-05-12 Tom de Vries <tom@codesourcery.com>
17654 PR tree-optimization/66010
17655 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
17657 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
17658 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
17659 va_lists are passed, and remove corresponding handling.
17660 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
17661 do_deref argument to ifn_va_arg.
17662 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
17665 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17668 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
17669 REG before taking its REGNO.
17671 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17673 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
17674 rsp->sign_bit_copies and rsp->nonzero_bits into ...
17675 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
17676 present to get more accurate information about the number of sign bit
17677 copies and non zero bits.
17679 2015-05-12 Richard Biener <rguenther@suse.de>
17681 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
17682 do not allow unrolling.
17684 2015-05-11 Richard Henderson <rth@redhat.com>
17686 * config/i386/i386-modes.def (CCP): New.
17687 * config/i386/i386.c (put_condition_code): Handle it.
17688 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
17690 2015-05-11 Richard Henderson <rth@redhat.com>
17692 * target.def (md_asm_clobbers): Replace with...
17693 (md_asm_adjust): this.
17694 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
17695 (TARGET_MD_ASM_ADJUST): New.
17696 * tm.texi: Rebuild.
17697 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
17698 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
17699 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
17701 * cfgexpand.c (check_operand_nalternatives): Accept vector of
17702 constraints instead of lists of outputs and inputs.
17703 (expand_asm_stmt): Save and restore input_location around the
17704 body of the function. Move asm data into vectors instead of
17705 building tree lists. Generate cleanup sequences as needed,
17706 rather than waiting til the end. Use new md_asm_adjust hook.
17708 * config/vxworks.c: Include vec.h before target.h.
17709 * gimple.c: Likewise.
17710 * incpath.c: Likewise.
17711 * mode-switching.c: Likewise.
17713 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
17714 (cris_md_asm_adjust): this.
17715 (TARGET_MD_ASM_CLOBBERS): Remove.
17716 (TARGET_MD_ASM_ADJUST): New.
17717 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
17718 (ix86_md_asm_adjust): this.
17719 (TARGET_MD_ASM_CLOBBERS): Remove.
17720 (TARGET_MD_ASM_ADJUST): New.
17721 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
17722 (mn10300_md_asm_adjust): this.
17723 (TARGET_MD_ASM_CLOBBERS): Remove.
17724 (TARGET_MD_ASM_ADJUST): New.
17725 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
17726 (rs6000_md_asm_adjust): this.
17727 (TARGET_MD_ASM_CLOBBERS): Remove.
17728 (TARGET_MD_ASM_ADJUST): New.
17729 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
17730 (visium_md_asm_adjust): this.
17731 (TARGET_MD_ASM_CLOBBERS): Remove.
17732 (TARGET_MD_ASM_ADJUST): New.
17734 2015-05-11 Richard Henderson <rth@redhat.com>
17736 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
17737 if noutputs is zero.
17738 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
17740 * cfgexpand.c (expand_asm_operands): Merge into...
17741 (expand_asm_stmt): ... here.
17743 * cfgexpand.c (expand_asm_operands): Don't call
17744 resolve_asm_operand_names.
17745 * stmt.c (resolve_asm_operand_names): Clarify block comment.
17747 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
17749 * dwarf2out.c (gen_member_die): Sanity check that we access
17750 TYPE_MAIN_VARIANT for TYPE_METHODS.
17751 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
17752 checking TYPE_METHODS.
17753 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
17755 (build_distinct_type_copy): Clear TYPE_METHODS.
17756 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
17757 (verify_type): Allow TYPE_METHODS to be error_mark_node.
17758 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
17760 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
17762 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
17763 (emit_pattern_before_setloc): Likewise.
17765 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17767 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
17768 for define_peephole2s.
17769 (get_peephole2_pattern): New function.
17770 (main): Use it. Call validate_pattern.
17772 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17774 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
17775 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
17776 (Last callee saved reg is different for AVR_TINY architecture)
17778 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17780 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
17781 when looking for memory references.
17783 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17786 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
17787 via function pointers.
17789 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
17791 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
17792 indirect call by forcing address into a pseudo with -fno-plt.
17793 * common.opt (flag_plt): New option.
17794 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
17795 ([-fno-plt]): Document.
17797 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
17800 * config/rs6000/option-defaults.h: Add space between string literal
17803 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
17805 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
17806 accross ARM targets.
17808 2015-05-11 Christian Bruel <christian.bruel@st.com>
17810 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
17811 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
17813 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
17815 PR rtl-optimization/66076
17816 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
17817 Don't grow the heap array if it is already big enough from a
17818 previous iteration.
17820 2015-05-11 Christian Bruel <christian.bruel@st.com>
17822 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
17823 (is_called_in_ARM_mode): Remove.
17824 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
17825 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
17826 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
17827 arm_declare_function_name.
17829 2015-05-11 Christian Bruel <christian.bruel@st.com>
17831 * config/arm/arm.c (arm_option_override): Reoganized and split into :
17832 (arm_option_params_internal); New function.
17833 (arm_option_check_internal): New function.
17834 (arm_option_override_internal): New function.
17835 (thumb_code, thumb1_code): Remove.
17836 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
17837 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
17838 (thumb_code, thumb1_code): Remove.
17839 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
17841 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
17843 * config/alpha/alpha.c (alpha_emit_set_const_1)
17844 (alpha_emit_set_long_const, alpha_extract_integer)
17845 (alpha_legitimate_constant_p, alpha_split_const_mov)
17846 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
17847 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17848 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
17850 * config/alpha/predicates.md (mode_mask_operand): Do not match
17852 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17853 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
17854 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
17855 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17856 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
17858 2015-05-11 Jakub Jelinek <jakub@redhat.com>
17861 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
17862 default_binds_local_p_2.
17863 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
17864 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
17866 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17868 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
17870 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17872 Patch by Richard Biener
17873 * coverage.c (coverage_obj_init): Delay building of type variant
17874 until the type is finished.
17876 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17878 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
17879 mismatch between C and C++ type; compoare correctly ARG_TYPES
17880 for non-prototypes and output correctly parameter index for METHOD_TYPE.
17881 (odr_types_equivalent_p): Fix wording of warning about attributes;
17882 it is OK to match prototype and non-prototype.
17884 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17886 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
17887 TYPE_ARG_TYPES list.
17888 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
17889 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
17891 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
17893 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
17894 * tree.h (is_lang_specific): Constify.
17896 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
17898 PR tree-optimization/64454
17899 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
17902 2015-05-08 Jason Merrill <jason@redhat.com>
17904 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
17905 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
17906 config/darwin.h, config/darwin9.h, config/elfos.h,
17907 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
17908 config/microblaze/microblaze.h, config/mips/mips.h,
17909 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
17910 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
17911 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
17912 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
17913 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
17914 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
17915 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
17916 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
17917 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
17918 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
17919 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
17920 between string literal and macro name.
17922 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17924 * jump.c: Change argument types to rtx_insn *.
17927 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17929 * lra-constraints.c: Change argument type to rtx_insn *.
17931 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17933 * df-problems.c: Change argument type to rtx_insn *.
17935 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17937 * combine.c: Change argument type to rtx_insn *.
17939 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17942 * rtlanal.c: Change argument type to rtx_insn *.
17944 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17946 * sched-deps.c: Change argument types to rtx_insn *.
17947 * sched-int.h: Adjust.
17949 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17951 * dwarf2cfi.c: Change argument type to rtx_insn *.
17953 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17955 * ira.c (decrease_live_ranges_number): Changetype of local
17956 variable to rtx_insn *.
17957 * recog.c: Change argument types to rtx_insn *.
17960 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17962 * reorg.c: Change argument types to rtx_insn *.
17964 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17966 * ira-color.c: Change argument types to rtx_insn *.
17967 * lra-eliminations.c: Likewise.
17970 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17972 * gcse.c: Change argument types to rtx_insn *.
17974 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17976 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
17978 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17980 * emit-rtl.c (emit_debug_insn_before): Change argument type to
17984 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17986 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
17989 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17991 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
17994 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17996 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
17999 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18001 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
18004 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18006 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
18010 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18012 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
18016 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18018 * except.c (can_nonlocal_goto): Change type of argument to
18022 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18024 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
18027 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18029 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
18030 * cfgrtl.c (can_delete_label_p): Adjust.
18033 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18035 * reorg.c (stop_search_p): Change argument to rtx_insn *.
18037 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18039 * except.c (make_reg_eh_region_note): Change argument to
18041 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
18042 * except.h: Adjust.
18044 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18046 * mode-switching.c (commit_mode_sets): Change type of local
18047 variable from rtx to rtx_insn *.
18049 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
18051 * doc/install.texi (--enable-languages): Add missing jit and lto info.
18052 Add ^ to grep command.
18053 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
18054 arg to last gimple_simplify declaration. Add missing gimple_build
18055 declaration for built-in function case with four tree args.
18057 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18058 Szabolcs Nagy <szabolcs.nagy@arm.com>
18060 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
18061 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
18062 (GNU_USER_DYNAMIC_LINKERN32): Update.
18064 2015-05-08 Richard Biener <rguenther@suse.de>
18066 PR tree-optimization/66036
18067 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18068 Handle strided group loads.
18069 (vect_verify_datarefs_alignment): Likewise.
18070 (vect_enhance_data_refs_alignment): Likewise.
18071 (vect_analyze_group_access): Likewise.
18072 (vect_analyze_data_ref_access): Likewise.
18073 (vect_analyze_data_ref_accesses): Likewise.
18074 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
18075 (vectorizable_load): Likewise.
18077 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
18079 * config/rs6000/rs6000.md: Require operand inequality in one
18082 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
18083 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18085 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
18087 * config/rx/rx.md (movdi, movdf): Likewise.
18088 Likewise for define_peephole2s.
18090 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18092 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
18093 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
18094 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
18095 vtst_u64): Rewrite using gcc vector extensions.
18097 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18099 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
18100 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
18102 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18104 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
18106 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18108 * config/glibc-stdint.h (OPTION_MUSL): Define.
18109 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
18110 Change the definition based on OPTION_MUSL for 64 bit targets.
18111 * config/linux.h (OPTION_MUSL): Redefine.
18112 * config/alpha/linux.h (OPTION_MUSL): Redefine.
18113 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
18114 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
18116 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18117 Szabolcs Nagy <szabolcs.nagy@arm.com>
18119 * config.gcc (LIBC_MUSL): New tm_defines macro.
18120 * config/linux.h (OPTION_MUSL): Define.
18121 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
18122 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
18123 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18124 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18125 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18126 * config/linux.opt (mmusl): New option.
18127 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
18128 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18129 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18130 * configure: Regenerate.
18132 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
18133 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18136 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
18137 * config/i386/knetbsd-gnu64.h: New file.
18139 2015-05-08 Marek Polacek <polacek@redhat.com>
18142 * doc/invoke.texi: Document -Woverride-init-side-effects.
18144 2015-05-07 Marek Polacek <polacek@redhat.com>
18147 * doc/invoke.texi: Document -Wshift-negative-value.
18149 2015-05-06 Aditya Kumar <hiraditya@msn.com>
18151 * gcov-tool.c (do_merge): Refactore to remove int ret.
18152 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
18153 !type == FUNC to type != FUNC.
18154 * reload.h (struct target_reload): Changee to type of
18155 x_spill_indirect_levels from bool to unsigned char.
18157 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
18159 * rtl.h (always_void_p): New function.
18160 * gengenrtl.c (always_void_p): Likewise.
18161 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
18162 with code foo are always VOIDmode.
18163 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
18164 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
18165 compare-elim.c, config/aarch64/aarch64.c,
18166 config/aarch64/aarch64.md, config/alpha/alpha.c,
18167 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
18168 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
18169 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
18170 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18171 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
18172 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
18173 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
18174 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
18175 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
18176 config/ia64/vect.md, config/iq2000/iq2000.c,
18177 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
18178 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
18179 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
18180 config/mep/mep.c, config/microblaze/microblaze.c,
18181 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
18182 config/mn10300/mn10300.c, config/msp430/msp430.c,
18183 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
18184 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
18185 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
18186 config/rs6000/altivec.md, config/rs6000/rs6000.c,
18187 config/rs6000/rs6000.md, config/rs6000/vector.md,
18188 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
18189 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
18190 config/sh/sh.md, config/sh/sh_treg_combine.cc,
18191 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
18192 config/spu/spu.md, config/stormy16/stormy16.c,
18193 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
18194 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
18195 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
18196 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
18197 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
18198 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
18199 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
18200 var-tracking.c: Update calls accordingly.
18202 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18205 PR middle-end/54303
18206 * varasm.c (function_mergeable_rodata_prefix): New function.
18207 (mergeable_string_section): Use it.
18208 (mergeable_constant_section): Use it.
18210 2015-05-07 Jeff Law <law@redhat.com>
18213 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18214 simplifier to narrow arithmetic.
18215 * generic-match-head.c: (types_match, single_use): New functions.
18216 * gimple-match-head.c: (types_match, single_use): New functions.
18218 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18220 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
18223 2015-05-07 Richard Biener <rguenther@suse.de>
18225 PR tree-optimization/66002
18226 * passes.def: Schedule another pass_merge_phi after ifcombine, right
18229 2015-05-07 Marek Polacek <polacek@redhat.com>
18230 Martin Uecker <uecker@eecs.berkeley.edu>
18232 * doc/invoke.texi: Document -fsanitize=bounds-strict.
18233 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
18234 into SANITIZE_NONDEFAULT.
18235 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
18237 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
18240 * config/alpha/alpha.c (alpha_override_options_after_change): New.
18241 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
18242 (alpha_override_options): Move align_loops, align_jumps and
18243 align_functions handling into alpha_override_options_after_change.
18245 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
18246 Chris Jones <chrisj@nvidia.com>
18247 Joshua Conner <jconner@nvidia.com>
18249 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
18250 linking of crtfastmath.o.
18251 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
18253 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18255 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
18256 (cstore<mode>4_unsigned_imm): New expander.
18257 (cstore<mode>4): Remove empty constraint strings. Use the new
18260 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
18263 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
18266 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18268 * config/aarch64/geniterators.sh: Use standard BRE in sed.
18270 2015-05-06 Alan Modra <amodra@gmail.com>
18273 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
18274 (UNSPEC_NOP): Define.
18275 (reload_vsx_from_gpr<mode>): Add missing DONE.
18276 (reload_gpr_from_vsx<mode>): Likewise.
18277 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
18278 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
18280 2015-05-06 Christian Bruel <christian.bruel@st.com>
18283 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
18284 align_jumps, align_functions into aarch64_override_options_after_change.
18286 2015-05-06 Richard Biener <rguenther@suse.de>
18288 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
18289 vect_transform_slp_perm_load to check if we support a permutation
18290 for basic-block vectorization.
18292 2015-05-06 Nick Clifton <nickc@redhat.com>
18294 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
18295 used, even if it is not being used as a frame pointer.
18297 2015-05-05 Jason Merrill <jason@redhat.com>
18299 * dwarf2out.c (gen_member_die): Don't emit anything for an
18300 anonymous class constructor.
18302 2015-05-05 David Malcolm <dmalcolm@redhat.com>
18304 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
18305 that it reflects the block structure.
18306 (afdo_propagate_edge): Likewise.
18307 (afdo_calculate_branch_prob): Likewise.
18308 (afdo_annotate_cfg): Likewise.
18309 * cfgcleanup.c (equal_different_set_p): Likewise.
18310 (try_crossjump_to_edge): Likewise.
18311 * cgraph.c (cgraph_node::verify_node): Likewise.
18312 * cgraphunit.c (expand_all_functions): Likewise.
18313 * config/i386/i386.c (ix86_expand_copysign): Likewise.
18314 (exact_dependency_1): Likewise.
18315 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
18316 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
18317 * gensupport.c (process_define_subst): Likewise.
18318 * lto-wrapper.c (merge_and_complain): Likewise.
18319 * tree-if-conv.c (if_convertible_bb_p): Likewise.
18320 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
18321 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
18322 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18323 * tree-vect-loop.c (vectorizable_reduction): Likewise.
18324 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
18325 * tree-vect-stmts.c (vectorizable_shift): Likewise.
18326 * tree-vrp.c (vrp_finalize): Likewise.
18327 * tree.c (variably_modified_type_p): Likewise.
18329 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
18331 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
18332 on darwin12 and later.
18333 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
18334 file to pass -rdynamic on darwin12 and later.
18335 * config/darwin.opt (rdynamic): Add.
18337 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18339 * doc/extend.texi (C Extensions): Update menu for moved Variable
18340 Attributes and Type Attributes sections.
18342 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18345 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
18346 if rep_8byte stringop strategy was specified for 32-bit target.
18348 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
18351 * config/i386/i386.md (vector convert to float spltiter): Check for
18352 xmm16+, when splitting scalar float conversion.
18353 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
18355 2015-05-05 Nick Clifton <nickc@redhat.com>
18357 * config/msp430/msp430-opts.h (enum msp430_regions): New.
18358 * config/msp430/msp430.c (msp430_override_options): Complain if
18359 -mcode-region or -mdata-region is used on a non MSP430X.
18360 (msp430_section_attr): New function. Checks lower, upper and
18362 (msp430_attribute_table): Add lower, upper and either.
18363 (gen_prefix): New function. Generates a prefix for a section
18365 (msp430_select_section): New function - handles the choice of
18366 section for an object. Takes into account memory region
18367 attributes and options.
18368 (msp430_function_section): Use gen_prefix.
18369 (TARGET_SECTION_TYPE_FLAGS): Define.
18370 (msp430_section_type_flags): New function.
18371 (TARGET_ASM_UNIQUE_SECTION): Define.
18372 (msp430_unique_section): New function.
18373 (msp430_output_aligned_decl_common): New function.
18374 (msp430_do_not_relax_short_jumps): New function.
18375 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
18377 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18378 * config/msp430/msp430-protos.h
18379 (msp430_do_not_relax_short_jumps): New prototype.
18380 (msp430_output_aligned_decl_common): New prototype.
18381 * config/msp430/msp430.md (length): New attribute.
18382 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
18383 then use a long code sequence for short jumps.
18384 * config/msp430/msp430.opt (mcode-region): New.
18385 (mdata-region): New.
18386 * doc/invoke.texi: Document new options.
18387 * doc/extend.texi: Document new attributes.
18389 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18391 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
18392 (tune_params): Add field branch_costs.
18393 (aarch64_branch_cost): Declare.
18394 * gcc/config/aarch64.c (generic_branch_cost): New.
18395 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
18396 (cortexa53_tunings): Likewise.
18397 (cortexa57_tunings): Likewise.
18398 (thunderx_tunings): Likewise.
18399 (xgene1_tunings): Likewise.
18400 (aarch64_branch_cost): Define.
18401 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
18403 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18405 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
18406 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
18407 * config/i386/i386.md: Ditto.
18408 * config/i386/winnt.c: Ditto.
18410 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18412 * doc/extend.texi (__atomic Builtins): Move implementation details
18413 to the end of the description, rewrite opening paragraphs, state
18414 difference with __sync builtins, state C11/C++11 assumptions,
18415 weaken itemized descriptions, add explanation of memory model
18416 behaviour, expand description of compare-exchange, simplify text.
18418 2015-05-05 Renlin Li <renlin.li@arm.com>
18420 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
18422 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
18424 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
18425 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18426 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
18427 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18428 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
18429 * configure: Regenerate.
18430 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
18431 * doc/install.texi (aarch64*-*-*): Document new
18432 --enable-fix-cortex-a53-843419 option.
18433 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
18434 and -mno-fix-cortex-a53-843419 options.
18436 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18439 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
18441 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
18443 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
18444 fix overactive TYPE_MIN_VALUE check and add FIXME for type
18445 compatibility problems.
18447 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18449 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
18451 (cbranchsi4_reg): New.
18452 * config/microblaze/microblaze.c
18453 (microblaze_expand_conditional_branch_reg): New.
18454 * config/microblaze/microblaze-protos.h
18455 (microblaze_expand_conditional_branch_reg): New prototype.
18457 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18459 * config/microblaze/microblaze.md (peephole2): New.
18461 2015-05-04 Jeff Law <law@redhat.com>
18464 2015-05-04 Jeff Law <law@redhat.com>
18466 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18467 simplifier to narrow arithmetic.
18468 * generic-match-head.c: (types_match, single_use): New functions.
18469 * gimple-match-head.c: (types_match, single_use): New functions.
18471 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
18474 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
18475 (split_branches): Likewise.
18477 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
18479 * common.opt (fdelete-null-pointer-checks): Init to -1.
18480 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
18481 override flag_delete_null_pointer_checks default.
18482 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
18483 behavior re address zero. Better document target-specific behavior.
18484 (-fisolate-errneous-paths-dereference): Mention relationship to
18485 -fdelete-null-pointer-checks.
18487 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18489 PR tree-optimization/65984
18490 * ubsan.c: Include tree-cfg.h.
18491 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
18492 stmt_could_throw_p test, rename can_throw variable to ends_bb.
18494 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18496 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
18497 to CONST_DOUBLE_P predicate.
18498 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
18499 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
18500 allow only operands that satisfy standard_sse_constant_p predicate.
18501 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
18502 to CONST_DOUBLE_P predicate.
18504 2015-05-04 Jeff Law <law@redhat.com>
18506 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18507 simplifier to narrow arithmetic.
18508 * generic-match-head.c: (types_match, single_use): New functions.
18509 * gimple-match-head.c: (types_match, single_use): New functions.
18511 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
18513 * config/arm/arm.c: Restore bootstrap.
18515 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18517 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
18518 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
18519 as CONST_WIDE_INT, not CONST_DOUBLE.
18520 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
18521 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
18522 (ix86_find_base_term): Do not check for CONST_DOUBLE.
18523 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
18524 (ix86_build_signbit_mask): Rewrite using wide ints.
18525 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
18526 (ix86_rtx_costs): Handle CONST_WIDE_INT.
18527 (find_constant): Ditto.
18528 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
18529 using gen_int_mode.
18530 * config/i386/predicates.md (x86_64_immediate_operand)
18531 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18532 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
18533 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18534 (const0_operand): Also match const_wide_int.
18535 (constm1_operand): Ditto.
18536 (const1_operand): Ditto.
18538 2015-05-04 Richard Biener <rguenther@suse.de>
18540 PR tree-optimization/65965
18541 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
18542 store groups at gaps.
18544 2015-05-04 Richard Biener <rguenther@suse.de>
18546 PR tree-optimization/65935
18547 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
18548 then make sure to apply that swapping to the IL.
18550 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18552 * Makefile.in (PATCHLEVEL_c): New variable.
18553 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
18554 expand the same way as if DEVPHASE_c was non-empty.
18556 2015-05-04 Kai Tietz <ktietz@redhat.com>
18559 * lto-wrapper.c (run_gcc): Open filename
18562 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
18564 * doc/extend.texi (Variable Attributes, Type Attributes): Move
18565 sections up in file, to immediately after the Function Attributes
18568 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
18570 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
18572 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18574 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
18575 (insert_partition_copy_on_edge): Adjust.
18576 (insert_rtx_to_part_on_edge): Likewise.
18577 (insert_part_to_rtx_on_edge): Likewise.
18579 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18581 * function.c (set_return_jump_label): Change type of argument to
18583 * function.h (set_return_jump_label): Adjust.
18585 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18587 * reload.h (struct reg_equivs_t): Change type of init to
18589 * ira.c (fix_reg_equiv_init): Adjust.
18590 * reload1.c (eliminate_regs_1): Likewise.
18591 (init_eliminable_invariants): Likewise.
18593 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18595 * cselib.c (fp_setter_insn): Take a rtx_insn *.
18596 * cselib.h (fp_setter_insn): Adjust.
18598 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18600 * recog.c (struct validate_replace_src_data): Change type of
18601 insn field to rtx_insn *.
18602 (validate_replace_src_group): Change type of argument to rtx_insn *.
18603 * recog.h (validate_replace_src_group): Adjust.
18605 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18607 * haifa-sched.c: Change the type of some variables to rtx_insn *.
18608 * sched-deps.c: Likewise.
18609 * sched-int.h: Likewise.
18610 * sched-rgn.c: Likewise.
18611 * sel-sched.c: Likewise.
18613 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18616 * config/i386/i386.c: Change the type of some arguments to
18618 * config/arm/arm.c: Likewise.
18620 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18622 * lra-constraints.c: Change type of some arguments to rtx_insn *.
18624 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18626 * regcprop.c (kill_autoinc_value): Change type of argument to
18629 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18631 * genrecog.c (print_subroutine): Adjust.
18632 * recog.c (get_bool_attr_mask_uncached): Likewise.
18633 * recog.h (struct recog_data_d): Change the type of insn to
18636 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18638 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
18640 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18642 * df-problems.c (df_set_note): Change type of argument to
18645 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18647 * builtins.c (expand_builtin_trap): Change type of local
18648 variable to rtx_insn *.
18649 (add_sched_insns_for_speculation): Likewise.
18650 (ix86_emit_save_regs): Likewise.
18651 (get_scratch_register_on_entry): Likewise.
18652 (ix86_emit_restore_reg_using_pop): Likewise.
18653 (ix86_emit_leave): Likewise.
18654 (ix86_emit_restore_regs_using_mov): Likewise.
18655 (ix86_expand_epilogue): Likewise.
18657 (rl78_alloc_physical_registers_umul): Likewise.
18658 * cselib.c (discard_useless_locs): Likewise.
18659 (cselib_invalidate_regno): Likewise.
18660 (cselib_invalidate_mem): Likewise.
18661 * function.c (expand_function_start): Likewise.
18662 (emit_use_return_register_into_block): Likewise.
18663 * gcse.c: Likewise.
18664 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
18665 * ifcvt.c (noce_get_alt_condition): Likewise.
18666 * loop-doloop.c (doloop_condition_get): Likewise.
18667 * lra-constraints.c (inherit_in_ebb): Likewise.
18668 * modulo-sched.c (sms_schedule_by_order): Likewise.
18669 * recog.c (next_insn_tests_no_inequality): Likewise.
18670 * reorg.c (emit_delay_sequence): Likewise.
18671 (update_reg_dead_notes): Likewise.
18672 (fix_reg_dead_note): Likewise.
18673 (fill_slots_from_thread): Likewise.
18674 (delete_computation): Likewise.
18676 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
18678 * doc/extend.texi (Variable Attributes): Add menu and proper
18679 @nodes to subsections. Move Microsoft Windows attributes to
18680 their own subsection.
18681 (Type Attributes): Reorganize introduction to remove duplicate
18682 list of attributes. Add menu and proper @nodes to subsections.
18683 Alphabetize the main table of common attributes.
18685 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
18687 * match.pd: New simplification patterns.
18688 (x + (x & 1)) -> ((x + 1) & ~1)
18689 (x & ~(x & y)) -> ((x & ~y))
18690 (x | ~(x | y)) -> ((x | ~y))
18692 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18694 * target.def (attribute_table): Mention that struct attribute_spec
18695 is defined in tree-core.h rather than tree.h
18696 * doc/tm.texi: Regenerate.
18698 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
18700 * genrecog.c (test): Rename to rtx_test. Update rest of file
18703 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
18705 PR translation/65959
18706 * params.h (DEFPARAM): Rename msgid to nocmsgid.
18708 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18710 * gcc/config/aarch64/aarch64-protos.h (tune_params):
18711 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
18712 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
18713 Return value depending on target.
18714 (generic_tunings): Initialize new target settings.
18715 (cortexa53_tunings): Likewise.
18716 (cortexa57_tunings): Likewise.
18717 (thunderx_tunings): Likewise.
18718 (xgene1_tunings): Likewise.
18720 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18722 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
18723 Make Cortex-A53 shift costs more accurate.
18725 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18727 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
18730 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
18732 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
18733 Calculate cost of op0 and op1 in PLUS and MINUS cases.
18735 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18737 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18738 Add cost of op0 in the compare-with-fpzero case.
18740 2015-04-30 David Malcolm <dmalcolm@redhat.com>
18742 * builtins.c (fold_builtin_1): Remove spurious second
18744 * cgraph.h (symtab_node::get_availability): Likewise.
18745 * opts.c (common_handle_option): Remove spurious second semicolon.
18746 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18747 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18749 2015-04-30 Caroline Tice <cmtice@google.com>
18751 PR gcov-profile/65929
18752 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
18753 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
18754 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
18755 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
18756 * doc/tm.texi: Regenerate.
18757 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
18758 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
18759 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
18760 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
18762 2015-04-30 Marek Polacek <polacek@redhat.com>
18764 * varasm.c (handle_cache_entry): Fix logic.
18766 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18768 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
18769 (*extrsi5_insn_uxtw_alt): Likewise.
18770 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
18771 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
18774 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18776 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
18779 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18781 * config/aarch64/aarch64.md
18782 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
18783 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
18784 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
18785 appropriately. Handle alternative EON form.
18787 2015-04-30 Renlin Li <renlin.li@arm.com>
18789 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
18790 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
18792 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18795 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
18796 -fstrict-aliasing boundaries.
18798 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18800 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
18801 and [SU]MNEGL patterns.
18803 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18805 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
18806 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
18807 combined arithmetic-shift ops. Properly handle all shift and extend
18808 operations that can occur in combination with PLUS/MINUS.
18809 Rename maybe_fma to compound_p.
18810 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
18811 arithmetic and shift operations.
18813 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18815 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
18816 rather than arith_shift cost when costing ADD/MINUS of an
18819 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
18822 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
18825 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
18827 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
18828 are for the same position.
18830 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
18832 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
18834 (vectorize_loops): Use it.
18836 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18838 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
18839 for aggregate types.
18840 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
18841 type to be non_ODR.
18842 * tree.c (need_assembler_name_p): Compute mangled name for
18843 non-fundamental types and integer types.
18845 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
18847 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
18849 * expr.c (expand_expr_real_2): Likewise.
18851 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18853 * tree.c (build_common_builtin_nodes): Do not build
18854 __builtin_alloca_with_align as equivalent of library alloca.
18856 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
18858 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
18859 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
18861 * tree.c: Include print-tree.h and ipa-utils.h
18862 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
18863 (free_lang_data_in_cgraph): Call verify_type.
18864 (verify_type_variant): New function.
18865 (verify_type): New function.
18866 * tree.h (verify_type): Declare.
18868 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
18870 * config/mips/mips-cpus.def: (mips4): Change default processor
18871 from PROCESSOR_R8000 to PROCESSOR_R10000.
18873 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
18875 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
18876 la/jalr instead of jal.
18878 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
18881 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
18882 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
18883 (setcc+movzbl peephole2): Check also clobbered reg.
18884 (setcc+andl peephole2): Ditto.
18886 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18889 * config/nvptx/mkoffload.c (target_ilp32): New variable.
18890 (main): Set it depending on "-foffload-abi=[...]".
18891 (compile_native, main): Use it to pass "-m32" or "-m64" to the
18894 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18897 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
18898 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
18899 Flip lane index back at assembly time for bigendian.
18901 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
18903 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
18904 * gimplify.c (gimplify_omp_workshare): Use it.
18906 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18908 * Makefile.in (build/genrecog.o): Depend on inchash.h.
18909 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
18911 * genrecog.c: Rewrite most of the code except for the third page.
18913 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18915 * inchash.h, inchash.c: Include bconfig.h for build objects.
18916 * Makefile.in (build/inchash.o): New rule.
18918 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
18921 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
18922 number in type attribute expression.
18924 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
18926 * loop-iv.c (canon_condition): Generalize to all types of integer
18929 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
18931 * gimple-walk.c: Prune duplicate or unneeded includes.
18932 (walk_gimple_asm): Only call parse_input_constraint or
18933 parse_output_constraint if their findings are used.
18934 Honour parse_input_constraint and parse_output_constraint
18937 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
18939 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
18941 2015-04-29 Tom de Vries <tom@codesourcery.com>
18943 PR tree-optimization/65893
18944 * passes.def (pass_all_optimizations): Move pass_stdarg to after
18947 2015-04-29 Richard Biener <rguenther@suse.de>
18949 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18950 compute GROUP_SIZE for basic-block SLP.
18951 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
18952 take into account gaps.
18953 (vect_get_mask_element): Properly reject references to previous
18955 (vect_transform_slp_perm_load): Likewise.
18957 2015-04-29 Christian Bruel <christian.bruel@st.com>
18960 * config/i386/i386.c (ix86_default_align): New function.
18961 (ix86_override_options_after_change): Call ix86_default_align.
18962 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
18963 (ix86_override_options_after_change): New function.
18965 2015-04-28 Jeff Law <law@redhat.com>
18967 * tree-ssa-dom.c (record_equality); Fix comment typos.
18969 2015-04-28 Tom de Vries <tom@codesourcery.com>
18971 PR tree-optimization/65887
18972 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
18974 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
18976 * doc/extend.texi (Declaring Attributes of Functions): Split into
18977 subsections by target. Alphabetize the table of common attributes.
18978 Rewrite some of the introductory text to reflect the new structure.
18979 Update some cross-references to point to the new subsections.
18980 (Attribute Syntax): Put paragraph about "__" naming here. Remove
18981 duplicate copies in the discussion of function, label, and type
18984 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
18987 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
18989 2015-04-28 Jason Merrill <jason@redhat.com>
18992 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
18993 (finalize_type_size): Respect TYPE_USER_ALIGN.
18994 (layout_type) [ARRAY_TYPE]: Likewise.
18996 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
18998 * config/arm/arm.md (*arm_movt): Fix type attribute.
18999 (*cmpsi_shiftsi): Likewise.
19000 (*cmpsi_shiftsi_swp): Likewise.
19001 (*movsicc_insn): Likewise.
19002 (*cond_move): Likewise.
19003 (*if_plus_move): Likewise.
19004 (*if_move_plus): Likewise.
19005 (*if_arith_move): Likewise.
19006 (*if_move_arith): Likewise.
19007 (*if_shift_move): Likewise.
19008 (*if_move_shift): Likewise.
19009 (*arm_movtas_ze): Likewise.
19010 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
19011 redundancy and type attribute.
19012 (*thumb2_movsi_insn): Fix type attribute.
19013 (*thumb2_addsi_short): Likewise.
19014 (thumb2_addsi3_compare0): Likewise.
19015 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
19016 attributes accordingly.
19018 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
19021 * function.c (pad_to_arg_alignment): Add parentheses.
19023 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
19025 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
19026 libgcc/config/frv/elf-lib.h.
19028 2015-04-28 Tom de Vries <tom@codesourcery.com>
19030 * tree-call-cdce.c: Fix example in header comment.
19032 2015-04-28 Richard Biener <rguenther@suse.de>
19034 PR tree-optimization/62283
19035 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
19036 fails fatally and we are vectorizing a basic-block simply
19037 cause the child to be constructed piecewise.
19038 (vect_analyze_slp_cost_1): Adjust.
19039 (vect_detect_hybrid_slp_stmts): Likewise.
19040 (vect_bb_slp_scalar_cost): Likewise.
19041 (vect_get_constant_vectors): For piecewise constructed
19042 constants place them after the last def.
19043 (vect_get_slp_defs): Adjust.
19044 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
19045 externals for basic-block vectorization.
19047 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19050 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
19052 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
19053 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
19054 (AARCH64_TUNE_FMA_STEERING): Likewise.
19055 * config/aarch64/aarch64-cores.def: Set
19056 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
19057 FMUL/FMADD instructions.
19058 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
19059 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
19060 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
19061 * config/aarch64/cortex-a57-fma-steering.h: New file.
19062 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19064 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
19066 * gensupport.c (std_preds): Add missing codes to address_operand entry.
19068 2015-04-28 Richard Biener <rguenther@suse.de>
19070 PR tree-optimization/65851
19071 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
19072 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
19073 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
19074 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
19075 (ccp_visit_phi_node): Adjust.
19076 (evaluate_stmt): For simplifications to SSA names return its
19077 lattice value if that isn't VARYING. Return immediately when
19078 simplified to a constant.
19079 (visit_assignment): Adjust.
19080 (ccp_visit_stmt): Likewise.
19082 2015-04-28 Tom de Vries <tom@codesourcery.com>
19084 PR tree-optimization/65818
19085 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
19088 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19090 * calls.c (save_fixed_argument_area): Don't check
19091 ARGS_GROW_DOWNWARD with the preprocessor.
19092 (restore_fixed_argument_area): Likewise.
19093 (mem_overlaps_already_clobbered_arg_p): Likewise.
19094 (check_sibcall_argument_overlap): Likewise.
19095 (expand_call): Likewise.
19096 (emit_library_call_value_1): Likewise.
19097 (store_one_arg): Likewise.
19098 * function.c (assign_parms): Likewise.
19099 (locate_and_pad_parm): Likewise.
19100 (pad_to_arg_alignment): Likewise.
19101 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19103 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19105 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
19106 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
19107 * calls.c (save_fixed_argument_area): Don't chekc if
19108 ARGS_GROW_DOWNWARD is defined.
19109 (restore_fixed_argument_area): Likewise.
19110 (mem_overlaps_already_clobbered_arg_p): Likewise.
19111 (check_sibcall_argument_overlap): Likewise.
19112 (expand_call): Likewise.
19113 (emit_library_call_value_1): Likewise.
19114 (store_one_arg): Likewise.
19115 * function.c (assign_parms): Likewise.
19116 (locate_and_pad_parm): Likewise.
19117 (pad_to_arg_alignment): Likewise.
19118 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19120 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19122 * defaults.h (gen_epilogue): New function.
19123 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
19125 * cfgrtl.c (cfg_layout_finalize): Likewise.
19126 * df-scan.c: Likewise.
19127 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19128 (reposition_prologue_and_epilogue_notes): Likewise.
19129 * reorg.c (find_end_label): Likewise.
19130 * toplev.c: Likewise.
19132 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19134 * bb-reorder.c (HAVE_return): Don't check if its undefined.
19135 * defaults.h (gen_simple_return): New function.
19136 (gen_simple_return): Likewise.
19137 (HAVE_return): Add default definition to false.
19138 (HAVE_simple_return): Likewise.
19139 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
19140 HAVE_return and HAVE_simple_return are defined.
19141 * function.c (gen_return_pattern): Likewise.
19142 (convert_jumps_to_returns): Likewise.
19143 (thread_prologue_and_epilogue_insns): Likewise.
19144 * reorg.c (find_end_label): Likewise.
19145 (dbr_schedule): Likewise.
19146 * shrink-wrap.c: Likewise.
19147 * shrink-wrap.h: Likewise.
19149 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19151 * defaults.h (EPILOGUE_USES): Add default definition of false.
19152 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
19153 * resource.c (init_resource_info): Likewise.
19155 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19157 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
19159 * dwarf2out.c (field_byte_offset): REmove check if
19160 PCC_BITFIELD_TYPE_MATTERS is defined.
19161 * stor-layout.c (layout_decl): Likewise.
19162 (update_alignment_for_field): Likewise.
19163 (place_field): Likewise.
19165 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19167 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
19169 * regrename.c (check_new_reg_p): Remove check if
19170 HARD_REGNO_RENAME_OK is defined.
19171 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
19173 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19175 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
19176 * cse.c (fold_rtx): Likewise.
19177 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
19178 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
19179 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
19180 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
19181 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
19182 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
19183 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
19184 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
19185 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
19186 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
19188 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
19189 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
19190 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
19191 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
19192 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
19193 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
19194 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
19195 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
19196 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
19197 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
19198 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
19199 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
19200 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
19201 * doc/tm.texi: Regenerate.
19202 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
19203 either true or false.
19205 2015-04-27 Jeff Law <law@redhat.com>
19207 PR tree-optimization/65217
19208 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
19209 of them has a single use, make sure it is the LHS of the implied
19212 2015-04-28 Alan Modra <amodra@gmail.com>
19215 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
19216 (offsettable_ok_by_alignment): Use minimum of decl and toc
19217 pointer alignment. Replace dead code with assertion.
19218 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
19219 case if size exceeds toc pointer alignment.
19220 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
19221 (rs6000_emit_move): Likewise.
19222 * configure.ac: Add linker toc pointer alignment check.
19223 * configure: Regenerate.
19224 * config.in: Regenerate.
19226 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
19228 * config.gcc: Add h8300-*-linux.
19229 * config/h8300/linux.h: New.
19230 * config/h8300/t-linux: New.
19231 * config/h8300/h8300.c (h8300_option_override): Normal mode
19232 is not supported for h8300-*-linux.
19233 (h8300_file_start): Target priority change.
19234 (get_shift_alg): Likewise.
19235 (h8300_shift_need_scratch_p): Likewise.
19236 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
19237 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
19239 2015-04-27 Caroline Tice <cmtice@google.com>
19241 * final.c (final_scan_insn): Output cold_function_name as function
19243 * varasm.c (cold_function_name): Make global.
19244 (assemble_start_function): Re-set cold_function_name.
19245 (assemble_end_function): Output cold partition size.
19246 * varasm.h (cold_function_name): Declare global.
19248 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
19250 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
19251 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
19253 (*movxi_internal_avx512f): Ditto.
19254 (define_split): Check for xmm16+, when splitting scalar float_extend.
19255 (*extendsfdf2_mixed): Use "v" constraint.
19256 (define_split): Check for xmm16+, when splitting scalar float_truncate.
19257 (*truncdfsf_fast_sse): Use "v" constraint.
19258 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
19259 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
19260 (define_peephole2): Check for xmm16+, when converting scalar
19262 (define_peephole2): Check for xmm16+, when converting scalar
19264 (*fop_<mode>_comm_mixed): Use "v" constraint.
19265 (*fop_<mode>_comm_sse): Ditto.
19266 (*fop_<mode>_1_mixed): Ditto.
19267 (*sqrt<mode>2_sse): Ditto.
19268 (*ieee_s<ieee_maxmin><mode>3): Ditto.
19270 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19272 * combine.c (simplify_if_then_else): Use std::swap instead
19273 of manually swapping.
19274 (known_cond): Likewise.
19275 (simplify_comparison): Likewise.
19277 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
19280 * config/rs6000/htm.md: Remove all define_expands.
19281 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
19282 UNSPECV_HTM_TABORTWCI): Remove.
19283 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
19284 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
19285 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
19286 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
19287 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
19288 tabortwci_internal): Remove define_insns.
19289 (tabort<wd>c, tabort<wd>ci): New define_insns.
19290 (tabort): Use gpc_reg_operand.
19291 (tcheck): Remove operand.
19292 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
19293 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
19295 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
19296 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
19297 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
19298 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
19299 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
19300 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
19301 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
19302 (tcheck): Remove builtin argument.
19303 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
19305 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
19306 tabortdc and tabortdci builtins when not in 64-bit mode.
19307 Modify code to handle the loss of the HTM define_expands.
19308 Emit code to copy the CR register to TARGET.
19309 (htm_init_builtins): Modify code to handle the loss of the HTM
19311 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
19312 (RS6000_BTC_64BIT): Likewise.
19313 (RS6000_BTC_CR): New macro.
19314 * doc/extend.texi: Update documentation for htm builtins.
19316 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19318 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
19319 of manually swapping.
19320 (simplify_associative_operation): Likewise.
19321 (simplify_binary_operation): Likewise.
19322 (simplify_plus_minus): Likewise.
19323 (simplify_relational_operation): Likewise.
19324 (simplify_ternary_operation): Likewise.
19326 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19328 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
19329 (xs_hi_nonmemory_operand): Remove error.
19330 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
19331 general_operand rather than xs_hi_general_operand.
19333 2015-04-27 Richard Biener <rguenther@suse.de>
19335 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
19336 (record_equivalences_from_stmt): Valueize rhs.
19337 (record_equality): Canonicalize x and y order via
19338 tree_swap_operands_p. Do not swap operands for same loop depth.
19340 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
19344 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
19345 Add hint how to use own spec file.
19347 2015-04-27 Jakub Jelinek <jakub@redhat.com>
19349 PR tree-optimization/65875
19350 * tree-vrp.c (update_value_range): If in is_new case setting
19351 old_vr to VR_VARYING, also set new_vr to it. Remove
19352 old_vr->type == VR_VARYING test.
19353 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
19354 SSA_PROP_INTERESTING if update_value_range returned true,
19355 but new range is VR_VARYING.
19357 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
19359 * combine.c (sign_extend_short_imm): New.
19360 (set_nonzero_bits_and_sign_copies): Use above new function for sign
19361 extension of src short immediate.
19362 (reg_nonzero_bits_for_combine): Likewise for tem.
19364 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19366 * stor-layout.c (self_referential_component_ref_p): New predicate.
19367 (copy_self_referential_tree_r): Use it.
19368 (self_referential_size): Punt for simple operations directly involving
19369 self-referential component references.
19370 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
19372 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19374 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
19376 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19378 * vec.h (vec): Make splice arguments const. Update definitions
19381 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
19383 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
19386 2015-04-26 Tom de Vries <tom@codesourcery.com>
19388 PR tree-optimization/65826
19389 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
19391 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
19393 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
19394 (*madd3<mode>): Ditto.
19395 (*msub4<mode>): Ditto.
19396 (*msub3<mode>): Ditto.
19397 (*nmadd4<mode>): Ditto.
19398 (*nmadd3<mode>): Ditto.
19399 (*nmadd4<mode>_fastmath): Ditto.
19400 (*nmadd3<mode>_fastmath): Ditto.
19401 (*nmsub4<mode>): Ditto.
19402 (*nmsub3<mode>): Ditto.
19403 (*nmsub4<mode>_fastmath): Ditto.
19404 (*nmsub3<mode>_fastmath): Ditto.
19406 2015-04-24 Jason Merrill <jason@redhat.com>
19409 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
19410 down when building TYPE_CANONICAL.
19411 (build_pointer_type_for_mode): Likewise.
19413 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
19415 * genrecog.c (validate_pattern): Check matching constraint refers
19416 to a lower numbered operand.
19418 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19421 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
19422 save to independent variables use the Save attribute. This will
19423 allow these options to be modified with the #pragma/attribute
19425 (-mallow-movmisalign): Likewise.
19426 (-mallow-df-permute): Likewise.
19427 (-msched-groups): Likewise.
19428 (-malways-hint): Likewise.
19429 (-malign-branch-targets): Likewise.
19430 (-mvectorize-builtins): Likewise.
19431 (-msave-toc-indirect): Likewise.
19433 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
19434 can be set via the #pragma/attribute target support.
19435 (rs6000_opt_vars): Likewise.
19436 (rs6000_inner_target_options): If VSX was set, also set
19437 -mno-avoid-indexed-addresses.
19439 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19441 * config/arm/iterators.md (shiftable_ops): Rename to...
19442 (SHIFTABLE_OPS): ... This. Update use in comments.
19443 (ior_xor): Rename to...
19444 (IOR_XOR): ... This.
19445 (vqh_ops): Rename to...
19446 (VQH_OPS): ... This.
19447 (vqhs_ops): Rename to...
19448 (VQHS_OPS): ... This.
19449 (rshifts): Rename to...
19450 (RSHIFTS): ... This.
19451 (returns): Rename to...
19452 (RETURNS): ... This.
19453 * config/arm/arm.md: Update uses of the above.
19454 * config/arm/neon.md: Likewise.
19456 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19458 * config.host (case ${host}): Add aarch64*-*-linux case.
19459 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
19460 fields to all the cores.
19461 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
19462 Add MCPU_MTUNE_NATIVE_SPECS.
19463 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
19464 field to all extensions.
19465 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
19466 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
19467 Adjust definition of AARCH64_OPT_EXTENSION.
19468 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
19469 (MCPU_MTUNE_NATIVE_SPECS): Define.
19470 * config/aarch64/driver-aarch64.c: New file.
19471 * config/aarch64/x-arch64: New file.
19472 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
19475 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19476 Wei Mi <wmi@google.com>
19478 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
19479 * config/i386/i386.c (extract_base_offset_in_addr): New function.
19480 (ix86_operands_ok_for_move_multiple): Ditto.
19481 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
19482 (movlpd/movhpd to movupd peephole2): Ditto.
19484 2015-04-24 Marek Polacek <polacek@redhat.com>
19487 * input.h (from_macro_expansion_at): Define.
19490 * doc/invoke.texi: Update description of -Wlogical-op.
19492 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19494 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
19495 ternary operator in fprintf and harmonize spacing.
19497 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19499 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
19500 Mark operand1 commutative.
19502 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19504 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
19505 input operands in memory.
19506 (*vec_concatv2si_sse4_1): Ditto.
19507 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
19508 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
19510 (vec_extract_hi_v32hi): Ditto.
19511 (vec_extract_hi_v64hi): Ditto.
19512 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
19514 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19515 Steven Bosscher <steven@gcc.gnu.org>
19517 PR rtl-optimization/34503
19518 * cprop.c (cprop_reg_p): New.
19519 (hash_scan_set): Use above function to check if register can be
19521 (find_avail_set): Return up to two sets, one whose source is a
19522 register and one whose source is a constant. Sets are returned in an
19523 array passed as parameter rather than as a return value.
19524 (cprop_insn): Use a do while loop rather than a goto. Try each of the
19525 sets returned by find_avail_set, starting with the one whose source is
19526 a constant. Use cprop_reg_p to check if register can be propagated.
19527 (do_local_cprop): Use cprop_reg_p to check if register can be
19529 (implicit_set_cond_p): Likewise.
19531 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19533 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
19534 (sem_function::equals): IGNORED_NODES parameter is now unused;
19535 update call of equals_private.
19536 (sem_function::equals_private): Do not call equals_wpa; skip
19537 gimple body matching if there is no body.
19538 (sem_function::init): Add logic to hash tthunk info.
19539 (sem_function::parse): Also parse thunks.
19540 * ipa-icf.h (equals_private): Update declaration.
19542 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19544 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
19545 asterisk from name so this can be generated directly.
19546 (*altivec_stvx_<mode>_internal): Likewise.
19547 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
19548 that this is never called during or after reload/lra.
19549 (rs6000_frame_related): Remove split_reg
19550 argument and logic that references it.
19551 (emit_frame_save): Remove last parameter from call to
19552 rs6000_frame_related.
19553 (rs6000_emit_prologue): Remove last parameter from eight calls to
19554 rs6000_frame_related. Force generation of stvx instruction for
19555 Altivec register saves. Remove split_reg handling, which is no
19557 (rs6000_emit_epilogue): Force generation of lvx instruction for
19558 Altivec register restores.
19560 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19562 * config/rs6000/rs6000.opt (mcrypto): Change option description to
19563 match category changes in ISA 2.07B.
19565 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19567 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
19569 (cmp_op, cmp_type): New code attributes.
19570 (NEON_VCMP, NEON_VACMP): New int iterators.
19571 (cmp_op_unsp): New int attribute.
19572 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
19573 (neon_vceq<mode>): Delete.
19574 (neon_vc<cmp_op><mode>_insn): New pattern.
19575 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
19576 (neon_vcgeu<mode>): Delete.
19577 (neon_vcle<mode>): Likewise.
19578 (neon_vclt<mode>: Likewise.
19579 (neon_vcage<mode>): Likewise.
19580 (neon_vcagt<mode>): Likewise.
19581 (neon_vca<cmp_op><mode>): New define_expand.
19582 (neon_vca<cmp_op><mode>_insn): New pattern.
19583 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
19585 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19587 * tree.h (attribute_value_equal): Declare.
19588 * tree.c (attribute_value_equal): Export.
19590 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19592 * ipa-icf.c (sem_item::compare_attributes): New function.
19593 (sem_item::compare_referenced_symbol_properties): Compare variable
19595 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
19596 (sem_function::param_used_p): New function.
19597 (sem_function::equals_wpa): Fix attribute comparsion; match
19598 parameter type codes; do not compare paremter flags when
19599 they are not used; compare edge flags; compare indirect calls.
19600 (sem_item::update_hash_by_addr_refs): Hash reference type.
19601 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
19602 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
19603 reference use type.
19604 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
19605 * ipa-icf.h (compare_attributes, param_used_p): Declare.
19607 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19609 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
19611 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
19612 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
19613 (sem_item::compare_referenced_symbol_properties): New.
19614 (sem_item::hash_referenced_symbol_properties): New.
19615 (sem_item::compare_cgraph_references): Rename to ...
19616 (sem_item::compare_symbol_references): ... this one; use
19617 compare_referenced_symbol_properties.
19618 (sem_function::equals_wpa): Do not compare
19619 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
19620 DECL_IS_OPERATOR_NEW; compare pointer sizes.
19621 (sem_item::update_hash_by_addr_refs): Call
19622 hash_referenced_symbol_properties.
19623 (sem_item::update_hash_by_local_refs): Cleanup.
19624 (sem_function::merge): Do not mix up symbol properties.
19625 (sem_variable::equals_wpa): Use compare_symbol_references.
19626 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
19627 (sem_item::hash_referenced_symbol_properties): New.
19628 (sem_item::compare_symbol_references): New.
19629 (sem_item::compare_cgraph_references): Remove.
19631 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
19634 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
19635 Emit size of local.
19637 2015-04-23 Nick Clifton <nickc@redhat.com>
19639 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
19640 ATTRIBUTE_UNUSED to x parameter.
19641 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
19643 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19645 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
19646 TARGET_CRYPTO to TARGET_P8_VECTOR>
19647 (crypto_vpermxor_<mode>): Likewise.
19648 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
19649 (BU_CRYPTO_3A): Likewise.
19650 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
19651 (BU_CRYPTO_OVERLOAD_3A): New #define.
19652 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
19653 (VPMSUMH): Likewise.
19654 (VPMSUMW): Likewise.
19655 (VPMSUMD): Likewise.
19656 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
19657 (VPERMXOR_V4SI): Likewise.
19658 (VPERMXOR_V8HI): Likewise.
19659 (VPERMXOR_V16QI): Likewise.
19660 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
19661 BU_CRYPTO_OVERLOAD_2A.
19662 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
19663 BU_CRYPTO_OVERLOAD_3A.
19664 * config/rs6000/rs6000.opt (mcrypto): Change description of
19667 2015-04-23 Richard Biener <rguenther@suse.de>
19669 * passes.def: Remove copy propagation passes run directly after CCP.
19670 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
19672 (ccp_visit_phi_node): Rework to handle first executable edge
19675 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
19677 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19678 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19679 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19680 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
19681 (thumb_legimitimize_reload_address): Remove.
19682 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
19684 (thumb_legimitimize_reload_address): Remove.
19686 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19688 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
19690 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19692 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
19694 (store_multiple): Likewise.
19696 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19698 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
19699 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
19700 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
19701 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
19702 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
19703 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
19704 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
19705 Specify issue_rate value.
19706 (arm_issue_rate): Look up issue rate from tuning structs. Remove
19707 large switch statement.
19708 (arm_marvell_pj4_tune): New struct.
19709 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
19712 2015-04-23 Richard Biener <rguenther@suse.de>
19714 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
19715 (vect_find_last_store_in_slp_instance): Rename to ...
19716 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
19717 (vect_analyze_slp_cost_1): Use vector_load for constant defs
19718 and vec_construct for external defs when estimating prologue cost.
19719 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
19720 Compute costs here only when vectorizing loops.
19721 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
19722 have been determined.
19723 (vect_schedule_slp_instance): Simplify vectorized code placement
19724 and prepare for in-BB external defs.
19725 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
19726 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
19727 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
19729 (vect_model_load_cost): Likewise.
19730 (vectorizable_store): Instead add it here.
19731 (vectorizable_load): Likewise.
19732 (vect_is_simple_use): Dump def type textually.
19734 2015-04-23 Richard Biener <rguenther@suse.de>
19736 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
19737 * cfgloop.c (verify_loop_structure): Verify the root loop node.
19738 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
19739 instead of get_eh_region_from_lp_number.
19740 * loop-init.c (fix_loop_structure): If we removed a loop, reset
19743 2015-04-23 Anton Blanchard <anton@samba.org>
19745 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
19746 need for -mprofile-kernel to save LR to stack.
19748 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19750 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
19752 (insn_is_swappable_p): Return 1 for a convert from double to
19753 single precision when all of its uses are splats of BE element
19756 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19758 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
19760 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19763 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
19764 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
19765 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
19767 (rs6000_builtin_mask_for_load): Return 0 for targets with
19768 efficient unaligned VSX accesses so that the vectorizer will use
19769 direct unaligned loads.
19770 (rs6000_builtin_support_vector_misalignment): Always return true
19771 for targets with efficient unaligned VSX accesses.
19772 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
19773 stores on targets with efficient unaligned VSX accesses is almost
19774 always the same as the cost of an aligned load or store, so model
19776 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
19777 unaligned vectors if we have efficient unaligned VSX accesses.
19778 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
19779 undocumented option.
19781 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19784 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19786 * config.gcc (LIBC_MUSL): New tm_defines macro.
19787 * config/linux.h (OPTION_MUSL): Define.
19788 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19789 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19790 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19792 * config/linux.opt (mmusl): New option.
19793 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19794 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19796 * configure: Regenerate.
19798 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
19800 * config.gcc (LIBC_MUSL): New tm_defines macro.
19801 * config/linux.h (OPTION_MUSL): Define.
19802 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19803 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19804 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19806 * config/linux.opt (mmusl): New option.
19807 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19808 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19810 * configure: Regenerate.
19812 2015-04-22 Yury Gribov <y.gribov@samsung.com>
19814 * doc/invoke.texi (-fsanitize-sections): Update description.
19815 * asan.c (set_sanitized_sections): Parse incoming arg.
19816 (section_sanitized_p): Support wildcards.
19818 2015-04-22 Tom de Vries <tom@codesourcery.com>
19820 PR tree-optimization/65823
19821 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
19822 equality between ap_copy and ap.
19824 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19827 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
19829 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19832 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
19834 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19837 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
19838 remove already contained t-files.
19840 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19842 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
19843 Remove unneeded forward declarations.
19844 (suitable_for_tail_call_opt_p): Commentary typo fix.
19846 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19848 * varasm.c (emit_bss): Remove redundant guard.
19850 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19852 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
19854 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19856 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
19858 2015-04-22 Hale Wang <hale.wang@arm.com>
19859 Terry Guo <terry.guo@arm.com>
19861 PR rtl-optimization/64818
19862 * combine.c (can_combine_p): Don't combine user-specified
19863 register if it is in an asm input.
19865 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
19868 * passes.def (early_optimizations): Add pass_dse.
19870 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19872 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
19873 * reorg.c (redundant_insn): Remove ifdef
19874 INSN_REFERENCES_ARE_DELAYED.
19875 * resource.c (mark_referenced_resources): Likewise.
19877 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19879 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
19880 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
19881 * resource.c (mark_set_resources): Likewise.
19883 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19885 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
19886 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19887 (flow_find_head_matching_sequence): Likewise.
19888 (try_head_merge_bb): Likewise.
19889 * combine.c (can_combine_p): Likewise.
19890 (try_combine): Likewise.
19891 (distribute_notes): Likewise.
19892 * df-problems.c (can_move_insns_across): Likewise.
19893 * final.c (final): Likewise.
19894 * gcse.c (insert_insn_end_basic_block): Likewise.
19895 * ira.c (find_moveable_pseudos): Likewise.
19896 * reorg.c (try_merge_delay_insns): Likewise.
19897 (fill_simple_delay_slots): Likewise.
19898 (fill_slots_from_thread): Likewise.
19899 * sched-deps.c (sched_analyze_2): Likewise.
19901 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19903 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
19904 PIC_OFFSET_TABLE_REGNUM.
19906 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19908 * alias.c (init_alias_target): Remove ifdef
19909 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
19910 * df-scan.c (df_insn_refs_collect): Likewise.
19911 (df_get_regular_block_artificial_uses): Likewise.
19912 (df_get_eh_block_artificial_uses): Likewise.
19913 (df_get_entry_block_def_set): Likewise.
19914 (df_get_exit_block_use_set): Likewise.
19915 * emit-rtl.c (gen_rtx_REG): Likewise.
19916 * ira.c (ira_setup_eliminable_regset): Likewise.
19917 * reginfo.c (init_reg_sets_1): Likewise.
19918 * regrename.c (rename_chains): Likewise.
19919 * reload1.c (reload): Likewise.
19920 (eliminate_regs_in_insn): Likewise.
19921 * resource.c (mark_referenced_resources): Likewise.
19922 (init_resource_info): Likewise.
19924 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19926 * defaults.h (MASK_RETURN_ADDR): New definition.
19927 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19930 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19932 * defaults.h (RETURN_ADDR_OFFSET): New definition.
19933 * except.c (expand_builtin_extract_return_addr): Remove ifdef
19934 RETURN_ADDR_OFFSET.
19935 (expand_builtin_frob_return_addr): Likewise.
19937 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19939 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
19940 (try_redirect_by_replacing_jump): Likewise.
19941 (rtl_tidy_fallthru_edge): Likewise.
19942 * combine.c (insn_a_feeds_b): Likewise.
19943 (find_split_point): Likewise.
19944 (simplify_set): Likewise.
19945 * cprop.c (cprop_jump): Likewise.
19946 * cse.c (cse_extended_basic_block): Likewise.
19947 * df-problems.c (can_move_insns_across): Likewise.
19948 * function.c (emit_use_return_register_into_block): Likewise.
19949 * haifa-sched.c (sched_init): Likewise.
19950 * ira.c (find_moveable_pseudos): Likewise.
19951 * loop-invariant.c (find_invariant_insn): Likewise.
19952 * lra-constraints.c (curr_insn_transform): Likewise.
19953 * postreload.c (reload_combine_recognize_const_pattern):
19955 * reload.c (find_reloads): Likewise.
19956 * reorg.c (delete_scheduled_jump): Likewise.
19957 (steal_delay_list_from_target): Likewise.
19958 (steal_delay_list_from_fallthrough): Likewise.
19959 (redundant_insn): Likewise.
19960 (fill_simple_delay_slots): Likewise.
19961 (fill_slots_from_thread): Likewise.
19962 (delete_computation): Likewise.
19963 * sched-rgn.c (add_branch_dependences): Likewise.
19965 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19967 * genconfig.c (main): Always define HAVE_cc0.
19968 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
19970 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19971 (flow_find_head_matching_sequence): Likewise.
19972 (try_head_merge_bb): Likewise.
19973 * cfgrtl.c (rtl_merge_blocks): Likewise.
19974 (try_redirect_by_replacing_jump): Likewise.
19975 (rtl_tidy_fallthru_edge): Likewise.
19976 * combine.c (do_SUBST_MODE): Likewise.
19977 (insn_a_feeds_b): Likewise.
19978 (combine_instructions): Likewise.
19979 (can_combine_p): Likewise.
19980 (try_combine): Likewise.
19981 (find_split_point): Likewise.
19983 (simplify_set): Likewise.
19984 (distribute_notes): Likewise.
19985 * cprop.c (cprop_jump): Likewise.
19986 * cse.c (cse_extended_basic_block): Likewise.
19987 * df-problems.c (can_move_insns_across): Likewise.
19988 * final.c (final): Likewise.
19989 (final_scan_insn): Likewise.
19990 * function.c (emit_use_return_register_into_block): Likewise.
19991 * gcse.c (insert_insn_end_basic_block): Likewise.
19992 * haifa-sched.c (sched_init): Likewise.
19993 * ira.c (find_moveable_pseudos): Likewise.
19994 * loop-invariant.c (find_invariant_insn): Likewise.
19995 * lra-constraints.c (curr_insn_transform): Likewise.
19996 * optabs.c (prepare_cmp_insn): Likewise.
19997 * postreload.c (reload_combine_recognize_const_pattern):
19999 * reload.c (find_reloads): Likewise.
20000 (find_reloads_address_1): Likewise.
20001 * reorg.c (delete_scheduled_jump): Likewise.
20002 (steal_delay_list_from_target): Likewise.
20003 (steal_delay_list_from_fallthrough): Likewise.
20004 (try_merge_delay_insns): Likewise.
20005 (redundant_insn): Likewise.
20006 (fill_simple_delay_slots): Likewise.
20007 (fill_slots_from_thread): Likewise.
20008 (delete_computation): Likewise.
20009 (relax_delay_slots): Likewise.
20010 * sched-deps.c (sched_analyze_2): Likewise.
20011 * sched-rgn.c (add_branch_dependences): Likewise.
20013 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20015 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
20016 that is trivially ded on non cc0 targets.
20017 (simplify_set): Likewise.
20018 (mark_used_regs_combine): Likewise.
20019 * cse.c (new_basic_block): Likewise.
20020 (fold_rtx): Likewise.
20021 (cse_insn): Likewise.
20022 (cse_extended_basic_block): Likewise.
20023 (set_live_p): Likewise.
20024 * rtlanal.c (canonicalize_condition): Likewise.
20025 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20027 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20029 * conditions.h: Define macros even if HAVE_cc0 is undefined.
20030 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
20031 * final.c: Likewise.
20032 * jump.c: Likewise.
20033 * recog.c: Likewise.
20034 * recog.h: Declare functions even when HAVE_cc0 is undefined.
20035 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
20037 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20039 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
20040 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
20041 * builtins.c (expand_builtin): Remove check if
20042 EH_RETURN_DATA_REGNO is defined.
20043 * df-scan.c (df_bb_refs_collect): Likewise.
20044 (df_get_exit_block_use_set): Likewise.
20045 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
20046 * ira-lives.c (process_bb_node_lives): Likewise.
20047 * lra-lives.c (process_bb_lives): Likewise.
20049 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20051 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
20052 FIRST_PSEUDO_REG): New.
20053 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
20054 (ARG_POINTER_REGNUM): Define to ARGP_REG.
20055 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
20056 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
20057 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
20058 (FIRST_INT_REG): New.
20059 (LAST_INT_REG): New.
20060 (FIRST_*_REG): Define using *_REG.
20061 (LAST_*_REG): Ditto.
20062 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
20063 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
20064 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
20066 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20068 * expmed.c: (synth_mult): Only assume overlapping
20069 shift with previous steps in alg_sub_t_m2 case.
20071 2015-04-21 Richard Biener <rguenther@suse.de>
20073 PR tree-optimization/65650
20074 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
20075 transitions involving copies.
20076 (set_lattice_value): Adjust for copy lattice state.
20077 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
20078 if that doesn't dominate the merge point.
20079 (bit_value_unop): Adjust what we treat as varying mask.
20080 (bit_value_binop): Likewise.
20081 (bit_value_assume_aligned): Likewise.
20082 (evaluate_stmt): When we simplified to a SSA name record a copy
20083 instead of dropping to varying.
20084 (visit_assignment): Simplify.
20086 * gimple-match.h (gimple_simplify): Add another callback.
20087 * gimple-fold.c (fold_stmt_1): Adjust caller.
20088 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
20089 for the 2nd callback.
20090 * gimple-match-head.c (gimple_simplify): Add a callback that is
20091 used to valueize the stmt operands and use it that way.
20093 2015-04-21 Richard Biener <rguenther@suse.de>
20095 PR tree-optimization/65788
20096 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
20098 2015-04-21 Richard Biener <rguenther@suse.de>
20100 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
20101 vec_construct cost by vec_stmt_cost.
20103 2015-04-21 Richard Biener <rguenther@suse.de>
20105 * cfghooks.h (create_basic_block): Replace with two overloads
20106 for RTL and GIMPLE.
20107 (split_block): Likewise.
20108 * cfghooks.c (split_block): Rename to ...
20109 (split_block_1): ... this.
20110 (split_block): Add two type-safe overloads for RTL and GIMPLE.
20111 (split_block_after_labels): Call split_block_1.
20112 (create_basic_block): Rename to ...
20113 (create_basic_block_1): ... this.
20114 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
20115 (create_empty_bb): Call create_basic_block_1.
20116 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
20117 split_block_after_labels.
20118 * omp-low.c (expand_parallel_call): Likewise.
20119 (expand_omp_target): Likewise.
20120 (simd_clone_adjust): Likewise.
20121 * tree-chkp.c (chkp_get_entry_block): Likewise.
20122 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
20123 create_basic_block overload.
20124 (cgraph_node::expand_thunk): Likewise.
20125 * tree-cfg.c (make_blocks): Likewise.
20126 (handle_abnormal_edges): Likewise.
20127 * tree-inline.c (copy_bb): Likewise.
20129 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20131 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
20133 (*xor_one_cmplsidi3_ze): Likewise.
20135 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
20137 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
20138 use df_remove_problem rather than manually removing problems, leaving
20139 holes in df->problems_in_order[].
20141 2015-04-21 Tom de Vries <tom@codesourcery.com>
20143 PR tree-optimization/65802
20144 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
20146 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20148 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
20150 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
20151 at '.'. Assert that there's enough space for everything.
20153 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20155 PR tree-optimization/64950
20157 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
20160 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
20163 2015-04-20 Shiva Chen <shiva0217@gmail.com>
20165 PR rtl-optimization/64916
20166 * cfgcleanup.c (values_equal_p): New function.
20167 (can_replace_by): Use it.
20169 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
20172 * doc/invoke.texi ([-Wnarrowing]): Update.
20174 2015-04-20 Jeff Law <law@redhat.com>
20176 PR tree-optimization/65658
20177 * tree-ssa-threadupdate.c (redirection_block_p): Remove
20178 redundant test for GIMPLE_ASSIGN in last change.
20180 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
20182 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
20183 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
20184 (legitimize_tls_address): Ditto.
20185 (ix86_expand_move): Ditto.
20186 (ix86_expand_binary_operator): Remove reload_in_progress checks.
20187 (ix86_expand_unary_operator): Ditto.
20188 * config/i386/predicates.md (index_register_operand): Ditto.
20190 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
20192 * reorg.c (try_merge_delay_insns): Improve correctness checking
20193 for targets with multiple delay slots.
20195 2015-04-20 Jeff Law <law@redhat.com>
20197 PR tree-optimization/65658
20198 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
20201 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20203 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
20204 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
20207 2015-04-20 Jakub Jelinek <jakub@redhat.com>
20210 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
20212 2015-04-20 Richard Biener <rguenther@suse.de>
20214 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
20215 * gimple-fold.c (gimple_build_valueize): New function.
20216 (gimple_build): Always use gimple_build_valueize as valueize hook.
20218 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20221 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
20222 and overwrite variable parts if <= 1/2 the elements are variable.
20224 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
20226 PR rtl-optimization/65805
20227 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
20228 Don't use difference of offset and previous offset if
20229 update_sp_offset is non-zero.
20230 (eliminate_regs_in_insn): Ditto.
20231 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
20232 lra_eliminate_regs_1 call.
20233 * lra-constraints.c (get_equiv_with_elimination): Ditto.
20235 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
20237 * hash-table.h: Remove version of hash_table that stored value_type *.
20238 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
20239 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
20240 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
20241 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
20242 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
20243 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
20244 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20245 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
20246 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
20247 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
20248 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
20249 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
20250 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
20251 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20252 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
20253 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
20255 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20256 Jakub Jelinek <jakub@redhat.com>
20259 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
20260 subsequent SH_NONE operand does not overwrite an existing *special
20262 (adjust_extract): Handle case where a vec_extract operation is
20263 wrapped in a PARALLEL.
20265 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20268 * config/i386/i386.c (ix86_binds_local_p): Define only if
20269 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
20271 2015-04-17 Jeff Law <law@redhat.com>
20273 PR tree-optimization/47679
20274 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
20275 * tree-ssa-scopedtables.c: New file.
20276 * tree-ssa-scopedtables.h: New file.
20277 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
20278 (const_and_copies): Change name/type.
20279 (record_const_or_copy): Move into tree-ssa-scopedtables.c
20280 (record_const_or_copy_1): Similarly.
20281 (restore_vars_to_original_value): Similarly.
20282 (pass_dominator::execute): Create and destroy const_and_copies table.
20283 (thread_across_edge): Update passing of const_and_copies.
20284 (record_temporary_equivalence): Use method calls rather than
20285 manipulating const_and_copies directly.
20286 (record_equality, cprop_into_successor_phis): Similarly.
20287 (dom_opt_dom_walker::before_dom_children): Similarly.
20288 (dom_opt_dom_walker::after_dom_children): Similarly.
20289 (eliminate_redundant_computations): Similarly.
20290 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
20291 (record_temporary_equivalence): Likewise.
20292 (invalidate_equivalences): Likewise.
20293 (record_temporary_equivalences_from_phis): Update due to type
20294 change of const_and_copies. Use method calls rather than
20295 manipulating the stack directly.
20296 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
20297 (thread_through_normal_block, thread_across_edge): Likewise.
20298 (thread_across_edge): Likewise.
20299 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
20300 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
20302 (identify_jump_threads): Update due to type change of equiv_stack.
20303 (finalize_jump_threads): Delete the equiv_stack when complete.
20305 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
20307 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20308 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
20309 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
20311 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
20314 * config.gcc: Exit with a comment when we do not have a major version
20315 number for the FreeBSD target.
20317 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20320 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
20321 maybe_allows_mem bitfields.
20322 (maybe_allows_none_start, maybe_allows_none_end,
20323 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
20324 maybe_allows_mem_end): New variables.
20325 (compute_maybe_allows): New function.
20326 (add_constraint): Use it to initialize maybe_allows_reg and
20327 maybe_allows_mem fields.
20328 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
20329 is_address constraints such that those that allow neither mem nor
20330 reg come first, then those that only allow reg but not mem, then
20331 those that only allow mem but not reg, then the rest.
20332 (write_allows_reg_mem_function): New function.
20333 (write_tm_preds_h): Call it.
20334 * stmt.c (parse_output_constraint, parse_input_constraint): Use
20335 the generated insn_extra_constraint_allows_reg_mem function
20336 instead of always setting *allows_reg = true; *allows_mem = true;
20337 for unknown extra constraints.
20339 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20342 * output.h (default_binds_local_p_3): New.
20343 * varasm.c (default_binds_local_p_3): Make it public. Take an
20344 argument to indicate if common symbol may be local. If common
20345 symbol may be local, treat non-external variable as defined
20347 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
20348 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
20349 * config/i386/i386.c (ix86_binds_local_p): New.
20350 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
20351 ix86_binds_local_p.
20353 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20356 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
20357 trying mem_loc_descriptor on XEXP (rtl, 0).
20359 2015-04-17 Martin Liska <mliska@suse.cz>
20361 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20362 Release symbol_compare_collection.
20363 * ipa-reference.c: Add TODO that a vector should be released.
20365 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
20368 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
20369 to new AVR-LibC file layout (bug #44574).
20370 (*avrlibc_devicelib): Same.
20371 * config/avr/avr-mcus.def: Adjust comments.
20372 * config/avr/avr.opt (nodevicelib): Adjust help.
20374 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
20376 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
20378 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
20381 * gimplify.c (gimplify_init_constructor): Always emit a
20382 side-effecting constructor.
20384 2015-04-17 Tom de Vries <tom@codesourcery.com>
20386 PR tree-optimization/64950
20387 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
20388 in cfun->curr_properties.
20389 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
20390 if we generate an IFN_VA_ARG.
20391 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
20392 function if PROP_gimple_lva is not set in src function.
20394 2015-04-17 Tom de Vries <tom@codesourcery.com>
20395 Michael Matz <matz@suse.de>
20397 PR tree-optimization/64950
20398 * gimple-iterator.c (update_modified_stmts): Remove static.
20399 * gimple-iterator.h (update_modified_stmts): Declare.
20400 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
20401 (gimplify_va_arg_internal): New function.
20402 (gimplify_va_arg_expr): Use IFN_VA_ARG.
20403 * gimplify.h (gimplify_va_arg_internal): Declare.
20404 * internal-fn.c (expand_VA_ARG): New unreachable function.
20405 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
20406 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
20407 (expand_ifn_va_arg): New function.
20408 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
20409 (pass_stdarg::execute): Call expand_ifn_va_arg.
20410 (pass_data_lower_vaarg): New pass_data.
20411 (pass_lower_vaarg): New gimple_opt_pass.
20412 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
20413 (make_pass_lower_vaarg): New function.
20414 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
20415 properties_required field.
20416 * passes.def (all_passes): Add pass_lower_vaarg.
20417 * tree-pass.h (PROP_gimple_lva): Add define.
20418 (make_pass_lower_vaarg): Declare.
20420 2015-04-17 Tom de Vries <tom@codesourcery.com>
20422 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
20423 * calls.c (call_expr_flags): Same.
20425 2015-04-17 Tom de Vries <tom@codesourcery.com>
20427 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
20428 (pass_stdarg::execute): ... here.
20430 2015-04-17 Tom de Vries <tom@codesourcery.com>
20431 Michael Matz <matz@suse.de>
20433 * tree-cfg.c (make_blocks_1): Factor out of ...
20434 (make_blocks): ... here.
20435 (make_edges_bb): Factor out of ...
20436 (make_edges): ... here.
20437 (gimple_find_sub_bbs): New function.
20438 * tree-cfg.h (gimple_find_sub_bbs): Declare.
20440 2015-04-17 Tom de Vries <tom@codesourcery.com>
20442 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
20444 2015-04-17 Yury Gribov <y.gribov@samsung.com>
20446 * asan.c (set_sanitized_sections): New function.
20447 (section_sanitized_p): Ditto.
20448 (asan_protect_global): Optionally sanitize user-defined
20450 * asan.h (set_sanitized_sections): Declare new function.
20451 * common.opt (fsanitize-sections): New option.
20452 * doc/invoke.texi (-fsanitize-sections): Document new option.
20453 * opts-global.c (handle_common_deferred_options): Handle new
20456 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20459 * dwarf2out.c (loc_list_from_tree): Return NULL
20460 for DEBUG_EXPR_DECL.
20462 2015-04-17 Christian Bruel <christian.bruel@st.com>
20464 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
20467 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20469 * ira-color.c (setup_left_conflict_sizes_p): Do not process
20470 node itself when computing left conflict subnode size.
20472 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20474 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
20475 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
20476 *fop_<mode>_1_sse using enabled attribute. Use
20477 register_mixssei387nonimm_operand operand 1 predicate. Change
20478 alternative 3 constraints from "x" to "v".
20480 2015-04-16 Richard Biener <rguenther@suse.de>
20482 PR tree-optimization/65774
20483 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
20484 bit-value tracking on.
20486 2015-04-16 Richard Biener <rguenther@suse.de>
20488 PR tree-optimization/64277
20489 * tree-vrp.c (check_array_ref): Fix anti-range handling,
20490 simplify upper bound handling.
20491 (search_for_addr_array): Simplify.
20492 (check_array_bounds): Handle ADDR_EXPRs here.
20493 (check_all_array_refs): Simplify.
20495 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20497 * config/i386/i386.c (print_reg): Rewrite function.
20499 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20501 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
20502 Invert the condition.
20504 2015-04-16 Renlin Li <renlin.li@arm.com>
20506 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
20507 simplifications for UNSIGNED_FLOAT.
20509 2015-04-16 Nick Clifton <nickc@redhat.com>
20511 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
20513 (enum rl78_cpu_type): New.
20514 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
20515 (umulhi3_shift_virt): Remove m constraint from operand 1.
20516 (umulqihi3_virt): Likewise.
20517 * config/rl78/rl78.c (rl78_option_override): Add code to process
20518 -mcpu and -mmul options.
20519 (rl78_alloc_physical_registers): Add code to handle divhi and
20520 divsi valloc attributes.
20521 (set_origin): Likewise.
20522 * config/rl78/rl78.h (RL78_MUL_G14): Define.
20523 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
20524 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
20526 (ASM_SPEC): Pass -mcpu on to assembler.
20527 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
20528 (mulqi3_rl78): Likewise.
20529 (mulhi3_g13): Likewise.
20530 (mulhi3): Generate the G13 or G14 versions of the insn directly.
20531 (mulsi3): Likewise.
20532 (mulhi3_g14): Add clobbers of AX and BC.
20533 (mulsi3_g14): Likewise.
20534 (mulsi3_g13): Likewise.
20535 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
20536 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
20537 * config/rl78/rl78.opt (mmul): Initialise value to
20539 (mcpu): New option.
20540 (m13, m14, mrl78): New option aliases.
20541 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
20542 (MULTILIB_DIRNAMES): Add g13 and g14.
20543 * doc/invoke.texi: Document -mcpu and -mmul options.
20545 2015-04-16 Richard Biener <rguenther@suse.de>
20547 * tree-ssa-ccp.c (likely_value): See if we have operands that
20548 are marked as never simulate again and return CONSTANT in this
20550 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
20551 not have any operands that will be simulated again as
20552 not being simulated again.
20554 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
20556 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
20557 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
20558 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
20560 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
20562 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
20563 *float<SWI48:mode><MODEF:mode>2_sse.
20564 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
20566 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
20569 2015-04-15 Tom de Vries <tom@codesourcery.com>
20572 * function.c (push_dummy_function): New function.
20573 (init_dummy_function_start): Use push_dummy_function.
20574 (pop_dummy_function): New function. Factored out of ...
20575 (expand_dummy_function_end): ... here.
20576 * function.h (push_dummy_function, pop_dummy_function): Declare.
20577 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
20578 pop_dummy_function.
20579 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
20581 2015-04-15 Jeff Law <law@redhat.com>
20583 PR tree-optimization/47679
20584 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
20585 need for forward declaration in upcoming changes.
20586 (record_conditions, record_edge_info): Likewise.
20588 PR rtl-optimization/42522
20589 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
20590 SIGN_EXTRACT as a whole object rather than simplifying
20593 2015-04-15 Jakub Jelinek <jakub@redhat.com>
20596 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
20597 and GIMPLE_PREDICT use break instead of return true. For
20598 GIMPLE_EH_DISPATCH, compare dispatch region.
20600 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
20602 * doc/extend.texi (__sync Builtins): Simplify some text. Update
20603 details about the implementation. Make clear preference for
20604 __atomic builtins. Reduce possibility of future change.
20606 2015-04-15 Nick Clifton <nickc@redhat.com>
20608 * config/rx/rx.opt (mallow-string-insns): New option.
20609 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
20610 builtin if string instructions are denied.
20611 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
20612 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
20614 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
20615 * config/rx/rx.md (movstr): Enable pattern only if string
20616 instructions are allowed.
20617 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
20618 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
20619 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
20620 (MULTILIB_DIRNAMES): Add no-strings.
20621 * doc/invoke.texi: Document -mno-allow-string-insns.
20623 2015-04-15 Alan Modra <amodra@gmail.com>
20627 PR middle-end/36043
20628 * calls.c (load_register_parameters): Don't load past end of
20629 mem unless suitably aligned.
20631 2015-04-15 Nick Clifton <nickc@redhat.com>
20633 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
20634 decrement instruction as being frame related.
20635 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
20637 If zero extending a function address enclose the operation in
20639 (rl78_preferred_reload_class): New function.
20640 (TARGET_PREFERRED_RELOAD_CLASS): Define.
20641 * config/rl78/rl78.md: Remove useless constraints in expanders.
20642 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
20643 (mulhi3_rl78): Likewise.
20644 (mulhi3_g13): Likewise.
20645 (mulsi3_rl78): Likewise.
20646 (es_addr): Move to before the multiply patterns.
20648 2015-04-15 Alan Modra <amodra@gmail.com>
20650 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
20651 and sequence_stack. Add seq.
20652 (seq_stack): Delete.
20653 * function.c (prepare_function_start): Don't access x_last_insn.
20654 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
20655 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
20656 * emit_rtl.c (start_sequence, push_topmost_sequence,
20657 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
20658 sequence accessors.
20659 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
20660 remove_insn): Likewise. Simplify.
20661 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
20662 and pop_topmost_sequence.
20663 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
20665 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
20667 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
20670 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
20673 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20675 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
20676 (LEGACY_INT_REGNO_P): Ditto.
20677 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
20678 (ANY_MASK_REG_P): Remove.
20679 (BND_REG_P): Rename from ANY_BND_REG_P.
20680 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
20681 legacy integer registers. Do not handle MMX_REG_P in a special way.
20682 Merge 64byte and 32byte SSE handling.
20684 2015-04-14 Nick Clifton <nickc@redhat.com>
20686 * expr.c (expand_assignment): Force an address offset computation
20687 into a register before changing its mode.
20688 (expand_expr_real_1): Likewise.
20690 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
20692 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
20693 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
20694 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
20695 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
20696 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
20697 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
20698 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
20699 and __aarch64_vget_lane_any.
20701 2015-04-14 Jakub Jelinek <jakub@redhat.com>
20703 PR rtl-optimization/65761
20704 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
20705 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
20707 2015-04-14 Richard Biener <rguenther@suse.de>
20709 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
20710 (graphite_can_represent_scev): Use POINTER_TYPE_P.
20712 2015-04-14 Richard Biener <rguenther@suse.de>
20714 PR tree-optimization/65758
20715 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
20717 (ccp_lattice_meet): Likewise.
20718 (bit_value_unop): Likewise.
20719 (bit_value_binop): Likewise.
20720 (bit_value_assume_aligned): Likewise.
20722 2015-04-14 Christian Bruel <christian.bruel@st.com>
20724 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
20727 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
20729 PR tree-optimization/63387
20730 * match.pd ((x unord x) | (y unord y) -> (x unord y),
20731 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
20733 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
20735 * config/i386/predicates.md (any_QIreg_operand): Rename from
20736 q_regs_operand. Do not process subregs.
20737 (QIreg_operand): Use QI_REGNO_P predicate.
20738 (ext_QIreg_operand): Ditto.
20739 (ext_register_operand): Ditto.
20740 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
20741 (AND splitters): Ditto.
20742 (AND with -65536 splitter): Add SWI48 mode for operand 0.
20743 (AND with -256 splitter): Use any_QIreg_operand predicate and
20744 SWI248 mode for operand 0.
20745 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
20746 mode for operand 0.
20747 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
20749 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
20751 * doc/plugins.texi: Rewrite first introductory paragraph.
20753 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20755 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
20756 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
20758 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20760 * ipa-profie.c (ipa_profile): Check number of parameters
20761 and possible polymorphic call targets before
20764 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
20766 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
20767 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
20769 2015-04-13 Richard Biener <rguenther@suse.de>
20771 PR tree-optimization/65204
20772 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
20773 takens for bit-CCP.
20775 2015-04-13 Richard Biener <rguenther@suse.de>
20778 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
20779 and cond_not_taken_branch_cost to 4 and 2.
20780 (bdver2_cost): Likewise.
20781 (bdver3_cost): Likewise.
20782 (bdver4_cost): Likewise.
20784 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20786 * hash-table.h (hash_table constructor): Add mem stats.
20787 (alloc_entries): Likewise.
20789 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20791 * ipa-cp.c (ipcp_driver): Relase prev_edge.
20792 * passes.c (execute_one_pass): Only add transform if pass has one.
20794 2015-04-12 Joseph Myers <joseph@codesourcery.com>
20796 * config/i386/i386.c (ix86_option_override_internal): Don't set
20797 -fprefetch-loop-arrays if optimizing for size.
20799 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
20800 Gerald Pfeifer <gerald@pfeifer.com>
20802 * doc/contrib.texi (Contributors): Add Martin Jambor and
20805 2015-04-12 Jakub Jelinek <jakub@redhat.com>
20807 * BASE-VER: Set to 6.0.0.
20809 PR tree-optimization/65747
20810 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
20811 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
20813 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20815 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
20816 sentence. Improve grammar.
20818 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
20820 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
20822 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20825 * ipa-inline-transform.c (speculation_removed): Remove static var.
20826 (check_speculations): New function.
20827 (clone_inlined_nodes): Do not check spculations.
20828 (inline_call): Call check_speculations.
20829 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
20830 consider non-invariants.
20832 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
20833 Martin Liska <mliska@suse.cz>
20836 * ipa-icf.c (sem_item::compare_cgraph_references): function and
20837 variable can not match.
20838 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
20839 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
20841 2015-04-11 Jakub Jelinek <jakub@redhat.com>
20843 PR tree-optimization/65735
20844 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
20845 Remove visited_phis argument, add visited_bbs, avoid recursing into the
20846 same bb rather than just into the same phi node.
20847 (thread_through_normal_block): Adjust caller.
20849 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20851 * doc/contrib.texi (Contributors): Add Ira Rosen.
20853 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
20855 * gcov.c (find_source): Fix miswording in error message.
20856 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
20857 (ix86_expand_sse_comi_round): Fix typo in error message.
20859 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
20861 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
20863 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
20865 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
20867 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20870 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
20871 Print bad_spills_num and insn_pseudos_num.
20873 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20876 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
20877 when creating +1 values for SImode.
20879 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
20882 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
20885 2015-04-10 Jakub Jelinek <jakub@redhat.com>
20886 Iain Sandoe <iain@codesourcery.com>
20889 * configure: Regenerate.
20891 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20894 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
20896 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
20898 * doc/contrib.texi (Contributors): Add John Marino.
20900 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20902 PR tree-optimization/65709
20903 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
20904 TREE_TYPE (TREE_TYPE (t)).
20906 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
20909 * lra-int.h (lra_bad_spill_regno_start): New.
20910 * lra.c (lra_bad_spill_regno_start): New.
20911 (lra): Set up lra_bad_spill_regno_start. Set up
20912 lra_constraint_new_regno_start unconditionally.
20913 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
20916 2015-04-09 Marek Polacek <polacek@redhat.com>
20917 Jakub Jelinek <jakub@redhat.com>
20919 PR middle-end/65554
20920 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
20921 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
20924 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
20926 PR rtl-optimization/65693
20927 * combine.c (is_parallel_of_n_reg_sets): Move outside of
20930 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
20933 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
20934 device specs file if "device-specs%s" didn't resolve to a path.
20936 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
20939 * config/i386/i386.c (fixup_modeless_constant): New.
20940 (ix86_expand_args_builtin): Fixup modeless constant operand.
20941 (ix86_expand_round_builtin): Ditto.
20942 (ix86_expand_special_args_builtin): Ditto.
20943 (ix86_expand_builtin): Ditto.
20945 2015-04-09 Jakub Jelinek <jakub@redhat.com>
20948 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
20949 any pow2 integer in between 2 and 0x80000000U inclusive.
20951 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
20953 PR rtl-optimization/65693
20954 * combine.c (is_parallel_of_n_reg_sets): Change first argument
20955 from an rtx_insn * to an rtx.
20956 (try_combine): Adjust both callers. Use it once more.
20958 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20960 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
20961 (chkp_make_static_const_bounds): Search existing
20962 symbol by assembler name. Use make_decl_one_only.
20963 (chkp_get_zero_bounds_var): Remove node search which
20964 is now performed in chkp_make_static_const_bounds.
20965 (chkp_get_none_bounds_var): Likewise.
20967 2015-04-08 Michael Witten <mfwitten@gmail.com>
20969 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
20972 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20974 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
20976 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20978 * doc/extend.texi (__sync Builtins): Fix grammar.
20980 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20982 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
20984 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20986 * varasm.c (emit_local): Move definition of align.
20988 2015-04-08 Julian Brown <julian@codesourcery.com>
20990 * config/nvptx/mkoffload.c (process): Support variable mapping.
20992 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
20994 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
20996 (alpha_write_one_linkage): Correct typo.
20998 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21000 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
21002 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21004 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
21006 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21008 * tree-chkp.h (chkp_insert_retbnd_call): New.
21009 * tree-chkp.c (chkp_insert_retbnd_call): New.
21010 * ipa-split.c (insert_bndret_call_after): Remove.
21011 (split_function): Use chkp_insert_retbnd_call.
21012 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
21013 bounds for instrumented functions.
21015 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
21018 * calls.c (initialize_argument_information): When producing tail
21019 call also turn SSA_NAMES passed by references to original PARM_DECLs
21021 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
21024 * lra-remat.c (do_remat): Process input and non-input insn
21025 registers separately.
21027 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21030 * valtrack.c (debug_lowpart_subreg): New function.
21031 (dead_debug_insert_temp): Use it.
21033 PR middle-end/65680
21034 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
21035 into signed HOST_WIDE_INT the same as negative bit_offset.
21037 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
21039 * ipa-comdats.c (ipa_comdats): Visit all thunks
21040 to set proper comdat group.
21042 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21045 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
21046 on constants for NEON VSTRUCT modes.
21048 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21049 Iain Sandoe <iain@codesourcery.com>
21052 * configure: Regenerate.
21054 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21057 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
21058 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
21059 that LFD is used to load double constants instead of LFS. Add
21060 defaults for all costs structures. Add comments for missing
21061 initialization fields.
21062 (size32_cost): Likewise.
21063 (size64_cost): Likewise.
21064 (rs64a_cost): Likewise.
21065 (mpccore_cost): Likewise.
21066 (ppc403_cost): Likewise.
21067 (ppc405_cost): Likewise.
21068 (ppc440_cost): Likewise.
21069 (ppc476_cost): Likewise.
21070 (ppc601_cost): Likewise.
21071 (ppc603_cost): Likewise.
21072 (ppc604_cost): Likewise.
21073 (ppc604e_cost): Likewise.
21074 (ppc620_cost): Likewise.
21075 (ppc630_cost): Likewise.
21076 (ppccell_cost): Likewise.
21077 (ppc750_cost): Likewise.
21078 (ppc7450_cost): Likewise.
21079 (ppc8540_cost): Likewise.
21080 (ppce300c2c3_cost): Likewise.
21081 (ppce500mc_cost): Likewise.
21082 (ppce500mc64_cost): Likewise.
21083 (ppce5500_cost): Likewise.
21084 (ppce6500_cost): Likewise.
21085 (titan_cost): Likewise.
21086 (power4_cost): Likewise.
21087 (power6_cost): Likewise.
21088 (power7_cost): Likewise.
21089 (power8_cost): Likewise.
21090 (ppca2_cost): Likewise.
21091 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
21093 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
21094 instead of XXLOR to copy SFmode to clear out dirty bits created
21095 when SFmode denormals are generated.
21096 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
21097 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
21099 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21101 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
21102 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
21103 * config/aarch64/aarch64-tune.md: Regenerate.
21105 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21107 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
21108 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
21109 * config/arm/arm-cores.def (exynos-m1): New core.
21110 * config/arm/arm-tune.md: Regenerate.
21111 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
21112 * config/arm/bpabi.h: Likewise.
21114 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21116 * ipa-cp (set_single_call_flag): Remove too
21117 restrictive assert.
21119 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
21121 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
21122 GOMP_offload_unregister from the destructor.
21124 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21126 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
21127 flags for instrumentation thunk.
21128 (chkp_produce_thunks): Likewise.
21130 2015-04-05 Martin Liska <mliska@suse.cz>
21133 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
21134 has computed data structure.
21135 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21137 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
21139 * invoke.texi (inline-unit-growth): Increase growth to 20%
21140 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
21142 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
21145 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
21147 (lra_rematerialization_iter): New.
21148 * lra.c (lra): Initialize lra_rematerialization_iter.
21149 Stop updating lra_constraint_new_regno_start after switching of
21150 inheritance and rematerialization.
21151 * lra-remat.c (lra_rematerialization_iter): New.
21152 (lra_remat): Add printing pass iteration. Do rematerialization
21153 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
21155 2015-04-04 Richard Biener <rguenther@suse.de>
21157 PR tree-optimization/64909
21158 PR tree-optimization/65660
21159 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
21160 to take a cost vector for scalar iteration cost.
21161 (vect_get_single_scalar_iteration_cost): Likewise.
21162 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
21163 Compute the scalar iteration cost into a cost vector.
21164 (vect_get_known_peeling_cost): Use the scalar cost vector to
21165 account for the cost of the peeled iterations.
21166 (vect_estimate_min_profitable_iters): Likewise.
21167 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21170 2015-04-04 Alan Modra <amodra@gmail.com>
21174 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
21175 0.0 constant unless TARGET_VSX.
21176 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
21179 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21182 * ipa-inline-transform.c (inline_call): Skip sanity check to work
21185 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21188 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
21189 speculative indirect edges to avoid ordering issue.
21191 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21194 * ipa-inline.c (edge_badness): Add combined size to the denominator.
21196 2015-04-03 Jakub Jelinek <jakub@redhat.com>
21198 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
21199 TYPE_ARTIFICIAL on the .omp_data* types.
21201 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21203 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
21204 instrumentation thunks.
21206 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21208 * config/i386/i386.c (ix86_expand_call): Avoid nested
21209 PARALLEL in returned call value.
21211 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21213 * lto-cgraph.c (input_cgraph_1): Always link instrumented
21214 assembler name with original one.
21216 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21218 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
21220 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21222 Revert parts of r216820.
21223 * config/i386/i386.md (movqi_internal): Correct type calculation
21224 for alternatives 3 and 5.
21226 2015-04-02 Jakub Jelinek <jakub@redhat.com>
21228 PR preprocessor/61977
21229 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
21230 predefine __vector/__bool/__pixel macros nor context sensitive
21231 macros for CLK_ASM.
21232 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
21234 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
21236 * config/pa/pa.c (pa_output_move_double): Directly handle register
21237 indexed memory operand. Simplify handling of scaled register indexed
21240 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21243 * config/i386/linux-common.h (MPX_SPEC): New.
21244 (CHKP_SPEC): Add MPX_SPEC.
21245 * doc/invoke.texi (-fcheck-pointer-boudns): Document
21246 possible issues with '-z bndplt' support in linker.
21248 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21250 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
21251 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
21252 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
21253 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
21254 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
21256 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
21258 * config/i386/sync.md (UNSPEC_MOVA): Remove.
21259 (atomic_load<mode>): Change operand 0 predicate to
21260 nonimmediate_operand and fix up the destination when needed.
21262 (atomic_loaddi_fpu): Use UNSPEC_LDA.
21263 (atomic_store<mode>): Change operand 1 predicate to
21264 nonimmendate_operand and move the source to register when needed.
21266 (atomic_store<mode>_1): Use UNSPEC_STA.
21267 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
21268 Fix moves from memory operand. Use UNSPEC_STA.
21270 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21272 * expmed.c (strict_volatile_bitfield_p): Check that the access will
21273 not cross a MODESIZE boundary.
21274 (store_bit_field, extract_bit_field): Added assertions in the
21275 strict volatile bitfields code path.
21277 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
21280 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
21281 Increase args array size by one to avoid buffer overflow.
21283 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
21285 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21287 * ipa-inline.c (edge_badness): Add wrapper penalty.
21288 (sum_callers): Move up.
21289 (inline_small_functions): Set single_caller.
21290 * ipa-inline.h (inline_summary): Add single_caller.
21291 * ipa-split.c (split_function): Set split_part.
21292 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
21293 * cgraph.h (cgraph_node): Add split_part.
21295 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
21298 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
21299 Do not split operands 0 and operands 2 to halfmode.
21300 (atomic_compare_and_swap<mode>): Update for
21301 atomic_compare_and_swap<dwi>_doubleword changes.
21303 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
21305 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
21306 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
21307 no caching is done.
21309 2015-03-31 Martin Liska <mliska@suse.cz>
21312 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
21313 has already filled up function summary.
21314 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21316 2015-03-31 Richard Biener <rguenther@suse.de>
21318 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
21321 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
21323 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
21325 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
21326 (s390_asm_output_function_label): Adapt to new signature of
21327 s390_function_num_hotpatch_hw
21328 Optimise the code generating assembler output.
21329 Add comments to assembler file.
21331 2015-03-31 Richard Biener <rguenther@suse.de>
21333 PR middle-end/65626
21334 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
21335 of the noreturn call so it is last and cleanup_control_flow_bb
21336 can do the CFG part.
21338 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
21341 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
21342 same_comdat_group for external symbols.
21343 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
21344 infinite same_comdat_group traversal loop.
21346 2015-03-31 Jakub Jelinek <jakub@redhat.com>
21349 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
21350 automatically to $headers.
21352 2015-03-30 Jakub Jelinek <jakub@redhat.com>
21355 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
21356 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
21358 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
21360 * ipa-prop.c (param_type_may_change_p): Likewise.
21361 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
21362 (remove_unused_scope_block_p): Add in_ctor_dtor_block
21363 argument. Before inlining, preserve
21364 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
21365 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
21367 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
21369 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21372 * ipa-inline.c (edge_badness): Base denominator on callee's
21375 2015-03-27 Martin Jambor <mjambor@suse.cz>
21378 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
21379 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
21380 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
21381 node_calling_single_call.
21382 * ipa-cp.c (count_callers): New function.
21383 (set_single_call_flag): Likewise.
21384 (initialize_node_lattices): Count callers and set single_flag_call if
21386 (incorporate_penalties): New function.
21387 (good_cloning_opportunity_p): Use it, dump new flags.
21388 (propagate_constants_topo): Set node_within_scc flag if appropriate.
21389 * doc/invoke.texi (ipa-cp-recursion-penalty,
21390 ipa-cp-single-call-pentalty): Document.
21392 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21395 * symtab.c (symtab_node::get_partitioning_class): Register vars
21397 * varpool.c (symbol_table::output_variables) Do not assemble unefined
21398 decls for non-symbols.
21400 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
21403 * output.h (default_binds_local_p_2): New.
21404 * varasm.c (default_binds_local_p_2): Renamed to ...
21405 (default_binds_local_p_3): This. Don't return true on protected
21406 data symbol if protected data may be external.
21407 (default_binds_local_p): Use default_binds_local_p_3.
21408 (default_binds_local_p_1): Likewise.
21409 (default_binds_local_p_2): New.
21410 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
21411 default_binds_local_p_2 if TARGET_MACHO is undefined.
21413 2015-03-27 Jakub Jelinek <jakub@redhat.com>
21416 * config/i386/i386.c (legitimize_pic_address): If base
21417 is SYMBOL_REF or LABEL_REF using %rip addressing, force
21418 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
21420 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21423 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
21426 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21429 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
21430 of optimized out indirect call.
21431 (redirect_to_unreachable): Always build symbol table node for
21432 BUILT_IN_UNREACHABLE
21434 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
21437 * ira-costs.c (record_reg_classes): Process all constraint string
21440 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
21442 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
21446 * config/c6x/constraints.md (S3): New constraint.
21447 * config/c6x/c6x.md (real_jump): Use it.
21449 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21451 PR middle-end/65595
21452 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
21453 do redirection if the call is not optimized out.
21455 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
21458 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
21459 (fchkp-check-incomplete-type): Add LTO.
21460 (fchkp-zero-input-bounds-for-main): Likewise.
21461 (fchkp-first-field-has-own-bounds): Likewise.
21462 (fchkp-narrow-bounds): Likewise.
21463 (fchkp-narrow-to-innermost-array): Likewise.
21464 (fchkp-use-static-bounds): Likewise.
21465 (fchkp-use-static-const-bounds): Likewise.
21466 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21468 2015-03-27 Marek Polacek <polacek@redhat.com>
21470 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
21472 2015-03-27 Marek Polacek <polacek@redhat.com>
21475 * ubsan.c (ubsan_create_edge): New function.
21476 (instrument_bool_enum_load): Call it.
21477 (instrument_nonnull_arg): Likewise.
21478 (instrument_nonnull_return): Likewise.
21479 (instrument_object_size): Likewise.
21481 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21483 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
21486 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21489 * lto-streamer.h (class lto_location_cache): New.
21490 (struct data_in): Add location_cache.
21491 (lto_input_location): Update prototype.
21492 (stream_input_location_now): New.
21493 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
21494 pointer to location.
21495 (stream_input_location): Update.
21496 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
21497 (warn_odr): Apply location cache before warning.
21498 (lto_input_location): Update prototype.
21499 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
21500 Use stream_input_location_now.
21501 * lto-streamer-in.c (lto_location_cache::current_cache): New static
21503 (lto_location_cache::cmp_loc): New function.
21504 (lto_location_cache::apply_location_cache): New function.
21505 (lto_location_cache::accept_location_cache): New function.
21506 (lto_location_cache::revert_location_cache): New function.
21507 (lto_location_cache::input_location): New function.
21508 (lto_input_location): Do location caching.
21509 (stream_input_location_now): New function.
21510 (input_eh_region, input_struct_function_base): Use
21511 stream_input_location_now.
21512 (lto_data_in_create): use new.
21513 (lto_data_in_delete): Use delete.
21514 * tree-streamer-in.c (unpack_ts_block_value_fields,
21515 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
21516 lto_input_ts_exp_tree_pointers): Update for cached location api.
21518 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21521 * passes.def: Add pass_nothrow.
21522 * ipa-pure-const.c: (pass_data_nothrow): New.
21523 (pass_nothrow): New.
21524 (pass_nothrow::execute): New.
21525 (make_pass_nothrow): New.
21526 * tree-pass.h (make_pass_nothrow): Declare.
21528 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21530 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
21531 edge to change by speculation resolution or redirection.
21532 (edge_set_predicate): Likewise.
21533 (inline_summary_t::duplicate): Likewise.
21534 (remap_edge_summaries): Likewise.
21536 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21538 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
21540 (can_inline_edge_p): Relax option matching for always inline functions.
21542 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
21545 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
21546 Check operand 4 and operand 0 for equality.
21547 (avx512f_vextract<shuffletype>32x4_1_maskm):
21548 Check operand 6 and operand 0 for equality.
21549 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
21551 (vec_extract_hi_<mode>_maskm): Ditto.
21553 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21555 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
21556 dead calls back to live.
21557 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
21559 (cgraph_node::verify_node): ... here; verify only callee edges,
21561 * cif-code.def (CILK_SPAWN): New code.
21563 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21565 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
21566 (edge_set_predicate): Use it to mark unreachable edges.
21567 (inline_summary_t::duplicate): Remove unnecesary code.
21568 (remap_edge_summaries): Likewise.
21569 (dump_inline_summary): Report contains_cilk_spawn.
21570 (compute_inline_parameters): Compute contains_cilk_spawn.
21571 (inline_read_section, inline_write_summary): Stream
21572 contains_cilk_spawn.
21573 * ipa-inline.c (can_inline_edge_p): Do not touch
21574 DECL_STRUCT_FUNCTION that may not be available;
21575 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
21576 remove check for callee_fun->can_throw_non_call_exceptions and
21577 replace it by optimization attribute check; check for flag_exceptions.
21578 * ipa-inline-transform.c (inline_call): Maintain
21579 DECL_FUNCTION_PERSONALITY
21580 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
21582 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21584 PR tree-optimization/65551
21585 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
21586 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
21588 2015-03-26 Richard Biener <rguenther@suse.de>
21590 PR middle-end/65555
21591 * tree-cfg.c (verify_gimple_call): Do not require a call to
21592 have no LHS if it wasn't recognized as control altering yet.
21594 2015-03-26 Jakub Jelinek <jakub@redhat.com>
21596 PR tree-optimization/64715
21597 * passes.def: Add another instance of pass_object_sizes before ccp1.
21598 * tree-object-size.c (pass_object_sizes::execute): In
21599 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
21600 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
21601 __bos result and the computed constant. Remove redundant
21602 checks, obsoleted by gimple_call_builtin_p test.
21604 * var-tracking.c (variable_tracking_main_1): Don't track
21605 variables for targetm.no_register_allocation targets.
21607 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
21609 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
21610 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
21612 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
21615 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
21616 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
21617 0.0 is correctly setup.
21618 (extenddftf2_internal): Likewise.
21620 2015-03-25 Sebastian Pop <s.pop@samsung.com>
21622 PR tree-optimization/65177
21623 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
21625 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
21626 edges not adjacent on the path to the original code.
21628 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
21631 * doc/install.texi (Building a native compiler): Document new
21632 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
21633 configuration assumes that the host supports the linker plugin.
21635 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
21638 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
21639 chain for generated call.
21641 2015-03-25 Richard Biener <rguenther@suse.de>
21643 * passes.c (pass_manager::execute_early_local_passes): Guard
21644 execution of pass_chkp_instrumentation_passes with
21645 flag_check_pointer_bounds.
21646 (pass_chkp_instrumentation_passes::gate): Likewise.
21648 2015-03-25 Martin Liska <mliska@suse.cz>
21650 PR tree-optimization/65538
21651 * symbol-summary.h (function_summary::~function_summary):
21652 Relese memory for allocated summaries.
21653 (function_summary::release): New function.
21655 2015-03-25 Jakub Jelinek <jakub@redhat.com>
21658 * lto-streamer-out.c (DFS::worklist): New struct.
21659 (DFS::worklist_vec): New data member.
21660 (DFS::next_dfs_num): Remove.
21661 (DFS::DFS): Rewritten using worklist instead of recursion,
21662 using most of code from DFS::DFS_write_tree.
21663 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
21664 pass it to DFS_write_tree calls.
21665 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
21666 quick initial checks push it into worklist_vec and return.
21668 2015-03-25 Richard Biener <rguenther@suse.de>
21670 PR middle-end/65519
21671 * genmatch.c (expr::gen_transform): Re-write to avoid
21672 using gimple_build.
21674 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21676 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
21678 2015-03-25 Bin Cheng <bin.cheng@arm.com>
21680 * config/arm/arm.opt (print_tune_info): New option.
21681 * config/arm/arm.c (arm_print_tune_info): New function.
21682 (arm_file_start): Call arm_print_tune_info.
21683 * config/arm/arm-protos.h (struct tune_params): Add comment.
21684 * doc/invoke.texi (@item -mprint-tune-info): New item.
21685 (-mtune): mention it in ARM Option Summary.
21687 2015-03-25 DJ Delorie <dj@redhat.com>
21689 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
21692 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
21693 Martin Liska <mliska@suse.cz>
21695 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
21696 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
21697 (sem_item::add_type): New function.
21698 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
21699 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
21700 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
21701 (sem_function::equals_wpa): Fix typo.
21702 * ipa-icf.h (sem_item::add_type): New function.
21703 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
21706 2015-03-24 Jakub Jelinek <jakub@redhat.com>
21708 PR tree-optimization/65533
21709 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
21710 with swapped operands, call vect_free_slp_tree on
21711 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
21714 2015-03-24 Richard Biener <rguenther@suse.de>
21716 PR middle-end/65517
21717 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
21718 for fixup if necessary.
21720 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
21722 * doc/extend.texi (Function Attributes): Add @cindex entries
21723 for all attributes and regularize their format. Delete text
21724 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
21725 information about "eightbit_data", "tiny_data", and "model"
21726 variable attributes to the Variable Attributes section. Fix
21727 some obvious typos and copy-editing issues.
21728 (Variable Attributes, Type Attributes): Likewise add/fix
21729 @cindex entries for all attributes.
21731 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21734 * tree-chkp.c (chkp_build_returned_bound): Ignore
21735 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
21737 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
21740 * config/sh/predicates.md (simple_mem_operand,
21741 displacement_mem_operand): Add test for reg.
21742 (short_displacement_mem_operand): Test for displacement_mem_operand
21743 before invoking sh_disp_addr_displacement.
21744 * config/sh/constraints.md (Sdd, Sra): Simplify.
21745 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
21746 Remove redundant displacement_mem_operand tests.
21748 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
21751 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
21752 the same -mmcu=MCU more than once.
21754 2015-03-23 Jakub Jelinek <jakub@redhat.com>
21757 * ipa-devirt.c: Remove duplicate demangle.h include.
21760 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
21762 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
21763 REG_POINTER on *destptr after adjusting it for prologue size.
21766 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
21767 ultimate_alias_target ()->order ints instead of
21768 ultimate_alias_target () pointers.
21770 2015-03-23 Richard Biener <rguenther@suse.de>
21772 PR tree-optimization/65518
21773 * tree-vect-stmts.c (vectorizable_load): Reject single-element
21774 interleaving cases we generate absymal code for.
21776 2015-03-23 Richard Biener <rguenther@suse.de>
21778 PR tree-optimization/65494
21779 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
21781 (vect_analyze_slp_instance): But do that here, always and once.
21783 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21785 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
21786 adding T or multiplying by T+1 and subracting T.
21788 2015-03-22 Jeff Law <law@redhat.com>
21790 PR rtl-optimization/64317
21791 * Makefile.in (OBJS): Add gcse-common.c
21792 * gcse.c: Include gcse-common.h
21793 (struct modify_pair_s): Move structure definition to gcse-common.h
21794 (compute_transp): Move function to gcse-common.c.
21795 (canon_list_insert): Similarly.
21796 (record_last_mem_set_info): Break out some code and put it into
21797 gcse-common.c. Call into the new common code.
21798 (compute_local_properties): Pass additional arguments to compute_transp.
21799 * postreload-gcse.c: Include gcse-common.h and df.h
21800 (modify_mem_list_set, blocks_with_calls): New variables.
21801 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
21802 (get_bb_avail_insn): Pass in the expression index too.
21803 (alloc_mem): Allocate memory for the new bitmaps and lists.
21804 (free_mem): Free memory for the new bitmaps and lists.
21805 (insert_expr_in_table): Record a bitmap index for each entry we
21807 (record_last_mem_set_info): Call into common code in gcse-common.c.
21808 (get_bb_avail_insn): If no available insn was found in the requested
21809 BB. If BB has a single predecessor, see if the expression is
21810 transparent in BB and available in that single predecessor.
21811 (compute_expr_transp): New wrapper for compute_transp.
21812 (eliminate_partially_redundant_load): Pass expression's bitmap_index
21813 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
21814 (gcse_after_reload_main): If there are elements in the hash table,
21815 then compute transparency for all the elements in the hash table.
21816 * gcse-common.h: New file.
21817 * gcse-common.c: New file.
21819 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
21821 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
21823 (System Headers): Likewise.
21825 (Traditional macros): Likewise.
21826 (Invocation): Likewise.
21827 (Option Index): Likewise.
21828 * doc/cppopts.texi (-M): Likewise.
21829 (-finput-charset): Likewise.
21830 (--help): Likewise.
21831 * doc.invoke.texi (AVR Options): Likewise.
21832 (V850 Options): Likewise.
21834 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
21837 * ipa-devirt.c: Include demangle.h
21838 (odr_type_d): Add field rtti_broken.
21839 (odr_subtypes_equivalent_p): Do not require name to match.
21840 (compare_virtual_tables): Fix typo; if type already has ODR violation,
21841 bypass the tests; be ready for function referneces in vtables that are
21842 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
21843 (warn_odr): Give up for nameless types.
21844 (warn_types_mismatch): Report mismatch in mangled names;
21845 report mismatch in anonymous namespaces; look into component types to
21846 give useful error; report when mismatch is dragged in from other ODR
21848 (odr_types_equivalent_p): Match types for being polymorphic; avoid
21849 duplicated diagnostics.
21850 (add_type_duplicate): Reorder checks so more informative ones come
21851 first; fix typo; do not output "the extra base is defined here" when
21853 (BINFO_N_BASE_BINFOS): Relax sanity check.
21855 2015-03-22 Martin Liska <mliska@suse.cz>
21856 Jakub Jelinek <jakub@redhat.com>
21858 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
21859 masks that can potentially include a builtin.
21860 (ix86_add_new_builtins): Introduce fast filter for isa values
21861 that cannot trigger builtin inclusion.
21863 2015-03-22 Martin Liska <mliska@suse.cz>
21865 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
21866 (sem_item::update_hash_by_local_refs): Likewise.
21867 (sem_variable::get_hash): Empty line is fixed.
21868 (sem_item_optimizer::execute): Include adding of hash references.
21869 (sem_item_optimizer::update_hash_by_addr_refs): New function.
21870 (sem_item_optimizer::build_hash_based_classes): Use local hash.
21871 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
21872 (sem_item::update_hash_by_local_refs): Likewise.
21874 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21877 * ipa-comdats.c (enqueue_references): Walk through thunks.
21878 (ipa_comdats): Likewise.
21879 (set_comdat_group_1): New function.
21881 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21884 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
21887 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
21888 Gerald Pfeifer <gerald@pfeifer.com>
21890 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
21892 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
21893 Sandra Loosemore <sandra@codesourcery.com>
21895 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
21896 function parameter declaration.
21897 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
21898 Update arguments to nios2_adjust_call_address().
21899 (sibcall_internal): Rename from *sibcall.
21900 (sibcall_value_internal): Rename from *sibcall_value.
21901 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
21902 (nios2_large_got_address): Add target temp reg parameter.
21903 (nios2_got_address): Adjust call to nios2_large_got_address, add
21904 force_reg around it.
21905 (nios2_load_pic_address): Add target temp reg parameter, replace call
21906 to nios2_got_address with corresponding code.
21907 (nios2_legitimize_constant_address): Update call to
21908 nios2_load_pic_address.
21909 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
21910 to use temp reg for PIC loading purposes.
21911 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
21912 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21913 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
21915 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21917 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
21918 usage of "the @option{...}".
21919 (-Wopenmp-simd): Likewise.
21920 (-fsanitize-recover): Likewise.
21921 (-fsanitize-undefined-trap-on-error): Likewise.
21923 (tracer-dynamic-coverage-feedback): Likewise.
21924 (reorder-block-duplicate-feedback): Likewise.
21925 (loop-unroll-jam-size): Likewise.
21928 (-mabs=legacy): Likewise.
21929 (-mupper-regs-df): Likewise.
21930 (-mupper-regs-sf): Likewise.
21931 (-mpointers-to-nested-functions): Likewise.
21933 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21935 * doc/extend.texi (Cilk Plus Builtins): Add markup.
21937 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
21939 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
21940 additional index entries and cross-references.
21941 (-fchkp-check-incomplete-type): Likewise.
21942 (-fchkp-first-field-has-own-bounds): Likewise.
21943 (-fchkp-narrow-to-innermost-array): Likewise.
21944 (-fchkp-use-fast-string-functions): Likewise.
21945 (-fchkp-use-nochk-string-functions): Likewise.
21946 (-fchkp-use-static-const-bounds): Likewise.
21947 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21948 (-fchkp-instrument-marked-only): Likewise.
21949 (-fchkp-use-wrappers): Likewise.
21950 (-static-libmpx): Likewise.
21951 (-static-libmpxwrappers): Likewise.
21952 * doc/extend.texi (bnd_legacy): Likewise.
21953 (bnd_instrument): Likewise.
21954 (bnd_variable_size): Likewise.
21955 (Pointer Bounds Checker builtins): Likewise.
21957 2015-03-21 Tom de Vries <tom@codesourcery.com>
21959 PR tree-optimization/65458
21960 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
21961 * cgraph.h (cgraph_node): Add parallelized_function field.
21962 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
21963 (input_overwrite_node): Read parallelized_function field.
21964 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
21965 parallelized_function on cgraph_node for child_fn.
21966 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
21967 Remove include of gt-tree-parloops.h.
21968 (parallelized_functions): Remove static variable.
21969 (parallelized_function_p): Rewrite using parallelized_function field of
21971 (create_loop_fn): Remove adding to parallelized_functions.
21972 * Makefile.in (GTFILES): Remove tree-parloops.c
21974 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
21976 PR rtl-optimization/64366
21977 * lra.c (lra_update_insn_regno_info): Consider regs in
21978 CALL_INSN_FUNCTION_USAGE memory.
21980 2015-03-20 Richard Biener <rguenther@suse.de>
21982 PR middle-end/64715
21983 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
21984 for type comparison and gcc_checking_assert.
21985 (chrec_fold_plus_poly_poly): Likewise.
21986 (chrec_fold_multiply_poly_poly): Likewise.
21987 (chrec_convert_1): Likewise.
21988 * gimplify.c (gimplify_expr): Remove premature folding of
21989 &X + CST to &MEM[&X, CST].
21991 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21993 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
21995 (ipa_inline): Recompute inline_failed codes.
21996 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21997 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
22000 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
22002 PR rtl-optimization/60851
22003 * recog.c (constrain_operands): Accept a pseudo register before reload
22004 for LRA enabled targets.
22006 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
22009 * config/rs6000/predicates.md (easy_fp_constant): Remove special
22010 -ffast-math handling that kept non-0 constants live in the RTL
22011 until reload. Remove logic testing the number of instructions it
22012 took to create a constant in a GPR that was never used, due to a
22013 test for soft-float earlier.
22014 (memory_fp_constant): Delete, no longer used.
22016 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
22017 alternatives for loading non-0 constants into GPRs for hard
22018 floating point that is no longer needed due to changes in
22019 easy_fp_constant. Add support for loading 0.0 into GPRs.
22020 (mov<mode>_hardfloat32): Likewise.
22021 (mov<mode>_hardfloat64): Likewise.
22022 (mov<mode>_64bit_dm): Likewise.
22023 (movtd_64bit_nodm): Likewise.
22024 (pre-reload move FP constant define_split): Delete define_split,
22025 since it is no longer used.
22026 (extenddftf2_internal): Remove GHF constraints that are not valid
22029 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
22031 PR rtl-optimization/63491
22032 * lra-constraints.c (check_and_process_move): Use src instead of
22033 sreg. Remove some dead code.
22035 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
22038 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
22039 (sem_variable::merge): Likewise.
22041 2015-03-19 Martin Liska <mliska@suse.cz>
22044 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
22045 all fields of cgraph_thunk_info.
22047 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
22049 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
22050 clone instrumented thunks.
22052 2015-03-19 Richard Biener <rguenther@suse.de>
22055 2015-03-10 Richard Biener <rguenther@suse.de>
22057 PR middle-end/63155
22058 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22059 * tree-ssa-coalesce.c: Include timevar.h.
22060 (attempt_coalesce): Handle graph being NULL.
22061 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22062 Split out abnormal coalescing to ...
22063 (perform_abnormal_coalescing): ... this function.
22064 (coalesce_ssa_name): Perform abnormal coalescing without computing
22066 (verify_ssa_coalescing_worker): New function.
22067 (verify_ssa_coalescing): Likewise.
22069 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
22070 Jakub Jelinek <jakub@redhat.com>
22073 * tsan.c (instrument_gimple): Clear tail call flag on
22076 2015-03-19 Jakub Jelinek <jakub@redhat.com>
22079 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
22080 call in the return bb.
22081 (find_split_points): Add RETURN_BB argument, don't call
22083 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
22084 if true append TSAN_FUNC_EXIT internal call after the call to
22085 the split off function.
22086 (execute_split_functions): Call find_return_bb here.
22087 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
22088 Adjust find_split_points and split_function calls.
22090 2015-03-18 DJ Delorie <dj@redhat.com>
22092 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
22093 (iorqi3_virt): Likewise.
22095 2015-03-18 Tom de Vries <tom@codesourcery.com>
22097 * tree-parloops.c (parallelize_loops): Make static.
22098 * tree-parloops.h (parallelize_loops): Remove extern declaration.
22100 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
22102 PR middle-end/64491
22104 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
22106 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
22107 condition would be removed due to undefined behaviour.
22109 2015-03-18 Martin Liska <mliska@suse.cz>
22112 * cgraph.c (cgraph_node::get_create): Remove unnecessary
22113 xstrdup_for_dump wrapper.
22114 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
22116 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
22117 with xstrdup_for_dump.
22118 (sem_variable::equals): Likewise.
22119 (sem_item_optimizer::read_section): Use symtab_node::name instead of
22121 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
22122 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
22123 symtab_node::asm_name with xstrdup_for_dump.
22124 (congruence_class::dump): Use symtab_node::name instead of
22126 * ipa-icf.h (symtab_node::name): Remove.
22127 (symtab_node::asm_name): Likewise.
22129 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22131 PR tree-optimization/65450
22132 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
22134 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
22135 it instead of duplicate_ssa_name_ptr_info.
22138 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
22140 2015-03-18 Richard Biener <rguenther@suse.de>
22142 * tree-data-ref.h (struct access_matrix): Remove.
22143 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
22144 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
22145 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
22146 (am_vector_index_for_loop): Likewise.
22147 (struct data_reference): Remove access_matrix member.
22148 (DR_ACCESS_MATRIX): Remove.
22149 (lambda_vector_new): Add comment.
22150 (lambda_matrix_new): Use XOBNEWVEC.
22152 2015-03-18 Richard Biener <rguenther@suse.de>
22154 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
22155 (pass_ch::execute): Cleanup the CFG only if we did sth.
22156 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
22158 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22160 * expmed.c (synth_mult): Use std::swap instead of manually
22161 swapping algorithms.
22163 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22166 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
22168 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
22171 * config/avr/avr.opt (-nodevicelib): New option.
22172 * doc/invoke.texi (AVR Options): Document it.
22173 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
22174 libgcc.a, libc.a, libm.a.
22175 * config/avr/specs.h: Same.
22176 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
22177 which don't (directly) depend on the device. Print more help.
22178 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
22179 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
22180 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
22182 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
22183 for specs file name.
22184 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
22185 * config/avr/avr-mcus.def: Adjust initializers and comments.
22187 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
22189 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
22190 DECL_ONE_ONLY to check if decl is one only.
22191 * ipa-split.c (consider_split): Limit splitt of one only functions.
22193 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22195 PR tree-optimization/65427
22196 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
22198 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
22200 2015-03-16 Marek Polacek <polacek@redhat.com>
22202 * cgraph.h (add_new_static_var): Remove declaration.
22203 * varpool.c (add_new_static_var): Remove function.
22205 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22207 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
22208 instead of vec<tree> * with vec_alloc and release for args.
22211 PR middle-end/65431
22212 * omp-low.c (delete_omp_context): Only splay_tree_delete
22213 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
22214 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
22216 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
22219 * cfgexpand.c (align_base): New function.
22220 (alloc_stack_frame_space): Call it.
22221 (expand_stack_vars): Align prev_frame to be sure
22222 data->asan_vec elements aligned properly.
22224 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
22226 PR middle-end/65409
22227 * expr.c (store_field): Do not do a direct block copy if the source is
22228 a PARALLEL with BLKmode.
22230 2015-03-16 Tom de Vries <tom@codesourcery.com>
22232 PR middle-end/65414
22234 2015-03-12 Tom de Vries <tom@codesourcery.com>
22236 PR rtl-optimization/64895
22237 * lra-lives.c (check_pseudos_live_through_calls): Use
22238 actual_call_used_reg_set instead of call_used_reg_set, if available.
22240 2015-03-16 Alan Modra <amodra@gmail.com>
22243 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
22244 Modify Z->r bswapdi splitter to use dest in place of scratch.
22245 In r->Z and Z->r bswapdi splitter rename word_high, word_low
22246 to word1, word2 and rearrange logic to suit.
22247 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
22248 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
22249 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
22250 Add one '?' on r->r. Modify Z->r splitter to avoid need for
22253 2015-03-14 Jakub Jelinek <jakub@redhat.com>
22255 PR tree-optimization/65369
22256 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
22257 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
22258 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
22260 PR tree-optimization/65418
22261 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
22262 are casts in the first PLUS_EXPR operand, ensure tbias and
22263 *totallowp are in the inner type.
22265 PR rtl-optimization/65401
22266 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
22267 argument. If true, adjust_address_nv of x with big-endian
22268 correction for the mode widening to GET_MODE (y).
22269 (make_field_assignment): Don't do MEM mode widening here.
22270 Use MEM_P instead of GET_CODE == MEM.
22272 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
22274 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
22275 the external decls.
22277 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22280 * config/arm/arm.c (arm_gen_constant, AND case): Use
22281 ARM_SIGN_EXTEND when constructing AND mask.
22283 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22285 * graph.c (print_graph_cfg): Make function names visible and append
22286 parenthesis to it. Also make groups of basic blocks belonging to the
22287 same function visible.
22289 2015-03-12 Richard Biener <rguenther@suse.de>
22291 PR middle-end/44563
22292 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
22293 to avoid quadratic behavior with inline expansion splitting blocks.
22294 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
22295 with the successor if the predecessor will be merged with it.
22296 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
22297 entry block with its successor.
22299 2015-03-13 Richard Biener <rguenther@suse.de>
22301 PR middle-end/44563
22302 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
22303 (cleanup_tree_cfg_1): Do not call it.
22304 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
22305 (fixup_noreturn_call): Mark the stmt as control altering.
22306 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
22308 (pass_data_fixup_cfg): Produce a dump file.
22309 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
22310 (need_noreturn_fixup): New global.
22311 (pass_dominator::execute): Fixup queued noreturn calls.
22312 (optimize_stmt): Queue calls that became noreturn for fixup.
22313 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
22314 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
22315 (el_to_fixup): New global.
22316 (eliminate_dom_walker::before_dom_childre): Queue calls that
22317 became noreturn for fixup.
22318 (eliminate): Fixup queued noreturn calls.
22319 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
22320 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
22321 (substitute_and_fold_dom_walker::before_dom_children): Queue
22322 alls that became noreturn for fixup.
22323 (substitute_and_fold): Fixup queued noreturn calls.
22325 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
22327 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
22328 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
22329 are building; for methods check ODR type of class they belong to if
22330 they may lead to a polymorphic call.
22331 (sem_function::compare_polymorphic_p): Be bit smarter about testing
22332 when function may lead to a polymorphic call.
22333 (sem_function::compare_type_list): Remove.
22334 (sem_variable::equals): Update use of compatible_types_p.
22335 (sem_variable::parse_tree_refs): Remove.
22336 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
22338 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
22340 (func_checker::compatible_polymorphic_types_p): Break out from ...
22341 (unc_checker::compatible_types_p): ... here.
22342 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
22344 (unc_checker::compatible_types_p): Update.
22345 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
22348 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22350 PR rtl-optimization/65235
22351 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
22352 When first element of vec_concat is const_int, calculate its size
22353 using second element.
22355 2015-03-12 Richard Biener <rguenther@suse.de>
22357 PR middle-end/65270
22358 * fold-const.c (operand_equal_p): Fix ordering of resetting
22359 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
22361 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
22363 * config/s390/s390.c (s390_reorg): Move code to output nops after label
22365 (s390_asm_output_function_label): Likewise.
22366 * config/s390/s390.c (s390_asm_output_function_label):
22367 Fix function label alignment with -mhtopatch.
22368 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
22369 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
22370 ("nop_2_byte"): New define_insn.
22371 ("nop_4_byte"): Likewise.
22372 ("nop_6_byte"): Likewise.
22373 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
22374 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
22376 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22379 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
22382 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22385 * toplev.c (process_options): Restrict Pointer Bounds Checker
22386 usage with Address Sanitizer.
22388 2015-03-12 Richard Biener <rguenther@suse.de>
22390 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
22392 * omp-low.c (expand_omp_taskreg): Split block before removing
22394 (expand_omp_target): Likewise.
22395 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
22396 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
22397 stmt to split_block.
22399 2015-03-12 Tom de Vries <tom@codesourcery.com>
22401 PR rtl-optimization/64895
22402 * lra-lives.c (check_pseudos_live_through_calls): Use
22403 actual_call_used_reg_set instead of call_used_reg_set, if available.
22405 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22407 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
22408 (cgraph_node::remove): Likewise.
22409 (cgraph_node::get_untransformed_body): Likewise.
22410 * varpool.c (varpool_node::remove): Likewise.
22411 (varpool_node::get_constructor): Add sanity check.
22413 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
22415 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
22417 (-fabi-compat-version): Likewise.
22418 (-ffriend-injection): Likewise.
22419 (-Wdeclaration-after-statement): Likewise.
22420 (-fomit-frame-pointer): Likewise.
22421 (-ftree-coalesce-inlined-vars): Likewise.
22422 (-fvisibility=): Likewise.
22423 * doc/extend.texi (Typeof): Likewise.
22424 (Zero Length): Likewise.
22425 (Escaped Newlines): Likewise.
22426 (Compound Literals): Likewise.
22427 (Function Attributes): Likewise.
22428 (Label Attributes): Likewise.
22429 (Type Attributes): Likewise.
22430 (Function Names): Likewise.
22431 (Other Builtins): Likewise.
22432 (Function Specific Option Pragmas): Likewise.
22433 (C++ Interface): Likewise.
22435 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
22437 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
22439 2015-03-11 Marek Polacek <polacek@redhat.com>
22441 PR tree-optimization/65388
22442 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
22444 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22447 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
22448 * configure: Regenerate.
22449 * config.in: Regenerate.
22450 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
22451 [-mn-flash]: Document it.
22452 [__AVR_ARCH__]: Document avrtiny.
22454 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
22455 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
22456 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
22458 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22460 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
22462 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22465 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
22466 allow reloads of PLUS in floating point/VSX registers.
22468 2015-03-11 Junmo Park <junmoz.park@samsung.com>
22470 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
22471 crypto_sha256_fast.
22472 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
22474 2015-03-11 Richard Biener <rguenther@suse.de>
22476 PR tree-optimization/65310
22477 * tree-sra.c (build_ref_for_offset): Also preserve larger
22480 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
22482 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
22484 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22487 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
22489 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
22491 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22493 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
22494 (sem_function::equals_wpa): ... here.
22496 2015-03-10 Marek Polacek <polacek@redhat.com>
22497 Jakub Jelinek <jakub@redhat.com>
22500 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
22501 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
22504 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22507 * config/rs6000/t-linux: For powerpc64* target set
22508 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
22510 2015-03-10 Richard Biener <rguenther@suse.de>
22512 PR middle-end/44563
22513 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
22514 for redirect_all_calls.
22516 2015-03-10 Marek Polacek <polacek@redhat.com>
22518 * gdbinit.in (pcfun): Define and document.
22520 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
22522 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
22523 of libgomp-plugin.h.
22524 (find_target_compiler): Support a case when the path to gcc is
22525 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
22526 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
22527 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
22529 (main): Use GCC_INSTALL_NAME as target_driver_name.
22530 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
22532 (mkoffload.o): Remove obsolete include path and defines.
22533 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
22535 2015-03-10 Richard Biener <rguenther@suse.de>
22537 PR middle-end/63155
22538 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22539 * tree-ssa-coalesce.c: Include timevar.h.
22540 (attempt_coalesce): Handle graph being NULL.
22541 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22542 Split out abnormal coalescing to ...
22543 (perform_abnormal_coalescing): ... this function.
22544 (coalesce_ssa_name): Perform abnormal coalescing without computing
22546 (verify_ssa_coalescing_worker): New function.
22547 (verify_ssa_coalescing): Likewise.
22549 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22552 * config.gcc (extra_options) [avr]: Remove.
22553 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
22554 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
22555 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
22557 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
22558 (-mmcu=): Add Var and MissingArgError properties.
22560 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
22561 * config/avr/t-multilib: Regenerate.
22562 * config/avr/specs.h: New file.
22563 * config/avr/driver-avr.c: New file.
22564 * config/avr/genopt.sh: Remove file.
22565 * config/avr/avr-tables.opt: Remove file.
22566 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
22567 * config/avr/avr-c.c: Same.
22568 * avr-arch.h: Same.
22569 (avr_current_device): Remove proto.
22570 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
22571 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
22572 (EXTRA_SPEC_FUNCTIONS): Define.
22573 (avr_devicespecs_file): New specs function proto.
22574 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
22575 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
22576 (avr_current_device): Remove definition and usage.
22577 (avr_set_core_architecture): New static function.
22578 (avr_option_override): Use it.
22579 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
22580 (mcu_name): New static array.
22581 (comparator, avr_archs_str, avr_mcus_str): New static functions.
22582 (avr_inform_devices, avr_inform_core_architectures): New functions.
22583 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
22584 (avrlibc.h) [WITH_AVRLIBC]: Include.
22585 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
22586 (print_mcu): Rewrite from scratch.
22587 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
22588 Forward to avr-specific specs defined in device-specs file.
22589 * config/avr/t-avr (driver-avr.o): New rule.
22590 (avr-devices.o): Depend on avr-arch.h.
22591 (avr-mcus): No more depend on avr-tables.opt.
22592 (avr-tables.opt): Remove rule.
22593 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
22595 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22597 * c-family/c.opt (fchkp-use-wrappers): New.
22598 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
22599 (chkp_wrap_function): New.
22600 (chkp_build_instrumented_fndecl): Support wrapped
22602 * doc/invoke.texi (-fcheck-pointer-bounds): New.
22603 (-fchkp-check-incomplete-type): New.
22604 (-fchkp-first-field-has-own-bounds): New.
22605 (-fchkp-narrow-bounds): New.
22606 (-fchkp-narrow-to-innermost-array): New.
22607 (-fchkp-optimize): New.
22608 (-fchkp-use-fast-string-functions): New.
22609 (-fchkp-use-nochk-string-functions): New.
22610 (-fchkp-use-static-bounds): New.
22611 (-fchkp-use-static-const-bounds): New.
22612 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
22613 (-fchkp-check-read): New.
22614 (-fchkp-check-write): New.
22615 (-fchkp-store-bounds): New.
22616 (-fchkp-instrument-calls): New.
22617 (-fchkp-instrument-marked-only): New.
22618 (-fchkp-use-wrappers): New.
22619 (-static-libmpx): New.
22620 (-static-libmpxwrappers): New.
22622 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22624 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
22625 (CHKP_SPEC): Add wrappers library.
22626 * c-family/c.opt (static-libmpxwrappers): New.
22628 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
22630 * config/i386/linux-common.h (LIBMPX_LIBS): New.
22631 (LIBMPX_SPEC): New.
22633 * gcc.c (CHKP_SPEC): New.
22634 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
22635 * c-family/c.opt (static-libmpx): New.
22637 2015-03-10 Richard Biener <rguenther@suse.de>
22639 PR middle-end/44563
22640 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
22642 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
22643 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
22644 (cgraph_add_edge_to_call_site_hash): Likewise.
22645 (cgraph_node::get_edge): Likewise.
22646 (cgraph_edge::set_call_stmt): Likewise.
22647 (cgraph_edge::remove_caller): Likewise.
22649 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
22651 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
22652 (callee_saved_gpr_regs_size): ... this.
22653 (callee_saved_regs_first_regno): Rename to ...
22654 (callee_saved_first_gpr_regno): ... this.
22655 (callee_saved_regs_last_regno) Rename to ...
22656 (callee_saved_last_gpr_regno): ... this.
22657 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
22659 (nds32_initial_elimination_offset): Likewise.
22660 (nds32_expand_prologue): Likewise.
22661 (nds32_expand_epilogue): Likewise.
22662 (nds32_expand_prologue_v3push): Likewise.
22663 (nds32_expand_epilogue_v3pop): Likewise.
22664 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
22665 Adjust renamed variables.
22666 (nds32_output_stack_pop): Likewise.
22668 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
22670 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
22673 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22675 PR rtl-optimization/65321
22676 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
22678 * var-tracking.c (use_narrower_mode): Likewise.
22680 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22682 PR tree-optimization/65355
22683 * varasm.c (notice_global_symbol): Do not produce RTL.
22684 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
22686 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
22687 check for section anchors.
22689 2015-03-10 Alan Modra <amodra@gmail.com>
22692 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
22693 to be single-arch by default. Set cpu_is_64bit for powerpc64
22694 given --with-cpu=native.
22695 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
22696 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
22698 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
22699 rs6000_isa_flags rather than TARGET_64BIT.
22701 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
22702 Kaz Kojima <kkojima@gcc.gnu.org>
22704 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
22706 2015-03-09 Jakub Jelinek <jakub@redhat.com>
22709 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
22710 on a TREE_BINFO, instead use BINFO_TYPE.
22712 2015-03-09 Richard Biener <rguenther@suse.de>
22714 PR middle-end/65270
22715 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
22716 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
22717 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
22718 of that. When comparing dereferences compare alignment.
22719 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
22721 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22723 * ipa-inline-analysis.c (check_callers): Check
22724 node->can_remove_if_no_direct_calls_and_refs_p.
22725 (growth_likely_positive): Reorganize to call
22726 can_remove_if_no_direct_calls_p later.
22727 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
22728 will_be_removed_from_program_if_no_direct_calls_p): Add
22729 will_inline parameter.
22730 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
22731 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22732 Handle inliner case correctly.
22734 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
22736 PR tree-optimization/63743
22737 * cfgexpand.c (reorder_operands): Also reorder if only second operand
22738 had its definition forwarded by TER.
22740 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
22743 * ipa-utils.h (types_odr_comparable): Add strict argument.
22744 * ipa-devirt.c: Fix whitespace;
22745 (odr_hasher): Remove.
22746 (odr_name_hasher, odr_vtable_hasher): New hashers.
22747 (can_be_name_hashed_p): New predicate.
22748 (hash_type_name): remove.
22749 (hash_odr_name): New.
22750 (odr_name_hasher::hash): new.
22751 (can_be_vtable_hashed_p): New.
22752 (hash_odr_vtable): New.
22753 (odr_vtable_hasher::hash): New.
22754 (types_same_for_odr): Add strict parameter.
22755 (types_odr_comparable): Likewise.
22756 (odr_name_hasher::equal): New.
22757 (odr_vtable_hasher::equal): New.
22758 (odr_name_hasher::remove): New.
22759 (odr_hash_type): Change to hash_table<odr_name_hasher>.
22760 (odr_vtable_hash_type): New.
22761 (odr_vtable_hash): New.
22762 (odr_subtypes_equivalent_p): Do strict comparsion.
22763 (add_type_duplicate): Merge type names; cleanup; avoid type
22765 (register_odr_type): Initialize vtable hash.
22766 (build_type_inheritance_graph): Likewise
22767 (get_odr_type): Reorg to use two hashes.
22768 (dump_possible_polymorphic_call_targets): Move sanity check after debug
22770 (ipa_devirt): Dump type_inheritance_graph.
22771 (types_same_for_odr): Add strict mode.
22773 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22776 * cgraph.h (symtab_node): Add definition_alignment,
22777 can_increase_alignment_p and increase_alignment.
22778 * symtab.c (symtab_node::can_increase_alignment_p,
22779 increase_alignment_1, symtab_node::increase_alignment,
22780 symtab_node::definition_alignment): New.
22781 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
22782 can_increase_alignment_p.
22783 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
22784 * tree-vect-stmts.c (ensure_base_align): Likewise.
22785 * varasm.c (function_section_1): Use definition_alignment.
22786 (assemble_start_function): Likewise.
22787 (emit_local): likewise.
22788 (build_constant_desc): Likewsie.
22789 (output_constant_def_contents): Likewise.
22790 (place_block_symbol): Likewise.
22791 (output_object_block): Likewise.
22793 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22796 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
22797 when outputting debug.
22799 2015-03-07 Marek Polacek <polacek@redhat.com>
22800 Martin Uecker <uecker@eecs.berkeley.edu>
22803 * doc/invoke.texi: Update description of -fsanitize=bounds.
22805 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
22807 * tree-ssa-phiopt.c (neg_replacement): Remove.
22808 (tree_ssa_phiopt_worker): Remove negate optimization.
22810 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22813 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
22815 2015-03-06 Richard Biener <rguenther@suse.de>
22817 PR middle-end/64928
22818 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
22819 and liveout_obstack members.
22820 (calculate_live_on_exit): Remove.
22821 (calculate_live_ranges): Change declaration.
22822 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
22823 (new_tree_live_info): Adjust.
22824 (calculate_live_ranges): Delete livein when not wanted.
22825 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
22826 Deal with partly deleted live info.
22827 (loe_visit_block): Remove temporary bitmap by using
22828 bitmap_ior_and_compl_into.
22829 (live_worklist): Adjust accordingly.
22830 (calculate_live_on_exit): Make static.
22831 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
22832 we do not need livein.
22834 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
22836 * real.c (real_from_string): Fix typo in assertion.
22838 2015-03-06 Alex Velenko <alex.velenko@arm.com>
22840 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
22843 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
22845 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
22847 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
22850 * lra-assigns.c (find_hard_regno_for): Rename to
22851 find_hard_regno_for_1. Add a new parameter.
22852 (find_hard_regno_for): New function using find_hard_regno_for_1.
22854 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22856 PR rtl-optimization/65067
22857 * expmed.c (store_bit_field, extract_bit_field): Reworked the
22858 strict volatile bitfield handling.
22860 2015-03-05 Martin Liska <mliska@suse.cz>
22863 * ipa-icf.c (sem_variable::equals): Compare variables types.
22865 2015-03-05 Richard Henderson <rth@redhat.com>
22868 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
22869 correctly check weak symbol binding.
22871 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
22873 PR middle-end/65315
22874 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
22877 2015-03-05 Martin Liska <mliska@suse.cz>
22879 * ipa-inline.c (inline_small_functions): Set default value to
22880 prevent warning during bootstrap.
22881 * tree.h: Add pragma guard that ignores false positives during
22884 2015-03-05 Richard Biener <rguenther@suse.de>
22886 PR tree-optimization/65310
22887 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22888 Properly preserve alignment of the base of the access.
22890 2015-03-05 Richard Biener <rguenther@suse.de>
22893 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
22894 Compare dependence info.
22896 2015-03-05 Richard Biener <rguenther@suse.de>
22898 PR middle-end/65233
22899 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
22901 (walk_ssa_copies): Revert last chage. Instead do not walk
22902 SSA names registered for SSA update.
22904 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22907 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
22908 vtable references for their containing type.
22909 (sem_function::equals_wpa): Compare TYPE_RESTRICT
22910 and type attributes.
22912 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
22914 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
22915 before negating it.
22916 * stor-layout.c (finalize_record_size): Revert latest change.
22918 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
22920 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
22922 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22924 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
22925 for correct comdat handling.
22926 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22928 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
22929 (used_from_object_file_p_worker): Remove.
22930 (cgraph_node::only_called_directly_or_alised): Add
22931 used_from_object_file_p.
22932 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
22933 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
22934 can_remove_if_no_direct_calls_and_refs_p.
22936 2015-03-04 Nick Clifton <nickc@redhat.com>
22938 * config/rl78/rl78.h (enum reg_class): Remove real registers from
22939 General register class.
22940 * config/rl78/rl78-real.md: Replace general register constraints
22941 with real+virtual register constraints.
22943 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22945 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
22946 from checking for -mhtm option.
22948 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
22950 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
22951 (struct ipa_sra_check_caller_data): Add has_thunk field.
22952 (ipa_sra_check_caller): Check for thunk.
22953 (ipa_sra_preliminary_function_checks): Give up on function with
22955 (ipa_early_sra): Use call_for_symbol_and_aliases.
22957 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
22960 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
22961 called for __stack_chk_guard symbol.
22963 2015-03-03 DJ Delorie <dj@redhat.com>
22965 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
22967 (*addhi3_real): Likewise.
22968 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
22969 pattern to match incrementing memory.
22970 * config/rl78/predicates.md (rl78_1_2_operand): New.
22971 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
22972 it's the same and only mem.
22973 (rl78_alloc_physical_registers_op2): If there's effectively only
22974 one MEM, transcode it into HL.
22975 (rl78_far_p): Reject addresses that aren't legitimate.
22977 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22979 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
22982 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
22984 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22986 Implement call0 ABI for xtensa
22987 * config/xtensa/constraints.md ("a" constraint): Include stack
22988 pointer in case of call0 ABI.
22989 ("q" constraint): Make empty in case of call0 ABI.
22990 ("D" constraint): Include stack pointer in case of call0 ABI.
22991 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
22992 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
22994 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
22996 (xtensa_regno_to_class): Make it a local variable in the
22997 function xtensa_regno_to_class.
22998 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
22999 macro, function prototype and implementation.
23000 (reg_nonleaf_alloc_order): Make it a local variable in the
23001 function order_regs_for_local_alloc.
23002 (xtensa_conditional_register_usage): New function.
23003 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
23004 (xtensa_valid_move): Allow direct moves to stack pointer
23005 register in call0 ABI.
23006 (xtensa_setup_frame_addresses): Only spill register windows in
23008 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
23009 call0 ABI respectively.
23010 (xtensa_function_arg_1): Only mark a7 register for copying in
23012 (xtensa_call_save_reg): New function.
23013 (compute_frame_size): Add space for callee saved register
23014 storage to the frame size in call0 ABI.
23015 (xtensa_expand_prologue): Generate code to set up stack frame
23016 and save callee-saved registers in call0 ABI.
23017 (xtensa_expand_epilogue): New function.
23018 (xtensa_set_return_address): New function.
23019 (xtensa_return_addr): Calculate return address in call0 ABI.
23020 (xtensa_builtin_saveregs): Only mark a7 register for copying and
23021 emit copying code in windowed ABI.
23022 (order_regs_for_local_alloc): Add preferred register allocation
23023 order for non-leaf function in call0 ABI.
23024 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
23025 (xtensa_asm_trampoline_template): Add trampoline generation for
23027 (xtensa_trampoline_init): Add trampoline initialization for
23029 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
23031 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
23032 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
23033 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
23034 ABI call-used registers.
23035 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
23036 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
23038 (REG_CLASS_CONTENTS): Include all registers into the preferred
23039 reload registers set, adjust the set in the
23040 xtensa_conditional_register_usage.
23041 (xtensa_regno_to_class): Drop variable declaration.
23042 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
23044 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
23046 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
23047 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
23048 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
23049 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
23050 location in call0 ABI.
23051 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
23052 stack adjustment size when handling exception.
23053 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
23054 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
23056 ("return" pattern): Generate ret.n/ret in call0 ABI.
23057 ("epilogue" pattern): Expand epilogue.
23058 ("nonlocal_goto" pattern): Use default in call0 ABI.
23059 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
23060 emit eh_set_a0_* depending on ABI.
23061 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
23062 ("eh_set_a0_call0", "blockage"): New patterns.
23064 2015-03-03 Martin Liska <mliska@suse.cz>
23067 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
23069 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23072 * config/rs6000/rs6000-tables.opt: Regenerate table.
23074 2015-03-03 Renlin Li <renlin.li@arm.com>
23076 * doc/md.texi (@item ^): Change ? into ^.
23078 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
23080 * doc/tm.texi: Regenerated.
23082 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23084 * builtins.c (expand_builtin_return_addr): Add
23085 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
23086 surrounding #ifdef.
23087 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
23089 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
23091 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
23093 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
23096 2015-03-03 Martin Jambor <mjambor@suse.cz>
23097 Eric Botcazou <ebotcazou@adacore.com>
23099 * tree-sra.c (ipa_sra_check_caller_data): New type.
23100 (has_caller_p): Removed.
23101 (ipa_sra_check_caller): New function.
23102 (ipa_sra_preliminary_function_checks): Use it.
23104 2015-03-03 Martin Liska <mliska@suse.cz>
23106 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
23107 instead of if branch.
23109 2015-03-03 Martin Liska <mliska@suse.cz>
23112 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
23114 2015-03-23 Jeff Law <law@redhat.com>
23116 PR tree-optimization/65241
23117 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
23118 hash table if INSERT is true.
23120 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23123 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
23125 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23128 * config/avr/avr.c (context.h, tree-pass.h): Include them.
23129 (avr_pass_data_recompute_notes): New static variable.
23130 (avr_pass_recompute_notes): New class.
23131 (avr_register_passes): New static function.
23132 (avr_option_override): Call it.
23134 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23136 Fix various problems with specs file generation.
23139 * config.gcc (extra_gcc_objs) [avr]: Remove.
23140 * config/avr/driver-avr.c: Remove file.
23141 * config/avr/t-avr (driver-avr.o): Remove rule.
23142 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
23143 INCLUDES to build. Depend on TM_H.
23144 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
23145 build warnings. Fix non-matching types and non-existing %-codes.
23147 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
23148 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
23149 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
23150 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
23151 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
23152 (LIBGCC_SPEC): Remove definitions.
23154 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23156 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
23157 to create a register in testing mode.
23159 2015-03-03 Martin Liska <mliska@suse.cz>
23160 Jan Hubicka <hubicka@ucw.cz>
23163 * cgraph.c (cgraph_node::has_thunk_p): New function.
23164 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
23165 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
23166 (sem_function::merge): Assert is changed.
23168 2015-03-03 Martin Liska <mliska@suse.cz>
23169 Martin Jambor <mjambor@suse.cz>
23172 * ipa-icf.c (sem_item_optimizer::execute): Change function
23173 return value to boolean.
23174 (sem_item_optimizer::merge_classes): Likewise.
23175 (ipa_icf_driver): Return TODO_remove_functions in case there's
23176 a merge operation processed.
23177 * ipa-icf.h: Change function return value to boolean.
23179 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23182 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
23183 processor type for 64-bit little endian PowerPC.
23185 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23186 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
23187 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
23188 printing built-in mask so it does not pass NULL pointers.
23190 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
23193 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
23196 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
23197 !ISA_HAS_FP_CONDMOVE.
23199 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
23201 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
23204 2015-03-02 Ulrich Drepper <drepper@gmail.com>
23206 * doc/invoke.texi (Options for Code Generation Conventions):
23207 Fix URL of DSO paper.
23209 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23212 * ipa-inline.c (check_callers): Looks for recursion.
23213 (inline_to_all_callers): Give up on uninlinable or recursive edges.
23214 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
23215 summary of inline clones.
23216 (do_estimate_growth_1): Fix recursion check.
23218 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23221 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
23224 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23225 Aldy Hernandez <aldyh@redhat.com>
23228 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
23229 when checking TYPE_BINFO.
23231 2015-03-02 Richard Biener <rguenther@suse.de>
23234 * ipa-icf-gimple.c: Include builtins.h.
23235 (func_checker::compare_memory_operand): Compare base alignment.
23237 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23240 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
23241 are never passed by reference.
23243 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23246 * tree-chkp.c (chkp_check_lower): Don't check against
23247 zero bounds for already instrumented functions.
23248 (chkp_check_upper): Likewise.
23249 (chkp_fini): Clean pass local data to avoid wrong reusage.
23251 2015-02-28 Martin Liska <mliska@suse.cz>
23252 Jan Hubicka <hubicka@ucw.cz>
23254 * ipa-icf.c (sem_variable::equals): Improve debug output;
23255 get variable constructor.
23256 (sem_variable::parse): Do not filter out too early; give up on
23257 volatile and register vars.
23258 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
23260 * ipa-icf.h (sem_variable::init): Do not set ctor.
23261 (sem_variable::ctor): Remove.
23263 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
23265 PR middle-end/65233
23266 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
23268 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23270 * ipa-icf.c: Include stor-layout.h
23271 (sem_function::compare_cgraph_references): Rename to ...
23272 (sem_item::compare_cgraph_references): ... this one.
23273 (sem_variable::equals_wpa): New function
23274 (sem_variable::equals): Do not check stuff already verified by
23276 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
23277 * ipa-icf.h (sem_item): Add compare_cgraph_references.
23278 (sem_function): Remove compare_cgraph_references.
23279 (sem_variable): Turns equals_wpa into non-inline.
23281 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23283 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
23284 (sem_item::add_expr): New function.
23285 (sem_function::hash_stmt): Handle operands of most statements.
23286 (sem_variable::get_hash): Hash the actual constructor.
23287 * ipa-icf.h (sem_item): Add add_expr.
23288 (sem_function): Update prototype of hash_stmt
23290 2015-02-28 Martin Liska <mliska@suse.cz>
23291 Jan Hubicka <hubicka@ucw.cz>
23294 * ipa-icf-gimple.c (func_checker::compare_function_decl):
23296 (func_checker::compare_variable_decl): Skip symtab vars.
23297 (func_checker::compare_cst_or_decl): Update.
23298 * ipa-icf.c (sem_function::parse): Do not consider aliases.
23299 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
23300 use correct symtab predicates.
23301 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
23302 (sem_variable::parse): Update comment.
23303 (sem_item_optimizer::build_graph): Consider ultimate aliases
23306 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23308 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
23311 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23313 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
23314 (sem_variable::merge) Likewise.
23316 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23318 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
23319 target; also match flag_ipa_devirt.
23321 2015-03-01 Martin Liska <mliska@suse.cz>
23322 Jan Hubicka <hubicka@ucw.cz>
23324 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
23325 Validate variable alignment.
23326 * ipa-icf.c (sem_function::equals_private): Be more precise
23327 about non-common function attributes.
23328 (sem_variable::equals): Likewise.
23330 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23333 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
23334 across COMDAT group boundary.
23336 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23339 * ipa-icf.c (clear_decl_rtl): New function.
23340 (sem_function::merge): Clear RTL before forming alias.
23341 (sem_variable::merge): Clear RTL before forming alias.
23343 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23346 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
23348 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
23350 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
23353 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23355 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
23356 a typo in the description.
23358 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23361 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23362 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23363 * lra-constraints.c: Include "params.h".
23364 (EBB_PROBABILITY_CUTOFF): Use
23365 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
23366 (lra_inheritance): Use '<' instead of '<=' for
23367 EBB_PROBABILITY_CUTOFF.
23368 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
23371 2015-02-27 Martin Liska <mliska@suse.cz>
23373 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
23374 vector length condition.
23376 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
23378 * doc/extend.texi (x86 transactional memory intrinsics):
23379 Reorganize discussion of _xbegin. Clarify that the return
23380 value is a bit mask. Expand example and move to end of section.
23382 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23383 Aldy Hernandez <aldyh@redhat.com>
23385 PR rtl-optimization/65220
23386 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
23388 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23391 * lra-remat.c (update_scratch_ops): New.
23392 (do_remat): Call it.
23393 * lra.c (lra_register_new_scratch_op): New. Take code from ...
23394 (remove_scratches): ... here.
23395 * lra-int.h (lra_register_new_scratch_op): New prototype.
23397 2015-02-27 Marek Polacek <polacek@redhat.com>
23400 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
23401 -Wformat-signedness anymore.
23403 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23405 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
23407 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
23409 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23411 * config/s390/s390.c (enum s390_builtin):
23412 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
23413 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
23414 (s390_init_builtins): Generate new builtin functions.
23415 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
23416 (s390_sfpc, s390_efpc): New pattern definitions.
23418 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23420 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
23421 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
23422 (s390_builtin_decls): New array.
23423 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
23424 (s390_builtin_decl): New function.
23425 (TARGET_BUILTIN_DECL): Define macro.
23427 2015-02-27 Richard Biener <rguenther@suse.de>
23429 PR middle-end/63175
23430 * builtins.c (get_object_alignment_2): Make sure to re-apply
23431 the ANDed mask after recursing to its operand gets us a new
23432 misalignment bit position.
23434 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
23435 Martin Liska <mliska@suse.cz>
23438 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
23439 Use address_matters_p.
23440 (redirect_all_callers, set_addressable): New functions.
23441 (sem_function::merge): Reorganize and fix merging issues.
23442 (sem_variable::merge): Likewise.
23443 (sem_variable::compare_sections): Remove.
23444 * common.opt (fmerge-all-constants, fmerge-constants): Remove
23446 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
23448 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
23450 (address_matters_1): New function.
23451 (symtab_node::address_matters_p): New function.
23452 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
23453 check for merged flag.
23454 * cgraph.h (address_matters_p): Declare.
23455 (symtab_node::address_taken_from_non_vtable_p): Remove.
23456 (symtab_node::address_can_be_compared_p): New method.
23457 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
23458 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
23460 (comdat_can_be_unshared_p_1) Use address_matters_p.
23461 (update_vtable_references): Fix formating.
23462 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
23463 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
23464 * cgraphclones.c: Preserve merged and icf_merged flags.
23466 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
23468 * doc/extend.texi (Function Attributes): Fix spelling and typos.
23469 (Label Attributes): Likewise.
23470 (Cilk Plus Builtins): Likewise.
23471 (ARC SIMD Built-in Functions): Likewise.
23472 (ARM C Language Extensions (ACLE)): Likewise.
23473 (PowerPC Built-in Functions): Likewise.
23474 (PowerPC Hardware Transactional Memory Built-in Functions):
23477 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23479 PR tree-optimization/65216
23480 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
23481 new stmt and new SSA_NAME for lhs whenever the arguments have
23482 changed and weren't just swapped. Fix comment typo.
23484 PR tree-optimization/65215
23485 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
23486 for PDP endian targets.
23487 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
23488 Fix up formatting issues.
23489 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
23490 size is smaller than the original, adjust MEM_REF offset by the
23491 difference of sizes. Use is_gimple_mem_ref_addr instead of
23492 is_gimple_min_invariant test to avoid adding address temporaries.
23494 2015-02-26 Martin Liska <mliska@suse.cz>
23495 Jan Hubicka <hubicka@ucw.cz>
23498 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
23499 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
23500 (sem_item_optimizer::process_cong_reduction): Include division by
23501 sensitive references.
23502 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
23503 * ipa-ref.c (ipa_ref::address_matters_p): New function.
23504 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
23506 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
23509 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
23511 * config/avr/avr.c: Same.
23512 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
23513 Refuse any constant address not in 0..0xbf.
23514 * config/avr/avr.md (*mov<mode>, *movsf): Remove
23515 tiny_valid_direct_memory_access_range from insn conditions.
23516 (mov<mode>): Don't special-case expansion of avrtiny addresses.
23518 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
23521 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
23522 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
23523 * config/sh/predicates.md (const_logical_operand): New predicate.
23524 * config/sh/sh.md: Add new peephole2 patterns.
23526 2015-02-26 Marek Polacek <polacek@redhat.com>
23529 * ipa-inline.c (early_inliner): Recompute inline parameters.
23531 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23534 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
23535 instructions with TImode operands are included in the analysis.
23537 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23539 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
23540 of an EDGE_FSM_THREAD.
23542 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
23544 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
23546 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
23549 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
23551 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23553 PR tree-optimization/65048
23554 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
23555 (thread_through_all_blocks): Call valid_jump_thread_path.
23556 Remove invalid FSM jump-thread paths.
23558 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23560 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
23561 (ipa_write_optimization_summaries): Likewise.
23562 * tree-streamer.h: Include data-streamer.h.
23563 (streamer_mode_table): Declare extern variable.
23564 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
23565 * lto-streamer-out.c (lto_output_init_mode_table,
23566 lto_write_mode_table): New functions.
23567 (produce_asm_for_decls): Call lto_write_mode_table when streaming
23569 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
23570 (lto_create_simple_input_block): Add mode_table argument to the
23571 lto_input_block constructors.
23572 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
23574 * data-streamer-in.c (string_for_index): Likewise.
23575 * ipa-inline-analysis.c (inline_read_section): Likewise.
23576 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
23577 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
23578 * lto-streamer-in.c (lto_read_body_or_constructor,
23579 lto_input_toplevel_asms): Likewise.
23580 (lto_input_mode_table): New function.
23581 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
23582 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
23583 Use bp_pack_machine_mode.
23584 * real.h (struct real_format): Add name field.
23585 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
23586 (class lto_input_block): Add mode_table member.
23587 (lto_input_block::lto_input_block): Add mode_table_ argument,
23588 initialize mode_table.
23589 (struct lto_file_decl_data): Add mode_table field.
23590 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
23591 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
23592 unpack_ts_decl_common_value_fields,
23593 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
23594 * tree-streamer.c (streamer_mode_table): New variable.
23595 * real.c (ieee_single_format, mips_single_format,
23596 motorola_single_format, spu_single_format, ieee_double_format,
23597 mips_double_format, motorola_double_format,
23598 ieee_extended_motorola_format, ieee_extended_intel_96_format,
23599 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
23600 ibm_extended_format, mips_extended_format, ieee_quad_format,
23601 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
23602 decimal_single_format, decimal_double_format, decimal_quad_format,
23603 ieee_half_format, arm_half_format, real_internal_format): Add name
23605 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
23607 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
23610 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
23611 reordering for selective scheduling.
23613 2015-02-26 Terry Guo <terry.guo@arm.com>
23615 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
23616 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
23617 (arm_arch_no_volatile_ce): Declare new global variable.
23618 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
23619 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
23620 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
23621 (TARGET_NO_VOLATILE_CE): New macro.
23622 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
23623 volatile memory access in IT block
23625 2015-02-25 Kai Tietz <ktietz@redhat.com>
23627 PR tree-optimization/61917
23628 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
23629 that reduc_def_stmt is null.
23631 2015-02-25 Martin Liska <mliska@suse.cz>
23633 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
23634 hard register variables.
23636 2015-02-25 Kai Tietz <ktietz@redhat.com>
23639 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
23640 (symtab::noninterposable_alias): Likewise.
23642 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
23645 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
23647 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
23649 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
23652 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
23653 as split condition; force split via '#' in output pattern.
23655 2015-02-25 Richard Biener <rguenther@suse.de>
23656 Kai Tietz <ktietz@redhat.com>
23658 PR tree-optimization/61917
23659 * tree-vect-loop.c (vectorizable_reduction): Allow
23660 vect_internal_def without reduction to exit graceful.
23662 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23665 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
23666 only with NONDEBUG_INSN_P.
23668 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
23670 Use variadic macros with avr-log.c.
23672 * config/avr/avr-protos.h (avr_vdump): New prototype.
23673 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
23674 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
23675 * config/avr/avr-log.c: Adjust comments.
23676 (avr_vdump): New function.
23677 (avr_vadump): Pass caller as 2nd argument instead of format string.
23678 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
23679 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
23681 2015-02-25 Jakub Jelinek <jakub@redhat.com>
23684 * target.def (target_option_stream_in): New target hook.
23685 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
23686 targetm.target_option.post_stream_in if non-NULL.
23687 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
23688 * doc/tm.texi: Updated.
23689 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
23691 (TARGET_OPTION_POST_STREAM_IN): Redefine.
23693 2015-02-24 Jeff Law <law@redhat.com>
23696 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
23697 of operand 0 and operand 2.
23698 (zero_cost_loop_end, loop_end): Similarly.
23700 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
23702 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
23705 2015-02-24 DJ Delorie <dj@redhat.com>
23707 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
23708 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
23709 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
23710 instead of hardcoding SImode.
23712 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
23714 * omp-low.c (create_omp_child_function): Tag entrypoint
23715 functions with a special attribute.
23717 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23720 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
23722 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
23724 PR rtl-optimization/65123
23725 * lra-remat.c (operand_to_remat): Check hard regs in insn
23728 2015-02-24 Nick Clifton <nickc@redhat.com>
23730 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
23733 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
23736 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
23737 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
23738 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
23739 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
23740 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
23741 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
23742 (BUILT_IN_GOACC_PARALLEL): Specify as
23743 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
23744 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
23745 * builtin-types.def
23746 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23747 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23748 Remove function types.
23749 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
23750 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23751 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23752 New function types.
23754 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
23756 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
23758 2015-02-24 Jakub Jelinek <jakub@redhat.com>
23760 PR tree-optimization/65170
23761 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
23762 if val[1] < 0, clear also val[2] and return 3.
23764 2015-02-24 Alan Modra <amodra@gmail.com>
23767 * config/rs6000/rs6000.c (get_memref_parts): Only return true
23768 when *base is a reg. Handle nested plus addresses. Simplify
23771 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
23773 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
23774 use natural alignment when optimizing for size.
23776 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
23779 * config/sh/sh.md (movsicc_true+3): Remove peephole.
23780 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
23781 * config/sh/sh.c (replace_n_hard_rtx): Remove.
23783 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
23786 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
23787 too big for a wide_int. Implement missing wrapping operation.
23789 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
23792 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
23793 instead of const_int 4294901760.
23795 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
23797 * config/avr/t-avr: Fix typo in comment.
23799 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
23801 * doc/rtl.texi (fma): Clarify documentation.
23803 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
23806 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
23807 over input_location.
23809 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23811 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
23812 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
23813 restrict alignments to absolute_biggest_alignment.
23814 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
23816 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
23817 * doc/tm.texi: Regenerate.
23818 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
23820 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
23823 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
23825 2015-02-20 Richard Biener <rguenther@suse.de>
23827 PR tree-optimization/65136
23828 * tree-ssa-propagate.c: Include cfgloop.h.
23829 (replace_phi_args_in): Avoid replacing loop latch edge PHI
23830 arguments with constants.
23832 2015-02-20 Jakub Jelinek <jakub@redhat.com>
23833 Martin Liska <mliska@suse.cz>
23836 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
23837 don't try to create_thunk if stdarg_p. If
23838 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
23839 redirect_callers if possible.
23840 (sem_item_optimizer::execute): Call unregister_hooks here...
23841 (ipa_icf_driver): ... instead of here.
23843 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23845 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
23846 Mark operand 0 as earlyclobber in 2nd alternative.
23847 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
23848 Write negated shift amount into QI lowpart operand 0 and use it
23850 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23852 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23854 * cgraph.h (clone_function_name_1): Declare.
23855 * cgraphclones.c (clone_function_name_1): New function.
23856 (clone_function_name): Use it.
23857 * lto-partition.c: Include "stringpool.h".
23858 (must_not_rename, maybe_rewrite_identifier)
23859 (validize_symbol_for_target): New static functions.
23860 (privatize_symbol_name): Use must_not_rename.
23861 (promote_symbol): Call validize_symbol_for_target.
23862 (lto_promote_cross_file_statics): Likewise.
23863 (lto_promote_statics_nonwpa): Likewise.
23865 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
23868 * config/avr/avr.md (pushhi_insn): New insn.
23869 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
23871 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
23872 Jakub Jelinek <jakub@redhat.com>
23874 * tree-streamer.c (preload_common_nodes): Don't preload
23875 TI_VA_LIST* for offloading.
23876 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
23879 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
23881 * config/pa/pa.c (pa_emit_move_sequence): Always force
23882 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
23885 * config/pa/pa.c (pa_reloc_rw_mask): New function.
23886 (TARGET_ASM_RELOC_RW_MASK): Define.
23887 (pa_cannot_force_const_mem): Revert previous change.
23889 2015-02-19 Martin Jambor <mjmabor@suse.cz>
23890 Jan Hubicka <hubicka@ucw.cz>
23893 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
23894 across jump functions.
23896 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
23898 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
23900 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
23902 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
23904 2015-02-19 Richard Henderson <rth@redhat.com>
23906 PR middle-end/65074
23907 * varasm.c (default_binds_local_p_2): Don't test node->definition;
23908 test DECL_EXTERNAL independent of symtab_node.
23910 2015-02-19 Jakub Jelinek <jakub@redhat.com>
23913 * varpool.c (varpool_node::get_constructor): Return early
23914 if this->lto_file_data is NULL.
23916 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23918 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
23919 (rank_for_schedule_debug): Update.
23920 (ready_sort): Make static. Move sorting logic to ...
23921 (ready_sort_debug, ready_sort_real): New static functions.
23922 (schedule_block): Sort both debug insns and real insns in preparation
23923 for ready list trimming. Improve debug output.
23924 * sched-int.h (ready_sort): Remove global declaration.
23926 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
23928 * ipa-icf.c (sem_function::equals_private): Adjust.
23929 (sem_function::bb_dict_test): Take a vec<int> * instead of
23931 * ipa-icf.h (bb_dict_test): Likewise.
23933 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23935 PR gcov-profile/64634
23936 * tree-eh.c (frob_into_branch_around): Fix up typos
23937 in function comment.
23938 (lower_catch): Put eh_seq resulting from EH lowering of
23939 the cleanup sequence after the cleanup rather than before it.
23941 2015-02-18 Tom de Vries <tom@codesourcery.com>
23943 * common.opt (fstdarg-opt): New option.
23944 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
23945 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
23946 (@item -fstdarg-opt): New item.
23948 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
23951 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
23952 for common symbols.
23954 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23956 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
23958 (ALL_HOST_OBJS): Add mkoffload.o.
23959 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
23961 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
23963 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
23964 (compare_virtual_tables): Be smarter about skipping typeinfos;
23965 do sane output on virtual table table mismatch.
23966 (warn_odr): Be ready for forward declarations of enums;
23967 output sane info on base mismatch and virtual table mismatch.
23968 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
23969 when only one type is polymorphic.
23970 (get_odr_type): Fix hashtable corruption.
23971 (dump_odr_type): Dump mangled names.
23973 2015-02-18 Richard Biener <rguenther@suse.de>
23975 PR tree-optimization/65063
23976 * tree-predcom.c (determine_unroll_factor): Return 1 if we
23977 have replaced looparound PHIs.
23979 2015-02-18 Martin Liska <mliska@suse.cz>
23981 * lto-streamer.c (lto_streamer_init): Encapsulate
23982 streamer_check_handled_ts_structures with checking macro.
23984 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23987 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
23988 section if !implicit_section.
23989 (cgraph_node::create_version_clone_with_body): Likewise.
23990 * trans-mem.c (ipa_tm_create_version): Likewise.
23992 2015-02-18 Richard Biener <rguenther@suse.de>
23994 PR tree-optimization/62217
23995 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
23998 2015-02-18 Marek Polacek <polacek@redhat.com>
24001 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
24002 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
24003 is in range [-16K, -1]. Don't issue run-time error if
24004 (ptr > ptr + offset).
24006 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
24008 * doc/install.texi (nvptx-*-none): New section.
24009 * doc/invoke.texi (Nvidia PTX Options): Likewise.
24010 * config/nvptx/nvptx.opt: Update.
24012 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
24013 (access_check): New functions, copied from
24014 config/i386/intelmic-mkoffload.c.
24015 (main): For non-installed testing, look in all COMPILER_PATHs for
24018 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
24020 2015-02-18 Andrew Pinski <apinski@cavium.com>
24021 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24023 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
24024 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
24026 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24028 * ipa-visibility.c (function_and_variable_visibility): Only
24029 check locality if node is not already local.
24030 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24031 call_for_symbol_and_aliases instead of
24032 call_for_symbol_thunks_and_aliases.
24033 (ipa_inline): Likewise.
24034 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24035 first walk aliases.
24036 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24037 call_for_symbol_and_aliases.
24038 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24039 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24040 (ipa_propagate_frequency): Update.
24041 (ipa_profile): Add opt_for_fn gueards.
24043 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24045 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
24046 * doc/invoke.texi (SH options): Document it.
24047 * config/sh/sh.c (sh_insn_length_adjustment): Check
24048 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
24050 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
24052 * common.opt (fipa-cp-alignment): New.
24053 * ipa-cp.c (ipcp_store_alignment_results): Check
24054 flag_ipa_cp_alignment.
24055 * opts.c (default_options_table): Enable -fipa-cp-alignment for
24057 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
24058 * doc/invoke.texi: Document -fipa-cp-alignment.
24060 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24063 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
24064 to nil. Adjust comments.
24066 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24068 * ipa-visibility.c (function_and_variable_visibility): Only
24069 check locality if node is not already local.
24070 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24071 call_for_symbol_and_aliases instead of
24072 call_for_symbol_thunks_and_aliases.
24073 (ipa_inline): Likewise.
24074 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24075 first walk aliases.
24076 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24077 call_for_symbol_and_aliases.
24078 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24079 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24080 (ipa_propagate_frequency): Update.
24081 (ipa_profile): Add opt_for_fn guards.
24083 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
24085 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
24086 skipping of "strange" tokens.
24088 2015-02-17 Jeff Law <law@redhat.com>
24090 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
24093 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
24095 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
24096 as forcing a HARD_DEP between instructions, thereby
24097 disallowing rewriting to break dependencies.
24099 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24101 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
24102 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
24103 variables in boundary that have no inlitalizer encoded and are
24105 * varasm.c (default_binds_local_p_2): External definitions do not
24106 count as definitions here.
24108 2015-02-16 Jeff Law <law@redhat.com>
24110 PR tree-optimization/64823
24111 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
24113 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24114 threading through blocks with PHIs, but no statements.
24115 (thread_through_normal_block): Distinguish between blocks where
24116 we did not process all the statements and blocks with no statements.
24118 2015-02-16 Jakub Jelinek <jakub@redhat.com>
24119 James Greenhalgh <james.greenhalgh@arm.com>
24122 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
24123 section if not linkonce. Fix up formatting.
24124 (cgraph_node::create_version_clone_with_body): Copy section.
24125 * trans-mem.c (ipa_tm_create_version): Likewise.
24127 2015-02-16 Richard Biener <rguenther@suse.de>
24129 PR tree-optimization/65077
24130 * tree-ssa-structalias.c (get_constraint_for_1): Handle
24131 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
24132 (find_func_aliases): Allow float values to carry pointers again.
24134 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24136 * doc/install.texi (Specific): Reorder targets list to put
24137 aarch64 in alphabetical order. Add a link to aarch64*-*-*
24140 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24141 David Edelsohn <dje.gcc@gmail.com>
24144 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
24145 mapping class to external variable or function reference.
24146 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
24149 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
24152 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
24153 ASM_WEAKEN_DECL if defined.
24155 2015-02-16 Richard Biener <rguenther@suse.de>
24158 * varasm.c (default_file_start): For LTO produced units
24159 emit <artificial> as file directive.
24161 2015-02-16 Richard Biener <rguenther@suse.de>
24163 PR tree-optimization/63593
24164 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
24165 stmts and releasing SSA names until...
24166 (execute_pred_commoning): ... after processing all chains.
24168 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24171 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
24172 external functions.
24174 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
24176 * doc/bugreport.texi: Adjust section titles throughout the file
24177 to use "Title Case".
24178 * doc/extend.texi: Likewise.
24179 * doc/gcov.texi: Likewise.
24180 * doc/implement-c.texi: Likewise.
24181 * doc/implement-cxx.texi: Likewise.
24182 * doc/invoke.texi: Likewise.
24183 * doc/objc.texi: Likewise.
24184 * doc/standards.texi: Likewise.
24185 * doc/trouble.texi: Likewise.
24187 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
24189 * cgraph.h (symtab_node::has_aliases_p): Simplify.
24190 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
24191 * tree.c (lookup_binfo_at_offset): Make static.
24192 (get_binfo_at_offset): Do not shadow offset; add explanatory
24195 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
24197 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
24198 for all floading point loads and stores except those using a register
24200 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
24203 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24205 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
24206 (do_estimate_growth_1): Record if any uninlinable edge was seen.
24207 (estimate_growth): Handle uninlinable edges correctly.
24208 (check_callers): New.
24209 (growth_likely_positive): Handle aliases correctly.
24211 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24213 * ipa-chkp.c: Use iterate_direct_aliases.
24214 * symtab.c (resolution_used_from_other_file_p): Move inline.
24215 (symtab_node::create_reference): Fix formating.
24216 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24217 (symtab_node::iterate_reference): Move inline.
24218 (symtab_node::iterate_referring): Move inline.
24219 (symtab_node::iterate_direct_aliases): Move inline.
24220 (symtab_node::used_from_object_file_p_worker): Inline into ...
24221 (symtab_node::used_from_object_file_p): ... this one; move inline.
24222 (symtab_node::call_for_symbol_and_aliases): Move inline;
24223 use iterate_direct_aliases.
24224 (symtab_node::call_for_symbol_and_aliases_1): New method.
24225 (cgraph_node::call_for_symbol_and_aliases): Move inline;
24226 use iterate_direct_aliases.
24227 (cgraph_node::call_for_symbol_and_aliases_1): New method.
24228 (varpool_node::call_for_node_and_aliases): Rename to ...
24229 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
24230 use iterate_direct_aliases.
24231 (varpool_node::call_for_symbol_and_aliases_1): New method.
24232 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
24233 (ipa_discover_readonly_nonaddressable_var): Update.
24234 * ipa-devirt.c: Fix formating.
24235 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
24237 (cgraph_node::call_for_symbol_and_aliases): Move inline.
24238 (cgraph_node::call_for_symbol_and_aliases_1): New function..
24239 * cgraph.h (used_from_object_file_p_worker): Remove.
24240 (resolution_used_from_other_file_p): Move inline.
24241 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24242 (symtab_node::iterate_reference): Move inline.
24243 (symtab_node::iterate_referring): Move inline.
24244 (symtab_node::iterate_direct_aliases): Move inline.
24245 (symtab_node::used_from_object_file_p_worker): Inline into ...
24246 (symtab_node::used_from_object_file_p): Move inline.
24247 * tree-emutls.c (ipa_lower_emutls): Update.
24248 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
24249 (varpool_node::call_for_node_and_aliases): Remove.
24251 2015-02-14 Jakub Jelinek <jakub@redhat.com>
24253 PR tree-optimization/62209
24254 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
24255 op == range->exp, insert seq and gimplified code after labels
24256 instead of after the phi.
24258 2015-02-13 Jeff Law <law@redhat.com>
24261 Revert my change for tree-optimization/64823.
24263 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24265 PR tree-optimization/65053
24266 * tree-ssa-phiopt.c (value_replacement): When moving assign before
24267 cond, either reset VR on lhs or set it to phi result VR.
24269 2015-02-13 Jeff Law <law@redhat.com>
24271 PR tree-optimization/64823
24272 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
24273 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24274 threading through blocks with PHIs, but no statements.
24275 (thread_through_normal_block): Distinguish between blocks where
24276 we did not process all the statements and blocks with no statements.
24278 PR rtl-optimization/47477
24279 * match.pd (convert (plus/minus (convert @0) (convert @1): New
24280 simplifier to narrow arithmetic.
24282 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
24285 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
24286 polymorphic call info when type is not known to be preserved.
24288 2015-02-13 Maritn Jambor <mjambor@suse.cz>
24291 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
24292 (inline_call): Use it.
24294 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
24296 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
24297 GOMP_DEVICE_NVIDIA_PTX.
24299 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24302 * stmt.c (emit_case_nodes): Use void_type_node instead of
24303 NULL_TREE as LABEL_DECL type.
24305 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
24307 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
24309 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
24310 symbolic references to data to be forced to constant memory on the
24313 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
24315 PR tree-optimization/65002
24316 * tree-cfg.c (pass_data_fixup_cfg): Don't update
24318 * tree-sra.c (some_callers_have_no_vuse_p): New.
24319 (ipa_early_sra): Reject functions whose callers
24320 assume function is read only.
24322 2015-02-13 Richard Biener <rguenther@suse.de>
24325 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
24326 for LTO produced CUs.
24328 2015-02-13 Bin Cheng <bin.cheng@arm.com>
24330 PR tree-optimization/64705
24331 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
24332 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
24333 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
24334 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
24335 expand_simple_operations.
24337 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
24338 Richard Henderson <rth@redhat.com>
24341 * cgraphunit.c (cgraph_node::finalize_function): Set definition
24342 before notice_global_symbol.
24343 (varpool_node::finalize_decl): Likewise.
24344 * varasm.c (default_binds_local_p_2): Rename from
24345 default_binds_local_p_1, add weak_dominate argument. Use direct
24346 returns instead of assigning to local variable. Unify varpool and
24347 cgraph paths via symtab_node. Reject undef weak variables before
24348 testing visibility. Reorder tests for simplicity.
24349 (default_binds_local_p): Use default_binds_local_p_2.
24350 (default_binds_local_p_1): Likewise.
24351 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
24353 (default_elf_asm_output_external): Emit visibility when specified.
24355 2015-02-13 Alan Modra <amodra@gmail.com>
24357 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
24358 code setting up r11 for out-of-line fp restore.
24360 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
24362 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
24363 (muser-mode): Likewise.
24365 2015-02-13 Alan Modra <amodra@gmail.com>
24367 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
24368 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
24370 2015-02-12 David Howells <dhowells@redhat.com>
24372 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
24374 * tree-ssa-uninit.c (dump_predicates): Likewise.
24375 * opts.c (print_filtered_help): Likewise.
24377 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24379 * dwarf2out.c (output_die): Use "%s", name instead of name to
24380 avoid -Wformat-security warning.
24382 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
24383 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24384 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
24385 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24387 2015-02-12 Jason Merrill <jason@redhat.com>
24389 * common.opt (-flifetime-dse): New.
24391 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24394 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
24396 PR tree-optimization/65014
24397 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
24398 use original second operand of arg0 or arg1 instead of
24399 that adjusted by STRIP_NOPS.
24401 2015-02-11 Jeff Law <law@redhat.com>
24404 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
24405 that needs to be queued, just queue it for a single cycle.
24407 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
24409 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
24410 bodies of thunks; comment on why.
24411 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
24412 symbols are extern.
24414 2015-02-11 Richard Henderson <rth@redhat.com>
24417 * tree-eh.c (mark_reachable_handlers): Mark source and destination
24418 regions of __builtin_eh_copy_values.
24420 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24422 PR middle-end/65003
24423 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
24424 ultimate alias is MEM with SYMBOL_REF satisfying
24425 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
24426 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
24428 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
24430 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
24431 "diagnostic-core.h".
24432 (main): Initialize progname, and call diagnostic_initialize.
24434 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
24435 instead of __OPENMP_TARGET__.
24437 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
24438 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
24439 hard-coding PTX_ID.
24441 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
24443 * doc/sourcebuild.texi (pie_enabled): Document.
24445 2015-02-11 Martin Liska <mliska@suse.cz>
24448 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
24449 a return value for call to a function that is noreturn.
24451 2015-02-11 Richard Biener <rguenther@suse.de>
24454 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
24457 2015-02-11 Andrew Pinski <apinski@cavium.com>
24460 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
24461 Change the first argument type to size_type_node and add another
24463 (aarch64_simd_expand_builtin): Handle the new argument to
24464 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
24465 print an out when the first two arguments are not
24466 nonzero integer constants.
24467 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24468 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
24470 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24473 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
24474 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
24475 (ix86_set_current_function): Rewritten.
24476 (ix86_add_new_builtins): Temporarily clear current_target_pragma
24477 when creating builtin fndecls.
24479 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24482 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
24484 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
24485 have no comdat group.
24486 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
24487 (lto_output_varpool_node): Always output alias info.
24488 (output_refs): Output refs of boundary aliases, too.
24489 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
24490 (output_symtab): Output call eges in thunks in boundary.
24491 (get_alias_symbol): Remove.
24492 (input_node, input_varpool_node): Do not special case weakrefs.
24493 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
24494 alias and thunks targets in the boundary; do not take removed symbols
24495 from their comdat groups.
24496 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
24497 (cgraph_node::global_info): Remove.
24498 (cgraph_node::rtl_info): Look through aliases and thunks.
24499 * cgrpah.h (global_info): Remove.
24500 (non_local_p): Remove.
24502 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24503 Sandra Loosemore <sandra@codesourcery.com>
24505 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
24506 to inline asm. List dialects in proper order.
24508 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24509 Sandra Loosemore <sandra@codesourcery.com>
24511 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
24513 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24515 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
24516 modified) reference to Solaris.
24518 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
24520 * doc/extend.texi (Extended Asm): Fix typos.
24522 2015-02-10 Jakub Jelinek <jakub@redhat.com>
24525 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
24527 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
24530 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
24531 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
24532 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
24533 * config/sh/constraints.md (Ara, Add): New constraints.
24534 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
24536 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
24537 atomic_mem_operand_0. Don't use force_reg on the memory address.
24538 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
24539 Sra constraint. Convert to insn_and_split. Add workaround for
24541 (atomic_compare_and_swap<mode>_hard): Copy to
24542 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
24543 Use atomic_mem_operand_0 predicate.
24544 (atomic_compare_and_swap<mode>_soft_gusa,
24545 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
24546 AraAdd constraints.
24547 (atomic_compare_and_swap<mode>_soft_tcb,
24548 atomic_compare_and_swap<mode>_soft_imask,
24549 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
24550 atomic_mem_operand_0 predicate and SraSdd constraints.
24551 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
24553 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
24554 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
24555 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
24556 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
24557 force_reg on the memory address.
24558 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
24559 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
24560 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
24561 atomic_mem_operand_1 predicate and Sra constraint.
24562 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
24563 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24564 Use atomic_mem_operand_1 predicate.
24565 (atomic_<fetchop_name><mode>_hard): Copy to
24566 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
24567 Use atomic_mem_operand_1 predicate.
24568 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
24569 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24570 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
24571 insn_and_split. Use atomic_mem_operand_1 predicate.
24572 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
24573 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
24574 Use atomic_mem_operand_1 predicate.
24575 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
24576 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
24577 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
24578 in generated insn with original mem operand before emitting the insn.
24579 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
24580 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
24581 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
24582 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
24583 Use atomic_mem_operand_1 predicate and AraAdd constraints.
24584 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
24585 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
24586 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
24587 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
24588 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
24589 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
24590 atomic_not_fetch<mode>_soft_tcb,
24591 atomic_<fetchop_name>_fetch<mode>_soft_imask,
24592 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
24593 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
24594 Use atomic_mem_operand_1 predicate and SraSdd constraints.
24596 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
24598 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
24599 and 3 earlyclobber operands.
24601 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24603 * common.opt (fstack-reuse): Mark as optimization.
24605 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24608 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
24610 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
24612 PR tree-optimization/64326
24613 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
24615 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
24617 PR gcov-profile/61889
24618 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
24620 2015-02-10 Richard Biener <rguenther@suse.de>
24622 PR tree-optimization/64995
24623 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
24624 value we use is final.
24625 (visit_reference_op_store): Always valueize op.
24626 (visit_use): Properly valueize vuses.
24628 2015-02-10 Richard Biener <rguenther@suse.de>
24630 PR tree-optimization/64909
24631 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
24632 pass a scalar-stmt count estimate to the cost model.
24633 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
24635 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
24637 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
24638 enabled by default together with var-tracking.
24640 2015-02-10 Nick Clifton <nickc@redhat.com>
24642 * config/rl78/rl78.c: Remove DIV attribute code accidentally
24643 included in previous rl78 commit.
24645 2015-02-10 Richard Biener <rguenther@suse.de>
24647 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
24648 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
24649 return the bitpack.
24651 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24653 PR gcov-profile/61889
24654 * config.in: regenerate.
24655 * configure.in: Likewise.
24656 * configure.ac: Check for ftw.h.
24657 * gcov-tool.c: Check for ftw.h before using nftw.
24659 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
24662 * ipa-visibility.c (update_visibility_by_resolution_info): Only
24663 assert when not in lto mode.
24665 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24667 * ira-color.c (setup_left_conflict_sizes_p): Simplify
24668 initialization/assignment of conflict_size.
24670 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
24673 * ipa-cp.c (gather_caller_stats): Skip thunks.
24674 (propagate_constants_topo): Skip aliases.
24676 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
24679 * config/sh/sh.c (sh_option_override): Don't change
24680 -freorder-blocks-and-partition to -freorder-blocks even when
24681 unwinding is enabled.
24682 (sh_can_follow_jump): Return false if the followee jump is
24683 a crossing jump when -freorder-blocks-and-partition is specified.
24684 * config/sh/sh.md (*jump_compact_crossing): New insn.
24686 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
24687 Kaz Kojima <kkojima@gcc.gnu.org>
24690 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
24691 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
24692 (sh_can_redirect_branch): Rename to ...
24693 (sh_can_follow_jump): ... this. Constify argument types.
24694 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
24695 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
24696 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
24697 * doc/tm.texi: Regenerate.
24699 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24702 * builtins.c (expand_builtin): Call targetm.expand_builtin
24703 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
24705 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24708 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
24710 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24713 * ipa-icf.c (set_local): New function.
24714 (sem_function::merge): Use it.
24716 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24718 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
24719 (add_type_duplicate): Fix comparison of BINFOs.
24721 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24723 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
24724 on getting VOID pointer.
24726 2015-02-09 Jakub Jelinek <jakub@redhat.com>
24729 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
24732 2015-02-09 Richard Biener <rguenther@suse.de>
24734 * genmatch.c (replace_id): Copy expr_type.
24736 2015-02-09 Richard Biener <rguenther@suse.de>
24738 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
24739 (streamer_write_tree_bitfields): Declare.
24740 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
24741 properly unpack padding.
24742 (unpack_value_fields): Inline ...
24743 (streamer_read_tree_bitfields): ... here.
24744 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
24745 and properly add padding bits.
24746 (streamer_pack_tree_bitfields): Fold into ...
24747 (streamer_write_tree_bitfields): ... this new function,
24748 exposing the bitpack object.
24749 * lto-streamer-out.c (lto_write_tree_1): Call
24750 streamer_write_tree_bitfields.
24752 2015-02-09 Richard Biener <rguenther@suse.de>
24754 PR tree-optimization/54000
24755 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
24756 (struct ivopts_data): Add loop_loc member.
24757 (tree_ssa_iv_optimize_loop): Dump loop location.
24758 (create_new_ivs): Likewise, also dump number of IVs generated.
24760 2015-02-09 Martin Liska <mliska@suse.cz>
24762 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
24763 just if not yet registered.
24764 (ipa_icf_generate_summary): Register callgraph hooks.
24766 2015-02-08 Andrew Pinski <apinski@cavium.com>
24768 * config/aarch64/aarch64.c (gty_dummy): Delete.
24770 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24773 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
24774 (cgraph_node::local_p): Remove thunk related FIXME.
24776 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24779 * i386.c (ix86_function_regparm): Look through aliases to see if callee
24780 is local and optimized.
24781 (ix86_function_sseregparm): Likewise; also use target's SSE math
24782 settings; error out instead of silently generating wrong code
24784 (init_cumulative_args): Look through aliases.
24786 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24789 * ipa-split.c (execute_split_functions): Split if function has aliases.
24791 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
24794 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
24795 aliases before trying to expand it.
24796 (cgraph_node::expand_thunk): Fix formating.
24798 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
24800 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
24801 (Using Assembly Language with C): Expand introduction.
24802 (Basic Asm): Copy-edit. Add more information about uses of
24804 (Extended Asm): Copy-edit. Document new escape syntax and
24806 (Global Reg Vars): Copy-edit.
24807 (Local Reg Vars): Likewise.
24809 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
24813 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
24814 (DBX_CONTIN_CHAR): Define.
24816 2015-02-06 Sebastian Pop <s.pop@samsung.com>
24817 Brian Rzycki <b.rzycki@samsung.com>
24819 PR tree-optimization/64878
24820 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
24821 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
24822 Stop recursion at loop phi nodes after having visited a loop phi node.
24824 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24826 * toplev.c (process_options): Change flag_ipa_ra before creating
24827 optimization_{default,current}_node.
24830 * cgraphunit.c (cgraph_node::expand_thunk): If
24831 restype is not is_gimple_reg_type nor the thunk_fndecl
24832 returns aggregate_value_p, set restmp to a temporary variable
24833 instead of resdecl.
24835 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
24837 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
24839 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24842 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
24843 add a general secondary reload handler for SDmode, unless we have
24844 both read/write support for SDmode.
24846 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24848 PR middle-end/64937
24849 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
24850 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
24851 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
24852 1 before, push it to abstract_vec.
24853 (dwarf2out_abstract_function): Adjust caller. Don't call
24854 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
24855 DECL_ABSTRACT_P flags for all abstract_vec elts.
24857 2015-02-06 Renlin Li <renlin.li@arm.com>
24859 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
24861 * tree-ssa.c (execute_update_addresses_taken): Likewise.
24863 2015-02-06 Jeff Law <law@redhat.com>
24866 * config/h8300/h8300.c (push): New argument "in_prologue".
24867 Pass "in_prologue" along to "F".
24868 (h8300_push_pop): Corresponding changes.
24869 (h8300_expand_prologue): Likewise.
24870 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
24872 2015-02-06 Jakub Jelinek <jakub@redhat.com>
24874 PR rtl-optimization/64957
24876 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
24877 IOR rather than for AND.
24879 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
24882 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
24883 of shift-add and (add + shift) operations. Rename local variable.
24885 2015-02-05 Jeff Law <law@redhat.com>
24888 * config/h8300/constraints.md (U): Correctly dectect
24889 "eightbit_data" memory addresses.
24890 * config/h8300/h8300.c (eightbit_constant_address_p): Also
24891 handle (const (plus (symbol_ref (x)))) where x is declared
24892 as an 8-bit data memory address.
24893 * config/h8300/h8300.md (call, call_value): Correctly detect
24894 "funcvec" functions.
24897 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
24898 24 to 28 bits for the H8/300.
24900 2015-02-06 Alan Modra <amodra@gmail.com>
24903 * config/rs6000/rs6000.c (chain_already_loaded): New function.
24904 (rs6000_call_aix): Use it.
24906 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
24908 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
24911 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
24913 * config/h8300/constraints.md ("U" constraint): Use strict
24914 variant of REG_OK_FOR_BASE_P after reload has started.
24916 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
24918 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
24919 define to zero if !TARGET_NEON.
24920 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
24922 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24923 Trevor Saunders <tsaunders@mozilla.com>
24926 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
24928 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24931 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
24932 when removing varpool nodes.
24934 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24937 * varpool.c (varpool_node::remove): Fix order of variables.
24939 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24942 * ipa-inline.c (inline_small_functions): Fix ordering issue between
24943 speculation resolution and key updates.
24945 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24947 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
24948 about not letting any speculative edges unupdated.
24950 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24953 * gcov-io.c (gcov_var): Export.
24955 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24957 PR middle-end/64922
24958 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
24959 edges that become speculative.
24961 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24963 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
24964 or DW_LANG_Fortran08.
24965 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
24967 (gen_compile_unit_die): Handle "GNU Fortran2003" and
24968 "GNU Fortran2008" language strings.
24969 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
24970 * langhooks.h (lang_GNU_Fortran): New prototype.
24971 * langhooks.c (lang_GNU_Fortran): New function.
24972 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
24975 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24977 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
24978 (RTX_OK_FOR_OLO10_P): Likewise.
24980 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24982 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
24984 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24986 PR middle-end/64922
24987 * gimple.c: Include gimple-ssa.h.
24988 (maybe_remove_unused_call_args): New function.
24989 * gimple.h (maybe_remove_unused_call_args): Declare.
24990 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
24991 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
24992 * gimple-fold.c (gimple_fold_call): Likewise.
24994 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
24996 PR rtl-optimization/64905
24997 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
24998 pointer alignment if it isn't needed.
25000 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25002 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
25003 cortex-a72.cortex-a53.
25004 * config/aarch64/aarch64-tune.md: Regenerate.
25005 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
25007 2015-02-04 Nick Clifton <nickc@redhat.com>
25009 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
25012 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25014 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
25015 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
25016 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
25018 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
25019 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
25020 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
25021 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
25022 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
25023 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
25024 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
25025 * tree-core.h (enum built_in_function): In between
25026 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
25027 for builtins that use DEF_BUILTIN_CHKP macro.
25029 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
25032 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
25033 operands for tcc_comparison exprs. Fix typos.
25036 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
25037 of two XORs that have an intervening AND or IOR.
25040 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
25041 simplification of XOR of AND to not allocate new rtx before
25042 committing to a simplification.
25044 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25046 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
25047 manual swaps in all peepholes.
25049 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25051 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
25052 of manual swapping implementation.
25053 (aarch64_expand_vec_perm_const_1): Likewise.
25055 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
25057 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
25058 (generic_addrcost_table): Remove NAMED_PARAM.
25059 (cortexa57_addrcost_table): Likewise.
25060 (xgene1_addrcost_table): Likewise.
25061 (generic_regmove_table): Likewise.
25062 (cortexa53_regmove_table): Likewise.
25063 (xgene1_regmove_table): Likewise.
25064 (generic_vector_table): Likewise.
25065 (cortexa57_vector_table): Likewise.
25066 (xgene1_vector_table): Likewise.
25067 (generic_tunings): Likewise.
25068 (cortexa53_tunings): Likewise.
25069 (cortexa57_tunings): Likewise.
25070 (xgene1_tunings): Likewise.
25072 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25074 * config/arm/arm-cores.def: Add cortex-a72 and
25075 cortex-a72.cortex-a53.
25076 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
25077 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
25078 * config/arm/arm-tune.md: Regenerate.
25079 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
25080 "cortex-a72.cortex-a53".
25081 * doc/invoke.texi (ARM Options/-mtune): Likewise.
25083 2015-02-04 Nick Clifton <nickc@redhat.com>
25086 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
25088 (nonimmediate_di_operand): Likewise.
25090 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
25091 prefixes of known F5 using MSP430 MCUs.
25093 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25095 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
25096 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
25097 instead of __builtin_sqrt.
25099 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
25101 * varasm.c (do_assemble_alias): Follow transparent alias
25103 (default_assemble_visibility): Follow transparent alias
25104 chain for decl name.
25106 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25108 PR middle-end/62103
25109 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
25110 to compute size of referenced value in the constant case.
25112 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25114 PR rtl-optimization/64756
25115 * cse.c (invalidate_dest): New function.
25116 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
25117 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
25118 invalidate and do not record it.
25120 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
25123 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
25124 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
25125 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
25126 atomic_nand<mode>_soft_tcb): New insns.
25127 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
25128 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
25129 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
25130 Split into atomic_not_fetchsi_hard if operands[0] is unused.
25131 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
25132 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25133 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
25134 atomic_not<mode>_hard if operands[0] is unused.
25135 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
25136 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
25137 if operands[0] is unused.
25138 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
25139 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
25140 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
25141 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25143 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
25144 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25145 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
25146 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
25147 if operands[0] is unused.
25148 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
25149 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
25150 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
25151 atomic_nand_fetchsi_hard if operands[0] is unused.
25152 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
25153 atomic_nand<mode>_hard if operands[0] is unused.
25154 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
25155 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
25156 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
25157 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25158 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
25159 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
25160 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
25161 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25162 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
25163 atomic_not<mode>_hard if operands[0] is unused.
25164 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
25165 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25167 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25168 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25169 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
25170 atomic_nand<mode>_hard if operands[0] is unused.
25171 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25172 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25174 2015-02-03 David Malcolm <dmalcolm@redhat.com>
25177 * Makefile.in (GCC_OBJS): Add gcc-main.o.
25178 * gcc-main.c: New file, containing "main" taken from gcc.c.
25179 * gcc.c (do_self_spec): Free decoded_options.
25180 (class driver): Move declaration to gcc.h.
25181 (main): Move declaration and implementation to new file
25183 (driver_get_configure_time_options): New function.
25184 * gcc.h (class driver): Move this declaration here, from
25186 (driver_get_configure_time_options): New declaration.
25188 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
25190 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
25191 cross-module inlining.
25192 * cgraph.h (cgraph_node): Add flag merged.
25193 * ipa-icf.c (sem_function::merge): Maintain it.
25195 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
25197 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
25198 instead of OBJECT_P.
25200 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
25203 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
25204 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
25205 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
25206 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
25208 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25211 * combine.c (reg_n_sets_max): New variable.
25212 (can_change_dest_mode, reg_nonzero_bits_for_combine,
25213 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
25214 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
25215 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
25216 (rest_of_handle_combine): Initialize reg_n_sets_max.
25218 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
25220 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
25221 if some always_inline was inlined, apply changes before inlining
25224 2015-02-02 David Malcolm <dmalcolm@redhat.com>
25227 * config/arm/arm.c (arm_option_override): Set
25228 arm_selected_arch/cpu/tune to NULL on entry.
25230 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
25231 Andrew Pinski <pinskia@gcc.gnu.org>
25232 Jakub Jelinek <jakub@gcc.gnu.org>
25235 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
25236 integer typing for small model. Use IN_RANGE.
25238 2015-02-02 Richard Biener <rguenther@suse.de>
25240 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
25241 * tree-vrp.c (vrp_valueize_1): Likewise.
25243 2015-02-02 Alan Modra <amodra@gmail.com>
25245 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
25246 than mem for toc_restore.
25247 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
25248 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
25249 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
25251 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
25254 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
25255 explicit default options.
25257 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
25260 * ipa-utils.c (ipa_merge_profiles): Add release argument.
25261 * ipa-icf.c (sem_function::merge): Do not release body when merging.
25262 * ipa-utils.h (ipa_merge_profiles): Update prototype.
25264 2015-02-01 Jakub Jelinek <jakub@redhat.com>
25267 * cfgexpand.c (deep_ter_debug_map): New variable.
25268 (avoid_deep_ter_for_debug): New function.
25269 (expand_debug_expr): If TERed SSA_NAME is in
25270 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
25271 instead of trying to expand SSA_NAME's def stmt.
25272 (expand_debug_locations): When expanding debug bind
25273 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
25274 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
25276 (pass_expand::execute): Call avoid_deep_ter_for_debug on
25277 all debug bind stmts. Delete deep_ter_debug_map after
25278 expand_debug_location if non-NULL and clear it.
25280 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
25283 * config/sh/sync.md (atomic_fetch_notsi_hard,
25284 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
25285 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
25286 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
25287 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
25288 atomic_not_fetch<mode>_soft_imask): New insns.
25290 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25292 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
25293 (rank_for_schedule_debug): Split from ...
25294 (rank_for_schedule): ... this.
25295 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
25296 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
25298 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
25300 * doc/md.texi (Machine Constraints): Alphabetize table by target.
25301 * doc/extend.texi (x86 Variable Attributes): Move section to
25302 correct alphabetization after renaming.
25303 (x86 Type Attributes): Likewise.
25304 (Target Builtins): Re-alphabetize menu.
25305 (x86 Built-in Functions): Move section to correct alphabetization
25307 (x86 transactional memory intrinsics): Likewise.
25308 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
25309 and x86 Windows Options in table and menu.
25310 (x86 Options): Move section to correct alphabetization after
25312 (x86 Windows Options): Likewise.
25314 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
25316 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
25317 preferred names of the architecture and its 32- and 64-bit
25319 * doc/invoke.texi: Likewise.
25320 * doc/md.texi: Likewise.
25322 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
25325 * config/i386/predicates.md (address_no_seg_operand): Reject
25326 non-CONST_INT_P operands in invalid mode.
25328 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
25330 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
25331 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
25332 * config/i386/predicates.md (address_no_seg_operand): Call
25333 address_operand with VOIDmode.
25334 (vsib_address_operand): Ditto.
25335 (address_mpx_no_base_operand): Ditto.
25336 (address_mpx_no_index_operand): Ditto.
25338 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25341 * lra-constraints.c (original_subreg_reg_mode): New.
25342 (simplify_operand_subreg): Try to simplify subreg of const. Use
25343 original_subreg_reg_mode for it.
25344 (swap_operands): Update original_subreg_reg_mode.
25345 (curr_insn_transform): Set up original_subreg_reg_mode.
25347 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25350 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
25352 (process_alt_operands): Use it.
25353 (curr_insn_transform): Check the optional reload pseudo class is
25356 2015-01-30 Joseph Myers <joseph@codesourcery.com>
25358 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
25359 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
25361 * toplev.h (init_asm_output): Update comment on use of
25362 UNKNOWN_LOCATION with fatal_error.
25363 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
25364 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
25365 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
25366 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
25367 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
25368 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
25369 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
25370 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
25371 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
25372 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
25373 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
25374 fatal_error changed to pass input_location as first argument.
25376 2015-01-30 Martin Liska <mliska@suse.cz>
25378 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
25379 in #pragma GCC diagnostic guards.
25381 2015-01-30 Richard Biener <rguenther@suse.de>
25383 PR tree-optimization/64829
25384 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
25385 not add a widening conversion pattern but hand off extra
25386 widenings to callers.
25387 (vect_recog_widen_mult_pattern): Handle extra widening produced
25388 by vect_handle_widen_op_by_const.
25389 (vect_recog_widen_shift_pattern): Likewise.
25390 (vect_pattern_recog_1): Remove excess vertical space in dumping.
25391 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
25392 (vect_init_vector_1): Likewise.
25393 (vect_get_vec_def_for_operand): Likewise.
25394 (vect_finish_stmt_generation): Likewise.
25395 (vectorizable_load): Likewise.
25396 (vect_analyze_stmt): Likewise.
25397 (vect_is_simple_use): Likewise.
25399 2015-01-29 Jeff Law <law@redhat.com>
25401 * combine.c (try_combine): Fix typo in comment.
25403 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
25406 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
25407 (rs6000_stack_info): Add assert.
25408 (rs6000_output_savres_externs): New function, split off from...
25409 (rs6000_output_function_prologue): ... here. Do not call it for
25412 2015-01-29 Jeff Law <law@redhat.com>
25415 * combine.c (try_combine): If I0 is a memory load and I3 a store
25416 to a related address, increase the "goodness" of doing a 4-insn
25417 combination with I0-I3.
25418 (make_field_assignment): Handle SUBREGs in the ior+and case.
25420 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
25422 PR tree-optimization/64746
25423 * tree-if-conv.c (mask_exists): New function.
25424 (predicate_mem_writes): Save created mask with given size for further
25426 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
25427 (ifcvt_repair_bool_pattern): Collect all statements that are root
25428 of bool pattern and use iterative algorithm to remove multiple uses
25429 of predicates, display number of required iterations.
25431 2015-01-29 Richard Biener <rguenther@suse.de>
25433 PR tree-optimization/64853
25434 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
25435 stmt will get simulated again.
25436 * tree-ssa-ccp.c (valueize_op_1): Likewise.
25438 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25440 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
25441 return_in_pc. Remove redundant assignments.
25442 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
25443 (arm_expand_epilogue): Don't compare boolean with true in if condition.
25445 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
25447 * config/i386/i386.c (ix86_mode_after): Make static.
25449 2015-01-29 Richard Biener <rguenther@suse.de>
25451 PR tree-optimization/64844
25452 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
25453 dump cost model analysis.
25454 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25455 Do not register adjusted load/store costs here.
25457 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25458 Uros Bizjak <ubizjak@gmail.com>
25460 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
25461 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
25462 using x86_use_pseudo_pic_reg.
25463 * config/i386/i386.c (ix86_conditional_register_usage): Remove
25464 support for fixed PIC register.
25465 (ix86_use_pseudo_pic_reg): Not static any more.
25467 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25469 PR middle-end/64805
25470 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
25471 to avoid error in cgraph node verification.
25473 2015-01-29 Marek Polacek <polacek@redhat.com>
25475 * doc/standards.texi: Reflect that the default for C is gnu11.
25477 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
25480 * reorg.c (switch_text_sections_between_p): New function.
25481 (relax_delay_slots): Call it when testing if the jump insn
25482 is removable. Use targetm.can_follow_jump when testing if
25483 the conditional branch can follow an unconditional jump.
25485 2015-01-27 Caroline Tice <cmtice@google.com>
25487 Committing VTV Cywin/Ming patch for Patrick Wollgast
25488 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
25489 if -fvtable-verify=preinit/std is used.
25490 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
25491 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
25492 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
25493 if -fvtable-verify=preinit/std is used.
25494 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25495 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
25496 if -fvtable-verify=preinit/std is used.
25497 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
25498 * config/i386/mingw32.h (LIB_SPEC): Likewise.
25499 * varasm.c (assemble_variable): Add code to properly set the comdat
25500 section and name for the .vtable_map_vars section in case the
25501 target is PE or COFF.
25503 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25506 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
25507 make sane BB profile.
25508 (cgraph_node::expand_thunk): Make sane BB profile.
25509 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
25510 * cgraph.h (init_lowered_empty_function): Update prototype.
25511 * config/i386/i386.c (make_resolver_func): Update call.
25512 * predict.c (gate): Disable branch prediction pass if
25513 profile is already there.
25515 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25517 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
25518 * opth-gen.awk: Likewise.
25519 * common.opt: Mark flag_fp_contract_mode as Optimization.
25521 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
25523 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
25524 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
25526 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
25529 * config/sh/predicates.md (atomic_arith_operand,
25530 atomic_logical_operand): Remove.
25531 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
25532 (atomic_arith_operand_0): New predicate.
25533 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
25534 Use atomic_arith_operand_0 for input values.
25535 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
25536 atomic_compare_and_swap<mode>_soft_gusa,
25537 atomic_compare_and_swap<mode>_soft_tcb,
25538 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
25539 arith_reg_operand instead of register_operand.
25540 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
25541 atomic_arith_operand_0 for newval input.
25542 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
25543 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
25544 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
25545 arith_reg_operand instead of register_operand.
25546 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
25547 fetchop_predicate_1, fetchop_constraint_1_llcs,
25548 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
25549 fetchop_constraint_1_imask): New code iterator attributes.
25550 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
25551 register_operand. Use fetchop_predicate_1.
25552 (atomic_fetch_<fetchop_name>si_hard,
25553 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
25554 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
25555 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
25556 and arith_reg_operand instead of register_operand. Use
25557 fetchop_predicate_1, fetchop_constraint_1_gusa.
25558 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
25559 and arith_reg_operand instead of register_operand. Use
25560 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
25562 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
25563 and arith_reg_operand instead of register_operand. Use
25564 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
25566 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
25567 register_operand. Use atomic_logical_operand_1.
25568 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
25569 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
25570 arith_reg_operand instead of register_operand.
25571 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
25572 Use arith_reg_dest and arith_reg_operand instead of register_operand.
25573 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
25574 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
25575 register_operand. Use fetchop_predicate_1.
25576 (atomic_<fetchop_name>_fetchsi_hard,
25577 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
25578 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25579 fetchop_constraint_1_llcs.
25580 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
25581 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25582 fetchop_constraint_1_gusa.
25583 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
25584 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25585 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
25586 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
25587 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
25588 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
25589 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
25590 register_operand. Use atomic_logical_operand_1.
25591 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
25592 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
25593 arith_reg_operand instead of register_operand.
25594 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
25595 arith_reg_operand instead of register_operand. Use logical_operand
25596 and K08. Adjust asm sequence to allow R0 usage.
25597 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
25598 arith_reg_operand instead of register_operand. Use logical_operand
25601 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25604 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
25605 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
25606 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
25607 only get_full_len HOST_WIDE_INTs from get_val () array rather than
25608 all bits in *val_wide.
25610 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
25612 * varpool.c (tls_model_names): Fix names.
25613 (varpool_node::dump): Dump tls- prefix for tls models.
25615 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
25616 Bernd Schmidt <bernds@codesourcery.com>
25617 Nathan Sidwell <nathan@codesourcery.com>
25619 * config/nvptx/mkoffload.c: New file.
25620 * config/nvptx/t-nvptx: Add build rules for it.
25621 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
25622 (extra_programs): Add mkoffload.
25623 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
25625 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
25627 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
25629 PR middle-end/64809
25630 * cfgexpand.c (reorder_operands): Skip debug gimples.
25632 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
25634 PR tree-optimization/64277
25635 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
25636 range info when possible to refine estimation.
25638 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25640 PR tree-optimization/64718
25641 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
25642 be a 16bit unsigned integer when n->range is 16.
25643 (bswap_replace): Convert src to that type if necessary for all bswap
25644 sizes. Fix rotation right notation in nearby comment. Use bswap_type
25645 set in pass_optimize_bswap::execute ().
25647 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
25649 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
25650 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
25651 integer and floating point variants.
25652 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
25654 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
25656 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
25657 for all vector modes.
25659 2015-01-28 Jakub Jelinek <jakub@redhat.com>
25662 * doc/sourcebuild.texi (comdat_group): Document.
25664 2015-01-28 Terry Guo <terry.guo@arm.com>
25666 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
25668 2015-01-27 David Malcolm <dmalcolm@redhat.com>
25670 * toplev.c (print_version): Add param "show_global_state", and
25671 only print GGC and plugin information if it is true.
25672 (init_asm_output): Pass in "true" for the new param when calling
25674 (process_options): Likewise.
25675 (toplev::main): Likewise.
25676 * toplev.h (print_version): Add new param to decl.
25678 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25682 * tree.c (lookup_binfo_at_offset): New function.
25683 (get_binfo_at_offset): Use it.
25685 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
25688 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
25689 on vtable being vtable.
25691 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
25693 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
25694 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
25695 -mhotpatch= option.
25696 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
25697 -mno-hotpatch options. Change syntax of -mhotpatch= option.
25698 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
25700 (s390_hotpatch_trampoline_halfwords_max): Renamed.
25701 (s390_hotpatch_hw_max): New name.
25702 (s390_hotpatch_trampoline_halfwords): Renamed.
25703 (s390_hotpatch_hw_before_label): New name.
25704 (get_hotpatch_attribute): Removed.
25705 (s390_hotpatch_hw_after_label): New name.
25706 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
25708 (s390_attribute_table): Ditto.
25709 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
25710 (s390_function_num_hotpatch_hw): New name.
25711 Remove special handling of inline functions and hotpatching.
25712 Return number of nops before and after the function label.
25713 (s390_can_inline_p): Removed.
25714 (s390_asm_output_function_label): Emit a configurable number of nops
25715 after the function label.
25716 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
25717 (TARGET_CAN_INLINE_P) Removed.
25718 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
25720 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25721 Jiong Wang <jiong.wang@arm.com>
25723 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
25725 (cb<optab><mode>1): Likewise.
25726 * config/aarch64/iterators.md (bcond): New define_code_attr.
25728 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25730 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
25733 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25735 * config/s390/s390.c (s390_register_move_cost): Increase costs for
25738 2015-01-27 Richard Biener <rguenther@suse.de>
25740 * tree-vrp.c (update_value_range): Intersect the range with
25741 old recorded SSA name range information.
25743 2015-01-27 Nick Clifton <nickc@redhat.com>
25745 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
25746 BC, DE and HL registers directly, not via AX.
25747 When decrementing the stack pointer by a large amount, transfer SP
25748 into AX and perform the subtraction there.
25749 (rl78_expand_epilogue): Perform the inverse of the above
25752 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25754 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
25756 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25757 Yury Gribov <y.gribov@samsung.com>
25760 * ubsan.c (ubsan_source_location): Refactor code.
25761 (ubsan_type_descriptor): Update type size. Refactor code.
25763 2015-01-27 Richard Biener <rguenther@suse.de>
25765 PR tree-optimization/56273
25766 PR tree-optimization/59124
25767 PR tree-optimization/64277
25768 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
25769 from the first VRP pass.
25771 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25774 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
25775 handle the first argument in the same loop as all the other arguments.
25777 PR rtl-optimization/61058
25778 * jump.c (cleanup_barriers): Update basic block boundaries
25779 if BLOCK_FOR_INSN is non-NULL on PREV.
25781 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
25783 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
25784 bounds narrowing, already instrumented calls and calls to
25785 not instrumentable functions.
25787 2015-01-27 Jakub Jelinek <jakub@redhat.com>
25789 PR tree-optimization/64807
25790 * wide-int.cc (wi::divmod_internal): Clear
25791 b_dividend[dividend_blocks_needed].
25793 2015-01-26 DJ Delorie <dj@redhat.com>
25795 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
25796 volatile memory references.
25798 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
25801 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
25803 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
25804 shifts if it already fits into K08.
25806 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25809 * ipa-inline.c (inline_small_functions): Print "unknown" even
25810 if edge->call_stmt is non-NULL, but has builtins or unknown
25813 PR middle-end/64421
25814 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
25815 with asterisk, skip the first character.
25817 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25820 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
25823 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
25826 * config/i386/i386.md (*movdi_internal): Also check operand 0
25827 to determine TYPE_LEA operand.
25828 (*movsi_internal): Ditto.
25830 2015-01-26 Jakub Jelinek <jakub@redhat.com>
25832 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
25833 OPTION_MASK_QUAD_MEMORY_ATOMIC.
25835 2015-01-26 Renlin Li <renlin.li@arm.com>
25837 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
25839 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
25842 2015-01-26 Richard Biener <rguenther@suse.de>
25844 PR middle-end/64764
25845 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
25846 combining two BIT_AND_EXPR predicates.
25848 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
25851 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
25853 2015-01-26 Terry Guo <terry.guo@arm.com>
25855 * config/arm/arm.c (arm_file_start): Update the assignment of
25856 Tag_ABI_HardFP_use.
25858 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
25860 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
25862 config/arm/arm.md: Include the new Cortex-A57 model.
25863 (generic_sched): Don't use generic_sched when tuning for
25866 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
25867 Uros Bizjak <ubizjak@gmail.com>
25869 * config/i386/i386.c (get_builtin_code_for_version): Add
25870 support for BMI and BMI2 multiversion functions.
25872 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25874 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
25875 (extract_bit_field): Likewise.
25876 (extract_low_bits): Likewise.
25877 (expand_mult): Likewise.
25878 (expand_mult_highpart_adjust): Likewise.
25880 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
25882 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
25883 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
25884 * config/i386/i386.c (processor_model): Add
25885 M_INTEL_COREI7_BROADWELL.
25886 (arch_names_table): Add "broadwell".
25888 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
25897 * config/sh/sh-protos.h
25898 (sh_extending_set_of_reg::can_use_as_unextended_reg,
25899 sh_extending_set_of_reg::use_as_unextended_reg,
25900 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
25901 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
25902 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
25903 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
25904 (sh_treg_insns): New class.
25905 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
25906 (scope_counter): New class.
25907 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
25908 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
25909 sh_extending_set_of_reg::can_use_as_unextended_reg,
25910 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
25911 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
25912 sh_split_treg_set_expr): New functions.
25913 (addsubcosts): Handle treg_set_expr.
25914 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
25915 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
25916 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
25917 (sh_insn_operands_modified_between_p): Make non-static.
25918 * config/sh/predicates.md (zero_extend_movu_operand): Allow
25919 simple_mem_operand in addition to displacement_mem_operand.
25920 (zero_extend_operand): Don't allow zero_extend_movu_operand.
25921 (treg_set_expr, treg_set_expr_not_const01,
25922 arith_reg_or_treg_set_expr): New predicates.
25923 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
25924 arith_or_int_operand instead of logical_operand. Convert to
25925 insn_and_split. Try to optimize constant operand in splitter.
25926 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
25927 (*tstqi_t_zero): Delete.
25928 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
25929 (tstsi_t_and_not): Delete.
25930 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
25931 Convert to insn_and_split.
25932 (unnamed split, tstsi_t_zero_extract_xor,
25933 tstsi_t_zero_extract_subreg_xor_little,
25934 tstsi_t_zero_extract_subreg_xor_big): Delete.
25935 (*tstsi_t_shift_mask): New insn_and_split.
25936 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
25937 to recombine with surrounding insns when splitting.
25938 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
25939 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
25940 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
25941 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
25942 (*cbranch_div0s: Delete.
25943 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25944 Try to recombine with surrounding insns when splitting. Add operand
25946 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
25947 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
25948 *addc_r_r_msb, *addc_2r_msb): Delete.
25949 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
25951 (*addc_negreg_t): New insn_and_split.
25952 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
25953 Try to recombine with surrounding insns when splitting.
25954 Add operand order variants.
25955 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
25956 insn_and_split patterns.
25957 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
25958 surrounding insns when splitting.
25959 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
25960 (*rotcl): Likewise. Add zero_extract variant.
25961 (*ashrsi2_31): New insn_and_split.
25962 (*negc): Convert to insn_and_split. Use treg_set_expr.
25963 (*zero_extend<mode>si2_disp_mem): Update comment.
25964 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
25966 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
25967 with surrounding insns when splitting.
25968 (any_treg_expr_to_reg): New insn_and_split.
25969 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
25970 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
25971 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
25972 *zero_extract_2): New single bit zero extract patterns.
25973 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
25974 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
25975 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
25976 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
25978 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
25979 register_operand for set source.
25981 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
25983 * i386.opt (prefetch_sse): New targetsave.
25984 * i386.c (ix86_function_specific_save): Save prefetch_sse.
25985 (ix86_function_specific_restore): Restore prefetch_sse and initialize
25986 ix86_cost/ix86_tune_cost.
25988 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25990 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
25991 Support the JIT by using 0 as the language type.
25993 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
25996 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
25997 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
25998 (mark_regno_live, process_bb_lives): Pass new parameter value to
25999 make_hard_regno_born.
26001 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26003 PR rtl-optimization/63637
26004 PR rtl-optimization/60663
26005 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
26006 if elt->cost is MAX_COST for ASM_OPERANDS.
26007 (find_sets_in_insn): Fix up comment typo.
26008 (cse_insn): Don't set src_volatile for all non-volatile
26009 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
26010 or with "memory" clobber. Set elt->cost to MAX_COST
26011 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
26012 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
26014 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26016 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
26019 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26021 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
26022 libgcc/config/i386/elf-lib.h.
26024 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26027 * gcc.c (print_configuration): Don't print a blank line at the end
26029 (run_attempt): ... but here unstead.
26031 PR middle-end/64734
26032 * omp-low.c (scan_sharing_clauses): Don't ignore
26033 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
26034 on target data/update constructs.
26036 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
26039 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
26040 (DEBUG_RELOAD): Removed define.
26041 (m32c_limit_reload_class): Enable traces with if DEBUG0.
26042 (m32c_function_arg): Added a type cast.
26043 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
26044 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
26045 * config/m32c/bitops.md (andqi3_16): Likewise.
26046 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
26047 (push_a01_l): Likewise.
26049 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26052 * main.c (main): Construct toplev instances with init_signals=true.
26053 * toplev.c (general_init): Add param "init_signals", and use it to
26054 conditionalize the calls to signal and host_hooks.extra_signals.
26055 (toplev::toplev): Add param "init_signals".
26056 (toplev::main): When invoking general_init, pass m_init_signals
26057 to control whether signal-handlers are installed.
26058 * toplev.h (toplev::toplev): Add param "init_signals".
26059 (toplev::m_init_signals): New field.
26061 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26064 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
26065 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
26066 latter may be affected by the former (e.g. on i686).
26068 2015-01-23 Martin Liska <mliska@suse.cz>
26070 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
26071 false positive during profiledbootstrap.
26073 2015-01-23 Tom de Vries <tom@codesourcery.com>
26076 * lto-opts.c (lto_write_options): Output non-explicit conservative
26078 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
26079 (append_compiler_options): Pass -fopenacc through.
26081 2015-01-23 Tom de Vries <tom@codesourcery.com>
26084 * lto-opts.c (lto_write_options): Output non-explicit conservative
26086 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
26087 (append_compiler_options): Pass -fopenmp through.
26089 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26092 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
26095 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
26096 * diagnostic.def (DK_ICE_NOBT): New kind.
26097 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
26098 like DK_ICE, but never print backtrace.
26099 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
26100 (internal_error_no_backtrace): New function.
26101 * gcc.c (execute): Use internal_error_no_backtrace instead of
26104 2015-01-22 Jeff Law <law@redhat.com>
26107 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
26108 improve code density for small immediate to memory case.
26109 (insv): Better handle bitfield assignments when the field is
26110 being set to all ones.
26111 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
26114 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26115 Jakub Jelinek <jakub@redhat.com>
26117 PR middle-end/64729
26118 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
26119 for !TARGET_LIBC_PROVIDES_SSP version and
26120 -fstack-protector-{all,strong,explicit} otherwise.
26121 * config/freebsd.h (LINK_SSP_SPEC): Handle
26122 -fstack-protector-{strong,explicit}.
26124 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
26125 H.J. Lu <hongjiu.lu@intel.com>
26128 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
26131 2015-01-22 Wei Mi <wmi@google.com>
26133 PR rtl-optimization/64557
26134 * dse.c (record_store): Call get_addr for mem_addr.
26135 (check_mem_read_rtx): Likewise.
26137 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
26139 * fold-const.c (const_binop): Add early return for non-tcc_binary.
26141 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
26143 * toplev.c (init_local_tick): Process the failure when read
26144 fails for random_seed.
26146 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
26147 'pretty_name' to avoid memory overflow.
26149 2015-01-22 Richard Biener <rguenther@suse.de>
26151 PR middle-end/64728
26152 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
26153 abnormal coalescing on undefined SSA names.
26155 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
26159 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
26161 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
26163 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
26165 PR middle-end/63325
26166 * fold-const.c (fold_checksum_tree): Don't include value of
26167 expr->decl_with_vis.symtab_node in the checksum.
26169 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26171 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
26173 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
26176 * gcc.c (insert_comments): New function.
26177 (try_generate_repro): Call it.
26178 (append_text): Removed.
26180 2015-01-22 Richard Biener <rguenther@suse.de>
26182 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
26183 with IL incompatible options. Properly honor user optimize
26186 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
26188 PR rtl-optimization/64682
26189 * combine.c (distribute_notes): When moving a death note for
26190 a register that is set in the new I2, make sure to put it
26191 before that new I2.
26193 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
26195 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
26196 not TARGET_DEFAULT.
26198 2015-01-21 Jakub Jelinek <jakub@redhat.com>
26201 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
26202 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
26203 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
26206 * doc/invoke.texi (-fsanitize=vptr): Document.
26208 PR rtl-optimization/62078
26209 * dse.c: Include cfgcleanup.h.
26210 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
26211 anything call purge_all_dead_edges and cleanup_cfg at the end
26214 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
26216 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
26219 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26221 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
26224 2015-01-21 David Sherwood <david.sherwood@arm.com>
26225 Tejas Belagod <Tejas.Belagod@arm.com>
26227 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
26228 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
26229 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
26232 2015-01-21 David Sherwood <david.sherwood@arm.com>
26233 Tejas Belagod <Tejas.Belagod@arm.com>
26235 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
26236 (aarch64_reverse_mask): New decls.
26237 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
26238 (insn_count): New mode_attr.
26239 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
26240 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
26241 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
26242 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
26243 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
26244 (aarch64_simd_st4): New patterns.
26245 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
26246 (aarch64_reverse_mask): New functions.
26248 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
26250 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
26252 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
26253 addressing modes for BE.
26254 (aarch64_print_operand): Add 'R' specifier.
26255 (aarch64_simd_disambiguate_copy): Delete.
26256 (aarch64_simd_emit_reg_reg_move): New function.
26257 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
26258 in define_splits for structural moves.
26259 (mov<mode>): Use less restrictive predicates.
26260 (*aarch64_mov<mode>): Simplify and only allow for LE.
26261 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
26263 2015-01-21 Alan Hayward <alan.hayward@arm.com>
26265 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
26267 2015-01-21 Richard Henderson <rth@redhat.com>
26270 * ccmp.c (used_in_cond_stmt_p): Remove.
26271 (expand_ccmp_expr): Don't use it.
26273 2015-01-21 Nick Clifton <nickc@redhat.com>
26275 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
26278 2015-01-21 Richard Biener <rguenther@suse.de>
26280 PR middle-end/64313
26281 * tree-core.h (builtin_info, builtin_info_type): Turn from
26282 an object with two arrays into an array of an object with
26283 decl and two flags, implicit_p and declared_p.
26284 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
26285 set_builtin_decl, set_builtin_decl_implicit_p,
26286 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
26287 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
26288 * builtins.c (builtin_info): Adjust.
26289 * gimplify.c (gimplify_addr_expr): References to builtins
26290 that have been declared by the user makes them eligible for
26291 use by the compiler. Call set_builtin_decl_implicit_p on them.
26293 2015-01-20 Jeff Law <law@redhat.com>
26296 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
26297 allow pc-relative addresses in operand predicates or constraints.
26299 2015-01-21 Bin Cheng <bin.cheng@arm.com>
26301 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
26302 neon on aarch32 processors for stringops.
26304 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26307 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
26309 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26312 * ipa-inline.c: Include lto-streamer.h
26313 (report_inline_failed_reason): Output source file differences and
26314 flags on optimization/target node mismatch.
26315 (can_inline_edge_p): Consider caller to be the outer inline function;
26316 be less restrictive about matching opimize and optimize_size attributes.
26317 (inline_account_function_p): Break out from ...
26318 (inline_small_functions): ... here.
26319 * ipa-inline-transform.c (clone_inlined_nodes): Use
26320 inline_account_function_p.
26321 (inline_call): Use optimize attribution; use inline_account_function_p.
26322 (inline_transform): Use opt_for_fn.
26323 * ipa-inline.h (inline_account_function_p): Declare.
26325 2015-01-20 Jakub Jelinek <jakub@redhat.com>
26328 * dwarf2out.c (decl_piece_node): Don't put bitsize into
26329 mode if bitsize <= 0.
26330 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
26331 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
26332 sizes and positions.
26334 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
26336 * config/nios2/nios2.c (nios2_asm_file_end): Implement
26337 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
26339 (TARGET_ASM_FILE_END): Define.
26341 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26343 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
26344 (struct tune_params): Use the enum.
26345 * arm.c (arm_*_tune): Update.
26346 (arm_option_override): Update.
26348 2015-01-20 Richard Biener <rguenther@suse.de>
26351 * ipa-reference.c (add_static_var): Inline ...
26352 (analyze_function): ... here after splitting out from ...
26353 (is_proper_for_analysis): ... this.
26355 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
26358 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
26359 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
26360 replace the conditional with it's true branch.
26361 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
26362 (arm_lra_p): Remove.
26364 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
26366 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
26368 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26370 * config/tilegx/mul-tables.c: Move symtab.h include after
26371 coretypes.h include.
26372 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
26373 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
26374 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
26375 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
26376 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26378 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
26382 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26384 PR rtl-optimization/64081
26385 * loop-iv.c (def_pred_latch_p): New function.
26386 (latch_dominating_def): Allow specific cases with non-single
26388 (iv_get_reaching_def): Likewise.
26389 (check_complex_exit_p): New function.
26390 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26391 with exits not executing on any iteration.
26393 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26396 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
26397 to set branch cost.
26399 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26402 * i386.c (gate): Check flag_expensive_optimizations and
26404 (ix86_option_override_internal): Drop optimize_size condition
26405 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
26406 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
26407 MASK_PREFER_AVX128.
26408 (ix86_avx256_split_vector_move_misalign,
26409 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
26410 * sse.md (all uses of TARGET_PREFER_AVX128): Add
26411 optimize_insn_for_speed_p check.
26413 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
26415 * config/mips/mips.h (FP_ASM_SPEC): New define.
26416 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
26419 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
26422 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
26423 nullptr for insn when reaching the first insn.
26424 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
26425 (sh_insn_operands_modified_between_p): Add nullptr check.
26426 (sh_find_extending_set_of_reg): Fix log message. Don't accept
26427 sign extending mem load if the insn contains any UNSPEC or
26430 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26432 * params.def (inline-unit-growth): Drop to 15%.
26433 * invoke.texi (inline-unit-growth): Document change.
26435 2015-01-19 Martin Liska <mliska@suse.cz>
26438 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
26439 function for second argument of OBJ_TYPE_REF.
26441 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26444 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
26445 whether function is an alias.
26447 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26449 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
26452 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
26454 PR rtl-optimization/64671
26455 * lra-remat.c (operand_to_remat): Don't consider jump and call
26458 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
26461 * config/rs6000/default64.h: Include rs6000-cpus.def.
26462 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
26463 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
26464 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
26466 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
26468 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
26469 pseudo-op to specify assembler dialect.
26471 2015-01-19 Martin Liska <mliska@suse.cz>
26474 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
26475 Handle safe potentially removed nodes during filtering.
26477 2015-01-19 Martin Liska <mliska@suse.cz>
26479 * doc/extend.texi (no_icf): Add new attribute description.
26480 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
26481 where the pass attempts to merge a function with no_icf attribute.
26483 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26486 * doc/md.texi (ARM Options): Document register constraints.
26488 2015-01-19 Jiong Wang <jiong.wang@arm.com>
26489 Andrew Pinski <apinski@cavium.com>
26492 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
26493 (ashl<mode>3): Don't expand if operands[2] is not constant.
26495 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26498 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
26499 Match xor-and-xor RTL pattern.
26501 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26503 PR rtl-optimization/64081
26504 * loop-iv.c (def_pred_latch_p): New function.
26505 (latch_dominating_def): Allow specific cases with non-single
26507 (iv_get_reaching_def): Likewise.
26508 (check_complex_exit_p): New function.
26509 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26510 with exits not executing on any iteration.
26512 2015-01-19 Jakub Jelinek <jakub@redhat.com>
26514 * common.opt (fgraphite): Fix a typo.
26516 2015-01-19 Felix Yang <felix.yang@huawei.com>
26518 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
26520 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
26521 uminp, smax_nanp, smin_nanp): New builtins.
26522 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
26523 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
26524 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
26525 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
26526 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
26527 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
26528 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
26529 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
26530 vpminnms_f32): Rewrite using builtin functions.
26532 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
26535 * omp-low.c (offload_symbol_decl): Remove variable.
26536 (get_offload_symbol_decl): Remove function.
26537 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
26538 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
26539 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
26540 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
26541 BUILT_IN_GOACC_UPDATE don't pass it at all.
26543 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26545 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
26548 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26550 * ipa-chkp.c (chkp_produce_thunks): Add early param
26551 to split thunks production into two passes. Keep
26552 'always_inline' function bodies after the first pass.
26553 (pass_data_ipa_chkp_early_produce_thunks): New.
26554 (pass_ipa_chkp_early_produce_thunks): New.
26555 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
26556 chkp_produce_thunks signature.
26557 (make_pass_ipa_chkp_early_produce_thunks): New.
26558 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
26559 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
26560 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
26562 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26564 * cgraph.c (cgraph_node::dump): Dump profile flags.
26566 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
26569 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
26570 reg appear first in the parallel.
26572 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26574 * ipa-reference.c (set_reference_optimization_summary,
26575 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
26577 (ignore_module_statics): New static var.
26578 (propagate_bits): If ipa-reference is disabled, do not look into local
26580 (analyze_function): Disable analysis when ipa_reference is disabled.
26581 (generate_summary): Do not dump when reference is disabled;
26582 collect vars accessed from functions with ipa-reference disabled.
26583 (get_read_write_all_from_node): When ipa-reference is disabled, use the
26585 (gate): Enable for LTO.
26586 (ignore_edge_p): New function.
26587 (propagate): Skip functions w/o ipa-reference analysis.
26588 * optc-save-gen.awk: Handle optimize_debug correctly.
26589 * opth-gen.awk: Likewise.
26590 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
26591 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
26592 fira-share-save-slots, fira-share-spill-slots,
26593 fmodulo-sched-allow-regmoves, fpartial-inlining,
26594 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
26595 ftracer, ftree-parallelize-loops, fassociative-math,
26596 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
26598 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
26599 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
26601 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
26604 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
26607 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
26609 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
26611 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
26613 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
26614 Remove duplicate option listings.
26616 2015-01-18 Felix Yang <felix.yang@huawei.com>
26618 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
26619 (autofdo_source_profile::get_callsite_total_count,
26620 function_instance::get_function_instance_by_decl,
26621 string_table::get_index, string_table::get_index_by_decl,
26622 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
26623 Fix comment typos. Reformatting and minor code rearrangement.
26625 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26627 * config/rs6000/rs6000.md (probe_stack): Delete.
26628 (probe_stack_address): New.
26630 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26632 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
26633 to test for 32-bit ABIs, not !TARGET_POWERPC64.
26635 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
26637 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
26638 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
26639 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
26641 (rs6000_libcall_value): Use the new function.
26643 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
26645 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
26647 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
26649 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
26650 implement a more precise life analysis for it during backward scan.
26652 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
26654 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
26656 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
26658 PR rtl-optimization/52773
26659 * calls.c (emit_library_call_value): When pushing arguments use
26660 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
26661 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
26662 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
26664 2015-01-17 Jeff Law <law@redhat.com>
26666 PR rtl-optimization/32790
26667 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
26668 not ZERO_EXTEND in SET_DESTs.
26670 2015-01-17 Alan Modra <amodra@gmail.com>
26672 * cprop.c (do_local_cprop): Revert last change.
26674 2015-01-16 DJ Delorie <dj@redhat.com>
26675 Nick Clifton <nickc@redhat.com>
26677 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
26678 (addhi3_real): Likewise. Fix [HL+0] syntax.
26679 (subqi3_real): Likewise.
26680 (subhi3_real): Likewise.
26681 (cbranchqi4_real): Likewise. Allow saddr,#imm.
26682 (cbranchhi4_real): Likewise.
26683 (cbranchhi4_real_inverted): Likewise.
26684 (cbranchsi4_real_lt): Likewise.
26685 (cbranchsi4_real_ge): Likewise.
26686 (cbranchsi4_real_ge): Likewise.
26687 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
26688 (sub<mode>3_virt): Likewise.
26689 (cbranchqi4_virt): Likewise.
26690 (cbranchhi4_virt): Likewise.
26691 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
26692 always use '[reg+imm]' even when imm is zero.
26693 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
26694 (rl78_general_operand): New.
26695 (rl78_nonimmediate_operand): New.
26696 (rl78_nonfar_operand): Use them.
26697 (rl78_nonfar_nonimm_operand): Likewise.
26698 (rl78_stack_based_mem): Fix.
26699 * config/rl78/constraints.md (Ibqi): New.
26704 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
26705 (iorqi3): Likewise.
26706 (xorqi3): Likewise.
26707 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
26709 * config/rl78/constrains (Qs8): New constraint.
26710 * config/rl78/rl78.c (rl78_flags_already_set): New function.
26711 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
26712 * config/rl78/rl78-real.md (update_Z): New attribute.
26713 Update patterns to set it.
26714 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
26715 shorter compare and branch sequence can be used.
26716 (cbranchhi4_real): Likewise.
26717 (cbranchhi4_real_inverted): Likewise.
26719 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
26720 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
26722 * config/rl78/rl78.c (rl78_get_name_encoding): New.
26723 (rl78_option_override): Allow -mes0 only if C.
26724 (characterize_address): Support subregs of symbol_refs.
26725 (rl78_addr_space_address_mode): Move. Add __near.
26726 (rl78_far_p): Likewise.
26727 (rl78_addr_space_pointer_mode): Likewise.
26728 (rl78_as_legitimate_address): Likewise.
26729 (rl78_addr_space_subset_p): Likewise.
26730 (rl78_addr_space_convert): Likewise.
26731 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
26732 symbols with -mes0.
26733 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
26735 (rl78_alloc_physical_registers_op1): Change logic to prefer
26736 symbol[BC] addressing.
26737 (frodata_section): New.
26738 (rl78_asm_init_sections): Initialize it.
26739 (rl78_select_section): Put __far readonly symbols in .frodata.
26740 (rl78_make_type_far): New.
26741 (rl78_insert_attributes): Force all readonly symbols to be
26743 (rl78_asm_out_integer): New.
26744 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
26745 * config/rl78/rl78.opt (-mes0): New.
26747 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
26748 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
26749 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
26750 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
26751 (rl78_saddr_p): New.
26752 (rl78_output_aligned_common): New.
26753 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
26754 (rl78_handle_saddr_attribute): New.
26755 (rl78_handle_naked_attribute): New.
26756 (rl78_attribute_table): Add saddr.
26757 (rl78_print_operand_1): Don't print '!' on saddr operands.
26758 (rl78_print_operand_1): Strip encodings.
26760 (rl78_strip_name_encoding): New.
26761 (rl78_attrlist_to_encoding): New.
26762 (rl78_encode_section_info): New.
26763 (rl78_asm_init_sections): New.
26764 (rl78_select_section): New.
26765 (rl78_output_labelref): New.
26766 (rl78_output_aligned_common): New.
26767 (rl78_asm_out_integer): New.
26768 (rl78_asm_ctor_dtor): New.
26769 (rl78_asm_constructor): New.
26770 (rl78_asm_destructor): New.
26772 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
26773 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
26774 (transcode_memory_rtx): Update.
26775 (rl78_expand_epilogue): Use A_REG instead of 0.
26777 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26779 * config/arm/arm-protos.h (struct tune_params): New field
26780 sched_autopref_queue_depth.
26781 * config/arm/arm.c (sched-int.h): Include header.
26782 (arm_first_cycle_multipass_dfa_lookahead_guard,)
26783 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
26784 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
26785 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
26786 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
26787 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
26788 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
26789 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
26790 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
26791 * config/arm/t-arm (arm.o): Update.
26792 * haifa-sched.c (update_insn_after_change): Update.
26793 (rank_for_schedule): Use auto-prefetcher model, if requested.
26794 (autopref_multipass_init): New static function.
26795 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
26796 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
26797 variable for debug dumps.
26798 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
26799 (autopref_multipass_dfa_lookahead_guard): New global function that
26800 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
26801 (init_h_i_d): Update.
26802 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
26803 * sched-int.h (enum autopref_multipass_data_status): New const enum.
26804 (autopref_multipass_data_): Structure for auto-prefetcher data.
26805 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
26806 (struct _haifa_insn_data:autopref_multipass_data): New field.
26807 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
26808 (autopref_multipass_dfa_lookahead_guard): Declare.
26810 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26812 * rtlanal.c (get_base_term): Handle SCRATCH.
26814 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26816 * config/aarch64/aarch64.c
26817 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
26818 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26820 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
26821 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26823 2015-01-17 Alan Modra <amodra@gmail.com>
26825 * cprop.c (do_local_cprop): Disallow replacement of fixed
26828 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26831 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
26834 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
26836 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
26837 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
26839 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26841 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
26842 * config/arm/thumb1.md: ... Here.
26844 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26846 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
26847 TImode for TARGET_32BIT.
26849 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26851 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
26852 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
26854 (rs6000_abi_word_mode): New function.
26856 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26858 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
26859 instead of UNITS_PER_WORD to describe the size of stack slots.
26861 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26863 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
26864 as rs6000_promote_function_mode. Move comment to there.
26865 (rs6000_promote_function_mode): New function.
26867 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
26869 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
26870 -mpowerpc64 is active.
26872 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26874 PR middle-end/64353
26875 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
26878 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26880 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
26881 introduced in revision 219724.
26883 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26884 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26887 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
26888 destination is not a GP reg.
26889 (*movdi_aarch64): Likewise.
26891 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
26894 * config/rs6000/default64.h: Revert ISA change.
26896 2015-01-16 Richard Biener <rguenther@suse.de>
26898 PR middle-end/64614
26899 * tree-ssa-uninit.c: Include tree-cfg.h.
26900 (MAX_SWITCH_CASES): New define.
26901 (convert_control_dep_chain_into_preds): Handle switch statements.
26902 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
26903 (normalize_one_pred_1): Do not split bit-manipulations.
26906 2015-01-16 Richard Biener <rguenther@suse.de>
26908 PR tree-optimization/64568
26909 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
26910 complex load rewriting for TARGET_MEM_REFs.
26912 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
26914 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
26916 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
26919 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
26921 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
26922 (aarch64_lra_p): Remove.
26924 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26927 * ipa-chkp.h (chkp_instrumentable_p): New.
26928 * ipa-chkp.c: Include tree-inline.h.
26929 (chkp_instrumentable_p): New.
26930 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
26931 Fix processing of not instrumentable functions.
26932 (chkp_versioning): Use chkp_instrumentable_p. Warn about
26933 not instrumentable functions.
26934 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
26935 chkp_instrumentable_p.
26936 * tree-inline.h (copy_forbidden): New.
26937 * tree-inline.c (copy_forbidden): Not static anymore.
26939 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26941 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
26944 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26946 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
26947 type OP_OUT to OP_INOUT.
26949 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
26951 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
26952 (high x) y) to y if x and y have the same base.
26954 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26956 * config/arm/cortex-a57.md: New.
26957 * config/aarch64/aarch64.md: Include it.
26958 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
26959 * config/aarch64/aarch64-tune.md: Regenerate.
26961 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
26964 * ccmp.c (expand_ccmp_next): New function.
26965 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
26966 and compare insn sequence.
26967 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
26968 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
26969 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
26970 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
26971 (*ccmp_ior): Changed to ccmp_ior<mode>.
26972 (cmp<mode>): New pattern.
26973 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
26975 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
26977 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
26979 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
26980 _mm256_bsrli_epi128): New.
26981 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
26983 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26985 * expmed.c (store_bit_field_using_insv): Improve warning message.
26986 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
26988 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26990 PR rtl-optimization/64011
26991 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
26992 there is partial overflow.
26994 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26996 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
26998 (nds32_expand_epilogue_v3pop): Likewise.
26999 * config/nds32/nds32.md (sibcall): Define this for sibling call
27001 (sibcall_register): Likewise.
27002 (sibcall_immediate): Likewise.
27003 (sibcall_value): Likewise.
27004 (sibcall_value_register): Likewise.
27005 (sibcall_value_immediate): Likewise.
27006 (sibcall_epilogue): Likewise.
27007 (epilogue): Pass false to indicate this is not a sibcall epilogue.
27008 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
27009 (nds32_expand_epilogue_v3pop): Likewise.
27011 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27013 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
27014 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
27015 (return_internal): New.
27016 (return): Define this named pattern.
27017 (simple_return): Define this named pattern.
27018 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
27019 pattern instead of unspec_volatile_func_return.
27020 (nds32_expand_epilogue_v3pop): Likewise.
27021 (nds32_can_use_return_insn): New function.
27023 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27025 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
27026 * config/nds32/nds32.md (pop25return): New.
27027 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
27028 pop25return pattern.
27030 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27032 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
27033 -mforbid-fp-as-gp, and -mex9 options.
27035 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27037 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
27038 remove -mgp-direct option.
27040 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27042 * doc/invoke.texi (--param early-inlining-insns): Update default value.
27043 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
27045 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27047 * ipa-inline.c (inline_small_functions): Work around hints
27050 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
27053 * doc/invoke.texi (Option Summary): Document new Nios II
27055 (Nios II Options): Likewise.
27056 * config/nios2/nios2.opt: Add -mgpopt= option support.
27057 Modify existing -mgpopt and -mno-gpopt options to be aliases.
27058 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
27059 * config/nios2/nios2.c (nios2_option_override): Adjust
27060 -mgpopt defaulting.
27061 (nios2_in_small_data_p): Return true for explicit small data
27062 sections even with -G0.
27063 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
27066 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27069 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
27071 (inline_call): Fix removal of aliases.
27073 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27075 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
27076 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
27077 * opts.c (common_handle_option): Add -fsanitize=vptr.
27078 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
27079 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
27080 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
27081 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
27082 (ubsan_expand_vptr_ifn): New prototype.
27083 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
27084 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
27085 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
27086 expand_LOOP_VECTORIZED): Make argument nameless, remove
27088 (expand_UBSAN_VPTR): New function.
27089 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
27091 (UBSAN_VPTR): New internal function.
27092 * sanopt.c (tree_map_traits): Renamed to ...
27093 (sanopt_tree_map_traits): ... this.
27094 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
27095 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
27096 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
27097 (maybe_optimize_ubsan_vptr_ifn): New function.
27098 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
27099 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
27101 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
27102 internal calls like pure functions for aliasing, even when they
27103 have other side-effects that prevent making them ECF_PURE.
27104 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
27105 (ubsan_expand_vptr_ifn): New function.
27107 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
27109 PR rtl-optimization/64110
27110 * stmt.c (parse_output_constraint): Process '^' and '$'.
27111 (parse_input_constraint): Ditto.
27112 * lra-constraints.c (process_alt_operands): Process the new
27114 * ira-costs.c (record_reg_classes): Process the new constraint
27116 * genoutput.c (indep_constraints): Add '^' and '$'.
27117 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
27118 * doc/md.texi: Add description of the new constraints.
27120 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
27121 Bernd Schmidt <bernds@codesourcery.com>
27122 Cesar Philippidis <cesar@codesourcery.com>
27123 James Norris <jnorris@codesourcery.com>
27124 Tom de Vries <tom@codesourcery.com>
27125 Ilmir Usmanov <i.usmanov@samsung.com>
27126 Dmitry Bocharnikov <dmitry.b@samsung.com>
27127 Evgeny Gavrin <e.gavrin@samsung.com>
27128 Jakub Jelinek <jakub@redhat.com>
27130 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
27131 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27132 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27133 New function types.
27134 * builtins.c: Include "gomp-constants.h".
27135 (expand_builtin_acc_on_device): New function.
27136 (expand_builtin, is_inexpensive_builtin): Handle
27137 BUILT_IN_ACC_ON_DEVICE.
27138 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
27140 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
27142 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
27143 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
27144 i386/intelmic-offload.h.
27145 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
27146 to libgomp and its dependencies.
27147 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
27148 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27149 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27150 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27151 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27152 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27153 * doc/generic.texi: Update for OpenACC changes.
27154 * doc/gimple.texi: Likewise.
27155 * doc/invoke.texi: Likewise.
27156 * doc/sourcebuild.texi: Likewise.
27157 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
27158 GF_OMP_FOR_KIND_OACC_LOOP.
27159 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
27160 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
27161 GF_OMP_TARGET_KIND_OACC_UPDATE,
27162 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27164 * gimple.c: Update comments for OpenACC changes.
27165 * gimple.def: Likewise.
27166 * gimple.h: Likewise.
27167 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
27168 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27169 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
27170 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27171 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
27173 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
27174 * gimplify.c: Include "gomp-constants.h".
27175 Update comments for OpenACC changes.
27176 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
27177 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
27178 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27179 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
27180 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27181 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27182 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
27183 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27184 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
27186 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
27187 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27188 OMP_CLAUSE_SET_MAP_KIND.
27189 (gimplify_oacc_cache): New function.
27190 (gimplify_omp_for): Handle OACC_LOOP.
27191 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
27193 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
27194 OACC_EXIT_DATA, OACC_UPDATE.
27195 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
27196 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
27197 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
27198 (gimplify_body): Consider flag_openacc next to flag_openmp.
27199 * lto-streamer-out.c: Include "gomp-constants.h".
27200 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
27201 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
27202 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
27203 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
27204 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
27205 (BUILT_IN_ACC_ON_DEVICE): New builtins.
27206 * omp-low.c: Include "gomp-constants.h".
27207 Update comments for OpenACC changes.
27208 (struct omp_context): Add reduction_map, gwv_below, gwv_this
27210 (extract_omp_for_data, use_pointer_for_field, install_var_field)
27211 (new_omp_context, delete_omp_context, scan_sharing_clauses)
27212 (create_omp_child_function, scan_omp_for, scan_omp_target)
27213 (check_omp_nesting_restrictions, lower_reduction_clauses)
27214 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
27215 Update for OpenACC changes.
27216 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
27217 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
27218 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
27219 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27220 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
27221 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
27223 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27224 Handle GF_OMP_FOR_KIND_OACC_LOOP.
27225 (expand_omp_target, lower_omp_target): Handle
27226 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27227 GF_OMP_TARGET_KIND_OACC_UPDATE,
27228 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
27229 GF_OMP_TARGET_KIND_OACC_DATA.
27230 (pass_expand_omp::execute, execute_lower_omp)
27231 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
27233 (offload_symbol_decl): New variable.
27234 (oacc_get_reduction_array_id, oacc_max_threads)
27235 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
27236 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
27237 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
27238 (oacc_gimple_assign, oacc_initialize_reduction_data)
27239 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
27241 (is_targetreg_ctx): Remove function.
27242 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
27243 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
27244 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27245 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
27246 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
27247 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
27248 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
27249 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
27250 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
27251 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
27252 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
27253 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
27254 * tree-core.h: Update comments for OpenACC changes.
27255 (enum omp_clause_map_kind): Remove.
27256 (struct tree_omp_clause): Change type of map_kind member from enum
27257 omp_clause_map_kind to unsigned char.
27258 * tree-inline.c: Update comments for OpenACC changes.
27259 * tree-nested.c: Likewise. Include "gomp-constants.h".
27260 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
27261 (convert_tramp_reference_stmt, convert_gimple_call): Update for
27262 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27263 OMP_CLAUSE_SET_MAP_KIND.
27264 * tree-pretty-print.c: Include "gomp-constants.h".
27265 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
27266 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
27267 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
27268 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
27269 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27270 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
27271 instead of OMP_CLAUSE_MAP_*.
27272 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
27273 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
27274 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27275 * tree-streamer-in.c: Include "gomp-constants.h".
27276 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
27277 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
27278 * tree-streamer-out.c: Include "gomp-constants.h".
27279 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
27281 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
27282 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
27283 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
27284 * tree.c (omp_clause_num_ops): Update accordingly.
27285 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
27287 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
27288 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
27289 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
27290 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
27291 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
27292 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
27293 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
27294 (OMP_CLAUSE_SET_MAP_KIND): New macro.
27295 * varpool.c (varpool_node::get_create): Consider flag_openacc next
27297 * config/i386/intelmic-offload.h: New file.
27298 * config/nvptx/offload.h: Likewise.
27300 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27302 * explow.h: Remove duplicate contents.
27303 * dojump.h: Likewise.
27305 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
27307 * arm.c (arm_xgene_tune): Add default initializer for instruction
27310 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27314 * ipa.c (symbol_table::remove_unreachable_nodes):
27315 Do not put abstract origins into boundary.
27317 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
27319 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
27320 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
27322 2015-01-15 Steve Ellcey <sellcey@mips.com>
27324 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
27325 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
27326 builtins.def, and chkp-builtins.def.
27328 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
27330 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
27333 2015-01-15 Richard Biener <rguenther@suse.de>
27335 PR tree-optimization/61743
27336 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
27337 information on PHIs for some simple cases.
27339 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27341 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
27343 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
27344 * config/arm/arm-cores.def (xgene1): New entry.
27345 * config/arm/arm-tables.opt: Regenerate.
27346 * config/arm/arm-tune.md: Regenerate.
27347 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
27349 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27351 * tree-if-conv.c: Include hash-map.h.
27352 (aggressive_if_conv): New variable.
27353 (fold_build_cond_expr): Add simplification of non-zero condition.
27354 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
27355 destination block is not always executed.
27356 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
27357 than two predecessors if AGGRESSIVE_IF_CONV is true.
27358 (if_convertible_stmt_p): Fix commentary.
27359 (all_preds_critical_p): New function.
27360 (has_pred_critical_p): New function.
27361 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
27362 BB can have more than two predecessors and all incoming edges can be
27364 (predicate_bbs): Skip predication for loop exit block, use build2_loc
27365 to compute predicate for true edge.
27366 (find_phi_replacement_condition): Delete this function.
27367 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
27368 Allow interchange PHI arguments if EXTENDED is false.
27369 Change check that block containing reduction statement candidate
27370 is predecessor of phi-block since phi may have more than two arguments.
27371 (phi_args_hash_traits): New helper structure.
27372 (struct phi_args_hash_traits): New type.
27373 (phi_args_hash_traits::hash): New function.
27374 (phi_args_hash_traits::equal_keys): New function.
27375 (gen_phi_arg_condition): New function.
27376 (predicate_scalar_phi): Add handling of phi nodes with more than two
27377 arguments, delete COND and TRUE_BB arguments, insert body of
27378 find_phi_replacement_condition to predicate ordinary phi nodes.
27379 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
27380 delete call of find_phi_replacement_condition and invoke
27381 predicate_scalar_phi with two arguments.
27382 (insert_gimplified_predicates): Add assert that non-predicated block
27383 don't have statements to insert.
27384 (ifcvt_split_critical_edges): New function.
27385 (ifcvt_split_def_stmt): Likewise.
27386 (ifcvt_walk_pattern_tree): Likewise.
27387 (stmt_is_root_of_bool_pattern): Likewise.
27388 (ifcvt_repair_bool_pattern): Likewise.
27389 (ifcvt_local_dce): Likewise.
27390 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
27391 is copy of inner or outer loop force_vectorize field, invoke
27392 ifcvt_split_critical_edges, ifcvt_local_dce and
27393 ifcvt_repair_bool_pattern for aggressive if-conversion.
27395 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
27397 * config/aarch64/aarch64.md: Include xgene1.md.
27398 * config/aarch64/xgene1.md: New file.
27400 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27402 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
27403 xgene1 (APM XGene-1) core definition.
27404 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
27405 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
27406 * doc/invoke.texi: Document -mcpu=xgene1.
27408 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27410 * dojump.h: New header file.
27411 * explow.h: Likewise.
27412 * expr.h: Remove includes.
27413 Move expmed.c prototypes to expmed.h.
27414 Move dojump.c prototypes to dojump.h.
27415 Move alias.c prototypes to alias.h.
27416 Move explow.c prototypes to explow.h.
27417 Move calls.c prototypes to calls.h.
27418 Move emit-rtl.c prototypes to emit-rtl.h.
27419 Move varasm.c prototypes to varasm.h.
27420 Move stmt.c prototypes to stmt.h.
27421 (saved_pending_stack_adjust): Move to dojump.h.
27422 (adjust_address): Move to explow.h.
27423 (adjust_address_nv): Move to emit-rtl.h.
27424 (adjust_bitfield_address): Likewise.
27425 (adjust_bitfield_address_size): Likewise.
27426 (adjust_bitfield_address_nv): Likewise.
27427 (adjust_automodify_address_nv): Likewise.
27428 * explow.c (expr_size): Move to expr.c.
27429 (int_expr_size): Likewise.
27430 (tree_expr_size): Likewise.
27431 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27432 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27433 * genemit.c (main): Generate includes statistics.h, real.h,
27434 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
27436 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
27437 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
27438 explow.h, emit-rtl.h, stmt.h.
27439 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
27440 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
27441 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
27442 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
27443 emit-rtl.h, varasm.h, stmt.h.
27444 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
27445 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
27446 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
27447 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
27448 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27449 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
27450 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
27451 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
27452 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
27453 tm.h tree.h varasm.h vec.h wide-int.h.
27454 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27455 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27456 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
27457 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
27458 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
27459 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
27460 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
27461 * loop-iv.c: Likewise.
27462 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
27463 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
27464 statistics.h stmt.h tree.h varasm.h wide-int.h.
27465 * lra-constraints.c: Likewise.
27466 * lra-eliminations.c: Likewise.
27467 * lra-lives.c: Likewise.
27468 * lra-remat.c: Likewise.
27469 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27470 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
27471 statistics.h stmt.h tree.h varasm.h wide-int.h.
27472 * hw-doloop.c: Likewise.
27473 * ira-color.c: Likewise.
27474 * ira-emit.c: Likewise.
27475 * loop-doloop.c: Likewise.
27476 * loop-invariant.c: Likewise.
27477 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27478 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
27479 statistics.h stmt.h tree.h varasm.h wide-int.h.
27480 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
27481 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
27482 statistics.h stmt.h tree.h varasm.h wide-int.h.
27483 * combine-stack-adj.c: Likewise.
27486 * ifcvt.c: Likewise.
27487 * ira-costs.c: Likewise.
27488 * jump.c: Likewise.
27489 * lra-coalesce.c: Likewise.
27490 * lra-spills.c: Likewise.
27491 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27492 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
27493 stmt.h varasm.h wide-int.h.
27494 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27495 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27497 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
27498 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
27499 statistics.h stmt.h varasm.h wide-int.h.
27500 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
27501 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
27502 varasm.h wide-int.h.
27503 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
27504 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27505 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
27506 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
27507 statistics.h stmt.h.
27508 * config/tilepro/tilepro.c: Likewise.
27509 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
27510 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
27511 * config/pdp11/pdp11.c: Likewise.
27512 * config/xtensa/xtensa.c: Likewise.
27513 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
27514 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27516 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27517 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27518 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
27519 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27520 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27521 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
27522 * rtl-chkp.c: Likewise.
27523 * tree-chkp-opt.c: Likewise.
27524 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
27525 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27526 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
27527 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27528 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27529 statistics.h stmt.h.
27530 * tree-vect-data-refs.c: Likewise.
27531 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
27532 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27533 rtl.h statistics.h stmt.h varasm.h.
27534 * internal-fn.c: Likewise.
27535 * ipa-icf-gimple.c: Likewise.
27536 * lto-section-out.c: Likewise.
27537 * tree-data-ref.c: Likewise.
27538 * tree-nested.c: Likewise.
27539 * tree-outof-ssa.c: Likewise.
27540 * tree-predcom.c: Likewise.
27541 * tree-pretty-print.c: Likewise.
27542 * tree-scalar-evolution.c: Likewise.
27543 * tree-ssa-strlen.c: Likewise.
27544 * tree-vect-loop.c: Likewise.
27545 * tree-vect-patterns.c: Likewise.
27546 * tree-vect-slp.c: Likewise.
27547 * tree-vect-stmts.c: Likewise.
27548 * tsan.c: Likewise.
27549 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27550 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
27552 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
27553 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27554 statistics.h stmt.h varasm.h.
27555 * loop-unroll.c: Likewise.
27556 * ubsan.c: Likewise.
27557 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
27558 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
27560 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27561 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
27562 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
27563 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27564 statistics.h stmt.h.
27565 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
27566 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27567 statistics.h stmt.h varasm.h.
27568 * gimple-match-head.c: Likewise.
27569 * lto-cgraph.c: Likewise.
27570 * lto-section-in.c: Likewise.
27571 * lto-streamer-in.c: Likewise.
27572 * lto-streamer-out.c: Likewise.
27573 * tree-affine.c: Likewise.
27574 * tree-cfg.c: Likewise.
27575 * tree-cfgcleanup.c: Likewise.
27576 * tree-if-conv.c: Likewise.
27577 * tree-into-ssa.c: Likewise.
27578 * tree-ssa-alias.c: Likewise.
27579 * tree-ssa-copyrename.c: Likewise.
27580 * tree-ssa-dse.c: Likewise.
27581 * tree-ssa-forwprop.c: Likewise.
27582 * tree-ssa-live.c: Likewise.
27583 * tree-ssa-math-opts.c: Likewise.
27584 * tree-ssa-pre.c: Likewise.
27585 * tree-ssa-sccvn.c: Likewise.
27586 * tree-tailcall.c: Likewise.
27587 * tree-vect-generic.c: Likewise.
27588 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27589 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
27590 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27591 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
27592 * varasm.c: Likewise.
27593 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27594 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
27596 * init-regs.c: Likewise.
27598 * omp-low.c: Likewise.
27599 * stack-ptr-mod.c: Likewise.
27600 * tree-ssa-reassoc.c: Likewise.
27601 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27602 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
27604 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27605 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
27606 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27607 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
27608 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27609 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
27610 * tree-ssa-phiopt.c: Likewise.
27611 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27612 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27613 * config/fr30/fr30.c: Likewise.
27614 * config/frv/frv.c: Likewise.
27615 * expr.c: Likewise.
27616 * final.c: Likewise.
27617 * optabs.c: Likewise.
27618 * passes.c: Likewise.
27619 * simplify-rtx.c: Likewise.
27620 * stmt.c: Likewise.
27621 * toplev.c: Likewise.
27622 * var-tracking.c: Likewise.
27623 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27624 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27625 * lower-subreg.c: Likewise.
27626 * postreload-gcse.c: Likewise.
27628 * reginfo.c: Likewise.
27629 * store-motion.c: Likewise.
27630 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27631 fixed-value.h hashtab.h real.h stmt.h varasm.h.
27632 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27633 fixed-value.h hashtab.h statistics.h stmt.h.
27634 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27635 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27636 * except.c: Likewise.
27637 * explow.c: Likewise.
27638 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27639 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
27641 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27642 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
27643 * tree-ssa-structalias.c: Likewise.
27644 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27645 fixed-value.h insn-config.h real.h statistics.h.
27646 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27647 fixed-value.h insn-config.h real.h statistics.h stmt.h.
27648 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27649 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27650 * cfgbuild.c: Likewise.
27651 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27652 fixed-value.h real.h rtl.h statistics.h stmt.h.
27653 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27654 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27655 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27656 fixed-value.h real.h statistics.h stmt.h.
27657 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27658 fixed-value.h real.h statistics.h stmt.h varasm.h.
27659 * cprop.c: Likewise.
27660 * modulo-sched.c: Likewise.
27661 * postreload.c: Likewise.
27662 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27663 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
27664 statistics.h stmt.h varasm.h.
27665 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
27666 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27667 rtl.h statistics.h stmt.h varasm.h.
27668 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
27669 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
27671 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27672 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
27674 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
27675 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
27677 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
27678 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27679 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27680 function.h real.h statistics.h stmt.h varasm.h.
27681 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27682 insn-config.h real.h statistics.h stmt.h.
27683 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27684 statistics.h stmt.h.
27685 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
27686 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
27687 statistics.h stmt.h varasm.h.
27688 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
27689 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
27690 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27691 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
27692 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
27693 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27694 statistics.h stmt.h varasm.h.
27695 * ipa-polymorphic-call.c: Likewise.
27696 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
27697 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27698 statistics.h stmt.h.
27699 * config/c6x/c6x.c: Likewise.
27700 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
27701 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27702 statistics.h stmt.h varasm.h.
27703 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
27704 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
27706 * ipa-split.c: Likewise.
27707 * tree-eh.c: Likewise.
27708 * tree-ssa-dce.c: Likewise.
27709 * tree-ssa-loop-niter.c: Likewise.
27710 * tree-vrp.c: Likewise.
27711 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
27712 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
27714 * config/nds32/nds32-fp-as-gp.c: Likewise.
27715 * config/nds32/nds32-intrinsic.c: Likewise.
27716 * config/nds32/nds32-isr.c: Likewise.
27717 * config/nds32/nds32-md-auxiliary.c: Likewise.
27718 * config/nds32/nds32-memory-manipulation.c: Likewise.
27719 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27720 * config/nds32/nds32-predicates.c: Likewise.
27721 * config/nds32/nds32.c: Likewise.
27722 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
27723 fixed-value.h hashtab.h real.h statistics.h.
27724 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
27725 fixed-value.h hashtab.h real.h statistics.h stmt.h.
27726 * config/arm/arm.c: Likewise.
27727 * config/avr/avr.c: Likewise.
27728 * config/bfin/bfin.c: Likewise.
27729 * config/h8300/h8300.c: Likewise.
27730 * config/i386/i386.c: Likewise.
27731 * config/ia64/ia64.c: Likewise.
27732 * config/iq2000/iq2000.c: Likewise.
27733 * config/m32c/m32c.c: Likewise.
27734 * config/m32r/m32r.c: Likewise.
27735 * config/m68k/m68k.c: Likewise.
27736 * config/mcore/mcore.c: Likewise.
27737 * config/mep/mep.c: Likewise.
27738 * config/mips/mips.c: Likewise.
27739 * config/mn10300/mn10300.c: Likewise.
27740 * config/moxie/moxie.c: Likewise.
27741 * config/pa/pa.c: Likewise.
27742 * config/rl78/rl78.c: Likewise.
27743 * config/rx/rx.c: Likewise.
27744 * config/s390/s390.c: Likewise.
27745 * config/sh/sh.c: Likewise.
27746 * config/sparc/sparc.c: Likewise.
27747 * config/spu/spu.c: Likewise.
27748 * config/stormy16/stormy16.c: Likewise.
27749 * config/v850/v850.c: Likewise.
27750 * config/vax/vax.c: Likewise.
27751 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
27752 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27753 * config/msp430/msp430.c: Likewise.
27754 * predict.c: Likewise.
27755 * value-prof.c: Likewise.
27756 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
27757 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
27758 * config/microblaze/microblaze.c: Likewise.
27759 * config/nios2/nios2.c: Likewise.
27760 * config/rs6000/rs6000.c: Likewise.
27761 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27762 insn-config.h real.h rtl.h statistics.h stmt.h.
27763 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27764 insn-config.h real.h statistics.h stmt.h.
27765 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
27766 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27767 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
27768 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27769 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
27770 fixed-value.h real.h statistics.h stmt.h.
27771 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
27772 fixed-value.h statistics.h stmt.h.
27773 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
27776 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27778 * gengtype.c (create_user_defined_type): Workaround
27779 -Wmaybe-uninitialized false positives.
27780 * cse.c (fold_rtx): Likewise.
27781 * loop-invariant.c (gain_for_invariant): Likewise.
27783 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
27785 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
27786 set the memory attributes in all cases but clear MEM_EXPR if need be.
27788 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27790 PR tree-optimization/64434
27791 * cfgexpand.c (reorder_operands): New function.
27792 (expand_gimple_basic_block): Insert call of reorder_operands if
27795 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
27797 * config/mips/micromips.md (*swp): Remove explicit parallel.
27798 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
27799 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
27800 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
27801 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
27802 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
27803 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
27804 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
27805 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
27806 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
27807 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
27808 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
27809 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
27810 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
27811 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
27812 (mips_wrdsp): Likewise.
27813 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
27815 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
27816 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
27817 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
27818 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
27819 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
27820 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
27821 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
27822 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
27823 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
27825 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27827 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
27828 (mips_print_operand): Support 'y' to print exact log2 in decimal
27830 * config/mips/mips.h (ISA_HAS_LSA): New define.
27831 (ISA_HAS_DLSA): Likewise.
27832 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
27833 * config/mips/predicates.md (const_immlsa_operand): New predicate.
27835 2015-01-15 Martin Liska <mliska@suse.cz>
27838 * optc-save-gen.awk: Add support for array types.
27840 2015-01-15 Richard Biener <rguenther@suse.de>
27842 PR middle-end/64365
27843 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
27844 for MEM_REF access functions with the same base can never partially
27847 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
27849 * common.opt: New option -fstack-protector-explicit.
27850 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
27851 (stack_protect_decl_phase): Handle stack_protect attribute for
27852 explicit stack protection requests.
27853 (expand_used_vars): Similarly.
27854 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
27855 * doc/extend.texi: Add documentation for "stack_protect" attribute.
27856 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
27858 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
27861 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
27863 (sh_extending_set_of_reg): New struct.
27864 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
27865 sh_remove_reg_dead_or_unused_notes): New Declarations.
27866 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
27867 sh_find_extending_set_of_reg, sh_split_tst_subregs,
27868 sh_extending_set_of_reg::use_as_extended_reg): New functions.
27869 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
27870 convert to insn_and_split and use new function sh_split_tst_subregs.
27872 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
27874 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
27876 (Optimization Options): Move -fuse-ld documentation to...
27877 (Link Options): ...here.
27879 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27881 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
27883 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
27884 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
27885 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
27886 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
27887 instead of ZR for the memory operand of LL/SC.
27888 (compare_and_swap_12, sync_add<mode>): Likewise.
27889 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
27890 (sync_new_<optab>_12, sync_nand_12): Likewise.
27891 (sync_old_nand_12, sync_new_nand_12): Likewise.
27892 (sync_sub<mode>, sync_old_add<mode>): Likewise.
27893 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
27894 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
27895 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
27896 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
27897 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
27898 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
27899 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
27900 * doc/md.texi (ZC): Update description.
27902 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27904 * builtins.c (expand_builtin_atomic_exchange): Remove error when
27905 memory model is CONSUME.
27906 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
27907 expand_builtin_atomic_store): Change invalid memory model errors to
27909 (expand_builtin_atomic_clear): Change invalid model errors to warnings
27910 and issue warning for CONSUME.
27912 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
27914 * lto-cgraph: Update function comments for
27915 lto_symtab_encoder_encode_*.
27917 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27919 * Makefile.in (site.exp): Do not set ENABLE_LTO.
27921 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
27923 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
27924 * lto-cgraph.c (select_what_to_stream): Remove argument, use
27925 lto_stream_offload_p instead.
27926 * lto-streamer.h (select_what_to_stream): Remove argument.
27927 * passes.c (ipa_write_summaries): Likewise.
27928 * tree-pass.h (ipa_write_summaries): Likewise.
27930 2015-01-14 Richard Biener <rguenther@suse.de>
27932 PR tree-optimization/59354
27933 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
27934 groups larger than the slp group size as having gaps.
27936 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
27938 PR middle-end/59448
27939 * builtins.c (get_memmodel): Promote consume to acquire always.
27941 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27944 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
27947 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27950 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
27952 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
27953 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
27954 AVX512VBMI, as it implies AVX512BW.
27956 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27959 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
27960 (vec_unpacks_hi_v16sf): Ditto.
27962 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27964 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
27967 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27969 * doc/invoke.texi (mapcs): Mention deprecation.
27970 (mapcs-frame): Likewise.
27972 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
27975 * config/arm/arm.c (callee_saved_reg_p): Define.
27976 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
27977 register is callee saved instead of !call_used_regs[reg].
27978 (thumb1_compute_save_reg_mask): Likewise.
27980 2015-01-14 Hale Wang <hale.wang@arm.com>
27982 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
27985 2015-01-14 Richard Biener <rguenther@suse.de>
27988 * tree-inline.c (insert_debug_decl_map): Check destination
27989 function MAY_HAVE_DEBUG_STMTS.
27990 (insert_init_debug_bind): Likewise.
27991 (insert_init_stmt): Remove redundant check.
27992 (remap_gimple_stmt): Drop debug stmts if the destination
27993 function has var-tracking assignments disabled.
27995 2015-01-14 Martin Liska <mliska@suse.cz>
27997 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
27998 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
28000 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28003 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
28004 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
28006 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28008 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
28009 level from an ARCH; do not inject the default.
28010 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
28011 MIPS_ISA_LEVEL_SPEC.
28012 (MIPS_ISA_NAN2008_SPEC): Update comment.
28013 (BASE_DRIVER_SELF_SPECS): Likewise.
28014 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
28015 MIPS_DEFAULT_ISA_LEVEL_SPEC.
28016 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
28017 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
28018 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
28020 2015-01-14 Richard Biener <rguenther@suse.de>
28022 PR tree-optimization/64493
28023 PR tree-optimization/64495
28024 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
28025 assign the proper vectorized PHI to the inner loop exit PHIs.
28027 2015-01-14 Joey Ye <joey.ye@arm.com>
28029 * config/arm/arm.c (arm_compute_save_reg_mask):
28030 Do not save lr in case of tail call.
28031 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
28033 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
28035 * tree-vrp.c (check_array_ref): Emit more warnings
28036 for warn_array_bounds >= 2.
28037 * common.opt: New option -Warray-bounds=.
28038 * doc/invoke.texi: Document -Warray-bounds=.
28040 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
28042 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
28043 (mforbid-fp-as-gp): Remove.
28045 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
28046 (nds32_symbol_load_store_p): Remove.
28047 (nds32_fp_as_gp_check_available): Clean up implementation.
28048 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
28050 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
28051 fp-as-gp and ex9 cases.
28053 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28055 * tree-profile.c (init_ic_make_global_vars): Drop workaround
28056 for bintuils bug 14342.
28057 (init_ic_make_global_vars): Likewise.
28058 (gimple_init_edge_profiler): Likewise.
28059 (gimple_gen_ic_func_profiler): Likewise.
28061 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28063 * ipa-inline.c (inline_small_functions): Swap the operands in
28066 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28069 * ipa-inline-analysis.c (node_growth_cache): Remove.
28070 (initialize_growth_caches): Do not initialize it.
28071 (free_growth_caches): Do not free it.
28072 (do_estimate_growth): Rename to ...
28073 (estimate_growth): ... this one; drop growth cache code.
28074 (growth_likely_positive): Always go the heuristics way.
28075 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
28076 (reset_edge_caches): Do not reset node growth.
28077 (heap_edge_removal_hook): Do not maintain cache.
28078 (inline_small_functions): Likewise; strenghten sanity check.
28079 (ipa_inline): Do not maintain caches.
28080 * ipa-inline.h (node_growth_cache): Remove.
28081 (do_estimate_growth): Remove to ...
28082 (estimate_growth): this one; remove inline version.
28083 (reset_node_growth_cache): Remove.
28085 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28088 * ipa-inline.c (inline_small_functions): Update callee keys after
28089 resolving speculation
28090 (inline_small_functions): Always check monotonicity of the queue.
28092 2015-01-13 Marek Polacek <polacek@redhat.com>
28094 PR middle-end/64391
28095 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
28097 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28099 PR rtl-optimization/64286
28100 * ree.c (combine_reaching_defs): Move part of comment earlier,
28101 remove !SCALAR_INT_MODE_P check.
28102 (add_removable_extension): Don't add vector mode
28103 extensions if all uses of the source register aren't the same
28106 2015-01-13 Renlin Li <renlin.li@arm.com>
28108 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
28109 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
28111 2015-01-13 Martin Liska <mliska@suse.cz>
28113 * ipa-icf.c (sem_function::equals_private): Call new functions
28114 cl_target_option_print_diff and cl_optimization_print_diff.
28115 * optc-save-gen.awk (cl_target_option_print_diff): New function.
28116 (cl_optimization_print_diff): Likewise.
28117 * opth-gen.awk: Likewise.
28119 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
28121 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
28122 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
28123 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
28124 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
28125 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
28126 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
28128 2015-01-13 Andrew Pinski <apinski@cavium.com>
28130 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
28131 instead of src mode.
28133 2015-01-13 Richard Biener <rguenther@suse.de>
28136 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
28139 2015-01-13 Andrew Pinski <apinski@cavium.com>
28141 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
28143 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
28145 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28147 PR middle-end/63974
28148 * cfgexpand.c (expand_computed_goto): Don't call
28149 convert_memory_address here.
28151 2015-01-13 Richard Biener <rguenther@suse.de>
28153 PR tree-optimization/64406
28154 * tree-loop-distibution.c (pass_loop_distribution::execute):
28155 Reset the SCEV hashtable if we distributed anything.
28157 2015-01-13 Richard Biener <rguenther@suse.de>
28159 PR tree-optimization/64404
28160 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
28161 SLP types for CSEd loads.
28163 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28165 PR tree-optimization/64436
28166 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
28167 merge of two symbolic numbers for a bitwise OR to ...
28168 (perform_symbolic_merge): This. Also fix computation of the range and
28169 end of the symbolic number corresponding to the result of a bitwise OR.
28171 2015-01-13 Richard Biener <rguenther@suse.de>
28173 PR tree-optimization/64568
28174 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
28175 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
28177 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28179 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
28180 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
28182 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28184 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
28185 target-specific symbol_ref flag.
28186 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
28187 resides in rodata section.
28188 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
28189 (nds32_encode_section_info): New function.
28191 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28193 * config/nds32/nds32.md (call): Use pseudo instruction bal which
28194 clobbers TA_REGNUM if large code model is specified.
28195 (call_register): Likewise.
28196 (call_immediate): Likewise.
28197 (call_value): Likewise.
28198 (call_value_register): Likewise.
28199 (call_value_immediate): Likewise.
28201 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28203 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
28204 (TARGET_CMODEL_MEDIUM): New macro.
28205 (TARGET_CMODEL_LARGE): New macro.
28206 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
28207 code model setting in assembly code.
28209 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28211 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28212 Remove MASK_GP_DIRECT flag.
28213 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
28214 one of the multilib default options.
28215 * config/nds32/nds32.opt (mgp-direct): Remove.
28216 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
28217 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
28219 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28221 * config/nds32/nds32.opt (mcmodel): Add new option.
28222 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
28223 to describe code model.
28225 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
28228 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
28230 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
28232 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
28233 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28234 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
28235 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
28236 __builtin_sh_set_fpscr.
28238 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28240 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
28241 after a funtion name just to indicate it is a function.
28242 ([-fsanitize-undefined-trap-on-error]): Likewise.
28243 ([-fdbg-cnt=]): Likewise.
28244 ([-mmemcpy]): Likewise.
28245 ([-mflush-func]): Likewise.
28246 ([-msynci]): Likewise.
28248 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28250 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
28253 2015-01-12 Jakub Jelinek <jakub@redhat.com>
28255 PR tree-optimization/64563
28256 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
28257 instead of != VR_VARYING.
28260 * config/i386/i386.c (ix86_expand_prologue): Add
28261 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
28263 PR tree-optimization/64454
28264 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
28265 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
28266 for signed or [0, op1 - 1] for unsigned modulo.
28267 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28268 even if op1 does not satisfy integer_pow2p.
28271 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
28273 2015-01-12 Jeff Law <law@redhat.com>
28276 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
28277 (trunchiqi2, truncsihi2): Similarly.
28279 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
28280 rather than calling F.
28282 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
28284 * tsan.c (instrument_expr): Use force_gimple_operand.
28285 Use may_be_nonaddressable_p instead of is_gimple_addressable.
28287 2015-01-12 Richard Biener <rguenther@suse.de>
28289 PR tree-optimization/64530
28290 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
28293 2015-01-12 Richard Biener <rguenther@suse.de>
28295 PR middle-end/64357
28296 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
28299 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28301 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
28302 Cortex-A17 tuning parameters.
28303 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
28305 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28307 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
28308 * config/arm/arm.c (arm_macro_fusion_p): New function.
28309 (arm_macro_fusion_pair_p): Likewise.
28310 (TARGET_SCHED_MACRO_FUSION_P): Define.
28311 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
28312 (ARM_FUSE_NOTHING): Likewise.
28313 (ARM_FUSE_MOVW_MOVT): Likewise.
28314 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
28315 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
28316 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
28317 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
28318 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
28319 arm_cortex_a5_tune): Specify fuseable_ops value.
28321 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
28324 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
28325 test for PIE with copy reloc.
28326 * configure: Regenerated.
28328 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28330 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
28332 (arm_tls_descseq_addr): Likewise.
28333 (arm_gen_movmemqi): Likewise.
28334 (arm_expand_epilogue_apcs_frame): Likewise.
28335 (arm_expand_epilogue): Likewise.
28336 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
28339 2015-01-12 Martin Liska <mliska@suse.cz>
28342 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
28343 volatility for correct operands.
28345 2015-01-12 Martin Liska <mliska@suse.cz>
28347 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
28348 indication that a function is not leaf.
28349 (sem_function::compare_polymorphic_p): Likewise.
28351 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28353 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
28354 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
28355 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
28356 fold-const.h, tree-check.h.
28358 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28362 * ipa-inline.c (compute_uninlined_call_time,
28363 compute_inlined_call_time): Use counts for extra precision when
28365 (big_speedup_p): Fix formating.
28366 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
28367 (relative_time_benefit): Remove.
28368 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
28369 merge guessed and read profile paths.
28370 (inline_small_functions): Count only !optimize_size functions into
28371 initial size; be more lax about sanity check when profile is used;
28372 be sure to update inlined function profile when profile is read.
28374 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28377 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
28378 cost when edge becomes direct.
28379 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
28380 is resolved or when introducing new speculation.
28382 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
28386 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
28387 '||' to fix typo issue.
28389 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
28390 accept and return NULL.
28392 2015-01-12 Martin Liska <mliska@suse.cz>
28394 * cgraph.c (cgraph_edge::remove_callee): Move function to header
28395 file for being inlined.
28396 (cgraph_set_edge_callee): Delete.
28397 (cgraph_edge::redirect_callee): Move function to header file
28399 (cgraph_edge::make_direct): Use new function.
28400 (cgraph_edge::dump_edge_flags): New function created from
28401 static dump_edge_flags function.
28402 (cgraph_node::dump): Use new function.
28403 (cgraph_edge::verify_count_and_frequency): New function created
28404 from verify_edge_count_and_frequency.
28405 (cgraph_edge::verify_corresponds_to_fndecl): New function created
28406 from verify_edge_corresponds_to_fndecl.
28407 (verify_edge_corresponds_to_fndecl): Delete.
28408 (cgraph_node::verify_node): Use new function.
28409 * cgraph.h (cgraph_edge::set_callee): New function.
28410 (cgraph_edge::dump_edge_flags): Likewise.
28411 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
28413 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
28415 * ipa-utils.c (estimate_function_body_sizes): Do not
28416 free node params when called late with early=true.
28418 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
28420 * doc/md.texi (Instruction Patterns): Rewrite text for
28422 (Example): Likewise.
28424 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
28426 * doc/invoke.texi (Option Summary): Break long lines.
28427 [(-fdiagnostics-color)]: Put long literal in @smallexample
28429 [(-fsanitize-recover)]: Likewise.
28430 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
28431 [(-ffast-math)]: Likewise.
28432 [(--param max-inline-insns-recursive)]: Likewise.
28433 [(--param max-inline-recursive-depth)]: Likewise.
28434 [(-mno-text-section-literals)]: Likewise.
28436 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
28438 * doc/install.texi: Update for libgomp being renamed from "GNU
28439 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
28441 * doc/sourcebuild.texi: Likewise.
28443 2015-01-10 Anthony Green <green@moxielogic.com>
28445 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
28446 mul.x availability for moxiebox configuration.
28448 2015-01-09 Anthony Green <green@moxielogic.com>
28450 * config/moxie/moxie.md: Tabify assembly output.
28452 2015-01-09 Anthony Green <green@moxielogic.com>
28454 * config/moxie/moxie.md (CC_REG): Correct register definition.
28456 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
28458 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
28459 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
28462 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28464 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
28466 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
28467 Jakub Jelinek <jakub@redhat.com>
28469 PR middle-end/64412
28470 * lto-streamer.h (lto_stream_offload_p): New declaration.
28471 * lto-streamer.c (lto_stream_offload_p): New variable.
28472 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
28473 at the same time as section_name_prefix.
28474 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
28475 if lto_stream_offload_p.
28476 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
28477 stream TREE_TARGET_OPTION if lto_stream_offload_p.
28478 (write_ts_function_decl_tree_pointers): Don't
28479 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
28480 * tree-streamer-in.c (unpack_value_fields): Don't stream
28481 TREE_TARGET_OPTION in if ACCEL_COMPILER.
28482 (lto_input_ts_function_decl_tree_pointers): Don't stream
28483 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
28484 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
28485 instead of section_name_prefix string comparisons.
28487 2015-01-09 Jakub Jelinek <jakub@redhat.com>
28489 PR rtl-optimization/64536
28490 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
28493 2015-01-09 Michael Collison <michael.collison@linaro.org>
28495 PR tree-optimization/64322
28496 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
28497 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
28499 2015-01-09 Tom de Vries <tom@codesourcery.com>
28501 PR rtl-optimization/64539
28502 * regcprop.c (kill_clobbered_values): Factor out of ...
28503 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
28504 instead of note_stores with kill_clobbered_value.
28506 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28508 * ginclude/unwind-arm-common.h: Revert previous commit.
28510 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28512 * config.gcc (arm*-*-freebsd*): New configuration.
28513 * config/arm/freebsd.h: New file.
28514 * config.host: Add extra components for arm*-*-freebsd*.
28515 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
28516 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
28518 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28520 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
28522 * config/rs6000/t-rtems: Add e6500 multilibs.
28524 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28526 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
28529 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28531 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
28532 MULTILIB_EXCEPTIONS.
28534 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28536 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
28537 MULTILIB_EXCEPTIONS.
28539 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28541 * config/arm/t-rtems-eabi: Rename to...
28542 * config/arm/t-rtems: ...this.
28543 * config/arm/rtems-eabi.h: Rename to...
28544 * config/arm/rtems.h: ...this.
28545 * config.gcc (arm*-*-rtems*): Reflect changes above.
28547 2015-01-09 Richard Biener <rguenther@suse.de>
28549 PR tree-optimization/64410
28550 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
28552 (execute_update_addresses_taken): Deal with that.
28553 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
28554 loads/stores for complex variables.
28556 2015-01-09 Martin Liska <mliska@suse.cz>
28558 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
28560 (func_checker::compare_memory_operand): New function.
28561 (func_checker::compare_operand): Split case to newly
28563 (func_checker::compare_cst_or_decl): New function.
28564 (func_checker::compare_gimple_call): Identify
28566 (func_checker::compare_gimple_assign): Likewise.
28567 * ipa-icf-gimple.h: New function.
28569 2015-01-09 Martin Liska <mliska@suse.cz>
28572 * sreal.c (sreal::dump): Change unsigned format to signed for
28574 (sreal::to_double): Replace exp2 with scalbln.
28576 2015-01-09 Martin Liska <mliska@suse.cz>
28578 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
28579 * ipa-icf.c (sem_function::equals_private): Add support for target and
28580 (sem_item_optimizer::merge_classes): Remove redundant function
28581 optimization flags comparison.
28582 * tree.h (target_opts_for_fn): New function.
28584 2015-01-09 Tom de Vries <tom@codesourcery.com>
28586 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
28588 2015-01-09 Kito Cheng <kito@0xlab.org>
28590 PR rtl-optimization/64348
28591 * lra-constraints.c (split_reg): Fix caller-save store/restore
28592 instruction generation.
28594 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
28596 PR gcov-profile/61790
28597 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
28598 long long. Fallback to int64_t if host doesn't have long long and
28599 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
28601 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28603 PR tree-optimization/63989
28604 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
28605 from 1000 to 10000.
28606 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
28607 (get_stridx): If we don't have a record for certain SSA_NAME,
28608 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
28609 constant offset, call get_stridx_plus_constant.
28610 (get_stridx_plus_constant): New function.
28611 (zero_length_string): Don't use get_stridx here.
28614 PR middle-end/64388
28615 * dse.c (struct insn_info): Mention frame_read set also
28616 before reload for tail calls on some targets.
28617 (scan_insn): Revert 2014-12-22 change. Set frame_read
28618 also before reload for tail calls if
28619 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
28620 instead of add_non_frame_wild_read for non-const/memset
28621 tail calls after reload.
28623 2015-01-08 Jason Merrill <jason@redhat.com>
28625 * ubsan.c (do_ubsan_in_current_function): New.
28626 (pass_ubsan::gate): Use it.
28627 * ubsan.h: Declare it.
28628 * convert.c (convert_to_integer): Use it.
28630 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28633 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
28634 compare_code when it is unconditionally overwritten afterwards.
28635 Use ix86_reverse_condition instead of reverse_condition. Don't
28636 change code if *reverse_condition* returned UNKNOWN and don't
28637 swap ct/cf and negate diff in that case.
28639 2015-01-08 Mike Stump <mikestump@comcast.net>
28641 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
28642 (pass_tsan_O0::gate): Likewise.
28643 * extend.texi (Function Attributes): Add no_sanitize_thread
28646 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
28648 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
28649 for registering builtins.
28650 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
28651 add -fopenmp to the argv_obstack used when invoking
28652 compile_for_target.
28654 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
28655 add "-m32" or "-m64" to argv_obstack.
28656 (generate_host_descr_file): Likewise, when invoking host_compiler.
28657 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
28660 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28662 * config/sh/sh-mem.cc: Use constant as second operand when emitting
28665 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
28668 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
28669 constant load if constant operand fits into I08.
28671 2015-01-08 Jakub Jelinek <jakub@redhat.com>
28674 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
28675 and TREE_THIS_VOLATILE for MEM_REFs.
28676 (build5_stat): Fix up initialization of TREE_READONLY and
28677 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
28679 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
28682 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
28683 of r for the second alternative of the destination operand.
28685 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
28688 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
28690 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28692 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
28694 ([-fivar-visibility], [-fvisibility]): Likewise.
28696 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
28698 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
28699 the file where @code, @command, etc is more appropriate.
28701 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
28703 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
28704 of -mrecip= documentation.
28706 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28709 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
28710 correct reload handler if -m32 -mpowerpc64 is used.
28712 2015-01-06 Tom de Vries <tom@codesourcery.com>
28714 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
28716 2015-01-08 Christian Bruel <christian.bruel@st.com>
28719 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
28721 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
28723 PR tree-optimization/63259
28724 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
28725 if optab exists for 16bit byteswap.
28727 2015-01-06 Jakub Jelinek <jakub@redhat.com>
28729 * opts.c (common_handle_option): Add support for
28730 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
28731 * doc/invoke.texi: Document -fno-sanitize=all,
28732 -f{,no-}sanitize-recover=all. Document that
28733 -fsanitize=float-cast-overflow is not enabled
28734 by -fsanitize=undefined. Fix up documentation
28735 of -f{,no-}sanitize-recover.
28737 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
28739 * config.gcc: Add Visium support.
28740 * configure.ac: Likewise.
28741 * configure: Regenerate.
28742 * doc/extend.texi (interrupt attribute): Add Visium.
28743 * doc/invoke.texi: Document Visium options.
28744 * doc/install.texi: Document Visium target.
28745 * doc/md.texi: Document Visium constraints.
28746 * common/config/visium: New directory.
28747 * config/visium: Likewise.
28749 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28751 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
28752 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
28754 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
28756 * combine.c (combine_validate_cost): Do not count the cost of a
28757 split I2 twice. Do not display it twice in the dump, either.
28759 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28761 Revert parts of r219199.
28762 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
28764 ([-Wtraditional]): Restore markup on <limits.h>.
28766 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
28769 * doc/invoke.texi: Document -Wsuggest-override.
28771 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
28773 PR rtl-optimization/64287
28774 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
28775 (process_options): Disable flag_ipa_ra if profiling.
28777 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
28779 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
28781 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
28783 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
28784 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
28785 put under #if TARGET_LOOPS guard.
28787 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
28789 * config/i386/i386.c (output_387_binary_op): Use std::swap.
28791 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
28793 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
28794 * rtl.h (refers_to_regno_p): Add overload.
28796 * bt-load.c: Likewise.
28797 * combine.c: Likewise.
28798 * df-scan.c: Likewise.
28799 * sched-deps.c: Likewise.
28800 * config/s390/s390.c: Likewise.
28801 * config/m32r/m32r.c: Likewise.
28802 * config/rs6000/spe.md: Likewise.
28803 * config/rs6000/rs6000.c: Likewise.
28804 * config/pa/pa.c: Likewise.
28805 * config/stormy16/stormy16.c: Likewise.
28806 * config/cris/cris.c: Likewise.
28807 * config/arc/arc.md: Likewise.
28808 * config/arc/arc.c: Likewise.
28809 * config/sh/sh.md: Likewise.
28810 * config/sh/sh.c: Likewise.
28811 * config/frv/frv.c: Likewise.
28813 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28816 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
28817 call as cleanup of the whole body.
28818 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
28819 * tsan.c (replace_func_exit): New function.
28820 (instrument_func_exit): Moved earlier.
28821 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
28822 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
28824 (tsan_pass): Don't call instrument_func_exit.
28825 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
28826 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
28830 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
28831 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
28832 it to libubsan handler instead of EXPR. Fold comparisons earlier,
28833 if the result is integer_zerop, return NULL_TREE.
28834 * convert.c (convert_to_integer): Pass expr as ARG.
28836 PR tree-optimization/64465
28837 * tree-inline.c (redirect_all_calls): During inlining
28838 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
28839 changed the stmt to a non-throwing call.
28841 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
28843 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
28844 etc markup throughout the file.
28846 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28848 Enable experimental TSAN support for Ada.
28849 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
28851 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28853 PR tree-optimization/64494
28854 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
28855 clear SSA_NAME_ANTI_RANGE_P flag.
28857 2015-01-05 Marek Polacek <polacek@redhat.com>
28859 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
28861 2015-01-05 Jakub Jelinek <jakub@redhat.com>
28863 Update copyright years.
28865 * gcc.c (process_command): Update copyright notice dates.
28866 * gcov-dump.c: Ditto.
28868 * doc/cpp.texi: Bump @copying's copyright year.
28869 * doc/cppinternals.texi: Ditto.
28870 * doc/gcc.texi: Ditto.
28871 * doc/gccint.texi: Ditto.
28872 * doc/gcov.texi: Ditto.
28873 * doc/install.texi: Ditto.
28874 * doc/invoke.texi: Ditto.
28876 * auto-profile.c, auto-profile.h: Fix up Copyright line.
28878 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
28880 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
28882 ([-fvtable-verify], [-fvtv-debug]): Likewise.
28883 ([-Wabi]): Likewise.
28884 ([-fmessage-length]): Likewise.
28885 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
28886 ([-Wno-discarded-qualifiers]): Likewise.
28887 ([-Wnodiscarded-array-qualifiers]): Likewise.
28888 ([-Wno-virtual-move-assign]): Likewise.
28889 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
28890 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
28891 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
28892 ([-fsanitize-undefined-trap-on-error]): Likewise.
28893 ([-floop-interchange]): Likewise.
28894 ([-ftree-coalesce-inlined-vars]): Likewise.
28895 ([-fvect-cost-model]): Likewise.
28896 ([-flto]): Likewise.
28897 ([--param]): Likewise.
28898 (Spec Files): Likewise.
28899 ([-mstrict-align]): Likewise.
28900 ([-mfix-cortex-a53-835769]): Likewise.
28901 ([-march], [-mtune]): Likewise.
28902 ([-mpic-register]): Likewise.
28903 ([-munaligned-access]): Likewise.
28904 ([-msp8]): Likewise.
28905 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
28906 (AVR Built-in Macros): Likewise.
28907 ([-mpreferred-stack-boundary]): Likewise.
28908 ([-mtune-crtl]): Likewise.
28909 ([-mashf]): Likewise.
28910 ([-mmcu=]): Likewise.
28911 ([-minrt]): Likewise.
28912 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
28913 ([-mupper-regs]): Likewise.
28914 ([-matomic-model]): Likewise.
28915 ([-mdiv]): Likewise.
28916 ([-mzdcbranch]): Likewise.
28917 ([-mdisable-callt]): Likewise.
28918 ([-msoft-float]): Likewise.
28919 ([-m8byte-align]): Likewise.
28920 ([-fstack-reuse]): Likewise.
28922 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28924 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
28925 Fix markup, light copy-editing.
28926 ([-fauto-profile]): Rewrite to fix formatting and content
28929 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28931 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
28932 Copy-edit description.
28933 ([-fisolate-erroneous-paths-attribute]): Likewise.
28934 * common.opt (fisolate-erroneous-paths-dereference):
28935 Copy-edit description.
28936 (fisolate-erroneous-paths-attribute): Likewise.
28938 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28940 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
28943 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
28945 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
28946 ([-fvtv-debug]): Likewise.
28947 ([-Wc++-compat]): Likewise.
28948 ([-Wc++11-compat]): Likewise.
28949 ([-Wc++14-compat]): Likewise.
28950 ([-Wno-sized-deallocation]): Likewise.
28951 ([-femit-class-debug-always]): Likewise.
28952 ([-femit-struct-debug-detailed]): Likewise.
28953 ([-fno-keep-inline-dllexport]): Likewise.
28954 ([-fira-algorithm]): Likewise.
28955 ([-fira-region]): Likewise.
28956 ([-flra-remat]): Likewise.
28957 ([-fipa-ra]): Likewise.
28958 ([-fhoist-adjacent-loads]): Likewise.
28959 ([-fisolate-erroneous-paths-dereference]): Likewise.
28960 ([-fisolate-erroneous-paths-attribute]): Likewise.
28961 ([-ftree-switch-conversion]): Likewise.
28962 ([-ftree-tail-merge]): Likewise.
28963 ([-ftree-loop-if-convert]): Likewise.
28964 ([-ftree-loop-if-convert-stores]): Likewise.
28965 ([-ftree-loop-distribution]): Likewise.
28966 ([-ftree-loop-distribute-patterns]): Likewise.
28967 ([-flto-compression-level]): Likewise.
28968 ([-flto-report]): Likewise.
28969 ([-flto-report-wpa]): Likewise.
28970 ([-fuse-linker-plugin]): Likewise.
28971 ([-mfix-cortex-a53-835769]): Likewise.
28972 ([-mno-fix-cortex-a53-835769]): Likewise.
28973 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
28974 explicit listing; add a note to the discussion indicating they
28975 exist. Reorder table to group similar options. Add missing
28976 @opindex entries. Add @need commands throughout the table to
28977 allow it to be split across multiple pages.
28978 ([-m8bit-idiv]): Fix @opindex.
28979 ([-mavx256-split-unaligned-load]): Likewise.
28980 ([-mavx256-split-unaligned-store]): Likewise.
28981 ([-mstack-protector-guard]): Likewise.
28982 ([-mcpu=]): Likewise.
28983 ([-mcpu]): Likewise.
28984 ([-mpointer-size=]): Likewise.
28986 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
28988 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
28989 instead of `m' constraint. Likewise for unnamed movb comparison
28990 patterns using reg_before_reload_operand predicate.
28991 * config/pa/predicates.md (reg_before_reload_operand): Tighten
28992 predicate to reject register index and LO_SUM DLT memory forms
28995 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28997 * doc/invoke.texi (Option Summary): Fix spelling of
28998 -fdevirtualize-at-ltrans.
28999 ([-fdevirtualize]): Fix markup.
29000 ([-fdevirtualize-speculatively]): Fix typo.
29001 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
29002 implementor-speaky.
29003 * common.opt (fdevirtualize-at-ltrans): Likewise.
29004 * ipa-devirt.c: Fix typos in comments throughout the file.
29005 (ipa_devirt): Fix typos in format strings for dump output.
29007 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29009 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
29010 discussion of defaults, light copy-editing.
29012 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29014 * tsan.c (instrument_expr): corrected previous checkin.
29016 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29018 Instrument bit field and unaligned accesses for TSAN.
29019 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
29020 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
29021 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
29022 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
29023 unaligned memory regions.
29025 2015-01-01 Anthony Green <green@moxielogic.com>
29027 * config/moxie/predicates.md (moxie_general_movsrc_operand):
29028 Restrict move source register offsets to 16 bits.
29030 Copyright (C) 2015 Free Software Foundation, Inc.
29032 Copying and distribution of this file, with or without modification,
29033 are permitted in any medium without royalty provided the copyright
29034 notice and this notice are preserved.