1 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
4 ROUND_UP macro and UNITS_PER_WORD * 2.
5 * config/sparc/sparc.c (sparc_compute_frame_size):
6 Use ROUND_UP and ROUND_DOWN macros where applicable.
7 (function_arg_record_value, function_arg_record_value_1)
8 (function_arg_record_value_1): Ditto.
9 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10 alignment to double-word.
11 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
12 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
15 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
17 * gcc/rtl.h (print_insn): Fix prototype.
19 2015-10-13 Tom de Vries <tom@codesourcery.com>
21 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
22 -1. Add assert that returned entry matches phi argument.
23 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
24 free_stmt_vec_info_vec ...
25 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
28 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
30 PR tree-optimization/67909, 67947
31 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
32 really skip the inner loop.
34 2015-10-13 Jeff Law <law@redhat.com>
36 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
37 Allow single block jump threading paths.
39 2015-10-13 Tom de Vries <tom@codesourcery.com>
41 PR tree-optimization/67476
42 * doc/invoke.texi (@item parloops-schedule): New item.
43 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
44 * tree-parloops.c: Include params-enum.h.
45 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
47 2015-10-13 Tom de Vries <tom@codesourcery.com>
49 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
50 * params-enum.h: New file.
51 * opts.c (handle_param): Handle case that param arg is a string.
52 * params-list.h: Handle DEFPARAMENUM5 in params.def.
53 * params.c (find_param): New function, factored out of ...
54 (set_param_value): ... here.
55 (param_string_value_p): New function.
56 * params.h (struct param_info): Add value_names field.
57 (find_param, param_string_value_p): Declare.
59 2015-10-13 Tom de Vries <tom@codesourcery.com>
61 PR tree-optimization/67476
62 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
64 2015-10-13 Richard Biener <rguenther@suse.de>
66 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
67 the data dependence vector.
68 (vect_peeling_hash_insert): Get the peeling hash table as argument.
69 (vect_peeling_hash_get_lowest_cost): Likewise.
70 (vect_enhance_data_refs_alignment): Adjust.
71 (struct _vect_peel_info, struct _vect_peel_extended_info,
72 struct peel_info_hasher): Move from ...
73 * tree-vectorizer.h: ... here.
74 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
75 (LOOP_VINFO_PEELING_HTAB): Likewise.
76 (struct _loop_vec_info): Remove min_profitable_iters and
78 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
80 (destroy_loop_vec_info): Adjust.
81 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
82 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
83 to estimate alias versioning cost.
84 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
86 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
88 * real.h (real_isinteger): Declare.
89 * real.c (real_isinteger): New function.
90 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
91 if y is an even integer.
93 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
96 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
97 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
98 counts when these are more informative.
100 2015-10-12 Jeff Law <law@redhat.com>
102 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
103 (fsm_find_control_stmt_paths): Change name of first argument to
104 more accurately relfect what it really is. Handle simplification
105 of GIMPLE_COND after finding a thread path for NAME.
106 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
107 nontrivial conditions to be handled by FSM threader.
108 (thread_through_normal_block): Extract the name to looup via
109 FSM threader from COND_EXPR.
111 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
112 restriction that traced SSA_NAME is a user variable.
114 2015-10-12 Tom de Vries <tom@codesourcery.com>
116 PR tree-optimization/67476
117 * omp-low.c (expand_omp_for_generic): Add missing phis.
119 2015-10-12 Tom de Vries <tom@codesourcery.com>
121 PR tree-optimization/67476
122 * omp-low.c (expand_omp_for_generic): Handle simple latch.
124 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
126 * config/aarch64/aarch64-simd-builtins.def: Update builtins
127 tables: add tbl3 and tbx4.
128 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
129 (aarch64_tbx4v8qi): New.
130 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
131 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
132 Rewrite using builtin functions.
133 * config/aarch64/iterators.md (UNSPEC_TBX): New.
135 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
137 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
139 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
140 Use ROUND_UP and ROUND_DOWN macros where applicable.
141 (rs6000_darwin64_record_arg_flush): Ditto.
142 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
143 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
146 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
148 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
149 (AARCH64_ROUND_DOWN): Ditto.
150 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
152 2015-10-12 Richard Biener <rguenther@suse.de>
155 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
156 code that analyzes IVs on each stmt but in a cheaper way avoiding
159 2015-10-12 Nick Clifton <nickc@redhat.com>
161 * config/msp430/msp430.c (msp430_mcu_names): Rename to
162 msp430_mcu_data, add fields for ISA and hardware multiply
163 support. Import latest data from the devices.csv file.
164 (msp430_override_option): Use the data from the new array.
165 (msp430_use_f5_series_hwmult): Likewise.
166 (use_32bit_hwmult): Likewise.
167 (msp430_no_hwmult): Likewise.
168 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
170 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
171 not recognised then no hardware multiply support is assumed and
172 that only the MSP430 ISA is allowed.
174 2015-10-12 Richard Biener <rguenther@suse.de>
176 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
178 (vect_analyze_loop_2): ... here.
180 2015-10-11 Jason Merrill <jason@redhat.com>
183 * expr.c (store_field): Call store_constructor directly when
184 storing a CONSTRUCTOR into a target smaller than its type.
185 Guard against unsafe bitwise copy.
187 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
189 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
190 counts when these are more informative.
192 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
194 * tree-profile.c (tree_profiling): Do not clear
195 pure/const when not instrumenting.
196 (pass tree_profile): Add dump of symtab.
198 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
200 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
202 (fold_addr_of_array_ref_difference): Likewise.
204 2015-10-11 Jeff Law <law@redhat.com>
206 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
207 tree-ssa-threadbackward.c.
208 (fsm_find_control_statement_thread_paths): Likewise.
209 (thread_through_normal_block): Break out FSM bits and move them
210 into a new function in tree-ssa-threadbackward.c. Call new function
212 Minimize header file usage.
213 * tree-ssa-threadbackward.h: New file.
214 * tree-ssa-threadbackward.c: Likewise.
215 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
217 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
219 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
221 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
223 PR rtl-optimization/67864
224 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
225 fallthrough edges for conditional jumps. Don't sort candidate
226 edges if not optimizing for speed.
228 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
230 * defaults.h (REVERSE_CONDITION): New default definition.
231 * jump.c (reversed_comparison_code_parts): Adjust.
233 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
235 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
236 check HARD_FRAME_POINTER_IS_ARG_POINTER.
238 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
240 * defaults.h (FRAME_ADDR_RTX): New default definition.
241 * builtins.c (expand_builtin_return_addr): Adjust.
243 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
245 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
246 * builtins.c (expand_builtin_return_addr): Adjust.
248 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
250 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
251 * builtins.c (expand_builtin_return_addr): Adjust.
252 * doc/tm.texi: Likewise.
253 * doc/tm.texi.in: Likewise.
254 * except.c (expand_builtin_unwind_init): Likewise.
256 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
258 * builtins.c (expand_builtin_return_addr): Adjust.
259 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
261 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
263 * tree.c (type_with_interoperable_signedness): New.
264 (gimple_canonical_types_compatible_p): Use it.
265 * tree.h (type_with_interoperable_signedness): Declare
267 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
269 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
270 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
271 when OEP_ADDRESS_OF is se.
273 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
274 Sebastian Pop <s.pop@samsung.com>
276 * graphite-dependences.c (scop_get_dependences): Add dump of the
277 data dependence graph.
278 * graphite-poly.c (print_isl_union_map): New.
279 (debug_isl_union_map): New.
280 * graphite-poly.h (print_isl_union_map): Declare.
281 (debug_isl_union_map): Declare.
283 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
284 Sebastian Pop <s.pop@samsung.com>
286 * graphite-poly.c (print_iteration_domain): Remove verbosity.
287 Remove OpenScop formatting.
288 (print_iteration_domains): Same.
289 (debug_iteration_domain): Same.
290 (debug_iteration_domains): Same.
293 (dump_gbb_cases): Same.
294 (dump_gbb_conditions): Same.
297 (print_pbb_body): Same.
299 (print_scop_params): Same.
300 (print_scop_context): Same.
302 (debug_pbb_domain): Same.
304 (debug_scop_context): Same.
306 (debug_scop_params): Same.
307 * graphite-poly.h: Same.
308 * graphite.c (graphite_transform_loops): Same.
310 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
312 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
313 call that isn't needed.
315 2015-10-09 Jeff Law <law@redhat.com>
317 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
318 rather than moving each name to the freelist individually.
320 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
322 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
323 * frame-header-opt.c: New file.
324 * config/mips/mips-proto.h (mips_register_frame_header_opt):
326 * config/mips/mips.c (mips_compute_frame_info): Check
327 optimize_call_stack flag.
328 (mips_option_override): Register new frame_header_opt pass.
329 (mips_frame_info, mips_int_mask, mips_shadow_set,
330 machine_function): Move these types to...
331 * config/mips/mips.h: here.
332 (machine_function): Add does_not_use_frame_header and
333 optimize_call_stack fields.
334 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
335 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
337 * config/mips/mips.opt (mframe-header-opt): Add new option.
339 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
342 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
343 ROUND_DOWN where applicable.
345 2015-10-09 Jeff Law <law@redhat.com>
347 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
350 2015-10-09 Renlin Li <renlin.li@arm.com>
352 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
353 operands[0] and operands[2].
354 (neon_vtrn<mode>_insn): Likewise.
355 (neon_vzip<mode>_insn): Likewise.
357 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
359 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
360 ((X & C2) << C1): Expand to...
361 (X {&,^,|} C2 << C1): ...This.
362 ((X & C2) >> C1): Expand to...
363 (X {&,^,|} C2 >> C1): ...This.
365 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
368 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
369 Adjust embedded rounding/SAE specifier position.
370 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
371 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
372 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
373 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
374 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
376 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
378 2015-10-09 Martin Jambor <mjambor@suse.cz>
380 tree-optimization/67794
381 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
382 between types of state,ents but accept original definitions as a
384 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
385 iterate over definitions.
387 2015-10-09 James Norris <jnorris@codesourcery.com>
389 * config/rs6000/rs6000.c (rs6000_offload_options): New.
390 (TARGET_OFFLOAD_OPTIONS): New.
392 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
395 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
398 * function.c (expand_function_end): Move return value
399 promotion past the handling of PARALLELs and CONCATs.
401 PR rtl-optimization/67828
402 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
403 (tree_may_unswitch_on): Don't unswitch on expressions
404 involving undefined values.
406 2015-10-09 Richard Biener <rguenther@suse.de>
408 * genmatch.c (print_operand): Fix formatting.
409 (dt_node::append_simplify): Warn for multiple simplifiers
410 that match the same pattern.
411 * match.pd (log (exp @0)): Remove duplicates.
413 2015-10-09 Richard Biener <rguenth@suse.de>
416 * gimple-fold.c (optabs-query.h): Include
417 (gimple_fold_builtin_memory_op): Allow unaligned stores
418 when movmisalign_optabs are available.
420 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
423 * config/arm/arm.md (movmisalign<mode>): New.
424 * config/arm/iterators.md (HSI): New.
426 2015-10-09 Richard Biener <rguenther@suse.de>
428 PR tree-optimization/67891
429 * gimple-match.h (gimple_simplified_result_is_gimple_val):
431 (gimple_resimplify1): Declare.
432 (gimple_resimplify2): Likewise.
433 (gimple_resimplify3): Likewise.
434 * gimple-match-head.c (gimple_resimplify1): Export.
435 (gimple_resimplify2): Likewise.
436 (gimple_resimplify3): Likewise.
437 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
438 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
439 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
440 to avoid creating stmts without VN info.
442 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
444 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
447 2015-10-08 Jeff Law <law@redhat.com>
449 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
450 and release_ssa_name in two places.
451 (gimple_stringop_fixed_value): Similarly.
453 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
456 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
457 unlink_stmt_vdef and release_ssa_name_fn.
459 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
462 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
464 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
465 SSE register save area to 16 bytes only if the incoming stack
466 boundary is no less than 16 bytes.
468 2015-10-08 Jeff Law <law@redhat.com>
470 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
471 release_ssa_name. Fix typo in comment.
473 2015-10-08 Nathan Sidwell <nathan@acm.org>
475 * config/nvptx/nvptx.h (struct machine_function): Add comment.
476 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
477 may return pointer as well as in memory.
478 (nvptx_output_return): Likewise.
480 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
482 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
483 (fold_builtin_1): Update accordingly. Handle constant arguments here.
484 * match.pd: Add rules previously handled by fold_builtin_sqrt
485 and fold_builtin_cbrt.
487 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
489 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
490 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
491 * fold-const.h (tree_unary_nonnegative_warnv_p)
492 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
493 (tree_expr_nonnegative_warnv_p): Add depth parameters.
494 * fold-const.c: Include gimple-fold.h and params.h.
495 (tree_ssa_name_nonnegative_warnv_p): New function.
496 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
497 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
498 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
499 Add a depth parameter and increment it for recursive calls to
500 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
502 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
503 (gimple_stmt_nonnegative_warnv_p): Declare.
504 * tree-vrp.c (remove_range_assertions): Remove assert that condition
505 cannot be proven false.
506 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
507 (gimple_stmt_nonnegative_warnv_p): Move to...
508 * gimple-fold.c: ...here. Add depth parameters and pass them
509 down to the tree routines. Accept statements that aren't
510 assignments or calls but just return false for them.
511 (gimple_val_nonnegative_real_p): Delete.
512 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
513 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
514 Check HONOR_NANs first.
516 2015-10-08 Martin Jambor <mjambor@suse.cz>
518 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
521 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
523 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
524 in the tail of outer-loop.
526 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
528 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
531 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
533 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
534 "cfghooks.h", add prototypes for introduced new functions.
535 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
536 checks on ability of loop unswitching to tree_unswitch_single_loop;
537 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
538 on innermost loop check.
539 (tree_unswitch_single_loop): Add all required checks on ability of
540 loop unswitching under zero recursive level guard.
541 (tree_unswitch_outer_loop): New function.
542 (find_loop_guard): Likewise.
543 (empty_bb_without_guard_p): Likewise.
544 (used_outside_loop_p): Likewise.
545 (get_vop_from_header): Likewise.
546 (hoist_guard): Likewise.
547 (check_exit_phi): Likewise.
549 2015-10-08 Marek Polacek <polacek@redhat.com>
551 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
554 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
557 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
558 create_tmp_var_raw instead of create_tmp_var.
560 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
562 * expr.c (store_expr_with_bounds): Handle aggregate moves from
564 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
565 to define gimple type system; compare aggregates only by size.
567 2015-10-07 Jeff Law <law@redhat.com>
569 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
570 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
571 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
574 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
575 Sebastian Pop <s.pop@samsung.com>
577 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
578 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
579 (generate_isl_schedule): Same.
580 * graphite-optimize-isl.c (scop_get_domains): Same.
581 (apply_schedule_map_to_scop): Same.
582 * graphite-poly.c (print_iteration_domains): Same.
583 (remove_gbbs_in_scop): Same.
587 * graphite-poly.h (struct scop): Rename bbs to pbbs.
589 * graphite-scop-detection.c (compare_bb_depths): Remove.
590 (graphite_sort_dominated_info): Remove.
591 (try_generate_gimple_bb): Move out of scop_detection.
592 (all_non_dominated_preds_marked_p): Remove.
593 (build_scop_bbs_1): Remove.
594 (build_scop_bbs): Remove.
595 (nb_pbbs_in_loops): Do not use SCOP_BBS.
596 (find_scop_parameters): Same.
597 (sese_dom_walker): Rename gather_bbs.
598 (before_dom_children): Call try_generate_gimple_bb and collect gbb
600 (build_scops): Call gather_bbs.
601 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
602 (add_conditions_to_constraints): Same.
603 (build_scop_iteration_domain): Same.
604 (build_scop_drs): Same.
605 (new_pbb_from_pbb): Same.
606 * sese.c (new_sese_info): Create bbs.
607 * sese.h (struct sese_info_t): Add bbs.
609 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
611 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
612 encoding in 64-bit mode.
614 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
617 * config/i386/i386.c (ix86_option_override_internal): Always use
618 8-byte minimum stack boundary in 64-bit mode.
619 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
620 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
621 Add a REG_CFA_EXPRESSION note if needed.
622 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
623 (ix86_handle_force_align_arg_pointer_attribute): New.
624 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
625 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
626 with ix86_handle_force_align_arg_pointer_attribute.
627 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
629 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
630 Sebastian Pop <s.pop@samsung.com>
632 * graphite-scop-detection.c (parameter_index_in_region): Remove
633 use of SESE_ADD_PARAMS.
634 (find_scop_parameters): Same.
635 * sese.c (new_sese_info): Same.
636 * sese.h (struct sese_info_t): Remove add_params.
637 (SESE_ADD_PARAMS): Remove.
639 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
640 Sebastian Pop <s.pop@samsung.com>
642 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
645 (copy_internal_parameters): Same.
646 (translate_isl_ast_to_gimple): Use an sese_l.
647 (build_iv_mapping): Same.
648 * graphite-poly.c (new_sese): Rename new_sese_info.
649 (free_sese): Rename free_sese_info.
650 * graphite-poly.h (struct scop): Use an sese_info_p.
651 (scop_set_region): Same.
652 * graphite-scop-detection.c (struct sese_l): Moved...
653 (get_entry_bb): Moved...
654 (get_exit_bb): Moved...
655 (parameter_index_in_region_1): Use an sese_info_p.
656 (parameter_index_in_region): Same.
657 (scan_tree_for_params): Same.
658 (find_params_in_bb): Same.
659 (sese_dom_walker): Use an sese_l.
660 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
661 (reduction_phi_p): Same.
662 (parameter_index_in_region_1): Use an sese_info_p.
663 (propagate_expr_outside_region): Use an sese_l.
664 * graphite.c: Replace uses of SCOP_REGION.
665 * sese.c (sese_record_loop): Use an sese_info_p.
666 (build_sese_loop_nests): Same.
667 (sese_build_liveouts_use): Same.
668 (sese_build_liveouts_bb): Same.
669 (sese_build_liveouts_bb): Same.
670 (sese_bad_liveouts_use): Same.
671 (sese_reset_debug_liveouts_bb): Same.
672 (sese_build_liveouts): Same.
673 (new_sese): Renamed new_sese_info.
674 (free_sese): Renamed free_sese_info.
675 (set_rename): Use an sese_info_p.
676 (graphite_copy_stmts_from_block): Same.
677 (copy_bb_and_scalar_dependences): Same.
678 (outermost_loop_in_sese_1): Use an sese_l.
679 (outermost_loop_in_sese): Same.
680 (if_region_set_false_region): Use an sese_info_p.
681 (move_sese_in_condition): Same.
682 (scalar_evolution_in_region): Use an sese_l.
683 * sese.h (struct sese_l): ... here.
684 (SESE_ENTRY): Remove.
685 (SESE_ENTRY_BB): Remove.
687 (SESE_EXIT_BB): Remove.
688 (sese_contains_loop): Use an sese_info_p.
689 (sese_nb_params): Same.
690 (bb_in_sese_p): Use an sese_l.
691 (stmt_in_sese_p): Same.
692 (defined_in_sese_p): Same.
693 (loop_in_sese_p): Same.
694 (sese_loop_depth): Same.
695 (struct ifsese_s): Use an sese_info_p.
696 (gbb_loop_at_index): Use an sese_l.
697 (nb_common_loops): Same.
698 (scev_analyzable_p): Same.
700 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
702 * config/i386/i386.c (ix86_conditional_register_usage): Use
703 CALL_USED_REGISTERS_MASK.
704 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
706 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
709 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
710 * configure: Regenerated.
712 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
715 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
716 (ix86_set_current_function): This.
717 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
719 2015-10-07 Richard Biener <rguenther@suse.de>
721 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
722 (vinfo_for_stmt): Adjust.
723 (set_vinfo_for_stmt): Likewise.
724 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
725 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
726 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
728 (vect_analyze_loop_1): Remove.
729 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
730 inner loop when vectorizing an outer loop by splitting out from ...
731 (vect_analyze_loop_form): ... here.
733 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
736 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
737 Use create_tmp_var_raw instead of create_tmp_var.
739 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
741 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
742 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
743 * real.c (CACHED_FRACTION): New helper macro.
744 (dconst_third_ptr): Use it.
745 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
746 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
748 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
750 2015-10-06 Jeff Law <law@redhat.com>
752 PR tree-optimization/67816
753 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
754 from remove_jump_threads_starting_at. Accept an edge rather than
756 * tree-ssa-threadupdate.c (removed_edges): New hash table.
757 (remove_jump_threads_including): Note edges that get removed from
758 the CFG for later pruning of jump threading paths including them.
759 (thread_through_all_blocks): Remove paths which include edges that
761 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
762 on each outgoing edges when optimizing away a control statement.
764 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
766 * reorg.c (emit_delay_sequence): Store list of delay slot insns
767 in a vector instead of rtx_insn_list.
768 (add_to_delay_list): Likewise.
769 (delete_from_delay_slot): Likewise.
770 (optimize_skip): Likewise.
771 (redirect_with_delay_list_safe_p): Likewise.
772 (check_annul_list_true_false): Likewise.
773 (steal_delay_list_from_target): Likewise.
774 (steal_delay_list_from_fallthrough): Likewise.
775 (redundant_insn): Likewise.
776 (fill_simple_delay_slots): Likewise.
777 (fill_slots_from_thread): Likewise.
778 (fill_eager_delay_slots): Likewise.
779 (relax_delay_slots): Likewise.
781 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
783 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
784 For -mgpopt=local, also exclude unintialized common symbols.
785 * doc/invoke.texi (Nios II Options): Document the change.
787 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
789 * config/aarch64/iterators.md (vwcore): Add missing cases for
792 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
793 Sebastian Pop <s.pop@samsung.com>
795 * graphite-poly.c (new_scop): Initialize drs.
796 * graphite-poly.h (struct dr_info): New.
797 (struct scop): Add drs.
798 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
799 (pdr_add_memory_accesses): Same.
800 (build_poly_dr): Same.
801 (build_alias_set): Same.
802 (build_scop_drs): Same.
803 (build_pbb_drs): Remove.
804 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
805 * tree-data-ref.h (data_reference): Remove alias_set.
807 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
808 Sebastian Pop <s.pop@samsung.com>
810 * graphite-poly.c (free_data_refs_aux): Remove.
811 (free_gimple_poly_bb): Do not call free_data_refs_aux.
812 * graphite-poly.h (struct base_alias_pair): Remove.
813 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
814 base_alias_pair and dr->aux.
815 (build_alias_set): Same.
816 * tree-data-ref.c (create_data_ref): Initialize alias_set.
817 * tree-data-ref.h (data_reference): Add alias_set.
819 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
820 Sebastian Pop <s.pop@samsung.com>
822 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
823 Do not set PDR_BASE_OBJECT_SET.
824 * graphite-poly.h (poly_dr): Same.
825 (PDR_BASE_OBJECT_SET): Remove.
826 (new_poly_dr): Update decl.
827 * graphite-sese-to-poly.c (build_poly_dr): Update call to
829 (write_alias_graph_to_ascii_dimacs): Remove.
830 (write_alias_graph_to_ascii_dot): Remove.
831 (write_alias_graph_to_ascii_ecc): Remove.
832 (dr_same_base_object_p): Remove.
833 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
835 (build_base_obj_set_for_drs): Remove.
836 (dump_alias_graphs): Remove.
837 (build_scop_drs): Remove dead code.
839 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
840 Peter Bergner <bergner@vnet.ibm.com>
843 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
844 allow registers, but provide insns for the combiner to create for
845 loads from memory. Separate VSX code from non-VSX code. For
846 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
847 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
848 so that registers come before memory operations. Drop support from
849 converting DFmode to TFmode, if the DFmode value is in a GPR
851 (extenddftf2_fprs): Likewise.
852 (extenddftf2_internal): Likewise.
853 (extenddftf2_vsx): Likewise.
854 (extendsftf2): In the expander, only allow registers, but provide
855 insns for the combiner to create for stores and loads.
857 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
859 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
860 from the decl parameter.
862 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
865 * gimple-fold.c (gimple_fold_builtin): Add break after
866 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
868 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
870 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
871 to scop->isl_context.
873 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
875 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
876 (output_probe_stack_range): Rotate the loop and simplify.
877 (thumb1_expand_prologue): Tweak sorry message.
878 * config/arm/arm.md (probe_stack): Use bare string.
880 2015-10-06 Nick Clifton <nickc@redhat.com>
882 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
884 2015-10-06 Nick Clifton <nickc@redhat.com>
886 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
887 (ATTR_PERSIST): New constant.
888 (msp430_data_attr): New function - verifies an attribute that only
889 applies to variables.
890 (msp430_attributes): Add noinit and persistent attributes.
891 (noinit_section): New variable.
892 (presis_section): New variable.
893 (TARGET_ASM_INIT_SECTIONS): Define.
894 (msp430_init_sections): New function - initialises the noinit and
895 persist section variables.
896 (msp430_select_section): Add support for noinit and persist
898 (msp430_section_type_flags): Likewise.
899 * doc/extend.texi: Document the reent, critical, wakeup, noinit
900 and persistent attributes.
902 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
903 Sebastian Pop <s.pop@samsung.com>
905 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
906 (no_violations): Remove.
907 (subtract_commutative_associative_deps): Remove.
908 (compute_deps): Do not call subtract_commutative_associative_deps.
909 (transform_is_safe): Remove.
910 (graphite_legal_transform): Remove.
911 * graphite-poly.h (graphite_legal_transform): Remove.
913 2015-10-05 Aditya Kumar <hiraditya@msn.com>
915 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
916 which are in this region are passed so gcc_assert and remove redundant
918 * sese.c (sese_build_liveouts): Pass only those bbs which are not
920 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
921 gcc_assert on that and remove unnecessary computation.
922 (sese_build_liveouts_use): Same.
924 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
926 * graphite-dependences.c (scop_get_reads): Renamed scop->context
927 to scop->param_context.
928 (scop_get_must_writes): Same.
929 (scop_get_may_writes): Same.
930 (scop_get_original_schedule): Same.
931 (scop_get_transformed_schedule): Same.
932 (subtract_commutative_associative_deps): Same.
933 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
934 (generate_isl_context): Same.
935 (generate_isl_schedule): Same.
936 (scop_to_isl_ast): Same.
937 (graphite_regenerate_ast_isl): Same.
938 * graphite-optimize-isl.c (scop_get_domains): Same.
939 (optimize_isl): Renamed scop->context to scop->param_context.
940 * graphite-poly.c (new_poly_bb): Change the type of argument to
942 (new_scop): Renamed scop->context to scop->param_context.
944 (print_scop_context): Same.
945 * graphite-poly.h (new_poly_dr): Change the type of argument from
946 void* to data_reference_p.
947 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
948 (new_poly_bb): Change the type of argument from void* to
950 (pbb_set_black_box): Same.
951 (struct scop): Rename context to param_context, ctx to isl_context.
952 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
953 Move declarations closer to assignment.
954 (find_params_in_bb): Same.
955 (find_scop_parameters): Same.
956 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
957 Global to be used for statement IDs.
958 (isl_id_for_pbb): Use ssa_name_version_typesize.
959 (simple_copy_phi_p): Move declarations closer to assignment.
960 (build_pbb_scattering_polyhedrons): Same.
961 (build_scop_scattering): Same.
962 (isl_id_for_ssa_name): Same.
963 (extract_affine_name): Same.
964 (extract_affine_int): Same.
965 (extract_affine): Same.
966 (set_scop_parameter_dim): Use renamed member.
967 (build_loop_iteration_domains): Same.
968 (add_param_constraints): Same.
969 (build_scop_iteration_domain): Same.
970 (pdr_add_data_dimensions): Same.
971 (build_poly_dr): Same.
972 (build_scop_drs): Move declarations closer to assignment.
973 (analyze_drs_in_stmts): Same.
974 (insert_out_of_ssa_copy): Same.
975 (insert_out_of_ssa_copy_on_edge): Same.
976 (propagate_expr_outside_region): Same.
977 (rewrite_phi_out_of_ssa): Same.
978 (rewrite_degenerate_phi): Same.
979 (rewrite_reductions_out_of_ssa): Same.
980 (rewrite_cross_bb_scalar_dependence): Same.
981 (handle_scalar_deps_crossing_scop_limits): Same.
982 (rewrite_cross_bb_scalar_deps): Same.
983 * graphite.c (graphite_transform_loops): Use renamed member.
985 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
988 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
989 create_tmp_var_raw instead of create_tmp_var.
991 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
994 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
995 Use create_tmp_var_raw instead of create_tmp_var.
997 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
1000 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
1001 split for upper-bank registers when target does not support
1003 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
1004 split when target does not support AVX512VL.
1006 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
1009 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
1010 Adjust to use create_tmp_var_raw instead of create_tmp_var.
1012 2015-10-06 Nick Clifton <nickc@redhat.com>
1014 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
1017 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1019 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
1020 (case ${target}): Add znver1.
1021 * config/i386/cpuid.h(bit_CLZERO): Define.
1022 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1023 -march=native recognize znver1 processors.
1024 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1025 znver1, clzero def_and_undef.
1026 * config/i386/i386.c (struct processor_costs znver1_cost): New.
1027 (m_znver1): New definition.
1028 (m_AMD_MULTIPLE): Includes m_znver1.
1029 (processor_target_table): Add znver1 entry.
1030 (ix86_target_string) : Add clzero entry.
1031 (static const char *const cpu_names): Add znver1 entry.
1032 (ix86_option_override_internal): Add znver1 instruction sets.
1033 (PTA_CLZERO) : New definition.
1034 (ix86_option_override_internal): Handle new clzerooption.
1035 (ix86_issue_rate): Add znver1.
1036 (ix86_adjust_cost): Add znver1.
1037 (ia32_multipass_dfa_lookahead): Add znver1.
1038 (has_dispatch): Add znver1.
1039 * config/i386/i386.h (TARGET_znver1): New definition.
1040 (TARGET_CLZERO): Define.
1041 (TARGET_CLZERO_P): Define.
1042 (struct ix86_size_cost): Add TARGET_ZNVER1.
1043 (enum processor_type): Add PROCESSOR_znver1.
1044 * config/i386/i386.md (define_attr "cpu"): Add znver1.
1045 (set_attr znver1_decode): New definitions for znver1.
1046 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
1048 * config/i386/mmx.md (set_attr znver1_decode): New definitions
1050 * config/i386/sse.md (set_attr znver1_decode): Likewise.
1051 * config/i386/x86-tune.def: Add znver1 tunings.
1052 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
1053 * gcc/doc/invoke.texi: Add details about znver1
1055 2015-10-06 Richard Biener <rguenther@suse.de>
1057 PR tree-optimization/67859
1058 * tree-ssa-pre.c (create_expression_by_pieces): Properly
1059 discard not inserted stmts.
1061 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
1063 * doc/extend.texi (Template Instantiation): Reorder options and
1064 de-emphasize -frepo.
1065 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
1066 example instead of -frepo.
1068 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
1071 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
1072 use create_tmp_var_raw rather than create_tmp_var.
1074 2015-10-06 Richard Biener <rguenther@suse.de>
1076 * tree-vectorizer.h (vec_info): New base class for...
1077 (_loop_vec_info): ... this and ...
1078 (_bb_vec_info): ... this.
1079 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
1080 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
1081 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
1082 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
1083 vect_destroy_datarefs): Adjust interface to take a vec_info *
1084 rather than both a loop_vec_info and a bb_vec_info argument.
1085 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
1086 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
1087 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
1088 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
1090 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
1091 (destroy_loop_vec_info, vect_analyze_loop_2,
1092 vect_is_simple_reduction_1, get_initial_def_for_induction,
1093 vect_create_epilog_for_reduction, vectorizable_reduction,
1094 vectorizable_live_operation, vect_transform_loop): Adjust.
1095 * tree-vect-patterns.c (type_conversion_p,
1096 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
1097 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
1098 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
1099 check_bool_pattern, vect_recog_bool_pattern,
1100 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
1101 * tree-vect-slp.c (vect_get_and_check_slp_defs,
1102 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
1103 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
1104 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
1105 (new_bb_vec_info): Initialize base classs.
1106 * tree-vect-stmts.c (record_stmt_cost, process_use,
1107 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
1108 vectorizable_mask_load_store, vectorizable_call,
1109 vectorizable_simd_clone_call, vectorizable_conversion,
1110 vectorizable_assignment, vectorizable_shift,
1111 vectorizable_operation, vectorizable_store,
1112 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
1113 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
1114 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
1116 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
1119 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
1120 create_tmp_var_raw rather than create_tmp_var.
1122 2015-10-05 Marek Polacek <polacek@redhat.com>
1124 * tree-ssa-loop-im.c
1125 (move_computations_dom_walker::before_dom_children): Don't set
1126 SSA_NAME_ANTI_RANGE_P.
1127 * tree-ssa-phiopt.c (value_replacement): Likewise.
1129 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1130 Sebastian Pop <s.pop@samsung.com>
1132 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
1134 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1135 Sebastian Pop <s.pop@samsung.com>
1137 * graphite-poly.c (new_gimple_poly_bb): ... here.
1138 (free_data_refs_aux): ... here.
1139 (free_gimple_poly_bb): ... here.
1140 (remove_gbbs_in_scop): ... here.
1141 (new_scop): Call new_sese.
1142 (free_scop): Call remove_gbbs_in_scop and free_sese.
1143 * graphite-poly.h (base_alias_pair): ... here.
1144 (new_gimple_poly_bb): Declare.
1145 (free_gimple_poly_bb): Declare.
1146 * graphite-scop-detection.c (parameter_index_in_region_1):
1147 (parameter_index_in_region): ... here.
1148 (scan_tree_for_params): ... here.
1149 (find_params_in_bb): ... here.
1150 (find_scop_parameters): ... here.
1151 (build_scops): Call find_scop_parameters.
1152 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
1153 (free_scops): Move...
1154 (single_pred_cond_non_loop_exit): Move...
1155 (sese_dom_walker::before_dom_children): Move...
1156 (sese_dom_walker::after_dom_children): Move...
1157 (build_poly_scop): Move...
1158 * graphite-sese-to-poly.h (base_alias_pair): Move...
1159 * graphite.c (free_scops): ... here.
1161 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1162 Sebastian Pop <s.pop@samsung.com>
1164 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
1165 (trivially_empty_bb_p): Move...
1166 (same_close_phi_node): Move...
1167 (new_gimple_poly_bb): Move...
1168 (compare_bb_depths): Move...
1169 (graphite_sort_dominated_info): Move...
1170 (remove_duplicate_close_phi): Move...
1171 (make_close_phi_nodes_unique): Move...
1172 (canonicalize_loop_closed_ssa): Move...
1173 (canonicalize_loop_closed_ssa_form): Move...
1174 (loop_ivs_can_be_represented): Move...
1175 (single_pred_cond_non_loop_exit): Move...
1176 (graphite_can_represent_init): Move...
1177 (graphite_can_represent_scev): Move...
1178 (stmt_has_simple_data_refs_p): Move...
1179 (stmt_has_side_effects): Move...
1180 (graphite_can_represent_stmt): Move...
1181 (scop_detection): ... here.
1182 (sese_dom_walker): ... and here.
1183 (build_scops): Call all moved functions.
1184 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
1185 (all_non_dominated_preds_marked_p): Move...
1186 (build_scop_bbs_1): Move...
1187 (build_scop_bbs): Move...
1188 (set_scop_parameter_dim): Move...
1189 (nb_pbbs_in_loops): Move...
1190 (build_poly_scop): Do not call all the moved functions.
1192 2015-10-05 Martin Jambor <mjambor@suse.cz>
1193 Jan Hubicka <hubicka@ucw.cz>
1195 * ipa-cp.c (ipcp_alignment_lattice): New type.
1196 (ipcp_param_lattices): Use the above to represent alignment.
1197 (ipcp_alignment_lattice::print): New function.
1198 (print_all_lattices): Use it to print alignment information.
1199 (ipcp_alignment_lattice::top_p): New function.
1200 (ipcp_alignment_lattice::bottom_p): Likewise.
1201 (ipcp_alignment_lattice::set_to_bottom): Likewise.
1202 (ipcp_alignment_lattice::meet_with_1): Likewise.
1203 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
1204 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
1205 (initialize_node_lattices): Likewise.
1206 (propagate_alignment_accross_jump_function): Work with the new class
1207 for alignment lattices.
1208 (propagate_constants_accross_call): Pass only the alignment lattice to
1209 propagate_alignment_accross_jump_function.
1210 (ipcp_store_alignment_results): Work with the new class for alignment
1213 2015-10-05 Marek Polacek <polacek@redhat.com>
1215 PR tree-optimization/67821
1216 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
1218 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
1221 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
1223 (mkoffload_cleanup): ... this. Adjust all users.
1224 (maybe_unlink): Look at save_temps and verbose flags instead of
1226 (main): Parse "-save-temps" flag.
1227 (generate_target_descr_file, generate_target_offloadend_file)
1228 (generate_host_descr_file, prepare_target_image): Pass it on.
1229 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
1230 (mkoffload_cleanup): New function.
1231 (maybe_unlink): Look at save_temps and verbose flags instead of
1233 (main): Instead of calling utils_cleanup, register atexit handler
1234 for mkoffload_cleanup.
1235 (main): Parse "-save-temps" flag.
1236 (compile_native, main): Pass it on.
1237 * lto-wrapper.c (compile_offload_image): Likewise.
1239 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1241 * gimple.h (gimple_op_ptr): Require a non const gimple *.
1242 (gimple_assign_lhs_ptr): Likewise.
1243 (gimple_assign_rhs1_ptr): Likewise.
1244 (gimple_assign_rhs2_ptr): Likewise.
1245 (gimple_assign_rhs3_ptr): Likewise.
1246 (gimple_call_lhs_ptr): Likewise.
1247 (gimple_call_fn_ptr): Likewise.
1248 (gimple_call_chain_ptr): Likewise.
1249 (gimple_call_arg_ptr): Likewise.
1250 (gimple_cond_lhs_ptr): Likewise.
1251 (gimple_cond_rhs_ptr): Likewise.
1252 (gimple_switch_index_ptr): Likewise.
1253 (gimple_return_retval_ptr): Likewise.
1255 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1257 * gimple.h (gimple_asm_input_op_ptr): Remove.
1258 (gimple_asm_output_op_ptr): Likewise.
1260 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1262 * gimple.h (gimple_location_ptr): Remove.
1263 * tree-vrp.c (check_all_array_refs): Adjust.
1265 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1267 * tree-ssa-operands.c (build_uses): store tree * instead of
1269 (finalize_ssa_uses): Adjust.
1270 (append_use): Likewise.
1271 (verify_ssa_operands): Likewise.
1273 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1275 * real.h (build_real_truncate): Declare.
1276 * tree.c (build_real_truncate): New function.
1277 (strip_float_extensions): Use it.
1278 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
1279 (fold_builtin_hypot, fold_builtin_pow): Likewise.
1280 * match.pd: Likewise.
1282 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
1283 Jiong Wang <jiong.wang@arm.com>
1285 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
1287 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1289 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
1290 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
1291 (aarch64_print_operand, aarch64_float_const_representable_p)
1292 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
1293 instead of REAL_VALUE_FROM_CONST_DOUBLE.
1294 * config/arc/arc.c (arc_print_operand): Likewise.
1295 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
1296 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
1297 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
1299 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
1300 (consttable_16): Likewise.
1301 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
1302 * config/avr/avr.c (avr_print_operand): Likewise.
1303 * config/bfin/bfin.md: Likewise (in a define_split).
1304 * config/c6x/c6x.md: Likewise (in a define_split).
1305 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
1306 (cr16_print_operand): Likewise.
1307 * config/cris/cris.c (cris_print_operand): Likewise.
1308 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
1309 * config/fr30/fr30.c (fr30_print_operand): Likewise.
1310 (fr30_const_double_is_zero): Likewise.
1311 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
1312 * config/frv/frv.md: Likewise (in a define_split).
1313 * config/frv/predicates.md (int_2word_operand): Likewise.
1314 * config/h8300/h8300.c (h8300_print_operand): Likewise.
1315 * config/i386/i386.c (standard_80387_constant_p): Likewise.
1316 (ix86_print_operand, ix86_split_to_parts): Likewise.
1317 * config/i386/i386.md: Likewise (in a define_split).
1318 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
1319 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
1320 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
1321 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
1322 (print_operand): Likewise.
1323 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
1324 * config/mep/mep.md: Likewise (in define_split).
1325 * config/microblaze/microblaze.c (microblaze_const_double_ok)
1326 (print_operand): Likewise.
1327 * config/mips/mips.md (consttable_float): Likewise.
1328 * config/mmix/mmix.c (mmix_intval): Likewise.
1329 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
1330 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
1331 * config/pa/pa.c (pa_singlemove_string): Likewise.
1332 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
1333 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
1334 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
1335 (output_toc): Likewise.
1336 * config/rs6000/rs6000.md: Likewise (in define_splits).
1337 * config/rx/rx.c (rx_print_operand): Likewise.
1338 * config/s390/s390.c (s390_output_pool_entry): Likewise.
1339 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
1340 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
1341 (and also in define_splits).
1342 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
1343 (fp_high_losum_p): Likewise.
1344 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
1345 (*movsf_high): Likewise.
1346 * config/spu/spu.c (const_double_to_hwint): Likewise.
1347 * config/v850/v850.c (const_double_split): Likewise.
1348 * config/vax/vax.c (vax_float_literal): Likewise.
1349 * config/visium/visium.c (visium_expand_copysign): Likewise.
1350 * config/visium/visium.md: Likewise (in define_split).
1351 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
1352 * config/xtensa/xtensa.c (print_operand): Likewise.
1353 (xtensa_output_literal): Likewise.
1354 * cprop.c (implicit_set_cond_p): Likewise.
1355 * dwarf2out.c (insert_float): Likewise.
1356 * expmed.c (expand_mult, make_tree): Likewise.
1357 * expr.c (compress_float_constant): Likewise.
1358 * rtlanal.c (split_double): Likewise.
1359 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
1360 (simplify_const_unary_operation, simplify_binary_operation_1)
1361 (simplify_const_binary_operation): Likewise.
1362 (simplify_const_relational_operation): Likewise.
1363 * varasm.c (output_constant_pool_2): Likewise.
1365 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1367 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
1368 instead of CONST_DOUBLE_FROM_REAL_VALUE.
1369 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
1370 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
1371 instead of CONST_DOUBLE_FROM_REAL_VALUE.
1372 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
1373 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
1374 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
1375 (ix86_emit_swsqrtsf): Likewise.
1376 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
1377 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
1378 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1379 * config/pa/pa.c (pa_expand_builtin): Likewise.
1380 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
1381 (rs6000_scale_v2df): Likewise.
1382 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
1383 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
1384 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
1385 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
1386 (vec_ctul): Likewise.
1387 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
1388 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
1389 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
1390 * cse.c (fold_rtx): Likewise.
1391 * emit-rtl.c (immed_double_const): Likewise (in comments).
1392 (init_emit_once): Likewise.
1393 * expr.c (compress_float_constant, expand_expr_real_1)
1394 (const_vector_from_tree): Likewise.
1395 * optabs.c (expand_float, expand_fix): Likewise.
1396 * reg-stack.c (reg_to_stack): Likewise.
1397 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
1398 (simplify_const_unary_operation, simplify_binary_operation_1)
1399 (simplify_const_binary_operation, simplify_relational_operation)
1400 (simplify_immed_subreg): Likewise.
1402 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1404 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
1405 * doc/tm.texi: Regenerate.
1406 * real.h (REAL_ARITHMETIC): Delete.
1407 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
1408 (ix86_expand_round_sse4): Use real_arithmetic instead of
1410 * config/i386/sse.md (round<mode>2): Likewise.
1411 * rtl.h (rtx_to_tree_code): Likewise (in comment).
1412 * explow.c (rtx_to_tree_code): Likewise (in comment).
1413 * match.pd: Likewise.
1414 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1415 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
1416 (expand_pow_as_sqrts): Likewise.
1417 * tree-pretty-print.c (dump_generic_node): Remove code that
1418 was conditional on REAL_ARITHMETIC being undefined.
1420 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1422 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
1423 * doc/tm.texi: Regenerate.
1424 * real.h (real_less): Declare.
1425 (REAL_VALUES_LESS): Delete.
1426 * real.c (real_less): New function.
1427 (real_compare): Use it.
1428 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
1429 of REAL_VALUES_LESS.
1430 * config/microblaze/microblaze.c (microblaze_const_double_ok):
1432 * fold-const.c (fold_convert_const_int_from_real): Likewise.
1433 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1434 (simplify_const_relational_operation): Likewise.
1435 * tree-call-cdce.c (check_pow): Likewise.
1436 (gen_conditions_for_pow_cst_base): Likewise.
1438 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1440 * real.h (REAL_VALUES_IDENTICAL): Delete.
1441 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
1442 instead of REAL_VALUES_IDENTICAL.
1443 * fold-const.c (operand_equal_p): Likewise.
1444 * ipa-icf.c (sem_variable::equals): Likewise.
1445 * tree-complex.c (some_nonzerop): Likewise.
1446 (expand_complex_multiplication): Likewise.
1447 * tree.c (simple_cst_equal): Likewise.
1448 * varasm.c (compare_constant): Likewise.
1450 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1452 * real.h (real_equal): Declare.
1453 (REAL_VALUES_EQUAL): Delete.
1454 * real.c (real_equal): New function.
1455 (real_compare): Use it.
1456 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
1457 * doc/tm.texi: Regenerate.
1458 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
1459 real_equal instead of REAL_VALUES_EQUAL.
1460 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
1461 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
1462 (fp_const_from_val): Likewise.
1463 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
1464 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
1465 (floating_exact_log2): Likewise.
1466 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
1467 * config/vax/vax.c (vax_float_literal): Likewise.
1468 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
1469 * cprop.c (implicit_set_cond_p): Likewise.
1470 * expmed.c (expand_mult): Likewise.
1471 * fold-const.c (const_binop): Likewise.
1472 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1473 (simplify_const_binary_operation): Likewise.
1474 (simplify_const_relational_operation): Likewise.
1475 * tree-call-cdce.c (check_pow): Likewise.
1476 (gen_conditions_for_pow_cst_base): Likewise.
1477 * tree-inline.c (estimate_num_insns): Likewise.
1478 * tree-ssa-dom.c (record_equality): Likewise.
1479 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
1480 (gimple_expand_builtin_pow): Likewise.
1481 (pass_optimize_widening_mul::execute): Likewise.
1482 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1483 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1484 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
1486 2015-10-05 Richard Biener <rguenther@suse.de>
1489 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
1490 consider loop header PHI defs as IVs.
1492 2015-10-05 Richard Biener <rguenther@suse.de>
1494 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
1496 (create_expression_by_pieces): ... here and build GIMPLE
1497 calls directly. Use gimple_build API and avoid force_gimple_operand.
1498 (insert_into_preds_of_block): Simplify.
1499 (do_regular_insertion): Add comment.
1501 2015-10-04 Jason Merrill <jason@redhat.com>
1503 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
1505 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
1507 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
1508 check for general register.
1509 (ix86_emit_save_regs): Ditto.
1510 (ix86_emit_save_regs_using_mov): Ditto.
1511 (ix86_emit_restore_regs_using_pop): Ditto.
1512 (ix86_emit_restore_regs_using_mov): Ditto.
1514 2015-10-03 Marek Polacek <polacek@redhat.com>
1516 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
1517 (insn-dfatab.o): Likewise.
1519 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
1521 * config.gcc (xtensa*-*-uclinux*): New configuration.
1522 * config/xtensa/uclinux.h: New file.
1523 * config/xtensa/uclinux.opt: New file.
1525 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
1527 * doc/cpp.texi (Standard Predefined Macros): Document value of
1528 __cplusplus for C++14.
1530 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
1532 * gcc.c (process_command): Use spec_machine rather than
1533 spec_host_machine to build tooldir_prefix2.
1535 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
1536 Bernd Schmidt <bernds@codesourcery.com>
1538 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
1539 (Token, Stmt): Remove structs.
1540 (decls, vars, fns): Remove variables.
1541 (alloc_comment, append_stmt, is_keyword): Remove macros.
1542 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
1543 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
1544 (parse_init, parse_file): Remove functions.
1545 (read_file): Accept a pointer to a length and store into it.
1546 (process): Don't try to parse the input file, just write it out as
1547 a string, but looking for maps. Also write out the length.
1548 (main): Don't use "-S" to compile PTX code.
1550 2015-10-02 Jeff Law <law@redhat.com>
1552 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
1555 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
1558 * config/nvptx/mkoffload.c (main): Scan the argument vector for
1559 -fopenmp, and skip generating an offloading image if specified.
1561 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
1563 * system.h (ROUND_UP): New macro definition.
1564 (ROUND_DOWN): Ditto.
1565 * ggc-page.c (ROUND_UP): Remove local macro definition.
1566 (PAGE_ALIGN): Implement using ROUND_UP macro.
1568 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
1569 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
1571 (ix86_compute_frame_layout): Ditto.
1572 (ix86_expand_prologue): Ditto.
1573 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
1574 to round down values.
1575 (expand_set_or_movmem_via_rep): Ditto.
1577 2015-10-02 Marek Polacek <polacek@redhat.com>
1579 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
1581 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
1583 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
1584 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
1585 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
1586 (free_gimple_bb): Renamed free_gimple_poly_bb.
1587 (try_generate_gimple_bb): Hoist loop invariant code.
1588 (analyze_drs_in_stmts): Same.
1589 (build_scop_drs): Call renamed functions.
1590 (new_pbb_from_pbb): Same.
1591 (scop_ivs_can_be_represented): Delete as functionality now moved to
1592 graphite-scop-detection.c
1593 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
1595 2015-10-02 Aditya Kumar <hiraditya@msn.com>
1597 * graphite-scop-detection.c (stmt_has_side_effects): New function
1598 outlined from stmt_simple_for_scop_p.
1599 (graphite_can_represent_stmt): Same.
1600 (stmt_simple_for_scop_p): Moved code out of this function for better
1603 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
1605 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
1607 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
1609 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1611 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
1613 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
1615 PR rtl-optimization/67756
1616 * lra-constraints.c (match_reload): Add a new parameter. Use it
1617 for creating a pseudo with the same value.
1618 (curr_insn_transform): Pass a new argument to match_reload.
1620 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
1622 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
1623 (expand_vec_perm_even_odd_1): Handle V64QImode.
1624 (ix86_expand_vec_perm_const_1): Try expansion with
1625 expand_vec_perm_even_odd_trunc as well.
1626 * config/i386/sse.md (VI124_AVX512F): Rename to ...
1627 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
1629 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
1630 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
1632 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
1633 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
1634 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
1635 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
1636 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
1637 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
1639 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
1641 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
1642 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
1644 2015-10-02 Jason Merrill <jason@redhat.com>
1647 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
1648 (diagnose_tm_1_op): Also diagnose volatile accesses in
1649 transaction_safe function.
1651 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
1653 * system.h (malloc.h): Don't include obsolete header.
1655 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1657 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
1658 (TLS_SECTION_ASM_FLAG): Delete.
1660 2015-10-02 Marek Polacek <polacek@redhat.com>
1663 * doc/invoke.texi: Document -Wduplicated-cond.
1664 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
1665 (insn-dfatab.o): Likewise.
1666 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
1669 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
1671 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
1674 2015-10-02 Renlin Li <renlin.li@arm.com>
1676 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
1678 2015-10-02 Renlin Li <renlin.li@arm.com>
1681 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
1683 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1685 PR rtl-optimization/67786
1686 PR rtl-optimization/67787
1687 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
1688 it modifies a reg used in the condition calculation.
1690 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
1692 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
1693 alternatives for reads from memory and moves from general-purpose
1695 (*aarch64_combinez_be<mode>): Likewise.
1697 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
1700 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
1701 selectany within this function without need to keep attribute.
1702 (i386_pe_encode_section_info): Remove selectany-code.
1704 2015-10-02 Richard Biener <rguenther@suse.de>
1706 * tree-ssa-sccvn.c (has_VN_INFO): New function.
1707 (free_scc_vn): Use it.
1708 (visit_use): Remove dead code and refactor to use gassign
1709 and use less indentation.
1711 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1715 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
1716 (rs6000_cannot_copy_insn_p): New function.
1717 * config/rs6000/rs6000.md (cannot_copy): New attribute.
1718 (load_toc_v4_PIC_1_normal): Set cannot_copy.
1719 (load_toc_v4_PIC_1_476): Ditto.
1721 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
1723 * graphite-scop-detection.c (struct sese_l): New conversion constructor
1724 so that this type can be pushed into a vec.
1725 (class scop_builder): use sese_l to collect scops.
1726 (get_scops): New getter function.
1727 (remove_intersecting_scops): Use sese_l instead of scops_p.
1731 (remove_subscops): Same.
1732 (build_scops): Add scops to vec<scops_p> once all the scops have been
1735 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
1737 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1738 Renamed type from gimple_bb_p to gimple_poly_bb_p.
1739 (translate_isl_ast_node_user): Same.
1740 * graphite-poly.c (new_poly_bb): Same.
1741 * graphite-poly.h (gbb_from_bb): Same.
1743 * graphite-sese-to-poly.c (new_gimple_bb):
1744 gimple_bb_p -> gimple_poly_bb_p
1745 (build_scop_scattering): Same.
1746 (find_params_in_bb): Same.
1747 (add_conditions_to_domain): Same.
1748 (sese_dom_walker::before_dom_children): Same.
1749 (analyze_drs_in_stmts): Same.
1750 (new_pbb_from_pbb): Same.
1751 (free_data_refs_aux): New pointer to type base_alias_pair.
1752 * graphite-sese-to-poly.h: Same.
1753 * sese.c (if_region_set_false_region): Fixed Indentation.
1754 (move_sese_in_condition): Same.
1756 2015-10-01 Sebastian Pop <s.pop@samsung.com>
1757 Aditya Kumar <aditya.k7@samsung.com>
1759 PR tree-optimization/66980
1760 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
1761 when data reference analysis has failed.
1763 2015-10-01 Sebastian Pop <s.pop@samsung.com>
1764 Aditya Kumar <aditya.k7@samsung.com>
1766 PR tree-optimization/67754
1767 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
1768 scev analysis on the same loop nest as analyze_drs_in_stmts.
1769 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
1771 (try_generate_gimple_bb): Call outermost_loop_in_sese.
1772 (analyze_drs_in_stmts): Same.
1773 * sese.c (outermost_loop_in_sese): ...here.
1775 2015-10-01 Sebastian Pop <s.pop@samsung.com>
1776 Aditya Kumar <aditya.k7@samsung.com>
1778 PR tree-optimization/67754
1779 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
1780 recursion on the inner loops.
1782 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1784 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
1785 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
1786 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
1787 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
1788 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
1790 2015-10-01 Marek Polacek <polacek@redhat.com>
1793 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
1794 create_tmp_var_raw rather than create_tmp_var.
1796 2015-10-01 Marek Polacek <polacek@redhat.com>
1798 PR tree-optimization/67769
1799 * tree-ssa-phiopt.c (conditional_replacement): Call
1800 reset_flow_sensitive_info_in_bb.
1801 (minmax_replacement): Likewise.
1802 (abs_replacement): Likewise.
1804 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
1806 * builtins.c: Don't include gomp-constants.h.
1807 (fold_builtin_1): Don't fold acc_on_device here.
1808 * gimple-fold.c: Include gomp-constants.h.
1809 (gimple_fold_builtin_acc_on_device): New.
1810 (gimple_fold_builtin): Call it.
1812 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
1814 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
1815 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
1817 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
1819 * config/arm/aarch-common-protos.h
1820 (aarch_accumulator_forwarding): New.
1821 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
1822 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
1823 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
1824 * config/arm/cortex-a53.md: Rewrite.
1826 2015-10-01 Richard Biener <rguenther@suse.de>
1828 * gimple-match.h (mprts_hook): Declare.
1829 * gimple-match.head.c (mprts_hook): Define.
1830 (maybe_push_res_to_seq): Use new hook.
1831 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1832 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
1833 (vn_ssa_aux::has_constants): Remove.
1834 * tree-ssa-sccvn.c: Include gimple-match.h.
1835 (VN_INFO_GET): Assert we don't re-use SSA names.
1836 (vn_get_expr_for): Remove.
1837 (expr_has_constants): Likewise.
1838 (stmt_has_constants): Likewise.
1839 (simplify_binary_expression): Likewise.
1840 (simplify_unary_expression): Likewise.
1841 (vn_lookup_simplify_result): New hook.
1842 (visit_copy): Adjust.
1843 (visit_reference_op_call): Likewise.
1844 (visit_phi): Likewise.
1845 (visit_use): Likewise.
1846 (process_scc): Likewise.
1847 (init_scc_vn): Likewise.
1848 (visit_reference_op_load): Likewise. Use match-and-simplify and
1849 a gimple seq for inserted expressions.
1850 (try_to_simplify): Remove GENERIC stmt combining code.
1851 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
1852 * tree-ssa-pre.c (eliminate_insert): Adjust.
1853 (eliminate_dom_walker::before_dom_children): Likewise.
1855 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1857 * doc/invoke.texi (Optimization Options): Add
1858 -freorder-blocks-algorithm=.
1859 (Optimize Options) <-O>: Add -freorder-blocks.
1860 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
1861 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
1862 <-freorder-blocks>: Also enabled at levels -O and -Os.
1863 <-freorder-blocks-algorithm=>: Document new option.
1865 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1867 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
1868 with flag_reorder_blocks_algorithm.
1869 * common.opt (freorder-blocks-algorithm=): New flag.
1870 (reorder_blocks_algorithm): New enum.
1871 * flag-types.h (reorder_blocks_algorithm): New enum.
1872 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
1873 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
1875 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1877 * bb-reorder.c: Add intro comment.
1878 (reorder_basic_blocks_software_trace_cache): Print a header to
1880 (edge_order): New function.
1881 (reorder_basic_blocks_simple): New function.
1882 (reorder_basic_blocks): Choose between the STC and the simple
1883 algorithms (always choose the former).
1885 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1887 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
1888 function, factored out from ...
1889 (reorder_basic_blocks): ... here.
1891 2015-10-01 Tom de Vries <tom@codesourcery.com>
1893 * tree-cfg.c (dump_function_to_file): Dump function attributes using
1894 __attribute__(()) string. Move dumping of function attributes to before
1897 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
1900 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1901 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
1902 based on gold linker version.
1903 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
1904 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
1905 * configure, config.in: Regenerate.
1907 2015-10-01 Alan Modra <amodra@gmail.com>
1909 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
1910 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
1911 (rs6000_output_mi_thunk): Likewise.
1913 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
1915 * config/nvptx/mkoffload.c (process): Change offload data format.
1917 2015-09-30 Jeff Law <law@redhat.com>
1919 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
1920 with constant conditions.
1921 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
1922 (remove_ctrl_stmt_and_useless_edges): No longer static.
1923 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
1924 (remove_ctrl_stmt_and_useless_edges): Likewise.
1926 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
1927 Cesar Philippidis <cesar@codesourcery.com>
1929 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
1930 (TARGET_GOACC_VALIDATE_DIMS): Override.
1931 * target.def (TARGET_GOACC): New target hook prefix.
1932 (validate_dims): New hook.
1933 * targhooks.h (default_goacc_validate_dims): New.
1934 * omp-low.c (oacc_validate_dims): New.
1935 (execute_oacc_device_lower): New.
1936 (default_goacc_validate_dims): New.
1937 (pass_data_oacc_device_lower): New.
1938 (pass_oacc_device_lower): New pass.
1939 (make_pass_oacc_device_lower): New.
1940 * tree-pass.h (make_pass_oacc_device_lower): Declare.
1941 * passes.def (pass_oacc_device_lower): Add it.
1942 * doc/tm.texi: Rebuilt.
1943 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
1944 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
1946 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
1948 PR rtl-optimization/67037
1949 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
1951 2015-09-30 Bernd Schmidt <bernds@redhat.com>
1953 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
1954 * passes.c: Include tree-ssanames.h.
1955 (execute_function_todo): Flush the pending free SSA_NAMEs after
1956 eliminating unreachable basic blocks.
1957 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
1958 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
1959 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
1960 (flush_ssanames_freelist): New function.
1961 (release_ssaname_fn): Put released names on the queue.
1962 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
1963 * tree-ssanames.h (flush_ssanames_freelist): Declare.
1965 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
1967 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
1968 (generate_target_descr_file, generate_target_offloadend_file)
1969 (generate_host_descr_file, prepare_target_image): Pass it on.
1970 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
1971 (compile_native, main): Pass it on.
1972 * lto-wrapper.c (compile_offload_image): Likewise.
1974 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
1975 Ilya Verbin <ilya.verbin@intel.com>
1976 Andrey Turetskiy <andrey.turetskiy@intel.com>
1978 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
1979 (prepare_target_image, main): Refactor argv building to use
1982 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1984 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
1985 * config/spu/spu.c (spu_expand_atomic_op): New function.
1986 * config/spu/spu.md (AINT): New mode iterator.
1987 (ATOMIC): New code iterator.
1988 (atomic_name, atomic_pred): New code predicates.
1989 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
1990 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
1991 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
1992 "atomic_<atomic_name>_fetch<mode>"): Likewise.
1994 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
1996 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
1998 (scalar_chain::convert_reg): Likewise.
2000 2015-09-30 Richard Biener <rguenther@suse.de>
2002 * builtins.c: Add comment that no new simplifications should
2005 2015-09-30 Marek Polacek <polacek@redhat.com>
2007 PR tree-optimization/67690
2008 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
2009 reset_flow_sensitive_info_in_bb.
2010 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
2011 * tree-ssanames.c: Include "gimple-iterator.h".
2012 (reset_flow_sensitive_info_in_bb): New function.
2013 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
2015 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2017 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
2018 variable, replacing it with...
2019 (offload_abi): ... this new variable. Adjust all users.
2020 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
2022 2015-09-30 Matthias Klose <doko@ubuntu.com>
2024 * configure.ac: Remove extraneous ;;.
2025 * configure: Regenerate.
2027 2015-09-29 James Bowman <james.bowman@ftdichip.com>
2029 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
2030 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
2031 predicate, disallow register for operand 2.
2033 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
2035 * graphite-dependences.c (scop_get_dependences): Moved in down
2036 in order to be visible to its caller.
2037 * graphite-poly.h: Removed compute_deps, and extend_schedule.
2039 2015-09-29 Sebastian Pop <s.pop@samsung.com>
2040 Aditya Kumar <aditya.k7@samsung.com>
2042 PR tree-optimization/67754
2043 * graphite-optimize-isl.c (optimize_isl): Call
2044 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
2046 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
2048 * builtins.c (expand_builtin_acc_on_device): Delete.
2049 (expand_builtin): Don't call it.
2050 (fold_builtin_1): Fold acc_on_device.
2052 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
2054 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
2055 (ix86_nsaved_sseregs): Likewise.
2057 2015-09-29 Jeff Law <law@redhat.com>
2059 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
2060 computation of unused value.
2062 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
2063 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
2064 inline macro expansion.
2066 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
2068 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
2069 (gen_shl_sext): Likewise.
2070 * config/sh/sh.md (divsi3): Likewise.
2071 (imm->ext_dest_operand splitter): Likewise.
2073 2015-09-29 Sebastian Pop <s.pop@samsung.com>
2074 Aditya Kumar <aditya.k7@samsung.com>
2076 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
2077 (nb_data_writes_in_bb): Remove.
2078 (split_pbb): Remove.
2079 (split_reduction_stmt): Remove.
2080 (is_reduction_operation_p): Remove.
2081 (phi_contains_arg): Remove.
2082 (follow_ssa_with_commutative_ops): Remove.
2083 (detect_commutative_reduction_arg): Remove.
2084 (detect_commutative_reduction_assign): Remove.
2085 (follow_inital_value_to_phi): Remove.
2086 (edge_initial_value_for_loop_phi): Remove.
2087 (initial_value_for_loop_phi): Remove.
2088 (used_outside_reduction): Remove.
2089 (detect_commutative_reduction): Remove.
2090 (translate_scalar_reduction_to_array_for_stmt): Remove.
2091 (remove_phi): Remove.
2092 (dr_indices_valid_in_loop): Remove.
2093 (close_phi_written_to_memory): Remove.
2094 (translate_scalar_reduction_to_array): Remove.
2095 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
2096 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
2097 (rewrite_commutative_reductions_out_of_ssa): Remove.
2098 (build_poly_scop): Remove call to
2099 rewrite_commutative_reductions_out_of_ssa.
2101 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
2103 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
2104 Add new insn types for vector load and store pairs.
2105 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
2106 types "neon_ldp{,_q}".
2107 * config/arm/cortex-a57.md (neon_load_c): Add insn types
2109 (neon_store_complex): Add insn types "neon_stp{,_q}".
2110 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
2113 2015-09-29 Jeff Law <law@redhat.com>
2115 * config/rx/constraints.md (Int08): Fix undefined left shift
2117 (Sint08, Sint16, Sint24): Likewise.
2118 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2120 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
2123 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
2124 left shift behaviour.
2125 * config/msp430/constraints.md ('L' constraint): Similarly.
2126 ('Ys' constraint): Similarly.
2128 2015-09-29 Richard Biener <rguenther@suse.de>
2130 PR tree-optimization/67170
2131 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
2132 the translate function pointer parameter to get the
2133 bool whether to disambiguate only by reference.
2134 (walk_non_aliased_vuses): Likewise.
2135 * tree-ssa-alias.c (maybe_skip_until): Adjust.
2136 (get_continuation_for_phi_1): Likewise.
2137 (get_continuation_for_phi): Likewise.
2138 (walk_non_aliased_vuses): Likewise.
2139 * tree-ssa-sccvn.c (const_parms): New bitmap.
2140 (vn_reference_lookup_3): Adjust for interface change.
2141 Disambiguate parameters pointing to readonly memory.
2142 (free_scc_vn): Free const_parms.
2143 (run_scc_vn): Initialize const_parms from a fn spec attribute.
2145 2015-09-29 Richard Biener <rguenther@suse.de>
2147 PR tree-optimization/67741
2148 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
2149 builtin calls with correct signature.
2151 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
2154 * config/i386/i386.c: Include dbgcnt.h.
2155 (has_non_address_hard_reg): New.
2156 (convertible_comparison_p): New.
2157 (scalar_to_vector_candidate_p): New.
2158 (remove_non_convertible_regs): New.
2159 (scalar_chain): New.
2160 (scalar_chain::scalar_chain): New.
2161 (scalar_chain::~scalar_chain): New.
2162 (scalar_chain::add_to_queue): New.
2163 (scalar_chain::mark_dual_mode_def): New.
2164 (scalar_chain::analyze_register_chain): New.
2165 (scalar_chain::add_insn): New.
2166 (scalar_chain::build): New.
2167 (scalar_chain::compute_convert_gain): New.
2168 (scalar_chain::replace_with_subreg): New.
2169 (scalar_chain::replace_with_subreg_in_insn): New.
2170 (scalar_chain::emit_conversion_insns): New.
2171 (scalar_chain::make_vector_copies): New.
2172 (scalar_chain::convert_reg): New.
2173 (scalar_chain::convert_op): New.
2174 (scalar_chain::convert_insn): New.
2175 (scalar_chain::convert): New.
2176 (convert_scalars_to_vector): New.
2177 (pass_data_stv): New.
2179 (make_pass_stv): New.
2180 (ix86_option_override): Created and register stv pass.
2181 (flag_opts): Add -mstv.
2182 (ix86_option_override_internal): Likewise.
2183 * config/i386/i386.md (SWIM1248x): New.
2184 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
2185 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
2186 (*anddi3_doubleword): New.
2187 (*zext<mode>_doubleword): New.
2188 (*zextsi_doubleword): New.
2189 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
2190 (*<code>di3_doubleword): New.
2191 * config/i386/i386.opt (mstv): New.
2192 * dbgcnt.def (stv_conversion): New.
2194 2015-09-29 Tom de Vries <tom@codesourcery.com>
2196 * tree-cfg.c (dump_function_to_file): Dump function attributes.
2198 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2201 * config/sh/sh.c (sh_override_options_after_change): New.
2202 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2203 (sh_option_override): Move align_loops, align_jumps and
2204 align_functions handling into sh_override_options_after_change.
2206 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2208 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
2209 (nvptx_record_offload_symbol): Record function execution geometry.
2210 * config/nvptx/mkoffload.c (process): Include launch geometry in
2212 * omp-low.c (oacc_launch_pack): New.
2213 (replace_oacc_fn_attrib): New.
2214 (set_oacc_fn_attrib): New.
2215 (get_oacc_fn_attrib): New.
2216 (expand_omp_target): Create keyed varargs for GOACC_parallel call
2218 * omp-low.h (get_oacc_fn_attrib): Declare.
2219 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
2220 (DEF_FUNCTION_TYPE_VAR_11): Delete.
2221 * tree.h (OMP_CLAUSE_EXPR): New.
2222 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
2224 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2225 Sebastian Pop <s.pop@samsung.com>
2227 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
2229 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2230 Sebastian Pop <s.pop@samsung.com>
2232 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
2233 * graphite-scop-detection.c (struct sese_l): New type.
2234 (get_entry_bb): API for getting entry bb of SESE.
2235 (get_exit_bb): API for getting exit bb of SESE.
2236 (class debug_printer): New type. Simple printer in debug mode.
2237 (trivially_empty_bb_p): New. Return true when BB is empty or
2238 contains only debug instructions.
2239 (graphite_can_represent_expr): Call scalar_evoution_in_region
2240 instead of analyze_scalar_evolution. Pass in scop instead of only
2242 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
2244 (stmt_simple_for_scop_p): Same.
2245 (harmful_stmt_in_bb): Same.
2246 (graphite_can_represent_loop): Deleted.
2247 (struct scopdet_info): Deleted.
2248 (scopdet_basic_block_info): Deleted.
2249 (build_scops_1): Deleted.
2250 (bb_in_sd_region): Deleted.
2251 (find_single_entry_edge): Deleted.
2252 (find_single_exit_edge): Deleted.
2253 (create_single_entry_edge): Deleted.
2254 (sd_region_without_exit): Deleted.
2255 (create_single_exit_edge): Deleted.
2256 (unmark_exit_edges): Deleted.
2257 (mark_exit_edges): Deleted.
2258 (create_sese_edges): Deleted.
2259 (build_graphite_scops): Deleted.
2260 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
2261 (build_scops): Use the new scop_builder to build scops.
2262 (dot_all_scops_1): Use the new pretty printer. Print loop father
2264 (loop_body_is_valid_scop): New. Return true if loop body is a
2266 (class scop_builder): New. Builds SCoPs for polyhedral
2268 (scop_builder): New constructor.
2269 (static sese_l invalid_sese): sese_l with invalid edges.
2270 (get_sese): Get an sese (from a loop) if possible, invalid_sese
2272 (get_nearest_dom_with_single_entry): Get nearest dominator of a
2273 basic_block with single entry. Return NULL if we get to the
2274 beginning of a function.
2275 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
2276 a basic_block with single exit. Return NULL if we get to the
2277 beginning of a function.
2278 (print_sese): Pretty-print SESE.
2279 (merge_sese): Merge two SESEs if possible and return the new SESE.
2280 (build_scop_depth): Start building the SCoP within a loop nest.
2281 (build_scop_breadth): Start building the SCoP at a single loop
2282 depth. Merge adjacent SESEs if valid.
2283 (can_represent_loop_1): Returns true if Graphite can represent
2284 loop inside SCoP. Helper for can_represent_loop.
2285 (can_represent_loop): Returns true if Graphite can represent LOOP
2286 and all its nested loops in SCoP.
2287 (loop_is_valid_scop): Returns true if LOOP and all its nests
2288 constitute a valid SCoP.
2289 (region_has_one_loop): Returns true of a region has only one loop.
2290 (add_scop): Add SCoP to the list of valid scops. Removes an
2291 already existing scop if it intersects with or subsumed by this one.
2292 (harmful_stmt_in_region): Returns true if SCoP has any statment
2293 which cannot be represented by Graphite.
2294 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
2295 (remove_subscops): Remove any SCoP from the list of already found
2296 SCoPs, if subsumed by S1.
2297 (intersects): Return true if region bounded by SCoPs S1 and S2
2299 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
2300 * graphite.c (print_graphite_scop_statistics):
2301 (print_graphite_statistics): Print SCoP info while debugging.
2302 (graphite_initialize): Early exit in case number of loops in a
2303 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
2304 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
2305 (graphite_finalize):
2306 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
2307 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
2308 (recompute_all_dominators): Recalculate POST_DOMINATORS.
2309 * tree-cfg.c (print_loops): Print the function name while printing
2312 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2313 Sebastian Pop <s.pop@samsung.com>
2315 PR tree-optimization/67700
2316 * graphite-sese-to-poly.c (parameter_index_in_region): Call
2317 invariant_in_sese_p_rec.
2318 (extract_affine): Same.
2319 (rewrite_cross_bb_scalar_deps): Call update_ssa.
2320 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
2321 * sese.h (invariant_in_sese_p_rec): Declare.
2323 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
2325 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
2327 2015-09-28 Jiong Wang <jiong.wang@arm.com>
2330 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2331 Jiong Wang <jiong.wang@arm.com>
2333 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2334 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2335 (REG_CLASS_NAMES): Likewise.
2336 (REG_CLASS_CONTENTS): Likewise.
2337 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2338 (aarch64_register_move_cost): Likewise.
2339 (aarch64_load_symref_appropriately): Invoke the new added pattern if
2341 * config/aarch64/constraints.md (Uc0): New constraint.
2343 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
2345 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
2347 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
2349 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
2350 SECTION_EXCLUDE in XO mapping class.
2352 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2355 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
2356 and handle ne and eq codes.
2357 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
2358 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
2359 CONST_INT_P. Use reverse_condition.
2360 (sh_split_treg_set_expr): Likewise.
2362 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
2364 * config/arm/types.md (type): Add rotate_imm.
2365 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
2367 (*rorsi3_insn_uxtw): Likewise.
2368 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
2369 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
2370 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
2372 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2374 PR rtl-optimization/67481
2375 * ifcvt.c (contains_ccmode_rtx_p): New function.
2376 (insn_valid_noce_process_p): Use it.
2378 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2380 PR rtl-optimization/67456
2381 PR rtl-optimization/67464
2382 PR rtl-optimization/67465
2383 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
2384 move in the mode of x. Handle combination of complex and simple
2385 block pairs as well as the case when one is empty.
2387 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2389 * doc/gimple.texi: Update references to gimple_statement_base.
2390 * gdbhooks.py: Likewise.
2391 * gimple.h: Likewise.
2393 2015-09-28 Daniel Cederman <cederman@gaisler.com>
2395 * config/sparc/driver-sparc.c: map LEON to leon3
2397 2015-09-28 Daniel Cederman <cederman@gaisler.com>
2399 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
2400 and make it inverse to change default
2401 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
2403 * doc/invoke.texi: Document change of default
2405 2015-09-28 Daniel Cederman <cederman@gaisler.com>
2407 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
2408 true on %f0 for a target without FPU.
2409 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
2411 (untyped_return): Do not load %f0 for a target without FPU.
2413 2015-09-28 Andrew Pinski <apinski@cavium.com>
2415 * config/aarch64/aarch64.md (prefetch):
2416 Change the predicate of operand 0 to register_operand.
2418 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
2420 * config/i386/predicates.md (register_sse4nonimm_operand): New
2422 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
2423 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
2424 Use register_sse4nonimm_operand as operand 0 predicate.
2425 (*vec_extractv8hi_sse2): Remove insn pattern.
2426 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
2427 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
2429 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2430 Kaz Kojima <kkojima@gcc.gnu.org>
2433 * config/sh/sh-protos.h (sh_lra_p): Declare.
2434 * config/sh/sh.c (sh_lra_p): Make non-static.
2435 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
2436 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
2437 Expand into addsi3_scr if operands[2] if needed.
2438 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
2439 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
2440 (addsi3_scr, *addsi3): New insn_and_split patterns.
2442 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
2444 PR rtl-optimization/64164
2445 PR tree-optimization/67312
2449 * cfgexpand.c (parm_in_stack_slot_p): Remove.
2450 (ssa_default_def_partition): Remove.
2451 (get_rtl_for_parm_ssa_default_def): Remove.
2452 (set_rtl): Check that RTL assignments match expectations.
2453 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
2454 default def location for params and results. Record SSA names
2455 or types in REG and MEM attrs, respectively.
2456 (set_parm_rtl): New.
2457 (expand_one_ssa_partition): Drop logic that assigned MEMs with
2458 unassigned addresses.
2459 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
2460 deferred stack alloc vars.
2461 (expand_used_vars): Skip partitions holding parm default defs.
2462 Move adjust_one_expanded_partition_var loop...
2463 (pass_expand::execute): ... here. Drop redundant assert.
2464 Adjust comments before the final loop over all ssa names.
2465 Require assigned rtl of parms and results to match exactly.
2466 Reset its attributes to match them, not any other variables in
2468 (expand_debug_expr): Use entry value for PARM's default defs
2469 only iff they have zero nondebug uses.
2470 * cfgexpand.h (parm_in_stack_slot_p): Remove.
2471 (get_rtl_for_parm_ssa_default_def): Remove.
2472 (set_parm_rtl): Declare.
2473 * doc/invoke.texi: Improve wording.
2474 * explow.c (promote_decl_mode): Fix promote_function_mode for
2475 result decls not by reference.
2476 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
2477 bypass TYPE_MODE to get the actual vector mode.
2478 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
2479 2015-08-19's changes as follows. Drop include of
2480 basic-block.h and df.h.
2481 (rtl_for_parm): Remove.
2482 (maybe_reset_rtl_for_parm): Remove.
2483 (parm_in_unassigned_mem_p): Remove.
2484 (use_register_for_decl): Add logic for RESULT_DECLs matching
2485 assign_parms' behavior.
2486 (split_complex_args): Revert.
2487 (assign_parms_augmented_arg_list): Revert. Add comment
2488 referencing the logic above.
2489 (assign_parm_adjust_stack_rtl): Revert.
2490 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
2491 of SET_DECL_RTL. Set up a REG if the parm demands so.
2492 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
2493 calls into a single set_parm_rtl. Set up a temporary RTL
2494 temporarily for expand_assignment.
2495 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
2496 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
2497 (assign_bounds): Revert.
2498 (assign_parms): Revert. Use set_parm_rtl.
2499 (allocate_struct_function): Relayout result and parms of
2500 non-abstruct functions.
2501 (expand_function_start): Revert. Use set_parm_rtl. If the
2502 result is not a hard reg, create a pseudo from the promoted
2503 mode of the default def. Promote static chain mode.
2504 * tree-outof-ssa.c (remove_ssa_form): Drop unused
2505 partition_has_default_def. Set up
2506 partitions_for_parm_default_defs.
2507 (finish_out_of_ssa): Remove partition_has_default_def.
2508 Release partitions_for_parm_default_defs.
2509 * tree-outof-ssa.h (struct ssaexpand): Remove
2510 partition_has_default_def. Add
2511 partitions_for_parm_default_defs.
2512 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
2514 (build_ssa_conflict_graph): Fix conflict-detection of default
2515 defs of even unused default defs of params and results.
2516 (for_all_parms): New.
2517 (create_default_def): New.
2518 (register_default_def): New.
2519 (coalesce_with_default): New.
2520 (create_outofssa_var_map): Create default defs for all parms
2521 and results, and register their partitions. Add GIMPLE_RETURN
2522 operands as coalesce candidates with results. Add default
2523 defs of each parm or result as coalesce candidates with its
2524 other defs. Mark each result def, and each default def of
2525 parms, as used_in_copy.
2526 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
2527 with the ssa names, even anonymous ones. Drop
2528 parm_in_stack_slot_p calls. Require same signedness and
2530 (coalesce_ssa_name): Add coalesce candidates for all defs of
2531 each parm and result, even unused ones.
2532 (parm_default_def_partition_arg): New type.
2533 (set_parm_default_def_partition): New.
2534 (get_parm_default_def_partitions): New.
2535 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
2536 * tree-ssa-live.c (partition_view_init): Regard unused defs of
2537 parms and results as used.
2538 (verify_live_on_entry): Don't error out just because they're
2541 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
2543 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
2544 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
2545 (output_fde): Don't output length for debug_frame on AIX.
2546 (output_call_frame_info): Don't output length for debug_frame on AIX.
2547 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
2548 HAVE_XCOFF_DWARF_EXTRAS.
2549 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
2550 HAVE_XCOFF_DWARF_EXTRAS.
2551 (output_compilation_unit_header): Don't output length on AIX.
2552 (output_pubnames): Don't output length on AIX.
2553 (output_aranges): Delete argument. Compute length locally. Don't
2554 output length on AIX.
2555 (output_line_info): Don't output length on AIX.
2556 (dwarf2out_finish): Don't compute aranges_length.
2557 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
2558 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
2559 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
2560 symbol decoration for AIX.
2561 (rs6000_xcoff_debug_unwind_info): New.
2562 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
2564 (rs6000_xcoff_declare_function_name): Emit different
2565 .function pseudo-op when DWARF2_DEBUG. Don't call
2566 xcoffout_declare_function for DWARF2_DEBUG.
2567 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
2569 * config/rs6000/aix71.h: New.
2570 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
2572 * configure: Regenerate.
2573 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
2576 2015-09-26 Jeff Law <law@redhat.com>
2578 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
2580 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
2583 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
2586 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
2587 undefined behaviour.
2589 * config/cris/cris.md (asrandb): Fix left shift undefined
2591 (asrandw): Likewise.
2593 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
2596 * lra-constarints.c (match_reload): Check presence of the input pseudo
2597 in the output operand.
2599 2015-09-25 Tobias Burnus <burnus@net-b.de>
2601 * doc/invoke.texi (-fsanitize): Minor wording tweak.
2603 2015-09-25 Tobias Burnus <burnus@net-b.de>
2605 * doc/invoke.texi (-fsanitize): Update URLs.
2607 2015-09-25 Teresa Johnson <tejohnson@google.com>
2609 * opts.c (finish_options): Unset -freorder-blocks-and-partition
2610 if not using profile.
2612 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2614 PR pretty-print/67567
2615 * pretty-print.c (pp_string): Add gcc_checking_assert.
2616 * pretty-print.h (output_buffer_append_r): Likewise.
2618 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
2621 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
2622 addr2 individually. Don't emit logical or insn if one is known to
2623 be aligned approriately.
2624 (sh_expand_cmpnstr): Likewise.
2626 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
2628 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
2629 __builtin_aarch64_fp[sc]r arguments into a register.
2631 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
2633 * config.gcc (x86_archs): Replace lakemount with lakemont.
2634 (with_cpu): Likewise.
2635 (with_arch): Likewise.
2636 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
2637 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
2638 __tune_lakemount__ with __tune_lakemont__.
2639 * config/i386/i386.c (lakemount_cost): Renamed to ...
2640 (lakemont_cost): This.
2641 (m_LAKEMOUNT): Renamed to ...
2643 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
2644 (processor_target_table): Replace "lakemount" with "lakemont".
2645 (processor_alias_table): Likewise.
2646 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
2648 (ix86_adjust_cost): Likewise.
2649 (ia32_multipass_dfa_lookahead): Likewise.
2650 * config/i386/i386.h (processor_type): Likewise.
2651 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
2652 * doc/invoke.texi: Replace lakemount with lakemont. Replace
2653 Lakemount with Lakemont.
2655 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
2657 * config.gcc (x86_archs): Replace iamcu with lakemount.
2658 (with_cpu): Likewise.
2659 (with_arch): Likewise.
2660 * doc/invoke.texi: Likewise.
2661 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
2662 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
2663 __tune_iamcu__ with __tune_lakemount__.
2664 * config/i386/i386.c (iamcu_cost): Renamed to ...
2665 (lakemount_cost): This.
2666 (m_IAMCU): Renamed to ...
2667 (m_LAKEMOUNT): This.
2668 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
2669 (processor_target_table): Replace "iamcu" with "lakemount".
2670 (processor_alias_table): Likewise.
2671 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
2672 PROCESSOR_LAKEMOUNT.
2673 (ix86_adjust_cost): Likewise.
2674 (ia32_multipass_dfa_lookahead): Likewise.
2675 * config/i386/i386.h (processor_type): Likewise.
2676 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
2678 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
2680 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
2681 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
2683 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
2684 (pa_expand_compare_and_swap_loop): New.
2685 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
2686 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
2687 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
2688 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
2689 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
2692 2015-09-24 Michael Collison <michael.collison@linaro.org>
2695 * read-md.c (read_name): Allow mode iterators inside angle
2696 brackets in rtl expressions.
2698 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
2701 * ira-color.c (update_allocno_cost): Add parameter.
2702 (update_costs_from_allocno): Decrease conflict cost. Pass the new
2705 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2708 * opts-common.c (prune_options): Discard all -fdiagnostics-color
2709 but the last one, which is moved to the front to be processed
2711 * opts.c (enable_warning_as_error): Reject options that do not
2714 2015-09-24 Jiong Wang <jiong.wang@arm.com>
2716 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
2718 2015-09-24 Jiong Wang <jiong.wang@arm.com>
2720 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
2721 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
2722 (aarch64_cannot_force_const_mem): Likewise.
2723 (aarch64_classify_address): Likewise.
2724 (aarch64_classify_symbolic_expression): Likewise.
2725 (aarch64_print_operand): Likewise.
2726 (aarch64_classify_symbol): Likewise.
2727 (aarch64_mov_operand_p): Likewise.
2728 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
2729 (aarch64_mov_operand): Likewise.
2731 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
2733 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
2734 for info->spe_gp_size.
2736 2015-09-24 Richard Biener <rguenther@suse.de>
2739 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
2742 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
2744 * tree-object-size.c (plus_stmt_object_size)
2745 (cond_expr_object_size): Change the formal parameters from gimple
2747 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
2748 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
2749 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
2751 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2753 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
2754 Check for ld -type pie on Solaris 11.x and 12.
2755 * configure: Regenerate.
2756 * config.in: Regenerate.
2758 * gcc.c (LD_PIE_SPEC): Allow redefinition.
2760 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
2761 (STARTFILE_SPEC): Use it.
2762 (ENDFILE_CRTEND_SPEC): Define.
2763 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
2764 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
2765 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
2766 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
2767 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
2768 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
2769 (ENDFILE_ARCH_SPEC): Define.
2770 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
2772 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2774 * configure.ac (gcc_cv_solaris_crts): New test.
2775 * configure. Regenerate.
2776 * config.in: Regenerate.
2777 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
2778 HAVE_SOLARIS_CRTS variant.
2780 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2782 * tree-inline.h (count_insns_seq): Delete prototype.
2783 (estimate_num_insns_seq): Define prototype.
2784 * tree-inline.c (count_insns_seq): Delete.
2785 (estimate_num_insns_seq): Remove static qualifier.
2786 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
2787 with estimate_num_insns_seq.
2789 2015-09-24 Richard Biener <rguenther@suse.de>
2791 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
2793 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
2794 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
2796 (ao_ref_init_from_vn_reference): Record clique and base in the
2798 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
2800 2015-09-24 Richard Biener <rguenther@suse.de>
2802 PR tree-optimization/48885
2803 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
2804 as not including any restrict tags from other pointers.
2806 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
2808 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
2809 character when appending to offload_targets.
2811 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
2812 offload targets by commas, not colons.
2813 * config.in: Regenerate.
2814 * configure: Likewise.
2815 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
2816 instead of setting up the default offload targets here...
2817 (process_command): ..., do it here.
2819 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
2820 targets are separated by commas.
2821 * config.h.in: Regenerate.
2823 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
2824 Nathan Sidwell <nathan@codesourcery.com>
2826 * omp-low.h (omp_reduction_init_op): Declare.
2827 * omp-low.c (omp_reduction_init_op): New, broken out of ...
2828 (omp_reduction_init): ... here. Call it.
2829 * tree-parloops.c (initialize_reductions): Use
2830 omp_reduction_init_op.
2832 2015-09-23 Richard Biener <rguenther@suse.de>
2835 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
2836 undefined overflow unless they will cancel out.
2838 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
2840 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
2843 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2846 * opts.h (write_langs): Declare.
2847 * opts-global.c (write_langs): Make it extern.
2849 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
2852 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
2853 overlapping regs when matching the pattern.
2855 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
2857 * config/aarch64/aarch64-simd.md
2858 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
2859 (aarch64_float_truncate_hi_v4sf_le): New.
2860 (aarch64_float_truncate_hi_v4sf_be): Likewise.
2862 2015-09-23 Richard Biener <rguenther@suse.de>
2864 * tree-ssa-structalias.c (intra_create_variable_infos): Build
2865 representatives for all restrict qualified pointer destinations.
2867 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
2869 * config/i386/i386.md (define_code_attr mshift): New.
2870 (define_mode_iterator SWI1248_AVX512BW): Rename ...
2871 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
2873 (define_insn "*k<logic><mode>"): Use new iterator name.
2874 (define_insn "*<mshift><mode>3"): New.
2876 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
2879 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
2880 mark the block as accessible.
2882 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
2884 * function.c (thread_prologue_and_epilogue_insns): Delete
2885 orig_entry_edge argument to try_shrink_wrapping.
2886 * shrink-wrap.c (can_get_prologue): New function.
2887 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
2888 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
2889 can_get_prologue where needed. Remove code that finds a single
2890 edge for the prologue. Remove code that tests if any reg clobbered
2891 by the prologue is live on the prologue edge. Remove code that finds
2892 the new prologue edge after duplicating blocks. Make a new prologue
2894 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
2896 2015-09-22 Jeff Law <law@redhat.com>
2898 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
2901 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
2903 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
2904 -Wtemplates, -Wnamespaces): Document.
2906 2015-09-22 Tom de Vries <tom@codesourcery.com>
2908 PR tree-optimization/67671
2909 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
2910 pointer references as restrict.
2912 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
2914 * config/nios2/nios2.c (nios2_legitimize_address): When handling
2915 'reg + reloc' cases, allow first operand to be non-REG, and use
2916 force_reg() to enforce address pattern.
2918 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
2921 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
2922 (define_mode_iterator VI12_AVX_AVX512F): New.
2923 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
2924 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
2925 (define_insn "*<code><mode>3"): ... Into new pattern using
2926 VI12_AVX_AVX512F iterators without masking.
2928 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
2930 * config.gcc: Support "skylake-avx512".
2931 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2932 PROCESSOR_SKYLAKE_AVX512.
2933 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
2934 (processor_target_table): Add "skylake-avx512".
2935 (PTA_SKYLAKE_AVX512): Define.
2936 (ix86_option_override_internal): Add "skylake_avx512".
2937 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
2938 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
2939 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
2940 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
2941 * doc/invoke.texi (skylake-avx512): New.
2943 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
2945 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
2947 (define_insn "kunpcksi"): Ditto.
2948 (define_insn "kunpckdi"): Ditto.
2950 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
2952 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
2953 iterator instead of fixed modes.
2955 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
2957 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
2959 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
2960 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
2961 out_result. Update to support update-fetch operations.
2962 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
2963 Adjust for change to aarch64_gen_atomic_ldop.
2964 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
2965 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
2966 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
2967 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
2968 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
2970 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
2972 * config/aarch64/aarch64-protos.h
2973 (aarch64_atomic_ldop_supported_p): Declare.
2974 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
2975 (enum aarch64_atomic_load_op_code): New.
2976 (aarch64_emit_atomic_load_op): New.
2977 (aarch64_gen_atomic_ldop): Update to support load-operate
2979 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
2981 (aarch64_atomic_<atomic_optab><mode>): New.
2982 (aarch64_atomic_<atomic_optab><mode>_lse): New.
2983 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
2984 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
2985 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
2987 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
2989 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
2990 (UNSPECV_ATOMIC_LDOP_OR): New.
2991 (UNSPECV_ATOMIC_LDOP_BIC): New.
2992 (UNSPECV_ATOMIC_LDOP_XOR): New.
2993 (UNSPECV_ATOMIC_LDOP_PLUS): New.
2996 (aarch64_atomic_load<atomic_ldop><mode>): New.
2998 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3000 * config/aarch64/aarch64.md
3001 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
3004 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3006 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3008 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
3009 (aarch64_gen_atomic_ldop): New.
3010 (aarch64_split_atomic_op): Fix whitespace and add a comment.
3011 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
3012 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
3013 (atomic_exchange<mode>): Replace with an expander.
3014 (aarch64_atomic_exchange<mode>): New.
3015 (aarch64_atomic_exchange<mode>_lse): New.
3016 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
3017 (aarch64_atomic_swp<mode>): New.
3019 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3021 * tree-inline.c (expand_call_inline): Use inform for extra note.
3022 Do not give a note with UNKNOWN_LOCATION.
3023 Replace input_location with gimple_location (stmt).
3024 Use true/false instead of TRUE/FALSE.
3026 2015-09-22 Tom de Vries <tom@codesourcery.com>
3028 PR tree-optimization/67666
3029 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
3030 with single field non-conservative.
3032 2015-09-21 David S. Miller <davem@davemloft.net>
3036 2015-09-11 David S. Miller <davem@davemloft.net>
3038 * config/sparc/constraints.md: Make "U" constraint a real register
3040 * config/sparc/sparc.c (TARGET_LRA_P): Define.
3041 (D_MODES, DF_MODES): Add missing cast.
3042 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
3043 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
3044 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
3046 * config/sparc/sparc.h (PROMOTE_MODE): Define.
3047 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
3048 provide these insn when flag_pic.
3050 2015-09-17 David S. Miller <davem@davemloft.net>
3052 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
3054 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
3056 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
3057 (HARD_REGNO_CALLER_SAVE_MODE): Define.
3058 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
3059 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
3060 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
3061 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
3062 provide when flag_pic.
3064 2015-09-21 Jeff Law <law@redhat.com>
3066 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
3069 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3071 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
3073 2015-09-21 Richard Biener <rguenther@suse.de>
3075 * passes.c (rest_of_decl_compilation): Do not call
3076 dwarf2out_early_global_decl for aliases.
3078 2015-09-21 Richard Biener <rguenther@suse.de>
3081 * dwarf2out.c (add_location_or_const_value_attribute): Remove
3082 attribute parameter. Early exit if either DW_AT_const_value
3083 or DW_AT_location are present already.
3084 (gen_variable_die): Adjust caller.
3085 (dwarf2out_late_global_decl): Likewise.
3087 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3090 * config/sh/sh.c (sh_remove_overlapping_post_inc,
3091 sh_peephole_emit_move_insn): Add new functions.
3092 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
3093 sh_peephole_emit_move_insn): Declere them.
3094 * config/sh/sh.md: Use them in various peephole2 patterns.
3096 2015-09-21 Richard Biener <rguenther@suse.de>
3099 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
3100 address with -fno-delete-null-pointer-checks.
3102 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
3104 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
3105 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
3106 (reduc_uplus_v16qi): Remove.
3108 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
3109 (reduc_<VEC_reduc_name>_v2df): Remove.
3110 (reduc_<VEC_reduc_name>_v4sf): Remove.
3111 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
3113 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
3114 gen_ function by removing * prefix.
3115 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
3117 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3120 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3121 Print i_bound without converting it to a tree.
3123 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
3125 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
3126 operands[4] operands[5] swap with std::swap, removed tmp variable.
3127 (arm_evpc_neon_vzip): Replaced in0/in1 and
3128 out0/out1 swaps with std::swap, removed x variable.
3129 (arm_evpc_neon_vtrn): Replaced in0/int1 and
3130 out0/out1 swaos with std::swap, removed x variable.
3131 (arm_expand_vec_perm_const_1): Replaced
3132 d->op0/d->op1 swap with std::swap, removed x variable.
3133 (arm_evpc_neon_vuzp): Replaced in0/in1 and
3134 out0/out1 swaps with std::swap, removed x variable.
3136 2015-09-21 Jonathan Yong <10walls@gmail.com>
3138 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
3139 sysroot/usr/lib/32api for additional win32 libraries,
3140 fixes failing Cygwin bootstrapping.
3142 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3144 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
3146 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3149 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
3150 (*mov_t_msb_neg): Rewrite negc pattern.
3152 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3154 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
3155 immediate generation code.
3157 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3159 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
3160 redundant immediate generation code.
3162 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3164 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
3165 (AARCH64_NUM_BITMASKS): Remove.
3166 (aarch64_bitmasks_cmp): Remove.
3167 (aarch64_build_bitmask_table): Remove.
3169 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3171 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
3172 slow immediate matching loops with a faster algorithm.
3174 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3176 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
3179 2015-09-20 Jeff Law <law@redhat.com>
3181 PR tree-optimization/47679
3182 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
3183 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
3184 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
3185 (thread_through_normal_block): Use record_temporary_equivalences.
3187 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
3189 * coretypes.h (gimple): Change typedef to be a forward declaration.
3190 * gimple.h (gimple_statement_base): rename to gimple.
3191 * (all functions and types using gimple): Adjust.
3194 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
3195 David Edelsohn <dje.gcc@gmail.com>
3197 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
3198 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3199 (EH_FRAME_THROUGH_COLLECT2): Define.
3200 (EH_TABLES_CAN_BE_READ_ONLY): Define.
3201 (ASM_OUTPUT_DWARF_PCREL): Define.
3202 (ASM_OUTPUT_DWARF_DATAREL): Define.
3204 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
3206 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
3209 2015-09-18 Jeff Law <law@redhat.com>
3211 PR tree-optimization/47679
3212 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
3214 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
3215 object. Update constructor.
3216 (pass_dominator::execute): Corresponding chagnes to declaration
3217 and initialization of avail_exprs_stack. Update constructor call
3218 for dom_opt_dom_walker object.
3219 (lookup_avail_expr, record_cond): Accept additional argument. Pass
3220 it down to children as needed.
3221 (record_equivalences_from_incoming_edge): Likewise.
3222 (eliminate_redundant_computations): Likewise.
3223 (record_equivalences_from_stmt): Likewise.
3224 (simplify_stmt_for_jump_threading): Likewise.
3225 (record_temporary_equivalences): Likewise.
3226 (optimize_stmt): Likewise.
3227 (dom_opt_dom_walker::thread_across_edge): Update access to
3228 avail_exprs_stack object and pass it to children as needed.
3229 (dom_opt_dom_walker::before_dom_children): Similarly.
3230 (dom_opt_dom_walker::after_dom_children): Similarly.
3231 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
3232 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
3233 Add avail_expr_stack argument. Pass it to children as needed.
3234 (dummy_simplify): Likewise.
3235 (simplify_control_stmt_condition): Likewise.
3236 (thread_around_empty_blocks): Likewise.
3237 (thread_through_normal_block): Likewise.
3238 (thread_across_edge): Likewise.
3239 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
3240 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
3242 PR tree-optimization/47679
3243 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
3245 (dom_opt_dom_walker): New private member holding the const_and_copies
3246 object. Update constructor.
3247 (pass_dominator::execute): Corresponding changes to declaration
3248 and initialization of const_and_copies. Update constructor call
3249 for the dom_opt_dom_walker object.
3250 (record_temporary_equivalences): Accept const_and_copies argument
3251 pass it down to children as needed.
3252 (record_equality): Likewise.
3253 (record_equivalences_from_incoming_edge): Likewise.
3254 (cprop_into_successor_phis, optimize_stmt): Likewise.
3255 (eliminate_redundant_computations): Likewise.
3256 (dom_opt_dom_walker::thread_across_edge): Update access to
3257 const_and_copies object and pass it to children as needed.
3258 (dom_opt_dom_walker::before_dom_children): Similarly.
3259 (dom_opt_dom_walker::after_dom_children): Similarly.
3261 PR tree-optimization/47679
3262 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
3263 it into the avail_exprs_stack class.
3264 (pass_dominator::execute): Corresponding changes to declaration
3265 and initialization of avail_exprs. Pass avail_exprs to
3266 dump_dominator_optimization_stats.
3267 (record_cond): Extract avail_exprs from avail_exprs_stack.
3268 (lookup_avail_expr): Similarly.
3269 (htab_staticstics): Remove unnecessary prototype. Move to earlier
3271 (dump_dominator_optimization_stats): Make static and prototype.
3272 Add argument for the hash table to dump.
3273 (debug_dominator_optimization_stats): Remove.
3274 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
3276 (debug_dominator_optimization_stats): Similarly.
3277 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
3278 "void" in prototype for pop_to_marker method. Add accessor method
3279 for the underlying avail_exprs table.
3281 * tree-ssa-threadedge.c: Remove trailing whitespace.
3283 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
3285 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
3287 (pa_ldil_cint_p): Likewise.
3288 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
3289 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
3291 * config/pa/pa.md: Likewise.
3293 2015-09-18 David Malcolm <dmalcolm@redhat.com>
3295 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
3296 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
3297 (diagnostic_show_locus): Likewise.
3298 (diagnostic_print_caret_line): Likewise.
3299 * diagnostic-show-locus.c: New file.
3301 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
3303 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
3304 "back" parameter. Declare label in #if block.
3306 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
3309 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
3310 the address to a register.
3312 2015-09-18 Jeff Law <law@redhat.com>
3314 PR tree-optimization/47679
3315 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
3316 * tree-ssa-dom.c: Remove unnecessary header includes.
3317 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
3318 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
3319 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
3320 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
3321 (pass_phi_only_cprop::execute): Likewise.
3322 (make_pass_phi_only_cprop): Likewise.
3323 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
3324 uses of file scoped statics by passing the required objects
3325 as parameters wherever needed.
3327 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
3328 David Edelsohn <dje.gcc@gmail.com>
3330 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
3331 EH_FRAME_THROUGH_COLLECT2.
3332 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
3334 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
3335 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
3336 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
3337 * except.c (switch_to_exception_section): Use a read-only section
3338 even if EH_FRAME_SECTION_NAME is undefined.
3339 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
3340 * collect2.c (write_c_file_stat): Provide dbase on AIX.
3341 (scan_prog_file): Don't export __dso_handle nor
3343 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3344 (EH_TABLES_CAN_BE_READ_ONLY): Define.
3345 (ASM_OUTPUT_DWARF_PCREL): Define.
3346 (ASM_OUTPUT_DWARF_DATAREL): Define.
3347 (EH_FRAME_THROUGH_COLLECT2): Define.
3348 (EH_FRAME_IN_DATA_SECTION): Delete.
3349 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
3350 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
3352 (rs6000_asm_output_dwarf_datarel): Declare.
3353 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
3354 (rs6000_aix_asm_output_dwarf_datarel): New.
3355 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
3356 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
3357 (EH_FRAME_THROUGH_COLLECT2): Define.
3358 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
3359 (EH_FRAME_THROUGH_COLLECT2): Define.
3360 (EH_TABLES_CAN_BE_READ_ONLY): Define.
3361 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
3362 (EH_FRAME_THROUGH_COLLECT2): New.
3363 (ASM_OUTPUT_DWARF_DATAREL): New.
3364 * doc/tm.texi: Regenerate.
3366 2015-09-18 Richard Biener <rguenther@suse.de>
3368 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
3369 we're in early phase.
3370 (schedule_generic_params_dies_gen): Likewise.
3371 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
3372 work as possible, retaining unhandled cases.
3373 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
3374 clear out generic_type_instances at the end.
3375 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
3376 (dwarf2out_early_finish): ... here. Do most of
3377 gen_remaining_tmpl_value_param_die_attribute here.
3379 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
3381 PR tree-optimization/67283
3382 * tree-sra.c (type_consists_of_records_p): Rename to...
3383 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3384 (completely_scalarize_record): Rename to...
3385 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3386 (scalarize_elem): New.
3387 (analyze_all_variable_accesses): Follow renamings.
3389 2015-09-18 Richard Biener <rguenther@suse.de>
3391 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
3394 2015-09-18 Richard Biener <rguenther@suse.de>
3396 PR tree-optimization/66142
3397 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
3398 treat MEM[&x] and x the same.
3399 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
3400 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
3401 when we simplified sth.
3402 (vn_reference_maybe_forwprop_address): Likewise.
3403 (valueize_refs_1): When we simplified through
3404 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
3405 set valueized_anything to true.
3406 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
3407 one ref kills the other instead of just a offset-based test.
3408 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
3409 for the operand_equal_p test to compare bases and also compare
3412 2015-09-17 Christian Bruel <christian.bruel@st.com>
3414 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
3416 2015-09-17 Richard Henderson <rth@redhat.com>
3419 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
3420 pointers that encode the alignment of the object.
3422 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
3424 PR rtl-optimization/66790
3425 * df-problems.c (LIVE): Amend documentation.
3427 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
3429 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
3431 (GTFILES): Replace optabs.c with optabs-libfunc.c.
3432 * genopinit.c (main): Add an include guard to insn-opinit.h.
3433 Protect the rtx_code parts with NUM_RTX_CODE.
3434 * optabs.h: Split parts out to...
3435 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
3436 * optabs.c: Split parts out to...
3437 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
3438 * cilk-common.c: Include optabs-query.h rather than optabs.h.
3439 * fold-const.c: Likewise.
3440 * target-globals.c: Likewise.
3441 * tree-if-conv.c: Likewise.
3442 * tree-ssa-forwprop.c: Likewise.
3443 * tree-ssa-loop-prefetch.c: Likewise.
3444 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
3445 Remove unncessary include files.
3446 * tree-ssa-phiopt.c: Likewise.
3447 * tree-ssa-reassoc.c: Likewise.
3448 * tree-switch-conversion.c: Likewise.
3449 * tree-vect-data-refs.c: Likewise.
3450 * tree-vect-generic.c: Likewise.
3451 * tree-vect-loop.c: Likewise.
3452 * tree-vect-patterns.c: Likewise.
3453 * tree-vect-slp.c: Likewise.
3454 * tree-vect-stmts.c: Likewise.
3455 * tree-vrp.c: Likewise.
3456 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
3457 rather than optabs.h.
3458 * expr.c: Include optabs-tree.h.
3459 * function.c: Likewise.
3461 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
3464 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
3465 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
3466 * config/arm/arm.c: Include common/common-target.h.
3467 (use_return_insn): Return 0 if the static chain register was saved
3468 above a non-APCS frame.
3469 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
3470 (struct scratch_reg): New.
3471 (get_scratch_register_on_entry): New function.
3472 (release_scratch_register_on_entry): Likewise.
3473 (arm_emit_probe_stack_range): Likewise.
3474 (output_probe_stack_range): Likewise.
3475 (arm_expand_prologue): Factor out code dealing with the IP register
3476 for nested function and adjust it for stack checking.
3477 Invoke arm_emit_probe_stack_range if static builtin stack checking
3479 (thumb1_expand_prologue): Sorry out if static builtin stack checking
3481 (arm_expand_epilogue): Add the saved static chain register, if any, to
3482 the amount of pre-pushed registers to pop.
3483 (arm_frame_pointer_required): Return true if static stack checking is
3484 enabled and we want to catch the exception with the EABI unwinder.
3485 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
3486 (UNSPEC_PROBE_STACK_RANGE): Likewise.
3487 * config/arm/arm.md (probe_stack): New insn.
3488 (probe_stack_range): Likewise.
3490 2015-09-17 Richard Biener <rguenther@suse.de>
3492 * genmatch.c (parser::parse_expr): Improve error message
3493 for mis-placed flags.
3495 2015-09-17 Richard Biener <rguenther@suse.de>
3497 * passes.c (rest_of_decl_compilation): Always call early_global_decl
3498 debug hook when we created a varpool node.
3499 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
3500 dwarf2out_early_global_decl, when not just add location or
3501 value attributes to existing DIEs.
3503 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
3505 * config/aarch64/aarch64.md (copysigndf3): New.
3506 (copysignsf3): Likewise.
3508 2015-09-17 David S. Miller <davem@davemloft.net>
3510 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
3511 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
3512 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
3513 (HARD_REGNO_CALLER_SAVE_MODE): Define.
3514 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
3515 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
3516 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
3517 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
3518 provide when flag_pic.
3520 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
3522 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
3523 object_allocator change.
3525 2015-09-17 Bin Cheng <bin.cheng@arm.com>
3527 PR tree-optimization/66388
3528 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
3529 (dump_iv): Dump no_overflow information.
3530 (alloc_iv): Initialize new field for struct iv.
3531 (mark_bivs): Count number of no_overflow bivs.
3532 (find_deriving_biv_for_expr, record_biv_for_address_use): New
3534 (idx_find_step): Call new functions above.
3535 (add_candidate_1, add_candidate): New paramter.
3536 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
3537 (get_computation_aff): Simplify convertion of cand for BIV.
3538 (get_computation_cost_at): Step cand's base if necessary.
3540 2015-09-17 Bin Cheng <bin.cheng@arm.com>
3542 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
3544 (tree_simplify_using_condition): Ditto.
3545 (simplify_using_initial_conditions): Ditto.
3546 (loop_exits_before_overflow): Pass new argument to function
3547 simplify_using_initial_conditions. Remove case for type conversions
3549 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
3551 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
3552 in iv base using loop initial conditions.
3554 2015-09-16 Jeff Law <law@redhat.com>
3556 PR tree-optimization/47679
3557 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
3558 (free_all_edge_infos): Use it.
3559 (allocate_edge_info): Free preexisting edge info data.
3560 (pass_dominator::execute): Set up initial edge info structures.
3561 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
3563 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
3564 If non-null, then push/pop markers appropriately.
3565 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
3566 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
3569 2015-09-16 James Bowman <james.bowman@ftdichip.com>
3571 * config/ft32/ft32.c: Fix the memory address space predicate.
3573 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
3576 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
3577 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3579 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3581 * toplev.h (check_global_declaration): Remove declaration.
3582 * toplev.c (check_global_declaration): Move to ...
3583 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
3584 (analyze_functions): Update call.
3586 2015-09-16 David S. Miller <davem@davemloft.net>
3588 * lra-constraints.c (simplify_operand_subreg): Do not assume that
3589 lowpart of a SUBREG has offset zero.
3591 2015-09-16 Jeff Law <law@redhat.com>
3593 PR tree-optimization/47679
3594 * tree-ssa-dom.c (enum expr_kind): Moved from here to
3595 tree-ssa-scopedtables.h.
3596 (struct hashable_expr, class expr_hash_elt): Likewise.
3597 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
3598 Move associated methods into tree-ssa-scopedtables.c.
3599 (avail_expr_hash, initialize_expr_from_cond): Similarly.
3600 (hashable_expr_equal_p, add_expr_commutative): Likewise.
3601 (add_hashable_expr): Likewise.
3602 (record_cond): Delete element directly.
3603 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
3604 private copy ctor and assignment operator methods.
3605 (expr_elt_hasher): Inline trivial methods.
3606 (initialize_expr_from_cond): Prototype.
3607 * tree-ssa-scopedtables.c: Add necessary includes, functions and
3608 methods that were previously in tree-ssa-dom.c. Improve various
3611 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
3613 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
3615 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
3618 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
3621 2015-09-16 Richard Biener <rguenther@suse.de>
3624 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
3625 location of possibly shared trees.
3627 2015-09-16 Richard Biener <rguenther@suse.de>
3630 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
3632 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
3634 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
3635 offset and size computations instead of HOST_WIDE_INT.
3637 2015-09-16 Richard Biener <rguenther@suse.de>
3640 * fold-const.c (extract_muldiv_1): Properly extend multiplication
3641 result before builting a tree via wide_int_to_tree.
3643 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3645 * Makefile.in: Add memory-block.cc
3646 (pool_allocator::initialize): Use fixed block size.
3647 (pool_allocator::release): Use memory_block_pool.
3648 (pool_allocator::allocate): Likewise.
3649 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
3651 * cfg.c (initialize_original_copy_tables): Likewise.
3652 * cselib.c (elt_list_pool, elt_loc_list_pool,
3653 cselib_val_pool): Likewise.
3654 * df-problems.c (df_chain_alloc): Likewise.
3655 * df-scan.c (df_scan_alloc): Likewise.
3656 * dse.c (cse_store_info_pool, rtx_store_info_pool,
3657 read_info_type_pool, insn_info_type_pool, bb_info_pool,
3658 group_info_pool, deferred_change_pool): Likewise.
3659 * et-forest.c (et_nodes, et_occurrences): Likewise.
3660 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
3661 ipcp_agg_lattice_pool): Likewise.
3662 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
3663 * ipa-profile.c (histogram_pool): Likewise.
3664 * ipa-prop.c (ipa_refdesc_pool): Likewise.
3665 * ira-build.c (live_range_pool, allocno_pool, object_pool,
3666 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
3667 * ira-color.c (update_cost_record_pool): Likewise.
3668 * lra-lives.c (lra_live_range_pool): Likewise.
3669 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
3670 * memory-block.cc: New file.
3671 * memory-block.h: New file.
3672 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
3673 * sched-deps.c (sched_deps_init): Likewise.
3674 * sel-sched-ir.c (sched_lists_pool): Likewise.
3675 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
3676 * tree-sra.c (access_pool): Likewise.
3677 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3678 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
3679 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
3680 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3681 * tree-ssa-strlen.c (strinfo_pool): Likewise.
3682 * tree-ssa-structalias.c (variable_info_pool): Likewise.
3683 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
3684 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
3686 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
3688 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
3690 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
3693 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
3695 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
3696 to pass TLS call argument, according to current ABI.
3697 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
3698 callx0 for TLS call, according to current ABI.
3700 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
3702 * tree-eh.c (lower_try_finally_dup_block): Clear location information
3703 on stack restore statements.
3704 (decide_copy_try_finally): Do not consider a stack restore statement as
3705 coming from sources.
3707 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
3709 * config/alpha/alpha.c (alpha_expand_block_clear): Use
3710 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
3712 2015-09-15 Jeff Law <law@redhat.com>
3714 PR tree-optimization/47679
3715 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
3716 methods and private members.
3717 (avail_exprs_stack): Similarly. Change type of global
3718 from a pair of expr_hash_elt_t to the new class.
3719 (expr_elt_hasher::hash): Corresponding changes.
3720 (expr_elt_hasher::equal): Similarly.
3721 (avail_expr_hash): Similarly.
3722 (pass_dominator::execute): Similarly.
3723 (dom_opt_dom_walker::thread_across_edge): Similarly.
3724 (record_cond): Similarly.
3725 (dom_opt_dom_walker::before_dom_children): Similarly.
3726 (dom_opt_dom_walker::after_dom_children): Similarly.
3727 (lookup_avail_expr): Likewise.
3728 (initialize_hash_element): Now a expr_hash_elt constructor.
3729 (initialize_hash_element_from_expr): Similarly.
3730 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
3731 (free_expr_hash_elt): Call dtor for the element.
3732 (remove_local_expressions_from_table): Now the "pop_to_marker"
3733 method in the available_exprs_stack class.
3734 (avail_expr_stack::record_expr): Method factored out.
3735 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
3737 (hashable_expr_equal_p): Fix formatting.
3739 2015-09-15 David Malcolm <dmalcolm@redhat.com>
3741 * input.h (location_get_source_line): Drop "expanded_location"
3742 param in favor of a file and line number.
3743 * input.c (location_get_source_line): Likewise.
3744 (dump_location_info): Update for change in signature of
3745 location_get_source_line.
3746 * diagnostic.c (diagnostic_print_caret_line): Likewise.
3748 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
3750 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
3751 Bump to 4KB for SJLJ exceptions.
3752 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
3753 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
3754 * doc/tm.texi: Regenerate.
3756 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3758 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
3759 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
3762 2015-09-15 Richard Biener <rguenther@suse.de>
3764 PR tree-optimization/67470
3765 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
3766 structure for PHI hoisting by inserting a forwarder block
3769 2015-09-15 Christian Bruel <christian.bruel@st.com>
3771 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
3772 (arm_option_print): New function.
3774 2015-09-15 Christian Bruel <christian.bruel@st.com>
3777 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
3778 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
3779 Remove flags parameter.
3780 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
3781 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
3782 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
3783 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
3784 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
3785 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
3786 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
3787 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
3789 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
3791 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
3793 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
3794 AARCH64_VALID_SIMD_DREG_MODE.
3796 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
3798 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
3799 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
3800 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
3801 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
3802 aarch64_ld4_lane<mode>): Combine together, making...
3803 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
3804 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
3805 aarch64_st4_lane<mode>): Combine together, making...
3806 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
3807 * config/aarch64/iterators.md (nregs): Add comment.
3809 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
3811 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
3812 Change operand mode from <V_TWO_ELEM> to BLK.
3813 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
3814 (aarch64_vec_store_lanesoi_lane<mode): Likewise
3815 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3816 (aarch64_ld2_lane<mode>): Likewise.
3817 (aarch64_st2_lane<VQ:mode>): Likewise.
3818 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
3820 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
3822 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
3823 Change operand mode from <V_FOUR_ELEM> to BLK.
3824 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
3825 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
3826 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3827 (aarch64_ld4_lane<mode>): Likewise.
3828 (aarch64_st4_lane<mode>): Likewise.
3829 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
3831 2015-09-15 Richard Biener <rguenther@suse.de>
3834 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
3835 transfer EH info from old to new stmt.
3836 (replace_call_with_value): Likewise.
3837 (replace_call_with_call_and_fold): Likewise.
3838 (gimple_fold_builtin_memory_op): Likewise.
3839 (gimple_fold_builtin_memset): Likewise.
3840 (gimple_fold_builtin_stpcpy): Likewise.
3841 (gimple_fold_call): Likewise.
3843 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
3845 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
3847 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
3848 (aarch64_simd_intEI_type_node): Likewise.
3849 (aarch64_simd_builtin_std_type): Remove EImode case.
3850 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
3851 * config/aarch64/aarch64-modes.def: Remove EImode.
3853 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
3855 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
3856 Change operand mode from <V_THREE_ELEM> to BLK.
3857 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
3858 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
3859 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3860 (aarch64_ld3_lane<mode>): Likewise.
3861 (aarch64_st3_lane<mode>): Likewise.
3862 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
3864 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
3866 * config/aarch64/aarch64-simd.md
3867 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
3868 Change all TImode operands to BLKmode.
3869 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
3870 Change all EImode operands to BLKmode.
3871 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
3872 Change all OImode operands to BLKmode.
3874 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
3875 and call set_mem_size.
3876 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
3878 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
3880 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
3882 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
3884 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
3886 (vec_store_lanesci_lane<mode>): Rename to...
3887 (aarch64_vec_store_lanesci_lane<mode>): ...this.
3889 (vec_store_lanesxi_lane<mode>): Rename to...
3890 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
3892 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
3893 aarch64_st4_lane<mode>): Follow renaming.
3895 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3897 * config/s390/s390.c (s390_const_operand_ok): Add missing
3900 2015-09-15 Richard Biener <rguenther@suse.de>
3903 * lto-streamer.h (lto_location_cache::current_sysp): Properly
3905 * lto-streamer-out.c (clear_line_info): Likewise.
3907 2015-09-15 Richard Biener <rguenther@suse.de>
3909 * doc/match-and-simplify.texi: Fix wording.
3911 2015-09-15 Bin Cheng <bin.cheng@arm.com>
3913 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
3914 unnecessary type conversion in op1.
3916 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3918 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
3919 (dup_block_and_redirect): Delete function.
3920 (can_dup_for_shrink_wrapping): New function.
3921 (fix_fake_fallthrough_edge): New function.
3922 (try_shrink_wrapping): Rewrite function.
3923 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
3925 2015-09-14 Rich Felker <dalias@libc.org>
3927 * configure.ac: Change target pattern for sh TLS support
3928 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
3929 * configure: Regenerate.
3931 2015-09-14 Jeff Law <law@redhat.com>
3933 PR tree-optimization/47679
3934 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
3935 type rather than void *.
3937 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3940 * diagnostic.c (diagnostic_initialize): Do not set
3941 some_warnings_are_errors.
3942 (diagnostic_finish): Use DK_WERROR count instead.
3943 (diagnostic_report_diagnostic): Do not set
3944 some_warnings_are_errors.
3945 * diagnostic.h (struct diagnostic_context): Remove
3946 some_warnings_are_errors.
3948 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
3950 * config/sparc/predicates.md (const_all_ones_operand): Use
3951 CONSTM1_RTX to simplify definition.
3953 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
3956 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
3959 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
3961 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
3962 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
3963 OPT_fshow_column to handled saved option cases.
3964 (append_compiler_options): Do not skip the above added options.
3966 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3969 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
3970 nopcrelative_literal_loads.
3971 (aarch64_classify_address): Likewise.
3972 (aarch64_constant_pool_reload_icode): Define.
3973 (aarch64_secondary_reload): Handle secondary reloads for
3975 (aarch64_override_options): Handle nopcrelative_literal_loads.
3976 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
3977 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
3979 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3980 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
3981 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
3983 * doc/invoke.texi (mpc-relative-literal-loads): Document.
3985 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
3988 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
3989 sync_compare_and_swap_optab libcall to target_oval.
3991 2015-09-14 Marek Polacek <polacek@redhat.com>
3993 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
3995 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
3997 2015-09-11 Mark Wielaard <mjw@redhat.com>
4000 * toplev.c (check_global_declaration): Check and use
4001 warn_unused_const_variable.
4002 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
4003 (-Wunused-variable): Remove non-constant. For C implies
4004 -Wunused-const-variable.
4005 (-Wunused-const-variable): New.
4007 2015-09-14 Richard Biener <rguenther@suse.de>
4009 * doc/match-and-simplify.texi: Update for changed syntax
4010 of inner ifs and the new switch expression.
4012 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4014 * config/i386/haswell.md: New file describing Haswell pipeline.
4015 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
4016 haswell-like processors.
4017 (ix86_reassociation_width): Increase reassociation width for 64-bit
4018 Haswell processor family.
4019 * config/i386/i386.md: Introduce haswell cpu and include new md file.
4021 2015-09-14 Richard Biener <rguenther@suse.de>
4023 * doc/match-and-simplify.texi: Fixup some formatting issues
4024 and document the 's' flag.
4026 2015-09-13 Olivier Hainque <hainque@adacore.com>
4027 Eric Botcazou <ebotcazou@adacore.com>
4029 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
4030 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
4031 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
4032 (TARGET_CPU_gr5): Likewise.
4033 (TARGET_CPU_gr6): Likewise.
4034 (MULTILIB_DEFAULTS): Likewise.
4035 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
4036 for mcpu=gr5 and mcpu=gr6.
4037 (MULTILIB_DIRNAMES): Adjust accordingly.
4039 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4041 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
4042 (mem_ref_p): Likewise.
4043 (outermost_indep_loop): Adjust.
4044 (mem_ref_in_stmt): Likewise.
4045 (determine_max_movement): Likewise.
4046 (mem_ref_alloc): Likewise.
4047 (record_mem_ref_loc): Likewise.
4048 (set_ref_stored_in_loop): Likewise.
4049 (mark_ref_stored): Likewise.
4050 (gather_mem_refs_stmt): Likewise.
4051 (mem_refs_may_alias_p): Likewise.
4052 (for_all_locs_in_loop): Likewise.
4053 (struct rewrite_mem_ref_loc): Likewise.
4054 (rewrite_mem_refs): Likewise.
4055 (struct first_mem_ref_loc_1): Likewise.
4056 (first_mem_ref_loc): Likewise.
4057 (struct sm_set_flag_if_changed): Likewise.
4058 (execute_sm_if_changed_flag_set): Likewise.
4059 (execute_sm): Likewise.
4060 (hoist_memory_references):
4061 (struct ref_always_accessed): Likewise.
4062 (ref_always_accessed_p): Likewise.
4063 (refs_independent_p): Likewise.
4064 (record_dep_loop): Likewise.
4065 (ref_indep_loop_p_1): Likewise.
4066 (ref_indep_loop_p_2): Likewise.
4067 (ref_indep_loop_p): Likewise.
4068 (can_sm_ref_p): Likewise.
4069 (find_refs_for_sm): Likewise.
4070 (tree_ssa_lim_finalize): Likewise.
4072 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4074 * dwarf2out.c (dw_attr_ref): Remove typedef.
4075 (dw_line_info_ref): Likewise.
4076 (pubname_ref): Likewise.
4077 (dw_ranges_ref): Likewise.
4078 (dw_ranges_by_label_ref): Likewise.
4079 (comdat_type_node_ref): Likewise.
4081 (get_AT_low_pc): Likewise.
4082 (get_AT_hi_pc): Likewise.
4083 (get_AT_string): Likewise.
4084 (get_AT_flag): Likewise.
4085 (get_AT_unsigned): Likewise.
4086 (get_AT_ref): Likewise.
4087 (get_AT_file): Likewise.
4088 (remove_AT): Likewise.
4089 (print_die): Likewise.
4090 (check_die): Likewise.
4091 (die_checksum): Likewise.
4092 (attr_checksum_ordered): Likewise.
4093 (struct checksum_attributes): Likewise.
4094 (collect_checksum_attributes): Likewise.
4095 (die_checksum_ordered): Likewise.
4096 (same_die_p): Likewise.
4097 (is_declaration_die): Likewise.
4098 (clone_die): Likewise.
4099 (clone_as_declaration): Likewise.
4100 (copy_declaration_context): Likewise.
4101 (break_out_comdat_types): Likewise.
4102 (copy_decls_walk): Likewise.
4103 (output_location_lists): Likewise.
4104 (external_ref_hasher::hash): Likewise.
4105 (optimize_external_refs_1): Likewise.
4106 (build_abbrev_table): Likewise.
4107 (size_of_die): Likewise.
4108 (unmark_all_dies): Likewise.
4109 (size_of_pubnames): Likewise.
4110 (output_die_abbrevs): Likewise.
4111 (output_die): Likewise.
4112 (output_pubnames): Likewise.
4113 (add_ranges_num): Likewise.
4114 (add_ranges_by_labels): Likewise.
4115 (add_high_low_attributes): Likewise.
4116 (gen_producer_string): Likewise.
4117 (dwarf2out_set_name): Likewise.
4118 (new_line_info_table): Likewise.
4119 (prune_unused_types_walk_attribs): Likewise.
4120 (prune_unused_types_update_strings): Likewise.
4121 (prune_unused_types): Likewise.
4122 (resolve_addr): Likewise.
4123 (optimize_location_lists_1): Likewise.
4124 (index_location_lists): Likewise.
4125 (dwarf2out_finish): Likewise.
4127 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4129 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
4131 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4133 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
4134 (dump_asserts_for): Adjust.
4135 (register_new_assert_for): Likewise.
4136 (process_assert_insertions): Likewise.
4137 (insert_range_assertions): Likewise.
4139 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4141 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
4143 (new_temp_expr_table): Adjust.
4144 (free_temp_expr_table): Likewise.
4145 (version_to_be_replaced_p): Likewise.
4146 (make_dependent_on_partition): Likewise.
4147 (add_to_partition_kill_list): Likewise.
4148 (remove_from_partition_kill_list): Likewise.
4149 (add_dependence): Likewise.
4150 (finished_with_expr): Likewise.
4151 (process_replaceable): Likewise.
4152 (kill_expr): Likewise.
4153 (kill_virtual_exprs): Likewise.
4154 (mark_replaceable): Likewise.
4155 (find_replaceable_in_bb): Likewise.
4156 (find_replaceable_exprs): Likewise.
4157 (debug_ter): Likewise.
4159 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4161 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
4162 (struct btr_user): Rename from btr_user_s.
4163 (struct btr_def): Rename from btr_def_s.
4164 (find_btr_def_group): Adjust.
4165 (add_btr_def): Likewise.
4166 (new_btr_user): Likewise.
4167 (note_other_use_this_block): Likewise.
4168 (compute_defs_uses_and_gen): Likewise.
4169 (link_btr_uses): Likewise.
4170 (build_btr_def_use_webs): Likewise.
4171 (block_at_edge_of_live_range_p): Likewise.
4172 (btr_def_live_range): Likewise.
4173 (combine_btr_defs): Likewise.
4174 (move_btr_def): Likewise.
4175 (migrate_btr_def): Likewise.
4176 (migrate_btr_defs): Likewise.
4178 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4180 * var-tracking.c (shared_hash_def): Rename to shared_hash.
4181 (shared_hash): Remove typedef.
4182 (struct dataflow_set): Adjust.
4183 (shared_hash_unshare): Likewise.
4184 (dataflow_set_merge): Likewise.
4185 (vt_initialize): Likewise.
4186 (vt_finalize): Likewise.
4188 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4190 * var-tracking.c (struct location_chain): Rename from
4192 (struct variable_part): Adjust.
4193 (variable_htab_free): Likewise.
4194 (unshare_variable): Likewise.
4195 (get_init_value): Likewise.
4196 (get_addr_from_local_cache): Likewise.
4197 (drop_overlapping_mem_locs): Likewise.
4198 (val_reset): Likewise.
4199 (struct variable_union_info): Likewise.
4200 (variable_union): Likewise.
4201 (find_loc_in_1pdv): Likewise.
4202 (insert_into_intersection): Likewise.
4203 (intersect_loc_chains): Likewise.
4204 (canonicalize_loc_order_check): Likewise.
4205 (canonicalize_values_mark): Likewise.
4206 (canonicalize_values_star): Likewise.
4207 (canonicalize_vars_star): Likewise.
4208 (variable_merge_over_cur): Likewise.
4209 (remove_duplicate_values): Likewise.
4210 (variable_post_merge_new_vals): Likewise.
4211 (variable_post_merge_perm_vals): Likewise.
4212 (find_mem_expr_in_1pdv): Likewise.
4213 (dataflow_set_preserve_mem_locs): Likewise.
4214 (dataflow_set_remove_mem_locs): Likewise.
4215 (variable_part_different_p): Likewise.
4216 (onepart_variable_different_p): Likewise.
4217 (find_src_set_src): Likewise.
4218 (dump_var): Likewise.
4219 (set_slot_part): Likewise.
4220 (clobber_slot_part): Likewise.
4221 (delete_slot_part): Likewise.
4222 (vt_expand_var_loc_chain): Likewise.
4223 (emit_note_insn_var_location): Likewise.
4224 (vt_finalize): Likewise.
4226 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4228 * dse.c (store_info_t): Remove typedef.
4229 (group_info_t): Likewise.
4230 (const_group_info_t): Likewise.
4231 (deferred_change_t): Likewise.
4232 (get_group_info): Adjust.
4233 (free_store_info): Likewise.
4234 (canon_address): Likewise.
4235 (clear_rhs_from_active_local_stores): Likewise.
4236 (record_store): Likewise.
4237 (replace_read): Likewise.
4238 (check_mem_read_rtx): Likewise.
4239 (scan_insn): Likewise.
4240 (remove_useless_values): Likewise.
4241 (dse_step1): Likewise.
4242 (dse_step2_init): Likewise.
4243 (dse_step2_nospill): Likewise.
4244 (scan_stores_nospill): Likewise.
4245 (scan_reads_nospill): Likewise.
4246 (dse_step3_exit_block_scan): Likewise.
4247 (dse_step3): Likewise.
4248 (dse_step5_nospill): Likewise.
4249 (dse_step6): Likewise.
4251 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4253 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
4254 (alias_set_entry): Remove typedef.
4255 (alias_set_subset_of): Adjust.
4256 (alias_sets_conflict_p): Likewise.
4257 (init_alias_set_entry): Likewise.
4258 (get_alias_set): Likewise.
4259 (new_alias_set): Likewise.
4260 (record_alias_subset): Likewise.
4262 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
4264 * doc/install.texi (Downloading the source): Mark up
4265 contrib/download_prerequisites properly and drop leading "./".
4267 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4269 * config/arc/arc.h: Remove define of STRUCT_VALUE.
4270 * config/lm32/lm32.h: Likewise.
4271 * config/mep/mep.h: Likewise.
4272 * config/visium/visium.h: Likewise.
4273 * system.h: Poison STRUCT_VALUE macro.
4275 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
4277 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
4278 CONSTANT_P operands.
4280 2015-09-11 David S. Miller <davem@davemloft.net>
4282 * config/sparc/constraints.md: Make "U" constraint a real register
4284 * config/sparc/sparc.c (TARGET_LRA_P): Define.
4285 (D_MODES, DF_MODES): Add missing cast.
4286 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4287 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4288 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4290 * config/sparc/sparc.h (PROMOTE_MODE): Define.
4291 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4292 provide these insn when flag_pic.
4294 2015-09-11 Jeff Law <law@redhat.com>
4296 PR tree-optimization/47679
4297 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
4298 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
4299 member with m_. Update inline member functions as necessary. Add
4301 * tree-ssa-scopedtables.c: Update const_and_copies's member
4302 functions to use m_ prefix to access the stack.
4304 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
4306 * graphite-optimize-isl.c (disable_tiling): Remove.
4307 (get_schedule_for_band): Do not use disable_tiling.
4308 (get_prevector_map): Delete function.
4309 (enable_polly_vector): Remove.
4310 (get_schedule_for_band_list): Remove dead code.
4312 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
4314 * graphite-optimize-isl.c (get_tile_map): Refactor.
4315 (get_schedule_for_band): Same.
4316 (getScheduleForBand): Same.
4317 (get_prevector_map): Same.
4318 (get_schedule_for_band_list): Same.
4319 (get_schedule_map): Same.
4320 (get_single_map): Same.
4321 (apply_schedule_map_to_scop): Same.
4322 (optimize_isl): Same.
4324 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4327 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
4329 * config/aarch64/iterators.md (GPF_TF_F16): New.
4332 2015-09-10 Nathan Sidwell <nathan@acm.org>
4334 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
4335 (nvptx_reorg): Adjust comments.
4337 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
4340 * configure.ac: Check if setenv and unsetenv are declared.
4341 * configure: Rebuild.
4342 * config.in: Rebuild.
4343 * system.h: Declare setenv and unsetenv if not declared.
4345 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4347 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
4348 commentary to simplify permute mask adjustment equation.
4349 (special_handling_values): Add SH_VPERM.
4350 (const_load_sequence_p): New function.
4351 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
4352 the mask loaded from the constant pool.
4353 (adjust_vperm): New function.
4354 (handle_special_swappables): Call adjust_vperm.
4355 (dump_swap_insn_table): Handle SH_VPERM.
4357 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
4359 * shrink-wrap.c (requires_stack_frame_p): Remove static.
4360 * shrink-wrap.h (requires_stack_frame_p): Put back.
4362 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
4364 * reload1.c (elimination_costs_in_insn): Locally turn
4365 -Wmaybe-uninitialized into a warning.
4367 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
4369 * shrink-wrap.c (requires_stack_frame_p): Make static.
4370 (prepare_shrink_wrap): Likewise.
4371 (dup_block_and_redirect): Likewise.
4372 * shrink-wrap.h: Remove declarations of those functions.
4374 2015-09-10 Mark Wielaard <mjw@redhat.com>
4376 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
4378 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
4381 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
4382 missing simplify_gen_subreg.
4384 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4386 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
4387 the vector element is bigger than 64 bit.
4389 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4391 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
4392 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
4394 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4396 * config/s390/s390.c: Add V1TImode to constant pool modes.
4398 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4401 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
4402 predicate. Set predicable_short_it attr to "no".
4404 2015-09-10 Jiong Wang <jiong.wang@arm.com>
4406 PR rtl-optimization/67421
4407 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
4408 left wide shift tranformation.
4410 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
4412 * common/config/arc/arc-common.c: Remove references to A5.
4413 * config/arc/arc-opts.h: Likewise.
4414 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
4415 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
4416 * config/arc/t-arc-newlib: Likewise.
4418 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
4420 * config/arc/arc.md (length): Fix attribute length for conditional
4421 executed instructions with long immediate.
4423 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4425 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
4426 type for second alternative.
4428 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
4430 * doc/invoke.texi (Downloading GCC): Mention
4431 contrib/download_prerequisites script.
4433 2015-09-10 Jakub Jelinek <jakub@redhat.com>
4436 * gimplify.c (gimplify_omp_for): If inner stmt is not found
4437 for combined loop, assert seen_error () and return GS_ERROR.
4440 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
4441 if decl is already in outer->variables.
4444 * gimplify.c (gimplify_scan_omp_clauses): Instead of
4445 asserting that decl is not specified in octx->variables,
4446 break out of the loop if it is.
4449 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
4450 iterator is not explicitly determined, but is defined inside
4451 of the combined workshare region, handle it like if it has
4452 DECL_EXPR in OMP_FOR_PRE_BODY.
4454 2015-09-09 Nathan Sidwell <nathan@acm.org>
4456 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
4457 (*cmp<mode>): Add assembler spacing.
4458 (setcc_int<mode>, set_cc_float<mode>): Likewise.
4459 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
4461 (write_func_decl_from_insn): Refactor argument loops & comma emission.
4462 (nvptx_expand_call): Likewise.
4463 (nvptx_output_call_insn): Likewise.
4464 (nvptx_reorg_subreg): Add spacing.
4466 2015-09-09 Marek Polacek <polacek@redhat.com>
4469 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
4472 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4475 * doc/invoke.texi ([Wsubobject-linkage]): Document.
4477 2015-09-09 Tom de Vries <tom@codesourcery.com>
4479 * params-list.h: Add missing copyright notice.
4481 2015-09-09 Nathan Sidwell <nathan@acm.org>
4483 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
4484 sel_truesi, not andsi.
4486 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4488 * config/arm/arm.md (*subsi3_compare0): Rename to...
4489 (subsi3_compare0): ... This.
4490 (modsi3): New define_expand.
4491 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
4492 when operand is power of 2.
4494 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4496 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
4497 (*neg<mode>2_compare0): Rename to...
4498 (neg<mode>2_compare0): ... This.
4499 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
4500 Move check for speed inside the if-then-elses. Reflect
4501 CSNEG sequence in MOD by power of 2 case.
4503 2015-09-09 Alan Modra <amodra@gmail.com>
4506 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
4507 reload replacement for PRE_MODIFY address reg.
4509 2015-09-09 Sebastian Pop <s.pop@samsung.com>
4511 PR tree-optimization/53852
4512 * config.in: Regenerate.
4513 * configure: Regenerate.
4514 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
4515 * graphite-optimize-isl.c (optimize_isl): Stop computation when
4516 PARAM_MAX_ISL_OPERATIONS is reached.
4517 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
4518 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
4519 result equal to isl_stat_ok as the status now can be isl_error_quota.
4520 (subtract_commutative_associative_deps): Same.
4521 (compute_deps): Same.
4523 2015-09-08 Aditya Kumar <hiraditya@msn.com>
4524 Sebastian Pop <s.pop@samsung.com>
4526 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4527 Return the parameter if it was saved in corresponding
4528 parameter_rename_map of the region.
4529 (copy_def): Copy def from sese region to the newly created region.
4530 (copy_internal_parameters): Copy all the internal parameters defined
4531 within a region to the newly created region.
4532 (graphite_regenerate_ast_isl): Copy parameters to the new region before
4533 translating isl to gimple.
4534 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
4535 the loop-nest does not have any data-references.
4536 (build_graphite_scops): Create a scop only when there is at least one
4538 (contains_only_close_phi_nodes): Deleted.
4539 (print_graphite_scop_statistics): Deleted
4540 (print_graphite_statistics): Deleted
4541 (limit_scops): Deleted.
4542 (build_scops): Removed call to limit_scops.
4543 * sese.c (new_sese): Construct.
4544 (free_sese): Destruct.
4545 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
4547 (set_rename): Pass sese region so that parameters inside the region can
4548 be added to its parameter_rename_map.
4549 (rename_uses): Pass sese region.
4550 (graphite_copy_stmts_from_block): Do not copy parameters that have been
4551 generated in the header of the scop. For each SSA_NAME in the
4552 parameter_rename_map rename its usage.
4553 (invariant_in_sese_p_rec): Return false if tree t is defined outside
4555 (scalar_evolution_in_region): If the tree t is invariant just return t.
4556 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
4557 struct sese to keep track of all the parameters which need renaming.
4558 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
4560 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
4562 2015-09-08 Tom de Vries <tom@codesourcery.com>
4564 * Makefile.in (generated_files): Add params.list.
4565 (params.list, s-params.list): Add rule.
4566 * params.h (enum compiler_param): Include params-list.h. Move define
4567 DEFPARAM, include params.def and undef DEFPARAM ...
4568 * params-list.h: ... here. New file.
4570 2015-09-08 David Malcolm <dmalcolm@redhat.com>
4572 * pretty-print.h (printer_fn): Fix typo in comment.
4574 2015-09-07 Jeff Law <law@redhat.com>
4576 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
4578 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4580 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
4581 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
4582 (arm_neon_fp16_hw): New.
4584 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4586 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
4587 UNITS_PER_WORD >= 4.
4589 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4591 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
4592 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
4593 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
4594 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
4595 (aarch64_float_extend_lo_v2df): Rename to...
4596 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
4598 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
4599 (float_extend_lo): Add v4sf.
4601 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
4602 * config/aarch64/iterators.md (VQ_HSF): New iterator.
4603 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
4604 (Vwide): New mode_attr.
4606 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4608 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
4609 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
4610 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
4611 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
4612 V4HF and V8HF variants to iterator.
4614 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
4616 * config/aarch64/iterators.md (VDQF_F16): New.
4617 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
4619 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4621 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
4622 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
4623 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
4624 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
4625 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
4626 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
4627 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
4628 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
4629 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
4630 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
4631 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
4632 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
4633 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
4634 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
4635 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
4636 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
4637 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
4638 vld1q_dup_f16): New.
4640 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4642 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
4643 Reparameterize to...
4644 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
4645 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
4646 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
4648 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
4650 (float_truncate_lo_): Use BUILTIN_VDF iterator.
4652 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
4654 * config/aarch64/iterators.md (VDF, Vdtype): New.
4655 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
4657 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4659 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
4660 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
4661 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
4662 Add __builtin_aarch64_simd_hf.
4663 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
4664 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
4665 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
4666 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
4667 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
4668 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
4669 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
4670 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
4671 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
4673 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
4674 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
4675 (VDC, Vdbl): Add V4HF.
4677 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4679 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
4680 V4HFmode and V8HFmode.
4681 (aarch64_split_simd_move): Add case for V8HFmode.
4682 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
4683 (aarch64_simd_builtin_std_type): Handle HFmode.
4684 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
4686 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
4687 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
4688 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
4690 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
4693 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
4694 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
4696 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
4697 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
4698 vst1q_lane_f16): New.
4699 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
4700 (VALLDI_F16, VALL_F16): New.
4701 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
4702 Add cases for V4HF and V8HF.
4703 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
4705 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4707 * config/arm/arm-builtins.c (VAR11, VAR12): New.
4708 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
4709 vld4_dup): Add v4hf variant.
4710 (vget_high, vget_low): Add v8hf variant.
4711 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
4712 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
4713 v4hf and v8hf variants.
4715 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
4717 (V_DOUBLE): Add case for V4HF.
4719 (V_HALF): Add case for V8HF.
4720 (VDQX): Add V4HF, V8HF.
4721 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
4722 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
4724 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
4725 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
4726 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
4727 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
4728 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
4729 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
4730 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
4731 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
4732 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
4734 (neon_vcreate, neon_vreinterpretv8qi<mode>,
4735 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
4736 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
4737 Change VDX to VD_RE.
4739 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
4740 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
4741 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
4743 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
4744 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
4745 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
4746 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
4747 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
4748 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
4749 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
4750 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
4751 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
4753 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4755 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
4756 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
4757 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
4758 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
4759 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
4760 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
4761 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
4762 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
4763 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
4764 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
4767 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4769 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
4771 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
4773 * config/arm/arm-builtins.c (v8hf_UP): New.
4774 (arm_init_simd_builtin_types): Initialise Float16x8_t.
4776 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
4778 * config/arm/arm_neon.h (float16x8_t): New typedef.
4780 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
4782 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
4783 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
4784 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
4785 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
4786 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
4787 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
4788 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
4789 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
4790 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
4791 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
4793 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
4795 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
4796 non-alphanumeric characters in the symbol name.
4798 2015-09-07 Marek Polacek <polacek@redhat.com>
4801 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
4804 2015-09-07 Marek Polacek <polacek@redhat.com>
4806 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
4808 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
4810 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
4813 2015-09-04 Jakub Jelinek <jakub@redhat.com>
4816 * tree-ssa-live.c: Include cfgloop.h.
4817 (remove_unused_locals): Clear loop->simduid if simduid is about
4818 to be removed from cfun->local_decls.
4820 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4823 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
4826 2015-09-04 Tom de Vries <tom@codesourcery.com>
4828 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
4830 2015-09-04 Jeff Law <law@redhat.com>
4832 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
4833 unnecessary constructor. It's now trivial and implemented inside...
4834 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
4835 constructor. Add comments to various methods. Remove unused
4837 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
4838 * tree-vrp.c (identify_jump_threads): Likewise.
4839 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
4841 (thread_across_edge): Similarly.
4842 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
4843 arguments in constructor call.
4845 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4847 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
4848 temp path contains a '-'.
4850 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
4851 Petr Murzin <petr.murzin@intel.com>
4852 Kirill Yukhin <kirill.yukhin@intel.com>
4854 * config/i386/i386-builtin-types.def
4855 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
4856 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
4857 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
4858 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
4859 * config/i386/i386.c
4860 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
4861 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
4862 IX86_BUILTIN_SCATTERALTDIV16SI.
4863 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
4864 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
4865 __builtin_ia32_scatteraltdiv8si.
4866 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
4867 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
4868 IX86_BUILTIN_SCATTERALTDIV16SI.
4869 (ix86_vectorize_builtin_scatter): New.
4870 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
4871 ix86_vectorize_builtin_scatter.
4873 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
4874 Petr Murzin <petr.murzin@intel.com>
4875 Kirill Yukhin <kirill.yukhin@intel.com>
4877 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
4878 * doc/tm.texi: Regenerate.
4879 * target.def: Add scatter builtin.
4880 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
4881 for loads/stores in case of gather/scatter accordingly.
4882 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
4883 STMT_VINFO_GATHER_P(S).
4884 (vect_check_gather): Rename to ...
4885 (vect_check_gather_scatter): this.
4886 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
4887 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
4888 (vect_check_gather_scatter): Use it instead of vect_check_gather.
4889 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
4890 variable and new checkings for it accordingly.
4892 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
4893 STMT_VINFO_GATHER_P(S).
4894 (vect_check_gather_scatter): Use it instead of vect_check_gather.
4895 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
4897 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4899 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
4901 (mulv16qi3): New define_expand.
4903 2015-09-03 Martin Sebor <msebor@redhat.com>
4906 * doc/extend.texi (Other Builtins): Document when the address
4907 of a built-in function can be taken.
4909 2015-09-03 Richard Biener <rguenther@suse.de>
4911 * dwarf2out.c (flush_limbo_die_list): Split out from ...
4912 (dwarf2out_early_finish): ... here.
4913 (dwarf2out_finish): Do not call dwarf2out_early_finish but
4914 flush_limbo_die_list. Assert we have no deferred asm names.
4916 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4918 * optabs.c (expand_binop): Don't create a broadcast vector with a
4919 source element wider than the inner mode.
4921 2015-09-03 Richard Biener <rguenther@suse.de>
4923 * varasm.c (output_constant): Use fold_convert instead of
4926 2015-09-03 Tom de Vries <tom@codesourcery.com>
4928 PR tree-optimization/65637
4929 * omp-low.c (expand_omp_for_static_chunk): Handle case that
4930 fin_bb has 2 predecessors.
4932 2015-09-03 Tom de Vries <tom@codesourcery.com>
4934 PR tree-optimization/65637
4935 * omp-low.c (find_phi_with_arg_on_edge): New function.
4936 (expand_omp_for_static_chunk): Fix inner loop phi.
4938 2015-09-03 Tom de Vries <tom@codesourcery.com>
4940 PR tree-optimization/65637
4941 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
4944 2015-09-03 Tom de Vries <tom@codesourcery.com>
4946 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
4948 2015-09-03 Tom de Vries <tom@codesourcery.com>
4950 * doc/invoke.texi (parloops-chunk-size): Add item.
4951 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
4952 * tree-parloops.c: Include params.h.
4953 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
4954 param parloops-chunk-size is used.
4956 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4959 * fold-const.c (fold_binary_loc) : Move
4960 Transform (x >> c) << c into x & (-1<<c) or
4961 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
4962 types using simplify and match.
4963 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
4964 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
4966 2015-09-03 Richard Biener <rguenther@suse.de>
4969 * tree-ssa-structalias.c (ctor_for_analysis): New function.
4970 (create_variable_info_for_1): Use ctor_for_analysis instead
4972 (create_variable_info_for): Likewise.
4974 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
4977 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
4978 in new callgraph edge.
4980 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
4985 * config/aarch64/aarch64-simd.md
4986 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
4987 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
4988 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
4989 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
4991 2015-09-02 Alan Modra <amodra@gmail.com>
4993 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
4994 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
4995 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
4997 2015-09-02 Alan Modra <amodra@gmail.com>
5000 * config/rs6000/predicates.md (current_file_function_operand): Don't
5001 return true for weak symbols.
5002 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
5004 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
5005 Andrew Bennett <andrew.bennett@imgtec.com>
5007 * config/mips/mips-opts.h (mips_cb_setting): New enum.
5008 * config/mips/mips-protos.h: Add definitions for
5009 mips_output_jump and mips_output_equal_conditional_branch
5010 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
5012 (mips_emit_compare): Add support for the MIPS R6 conditional
5014 (mips_process_sync_loop): Likewise.
5015 (mips_output_order_conditional_branch): Likewise.
5016 (mips16_build_call_stub): Change MIPS_CALL to
5018 (mips_print_operand_punctuation): Update 's' case to only
5019 apply to micromips r2.
5020 (mips_adjust_insn_length): Add support for forbidden slot
5022 (mips_avoid_hazard): Likewise.
5023 (mips_reorg_process_insns): Likewise.
5024 (mips_output_jump): New function.
5025 (mips_output_equal_conditional_branch): Likewise.
5026 (mips_output_conditional_branch): Use jrc/bc if compact
5027 branch support is enabled. Ensure the forbidden slots
5028 between the two branch instructions is filled with a nop.
5029 (mips_option_override): Add support to process the compact
5030 branch option and set the correct defaults. Prevent
5031 non-explict relocs being using for MIPS R6.
5032 (mips_trampoline_init): Add compact branch support.
5033 (mips_mult_zero_zero_cost): Allow zero initialisation of
5034 accumulators with TARGET_DSP.
5035 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
5036 (TARGET_CB_MAYBE): New define.
5037 (TARGET_CB_ALWAYS): New define.
5038 (ISA_HAS_DELAY_SLOTS): New define.
5039 (ISA_HAS_COMPACT_BRANCHES): New define.
5040 (ISA_HAS_JRC): New define.
5041 (MIPS_BRANCH_C): New define.
5042 (MIPS_CALL): Removed.
5043 (MICROMIPS_J): Removed.
5044 * config/mips/mips.md (compact_form): New attr.
5045 (hazard): Add support for forbidden slots.
5046 (define_delay): Add support for compact branches.
5047 (*branch_order<mode>): Likewise.
5048 (*branch_order<mode>_inverted): Likewise.
5049 (*branch_equality<mode>): Likewise.
5050 (*branch_equality<mode>_inverted): Likewise.
5051 (*jump_absolute): Likewise.
5052 (*jump_pic): Likewise.
5053 (indirect_jump): Use mips_output_jump to produce assembly output.
5054 (tablejump_<mode>"): Likewise.
5055 (*<optab>"): Likewise.
5056 (<optab>_internal): Likewise.
5057 (sibcall_internal): Likewise.
5058 (sibcall_value_internal): Likewise.
5059 (sibcall_value_multiple_internal): Likewise.
5060 (call_internal): Likewise.
5061 (call_split): Likewise.
5062 (call_internal_direct): Likewise.
5063 (call_direct_split): Likewise.
5064 (call_value_internal): Likewise.
5065 (call_value_split): Likewise.
5066 (call_value_internal_direct): Likewise.
5067 (call_value_direct_split): Likewise.
5068 (call_value_multiple_internal): Likewise.
5069 (call_value_multiple_split): Likewise.
5070 (mips_get_fcsr_mips16_<mode>): Likewise.
5071 (mips_set_fcsr_mips16_<mode>): Likewise.
5072 (tls_get_tp_mips16_<mode>): Likewise.
5073 * config/mips/mips.opt: Add -mcompact-branches option.
5074 * config/mips/predicates.md (order_operator): Ensure the
5075 conditional compact branches are only used if the ISA them.
5076 * doc/invoke.texi: Document -mcompact-branches option.
5078 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
5081 * lra-lives.c (process_bb_lives): Process move pseudos with the
5082 same value for copies and preferences
5083 * lra-constraints.c (match_reload): Create match reload pseudo
5084 with the same value from single dying input pseudo.
5086 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
5089 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
5091 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
5093 * trans-mem.c: Add contributed-by.
5094 * trans-mem.h: Same.
5096 2015-09-01 Richard Biener <rguenther@suse.de>
5098 * expr.c (expand_expr_real_1): For expanding TERed defs
5099 set the current location to that of the def if not UNKNOWN.
5101 2015-09-01 David Sherwood <david.sherwood@arm.com>
5103 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
5105 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5107 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
5108 then_cost, else_cost fields. Change branch_cost field to unsigned int.
5109 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
5111 (noce_simple_bbs): New function.
5112 (noce_try_move): Bail if basic blocks are not simple.
5113 (noce_try_store_flag): Likewise.
5114 (noce_try_store_flag_constants): Likewise.
5115 (noce_try_addcc): Likewise.
5116 (noce_try_store_flag_mask): Likewise.
5117 (noce_try_cmove): Likewise.
5118 (noce_try_minmax): Likewise.
5119 (noce_try_abs): Likewise.
5120 (noce_try_sign_mask): Likewise.
5121 (noce_try_bitop): Likewise.
5122 (bbs_ok_for_cmove_arith): New function.
5123 (noce_emit_all_but_last): Likewise.
5124 (noce_emit_insn): Likewise.
5125 (noce_emit_bb): Likewise.
5126 (noce_try_cmove_arith): Handle non-simple basic blocks.
5127 (insn_valid_noce_process_p): New function.
5128 (contains_mem_rtx_p): Likewise.
5129 (bb_valid_for_noce_process_p): Likewise.
5130 (noce_process_if_block): Allow non-simple basic blocks
5133 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
5135 * tree-ssa-dom.c (record_equivalences_from_phis,
5136 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
5137 (lookup_avail_expr): Likewise, and remove comment and unused temp.
5139 2015-09-01 Nick Clifton <nickc@redhat.com>
5141 * config/msp430/msp430.opt (mcpu): Fix typo.
5143 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5145 * config/aarch64/aarch64.c (aarch64_set_current_function):
5146 Re-layout any vector parameters have non-simd layout.
5147 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
5149 (aarch64_simd_expand_args): Delete call to the above.
5151 2015-08-31 Mike Frysinger <vapier@gentoo.org>
5153 * doc/invoke.texi (asan-stack): Add space before option.
5155 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
5157 * tree.h (zerop): New function.
5158 * tree.c (zerop): Likewise.
5159 (element_precision): Handle expressions.
5160 * match.pd (define_predicates): Add zerop.
5161 (x <= +Inf): Fix comment.
5162 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
5163 * fold-const.c (fold_binary_loc): ... here. Remove.
5165 2015-08-31 Richard Biener <rguenther@suse.de>
5168 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
5170 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
5172 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
5173 (CEXPI): New operator list.
5174 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
5175 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
5177 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
5179 2015-08-31 Tom de Vries <tom@codesourcery.com>
5181 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
5182 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
5184 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
5185 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
5186 (rewrite_into_loop_closed_ssa): ... here.
5187 (replace_uses_in_dominated_bbs): Remove function.
5188 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
5189 rewrite_into_loop_closed_ssa_1.
5191 2015-08-31 Michael Matz <matz@suse.de>
5193 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
5194 enter entry and exit blocks for reverse post order.
5196 2015-08-31 Richard Biener <rguenther@suse.de>
5198 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
5199 (lto_location_cache::current_sysp): Likewise.
5200 (output_block::current_sysp): Likewise.
5201 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
5202 (lto_location_cache::apply_location_cache): Properly record
5203 system header locations.
5204 (lto_location_cache::input_location): Input whether a file
5206 * lto-streamer-out.c (lto_output_location): Stream whether a file
5209 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5212 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
5214 2015-08-31 Tom de Vries <tom@codesourcery.com>
5216 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
5217 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
5218 Improve function header comments.
5220 2015-08-30 Michael Collison <michael.collison@linaro.org>
5223 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
5226 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5228 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
5229 special_handling bitfield.
5230 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
5231 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
5232 that represents a general xxpermdi.
5233 (insn_is_swappable_p): Add handling for vec_concat of two
5234 doublewords, which maps to a specific xxpermdi.
5235 (adjust_xxpermdi): New function.
5236 (adjust_concat): Likewise.
5237 (handle_special_swappables): Call adjust_xxpermdi and
5239 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
5241 2015-08-30 Rich Felker <dalias@libc.org>
5243 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
5244 case instead of sh[123456ble]-*-*.
5246 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5248 * ira.c (print_unform_and_important_classes,
5249 print_translated_classes): Remove reg_class_names static array.
5250 (print_unform_and_important_classes): Rename to ...
5251 (print_uniform_and_important_classes): ... this.
5252 (ira_debug_allocno_classes): Update accordingly.
5254 2015-08-29 Tom de Vries <tom@codesourcery.com>
5256 PR tree-optimization/46193
5257 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
5260 2015-08-28 Jeff Law <law@redhat.com>
5263 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5264 unable to find X NE 0 in the tables, return X as the simplified
5266 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5267 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5269 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5270 after removing the control flow statement and unnecessary edges.
5272 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
5275 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
5277 PR tree-optimization/67283
5278 * tree-sra.c (type_consists_of_records_p): Rename to...
5279 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5281 (completely_scalarize_record): Rename to...
5282 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
5284 (scalarize_elem): New.
5286 2015-08-28 Jiong Wang <jiong.wang@arm.com>
5288 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
5289 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
5290 (aarch64_symbol_type): Likewise.
5291 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5293 (aarch64_expand_mov_immediate): Likewise.
5294 (aarch64_print_operand): Likewise.
5295 (aarch64_classify_tls_symbol): Likewise.
5297 2015-08-28 Richard Biener <rguenther@suse.de>
5299 * cgraphunit.c (symbol_table::compile): Move early debug generation
5301 (symbol_table::finalize_compilation_unit): ... back here and
5302 add a !seen_error () guard.
5304 2015-08-27 Sebastian Pop <s.pop@samsung.com>
5306 * toplev.c (process_options): Do not use flag_loop_block,
5307 flag_loop_interchange, and flag_loop_strip_mine. Add check for
5308 flag_loop_optimize_isl.
5310 2015-08-27 Sebastian Pop <s.pop@samsung.com>
5312 * Makefile.in (OBJS): Remove graphite-blocking.o and
5313 graphite-interchange.o.
5314 * common.opt (floop-strip-mine, floop-interchange, floop-block):
5315 Alias of floop-nest-optimize.
5316 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
5317 Document as alias of -floop-nest-optimize.
5318 * graphite-blocking.c: Remove.
5319 * graphite-interchange.c: Remove.
5320 * graphite-optimize-isl.c: Include dumpfile.h.
5321 (getScheduleForBand): Add dump for tiled loops. Use
5322 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
5323 * graphite-poly.c (scop_max_loop_depth): Remove.
5324 (print_scattering_function_1): Remove.
5325 (print_scattering_function): Remove.
5326 (print_scattering_functions): Remove.
5327 (debug_scattering_function): Remove.
5328 (debug_scattering_functions): Remove.
5329 (apply_poly_transforms): Remove use of flag_loop_block,
5330 flag_loop_strip_mine, and flag_loop_interchange.
5331 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
5333 (print_pdr_access_layout): Remove.
5334 (print_pdr): Print ISL representation.
5335 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
5336 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
5338 (openscop_print_pbb_domain): Remove.
5339 (print_pbb): Remove call to print_scattering_function.
5340 (openscop_print_scop_context): Remove.
5341 (print_scop_context): Do not print matrices anymore.
5342 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
5343 SCOP_TRANSFORMED_SCHEDULE.
5344 (print_isl_set): Add printing of a new line.
5345 (print_isl_map): Same.
5346 (print_isl_aff): Same.
5347 (print_isl_constraint): Same.
5348 (loop_to_lst): Remove.
5349 (scop_to_lst): Remove.
5350 (lst_indent_to): Remove.
5351 (print_lst): Remove.
5352 (debug_lst): Remove.
5353 (dot_lst_1): Remove.
5355 (reverse_loop_at_level): Remove.
5356 (reverse_loop_for_pbbs): Remove.
5357 * graphite-poly.h (pdr_dim_iter_domain): Remove.
5358 (pdr_nb_params): Remove.
5359 (pdr_alias_set_dim): Remove.
5360 (pdr_subscript_dim): Remove.
5361 (pdr_iterator_dim): Remove.
5362 (pdr_parameter_dim): Remove.
5363 (same_pdr_p): Remove.
5364 (struct poly_scattering): Remove.
5365 (struct poly_bb): Remove _original, _transformed, _saved.
5366 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
5367 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
5368 (PBB_NB_LOCAL_VARIABLES): Remove.
5369 (PBB_NB_SCATTERING_TRANSFORM): Remove.
5370 (schedule_to_scattering): Remove.
5371 (number_of_write_pdrs): Remove.
5372 (pbb_dim_iter_domain): Remove.
5373 (pbb_nb_params): Remove.
5374 (pbb_nb_scattering_orig): Remove.
5375 (pbb_nb_scattering_transform): Remove.
5376 (pbb_nb_dynamic_scattering_transform): Remove.
5377 (pbb_nb_local_vars): Remove.
5378 (pbb_iterator_dim): Remove.
5379 (pbb_parameter_dim): Remove.
5380 (psco_scattering_dim): Remove.
5381 (psct_scattering_dim): Remove.
5382 (psct_local_var_dim): Remove.
5383 (psco_iterator_dim): Remove.
5384 (psct_iterator_dim): Remove.
5385 (psco_parameter_dim): Remove.
5386 (psct_parameter_dim): Remove.
5387 (psct_dynamic_dim): Remove.
5388 (psct_static_dim): Remove.
5389 (psct_add_local_variable): Remove.
5390 (new_lst_loop): Remove.
5391 (new_lst_stmt): Remove.
5394 (lst_add_loop_under_loop): Remove.
5395 (lst_depth): Remove.
5396 (lst_dewey_number): Remove.
5397 (lst_dewey_number_at_depth): Remove.
5400 (lst_find_pbb): Remove.
5401 (find_lst_loop): Remove.
5402 (lst_find_first_pbb): Remove.
5403 (lst_empty_p): Remove.
5404 (lst_find_last_pbb): Remove.
5405 (lst_contains_p): Remove.
5406 (lst_contains_pbb): Remove.
5407 (lst_create_nest): Remove.
5408 (lst_remove_from_sequence): Remove.
5409 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
5410 (lst_niter_for_loop): Remove.
5411 (pbb_update_scattering): Remove.
5412 (lst_update_scattering_under): Remove.
5413 (lst_update_scattering): Remove.
5414 (lst_insert_in_sequence): Remove.
5415 (lst_replace): Remove.
5416 (lst_substitute_3): Remove.
5417 (lst_distribute_lst): Remove.
5418 (lst_remove_all_before_including_pbb): Remove.
5419 (lst_remove_all_before_excluding_pbb): Remove.
5420 (struct scop): Remove original_schedule, transformed_schedule, and
5422 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
5423 (SCOP_SAVED_SCHEDULE): Remove.
5424 (poly_scattering_new): Remove.
5425 (poly_scattering_free): Remove.
5426 (poly_scattering_copy): Remove.
5427 (store_scattering_pbb): Remove.
5428 (store_lst_schedule): Remove.
5429 (restore_lst_schedule): Remove.
5430 (store_scattering): Remove.
5431 (restore_scattering_pbb): Remove.
5432 (restore_scattering): Remove.
5433 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
5434 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
5435 compute the scattering polyhedron dimension from the dimension of
5437 (build_scop_scattering): Update call to
5438 build_pbb_scattering_polyhedrons.
5439 (build_poly_scop): Remove call to scop_to_lst.
5440 * graphite.c (graphite_transform_loops): Add call to print_scop.
5441 (gate_graphite_transforms): Remove use of flag_loop_block,
5442 flag_loop_interchange, and flag_loop_strip_mine.
5444 2015-08-27 Sebastian Pop <s.pop@samsung.com>
5446 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
5447 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
5448 -floop-nest-optimize.
5449 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
5450 (generate_luj_sepclass): Remove.
5451 (generate_luj_options): Remove.
5452 (set_options): Remove opt_luj.
5453 (scop_to_isl_ast): Remove opt_luj.
5454 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
5455 flag_loop_unroll_jam.
5456 (getPrevectorMap_full): Remove.
5457 (getScheduleForBandList): Remove map_sepcl.
5458 (getScheduleMap): Same.
5459 (apply_schedule_map_to_scop): Remove sepcl.
5460 (optimize_isl): Same.
5461 * graphite-poly.c (apply_poly_transforms): Remove check for
5462 flag_loop_unroll_jam.
5463 (new_poly_bb): Remove map_sepclass.
5464 * graphite-poly.h (struct poly_bb): Same.
5465 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
5466 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
5467 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
5468 * toplev.c (process_options): Remove flag_loop_unroll_jam.
5470 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
5473 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
5475 (UNSPEC_ADD_CARRY): Remove.
5476 (addqi3_cconly_overflow): New expander.
5477 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
5478 Adjust for changed add<mode>3_carry.
5479 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
5480 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
5481 (<plusminus_insn><mode>3_carry): Remove expander.
5482 (*<plusminus_insn><mode>3_carry): Split insn pattern to
5483 add<mode>3_carry and sub<mode>3_carry.
5484 (plusminus_carry_mnemonic): Remove code attribute.
5485 (add<mode>3_carry): Canonicalize insn pattern.
5486 (*addsi3_carry_zext): Ditto.
5487 (sub<mode>3_carry): Ditto.
5488 (*subsi3_carry_zext): Ditto.
5489 (adcx<mode>3): Remove insn pattern.
5490 (addcarry<mode>): New insn pattern.
5491 (subborrow<mode>): Ditto.
5492 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
5493 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
5494 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
5495 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
5496 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
5497 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
5498 Rewrite expander to not clobber carry flag chains.
5500 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
5502 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
5503 instead of a rotate.
5505 2015-08-27 Marek Polacek <polacek@redhat.com>
5508 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
5509 an entry into an irreducible region.
5511 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5513 * configure: Regenerate.
5515 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
5517 PR tree-optimization/67283
5518 * tree-sra.c (type_consists_of_records_p): Rename to...
5519 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5521 (completely_scalarize_record): Rename to...
5522 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5523 (scalarize_elem): New.
5525 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
5527 * tree-sra.c (completely_scalarize_var): Rename to...
5528 (create_total_scalarization_access): ... Here. Drop call to
5529 completely_scalarize_record.
5531 (analyze_all_variable_accesses): Replace completely_scalarize_var
5532 with create_total_scalarization_access and completely_scalarize_record.
5534 2015-08-27 Alan Modra <amodra@gmail.com>
5537 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
5540 2015-08-27 Richard Biener <rguenther@suse.de>
5542 * passes.c (rest_of_decl_compilation): Guard early_global_decl
5543 call with !seen_error ().
5544 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
5545 early debug generation and finish...
5546 (symbol_table::compile): ... here to put it after a !seen_error ()
5549 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5551 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
5554 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5555 Andre Vieira <andre.simoesdiasvieira@arm.com>
5557 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
5558 (*cb<optab><mode>1): Likewise.
5559 (*tb<optab><mode>1): Likewise.
5560 (*cb<optab><mode>1): Likewise.
5561 * config/aarch64/iterators.md (inv_cb): New code attribute.
5563 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
5564 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
5566 2015-08-27 Richard Biener <rguenther@suse.de>
5568 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
5570 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5572 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
5575 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5577 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
5580 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
5582 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
5583 floating point in VSX registers.
5584 (rs6000_output_move_128bit): Always print out the set insn if we
5585 can't generate an appropriate 128-bit move.
5586 (rs6000_generate_compare): Add support for IEEE 128-bit floating
5587 point in VSX registers comparisons.
5588 (rs6000_expand_float128_convert): Likewise.
5590 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
5591 predicate for only GPR hard registers.
5593 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
5594 modes to iterators. Add new iterators for moving 128-bit values in
5595 scalar FPR registers and VSX registers.
5596 (FMOVE128): Likewise.
5597 (FMOVE128_FPR): Likewise.
5598 (FMOVE128_GPR): Likewise.
5599 (FMOVE128_VSX): Likewise.
5600 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
5605 (RELOAD): Add IEEE 128-bit floating point modes.
5606 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
5607 floating point in VSX registers modes.
5608 (signbit<mode>2, IBM128 iterator): Likewise.
5609 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
5610 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5612 (neg<mode>2, TFIFKF iterator): Likewise.
5613 (negtf2_internal): Likewise.
5615 (abs<mode>2, TFIFKF iterator): Likewise.
5616 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
5617 VSX insn support for negate, absolute value, and negative absolute
5619 (ieee_128bit_vsx_neg<mode>2): Likewise.
5620 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
5621 (ieee_128bit_vsx_abs<mode>2): Likewise.
5622 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
5623 (ieee_128bit_vsx_nabs<mode>2): Likewise.
5624 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
5625 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
5626 floating point in VSX registers.
5627 (unpack<mode>_dm): Likewise.
5628 (unpack<mode>_nodm): Likewise.
5629 (pack<mode>): Likewise.
5630 (unpackv1ti): Likewise.
5631 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
5632 (packv1ti): Likewise.
5633 (pack<mode>, FMOVE128_VSX iterator): Likewise.
5634 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
5636 (extenddftf2_internal): Likewise.
5637 (trunctfdf2): Likewise.
5638 (trunctfdf2_internal2): Likewise.
5639 (fix_trunc_helper): Likewise.
5640 (fix_trunctfdi2"): Likewise.
5641 (floatditf2): Likewise.
5642 (floatuns<mode>tf2): Likewise.
5643 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5644 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5645 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5646 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5647 (float<SDI:mode><IFKF:mode>2): Likewise.
5648 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5650 2015-08-26 Renlin Li <renlin.li@arm.com>
5652 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
5654 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
5655 Jiong Wang <jiong.wang@arm.com>
5657 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
5658 (tlsie_tiny_<mode>): New define_insn.
5659 (tlsie_tiny_sidi): Likewise.
5660 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
5662 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
5663 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
5665 (aarch64_expand_mov_immediate): Likewise.
5666 (aarch64_print_operand): Likewise.
5667 (arch64_classify_tls_symbol): Likewise.
5669 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
5671 * config/arm/arm-arches.def: Replace single value flags with
5672 an initializer built from ARM_FSET_MAKE_CPU1.
5673 * config/arm/arm-cores.def: Likewise.
5674 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
5675 derivation from the ARM_CORE macro definition, use the given value
5677 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
5678 ARM_ARCH macro definition, use the given value instead.
5680 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
5682 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
5684 (struct builtin_description): Replace field mask with field
5686 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
5687 (IWMMXT2_BUILTIN): Likewise.
5688 (IWMMXT2_BUILTIN2): Likewise.
5689 (FP_BUILTIN): Likewise.
5690 (CRC32_BUILTIN): Likewise.
5691 (CRYPTO_BUILTIN): Likewise.
5692 (iwmmx_mbuiltin): Likewise.
5693 (iwmmx2_mbuiltin): Likewise.
5694 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
5695 struct builtin_description.
5697 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
5699 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
5700 (struct builtin_description): Change type of mask to unsigned
5702 * config/arm/arm-protos.h (insn_flags): Declare as type
5704 (tune_flags): Likewise.
5705 * config/arm/arm.c (feature_count): New.
5706 (insn_flags): Define as type arm_feature_set.
5707 (tune_flags): Likewise.
5708 (struct processors): Define field flags as type arm_feature_set.
5709 (all_cores): Update for change to struct processors.
5710 (all_architectures): Likewise.
5711 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
5713 (arm_option_override_internal): Likewise.
5714 (arm_option_override): Likewise.
5716 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
5717 Jiong Wang <jiong.wang@arm.com>
5719 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
5720 tls size for tiny, small, large memory model.
5721 (aarch64_load_symref_appropriately): Support new symbol types.
5722 (aarch64_expand_mov_immediate): Likewise.
5723 (aarch64_print_operand): Likewise.
5724 (aarch64_classify_tls_symbol): Likewise.
5725 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
5726 (aarch64_symbol_type): Likewise.
5727 * config/aarch64/aarch64.md (tlsle): Deleted.
5728 (tlsle12_<mode>): New define_insn.
5729 (tlsle24_<mode>): Likewise.
5730 (tlsle32_<mode>): Likewise.
5731 (tlsle48_<mode>): Likewise.
5732 * doc/sourcebuild.texi (AArch64-specific attributes): Document
5735 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
5737 * config/arm/arm-protos.h (FL_NONE): New.
5739 (arm_feature_set): New.
5740 (ARM_FSET_MAKE): New.
5741 (ARM_FSET_MAKE_CPU1): New.
5742 (ARM_FSET_MAKE_CPU2): New.
5743 (ARM_FSET_CPU1): New.
5744 (ARM_FSET_CPU2): New.
5745 (ARM_FSET_EMPTY): New.
5746 (ARM_FSET_ANY): New.
5747 (ARM_FSET_HAS_CPU1): New.
5748 (ARM_FSET_HAS_CPU2): New.
5749 (ARM_FSET_HAS_CPU): New.
5750 (ARM_FSET_ADD_CPU1): New.
5751 (ARM_FSET_ADD_CPU2): New.
5752 (ARM_FSET_DEL_CPU1): New.
5753 (ARM_FSET_DEL_CPU2): New.
5754 (ARM_FSET_UNION): New.
5755 (ARM_FSET_INTER): New.
5756 (ARM_FSET_XOR): New.
5757 (ARM_FSET_EXCLUDE): New.
5758 (AFM_FSET_IS_EMPTY): New.
5759 (ARM_FSET_CPU_SUBSET): New.
5761 2015-08-26 Jiong Wang <jiong.wang@arm.com>
5763 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
5764 SYMBOL_TLSLE to SYMBOL_TLSLE24.
5765 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5767 (aarch64_expand_mov_immediate): Likewise.
5768 (aarch64_print_operand): Likewise.
5769 (aarch64_classify_symbol): Likewise.
5771 2015-08-26 Jiong Wang <jiong.wang@arm.com>
5773 * config/aarch64/aarch64.opt (mtls-size): New entry.
5774 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
5775 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
5776 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
5778 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
5780 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
5781 ARM_CORE entry. Fix some white-space.
5782 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
5783 ARM_CORE definition.
5785 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5787 * fold-const.c (fold_binary_loc) : Move Optimize
5788 root(x)*root(y) as root(x*y) to match.pd.
5789 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
5790 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
5791 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
5792 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
5793 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
5794 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
5795 (mult (exps:s @0) (exps:s @1)) : New simplifier.
5796 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
5797 (rdiv @0 (exps:s @1)) : New simplifier.
5799 2015-08-25 Joseph Myers <joseph@codesourcery.com>
5801 * gcc.c (driver::finalize): Only assign to extra_specs if
5804 2015-08-25 Marek Polacek <polacek@redhat.com>
5807 * varasm.c (declare_weak): Return after giving an error.
5809 2015-08-25 David Malcolm <dmalcolm@redhat.com>
5811 * gcc-main.c (main): Add params to driver ctor.
5812 * gcc.c (class env_manager): New.
5814 (env_manager::init): New.
5815 (env_manager::get): New.
5816 (env_manager::xput): New.
5817 (env_manager::restore): New.
5818 Poison getenv and putenv.
5819 (DEFAULT_TARGET_SYSTEM_ROOT): New.
5820 (target_system_root): Update initialization to use
5821 DEFAULT_TARGET_SYSTEM_ROOT.
5822 (struct spec_list): Add field "default_ptr".
5823 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
5824 (init_spec): Likewise.
5825 (set_spec): Clear field "default_ptr".
5826 (read_specs): Free "spec" and "buffer".
5827 (xputenv): Reimplement in terms of env_manager.
5828 (process_command): Replace ::getenv calls with calls to the
5829 env_manager singleton.
5830 (process_brace_body): Free string in three places.
5831 (driver::driver): New.
5832 (driver::~driver): New.
5833 (used_arg): Convert from a function to...
5834 (class used_arg_t): ...this class, and...
5835 (used_arg): ...this new global instance.
5836 (used_arg_t::finalize): New function.
5837 (getenv_spec_function): Add "const" to local "value". Replace
5838 ::getenv call with call to the env_manager singleton.
5839 (path_prefix_reset): New function.
5840 (driver::finalize): New function.
5841 * gcc.h (driver::driver): New.
5842 (driver::~driver): New.
5843 (driver::finalize): New.
5845 2015-08-25 Nathan Sidwell <nathan@acm.org>
5847 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
5848 target doesn't have one.
5850 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
5853 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
5855 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
5858 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
5859 a define_insn, remove second alternative.
5861 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
5862 Joseph Myers <joseph@codesourcery.com>
5864 * gcc.c (struct switchstr): Expand comment.
5866 2015-08-25 Nathan Sidwell <nathan@acm.org>
5868 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
5869 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
5871 2015-08-25 Richard Biener <rguenther@suse.de>
5874 * genmatch.c (expr::gen_transform): Verify the result of
5875 builtin_decl_implicit.
5876 (dt_simplify::gen_1): Likewise.
5878 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
5880 * config/arm/constraints.md: Also list Cs and US ARM-specific
5881 constraints as used.
5883 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
5886 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
5888 (nonpic_symbol_mentioned_p): Likewise.
5889 (sh_delegitimize_address): Likewise.
5890 (sh_function_ok_for_sibcall): Take into account weak symbols.
5891 (sh_expand_sym_label2reg): New.
5892 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
5893 * config/sh/sh.md (UNSPEC_PCREL): New enum.
5894 (call_pcrel): Use sh_expand_sym_label2reg.
5895 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5896 (symPCREL_label2reg) New expand.
5898 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
5900 * graphite-poly.c: Change type of region from void* to sese.
5901 * graphite-poly.h (struct scop): Changing the type of scop::region
5902 from void* to sese. Change accessor macro accordingly.
5903 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
5905 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
5907 * graphite-scop-detection.c (stmt_simple_for_scop_p):
5908 Constrain only on INTEGER_TYPE.
5910 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5913 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
5914 -mefficient-unaligned-vsx on ISA 2.7.
5916 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
5917 option to a masked option.
5919 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
5920 logic for -mefficient-unaligned-vsx so that it is set via an arch
5921 ISA option, instead of being set if -mtune=power8 is set. Move
5922 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
5923 near other default option handling.
5925 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
5927 * genflags.c (gen_macro): Delete.
5928 (gen_proto): Don't create GEN.*CALL.* macros.
5929 * gensupport.h (get_file_location): Declare.
5930 * gensupport.c (rtx_locs): New variable.
5931 (read_md_rtx): Record rtx locations.
5932 (get_file_location): New function.
5933 * target-insns.def (call, call_pop, call_value, call_value_pop)
5934 (sibcall, sibcall_value): New patterns.
5935 * gentarget-def.c (parse_argument): New function.
5936 (def_target_insn): Use it. Handle optional operands. Raise an
5937 error if an .md pattern has the wrong number of operands for the
5938 pattern name. Remove the names of unused operands from the prototype.
5939 * builtins.c (expand_builtin_apply): Use targetm functions
5940 instead of HAVE_call_value and GEN_CALL_VALUE.
5941 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
5942 and sibcall_value_pop.
5943 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
5945 * config/alpha/alpha.md (untyped_call): Likewise.
5946 * config/iq2000/iq2000.md (untyped_call): Likewise.
5947 * config/m68k/m68k.md (untyped_call): Likewise.
5948 * config/mips/mips.md (untyped_call): Likewise.
5949 * config/pa/pa.md (untyped_call): Likewise.
5950 * config/rs6000/rs6000.md (untyped_call): Likewise.
5951 * config/sparc/sparc.md (untyped_call): Likewise.
5952 * config/tilegx/tilegx.md (untyped_call): Likewise.
5953 * config/tilepro/tilepro.md (untyped_call): Likewise.
5954 * config/visium/visium.md (untyped_call): Likewise.
5955 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
5956 gen_call_value instead of GEN_CALL_VALUE.
5957 * config/arm/arm.md (untyped_call): Likewise.
5958 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
5961 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
5963 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
5964 (have_cbranchcc4): New variable.
5965 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
5966 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
5967 (if_convert): Initialize have_cbranchcc4.
5969 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
5971 * builtins.c (expand_cmpstrn): Rename to...
5972 (expand_cmpstrn_or_cmpmem): ...this.
5973 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
5974 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
5975 Remove mode argument.
5976 (expand_builtin): Update accordingly.
5978 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
5980 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
5981 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
5982 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
5983 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
5984 Add predicates for operands 0 and 3.
5985 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
5987 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
5988 immediate_operand to nonmemory_operand.
5990 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
5992 * df-scan.c (df_insn_info_init_fields): New function, split out
5994 (df_insn_create_insn_record): ...here.
5995 (df_insn_info_free_fields): New function, split out from...
5996 (df_insn_info_delete): ...here.
5997 (df_insn_rescan): Use the new functions instead of freeing and
5998 reallocating the df_insn_info.
6000 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6002 * doc/install.texi (Binaries): Remove links no longer valid.
6004 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6006 * config/nvptx/mkoffload.c (process): Replace
6007 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
6009 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
6012 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
6014 2015-08-24 Renlin Li <renlin.li@arm.com>
6016 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
6017 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
6018 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
6019 * config/arm/constraints.md ("j"): Add check for high code.
6021 2015-08-24 Tom de Vries <tom@codesourcery.com>
6023 PR tree-optimization/65468
6024 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
6027 2015-08-24 Nathan Sidwell <nathan@acm.org>
6029 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
6030 change to nvptx_type_from_mode call. Use arg_promotion for both
6031 split and non-split args.
6033 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6035 * target-insns.def (movstr): New pattern.
6036 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
6037 (expand_movstr): Use targetm rather than HAVE_movstr/
6040 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6042 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
6045 2015-08-24 Andrew Pinski <apinski@cavium.com>
6047 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
6048 AARCH64_EXTRA_TUNING_OPTION.
6049 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
6051 (aarch64_extra_tuning_flags): Base the shifted value on the index
6052 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
6053 * config/aarch64/aarch64.c: Remove the last argument to
6054 AARCH64_EXTRA_TUNING_OPTION.
6056 2015-08-23 Nathan Sidwell <nathan@acm.org>
6058 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
6060 (nvptx_declare_function_name): Insert formatting tabs for
6063 2015-08-23 Tom de Vries <tom@codesourcery.com>
6065 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
6066 parm_decl, rather than generating a dummy default def in cfun.
6067 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
6068 ssa_name from cfun and child_fn do not share a stmt as def stmt.
6069 (move_stmt_op): Handle PARM_DECl.
6070 (gather_ssa_name_hash_map_from): New function.
6071 (move_sese_region_to_fn): Add default defs for function params, and add
6072 them to vars_map. Release copied ssa names.
6073 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
6075 2015-08-23 Tom de Vries <tom@codesourcery.com>
6077 * doc/sourcebuild.texi: Rename vect_no_int_max with
6078 vect_no_int_min_max. Update description.
6080 2015-08-22 Andrew Pinski <apinski@cavium.com>
6082 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
6083 * config/aarch64/aarch64-protos.h
6084 (aarch64_fusion_pairs_index): New enum.
6085 (aarch64_fusion_pairs): Base the shifted value on the index instead
6086 Rewrite AARCH64_FUSE_ALL to be based on the end index.
6087 of the argument to AARCH64_FUSION_PAIR.
6088 * config/aarch64/aarch64.c: Remove the last argument to
6089 AARCH64_FUSION_PAIR.
6091 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
6093 * dominance.c (new_zero_array): Define.
6094 (dom_info): Redefine as class with proper encapsulation.
6095 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
6097 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
6098 allocations/deallocations. Pass function as parameter (instead of
6100 (dom_info::get_idom): Define accessor method.
6101 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
6102 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
6103 (calculate_dominance_info): Adjust to use dom_info class.
6104 (verify_dominators): Likewise.
6106 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
6108 * print-rtl.c (print_rtx): Check the correct range for
6109 flag_dump_unnumbered_links to behave as documented.
6111 PR rtl-optimization/67227
6112 PR rtl-optimization/64164
6113 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
6114 (nonoverlapping_memrefs_p): Test offsets and sizes when given
6115 identical gimple_reg exprs.
6117 2015-08-21 Nathan Sidwell <nathan@acm.org>
6119 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
6121 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
6122 crtl->stack_alignment_needed to determine alignment.
6123 (nvptx_get_drap_rtx): New.
6124 (TARGET_GET_DRAP_RTX): Override.
6125 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
6127 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6129 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
6131 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6133 * configure.ac: Remove uwin* cases.
6134 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
6135 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
6136 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
6137 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
6138 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
6139 i[34567]86-*-uwin*, powerpc-*-beos*.
6141 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
6143 * gencodes.c (gencodes): Print the comma for the preceding
6144 enum value rather than the current one. Use aliased enum values
6145 rather than #defines for compiled-out patterns.
6146 (main): Update accordingly. Replace LAST_INSN_CODE with
6148 * lra.c (insn_code_data): Update accordingly.
6149 (finish_insn_code_data_once, get_static_insn_data): Likewise.
6150 * recog.h (target_recog): Likewise.
6151 (preprocess_insn_constraints): Change parameter to unsigned int.
6152 * recog.c (preprocess_insn_constraints): Likewise.
6153 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
6154 * tree-vect-stmts.c (vectorizable_operation): Simplify.
6156 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
6158 PR rtl-optimization/61657
6159 * loop-iv.c (iv_number_of_iterations): Declare up and down as
6160 unsigned. Remove superflous uint64_t cast.
6162 2014-08-21 Felix Yang <felix.yang@huawei.com>
6163 Jiji Jiang <jiangjiji@huawei.com>
6165 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
6166 argument and get builtin function code directly from CALL.
6167 (gimple_stringop_fixed_value): Modified accordingly.
6168 (gimple_stringops_transform, gimple_stringops_values_to_profile):
6169 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
6171 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
6173 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
6175 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6177 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
6179 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
6180 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
6181 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
6182 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
6183 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
6184 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
6185 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
6186 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
6187 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
6188 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
6190 * match.pd (SIN ) : New Operator.
6191 (TAN) : New Operator.
6192 (mult (SQRT@1 @0) @1) : New simplifier.
6193 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
6194 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6195 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6196 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
6197 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
6198 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
6199 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
6200 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
6201 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
6202 (rdiv @0 (POW:s @1 @2)) : New simplifier.
6204 2015-08-21 Bin Cheng <bin.cheng@arm.com>
6206 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
6207 loop if EXPR is simplified to const value.
6209 2015-08-21 Yury Gribov <y.gribov@samsung.com>
6211 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6212 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
6214 2015-08-21 Richard Biener <rguenther@suse.de>
6217 * gimple-fold.c (replace_stmt_with_simplification): Assert
6218 seq is empty when replacing a call with itself but different
6220 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
6221 a call require that it is const.
6223 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6225 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
6226 * builtins.c (get_object_alignment_2): Adjust.
6227 * varasm.c (align_variable): Likewise.
6228 (get_variable_align): Likewise.
6229 (build_constant_desc): Likewise.
6230 (force_const_mem): Likewise.
6231 * doc/tm.texi.in: Likewise.
6232 * doc/tm.texi: Regenerate.
6234 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6236 * genconfig.c (main): Always define HAVE_cc0.
6237 * recog.c (rest_of_handle_peephole2): Adjust.
6239 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6241 * reorg.c (relax_delay_slots): Don't use #if to check value of
6244 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6246 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
6247 * targhooks.c (default_have_conditional_execution): Adjust.
6249 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
6251 * rtl.h (rtvec_all_equal_p): Declare.
6252 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
6253 * rtl.c (rtvec_all_equal_p): New function.
6254 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
6255 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
6256 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
6257 * config/arm/arm.c (neon_vdup_constant): Likewise.
6258 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
6259 * config/tilegx/constraints.md (W, Y): Likewise.
6260 * config/tilepro/constraints.md (W, Y): Likewise.
6261 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
6262 (classify_immediate): Use unwrap_const_vec_duplicate.
6263 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
6264 (reg_or_v2s8bit_operand): Likewise.
6265 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
6266 (reg_or_v4s8bit_operand): Likewise.
6268 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6270 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
6271 (vec_shasigma_be): New #define.
6272 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
6273 (VPMSUMH): Likewise.
6274 (VPMSUMW): Likewise.
6275 (VPMSUMD): Likewise.
6276 (VPMSUM): New BU_P8V_OVERLOAD_2.
6277 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
6278 entries for VEC_MADD and VEC_VPMSUM.
6280 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
6282 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
6283 Multiply argument avr_n_flash by 64 to match unit of "KiB".
6284 (avr_pgm_check_var_decl): Same.
6286 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
6288 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
6289 initialization of HFmode scalar type (float16_t) to...
6290 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
6293 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
6295 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
6296 having an -mfp16-format.
6298 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
6300 * config/i386/predicates.md (vector_all_ones_operand): Use
6301 CONSTM1_RTX to simplify definition.
6303 2015-08-20 Richard Biener <rguenther@suse.de>
6305 * toplev.c (compile_file): Remove loop calling late_global_decl
6307 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
6308 on decls we assembled.
6310 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
6312 * common/config/aarch64/aarch64-common.c
6313 (AARCH64_CPU_NAME_LENGTH): Delete.
6314 (aarch64_option_extension): New.
6315 (all_extensions): Likewise.
6316 (processor_name_to_arch): Likewise.
6317 (arch_to_arch_name): Likewise.
6319 (all_architectures): Likewise.
6320 (aarch64_get_extension_string_for_isa_flags): Likewise.
6321 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
6323 * config/aarch64/aarch64-protos.h
6324 (aarch64_get_extension_string_for_isa_flags): New.
6325 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
6326 (aarch64_option_print): Get the string to print from
6327 aarch64_get_extension_string_for_isa_flags.
6328 (aarch64_declare_function_name): Likewise.
6329 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
6330 (MCPU_TO_MARCH_SPEC): This.
6331 (ASM_CPU_SPEC): Use it.
6332 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
6333 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
6334 (EXTRA_SPEC_FUNCTIONS): Use it.
6336 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
6338 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
6339 expansion when !ISA_HAS_LWL_LWR.
6340 (mips_block_move_straight): Update the size of elements copied to
6341 account for alignment when !ISA_HAS_LWL_LWR.
6342 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
6344 2015-08-19 Jiong Wang <jiong.wang@arm.com>
6346 * expr.c (expand_expr_real_2): Check gimple statement during
6349 2015-08-19 Magnus Granberg <zorry@gentoo.org>
6351 * common.opt (fstack-protector): Initialize to -1.
6352 (fstack-protector-all): Likewise.
6353 (fstack-protector-strong): Likewise.
6354 (fstack-protector-explicit): Likewise.
6355 * configure.ac: Add --enable-default-ssp.
6356 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
6357 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
6359 * doc/install.texi: Document --enable-default-ssp.
6360 * config.in: Regenerated.
6361 * configure: Likewise.
6363 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
6365 PR rtl-optimization/64164
6366 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
6367 (parm_in_stack_slot_p): ... this. Disregard mode, what
6368 matters is whether the parm will live in a pseudo or a stack
6370 (expand_one_ssa_partition): Deal with params without a default
6371 def. Disregard mode.
6372 * cfgexpand.h: Renamed function declaration.
6373 * tree-ssa-coalesce.c: Adjust.
6374 * function.c (split_complex_args): Allocate stack slot for
6375 unassigned parms before splitting.
6376 (parm_in_unassigned_mem_p): New. Use it instead of
6377 parm_maybe_byref_p throughout this file.
6378 (assign_parm_setup_block): Use it. Accept pseudos in the
6379 expand-assigned rtl.
6380 (assign_parm_setup_reg): Drop BLKmode requirement.
6381 (assign_parm_setup_stack): Allocate and fill in the address of
6382 unassigned MEM parms.
6384 2015-08-19 David Sherwood <david.sherwood@arm.com>
6386 * genmodes.c (emit_mode_unit_size_inline): New function.
6387 (emit_mode_unit_precision_inline): New function.
6388 (emit_insn_modes_h): Emit new #define. Emit new functions.
6389 (emit_mode_unit_size): New function.
6390 (emit_mode_unit_precision): New function.
6391 (emit_mode_adjustments): Add mode_unit_size adjustments.
6392 (emit_insn_modes_c): Emit new arrays.
6393 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
6394 use new inline methods.
6396 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6398 * config/aarch64/aarch64.c (bit_count): Delete prototype
6400 (aarch64_print_operand): Use popcount_hwi instead of the above.
6402 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6404 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
6407 2015-08-19 Marek Polacek <polacek@redhat.com>
6410 * gimple-ssa-isolate-paths.c
6411 (insert_trap_and_remove_trailing_statements): Rename to ...
6412 (insert_trap): ... this. Don't remove trailing statements; split
6414 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
6416 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
6419 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
6420 conditionalize the whole on __GNUC__. Add fallback code
6421 depending neither on undefined nor implementation-defined behaviour.
6423 2015-08-19 Jiong Wang <jiong.wang@arm.com>
6425 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
6426 whitespaces with tab.
6428 2015-08-19 Florian Weimer <fweimer@redhat.com>
6430 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
6431 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
6432 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
6433 Move Name_Ids instantiation to the Prj.Proc package, to avoid
6436 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6438 * config/arm/arm.c (bounds_check): Use %wd print format
6439 for HOST_WIDE_INT arguments.
6441 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
6443 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
6444 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
6445 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
6446 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
6447 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
6448 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
6449 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
6450 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
6451 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
6454 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
6456 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
6457 function.c, graphite-scop-detection.c, haifa-sched.c,
6458 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
6459 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
6460 varasm.c: Remove typedefs of structs.
6462 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
6464 * config/rs6000/altivec.h (vec_adde): New define.
6465 (vec_addec): Likewise.
6466 (vec_double): Likewise.
6467 (vec_bperm): Likewise.
6469 * config/rs6000/rs6000-builtin.def (ADDE): New
6470 BU_ALTIVEC_OVERLOAD_3.
6472 (DOUBLE): New BU_VSX_OVERLOAD_1.
6473 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
6474 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
6475 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
6476 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
6477 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
6478 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
6479 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
6480 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
6481 and P8V_BUILTIN_VEC_VBPERMQ.
6483 2015-08-18 Jason Merrill <jason@redhat.com>
6485 * print-tree.c (print_node): Handle TREE_BINFO.
6487 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6490 * builtins.c (expand_builtin_signbit): Add asserts to make sure
6491 we can expand BUILT_IN_SIGNBIT inline.
6492 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
6493 * doc/extend.texi: Document the type-generic __builtin_signbit.
6495 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
6497 PR rtl-optimization/67218
6498 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
6499 (simplify_unary_operation_1): Use it.
6501 2015-08-18 Marek Polacek <polacek@redhat.com>
6504 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
6505 if the call isn't valid.
6506 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
6507 gimple_call_builtin_p.
6508 (call_may_clobber_ref_p_1): Likewise.
6509 (stmt_kills_ref_p): Likewise.
6511 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
6513 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
6514 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
6515 (mips_hard_regno_scratch_ok): Likewise.
6516 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
6517 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
6519 2015-08-18 Bin Cheng <bin.cheng@arm.com>
6521 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
6522 (determine_value_range): Call refine_value_range_using_guard for
6523 each loop initial condition to improve value range.
6525 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
6527 * config/i386/i386.c: Remove include of fibheap.h.
6529 2015-08-17 Richard Biener <rguenther@suse.de>
6531 PR tree-optimization/67221
6532 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
6533 (sccvn_dom_walker::before_dom_children): Mark backedges of
6534 non-executable blocks as not executable.
6536 2015-08-17 David Sherwood <david.sherwood@arm.com>
6538 * config/arm/arm.c (neon_element_bits): Replace call to
6539 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
6540 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
6541 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
6542 (neon_vdup_lane<mode>): Likewise.
6543 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
6544 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
6545 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
6546 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
6547 * config/spu/spu.c (arith_immediate_p): Likewise.
6548 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
6549 * expr.c (expand_expr_real_2): Likewise.
6550 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
6551 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6552 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
6553 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
6555 * fold-const.c (fold_binary_loc): Replace call to
6556 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
6557 GET_MODE_UNIT_PRECISION (m).
6559 2015-08-17 Mike Stump <mikestump@comcast.net>
6561 * config/arm/arm.c (arm_block_move_unaligned_straight):
6562 Emit normal move instead of unaligned load when source or destination
6563 are appropriately aligned.
6565 2015-08-17 Richard Biener <rguenther@suse.de>
6566 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6569 * match.pd (div (coss (op @0) : New simplifier.
6571 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
6573 PR rtl-optimization/64164
6576 PR rtl-optimization/67000
6579 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6580 * tree-ssa-copyrename.c: Removed.
6581 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6582 -ftree-coalesce-vars.
6583 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6584 * common.opt (ftree-copyrename): Ignore.
6585 (ftree-coalesce-inlined-vars): Likewise.
6586 * doc/invoke.texi: Remove the ignored options above.
6587 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6588 * tree-ssa-coalesce.h: ... here.
6589 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6590 headers required by it.
6591 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6592 across variables when flag_tree_coalesce_vars. Check register
6593 use and promoted modes to allow coalescing. Do not coalesce
6594 maybe-byref parms with SSA_NAMEs of other variables, or
6595 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
6596 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6597 with its member functions to tree-ssa-coalesce.c.
6598 (var_map_base_init): Likewise. Renamed to
6599 compute_samebase_partition_bases.
6600 (partition_view_normal): Drop want_bases parameter.
6601 (partition_view_bitmap): Likewise.
6602 * tree-ssa-live.h: Adjust declarations.
6603 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
6604 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6605 default defs at the entry point.
6606 (dump_part_var_map): New.
6607 (compute_optimized_partition_bases): New, called by...
6608 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6609 of compute_samebase_partition_bases. Adjust.
6610 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6611 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
6612 (ssa_default_def_partition): New.
6613 (get_rtl_for_parm_ssa_default_def): New.
6614 (align_local_variable, add_stack_var): Support anonymous SSA
6616 (defer_stack_allocation): Likewise. Declare earlier.
6617 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6618 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6619 Do no record deferred-allocation marker in
6620 SA.partition_to_pseudo.
6621 (expand_stack_vars): Adjust check for the marker in it.
6622 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6623 redundant MEM attr setting.
6624 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6626 (expand_one_stack_var): ... this. New wrapper to check and
6627 skip already expanded SSA partitions.
6628 (record_alignment_for_reg_var): New, factored out of...
6629 (expand_one_var): ... this.
6630 (expand_one_ssa_partition): New.
6631 (adjust_one_expanded_partition_var): New.
6632 (expand_one_register_var): Check and skip already expanded SSA
6634 (expand_used_vars): Don't create DECLs for anonymous SSA
6635 names. Expand all SSA partitions, then adjust all SSA names.
6636 (pass::execute): Replace the loops that set
6637 SA.partition_to_pseudo from partition leaders and cleared
6638 DECL_RTL for multi-location variables, and that which used to
6639 rename vars and set attrs, with one that clears DECL_RTL and
6640 checks that PARMs and RESULTs default_defs match DECL_RTL.
6641 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6642 * emit-rtl.c: Include stor-layout.h.
6643 (set_reg_attrs_for_parm): Handle NULL decl.
6644 (set_reg_attrs_for_decl_rtl): Take mode from expression if
6646 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
6647 rather than its possibly-NULL DECL.
6648 * explow.c (promote_ssa_mode): New.
6649 * explow.h (promote_ssa_mode): Declare.
6650 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6651 (read_complex_part): Export.
6652 * expr.h (read_complex_part): Declare.
6653 * cfgexpand.h (parm_maybe_byref_p): Declare.
6654 * function.c: Include cfgexpand.h.
6655 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6656 (use_register_for_parm_decl): Wrapper for the above to
6657 special-case the result_ptr.
6658 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6659 (split_complex_args): Take assign_parm_data_all argument.
6660 Pass it to rtl_for_parm. Set up rtl and context for split
6661 args. Reset complex parm before fetching its default decl
6663 (assign_parms_unsplit_complex): Use the default-def complex
6664 parm rtl if it matches the components.
6665 (assign_parms_augmented_arg_list): Adjust.
6666 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6667 multiple locations. Recognize split complex args.
6668 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6669 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6670 (assign_parm_setup_block): Prefer SSA-assigned location, and
6671 fill in its address if the memory location of a maybe-byref
6672 parm was not assigned by cfgexpand.
6673 (assign_parm_setup_reg): Likewise. Adjust its mode as
6674 needed. Use entry_parm for equiv if stack_parm is NULL. Make
6675 sure passed_pointer parms don't need conversion. Copy address
6677 (assign_parm_setup_stack): Prefer SSA-assigned location.
6678 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6679 rtl before testing for pointer bounds. Special-case result_ptr.
6680 (expand_function_start): Maybe reset DECL_RTL of result.
6681 Prefer SSA-assigned location for result and static chain.
6682 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
6683 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
6684 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6685 anonymous SSA names. Use promote_ssa_mode.
6686 (get_temp_reg): Likewise.
6687 (remove_ssa_form): Adjust.
6688 * stor-layout.c (layout_decl): Don't set mem attributes of
6690 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6691 and get its reg_usage for reg invalidation.
6692 (compute_bb_dataflow): Pass it insn.
6693 (emit_notes_in_bb): Likewise.
6695 2015-08-14 Marek Polacek <polacek@redhat.com>
6697 * tree-core.h (tree_base): Fix typo.
6699 2015-08-14 Marek Polacek <polacek@redhat.com>
6702 * gimple.c (infer_nonnull_range_by_attribute): Check that the
6703 nonnull argument position is not outside function arguments.
6705 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
6708 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
6709 'lconst_atomic' with 'const_atomic'.
6710 (atomic_fetch_<optab><mode>): Likewise.
6711 (atomic_<optab>_fetch<mode>): Likewise.
6712 * config/aarch64/iterators.md (lconst-atomic): Move below
6714 (const_atomic): New.
6716 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
6717 Bernd Schmidt <bernds@codesourcery.com>
6719 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
6721 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
6722 (DWARF2_DEBUGGING_INFO): Don't define.
6723 * debug.h (dwarf2_lineno_debug_hooks): Declare.
6724 * toplev.c (process_options): Add a case for it.
6725 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
6726 (dwarf2out_init): Skip most initializations if
6727 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
6729 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
6730 DWARF2_LINENO_DEBUGGING_INFO.
6731 * opts.c (set_debug_level): Likewise.
6733 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
6735 * config/arm/types.md (is_neon_type): Add missing types.
6737 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
6739 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
6741 * config/i386/i386.c (PTA_SKYLAKE): New macros.
6742 (processor_alias_table): Add skylake description.
6743 (enum processor_model): Add skylake processor.
6744 (arch_names_table): Add skylake record.
6745 * doc/invoke.texi: Add skylake item.
6747 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
6749 * ira-int.h: Include recog.h.
6750 * ira-build.c: Don't include recog.h.
6751 * ira-color.c: Likewise.
6752 * ira-conflicts.c: Likewise.
6753 * ira-costs.c: Likewise.
6754 * ira-emit.c: Likewise.
6755 * ira-lives.c: Likewise.
6757 * sched-deps.c: Likewise.
6758 * sel-sched.c: Likewise.
6759 * target-globals.c: Likewise.
6761 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
6764 * reload1.c (elimination_costs_in_insn): Make it obvious to the
6765 compiler that the n_dups and n_operands loop bounds are invariant.
6767 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6769 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
6770 expressions in A and B.
6772 2015-08-13 Richard Biener <rguenther@suse.de>
6774 * tree.c (nonnull_arg_p): Move from ...
6775 * tree-vrp.c (nonnull_arg_p): ... here.
6776 * tree.h (nonnull_arg_p): Declare.
6777 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
6778 here, register ptr != 0 for nonnull_arg_p pointer arguments.
6779 Properly initialize static chain and by-reference result pointer.
6780 (run_scc_vn): Adjust.
6782 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
6784 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
6787 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
6789 * config/aarch64/aarch64-protos.h
6790 (aarch64_gen_atomic_cas): Declare.
6791 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
6792 Choose appropriate instruction pattern for the target.
6793 (aarch64_gen_atomic_cas): New.
6794 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
6795 (atomic_compare_and_swap<mode>_1): Rename to
6796 aarch64_compare_and_swap<mode>. Fix some indentation.
6797 (aarch64_compare_and_swap<mode>_lse): New.
6798 (aarch64_atomic_cas<mode>): New.
6800 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
6802 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
6805 2015-08-13 Richard Biener <rguenther@suse.de>
6807 PR tree-optimization/67191
6808 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
6809 assert we value-numbered last stmts operand because it can validly
6810 trigger for unreachable code.
6812 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6814 PR rtl-optimization/67103
6815 * ifcvt.c (noce_try_store_flag_constants): Move
6816 x = (-(test != 0) & (b - a)) + a transformation to...
6817 (noce_try_cmove): ... Here. Try it if normal conditional
6820 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
6822 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
6824 * config/mips/mips.md (processor): Remove w32 and w64.
6826 2015-08-13 Richard Biener <rguenther@suse.de>
6828 PR tree-optimization/66502
6829 PR tree-optimization/67167
6830 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
6832 (vn_phi_lookup): Adjust.
6833 (vn_phi_insert): Likewise.
6834 (visit_phi): Prefer to value-number to another PHI node
6835 over value-numbering to a PHI argument.
6836 (init_scc_vn): Mark DFS back edges.
6838 2015-08-13 Richard Biener <rguenther@suse.de>
6840 * gimple.h (gcall::code_): New constant static member.
6841 (gcond::code_): Likewise.
6842 * gimple.c (gcall::code_): Define.
6843 (gcond::code_): Likewise.
6844 (is_a_helper <const gcond *>): Add.
6845 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
6846 and forward to a new gcall overload with less checking and a
6847 cheaper way to access the operand.
6848 (gimple_call_lhs_ptr): Likewise.
6849 (gimple_call_set_lhs): Likewise.
6850 (gimple_call_internal_p): Likewise.
6851 (gimple_call_with_bounds_p): Likewise.
6852 (gimple_call_set_with_bounds): Likewise.
6853 (gimple_call_internal_fn): Likewise.
6854 (gimple_call_set_ctrl_altering): Likewise.
6855 (gimple_call_ctrl_altering_p): Likewise.
6856 (gimple_call_fntype): Likewise.
6857 (gimple_call_fn): Likewise.
6858 (gimple_call_fn_ptr): Likewise.
6859 (gimple_call_set_fndecl): Likewise.
6860 (gimple_call_fndecl): Likewise.
6861 (gimple_call_chain): Likewise.
6862 (gimple_call_num_args): Likewise.
6863 (gimple_call_arg): Likewise.
6864 (gimple_call_arg_ptr): Likewise.
6865 (gimple_call_set_arg): Likewise.
6866 (gimple_call_noreturn_p): Likewise.
6867 (gimple_cond_code): Likewise.
6868 (gimple_cond_lhs): Likewise.
6869 (gimple_cond_rhs): Likewise.
6870 (gimple_has_lhs): Reduce checking.
6872 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6875 * match.pd (div (mult @0 @1) @1) : New simplifier.
6877 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6880 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
6881 predicate to allow construction of vector constants using the
6882 VSLDOI vector shift instruction.
6884 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
6887 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
6888 the number of bytes to be shifted left and filled in with either
6889 all zero or all one bits.
6890 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
6892 (output_vec_const_move): On power8, generate XXLORC to generate
6893 a vector constant with all 1's. Do a split if we need to use a
6896 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
6897 properly test for the MSB.
6899 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
6900 vector constants that can be created with VSLDOI.
6902 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
6905 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
6906 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
6907 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
6908 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
6909 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
6910 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6911 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
6912 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
6913 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
6915 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
6917 * config/xtensa/constraints.md (define_constraint "Y"): New
6919 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
6920 * config/xtensa/linux.h (ASM_SPEC): Likewise.
6921 * config/xtensa/predicates.md (move_operand): Match constants
6922 and symbols in the presence of TARGET_AUTO_LITPOOLS.
6923 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
6924 immediate references to TLS data.
6925 (xtensa_emit_move_sequence): Don't force constants to memory in
6926 the presence of TARGET_AUTO_LITPOOLS.
6927 (print_operand): Add 'y' format, same as default, but capable of
6928 printing SF mode constants as well.
6929 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
6930 (movsf_internal): Add movi pattern that loads literal.
6931 (movsf, movdf): Don't force constants to memory in the presence
6932 of TARGET_AUTO_LITPOOLS.
6933 (movdf_internal): Add 'Y' constraint.
6934 * config/xtensa/xtensa.opt (mauto-litpools): New option.
6935 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
6937 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
6939 * config/arm/arm-fpus.def: Replace booleans with feature flags.
6941 * config/arm/arm.c (ARM_FPU): Update macro.
6942 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
6943 (TARGET_FP16): Likewise.
6944 (TARGET_CRYPTO): Likewise.
6945 (TARGET_NEON): Likewise.
6946 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
6949 2015-08-12 Tom de Vries <tom@codesourcery.com>
6953 * doc/install.texi: Remove --with_host_libstdcxx item. Update
6954 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
6955 accordingly. Mention default for --with-stage1-ldflags.
6957 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
6959 * config/arm/arm.h (arm_fpu_feature_set): New.
6960 (ARM_FPU_FSET_HAS): New.
6964 (FPU_FL_CRYPTO): New.
6966 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6968 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
6969 after -mcmodel=large -fPIC sorry.
6971 2015-08-12 Richard Biener <rguenther@suse.de>
6973 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
6974 comparison operand order and commutative ternary op operand order.
6975 (sccvn_dom_walker::cond_stack): New state to track temporary
6977 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
6979 (sccvn_dom_walker::record_cond): Add a single temporary conditional
6981 (sccvn_dom_walker::record_conds): Add a temporary conditional
6982 expressions and all related expressions also true/false.
6983 (sccvn_dom_walker::before_dom_children): Record temporary
6984 expressions based on the controlling condition of a single
6985 predecessor. When trying to simplify a conditional statement
6986 lookup expressions we might have inserted earlier.
6988 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
6991 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
6992 to ARM core registers.
6994 2015-08-12 Nathan Sidwell <nathan@acm.org>
6996 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
6997 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
6999 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
7001 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
7003 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
7005 2015-08-12 Richard Biener <rguenther@suse.de>
7007 * gimple.h (remove_pointer): New trait.
7008 (GIMPLE_CHECK2): New inline template function.
7009 (gassign::code_): New constant static member.
7010 (is_a_helper<const gassign *>): Add.
7011 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
7012 and forward to a new gassign overload with less checking and a
7013 cheaper way to access the operand.
7014 (gimple_assign_lhs_ptr): Likewise.
7015 (gimple_assign_set_lhs): Likewise.
7016 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
7018 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
7020 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
7022 (gimple_assign_rhs_code): Likewise.
7023 * gimple.c (gassign::code_): Define.
7025 2015-08-12 Richard Biener <rguenther@suse.de>
7027 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7028 Eliminate edges marked as not executable by SCCVN.
7029 * tree-ssa-sccvn.c: Include gimple-iterator.h.
7030 (cond_dom_walker): Rename to sccvn_dom_walker.
7031 (sccvn_dom_walker::before_dom_children): Value-number defs
7033 (run_scc_vn): Remove loop value-numbering all SSA names.
7034 Drop not visited SSA names to varying.
7036 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
7038 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7039 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7040 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7041 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7042 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7043 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7044 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7045 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7046 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7048 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
7051 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
7052 to enum feature_priority and feature_list.
7053 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
7054 and isa_names_table.
7056 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
7058 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
7061 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7065 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
7066 account when deciding what was the command-line status.
7068 2015-08-11 Nathan Sidwell <nathan@acm.org>
7070 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
7072 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
7073 we're not the only contributor to target phi.
7075 2015-08-11 Jiong Wang <jiong.wang@arm.com>
7077 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
7080 2015-08-11 Tom de Vries <tom@codesourcery.com>
7082 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
7084 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
7086 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
7088 * config/i386/i386.md (cpu): Remove knl.
7090 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7094 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
7095 open-coded sequence.
7096 * omp-low.c (oacc_process_reduction_data): Remove handline of
7097 GOMP_DEVICE_HOST_NONSHM.
7099 * lto-streamer-in.c (lto_input_mode_table): Adjust to
7100 GET_MODE_INNER changes.
7102 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7103 Ilya Verbin <ilya.verbin@intel.com>
7105 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
7107 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7109 * doc/options.texi (EnabledBy): Document that the argument must be
7111 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
7112 Not enabled by -Wall.
7113 * optc-gen.awk: Give nicer error messages. Detect if the argument
7114 of EnabledBy is not a Common option.
7115 * common.opt (Wnull-dereference): Not enabled by -Wall.
7116 * opt-functions.awk (lang_enabled_by): Nicer error messages.
7118 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
7120 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
7121 model == 0x4f as Broadwell.
7123 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
7125 PR rtl-optimization/67028
7126 * combine.c (simplify_comparison): Fix comment. Rearrange code.
7127 Add test to see if a const_int fits in the new mode.
7129 2015-08-07 DJ Delorie <dj@redhat.com>
7131 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
7133 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
7135 PR rtl-optimization/67029
7136 * ira-color.c: Include "recog.h" before including "ira-int.h".
7137 * target-globals.c: Likewise.
7138 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
7139 adds an alternative_mask argument and use it instead of
7140 preferred_alternatives.
7141 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
7142 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
7143 * sched-deps.c: Include "ira-int.h" after including "ira.h".
7144 (sched_analyze_insn): Update call to
7145 ira_implicitly_set_insn_hard_regs.
7146 * sel-sched.c: Include "ira-int.h" after including "ira.h".
7147 (implicit_clobber_conflict_p): Update call to
7148 ira_implicitly_set_insn_hard_regs.
7150 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
7152 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
7154 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
7157 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
7158 currently_expanding_to_rtl is set.
7160 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
7162 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
7163 * configure: Regenerate.
7165 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7166 Jiong Wang <jiong.wang@arm.com>
7168 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7169 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7170 (REG_CLASS_NAMES): Likewise.
7171 (REG_CLASS_CONTENTS): Likewise.
7172 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7173 (aarch64_register_move_cost): Likewise.
7174 (aarch64_load_symref_appropriately): Invoke the new added pattern if
7176 * config/aarch64/constraints.md (Uc0): New constraint.
7178 2015-08-06 Jiong Wang <jiong.wang@arm.com>
7180 * config/aarch64/constraints.md (Usf): Add the test of
7181 aarch64_is_noplt_call_p.
7183 2015-08-06 Jiong Wang <jiong.wang@arm.com>
7185 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
7187 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
7188 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
7189 (call_symbol): Likewise.
7191 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7193 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
7194 for vectorizing multiplication patterns.
7195 * tree-vectorizer.h: Adjust the number of patterns.
7197 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
7199 * config/i386/sse.md (*vec_concatv2df): Declare added
7200 alternatives as sselog type.
7202 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7204 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
7207 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7209 * config/s390/s390.c (s390_expand_tbegin): Expand either
7210 tbegin_1_z13 or tbegin_1 depending on VX flag.
7211 * config/s390/s390.md ("tbegin_1_z13"): New expander.
7213 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7215 * config/s390/s390.opt: Clarify description for -mzvector
7216 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
7219 2015-08-06 Richard Biener <rguenther@suse.de>
7221 * gimple.h (gimple_call_set_fn): Access op member directly.
7222 (gimple_call_chain_ptr): Likewise.
7223 (gimple_call_set_chain): Likewise.
7224 (gimple_cond_lhs_ptr): Likewise.
7225 (gimple_cond_set_lhs): Likewise.
7226 (gimple_cond_rhs_ptr): Likewise.
7227 (gimple_cond_set_rhs): Likewise.
7228 (gimple_cond_true_label): Likewise.
7229 (gimple_cond_set_true_label): Likewise.
7230 (gimple_cond_set_false_label): Likewise.
7231 (gimple_cond_false_label): Likewise.
7232 (gimple_label_label): Likewise.
7233 (gimple_label_set_label): Likewise.
7234 (gimple_goto_set_dest): Likewise.
7235 (gimple_asm_input_op): Likewise.
7236 (gimple_asm_input_op_ptr): Likewise.
7237 (gimple_asm_set_input_op): Likewise.
7238 (gimple_asm_output_op): Likewise.
7239 (gimple_asm_output_op_ptr): Likewise.
7240 (gimple_asm_set_output_op): Likewise.
7241 (gimple_asm_clobber_op): Likewise.
7242 (gimple_asm_set_clobber_op): Likewise.
7243 (gimple_asm_label_op): Likewise.
7244 (gimple_asm_set_label_op): Likewise.
7245 (gimple_switch_index): Likewise.
7246 (gimple_switch_index_ptr): Likewise.
7247 (gimple_return_retval_ptr): Likewise.
7248 (gimple_return_retval): Likewise.
7249 (gimple_return_set_retval): Likewise.
7250 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
7251 (gimple_switch_label): Likewise.
7252 (gimple_switch_set_label): Likewise.
7254 2015-08-06 Richard Biener <rguenther@suse.de>
7256 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
7257 bool comparison canonicalization and restrict to integers.
7259 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
7261 * coretypes.h (enum symbol_visibility): Relocate here.
7262 * flag-types.h (enum symbol_visibility): Remove.
7263 * tree-core.h (enum symbol_visibility): Remove.
7265 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
7268 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
7269 for no_split_stack function attribute along with
7271 (rs6000_expand_split_stack_prologue): Likewise.
7273 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7274 Jeff Law <law@redhat.com>
7277 * doc/invoke.texi (Wnull-dereference): New.
7278 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
7279 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
7280 Warn for potential NULL dereferences.
7281 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
7282 * ubsan.c (instrument_nonnull_arg): Call
7283 infer_nonnull_range_by_attribute.
7284 (instrument_nonnull_return): Likewise.
7285 * common.opt (Wnull-dereference); New.
7286 * gimple.c (infer_nonnull_range): Remove bool arguments.
7287 (infer_nonnull_range_by_dereference): New.
7288 (infer_nonnull_range_by_attribute): New.
7289 * gimple.h: Update declarations.
7291 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7293 * gensupport.c (sequence_num): Replace with...
7294 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
7295 ...these new variables.
7296 (init_rtx_reader_args_cb): Update accordingly.
7297 (get_num_code_insns): Likewise.
7298 (read_md_rtx): Rework to use a while loop and get_c_test.
7299 Use the new counters. Remove redundant DEFINE_SUBST case.
7300 * genoutput.c (gen_split): Delete.
7301 (main): Don't call it.
7303 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7305 * gensupport.h (get_c_test): Declare.
7306 * gensupport.c (get_c_test): New function.
7307 * genconditions.c (main): Use it.
7308 * genrecog.c (validate_pattern): Likewise.
7309 (match_pattern_1): Likewise. Remove c_test argument.
7310 (match_pattern): Update accordingly and remove c_test argument.
7311 (main): Update accordingly.
7313 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7315 * gensupport.h (get_num_insn_codes): Declare.
7316 * gensupport.c (get_num_insn_codes): New function.
7317 * genattrtab.c (optimize_attrs): Rename max_insn_code to
7319 (main): Likewise. Use get_num_insn_codes.
7320 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
7322 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7325 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
7326 is zero- rather than sign-extended.
7328 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7330 * target-insns.def (can_extend): Delete.
7332 2015-08-05 Richard Biener <rguenther@suse.de>
7334 PR tree-optimization/67121
7335 * tree-if-conv.c (combine_blocks): Clear range-info produced
7336 by stmts no longer executed conditionally.
7338 2015-08-05 Nick Clifton <nickc@redhat.com>
7340 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
7341 to allow identical far pointers to remain.
7343 2015-08-05 Richard Biener <rguenther@suse.de>
7346 * match.pd: Compare address bases with == if they are decls
7347 or SSA names, not operand_equal_p. Otherwise fail.
7349 2015-08-05 Richard Biener <rguenther@suse.de>
7351 PR tree-optimization/67055
7352 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
7355 * g++.dg/torture/pr67055.C: New testcase.
7357 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
7359 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
7361 (define_attr "enabled"): Handle avx521vl and noavx512vl.
7362 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
7363 AVX-512 alternative out of SSE.
7364 (define_insn "*vec_concatv2df"): Ditto.
7366 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
7368 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
7369 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
7370 CODE_FOR_avx_ptestv4di.
7371 * config/i386/sse.md (define_mode_iterator V_AVX): New.
7372 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
7373 (define_insn "avx_ptest256"): Merge this ...
7374 (define_insn "sse4_1_ptest"): And this ...
7375 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
7377 2015-08-05 Richard Biener <rguenther@suse.de>
7379 PR tree-optimization/67109
7380 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
7381 against too big groups. Print whether this is a load or store
7382 group. Rename from ...
7383 (vect_analyze_group_access): ... this which is now a wrapper
7384 dissolving an invalid group.
7385 (vect_analyze_data_ref_accesses): Print whether this is a load
7388 2015-08-05 Richard Biener <rguenther@suse.de>
7391 * match.pd: Guard const_binop result checking against NULL_TREE
7394 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
7396 * cse.c (cse_insn): Restoring old behaviour for src_eqv
7397 when dest and value in the REG_EQUAL are same and dest
7400 2015-08-04 Anatoly Sokolov <aesok@post.ru>
7402 * config/moxie/moxie.h (PRINT_OPERAND,
7403 PRINT_OPERAND_ADDRESS): Remove macros.
7404 * config/moxie/moxie-protos.h (moxie_print_operand,
7405 moxie_print_operand_address): Remove declaration.
7406 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
7407 TARGET_PRINT_OPERAND_ADDRESS): Define.
7408 (moxie_print_operand, moxie_print_operand_address): Make static.
7410 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7413 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
7414 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
7416 2015-08-04 Richard Biener <rguenther@suse.de>
7418 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
7420 (dt_operand::gen_gimple_expr): Adjust.
7422 2015-08-04 Richard Biener <rguenther@suse.de>
7424 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
7425 bool compares on RHS.
7426 * match.pd: Add X ==/!= !X is false/true pattern.
7428 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
7430 * config/aarch64/aarch64.c: Change inner loop statement cost
7431 to be consistent with other targets.
7433 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
7435 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
7438 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
7440 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
7441 (machine_function): Remove pseudos field.
7443 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7445 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
7446 Exit early and use target_option_current_node if processing current
7449 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7451 * doc/extend.texi (AArch64 Function Attributes): New node.
7452 (AArch64 Pragmas): Likewise.
7454 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7456 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
7457 Initialize simd builtins if TARGET_SIMD.
7458 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
7459 Make sure that the builtins are initialized only once no matter how
7460 many times the function is called.
7461 (aarch64_init_builtins): Unconditionally initialize crc builtins.
7462 (aarch64_relayout_simd_param): New function.
7463 (aarch64_simd_expand_args): Use above during argument expansion.
7464 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
7465 simd builtins if TARGET_SIMD.
7466 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
7468 (aarch64_relayout_simd_types): Likewise.
7470 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7472 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
7473 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
7474 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
7475 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
7477 (aarch64_reset_previous_fndecl): New function.
7478 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
7480 * config/aarch64/aarch64-c.c: New file.
7481 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
7482 Push and pop options at beginning and end. Remove ifdef
7483 __ARM_FEATURE_CRC32.
7484 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
7485 Add pragma +nothing+simd and +nothing+crypto where appropriate.
7486 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
7487 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
7489 (aarch64_register_pragmas): Likewise.
7490 (aarch64_reset_previous_fndecl): Likewise.
7491 (aarch64_process_target_attr): Likewise.
7492 (aarch64_override_options_internal): Likewise.
7494 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7496 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
7498 (aarch64_can_inline_p): Likewise.
7499 (TARGET_CAN_INLINE_P): Define.
7501 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7503 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
7504 Remove static. Handle OPT_mgeneral_regs_only,
7505 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
7506 OPT_momit_leaf_frame_pointer.
7507 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
7508 (aarch64_attr_opt_type): New enum.
7509 (aarch64_attribute_info): New struct.
7510 (aarch64_handle_attr_arch): New function.
7511 (aarch64_handle_attr_cpu): Likewise.
7512 (aarch64_handle_attr_tune): Likewise.
7513 (aarch64_handle_attr_isa_flags): Likewise.
7514 (aarch64_attributes): New table.
7515 (aarch64_process_one_target_attr): New function.
7516 (num_occurences_in_str): Likewise.
7517 (aarch64_process_target_attr): Likewise.
7518 (aarch64_option_valid_attribute_p): Likewise.
7519 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
7520 * config/aarch64/aarch64-protos.h: Include input.h
7521 (aarch64_handle_option): Declare prototype.
7523 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7525 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
7526 * config/aarch64/aarch64.c: Include target-globals.h
7527 (aarch64_previous_fndecl): New variable.
7528 (aarch64_set_current_function): New function.
7529 (TARGET_SET_CURRENT_FUNCTION): Define.
7531 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7533 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
7534 (explicit_arch): Likewise.
7535 (x_aarch64_isa_flags): Likewise.
7536 (mgeneral-regs-only): Mark as Save.
7537 (mfix-cortex-a53-835769): Likewise.
7538 (mcmodel=): Likewise.
7539 (mstrict-align): Likewise.
7540 (momit-leaf-frame-pointer): Likewise.
7541 (mtls-dialect): Likewise.
7542 (master=): Likewise.
7543 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
7544 (aarch64_isa_flags): Remove extern declaration.
7545 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
7546 to indicate success or failure.
7547 (aarch64_validate_march): Likewise.
7548 (aarch64_validate_mtune): Likewise.
7549 (aarch64_isa_flags): Delete.
7550 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
7551 instead of aarch64_isa_flags.
7552 (aarch64_get_tune_cpu): New function.
7553 (aarch64_get_arch): Likewise.
7554 (aarch64_override_options): Use above and set up explicit_tune_core
7556 (aarch64_print_extension): Move earlier in file. Add isa_flags
7557 argument and use that instead of the global aarch64_isa_flags.
7558 (aarch64_option_save): New function.
7559 (aarch64_option_restore): Likewise.
7560 (aarch64_option_print): Likewise.
7561 (aarch64_declare_function_name): Likewise.
7562 (aarch64_start_file): Delete.
7563 (TARGET_ASM_FILE_START): Do not define.
7564 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
7565 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
7568 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7570 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
7571 flag_omit_leaf_frame_pointer to 2.
7573 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7575 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
7577 (TARGET_FIX_ERR_A53_835769): New macro.
7578 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
7579 handling of opts->x_aarch64_fix_a53_err835769.
7580 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
7581 than aarch64_fix_a53_err835769.
7582 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
7583 * config/aarch64/aarch64-linux.h: Likewise.
7585 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
7587 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
7588 ix86_expand_int_movcc as boolean.
7590 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7592 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
7593 (aarch64_cpu_string): Likewise.
7594 (aarch64_tune_string): Likewise.
7595 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
7596 (aarch64_parse_extension): Return aarch64_parse_opt_result.
7597 Add extra argument to put result into.
7598 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
7599 (aarch64_parse_cpu): Add arguments to put results into. Return
7600 aarch64_parse_opt_result.
7601 (aarch64_parse_tune): Likewise.
7602 (aarch64_override_options_after_change_1): New function.
7603 (aarch64_override_options_internal): New function.
7604 (aarch64_validate_mcpu): Likewise.
7605 (aarch64_validate_march): Likewise.
7606 (aarch64_validate_mtune): Likewise.
7607 (aarch64_override_options): Update to reflect above changes.
7608 Move some logic into aarch64_override_options_internal.
7609 Initialize target_option_default_node and target_option_current_node.
7610 (aarch64_override_options_after_change): Move logic into
7611 aarch64_override_options_after_change_1 and call it with global_options.
7612 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
7613 flag values from that.
7615 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7617 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7618 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
7619 * config/aarch64/aarch64.c (struct processor): Add arch field.
7620 (all_architectures): Handle above, move above all_cores.
7621 (all_cores): Handle above.
7622 (aarch64_parse_arch): Handle above changes.
7623 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
7624 above. Update comments.
7625 (armv8.1-a): Likewise.
7626 * config/aarch64/aarch64-cores.def: Update according to above.
7627 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
7628 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
7629 aarch64_arch_driver_info.
7631 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7633 * config/aarch64/aarch64.c (struct processor): Add ident field.
7634 Rename core sched_core.
7635 (all_cores): Handle above changes.
7636 (all_architectures): Likewise.
7637 (aarch64_parse_arch): Likewise.
7638 (aarch64_override_options): Likewise.
7640 2015-08-04 Richard Biener <rguenther@suse.de>
7642 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
7643 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
7644 comparisons embedded in [VEC_]COND_EXPRs.
7646 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
7648 * tree-if-conv.c: Fix various typos in comments.
7649 * tree-vect-stmts.c: Likewise.
7651 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
7653 PR tree-optimization/67043
7654 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
7655 preheader after hoisting invariant in it.
7656 (find_defs): Force recomputation of all luids.
7658 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
7660 * config/rs6000/htm.md (tabort.): Restrict the source operand to
7661 using a base register.
7663 2015-08-03 David Malcolm <dmalcolm@redhat.com>
7665 * main.c (main): Pass in NULL for toplev's external_timer.
7666 * timevar.c: Include coretypes.h.
7667 (class timer::named_items): New.
7668 (timer::named_items::named_items): New.
7669 (timer::named_items::~named_items): New.
7670 (timer::named_items::push): New.
7671 (timer::named_items::pop): New.
7672 (timer::named_items::print): New.
7673 (timer::timer): Initialize field "m_jit_client_items".
7674 (timer::~timer): New.
7675 (timer::push): Move bulk of implementation to...
7676 (timer::push_internal): ...here. New function.
7677 (timer::pop): Move bulk of implementation to...
7678 (timer::pop_internal): ...here. New function.
7679 (timer::push_client_item): New.
7680 (timer::pop_client_item): New.
7681 (timer::print_row): New function, taken from timer::print.
7682 (timer::print): Print "GCC items" header if we also have client
7683 items. Move row-printing to timer::print_row. Print any client
7685 (timer::get_topmost_item_name): New method.
7686 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
7687 (TV_JIT_CLIENT_CODE): New.
7688 * timevar.h (timer::push_client_item): New declaration.
7689 (timer::pop_client_item): New declaration.
7690 (timer::get_topmost_item_name): New method.
7691 (timer::push_internal): New declaration.
7692 (timer::pop_internal): New declaration.
7693 (timer::print_row): New declaration.
7694 (timer::named_items): New declaration.
7695 (timer::m_jit_client_items): New field.
7696 (timer): Add friend class named_items.
7697 (auto_timevar::auto_timevar): Add timer param.
7698 (auto_timevar::~auto_timevar): Use field "m_timer".
7699 (auto_timevar::m_timer): New field.
7700 * toplev.c (initialize_rtl): Add g_timer as param when
7701 constructing auto_timevar instance.
7702 (toplev::toplev): Add "external_timer" param, and use it to
7703 initialize the "g_timer" global if non-NULL.
7704 (toplev::~toplev): If this created "g_timer", delete it.
7705 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
7706 with "external_timer" timer *.
7708 2015-08-03 Alexander Basov <coohpt@gmail.com>
7713 * cfgexpand.c (expand_one_var): Add check if stack is going to
7714 be used in naked function.
7715 * expr.c (expand_expr_addr_expr_1): Remove excess checking
7716 whether expression should not reside in MEM.
7717 * function.c (use_register_for_decl): Do not use registers for
7718 non-register things (volatile, float, BLKMode) in naked functions.
7720 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
7723 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
7724 Adjust splits to match new pattern.
7726 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7728 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
7731 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
7732 point in VSX registers.
7734 * config/rs6000/constraints.md (wb constraint): Document unused
7736 (we constraint): Likewise.
7737 (wo constraint): Likewise.
7738 (wp constraint): New constraint for IEEE 128-bit floating point in
7740 (wq constraint): Likewise.
7742 * config/rs6000/predicates.md (easy_fp_constant): Add support for
7743 IEEE 128-bit floating point in VSX registers.
7744 (easy_scalar_constant): Likewise.
7746 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
7747 constraints (wp, wq) for IEEE 128-bit floating point in VSX
7749 (rs6000_init_hard_regno_mode_ok): Likewise.
7751 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
7752 floating point in VSX registers.
7761 (vsx_le_permute_<mode>): Add support to properly swap bytes for
7762 IEEE 128-bit floating point in VSX registers on little endian.
7763 (vsx_le_undo_permute_<mode>): Likewise.
7764 (vsx_le_perm_load_<mode>): Likewise.
7765 (vsx_le_perm_store_<mode>): Likewise.
7766 (splitters for IEEE 128-bit fp moves): Likewise.
7768 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
7771 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
7772 floating point in VSX registers.
7775 * doc/md.text (Machine Constraints): Document wp and wq
7776 constraints on PowerPC.
7778 2015-08-03 Jeff Law <law@redhat.com>
7781 PR gcov-profile/66899
7782 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
7783 iterate over the jump threading paths when an element in the
7784 jump threading paths array is eliminated.
7786 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
7788 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
7790 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
7792 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
7793 is_use_properly_guarded the variable def_preds. Free its
7794 contents before returning.
7795 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
7796 (is_use_properly_guarded): Replace local variable def_preds with
7797 a parameter. Adjust accordingly. Only update *def_preds if it's
7800 2015-08-03 Richard Biener <rguenther@suse.de>
7802 * genmatch.c (simplify::for_subst_vec): New member.
7803 (binary_ok): New helper for for lowering.
7804 (lower_for): Delay substituting operators into result expressions
7805 if we can merge the results eventually again.
7806 (capture_info::walk_result): Adjust for user_id appearing as
7807 result expression operator.
7808 (expr::gen_transform): Likewise.
7809 (dt_simplify::gen_1): Likewise.
7810 (dt_simplify::gen): Pass not substituted operators to tail
7811 functions or initialize local variable with it.
7812 (decision_tree::gen): Adjust function signature.
7813 * match.pd: Fix tests against global code and add default
7814 cases to switch stmts.
7816 2015-08-03 Richard Biener <rguenther@suse.de>
7818 * genmatch.c (dt_simplify::gen): Create captures array
7819 with an initializer.
7821 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7823 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
7824 the host compiler is affected by placement new aliasing bug.
7825 * configure: Regenerate.
7826 * Makefile.in (ALIASING_FLAGS): New variable.
7827 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
7829 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7832 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
7833 (negmulsf3_vfp): Likewise.
7834 (muldf3negdf_vfp): Disable for -frounding-math.
7835 (mulsf3negsf_vfp): Likewise.
7836 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
7837 fix MULT cost with -frounding-math.
7839 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7841 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
7842 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
7843 explicit. Prefer to add the flag whenever possible.
7844 (noce_process_if_block): Try noce_try_store_flag_constants before
7847 2015-08-03 Richard Biener <rguenther@suse.de>
7849 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
7850 New hash-map to record equivalent transforms.
7851 (dt_node::analyze): Populate the equivalent transforms hash-map.
7852 (dt_simplify::info): Add reference to hash-map entry.
7853 (dt_simplify::gen): If we have split out a function for the
7854 transform, generate a call to it.
7855 (sinfo_hashmap_traits::hash): New function.
7856 (compare_op): New helper function for ...
7857 (sinfo_hashmap_traits::equal_keys): ... this new function.
7858 (decision_tree::gen): Split out common equivalent transforms
7861 2015-08-03 Richard Biener <rguenther@suse.de>
7863 * gimple-fold.c (fold_gimple_assign): Remove folding of
7864 the comparison in COND_EXPRs.
7866 2015-08-03 Richard Biener <rguenther@suse.de>
7868 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
7869 on the rhs of assignments first simplify the embedded
7872 2015-08-03 Richard Biener <rguenther@suse.de>
7874 PR tree-optimization/66917
7875 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
7877 (DR_VECT_AUX): New macro.
7878 (set_dr_misalignment): Adjust.
7879 (dr_misalignment): Likewise.
7880 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7881 Compute whether the base is at least element aligned.
7882 * tree-vect-stmts.c (ensure_base_align): Adjust.
7883 (vectorizable_store): If the base is not element aligned
7884 preserve alignment of the original access if misalignment is unknown.
7885 (vectorizable_load): Likewise.
7887 2015-08-02 Martin Sebor <msebor@redhat.com>
7889 * c-family/c.opt (-Wframe-address): New warning option.
7890 * doc/invoke.texi (Wframe-address): Document it.
7891 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
7892 Clarify possible effects of calling the functions with non-zero
7893 arguments and mention -Wframe-address.
7894 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
7896 2015-08-01 Michael Collison <michael.collison@linaro.org
7897 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7899 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
7900 (*arm_umin_cmp): Likewise.
7902 2015-08-01 Caroline Tice <cmtice@google.com>
7905 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
7907 (vtbl_find_mangled_name): New function.
7908 (vtbl_register_mangled_name): New function.
7909 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
7910 mangled name in mangled name vectors.
7911 (find_or_create_vtbl_map_node): Ditto.
7912 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
7913 update recursion_depth on function entry; pass it to every recursive
7914 call; automatically exit if depth > 25 (give up looking at that point).
7915 (verify_bb_vtables): Initialize recursion_depth and pass it to
7916 var_is_used_for_virtual_call_p.
7917 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
7918 global variable decls.
7919 (vtbl_register_mangled_name): New extern function decl.
7921 2015-08-01 Tom de Vries <tom@codesourcery.com>
7923 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
7925 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
7927 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
7928 operation_no_trapping_overflow. Allow non-overflow operations.
7929 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
7932 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
7935 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
7937 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7939 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
7940 Enable for TARGET_32BIT.
7941 (*if_move_neg): Likewise.
7943 2015-07-31 Nick Clifton <nickc@redhat.com>
7945 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
7946 Returns true for __model__.
7947 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7949 2015-07-31 Alan Modra <amodra@gmail.com>
7952 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
7953 (rs6000_emit_prologue): Set it.
7954 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
7956 2015-07-31 Richard Biener <rguenther@suse.de>
7958 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
7959 -> X == (C1 ^ C2) which is already implemented in match.pd.
7960 Remove redundant dispatching to fold_relational_const.
7961 Move unordered self and NaN compares ...
7962 * match.pd: ... as patterns here. Remove some stray captures
7965 2015-07-31 Petr Murzin <petr.murzin@intel.com>
7967 * config/i386/i386.c
7968 (bdesc_special_args): Convert mask type from signed to unsigned for
7970 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
7971 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
7972 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
7973 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
7974 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
7975 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
7976 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
7977 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
7978 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
7979 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
7980 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
7981 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
7982 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
7983 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
7984 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
7985 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
7986 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
7987 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
7988 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
7989 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
7990 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
7991 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
7992 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
7993 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
7994 * config/i386/i386-builtin-types.def
7995 (V16QI_FTYPE_V16SI): Remove.
7996 (V8DF_FTYPE_V8SI): Ditto.
7997 (V8HI_FTYPE_V8DI): Ditto.
7998 (V8SI_FTYPE_V8DI): Ditto.
7999 (V8SF_FTYPE_V8DF): Ditto.
8000 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
8001 (V16HI_FTYPE_V16SI): Ditto.
8002 (V16SF_FTYPE_V16HI): Ditto.
8003 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
8004 (V16SF_FTYPE_V16SI): Ditto.
8005 (V4DI_FTYPE_V4DI): Ditto.
8006 (V16SI_FTYPE_V16SF): Ditto.
8007 (V16SF_FTYPE_FLOAT): Ditto.
8008 (V8DF_FTYPE_DOUBLE): Ditto.
8009 (V8DI_FTYPE_INT64): Ditto.
8010 (V8DI_FTYPE_V4DI): Ditto.
8011 (V16QI_FTYPE_V8DI): Ditto.
8012 (UINT_FTYPE_V4SF): Ditto.
8013 (UINT64_FTYPE_V4SF): Ditto.
8014 (UINT_FTYPE_V2DF): Ditto.
8015 (UINT64_FTYPE_V2DF): Ditto.
8016 (V16SI_FTYPE_V16SI): Ditto.
8017 (V8DI_FTYPE_V8DI): Ditto.
8018 (V16SI_FTYPE_PV4SI): Ditto.
8019 (V16SF_FTYPE_PV4SF): Ditto.
8020 (V8DI_FTYPE_PV2DI): Ditto.
8021 (V8DF_FTYPE_PV2DF): Ditto.
8022 (V4DI_FTYPE_PV2DI): Ditto.
8023 (V4DF_FTYPE_PV2DF): Ditto.
8024 (V16SI_FTYPE_PV2SI): Ditto.
8025 (V16SF_FTYPE_PV2SF): Ditto.
8026 (V8DI_FTYPE_PV4DI): Ditto.
8027 (V8DF_FTYPE_PV4DF): Ditto.
8028 (V8SF_FTYPE_FLOAT): Ditto.
8029 (V4SF_FTYPE_FLOAT): Ditto.
8030 (V4DF_FTYPE_DOUBLE): Ditto.
8031 (V8SF_FTYPE_PV4SF): Ditto.
8032 (V8SI_FTYPE_PV4SI): Ditto.
8033 (V4SI_FTYPE_PV2SI): Ditto.
8034 (V8SF_FTYPE_PV2SF): Ditto.
8035 (V8SI_FTYPE_PV2SI): Ditto.
8036 (V16SF_FTYPE_PV8SF): Ditto.
8037 (V16SI_FTYPE_PV8SI): Ditto.
8038 (V8DI_FTYPE_V8SF): Ditto.
8039 (V4DI_FTYPE_V4SF): Ditto.
8040 (V2DI_FTYPE_V4SF): Ditto.
8041 (V64QI_FTYPE_QI): Ditto.
8042 (V32HI_FTYPE_HI): Ditto.
8043 (V8UHI_FTYPE_V8UHI): Ditto.
8044 (V16UHI_FTYPE_V16UHI): Ditto.
8045 (V32UHI_FTYPE_V32UHI): Ditto.
8046 (V2UDI_FTYPE_V2UDI): Ditto.
8047 (V4UDI_FTYPE_V4UDI): Ditto.
8048 (V8UDI_FTYPE_V8UDI): Ditto.
8049 (V4USI_FTYPE_V4USI): Ditto.
8050 (V8USI_FTYPE_V8USI): Ditto.
8051 (V16USI_FTYPE_V16USI): Ditto.
8052 (V2DF_FTYPE_V2DF_UINT64): Ditto.
8053 (V2DI_FTYPE_V2DF_V2DF): Ditto.
8054 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
8055 (V8DF_FTYPE_V8DF_V8DI): Ditto.
8056 (V4SF_FTYPE_V4SF_UINT64): Ditto.
8057 (V4SI_FTYPE_V4SF_V4SF): Ditto.
8058 (V16SF_FTYPE_V16SF_V16SI): Ditto.
8059 (V64QI_FTYPE_V32HI_V32HI): Ditto.
8060 (V32HI_FTYPE_V16SI_V16SI): Ditto.
8061 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8062 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
8063 (V32HI_FTYPE_V64QI_V64QI): Ditto.
8064 (V32HI_FTYPE_V32HI_V32HI): Ditto.
8065 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
8066 (V16SI_FTYPE_V16SI_V4SI): Ditto.
8067 (V16SI_FTYPE_V16SI_V16SI): Ditto.
8068 (V16SI_FTYPE_V32HI_V32HI): Ditto.
8069 (V16SI_FTYPE_V16SI_SI): Ditto.
8070 (V8DI_FTYPE_V8DI_V8DI): Ditto.
8071 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
8072 (V8DI_FTYPE_V16SI_V16SI): Ditto.
8073 (V8DI_FTYPE_V8DI_V2DI): Ditto.
8074 (QI_FTYPE_QI): Ditto.
8075 (SI_FTYPE_SI): Ditto.
8076 (DI_FTYPE_DI): Ditto.
8077 (QI_FTYPE_QI_QI): Ditto.
8078 (QI_FTYPE_QI_INT): Ditto.
8079 (HI_FTYPE_HI_INT): Ditto.
8080 (SI_FTYPE_SI_INT): Ditto.
8081 (DI_FTYPE_DI_INT): Ditto.
8082 (HI_FTYPE_V16QI_V16QI): Ditto.
8083 (SI_FTYPE_V32QI_V32QI): Ditto.
8084 (DI_FTYPE_V64QI_V64QI): Ditto.
8085 (QI_FTYPE_V8HI_V8HI): Ditto.
8086 (HI_FTYPE_V16HI_V16HI): Ditto.
8087 (SI_FTYPE_V32HI_V32HI): Ditto.
8088 (QI_FTYPE_V4SI_V4SI): Ditto.
8089 (QI_FTYPE_V8SI_V8SI): Ditto.
8090 (QI_FTYPE_V2DI_V2DI): Ditto.
8091 (QI_FTYPE_V4DI_V4DI): Ditto.
8092 (QI_FTYPE_V8DI_V8DI): Ditto.
8093 (HI_FTYPE_V16SI_V16SI): Ditto.
8094 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
8095 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
8096 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
8097 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
8098 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
8099 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
8100 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
8101 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
8102 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
8103 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
8104 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
8105 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
8106 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
8107 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
8108 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
8109 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
8110 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
8111 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
8112 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
8113 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
8114 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
8115 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
8116 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
8117 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
8118 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
8119 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
8120 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
8121 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
8122 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
8123 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
8124 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
8125 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
8126 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
8127 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
8128 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
8129 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
8130 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
8131 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
8132 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
8133 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
8134 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
8135 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
8136 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
8137 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
8138 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
8139 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
8140 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
8141 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
8142 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
8143 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
8144 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
8145 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
8146 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
8147 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
8148 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
8149 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
8150 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
8151 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
8152 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
8153 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
8154 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
8155 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
8156 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
8157 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
8158 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
8159 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
8160 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
8161 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
8162 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
8163 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
8164 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
8165 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
8166 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
8167 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
8168 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
8169 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
8170 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
8171 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
8172 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
8173 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
8174 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
8175 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
8176 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
8177 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
8178 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
8179 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
8180 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
8181 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
8182 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
8183 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
8184 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
8185 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
8186 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
8187 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
8188 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
8189 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
8190 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
8191 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
8192 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
8193 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
8194 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
8195 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8196 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8197 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8198 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
8199 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
8200 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
8201 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
8202 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
8203 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
8204 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
8205 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
8206 (HI_FTYPE_HI): Ditto.
8207 (HI_FTYPE_V16QI): Ditto.
8208 (SI_FTYPE_V32QI): Ditto.
8209 (DI_FTYPE_V64QI): Ditto.
8210 (QI_FTYPE_V8HI): Ditto.
8211 (HI_FTYPE_V16HI): Ditto.
8212 (SI_FTYPE_V32HI): Ditto.
8213 (QI_FTYPE_V4SI): Ditto.
8214 (QI_FTYPE_V8SI): Ditto.
8215 (HI_FTYPE_V16SI): Ditto.
8216 (QI_FTYPE_V2DI): Ditto.
8217 (QI_FTYPE_V4DI): Ditto.
8218 (QI_FTYPE_V8DI): Ditto.
8219 (V16QI_FTYPE_HI): Ditto.
8220 (V32QI_FTYPE_SI): Ditto.
8221 (V64QI_FTYPE_DI): Ditto.
8222 (V8HI_FTYPE_QI): Ditto.
8223 (V16HI_FTYPE_HI): Ditto.
8224 (V32HI_FTYPE_SI): Ditto.
8225 (V4SI_FTYPE_QI): Ditto.
8226 (V4SI_FTYPE_HI): Ditto.
8227 (V8SI_FTYPE_QI): Ditto.
8228 (V8SI_FTYPE_HI): Ditto.
8229 (V2DI_FTYPE_QI): Ditto.
8230 (V4DI_FTYPE_QI): Ditto.
8231 (HI_FTYPE_HI_HI): Ditto.
8232 (SI_FTYPE_SI_SI): Ditto.
8233 (DI_FTYPE_DI_DI): Ditto.
8234 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
8235 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
8236 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
8237 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
8238 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
8239 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
8240 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
8241 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
8242 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
8243 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
8244 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
8245 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
8246 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
8247 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
8248 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
8249 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
8250 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
8251 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
8252 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
8253 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
8254 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
8255 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
8256 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
8257 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
8258 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
8259 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
8260 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
8261 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
8262 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
8263 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
8264 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
8265 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
8266 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
8267 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
8268 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
8269 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
8270 (V16SI_FTYPE_HI): Ditto.
8271 (V8DI_FTYPE_QI): Ditto.
8272 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
8273 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
8274 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
8275 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
8276 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
8277 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
8278 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
8279 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
8280 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
8281 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
8282 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
8283 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
8284 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
8285 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
8286 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
8287 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
8288 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
8289 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
8290 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
8291 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
8292 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
8293 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
8294 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
8295 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
8296 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
8297 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
8298 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
8299 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
8300 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
8301 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
8302 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
8303 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
8304 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
8305 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
8306 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
8307 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
8308 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
8309 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
8310 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
8311 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
8312 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
8313 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
8314 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
8315 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
8316 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
8317 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
8318 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
8319 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
8320 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
8321 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
8322 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
8323 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
8324 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
8325 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
8326 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
8327 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
8328 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
8329 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
8330 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
8331 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
8332 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
8333 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
8334 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
8335 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
8336 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
8337 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
8338 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
8339 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
8340 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
8341 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
8342 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
8343 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
8344 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
8345 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
8346 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
8347 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
8348 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
8349 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
8350 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
8351 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
8352 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
8353 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
8354 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
8355 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
8356 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
8357 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
8358 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
8359 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
8360 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
8361 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
8362 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
8363 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
8364 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
8365 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
8366 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
8367 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
8368 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
8369 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
8370 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
8371 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
8372 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
8373 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
8374 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
8375 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
8376 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
8377 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
8378 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
8379 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
8380 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
8381 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
8382 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
8383 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
8384 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
8385 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
8386 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
8387 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
8388 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
8389 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
8390 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
8391 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
8392 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
8393 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
8394 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
8395 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
8396 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
8397 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
8398 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
8399 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
8400 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
8401 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
8402 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
8403 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
8404 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
8405 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
8406 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
8407 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
8408 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
8409 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
8410 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
8411 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
8412 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
8413 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
8414 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
8415 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
8416 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
8417 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
8418 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
8419 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
8420 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
8421 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
8422 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
8423 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
8424 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
8425 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
8426 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
8427 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
8428 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
8429 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
8430 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
8431 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
8432 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
8433 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
8434 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
8435 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
8436 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
8437 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
8438 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
8439 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
8440 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
8441 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
8442 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
8443 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
8444 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
8445 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
8446 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
8447 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
8448 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
8449 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
8450 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
8451 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
8452 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
8453 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
8454 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
8455 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
8456 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
8457 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
8458 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
8459 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
8460 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
8461 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
8462 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
8463 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
8464 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
8465 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
8466 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
8467 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
8468 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
8469 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
8470 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
8471 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
8472 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
8473 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
8474 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
8475 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
8476 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
8477 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
8478 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
8479 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
8480 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
8481 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
8482 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
8483 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
8484 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
8485 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
8486 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
8487 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
8488 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
8489 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
8490 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
8491 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
8492 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
8493 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
8494 (QI_FTYPE_V8DF_INT_QI): Ditto.
8495 (QI_FTYPE_V4DF_INT_QI): Ditto.
8496 (QI_FTYPE_V2DF_INT_QI): Ditto.
8497 (HI_FTYPE_V16SF_INT_HI): Ditto.
8498 (QI_FTYPE_V8SF_INT_QI): Ditto.
8499 (QI_FTYPE_V4SF_INT_QI): Ditto.
8500 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
8502 2015-07-31 Richard Biener <rguenther@suse.de>
8504 * gimple-fold.c (fold_gimple_assign): Remove folding of
8507 2015-07-31 Tom de Vries <tom@codesourcery.com>
8509 PR tree-optimization/66846
8510 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
8511 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
8512 (expand_omp_target) [ENABLE_CHECKING]: Same.
8513 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
8514 cfun if !LOOPS_NEED_FIXUP.
8515 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
8516 that omp_for already has its own loop struct.
8517 * tree-parloops.c (create_phi_for_local_result)
8518 (create_call_for_reduction): Handle simple latch bb.
8519 (create_parallel_loop): Add simple latch bb to preserve
8520 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
8521 (gen_parallel_loop): Remove call to cancel_loop_tree.
8522 (parallelize_loops): Skip loops that are inner loops of parallelized
8524 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
8525 verify_loop_structure.
8527 2015-07-30 Anatoly Sokolov <aesok@post.ru>
8529 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
8530 * config/v850/v850.md (RV_REGNUM): New constants.
8531 * config/v850/v850.c (v850_libcall_value): New functions.
8532 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
8533 (TARGET_LIBCALL_VALUE): Define.
8535 2015-07-30 Anatoly Sokolov <aesok@post.ru>
8537 * rtl.h (lowpart_subreg): Move in file.
8538 * loop-iv.c (lowpart_subreg): Move to...
8539 * simplify-rtx.c (lowpart_subreg): ...here.
8540 (simplify_binary_operation_1): Use lowpart_subreg instead of
8541 simplify_gen_subreg.
8542 * expr.c (expand_expr_real_2): Ditto.
8543 * emit-rtl.c (gen_lowpart_common): Ditto.
8544 * combine.c (gen_lowpart_for_combine): Ditto.
8545 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
8546 expand_debug_source_expr): Ditto.
8548 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
8550 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
8551 (expand_builtin_atomic_clear): Remove support for atomic_clear
8554 2015-07-30 Richard Biener <rguenther@suse.de>
8556 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
8557 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
8558 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
8559 redundant operand canonicalization.
8561 2015-07-30 David Sherwood <david.sherwood@arm.com>
8563 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
8564 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
8565 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
8566 * config/arm/arm.c (neon_valid_immediate): Likewise.
8567 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
8568 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
8569 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
8570 (expand_vec_perm_vpshufb2_vpermq): Likewise.
8571 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
8572 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
8573 * config/i386/sse.md
8574 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
8575 (*ssse3_palignr<mode>_perm): Likewise.
8576 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
8577 * config/spu/spu.c (arith_immediate_p): Likewise.
8578 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8579 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
8581 2015-07-30 Richard Biener <rguenther@suse.de>
8583 * genmatch.c (decision_tree::gen_gimple): Merge with ...
8584 (decision_tree::gen_generic): ... this into ...
8585 (decision_tree::gen): ... this.
8586 (main): Adjust callers.
8588 2015-07-30 Richard Biener <rguenther@suse.de>
8590 * genmatch.c (verbose): New global.
8591 (warning_at): Add overload with source_location.
8592 (capture_info::capture_info): Add bool whether generating gimple
8593 or generic. Add gimple member.
8594 (capture_info::cinfo): Add capture member.
8595 (capture_info::walk_match): Record capture. Warn on
8597 (capture_info::walk_c_expr): Add more fragments captures cannot
8598 escape through. Warn on escaped captures.
8599 (dt_simplify::gen_1): Warn on operands we force to have no
8601 (main): Initialize verbose.
8602 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
8604 2015-07-30 Richard Biener <rguenther@suse.de>
8607 * match.pd: Allow both operands to independently have conversion
8608 when simplifying compares of addresses.
8610 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
8614 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
8615 around those cases that need one.
8617 2015-07-29 Aditya Kumar <hiraditya@msn.com>
8619 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
8621 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
8623 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
8624 New. Copied from config/i386/gnu-user.h.
8625 (ASM_COMMENT_START): Likewise.
8626 (DBX_REGISTER_NUMBER): Likewise.
8628 2015-07-29 Richard Biener <rguenther@suse.de>
8630 * gimple-fold.c (fold_gimple_cond): Remove.
8631 (fold_stmt_1): Do not call it.
8633 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
8635 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
8636 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
8638 * config/aarch64/aarch64-modes.def: Add HFmode.
8640 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8641 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
8643 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
8644 aarch64_promoted_type): New.
8646 (aarch64_float_const_representable_p): Disable HFmode.
8647 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
8648 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
8649 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
8651 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
8652 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
8654 * config/aarch64/iterators.md (GPF_F16): New.
8656 2015-07-29 Richard Biener <rguenther@suse.de>
8658 * match.pd: Merge address comparison patterns and make them
8659 handle some more cases.
8661 2015-07-29 Richard Biener <rguenther@suse.de>
8663 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
8664 (parser::parse_capture): Add bool argument on whether to reject
8666 (parser::parse_expr): Adjust.
8667 (parser::parse_op): Likewise.
8668 (parser::parse_pattern): Likewise.
8670 2015-07-29 Richard Biener <rguenther@suse.de>
8672 * gimple-fold.c (has_use_on_stmt): New function.
8673 (replace_stmt_with_simplification): Use it to allow
8674 abnormals originally referenced in the stmt.
8675 (fold_stmt_1): Canonicalize operand order.
8677 2015-07-28 David Sherwood <david.sherwood@arm.com>
8679 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
8680 GET_MODE_INNER unconditionally.
8681 * config/spu/spu.c (arith_immediate_p): Likewise.
8682 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
8683 * expmed.c (synth_mult): Remove check for VOIDmode result from
8685 (expand_mult_const): Likewise.
8686 * fold-const.c (fold_binary_loc): Replace call to element_precision
8687 with call to GET_MODE_PRECISION.
8688 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
8690 (emit_mode_inner): Likewise.
8691 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
8693 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
8694 (GET_MODE_UNIT_PRECISION): Likewise.
8695 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
8696 * simplify-rtx.c (simplify_immed_subreg): Likewise.
8697 * stor-layout.c (bitwise_type_for_mode): Update assert.
8698 (element_precision): Remove.
8700 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
8702 * target-insns.def (reload_load_address): New targetm instruction
8704 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
8706 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
8708 * target-insns.def (atomic_test_and_set): New targetm instruction
8710 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
8711 HAVE_*/gen_* interface.
8713 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
8715 * target-insns.def (can_extend, ptr_extend): New targetm instruction
8717 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
8718 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8719 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8720 * rtlanal.c (nonzero_bits1): Likewise.
8721 (num_sign_bit_copies1): Likewise.
8723 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
8725 * target-insns.def (eh_return): New targetm instruction pattern.
8726 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
8728 * function.c (thread_prologue_and_epilogue_insns): Remove
8729 preprocessor condition.
8731 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
8733 * target-insns.def (indirect_jump): New targetm instruction pattern.
8734 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
8737 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
8739 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
8740 instead of nonimmediate_operand. Remove C condiition.
8742 2015-07-28 Richard Biener <rguenther@suse.de>
8744 * match.pd: Add more simplification of address comparisons.
8746 2015-07-28 Richard Biener <rguenther@suse.de>
8748 * match.pd: Re-order two cases in comparison with max/min
8749 value simplification to make it apply for bools.
8751 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8753 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
8754 Handle simple SIGN_EXTEND or ZERO_EXTEND.
8755 (aarch64_rtx_costs): Properly strip extend or extract before
8756 passing down to rtx costs again.
8758 2015-07-28 Nick Clifton <nickc@redhat.com>
8760 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
8761 Optimizes the case where -mes0 is active and a constant symbolic
8763 * config/rl78/rl78-protos.h: Prototype the new function.
8764 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
8766 2015-07-28 Tom de Vries <tom@codesourcery.com>
8768 * tree-parloops.c (reduc_stmt_res): New function.
8769 (initialize_reductions, add_field_for_reduction)
8770 (create_phi_for_local_result, create_loads_for_reductions)
8771 (create_stores_for_reduction, build_new_reduction): Handle case that
8772 reduc_stmt is a phi.
8773 (gather_scalar_reductions): Allow double_reduc reductions.
8775 2015-07-28 Richard Biener <rguenther@suse.de>
8777 * fold-const.c (fold_comparison): Remove equality folding
8778 of decl addresses ...
8779 * match.pd: ... here and merge with existing pattern.
8781 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
8783 PR tree-optimization/66828
8784 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
8785 from int64_t to uint64_t.
8787 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
8789 * opts-common.c (read_cmdline_option): List DriverOnly enum values
8790 as valid only in the error message of the driver, not in the
8791 messages of the language compilers.
8793 2015-07-27 Tom de Vries <tom@codesourcery.com>
8795 * tree-parloops.c (gather_scalar_reductions): Simplify function
8798 2015-07-27 Marek Polacek <polacek@redhat.com>
8800 * ipa-devirt.c (types_same_for_odr): Fix typo.
8802 2015-07-27 Jason Merrill <jason@redhat.com>
8805 * dwarf2out.c (gen_inlined_subroutine_die): Check
8806 cgraph_function_possibly_inlined_p.
8808 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
8810 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
8811 Place integer variant first.
8812 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
8814 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
8817 * config/arm/arm-builtins.c (enum arm_builtins):
8818 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
8819 (ARM_BUILTIN_NEON_BASE): Rename macro to....
8820 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
8821 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
8822 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
8824 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
8827 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
8828 Add qualifier_lane_index.
8829 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
8830 (arm_getlane_qualifiers): Use qualifier_lane_index.
8831 (arm_lanemac_qualifiers): Rename to...
8832 (arm_mac_n_qualifiers): ...this.
8833 (LANEMAC_QUALIFIERS): Rename to...
8834 (MAC_N_QUALIFIERS): ...this.
8835 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
8836 (arm_setlane_qualifiers): Use qualifier_lane_index.
8837 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
8838 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
8839 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
8840 (arm_expand_neon_builtin): Handle qualifier_lane_index.
8842 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
8843 * config/arm/arm.c (bounds_check): Likewise, improve error message.
8844 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
8845 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
8846 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
8847 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
8848 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
8849 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
8850 qualifiers to TERNOP_IMM.
8851 (vdup_lane): Change qualifiers to GETLANE.
8852 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
8853 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
8854 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
8855 vqdmlsl_n): Change qualifiers to MAC_N.
8857 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
8858 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
8859 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
8860 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
8861 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
8862 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
8863 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
8864 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
8865 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
8866 Remove call to neon_lane_bounds.
8868 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
8870 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
8871 Place integer variant first.
8873 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
8875 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
8876 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
8877 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
8878 for armv6kz targets.
8879 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
8880 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
8881 (FL_FOR_ARCH6ZK): Remove.
8882 (FL_FOR_ARCH6KZ): New.
8883 (arm_arch6zk): New declaration.
8884 * config/arm/arm-tables.opt: Regenerate.
8885 * config/arm/arm.c (arm_arch6kz): New.
8886 (arm_option_override): Set arm_arch6kz.
8887 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
8888 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
8889 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
8891 2015-07-27 Marek Polacek <polacek@redhat.com>
8895 * doc/invoke.texi: Document -Wtautological-compare.
8897 2015-07-27 Richard Biener <rguenther@suse.de>
8899 * genmatch.c (decision_tree::gen_gimple): Split out large
8900 subtrees into separate functions.
8901 (decision_tree::gen_generic): Likewise.
8903 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
8905 * config/alpha/alpha.c: Use SUBREG_P predicate.
8906 * config/alpha/predicates.md: Ditto.
8908 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
8910 * config.host (s390*-*-*): Include driver-native.c only when
8911 building with s390* as host *and* target.
8913 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
8916 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
8917 T bit register modified_between_p check.
8919 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
8921 * config/i386/i386.c: Use SUBREG_P predicate.
8922 * config/i386/i386.md: Ditto.
8923 * config/i386/sse.md: Ditto.
8924 * config/i386/predicates.md: Ditto.
8926 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
8929 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
8930 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
8932 2015-07-25 Sebastian Pop <s.pop@samsung.com>
8934 * Makefile.in: Remove use of TREEBROWSER.
8935 * config.in: Regenerated.
8936 * configure: Regenerated.
8937 * configure.ac: Remove definition of TREEBROWSER.
8938 * tree-browser.c: Removed.
8939 * tree-browser.def: Removed.
8941 2015-07-25 Sebastian Pop <s.pop@samsung.com>
8943 * graphite-scop-detection.c: Include gimple-pretty-print.h.
8944 (stmt_simple_for_scop_p): Print when a stmt is not handled in
8946 (scopdet_basic_block_info): Print when a loop or bb cannot be
8947 represented in Graphite.
8949 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
8952 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
8953 execution guard when min_size is less than size_needed.
8955 2015-07-25 Sebastian Pop <s.pop@samsung.com>
8957 * doc/install.texi: Document supported versions of ISL.
8959 2015-07-25 Jeff Law <law@redhat.com>
8963 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
8964 unable to find X NE 0 in the tables, return X as the simplified
8966 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8967 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
8969 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
8970 after removing the control flow statement and unnecessary edges.
8972 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
8975 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
8977 PR rtl-optimization/64164
8978 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8979 * tree-ssa-copyrename.c: Removed.
8980 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8981 -ftree-coalesce-vars.
8982 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8983 * common.opt (ftree-copyrename): Ignore.
8984 (ftree-coalesce-inlined-vars): Likewise.
8985 * doc/invoke.texi: Remove the ignored options above.
8986 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8987 * tree-ssa-coalesce.h: ... here.
8988 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8989 headers required by it.
8990 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8991 across variables when flag_tree_coalesce_vars. Check register
8992 use and promoted modes to allow coalescing. Moved to
8993 tree-ssa-coalesce.c.
8994 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8995 with its member functions to tree-ssa-coalesce.c.
8996 (var_map_base_init): Likewise. Renamed to
8997 compute_samebase_partition_bases.
8998 (partition_view_normal): Drop want_bases parameter.
8999 (partition_view_bitmap): Likewise.
9000 * tree-ssa-live.h: Adjust declarations.
9001 * tree-ssa-coalesce.c: Include explow.h.
9002 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9003 default defs at the entry point.
9004 (dump_part_var_map): New.
9005 (compute_optimized_partition_bases): New, called by...
9006 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9007 of compute_samebase_partition_bases. Adjust.
9008 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9009 * cfgexpand.c (leader_merge): New.
9010 (get_rtl_for_parm_ssa_default_def): New.
9011 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9012 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9013 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9014 redundant MEM attr setting.
9015 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9017 (expand_one_stack_var): ... this. New wrapper to check and
9018 skip already expanded SSA partitions.
9019 (record_alignment_for_reg_var): New, factored out of...
9020 (expand_one_var): ... this.
9021 (expand_one_ssa_partition): New.
9022 (adjust_one_expanded_partition_var): New.
9023 (expand_one_register_var): Check and skip already expanded SSA
9025 (expand_used_vars): Don't create DECLs for anonymous SSA
9026 names. Expand all SSA partitions, then adjust all SSA names.
9027 (pass::execute): Replace the loops that set
9028 SA.partition_to_pseudo from partition leaders and cleared
9029 DECL_RTL for multi-location variables, and that which used to
9030 rename vars and set attrs, with one that clears DECL_RTL and
9031 checks that PARMs and RESULTs default_defs match DECL_RTL.
9032 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9033 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9034 * explow.c (promote_ssa_mode): New.
9035 * explow.h (promote_ssa_mode): Declare.
9036 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9037 * function.c: Include cfgexpand.h.
9038 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9039 (use_register_for_parm_decl): Wrapper for the above to
9040 special-case the result_ptr.
9041 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9042 (split_complex_args): Take assign_parm_data_all argument.
9043 Pass it to rtl_for_parm. Set up rtl and context for split
9045 (assign_parms_augmented_arg_list): Adjust.
9046 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9047 multiple locations. Recognize split complex args.
9048 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9049 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9050 (assign_parm_setup_block): Prefer SSA-assigned location.
9051 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9052 if stack_parm is NULL.
9053 (assign_parm_setup_stack): Prefer SSA-assigned location.
9054 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9055 rtl before testing for pointer bounds. Special-case result_ptr.
9056 (expand_function_start): Maybe reset DECL_RTL of result.
9057 Prefer SSA-assigned location for result and static chain.
9058 Factor out DECL_RESULT and SET_DECL_RTL.
9059 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9060 anonymous SSA names. Use promote_ssa_mode.
9061 (get_temp_reg): Likewise.
9062 (remove_ssa_form): Adjust.
9063 * stor-layout.c (layout_decl): Don't set mem attributes of
9065 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9066 and get its reg_usage for reg invalidation.
9067 (compute_bb_dataflow): Pass it insn.
9068 (emit_notes_in_bb): Likewise.
9070 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9072 * config/i386/i386.c (ix86_va_start): Remove
9073 unneeded !TARGET_64BIT check.
9074 (ix86_gimplify_va_arg): Ditto.
9076 2015-07-24 Tom de Vries <tom@codesourcery.com>
9078 * graphite-sese-to-poly.c (build_poly_scop): Always call
9079 rewrite_commutative_reductions_out_of_ssa.
9081 2015-07-24 Tom de Vries <tom@codesourcery.com>
9083 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
9084 flag_associative_math to FLOAT_TYPE_P. Honour
9085 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
9087 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9090 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
9091 and "%qD" in warning_at instead of "%q+D" in warning.
9093 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
9095 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
9096 (ix86_function_abi): Cleanup.
9098 2015-07-24 Michael Darling <darlingm@gmail.com>
9101 * acinclude.m4: Reflects renaming of configure.in to configure.ac
9102 * configure: Likewise
9103 * configure.ac: Likewise
9104 * doc/install.texi: Likewise
9105 * doc/tm.texi: Likewise
9106 * doc/tm.texi.in: Likewise
9108 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9110 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
9111 manually swapping values.
9112 * cse.c (fold_rtx): Likewise.
9113 * lra-eliminations.c (form_sum): Likewise.
9115 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
9118 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
9119 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
9120 (*jcc_1, *jcc_2, jump, simple_return_internal)
9121 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
9122 Set length_nobnd attribute instead of length attribute.
9123 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
9124 (length_nobnd): Remove attribute.
9125 (length): Remove length_nobnd processing.
9127 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
9129 * gimplify.c (omp_default_clause): New function. Reorganize flow
9130 for clarity. Broken out of ...
9131 (omp_notice_variable): ... here.
9133 2015-07-24 Gary Funck <gary@intrepid.com>
9136 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
9137 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
9139 2015-07-24 Tom de Vries <tom@codesourcery.com>
9141 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
9142 exit-first loop transform.
9144 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
9147 * tree-cfg.c (struct replace_decls_d): New struct.
9148 (replace_block_vars_by_duplicates_1): New function.
9149 (replace_block_vars_by_duplicates): Use it to replace the decls
9150 in the value exprs by duplicates.
9152 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
9154 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
9155 -shared, -symbolic, -rdynamic.
9157 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
9160 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
9161 -dynamic-linker within %{!static %{!shared, and -rdynamic within
9164 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
9167 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
9168 edge summary is available.
9170 2015-07-24 Richard Biener <rguenther@suse.de>
9172 * genmatch.c (struct dt_node): Add statistic fields.
9173 (dt_node::analyze): New method.
9174 (decision_tree::gen_gimple): Call analyze on the root node
9175 and print statistics to stderr.
9176 (decision_tree::gen_generic): Likewise.
9178 2015-07-24 Richard Biener <rguenther@suse.de>
9180 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
9181 against the highest or lowest possible integer ...
9182 * match.pd: ... as patterns here.
9184 2015-07-24 Richard Biener <rguenther@suse.de>
9186 * genmatch.c (struct capture_info): Add same_as field.
9187 (capture_info::capture_info): Initialize same_as.
9188 (capture_info::walk_match): Compute same_as.
9189 (capture_info::walk_result): Compute stuff for the leader.
9190 (capture_info::walk_c_expr): Likewise.
9191 (dt_simplify::gen_1): Only look at leaders when deciding
9192 to force no side-effects or emit side-effects of omitted operands.
9194 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9196 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
9197 reg note to the GPR -> FPR save instructions.
9199 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9201 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
9203 (s390_expand_insv): Don't generate risbg pattern for constant zero
9205 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
9206 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
9209 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9211 * config/s390/s390.c (s390_reorg): Clean up handling of processors
9214 (s390_issue_rate): Likewise.
9215 (s390_sched_reorder): Likewise.
9216 (s390_sched_variable_issue): Likewise.
9217 (s390_loop_unroll_adjust): Likewise.
9218 (s390_option_override): Likewise.
9220 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9222 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
9223 processor capabilities with -march=native.
9224 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
9225 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
9226 (S390_TARGET_BITS_STRING): Macro to simplify specs.
9228 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9230 * config/s390/s390.c (s390_issue_rate): Handle
9231 PROCESSOR_2094_Z9_EC.
9232 (s390_option_override): Likewise.
9233 (s390_adjust_priority): Likewise.
9235 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9237 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
9238 when cross compiling.
9240 2015-07-24 Richard Biener <rguenther@suse.de>
9242 * fold-const.c (maybe_canonicalize_comparison_1): Move
9243 A code CST canonicalization ...
9244 * match.pd: ... to a pattern here.
9246 2015-07-24 Jiong Wang <jiong.wang@arm.com>
9249 2015-07-22 Jiong Wang <jiong.wang@arm.com>
9251 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
9252 (HONOR_REG_ALLOC_ORDER): Define.
9254 2015-07-24 Richard Biener <rguenther@suse.de>
9256 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
9257 * fold-const.c (fold_comparison): Move parameter does not
9258 alias &local simplification ...
9259 * match.pd: ... as a pattern here.
9261 2015-07-24 Richard Biener <rguenther@suse.de>
9263 * gimple-fold.c (replace_stmt_with_simplification): Special-case
9264 valueizing call operands.
9265 * gimple-match-head.c (maybe_push_res_to_seq): Take
9266 number of call arguments from ops array.
9267 (do_valueize): New function.
9268 (gimple_simplify): Return true if valueization changed
9269 any operand even if the result didn't simplify further.
9271 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9274 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
9276 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9279 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
9281 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9283 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
9286 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9288 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
9291 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
9293 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
9294 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
9296 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
9297 ms_va_list_type_node initialization.
9299 2015-07-23 Jeff Law <law@redhat.com>
9302 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9303 unable to find X NE 0 in the tables, return X as the simplified
9305 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9306 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9308 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9309 after removing the control flow statement and unnecessary edges.
9311 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
9313 * tree-pass.h (get_current_pass_name): Removed.
9315 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
9317 PR rtl-optimization/64164
9318 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9319 * tree-ssa-copyrename.c: Removed.
9320 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9321 -ftree-coalesce-vars.
9322 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9323 * common.opt (ftree-copyrename): Ignore.
9324 (ftree-coalesce-inlined-vars): Likewise.
9325 * doc/invoke.texi: Remove the ignored options above.
9326 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9327 * tree-ssa-coalesce.h: ... here.
9328 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9329 headers required by it.
9330 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9331 across variables when flag_tree_coalesce_vars. Check register
9332 use and promoted modes to allow coalescing. Moved to
9333 tree-ssa-coalesce.c.
9334 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9335 with its member functions to tree-ssa-coalesce.c.
9336 (var_map_base_init): Likewise. Renamed to
9337 compute_samebase_partition_bases.
9338 (partition_view_normal): Drop want_bases parameter.
9339 (partition_view_bitmap): Likewise.
9340 * tree-ssa-live.h: Adjust declarations.
9341 * tree-ssa-coalesce.c: Include explow.h.
9342 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9343 default defs at the entry point.
9344 (dump_part_var_map): New.
9345 (compute_optimized_partition_bases): New, called by...
9346 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9347 of compute_samebase_partition_bases. Adjust.
9348 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9349 * cfgexpand.c (leader_merge): New.
9350 (get_rtl_for_parm_ssa_default_def): New.
9351 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9352 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9353 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9354 redundant MEM attr setting.
9355 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9357 (expand_one_stack_var): ... this. New wrapper to check and
9358 skip already expanded SSA partitions.
9359 (record_alignment_for_reg_var): New, factored out of...
9360 (expand_one_var): ... this.
9361 (expand_one_ssa_partition): New.
9362 (adjust_one_expanded_partition_var): New.
9363 (expand_one_register_var): Check and skip already expanded SSA
9365 (expand_used_vars): Don't create DECLs for anonymous SSA
9366 names. Expand all SSA partitions, then adjust all SSA names.
9367 (pass::execute): Replace the loops that set
9368 SA.partition_to_pseudo from partition leaders and cleared
9369 DECL_RTL for multi-location variables, and that which used to
9370 rename vars and set attrs, with one that clears DECL_RTL and
9371 checks that PARMs and RESULTs default_defs match DECL_RTL.
9372 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9373 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9374 * explow.c (promote_ssa_mode): New.
9375 * explow.h (promote_ssa_mode): Declare.
9376 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9377 * function.c: Include cfgexpand.h.
9378 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9379 (use_register_for_parm_decl): Wrapper for the above to
9380 special-case the result_ptr.
9381 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9382 (split_complex_args): Take assign_parm_data_all argument.
9383 Pass it to rtl_for_parm. Set up rtl and context for split
9385 (assign_parms_augmented_arg_list): Adjust.
9386 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9387 multiple locations. Recognize split complex args.
9388 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9389 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9390 (assign_parm_setup_block): Prefer SSA-assigned location.
9391 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9392 if stack_parm is NULL.
9393 (assign_parm_setup_stack): Prefer SSA-assigned location.
9394 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9395 rtl before testing for pointer bounds. Special-case result_ptr.
9396 (expand_function_start): Maybe reset DECL_RTL of result.
9397 Prefer SSA-assigned location for result and static chain.
9398 Factor out DECL_RESULT and SET_DECL_RTL.
9399 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9400 anonymous SSA names. Use promote_ssa_mode.
9401 (get_temp_reg): Likewise.
9402 (remove_ssa_form): Adjust.
9403 * stor-layout.c (layout_decl): Don't set mem attributes of
9405 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9406 and get its reg_usage for reg invalidation.
9407 (compute_bb_dataflow): Pass it insn.
9408 (emit_notes_in_bb): Likewise.
9410 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9413 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
9415 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
9416 (rs6000_emit_2insn_and): Handle dot forms.
9417 * config/rs6000/rs6000.md (and<mode>3): Adjust.
9418 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
9419 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
9421 2015-07-23 Richard Biener <rguenther@suse.de>
9423 * generic-match-head.c: Include cgraph.h.
9424 * gimple-match-head.c: Likewise.
9425 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
9427 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
9428 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
9431 2015-07-23 Richard Biener <rguenther@suse.de>
9433 * gimple-fold.c (fold_gimple_cond): Do not require folding
9434 results to pass valid_gimple_rhs_p.
9435 * tree-cfg.h (fold_cond_expr_cond): Remove.
9436 * tree-cfg.c (fold_cond_expr_cond): Likewise.
9437 (make_edges): Do not call it.
9438 * tree-inline.c (tree_function_versioning): Likewise.
9440 2015-07-23 Tom de Vries <tom@codesourcery.com>
9442 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
9443 vect_force_simple_reduction.
9444 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
9445 (vect_is_simple_reduction_1): Add and handle
9446 need_wrapping_integral_overflow parameter.
9447 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
9448 need_wrapping_integral_overflow parameter.
9449 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
9450 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
9453 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
9455 PR tree-optimization/66926,66951
9456 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
9457 INNER_LOOP and fix up condition for renaming virtual operands.
9459 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9461 * combine.c (try_combine): Use std::swap instead of manually
9464 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
9466 * config/mips/i6400.md: New file.
9467 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
9468 (mips64r6): Likewise.
9470 * config/mips/mips-tables.opt: Regenerate.
9471 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
9472 (mips_issue_rate): Add support for i6400.
9473 (mips_multipass_dfa_lookahead): Likewise.
9474 * config/mips/mips.h (TUNE_I6400): Define.
9475 * config/mips/mips.md: Include i6400.md.
9476 (processor): Add i6400.
9477 * doc/invoke.texi (-march=@var{arch}): Add i6400.
9479 2015-07-23 Richard Biener <rguenther@suse.de>
9482 * match.pd: Guard widen and sign-change comparison simplification
9485 2015-07-23 Richard Biener <rguenther@suse.de>
9487 PR tree-optimization/66945
9488 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
9489 ::before_dom_children): Force the propagators idea of
9490 non-executable edges to materialize, not what the folder
9493 2015-07-23 Richard Biener <rguenther@suse.de>
9495 * gimple.h (gimple_cond_make_false): Use 0 != 0.
9496 (gimple_cond_make_true): Use 1 != 0.
9498 2015-07-22 DJ Delorie <dj@redhat.com>
9500 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
9503 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
9504 (ashrhi3): Likewise.
9505 (lshrhi3): Likewise.
9506 (movhi): Take advantage of zero-extend to load small constants.
9508 (and<mode>3): Likewise.
9509 (zero_extendqihi2): Likewise.
9510 (zero_extendqisi2): New.
9511 * config/msp430/constraints.md (N,O): New.
9512 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
9514 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
9517 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
9518 to enum feature_priority and feature_list.
9519 (fold_builtin_cpu): Add F_AES to enum processor_features
9520 and isa_names_table.
9522 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
9525 * config/i386/linux-common.h (MPX_SPEC): Use linker option
9526 for 64bit target only.
9528 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
9530 * config/nvptx/nvptx.c: Expand some comments.
9532 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
9534 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
9535 (cortex_a53_advsimd): ...This.
9537 2015-07-22 Richard Biener <rguenther@suse.de>
9539 * genmatch.c (expr::gen_transform): Clarify error message
9540 and display location.
9542 2015-07-22 Richard Biener <rguenther@suse.de>
9544 * genmatch.c (struct operand): Add location member.
9545 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
9547 (struct simplify): Remove match_location and result_location
9549 (elsehwere): Adjust.
9551 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
9553 * config/mips/m5100.md: New file.
9554 * config/mips/mips-cpus.def (m5100, m5101): Define.
9555 * config/mips/mips-tables.opt: Regenerate.
9556 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
9557 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
9558 -march=m5101 to -mips32r5.
9559 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
9560 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
9562 * config/mips/mips.md: Include m5100.md.
9563 (processor): Add m5100.
9564 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
9566 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
9568 * config/mips/mips-cpus.def (interaptiv): Define.
9569 * config/mips/mips-tables.opt: Regenerate.
9570 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
9572 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
9573 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
9575 2015-07-22 Jiong Wang <jiong.wang@arm.com>
9578 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
9579 (HONOR_REG_ALLOC_ORDER): Define.
9581 2015-07-22 Richard Biener <rguenther@suse.de>
9583 PR tree-optimization/66952
9584 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
9585 blocks we end up executing unconditionally reset all SSA
9586 info such as range and alignment.
9587 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
9588 * tree-ssanames.c (reset_flow_sensitive_info): New function.
9590 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
9592 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
9595 2015-07-22 Richard Biener <rguenther@suse.de>
9597 * genmatch.c (parser::parse_result): Properly handle
9598 match with result operands and conditions.
9600 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
9603 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9604 Add qualifier_struct_load_store_lane_index.
9605 (aarch64_types_loadstruct_lane_qualifiers): Use
9606 qualifier_struct_load_store_lane_index for lane index argument for
9608 (aarch64_types_storestruct_lane_qualifiers): Ditto.
9609 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9610 (aarch64_simd_expand_args): Add new argument describing mode of
9611 builtin. Check lane bounds for arguments with
9612 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9613 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
9614 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9615 (aarch64_simd_expand_builtin): Handle arguments with
9616 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
9617 aarch64_simd_expand_args.
9618 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
9619 vst[234]_lane with BUILTIN_VALLDIF.
9620 * config/aarch64/aarch64-simd.md:
9621 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
9622 endianness reversal on lane index.
9623 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
9624 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
9625 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
9626 (vec_store_lanesci_lane<mode>): Ditto.
9627 (vec_store_lanesxi_lane<mode>): Ditto.
9628 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
9629 reversal of lane index.
9630 (aarch64_ld3_lane<mode>): Ditto.
9631 (aarch64_ld4_lane<mode>): Ditto.
9632 (aarch64_st2_lane<mode>): Ditto.
9633 (aarch64_st3_lane<mode>): Ditto.
9634 (aarch64_st4_lane<mode>): Ditto.
9635 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
9636 to qmode. Add new mode parameter. Update uses.
9637 (__LD3_LANE_FUNC): Ditto.
9638 (__LD4_LANE_FUNC): Ditto.
9639 (__ST2_LANE_FUNC): Ditto.
9640 (__ST3_LANE_FUNC): Ditto.
9641 (__ST4_LANE_FUNC): Ditto.
9643 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
9645 * doc/invoke.texi (Language Independent Options): Rename node to
9646 Diagnostic Message Formatting Options.
9648 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
9651 * lra-remat.c (operand_to_remat): Prevent using insns with input
9652 subregs processed separately by IRA.
9654 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
9656 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
9658 (single_imm_use): Check for iterator node.
9659 (num_imm_uses): Likewise.
9660 * tree-ssa-operands.c (has_zero_uses_1): Delete.
9661 (single_imm_use_1): Check for iterator node.
9663 2015-07-21 Mike Frysinger <vapier@gentoo.org>
9664 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9666 * configure.ac: Add check for new options in isl-0.15.
9667 * config.in, configure: Rebuilt.
9668 * graphite-blocking.c: Include <isl/constraint.h>
9669 * graphite-interchange.c, graphite-poly.c: Likewise.
9670 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
9671 * graphite.c: Likewise.
9672 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
9674 * graphite-dependences.c: Include <isl/constraint.h>.
9675 (max_number_of_out_dimensions): Returns isl_stat.
9676 (extend_schedule_1): Likewise
9677 (extend_schedule): Corresponding changes.
9678 * graphite-optimize-isl.c: Include <isl/constraint.h> and
9680 (getSingleMap): Change return type of isl_stat.
9681 (optimize_isl): Conditionally use
9682 isl_options_set_schedule_serialize_sccs.
9683 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
9684 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
9686 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
9689 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
9690 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
9692 2015-07-21 Richard Biener <rguenther@suse.de>
9694 PR tree-optimization/66948
9695 * genmatch.c (capture_info::walk_match): Also recurse to
9696 captures. Properly compute expr state from captures of
9698 * match.pd: Add single-use guards to
9699 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
9701 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
9703 * config/nvptx/mkoffload.c (process): Add static destructor call.
9705 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9708 * match.pd (A - B -> A + (-B)): Don't allow folding
9709 when type if a fixed-point type.
9711 2015-07-20 DJ Delorie <dj@redhat.com>
9713 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
9714 (iorqi3_real): Likewise for set1.
9716 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
9718 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
9721 2015-07-20 Aditya Kumar <hiraditya@msn.com>
9723 * graphite-isl-ast-to-gimple.c:
9724 Refactor so that each function can access 'region'. This will help
9725 maintain a parameter rename_map within a region.
9727 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9729 * config/rs6000/rs6000.md (*lt0_disi): New.
9731 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9734 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
9735 "available letters" comment.
9736 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
9737 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
9738 and_2rld_operand): Delete.
9739 (and_operand): Adjust.
9740 (rotate_mask_operator): New.
9741 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
9742 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
9743 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
9744 extract_ME): Delete.
9745 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
9746 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
9747 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
9748 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
9749 rs6000_emit_2insn_and): New.
9750 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
9751 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
9752 includes_rldic_lshift_p, includes_rldicr_lshift_p,
9753 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
9754 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
9755 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
9756 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
9757 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
9758 rs6000_emit_2insn_and): New.
9759 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
9760 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
9762 <NOT>: Don't fall through to next case.
9763 <AND>: Handle the various rotate-and-mask cases directly.
9764 <IOR>: Always cost as one insn.
9765 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
9766 (and<mode>3): Adjust expander for the new patterns.
9767 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
9768 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
9769 (*and<mode>3_imm_dot_shifted): New.
9770 (*and<mode>3_mask): Delete, rewrite as ...
9771 (and<mode>3_mask): ... New.
9772 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
9773 (andsi3_internal0_nomc): Delete.
9774 (*andsi3_internal6): Delete.
9775 (*and<mode>3_2insn): New.
9776 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9777 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9778 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
9779 *insvdi_internal3): Delete.
9780 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
9781 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
9782 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
9783 *ior<mode>_mask): New.
9784 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
9785 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
9786 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
9787 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
9789 (ashr<mode>3): Delete expander.
9790 (*ashr<mode>3): Rename to ...
9791 (ashr<mode>3): ... This.
9792 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
9793 (*rotldi3_internal4, *rotldi3_internal5 and split,
9794 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
9795 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
9796 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
9797 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
9798 (splitter for loading a mask): Adjust.
9799 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
9801 2015-07-20 Marek Polacek <polacek@redhat.com>
9803 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
9804 output_add_clobbers, output_added_clobbers_hard_reg_p,
9805 gen_rtx_scratch): Remove declarations.
9807 2015-07-20 Marek Polacek <polacek@redhat.com>
9810 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
9812 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9814 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
9815 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
9817 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9819 * combine.c (combine_simplify_rtx): Move simplification step
9820 before various transformations/substitutions.
9822 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
9824 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
9825 (struct int_traits): Likewise.
9827 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9829 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
9830 function to vmsdbgout_function_decl.
9832 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
9835 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
9836 from misaligned positions.
9837 (ix86_expand_pinsr): Reject insertions to misaligned positions.
9839 2015-07-18 Sebastian Pop <s.pop@samsung.com>
9843 * Makefile.in: Removed omega.o.
9844 * common.opt: Document flag fcheck-data-deps as deprecated.
9845 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
9846 its associated params: omega-max-vars, omega-max-geqs,
9847 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
9848 omega-max-keys, omega-eliminate-redundant-constraints.
9849 * doc/loop.texi: Remove all the section on Omega.
9850 * graphite-blocking.c: Include missing params.h: it used to be
9851 included through tree-data-ref.h and omega.h.
9852 * graphite-isl-ast-to-gimple.c: Same.
9853 * graphite-optimize-isl.c: Same.
9854 * graphite-sese-to-poly.c: Same.
9858 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
9859 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
9860 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
9861 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
9862 * passes.def: Remove pass_check_data_deps.
9863 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
9864 (dump_conflict_function): Same.
9865 (dump_subscript): Same.
9866 (print_direction_vector): Same.
9867 (print_dir_vectors): Same.
9868 (print_lambda_vector): Same.
9869 (print_dist_vectors): Same.
9870 (dump_data_dependence_relation): Same.
9871 (dump_data_dependence_relations): Same.
9872 (dump_dist_dir_vectors): Same.
9874 (init_omega_eq_with_af): Removed.
9875 (omega_extract_distance_vectors): Removed.
9876 (omega_setup_subscript): Removed.
9877 (init_omega_for_ddr_1): Removed.
9878 (init_omega_for_ddr): Removed.
9879 (ddr_consistent_p): Removed.
9880 (compute_affine_dependence): Do not use omega to check data
9882 (compute_data_dependences_for_bb): Removed.
9883 (analyze_all_data_dependences): Removed.
9884 (tree_check_data_deps): Removed.
9885 * tree-data-ref.h: Do not include omega.h.
9886 (compute_data_dependences_for_bb): Removed.
9887 (tree_check_data_deps): Removed.
9888 * tree-ssa-loop.c (pass_check_data_deps): Removed.
9889 (make_pass_check_data_deps): Removed.
9890 * tree-ssa-phiopt.c: Include params.h.
9891 * tree-vect-data-refs.c: Same.
9892 * tree-vect-slp.c: Same.
9894 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
9896 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
9897 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
9898 (mem->fpreg splitters): Ditto.
9899 (general_operand->nonimmediate_operand splitter): Use explicit modes.
9900 Disable DFmode for TARGET_64BIT.
9902 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
9905 * config/i386/i386.c (ix86_expand_prologue): Replicate static
9908 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
9910 * config/nvptx/mkoffload.c (process): Constify host data.
9911 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
9913 (generate_host_descr_file): Likewise.
9915 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
9916 Sebastian Pop <s.pop@samsung.com>
9919 * graphite-dependences.c (add_pdr_constraints): Renamed
9920 pdr->extent to pdr->subscript_sizes.
9921 * graphite-interchange.c (build_linearized_memory_access): Add
9922 back all gcc_assert's that the "isl_int to isl_val conversion"
9923 patch has removed. Refactored.
9924 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
9925 * graphite-poly.c (new_poly_dr): Same.
9926 (free_poly_dr): Same.
9927 * graphite-poly.h (struct poly_dr): Same.
9928 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
9929 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
9930 * graphite-scop-detection.h: Fix space.
9931 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
9932 back all gcc_assert's removed by a previous patch.
9933 (wrap): Remove the_isl_ctx global variable that the same patch has
9935 (build_loop_iteration_domains): Same.
9936 (add_param_constraints): Same.
9937 (pdr_add_data_dimensions): Same. Refactored.
9938 (build_poly_dr): Renamed extent to subscript_sizes.
9940 2015-07-17 Marek Polacek <polacek@redhat.com>
9942 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
9943 * match.pd: ... here.
9945 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
9947 * config/nvptx/mkoffload.c (process): Constify target data.
9948 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
9949 Constify target data.
9950 (generate_target_offloadend_file): Likewise.
9952 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9954 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
9955 to allow renaming of PHI arguments on edges incoming from outer
9956 loop header, add corresponding check before start PHI iterator.
9957 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
9958 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
9959 with true force_vectorize. Set-up dominator for outer loop too.
9960 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
9961 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
9962 was marked with force_vectorize and has restricted cfg.
9963 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
9965 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
9966 do peeling for outer loops.
9968 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
9969 Matthias Klose <doko@ubuntu.com>
9971 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
9972 build-sysroot, sysroot from the `Miscenalleous configure options' to
9973 the `Directories' section and strip trailing `/' from with_sysroot.
9974 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
9975 * configure: Regenerated.
9977 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
9980 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
9981 (TARGET_HARD_DF_REGS): Ditto.
9982 (TARGET_HARD_XF_REGS): Ditto.
9983 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
9984 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
9985 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
9986 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
9987 (*movsf_internal): Add alternatives 16 and 17. Enable
9988 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
9990 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
9992 PR rtl-optimization/66891
9993 * calls.c (expand_call): Wrap precompute_register_parameters with
9994 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
9996 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
9998 * config/nvptx/mkoffload.c (process): Constify mapping variables.
9999 Define target data struct and initialize it.
10001 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
10003 PR rtl-optimization/66626
10004 * ira.h (emit-rtl.h): Include.
10005 (non_spilled_static_chain_regno_p): New.
10006 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
10007 unless it is non spilled static chain pseudo.
10008 (assign_hard_rego): Spill memory profitable allocno unless it is
10009 non spilled static chain pseudo.
10010 (allocno_spill_priority_compare): Put non spilled static chain
10011 pseudo at the end of sorted array.
10012 (improve_allocation): Do nothing if we have static chain and
10014 (allocno__priority_compare_func): Put non spilled static chain
10015 pseudo at the beginning of sorted array.
10016 (move_spill_restore): Ignore non spilled static chain pseudo.
10017 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
10018 to non spilled static chain pseudo.
10019 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
10020 pseudo at the beginning of sorted array.
10021 (spill_for): Spill non spilled static chain pseudo last.
10022 * lra-constraints.c (lra_constraints): Remove static chain pseudo
10023 check for equivalence.
10025 2015-07-16 Martin Liska <mliska@suse.cz>
10028 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
10029 dst_ctx if it does not exist.
10031 2015-07-16 Martin Liska <mliska@suse.cz>
10033 * hash-set.h (remove): New function.
10034 (iterator): New iteration class for hash_set.
10036 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10038 * genattrtab.c (make_canonical): Add a file_location parameter.
10039 Use fatal_at rather than fatal.
10040 (get_attr_value): Likewise. Update call to make_canonical.
10041 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
10042 (make_internal_attr): Update calls accordingly.
10044 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10046 * read-md.h (message_with_line, error_with_line): Delete.
10047 * read-md.c (message_with_line, error_with_line): Delete.
10048 * gensupport.h: Include read-md.h.
10049 (md_rtx_info): New structure.
10050 (read_md_rtx): Use it. Return a bool success value.
10051 * gensupport.c (read_md_rtx): Likewise.
10052 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
10053 (main): Update after interface changes.
10054 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
10055 (main): Update after interface changes.
10056 * genattrtab.c (insn_code_number): Delete.
10057 (optimize_attrs): Add a max_insn_code parameter and use it instead
10058 of insn_code_number.
10059 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
10060 Use *_at rather than *_with_line functions.
10061 (gen_insn): Likewise.
10062 (gen_delay): Likewise.
10063 (gen_insn_reserv): Likewise.
10064 (gen_bypass): Take an md_rtx_info rather than an rtx.
10065 (main): Update after interface changes. Use a local max_insn_code
10066 variable instead of insn_code_number.
10067 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
10068 an rtx. Use fatal_at rather than fatal.
10069 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
10070 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
10071 (gen_absence_set, gen_final_absence_set, gen_automaton)
10072 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
10073 (main): Update after interface changes.
10074 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
10076 (main): Update after interface changes.
10077 * genconditions.c (main): Use new read_md_rtx interface.
10078 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
10079 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
10080 (main): Update after interface changes.
10081 * genemit.c (insn_code_number, insn_index_number): Delete.
10082 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10083 Use fatal_at rather than fatal.
10084 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
10086 (gen_split): Likewise.
10087 (main): Update after interface changes.
10088 * genextract.c (line_no): Delete.
10089 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10090 Update call to walk_rtx.
10091 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
10092 rather than message_with_line.
10093 (walk_rtx): Add an md_rtx_info argument. Update call to
10094 VEC_safe_set_locstr.
10095 (main): Update after interface changes.
10096 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
10097 and lineno. Use error_at rather than separate message_with_line
10098 calls and have_error assignments.
10099 (main): Update after interface changes.
10100 * genmddump.c (main): Use new read_md_rtx interface.
10101 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
10102 (main): Update after interface changes.
10103 * genoutput.c (next_code_number): Delete.
10104 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10105 (gen_peephole, gen_expand, gen_split): Likewise.
10106 (note_constraint): Likewise. Use *_at rather than *_with_line
10108 (main): Update after interface changes.
10109 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
10111 (main): Update after interface changes.
10112 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
10113 than an rtx and lineno.
10114 (process_define_constraint): Likewise.
10115 (process_define_register_constraint): Likewise.
10116 (main): Update after interface changes.
10117 * genrecog.c (next_insn_code, pattern_lineno): Delete.
10118 (validate_pattern): Replace top-level rtx with an md_rtx_info.
10119 Use *_at rather than *_with_line functions.
10120 (match_pattern_2): Likewise.
10121 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
10122 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
10123 Use *_at rather than *_with_line functions.
10124 * gentarget-def.c (add_insn): New function.
10125 (main): Use it. Use new read_md_rtx interface.
10127 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10129 * gensupport.h (compute_test_codes): Take a file_location rather
10130 than a line number.
10131 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
10132 rather than *_with_line functions.
10133 (process_define_predicate): Update call to compute_test_codes.
10134 * genpreds.c (validate_exp): Take a file_location rather than a
10135 line number. Use *_at functions rather than *_with_line functions.
10136 (process_define_predicate): Update call to validate_exp.
10137 (constraint_data): Replace lineno field with a file_location.
10138 (add_constraint): Take a file_location rather than a line number.
10139 Use *_at functions rather than *_with_line functions. Fix error
10140 message for address constraints. Update after changes to
10141 validate_exp, constraint_data and compute_test_codes.
10142 (process_define_constraint): Update accordingly.
10143 (process_define_register_constraint): Likewise.
10145 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10147 * genoutput.c (data): Use a file_location to record the source
10150 (idata, idata_end): Remove initialization.
10151 (constraint_data): Replace lineno with a file_location.
10152 (output_insn_data): Update after changes to data.
10153 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
10154 (scan_operands): Likewise, using *_at rather than *_with_line
10156 (process_template): Likewise.
10157 (validate_insn_alternatives): Likewise.
10158 (validate_insn_operands): Likewise.
10159 (validate_optab_operands): Likewise.
10160 (init_insn_for_nothing): Initialize idata and idata_end.
10161 (note_constraint): Update after changes to constraint_data,
10162 using at rather than with_line functions.
10163 (mdep_constraint_len): Take a file_location rather than a
10164 line number. Use at rather than with_line functions.
10166 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10168 * read-md.h (fatal_at): Declare.
10169 * read-md.c (fatal_at): New function.
10170 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
10171 to record the source position.
10172 (check_attr_test): Take a file_location instead of a line number.
10173 Use fatal_at instead of fatal.
10174 (check_attr_value): Update after above changes, using "at"
10175 rather than "with_line" reporting functions.
10176 (convert_set_attr_alternative): Likewise.
10177 (gen_attr): Likewise.
10178 (check_defs): Likewise. Don't assign to read_md_filename.
10179 (gen_insn): Update initialization after above changes.
10180 (gen_delay): Likewise.
10181 (write_insn_cases): Print the filename for a define_peephole.
10182 (gen_insn_reserv): Take a line number as argument and update
10183 the call to check_attr_test.
10184 (main): Pass a line number to gen_insn_reserv.
10186 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10188 * read-md.h (file_location): New structure.
10189 (directive_handler_t): Take a file_location rather than a line number.
10190 (message_at, error_at): Declare.
10191 (read_skip_construct): Delete.
10192 * read-md.c (message_with_line_1): Replace with...
10193 (message_at_1): ...this new function.
10194 (message_at, error_at): New functions.
10195 (message_with_line, error_with_line): Update to use message_at_1.
10196 (handle_enum): Take a file_location rather than a line number
10197 and use error_at for error reporting.
10198 (handle_include): Likewise.
10199 (read_skip_construct): Likewise. Make static.
10200 (handle_file): Update after above changes. Pass a file_location
10201 rather than a line number to handle_directive.
10202 * gensupport.c (queue_elem): Replace separate filename and lineno
10203 with a file_location.
10204 (queue_pattern): Replace filename and lineno arguments with a
10205 file_location. Update after change to queue_elem.
10206 (process_define_predicate): Replace lineno argument with a
10207 file_location and use error_at for error reporting. Update
10208 after above changes.
10209 (process_rtx): Likewise.
10210 (subst_pattern_match): Likewise.
10211 (get_alternatives_number): Likewise.
10212 (alter_predicate_for_insn): Likewise.
10213 (rtx_handle_directive): Likewise.
10214 (is_predicable): Update after above changes, using error_at rather
10215 than error_with_line.
10216 (has_subst_attribute): Likewise.
10217 (identify_predicable_attribute): Likewise.
10218 (alter_attrs_for_subst_insn): Likewise.
10219 (process_one_cond_exec): Likewise.
10220 (process_substs_on_one_elem): Likewise.
10221 (process_define_subst): Likewise.
10222 (check_define_attr_duplicates): Likewise.
10223 (read_md_rtx): Update after change to queue_elem.
10225 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10227 * genoutput.c (next_index_number): Delete.
10228 (data): Remove index_number.
10229 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
10230 (main): Remove manipulation of next_index_number.
10232 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10234 * genattrtab.c (check_attr_value): Remove handling of null attrs.
10235 (make_canonical): Likewise.
10237 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
10239 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
10240 instead of adjust_address_nv.
10241 (restore_stack_nonlocal): Likewise.
10242 (nonlocal_goto): Likewise.
10244 2015-07-16 Tom de Vries <tom@codesourcery.com>
10246 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
10247 not have a corresponding loop header phi.
10249 2015-07-16 Tom de Vries <tom@codesourcery.com>
10251 * tree-parloops.c (create_loads_for_reductions): Handle case that
10252 reduction is unused.
10254 2015-07-16 Richard Biener <rguenther@suse.de>
10256 PR tree-optimization/66894
10257 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
10258 about deriving NE_EXPR from truncated values.
10260 2015-07-16 Martin Liska <mliska@suse.cz>
10263 (object_allocator): Add new class.
10264 (pool_allocator::initialize): Use the underlying class.
10265 (pool_allocator::allocate): Likewise.
10266 (pool_allocator::remove): Likewise.
10267 (operator new): A new generic allocator.
10268 * asan.c (struct asan_mem_ref): Remove unused members.
10269 (asan_mem_ref_new): Replace new operator with
10270 object_allocator::allocate.
10271 (free_mem_ref_resources): Change deallocation.
10272 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
10273 with object_allocator.
10274 * config/sh/sh.c (add_constant): Replace new operator with
10275 object_allocator::allocate.
10276 (sh_reorg): Change call to a release method.
10277 * cselib.c (struct elt_list): Remove unused members.
10278 (new_elt_list): Replace new operator with
10279 object_allocator::allocate.
10280 (new_elt_loc_list): Likewise.
10281 (new_cselib_val): Likewise.
10282 (unchain_one_elt_list): Change delete operator with remove method.
10283 (unchain_one_elt_loc_list): Likewise.
10284 (unchain_one_value): Likewise.
10285 (cselib_finish): Release newly added static allocators.
10286 * cselib.h (struct cselib_val): Remove unused members.
10287 (struct elt_loc_list): Likewise.
10288 * df-problems.c (df_chain_alloc): Replace pool_allocator with
10290 * df-scan.c (struct df_scan_problem_data): Likewise.
10291 (df_scan_alloc): Likewise.
10292 * df.h (struct dataflow): Likewise.
10293 * dse.c (struct read_info_type): Likewise.
10294 (struct insn_info_type): Likewise.
10295 (struct dse_bb_info_type): Likewise.
10296 (struct group_info): Likewise.
10297 (struct deferred_change): Likewise.
10298 (get_group_info): Likewise.
10299 (delete_dead_store_insn): Likewise.
10300 (free_read_records): Likewise.
10301 (replace_read): Likewise.
10302 (check_mem_read_rtx): Likewise.
10303 (scan_insn): Likewise.
10304 (dse_step1): Likewise.
10305 (dse_step7): Likewise.
10306 * et-forest.c (struct et_occ): Remove unused members.
10307 (et_new_occ): Use allocate instead of new operator.
10308 (et_new_tree): Likewise.
10309 (et_free_tree): Call release method explicitly.
10310 (et_free_tree_force): Likewise.
10311 (et_free_pools): Likewise.
10312 (et_split): Use remove instead of delete operator.
10313 * et-forest.h (struct et_node): Remove unused members.
10314 * ipa-cp.c: Change pool_allocator to object_allocator.
10315 * ipa-inline-analysis.c: Likewise.
10316 * ipa-profile.c: Likewise.
10317 * ipa-prop.c: Likewise.
10318 * ipa-prop.h: Likewise.
10319 * ira-build.c (initiate_cost_vectors): Cast return value.
10320 (ira_allocate_cost_vector): Likewise.
10321 * ira-color.c (struct update_cost_record): Remove unused members.
10322 * lra-int.h (struct lra_live_range): Likewise.
10323 (struct lra_copy): Likewise.
10324 (struct lra_insn_reg): Likewise.
10325 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
10326 * lra.c (new_insn_reg): Replace new operator with allocate method.
10327 (free_insn_regs): Same for operator delete.
10328 (finish_insn_regs): Release new static allocator.
10329 (finish_insn_recog_data): Likewise.
10330 (lra_free_copies): Replace delete operator with remove method.
10331 (lra_create_copy): Replace operator new with allocate method.
10332 (invalidate_insn_data_regno_info): Same for remove method.
10333 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
10334 (free_debug_insn_changes): Replace delete operator with remove method.
10335 (replace_oldest_value_reg): Replace operator new with allocate method.
10336 (pass_cprop_hardreg::execute): Release new static variable.
10337 * sched-deps.c (sched_deps_init): Change pool_allocator to
10339 * sel-sched-ir.c: Likewise.
10340 * sel-sched-ir.h: Likewise.
10341 * stmt.c (expand_case): Likewise.
10342 (expand_sjlj_dispatch_table): Likewise.
10343 * tree-sra.c (struct access): Remove unused members.
10344 (struct assign_link): Likewise.
10345 (sra_deinitialize): Release newly added static pools.
10346 (create_access_1):Replace operator new with allocate method.
10347 (build_accesses_from_assign): Likewise.
10348 (create_artificial_child_access): Likewise.
10349 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
10350 pool_allocator to object_allocator.
10351 * tree-ssa-pre.c: Likewise.
10352 * tree-ssa-reassoc.c: Likewise.
10353 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10354 * tree-ssa-strlen.c: Likewise.
10355 * tree-ssa-structalias.c: Likewise.
10356 * var-tracking.c (onepart_pool_allocate): New function.
10357 (unshare_variable): Use the newly added function.
10358 (variable_merge_over_cur): Likewise.
10359 (variable_from_dropped): Likewise.
10360 (variable_was_changed): Likewise.
10361 (set_slot_part): Likewise.
10362 (emit_notes_for_differences_1): Likewise.
10363 (vt_finalize): Release newly added static pools.
10365 2015-07-16 Martin Jambor <mjambor@suse.cz>
10367 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
10368 all uses. Fix two typos in its general comment.
10369 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
10371 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
10373 * config/i386/linux-common.h (LINK_MPX): New.
10374 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
10375 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
10376 indicating '-z bndplt' support by linker.
10377 * configure: Regenerate.
10378 * config.in: Regenerate.
10380 2015-07-16 Richard Biener <rguenther@suse.de>
10382 * fold-const.c (fold_widened_comparison): Remove.
10383 (fold_sign_changed_comparison): Likewise.
10384 (fold_comparison): Move widened and sign-changed comparison
10386 * match.pd: ... to patterns here.
10387 * generic-match-head.c: Include target.h.
10388 * gimple-match-head.c: Likewise.
10390 2015-07-16 Richard Biener <rguenther@suse.de>
10392 * tree-ssa-dom.c (dom_valueize): New function.
10393 (record_temporary_equivalences): Also record equivalences
10394 for dominating stmts that have uses of equivalences we are
10397 2015-07-16 Bin Cheng <bin.cheng@arm.com>
10399 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
10400 add_autoinc_candidates.
10401 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
10402 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
10403 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
10404 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
10406 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
10407 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
10408 Remove parameter struct iv*. Call add_autoinc_candidates here.
10409 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
10410 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
10412 (find_iv_candidates): Call new functions.
10414 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
10416 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
10417 uninitialized-variable warning.
10419 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
10422 * config/sh/sh.md (movdi): Split simple reg move to two movsi
10423 when the destination is R0.
10425 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
10428 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
10429 * config/i386/i386.c (ix86_expand_pextr): New function.
10430 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
10431 for non-lowpart subregs.
10432 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
10433 (insv<mode>): Use SWI248 mode iterator.
10434 (insv<mode>_1): Ditto.
10436 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
10437 Sebastian Pop <s.pop@samsung.com>
10439 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
10440 iterator to use_stmt.
10442 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
10443 Sebastian Pop <s.pop@samsung.com>
10445 * graphite-scop-detection.c (build_scops_1): Discard scops for
10448 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
10449 Sebastian Pop <s.pop@samsung.com>
10451 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
10452 case of a return statement in scop.
10454 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
10455 Sebastian Pop <s.pop@samsung.com>
10457 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
10458 INTEGER_TYPE parameters.
10459 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
10460 VECTOR_CST in scan_tree_for_params.
10461 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
10463 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
10465 * gimple-pretty-print.h: Don't include pretty-print.h.
10466 * tree-streamer.h: Don't include lto-streamer.h.
10467 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
10468 * gimple-streamer-in.c: Remove redundant includes.
10469 * gimple-streamer-out.c: Likewise.
10470 * ipa-devirt.c: Likewise.
10471 * ipa-icf.c: Likewise.
10472 * ipa-inline-analysis.c: Likewise.
10473 * ipa-polymorphic-call.c: Likewise.
10474 * ipa-profile.c: Likewise.
10475 * ipa-prop.c: Likewise.
10476 * ipa-pure-const.c: Likewise.
10477 * lto-cgraph.c: Likewise.
10478 * lto-streamer-in.c: Likewise.
10479 * lto-streamer-out.c: Likewise.
10480 * lto-streamer.c: Likewise.
10481 * tree-streamer-in.c: Likewise.
10482 * tree-streamer-out.c: Likewise.
10483 * tree-streamer.c: Likewise.
10485 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
10487 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
10489 * opts.c: Remove multiline #include comment.
10491 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
10493 * config/nvptx/mkoffload.c (process): Add C++ protection to
10496 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10499 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
10500 null before IEEE 128-bit floating point support patch.
10502 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10504 * simplify-rtx.c (simplify_ternary_operation): Add simplification
10505 for (!c) != {0,...,0} ? a : b for vector modes.
10507 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
10508 Martin Jambor <mjambor@suse.cz>
10510 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
10511 struct func_body_info* instead of struct ipa_node_params*, expecting
10512 fbi->info to be filled in. Replace throughout. Adjust call to
10513 ipa_load_from_parm_agg.
10514 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
10515 instead of struct ipa_node_params*. Adjust calls to other functions
10516 so that they pass either fbi or fbi->info.
10517 (set_switch_stmt_execution_predicate): Likewise.
10518 (will_be_nonconstant_predicate): Likewise.
10519 (compute_bb_predicates): Likewise.
10520 (estimate_function_body_sizes): Move asserts earlier. Fill in
10521 struct func_body_info, replace parms_info with fbi.info. Adjust
10522 calls to functions that now accept struct func_body_info.
10523 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
10524 (struct func_body_info): Likewise.
10525 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
10526 remove static. Adjust callers.
10527 (ipa_load_from_parm_agg): Remove.
10528 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
10529 (func_body_info): Likewise.
10530 (ipa_load_from_parm_agg): Adjust prototype.
10532 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10534 * gensupport.c (rtx_handle_directive): Adjust.
10535 * read-rtl.c (apply_iterators): Take vector to add rtxs to
10536 instead of expr list rtx.
10537 (add_define_attr_for_define_subst): Likewise.
10538 (add_define_subst_attr): Likewise.
10539 (read_subst_mapping): Likewise.
10540 (read_rtx): Likewise.
10541 * rtl.h (read_rtx): Adjust.
10543 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10545 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
10547 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
10550 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
10551 (*tls_local_dynamic_base_64_<mode>): Ditto.
10552 (*tls_local_dynamic_base_64_largepic): Ditto.
10553 (tls_global_dynamic_64_<mode>): Update expander pattern.
10554 (tls_local_dynamic_base_64_<mode>): Ditto.
10556 2015-07-15 Richard Biener <rguenther@suse.de>
10558 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
10559 and bool_var == 1 -> bool_var simplifications ...
10560 * match.pd: ... to patterns here. Factor out negate_expr_p
10561 cases from the A - B -> A + (-B) patterns as negate_expr_p
10562 predicate and add a -(A + B) -> (-B) - A pattern.
10564 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
10566 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
10568 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
10569 Robert Suchanek <robert.suchanek@imgtec.com>
10571 * config/mips/mips.c (mips_int_mask): New enum.
10572 (mips_shadow_set): Likewise.
10573 (int_mask): New variable.
10574 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
10575 (machine_function): Add int_mask and use_shadow_register_set.
10576 (mips_attribute_table): Add attribute handlers for interrupt and
10577 use_shadow_register_set.
10578 (mips_interrupt_mask): New static function.
10579 (mips_handle_interrupt_attr): Likewise.
10580 (mips_handle_use_shadow_register_set_attr): Likewise.
10581 (mips_use_shadow_register_set): Change return type to enum
10582 mips_shadow_set. Add argument handling for use_shadow_register_set
10584 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
10585 compare with mips_shadow_set enum.
10586 (mips_compute_frame_info): Add interrupt mask and
10587 use_shadow_register_set to per-function information structure.
10588 Add a stack slot for EPC unconditionally.
10589 (mips_expand_prologue): Compare use_shadow_register_set value
10590 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
10591 masked interrupt register but in EIC mode use K0 and save Cause in K0.
10592 EPC saved and restored unconditionally. Use PMODE_INSN macro when
10593 copying the stack pointer from the shadow register set.
10594 * config/mips/mips.h (SR_IM0): New define.
10595 * config/mips/mips.md (mips_rdpgpr): Rename to...
10596 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
10597 * doc/extend.texi (Declaring Attributes of Functions): Document
10598 optional arguments for interrupt and use_shadow_register_set
10601 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
10603 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
10604 interrupt attribute.
10605 (mips_expand_prologue): Disable the floating point unit in an ISR.
10606 * config/mips/mips.h (SR_COP1): New define.
10608 2015-07-15 Richard Biener <rguenther@suse.de>
10610 * genmatch.c (parser::peek, parser::peek_ident): Add argument
10611 to tell how many tokens to peek ahead (default 1).
10612 (parser::eat_token, parser::eat_ident): Return token consumed.
10613 (parser::parse_result): Parse new switch statement.
10614 * match.pd: Use case statements where appropriate.
10616 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
10618 PR rtl-optimization/58066
10619 * calls.c (expand_call): Precompute register parameters before stack
10620 alignment is performed.
10622 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
10624 PR rtl-optimization/66838
10625 * postreload.c (reload_cse_move2add): Also process
10626 CALL_INSN_FUNCTION_USAGE when resetting information of
10627 call-clobbered registers.
10629 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
10630 Cesar Philippidis <cesar@codesourcery.com>
10631 Chung-Lin Tang <cltang@codesourcery.com>
10633 * config/nios2/constraints.md (U, v): New constraints.
10634 * config/nios2/predicates.md (rdprs_dcache_operand): New.
10635 (ldstex_memory_operand): New.
10636 * config/nios2/sync.md: New file.
10637 * config/nios2/nios2.md (unspecv): Add new builtin function
10639 (rdprs, flushd, flushda, wrpie, eni): New patterns.
10640 (top-level): Include sync.md.
10641 * config/nios2/nios2.c (N2_FTYPES): Add function types for
10643 (N2_BUILTINS): Add arch field setting, add new builtins.
10644 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
10646 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
10647 Also handle ldex/stex/ldsex/stsex builtins.
10648 (nios2_expand_rdprs_builtin): New function.
10649 (nios2_expand_cache_builtin): New function.
10650 (nios2_expand_wrpie_builtin): New function.
10651 (nios2_expand_eni_builtin): New function.
10652 (nios2_expand_builtin): Add arch field handling and new builtin
10654 * doc/extend.texi (Altera Nios II Built-in Functions): Document
10656 * doc/md.texi (Machine Constraints): Document U and v constraints.
10658 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
10659 Cesar Philippidis <cesar@codesourcery.com>
10660 Chung-Lin Tang <cltang@codesourcery.com>
10662 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
10663 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
10664 callee_save_reg_size and uses_anonymous_args fields.
10665 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
10666 (nios2_create_cfa_notes): New function.
10667 (nios2_adjust_stack): New function for adjusting stack.
10668 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
10669 Use nios2_adjust_stack.
10670 (nios2_expand_epilogue): Likewise.
10671 (nios2_expand_return): New function.
10672 (nios2_can_use_return_insn): Update for CDX pop.n usage.
10673 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
10674 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
10675 * config/nios2/nios2.md (return): Use nios2_expand_return.
10677 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
10678 Cesar Philippidis <cesar@codesourcery.com>
10679 Chung-Lin Tang <cltang@codesourcery.com>
10681 * config/nios2/predicates.md (pop_operation): New.
10682 (ldwm_operation, stwm_operation): New.
10683 (nios2_hard_register_operand): New.
10684 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
10685 (ldstwm_operation_p): Declare.
10686 (gen_ldstwm_peep): Declare.
10687 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
10688 (base_reg_adjustment_p): New.
10689 (pop_operation_p): New.
10690 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
10691 (nios2_ldstwm_regset_p): New.
10692 (ldstwm_operation_p): New.
10694 (nios2_ldst_parallel): New.
10695 (struct ldswm_operand): Declare.
10696 (compare_ldstwm_operands): New.
10697 (can_use_cdx_ldstw): New.
10698 (gen_ldstwm_peep): New.
10699 * config/nios2/nios2-ldstwm.sml: New.
10700 * config/nios2/nios2.md: Include ldstwm.md.
10701 * config/nios2/ldstwm.md: Generated.
10703 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
10704 Cesar Philippidis <cesar@codesourcery.com>
10705 Chung-Lin Tang <cltang@codesourcery.com>
10707 * config/nios2/nios2.h (LABEL_ALIGN): Define.
10708 (REG_ALLOC_ORDER): Define.
10709 (ADJUST_REG_ALLOC_ORDER): Define.
10710 (HONOR_REG_ALLOC_ORDER): Define.
10711 (CDX_REG_P): Define.
10712 (ANDCLEAR_INT): Define.
10713 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
10714 (nios2_label_align): Declare.
10715 (nios2_cdx_narrow_form_p): Declare.
10716 (nios2_adjust_reg_alloc_order): Declare.
10717 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
10719 (nios2_large_unspec_reloc_p): New function, split from...
10720 (nios2_legitimate_pic_operand_p): ...here.
10721 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
10722 (nios2_print_operand_punct_valid_p): New.
10723 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
10724 (split_mem_address): New.
10725 (split_alu_insn): New.
10727 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
10728 (enum nios2_add_insn_kind): New.
10729 (nios2_add_insn_names, nios2_add_insn_narrow): New.
10730 (nios2_add_insn_classify): New.
10731 (nios2_add_insn_asm): New.
10732 (nios2_cdx_narrow_form_p): New.
10733 (label_align, min_labelno, max_labelno): New.
10734 (nios2_reorg): New.
10735 (nios2_label_align): New.
10736 (nios2_adjust_reg_alloc_order): New.
10737 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10738 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10739 * config/nios2/constraints.md (P): New constraint.
10740 * config/nios2/predicates.md (const_and_operand): New.
10741 (and_operand): New.
10742 (stack_memory_operand): New.
10743 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
10744 (length): Update to use nios2_cdx_narrow_form_p().
10745 (type): Add new insn type values.
10746 (control, alu, st, ld, shift): Update insn reservations with
10747 new insn type values.
10748 (*high, *lo_sum): Define new insn patterns for constant generation.
10749 (movqi_internal, movhi_internal, movsi_internal): Reduce
10750 alternatives, update asm template to handle CDX variants, update
10752 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
10753 template, update type attributes.
10754 (extendhisi2, extendqi<mode>2): Likewise.
10755 (addsi3): Change to use function for asm string.
10756 (subsi3): Add CDX notation to asm template, update type attributes.
10757 (negsi3, one_cmplsi3): Likewise.
10758 (andsi3): New pattern, specialized from logical patterns.
10759 (<code>si3): Remove and case, combine alternatives, update asm
10761 (<shift_op>si3): Add CDX notation, update type attributes.
10762 (rotrsi3): Update type attribute.
10763 (*merge, extzv, insv): New insn patterns.
10764 (return): Change to define_expand.
10765 (simple_return): Add CDX notation, update type attributes.
10766 (indirect_jump): Add CDX notation.
10767 (jump): Update asm cases, update length attribute expression.
10768 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
10769 (nios2_cbranch): Update asm cases and length attribute expression
10770 to handle CDX variants.
10771 (nios2_cmp<code>): Update asm template.
10772 (nop): Add CDX notation, update type attributes.
10773 (trap): Add CDX notation.
10774 (ctrapsi4): Update asm cases and length attribute expression to
10775 handle CDX variant.
10776 * doc/md.texi (Machine Constraints): Document P constraint.
10778 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
10779 Cesar Philippidis <cesar@codesourcery.com>
10780 Chung-Lin Tang <cltang@codesourcery.com>
10782 * config/nios2/nios2.h (SMALL_INT12): New macro.
10783 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
10784 (nios2_valid_addr_expr_p): Use it.
10785 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
10786 with implicit "io" instructions on R2.
10787 * config/nios2/constraints.md (w): New constraint.
10788 * config/nios2/predicates.md (ldstio_memory_operand): New.
10789 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
10790 operand predicate and constraint.
10791 (ld<bh>io_signed, st<bhw>io>): Likewise.
10792 * doc/md.texi (Machine Constraints): Document w constraint.
10794 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
10795 Cesar Philippidis <cesar@codesourcery.com>
10796 Chung-Lin Tang <cltang@codesourcery.com>
10798 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
10799 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
10800 Nios II architecture level.
10801 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
10802 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
10803 (OPTION_DEFAULT_SPECS): Define.
10804 (ASM_SPEC): Add -march= spec strings.
10805 * config/nios2/nios2.c (nios2_option_override): Check for
10806 conflicts involving new options.
10807 * config.gcc (nios2*-*-*): Support --with-arch=.
10808 * doc/invoke.texi (Option Summary, Nios II Options): Document
10809 -march=, -mbmx, and -mcdx.
10811 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
10813 PR rtl-optimization/66626
10814 * lra-constraints.c (lra_constraints): Prevent equivalence
10815 substitution for static chain pseudo in functions with nonlocal
10818 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
10820 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
10821 (nios2_emit_stack_limit_check): Add size parameter. Handle
10822 -fstack-limit-symbol as well as -fstack-limit-register.
10823 (nios2_expand_prologue): Emit only a single stack limit check,
10824 even if multiple stack adjustments are required.
10825 (nios2_option_override): Diagnose unsupported combination of -fpic
10826 and -stack-limit-symbol.
10828 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
10830 * Makefile.in (top_srcdir): New.
10831 * configure.ac: Use AM_ZLIB.
10832 * configure: Regeneated.
10834 2015-07-14 Matthias Klose <doko@ubuntu.com>
10837 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
10839 2015-07-14 Richard Biener <rguenther@suse.de>
10841 PR tree-optimization/66863
10842 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
10843 what we record for conversion use stmt lhs inequalities.
10845 2015-07-14 Richard Biener <rguenther@suse.de>
10847 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
10848 (decision_tree::gen_gimple): Likewise.
10850 2015-07-14 Tom de Vries <tom@codesourcery.com>
10852 * gcc.c (greater_than_spec_func): Declare forward.
10853 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
10854 -ftree-parallelize-loops={0,1}.
10855 (static_spec_functions): Add greater_than_spec_func function with name
10857 (greater_than_spec_func): New function.
10859 2015-07-14 Richard Biener <rguenther@suse.de>
10861 * tree-ssa-dom.c (record_temporary_equivalences): Merge
10862 wideing type conversion case from record_equivalences_from_incoming_edge
10863 and use record_equality to record equivalences.
10864 (record_equivalences_from_incoming_edge): Call
10865 record_temporary_equivalences.
10867 2015-07-14 Richard Biener <rguenther@suse.de>
10869 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
10870 (struct if_expr): New.
10871 (struct with_expr): Likewise.
10872 (is_a_helper): Add helpers for if_expr and with_expr.
10873 (struct simplify): Add simplify_kind enum and member. Remove
10875 (simplify::simplify): Adjust.
10876 (lower_commutative): Adjust.
10877 (lower_opt_convert): Likewise.
10878 (lower_cond): Likewise.
10879 (replace_id): Handle with_expr and if_expr.
10880 (lower_for): Adjust.
10881 (dt_simplify::gen_1): New recursive worker, split out from ...
10882 (dt_simplify::gen): ... here. Deal with if and with expansion
10884 (capture_info::capture_info): Take context argument
10885 (capture_info::walk_result): Only analyze specific result.
10886 (parser::parse_result): New function.
10887 (parser::parse_simplify): Adjust to parse ifs with then end
10889 (parser::parse_if): Simplify.
10890 (parser::parse_pattern): Pass down simplify kind.
10891 * match.pd: Convert if structure to new syntax.
10893 2015-07-13 Marek Polacek <polacek@redhat.com>
10895 * rtl.c (rtx_equal_p_cb): Fix typo.
10897 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
10899 * omega.h: Don't include config.h, don't include params.h again if
10900 omega.h has already been included.
10901 * graphite-poly.h: Include sese.h.
10902 * graphite.c: Don't include sese.h, remove needless includes and
10903 minimize includes outside #ifdef HAVE_isl block.
10904 * graphite-blocking.c: Don't include sese.h, remove needless includes,
10905 and wrap entire file in #ifdef HAVE_isl
10906 * graphite-dependences.c: Likewise.
10907 * graphite-interchange.c: Likewise.
10908 * graphite-isl-ast-to-gimple.c: Likewise.
10909 * graphite-optimize-isl.c: Likewise.
10910 * graphite-poly.c: Likewise.
10911 * graphite-scop-detection.c: Likewise.
10912 * graphite-sese-to-poly.c: Likewise.
10914 2015-07-13 Tom de Vries <tom@codesourcery.com>
10916 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
10918 2015-07-13 Renlin Li <renlin.li@arm.com>
10921 * simplify-rtx.c (simplify_const_relational_operation): Add
10922 side_effects_p checks.
10924 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
10926 * bitmap.h: Fix double word typos.
10927 * builtins.c: Same.
10929 * cfgloopmanip.c: Same.
10932 * cgraphclones.c: Same.
10934 * config/aarch64/aarch64-protos.h: Same.
10935 * config/aarch64/aarch64.c: Same.
10936 * config/aarch64/aarch64.md: Same.
10937 * config/arm/arm.md: Same.
10938 * config/arm/arm1020e.md: Same.
10939 * config/arm/arm1026ejs.md: Same.
10940 * config/arm/arm926ejs.md: Same.
10941 * config/arm/fa526.md: Same.
10942 * config/arm/fa606te.md: Same.
10943 * config/arm/fa626te.md: Same.
10944 * config/arm/fa726te.md: Same.
10945 * config/arm/fmp626.md: Same.
10946 * config/darwin.c: Same.
10947 * config/epiphany/epiphany.c: Same.
10948 * config/frv/frv.c: Same.
10949 * config/ft32/ft32.c: Same.
10950 * config/gnu-user.h: Same.
10951 * config/h8300/constraints.md: Same.
10952 * config/i386/i386.c: Same.
10953 * config/i386/i386.md: Same.
10954 * config/iq2000/iq2000.md: Same.
10955 * config/mips/mips.c: Same.
10956 * config/mmix/mmix.md: Same.
10957 * config/moxie/moxie.c: Same.
10958 * config/nds32/nds32.md: Same.
10959 * config/pa/pa.h: Same.
10960 * config/rs6000/aix.h: Same.
10961 * config/rs6000/rs6000.h: Same.
10962 * config/sh/sh.c: Same.
10963 * config/tilegx/tilegx.md: Same.
10964 * config/tilepro/gen-mul-tables.cc: Same.
10967 * doc/invoke.texi: Same.
10969 * dwarf2out.c: Same.
10972 * genmatch.c: Same.
10973 * gimplify.c: Same.
10974 * hash-table.h: Same.
10975 * internal-fn.c: Same.
10977 * ipa-devirt.c: Same.
10980 * ipa-profile.c: Same.
10981 * ipa-prop.c: Same.
10982 * ipa-prop.h: Same.
10985 * reg-stack.c: Same.
10986 * regcprop.c: Same.
10991 * tree-inline.c: Same.
10992 * tree-sra.c: Same.
10993 * tree-ssa-dom.c: Same.
10994 * tree-ssa-loop-ivopts.c: Same.
10995 * tree-ssa-structalias.c: Same.
10996 * tree-ssa-tail-merge.c: Same.
10997 * tree-ssa-ter.c: Same.
10998 * tree-ssa-threadupdate.c: Same.
10999 * tree-ssa-uninit.c: Same.
11000 * tree-ssanames.c: Same.
11001 * tree-vect-loop-manip.c: Same.
11002 * tree-vrp.c: Same.
11004 * valtrack.c: Same.
11007 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11009 PR middle-end/66726
11010 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
11011 tree_ssa_phiopt_worker): Call it.
11013 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11015 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
11016 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
11019 2015-07-11 Marek Polacek <polacek@redhat.com>
11021 PR middle-end/66353
11022 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
11023 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
11024 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
11025 rather than bb_has_abnormal_call_pred.
11026 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
11027 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
11028 rather than bb_has_abnormal_call_pred.
11030 2015-07-10 Anatoly Sokolov <aesok@post.ru>
11032 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11033 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
11034 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11035 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
11036 v850_legitimate_address_p): New functions.
11037 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
11039 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
11042 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
11043 indirect sibcall with register arguments if register available
11044 for argument passing.
11045 (init_cumulative_args): Set cfun->machine->arg_reg_available
11046 to (cum->nregs > 0) or to true if function has a variable
11048 (function_arg_advance_32): Set cfun->machine->arg_reg_available
11049 to false if cum->nregs <= 0.
11050 * config/i386/i386.h (machine_function): Add arg_reg_available.
11052 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
11054 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
11055 and gen_higpart instead of gen_rtx_SUBREG.
11056 * config/i386/i386.md
11057 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
11058 (read-modify peephole2): Use gen_lowpart instead of
11059 gen_rtx_SUBREG for operand 5.
11061 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
11063 * config/tilepro/gen-mul-tables.cc (main): Change include list for
11065 * config/tilepro/mul-tables.c: Regenerate.
11066 * config/tilegx/mul-tables.c: Regenerate.
11068 2015-07-10 Richard Biener <rguenther@suse.de>
11070 * fold-const.c (distribute_bit_expr): Remove.
11071 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
11072 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
11073 to A & (B | C) and simplifying A << C1 << C2 to ...
11074 * match.pd: ... patterns here.
11076 2015-07-10 Jiong Wang <jiong.wang@arm.com>
11078 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11079 Mark mem as READONLY and NOTRAP for PIC symbol.
11081 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
11083 * gimple-predict.h: New file.
11084 (gimple_predict_predictor, gimple_predict_set_predictor,
11085 gimple_predict_outcome, gimple_predict_set_outcome,
11086 gimple_build_predict): Relocate here.
11087 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
11088 gimple_predict_outcome, gimple_predict_set_outcome): Move to
11090 * gimple.c (gimple_build_predict): Move to gimple-predict.h
11091 * basic-block.h: Don't include cfghooks.h.
11092 * backend.h: Don't include predict.h.
11093 * cfghooks.h: Include predict.h.
11094 * gimple-pretty-print.c: Include gimple-predict.h.
11095 * gimplify.c: Likwise.
11096 * predict.c: Adjust includes.
11097 * tree-inline.c: Likewise.
11098 * asan.c: Likewise.
11099 * auto-inc-dec.c: Likewise.
11100 * auto-profile.c: Likewise.
11101 * bb-reorder.c: Likewise.
11102 * builtins.c: Likewise.
11103 * caller-save.c: Likewise.
11104 * calls.c: Likewise.
11105 * cfganal.c: Likewise.
11106 * cfgbuild.c: Likewise.
11108 * cfgcleanup.c: Likewise.
11109 * cfgexpand.c: Likewise.
11110 * cfghooks.c: Likewise.
11111 * cfgloopanal.c: Likewise.
11112 * cfgloop.c: Likewise.
11113 * cfgloopmanip.c: Likewise.
11114 * cfgrtl.c: Likewise.
11115 * cgraph.c: Likewise.
11116 * cgraphunit.c: Likewise.
11117 * combine.c: Likewise.
11118 * cprop.c: Likewise.
11121 * dojump.c: Likewise.
11123 * except.c: Likewise.
11124 * expmed.c: Likewise.
11125 * expr.c: Likewise.
11126 * final.c: Likewise.
11127 * fold-const.c: Likewise.
11128 * function.c: Likewise.
11129 * fwprop.c: Likewise.
11130 * gcc-plugin.h: Likewise.
11131 * gcse.c: Likewise.
11132 * genattrtab.c: Likewise.
11133 * genemit.c: Likewise.
11134 * gengtype.c: Likewise.
11135 * genopinit.c: Likewise.
11136 * genoutput.c: Likewise.
11137 * genpreds.c: Likewise.
11138 * genrecog.c: Likewise.
11139 * gimple-fold.c: Likewise.
11140 * gimple-iterator.c: Likewise.
11141 * gimple-ssa-isolate-paths.c: Likewise.
11142 * gimple-ssa-strength-reduction.c: Likewise.
11143 * graph.c: Likewise.
11144 * graphite-blocking.c: Likewise.
11145 * graphite.c: Likewise.
11146 * graphite-dependences.c: Likewise.
11147 * graphite-interchange.c: Likewise.
11148 * graphite-isl-ast-to-gimple.c: Likewise.
11149 * graphite-optimize-isl.c: Likewise.
11150 * graphite-poly.c: Likewise.
11151 * graphite-scop-detection.c: Likewise.
11152 * graphite-sese-to-poly.c: Likewise.
11153 * haifa-sched.c: Likewise.
11154 * ifcvt.c: Likewise.
11155 * internal-fn.c: Likewise.
11156 * ipa-cp.c: Likewise.
11157 * ipa-profile.c: Likewise.
11158 * ipa-split.c: Likewise.
11159 * ipa-utils.c: Likewise.
11160 * ira-build.c: Likewise.
11161 * ira-color.c: Likewise.
11162 * ira-conflicts.c: Likewise.
11163 * ira-costs.c: Likewise.
11164 * ira-emit.c: Likewise.
11165 * ira-lives.c: Likewise.
11166 * jump.c: Likewise.
11167 * loop-doloop.c: Likewise.
11168 * loop-init.c: Likewise.
11169 * loop-invariant.c: Likewise.
11170 * loop-unroll.c: Likewise.
11171 * lower-subreg.c: Likewise.
11172 * lra-assigns.c: Likewise.
11174 * lra-coalesce.c: Likewise.
11175 * lra-constraints.c: Likewise.
11176 * lra-lives.c: Likewise.
11177 * lto-cgraph.c: Likewise.
11178 * lto-streamer-in.c: Likewise.
11179 * mode-switching.c: Likewise.
11180 * modulo-sched.c: Likewise.
11181 * omp-low.c: Likewise.
11182 * optabs.c: Likewise.
11183 * passes.c: Likewise.
11184 * postreload.c: Likewise.
11185 * postreload-gcse.c: Likewise.
11186 * profile.c: Likewise.
11187 * recog.c: Likewise.
11188 * regstat.c: Likewise.
11189 * reload1.c: Likewise.
11190 * reorg.c: Likewise.
11191 * rtlanal.c: Likewise.
11192 * sched-ebb.c: Likewise.
11193 * sel-sched-ir.c: Likewise.
11194 * sese.c: Likewise.
11195 * shrink-wrap.c: Likewise.
11196 * simplify-rtx.c: Likewise.
11197 * stmt.c: Likewise.
11198 * store-motion.c: Likewise.
11199 * tracer.c: Likewise.
11200 * trans-mem.c: Likewise.
11201 * tree-call-cdce.c: Likewise.
11202 * tree-cfg.c: Likewise.
11203 * tree-cfgcleanup.c: Likewise.
11204 * tree-chkp.c: Likewise.
11205 * tree-complex.c: Likewise.
11206 * tree-eh.c: Likewise.
11207 * tree-if-conv.c: Likewise.
11208 * tree-loop-distribution.c: Likewise.
11209 * tree-outof-ssa.c: Likewise.
11210 * tree-parloops.c: Likewise.
11211 * tree-predcom.c: Likewise.
11212 * tree-pretty-print.c: Likewise.
11213 * tree-profile.c: Likewise.
11214 * tree-sra.c: Likewise.
11215 * tree-ssa.c: Likewise.
11216 * tree-ssa-coalesce.c: Likewise.
11217 * tree-ssa-dce.c: Likewise.
11218 * tree-ssa-dom.c: Likewise.
11219 * tree-ssa-forwprop.c: Likewise.
11220 * tree-ssa-ifcombine.c: Likewise.
11221 * tree-ssa-loop-ch.c: Likewise.
11222 * tree-ssa-loop-im.c: Likewise.
11223 * tree-ssa-loop-ivcanon.c: Likewise.
11224 * tree-ssa-loop-ivopts.c: Likewise.
11225 * tree-ssa-loop-manip.c: Likewise.
11226 * tree-ssa-loop-prefetch.c: Likewise.
11227 * tree-ssa-loop-unswitch.c: Likewise.
11228 * tree-ssa-math-opts.c: Likewise.
11229 * tree-ssa-phiopt.c: Likewise.
11230 * tree-ssa-pre.c: Likewise.
11231 * tree-ssa-reassoc.c: Likewise.
11232 * tree-ssa-sink.c: Likewise.
11233 * tree-ssa-tail-merge.c: Likewise.
11234 * tree-ssa-threadedge.c: Likewise.
11235 * tree-ssa-threadupdate.c: Likewise.
11236 * tree-switch-conversion.c: Likewise.
11237 * tree-tailcall.c: Likewise.
11238 * tree-vect-data-refs.c: Likewise.
11239 * tree-vect-loop.c: Likewise.
11240 * tree-vect-loop-manip.c: Likewise.
11241 * tree-vectorizer.c: Likewise.
11242 * tree-vrp.c: Likewise.
11243 * ubsan.c: Likewise.
11244 * value-prof.c: Likewise.
11245 * varasm.c: Likewise.
11246 * var-tracking.c: Likewise.
11247 * config/aarch64/aarch64-builtins.c: Likewise.
11248 * config/aarch64/aarch64.c: Likewise.
11249 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11250 * config/alpha/alpha.c: Likewise.
11251 * config/arc/arc.c: Likewise.
11252 * config/arm/arm.c: Likewise.
11253 * config/avr/avr.c: Likewise.
11254 * config/bfin/bfin.c: Likewise.
11255 * config/c6x/c6x.c: Likewise.
11256 * config/cr16/cr16.c: Likewise.
11257 * config/cris/cris.c: Likewise.
11258 * config/darwin.c: Likewise.
11259 * config/darwin-c.c: Likewise.
11260 * config/epiphany/epiphany.c: Likewise.
11261 * config/epiphany/mode-switch-use.c: Likewise.
11262 * config/epiphany/resolve-sw-modes.c: Likewise.
11263 * config/fr30/fr30.c: Likewise.
11264 * config/frv/frv.c: Likewise.
11265 * config/ft32/ft32.c: Likewise.
11266 * config/h8300/h8300.c: Likewise.
11267 * config/i386/i386.c: Likewise.
11268 * config/i386/winnt.c: Likewise.
11269 * config/ia64/ia64.c: Likewise.
11270 * config/iq2000/iq2000.c: Likewise.
11271 * config/lm32/lm32.c: Likewise.
11272 * config/m32c/m32c.c: Likewise.
11273 * config/m32r/m32r.c: Likewise.
11274 * config/m68k/m68k.c: Likewise.
11275 * config/mcore/mcore.c: Likewise.
11276 * config/mep/mep.c: Likewise.
11277 * config/microblaze/microblaze.c: Likewise.
11278 * config/mips/mips.c: Likewise.
11279 * config/mmix/mmix.c: Likewise.
11280 * config/mn10300/mn10300.c: Likewise.
11281 * config/moxie/moxie.c: Likewise.
11282 * config/msp430/msp430.c: Likewise.
11283 * config/nds32/nds32.c: Likewise.
11284 * config/nds32/nds32-cost.c: Likewise.
11285 * config/nds32/nds32-fp-as-gp.c: Likewise.
11286 * config/nds32/nds32-intrinsic.c: Likewise.
11287 * config/nds32/nds32-isr.c: Likewise.
11288 * config/nds32/nds32-md-auxiliary.c: Likewise.
11289 * config/nds32/nds32-memory-manipulation.c: Likewise.
11290 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11291 * config/nds32/nds32-predicates.c: Likewise.
11292 * config/nios2/nios2.c: Likewise.
11293 * config/nvptx/nvptx.c: Likewise.
11294 * config/pa/pa.c: Likewise.
11295 * config/pdp11/pdp11.c: Likewise.
11296 * config/rl78/rl78.c: Likewise.
11297 * config/rs6000/rs6000.c: Likewise.
11298 * config/rx/rx.c: Likewise.
11299 * config/s390/s390.c: Likewise.
11300 * config/sh/sh.c: Likewise.
11301 * config/sh/sh-mem.cc: Likewise.
11302 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11303 * config/sh/sh_treg_combine.cc: Likewise.
11304 * config/sparc/sparc.c: Likewise.
11305 * config/spu/spu.c: Likewise.
11306 * config/stormy16/stormy16.c: Likewise.
11307 * config/tilegx/tilegx.c: Likewise.
11308 * config/tilepro/tilepro.c: Likewise.
11309 * config/v850/v850.c: Likewise.
11310 * config/vax/vax.c: Likewise.
11311 * config/visium/visium.c: Likewise.
11312 * config/xtensa/xtensa.c: Likewise.
11314 2015-07-10 Richard Biener <rguenther@suse.de>
11316 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
11317 (decision_tree::gen_gimple): Likewise.
11318 (decision_tree::gen_generic): Likewise.
11320 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
11323 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
11324 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
11326 2015-07-10 Jakub Jelinek <jakub@redhat.com>
11328 PR middle-end/66820
11329 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
11330 or ORT_TASK contexts.
11331 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
11334 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11336 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
11339 2015-07-10 Tom de Vries <tom@codesourcery.com>
11341 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
11342 insert nit + 1 bound.
11344 2015-07-10 Richard Biener <rguenther@suse.de>
11346 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
11347 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
11348 (if_convertible_loop_p_1): For this always compute bb predicates.
11349 (if_convertible_loop_p): And free them.
11351 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11353 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
11356 2015-07-10 Richard Biener <rguenther@suse.de>
11358 PR tree-optimization/66823
11359 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
11360 inverted predicate.
11362 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
11364 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
11365 to handle mips[32|64]r3 and mips[32|64]r5.
11367 2015-07-09 Jakub Jelinek <jakub@redhat.com>
11369 PR middle-end/66633
11370 * tree-nested.c (get_static_chain): Or in a flag into
11371 info->static_chain_added.
11372 (get_frame_field, get_nonlocal_debug_decl): Likewise.
11373 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
11374 2015-07-01 changes.
11375 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
11376 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
11379 PR tree-optimization/66718
11380 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
11382 (vect_simd_lane_linear): New function.
11383 (vectorizable_simd_clone_call): Support using linear arguments for
11384 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
11386 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
11389 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
11391 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
11393 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
11394 Use machine mode, not enum machine_mode in the prototype.
11396 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
11397 classify 128-bit floating point support.
11398 (FLOAT128_IBM_P): Likewise.
11399 (FLOAT128_VECTOR_P): Likewise.
11400 (FLOAT128_2REG_P): Likewise.
11401 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
11402 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
11403 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11404 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
11406 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
11407 tests against TFmode/TDmode, since those modes do not use VSX
11409 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
11411 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
11412 tests against TFmode, etc.
11413 (invalid_e500_subreg): Add tests against IFmode/KFmode.
11414 (reg_offset_addressing_ok_p): Likewise.
11415 (rs6000_legitimate_offset_address_p): Likewise.
11416 (rs6000_legitimize_address): Likewise.
11417 (rs6000_legitimize_reload_address): Likewise.
11418 (rs6000_legitimate_address_p): Clean up tests against TFmode and
11419 TDmode to use the new helper macros, which will include IFmode and
11421 (rs6000_emit_move): Likewise.
11422 (rs6000_darwin64_record_arg_recurse): Likewise.
11423 (print_operand): Likewise.
11424 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
11425 that uses a single vector register as a vector and not as a
11426 floating point register in terms of the calling sequence.
11427 (rs6000_discover_homogeneous_aggregate): Likewise.
11428 (rs6000_return_in_memory): Likewise.
11429 (init_cumulative_args): Likewise.
11430 (rs6000_function_arg_boundary): Likewise.
11431 (rs6000_function_arg_advance_1): Likewise.
11432 (rs6000_function_arg): Likewise.
11433 (rs6000_pass_by_reference): Likewise.
11434 (rs6000_gimplify_va_arg): Likewise.
11435 (rs6000_secondary_reload_memory): Use machine_mode not enum
11437 (rs6000_split_multireg_move): Use new helper macros.
11438 (spe_func_has_64bit_regs_p): Likewise.
11439 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
11440 (output_toc): Use new helper macros.
11441 (rs6000_register_move_cost): Likewise.
11442 (rs6000_function_value): Add IEEE 128-bit floating point calling
11444 (rs6000_libcall_value): Likewise.
11445 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
11446 floating point support.
11447 (rs6000_vector_mode_supported_p): Likewise.
11449 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
11451 PR rtl-optimization/66782
11452 * lra-int.h (struct lra_insn_recog_data): Add comment about
11453 clobbered hard regs for arg_hard_regs.
11454 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
11455 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
11456 Add condition for processing used hard regs.
11457 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
11458 Process clobbered hard regs.
11460 2015-07-09 Michael Matz <matz@suse.de>
11462 * genmatch.c (fprintf_indent): New function.
11463 (operand::gen_transform): Add indent parameter.
11464 (expr::gen_transform, c_expr::gen_transform,
11465 capture::gen_transform): Ditto and use fprintf_indent.
11466 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
11467 (dt_operand::gen, dt_operand::gen_predicate,
11468 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
11469 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
11470 (decision_tree::gen_gimple): Adjust calls and indent generated
11472 (decision_tree::gen_generic): Ditto.
11473 (write_predicate): Ditto.
11475 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
11478 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
11479 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
11480 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
11481 {GENERAL,SSE,MMX}_REG_P where appropriate.
11483 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
11485 * lto-streamer.h: Don't include target.h and alloc-pool.h.
11486 * builtins.c: Adjust includes.
11487 * gimple.c: Likewise.
11488 * ipa-icf.c: Likewise.
11489 * lto-opts.c: Likewise.
11490 * ipa-reference.c: Likewise.
11491 * lto-section-out.c: Likewise.
11492 * lto-streamer-in.c: Likewise.
11493 * lto-streamer-out.c: Likewise.
11494 * opts-global.c: Likewise.
11495 * symtab.c: Likewise.
11496 * tree-chkp.c: Likewise.
11497 * tree-ssa-live.c: Likewise.
11498 * tree-streamer-in.c: Likewise.
11499 * tree-streamer-out.c: Likewise.
11500 * config/darwin.c: Likewise.
11501 * config/i386/winnt.c: Likewise.
11503 2015-07-09 Richard Biener <rguenther@suse.de>
11505 * genmatch.c (struct expr): Add force_single_use flag.
11506 (expr::expr): Add copy constructor.
11507 (capture_info::walk_match): Gather force_single_use captures.
11508 (expr::gen_transform): Use possibly NULLified sequence.
11509 (dt_simplify::gen): Apply single-use restrictions by NULLifying
11510 seq if any constrained expr is not single-use.
11511 (parser::parse_expr): Refactor to allow multiple flags. Handle
11512 's' flag to force an expression have a single-use if the pattern
11513 simplifies to more than one statement.
11514 * match.pd: Convert most single_use conditionals to :s flags.
11516 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
11518 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
11519 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11520 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
11522 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
11524 * flags.h: Don't include flag-types.h or options.h.
11525 * opts-common.c: Adjust includes.
11526 * opts-global.c: Likewise.
11527 * common/config/epiphany/epiphany-common.c: Likewise.
11529 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
11532 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
11535 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
11538 * config/i386/i386.c (ix86_return_in_memory): Return true
11539 if int_size_in_bytes returns negative for IA MCU.
11541 2015-07-09 Marek Polacek <polacek@redhat.com>
11543 PR tree-optimization/66718
11544 * Makefile.in (OBJS): Add gimple-laddress.o.
11545 * passes.def: Schedule pass_laddress.
11546 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
11547 * tree-pass.h (make_pass_laddress): Declare.
11548 * gimple-laddress.c: New file.
11550 2015-07-09 Richard Biener <rguenther@suse.de>
11552 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
11554 2015-07-09 Richard Biener <rguenther@suse.de>
11556 PR tree-optimization/66807
11557 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
11559 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
11561 * function.c (stack_protect_epilogue): Use if rather than switch for
11562 check targetm.have_stack_protect_test.
11564 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11566 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
11567 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
11568 * config/arc/arc.h: Likewise.
11569 * config/arm/arm.h: Likewise.
11570 * config/bfin/bfin.h: Likewise.
11571 * config/epiphany/epiphany.h: Likewise.
11572 * config/frv/frv.h: Likewise.
11573 * config/ia64/ia64.h: Likewise.
11574 * config/iq2000/iq2000.h: Likewise.
11575 * config/lm32/lm32.h: Likewise.
11576 * config/m32r/m32r.h: Likewise.
11577 * config/mcore/mcore.h: Likewise.
11578 * config/mep/mep.h: Likewise.
11579 * config/microblaze/microblaze.h: Likewise.
11580 * config/mips/mips.h: Likewise.
11581 * config/mmix/mmix.h: Likewise.
11582 * config/mn10300/mn10300.h: Likewise.
11583 * config/nds32/nds32.h: Likewise.
11584 * config/nios2/nios2.h: Likewise.
11585 * config/pa/pa.h: Likewise.
11586 * config/rl78/rl78.h: Likewise.
11587 * config/sh/sh.h: Likewise.
11588 * config/sparc/sparc.h: Likewise.
11589 * config/stormy16/stormy16.h: Likewise.
11590 * config/tilegx/tilegx.h: Likewise.
11591 * config/tilepro/tilepro.h: Likewise.
11592 * config/v850/v850.h: Likewise.
11593 * config/xtensa/xtensa.h: Likewise.
11594 * doc/tm.texi: Regenerate.
11595 * doc/tm.texi.in: Adjust.
11596 * combine.c (simplify_set): Likewise.
11597 (simplify_comparison): Likewise.
11598 * expr.c (store_constructor): Likewise.
11599 * internal-fn.c (expand_arith_overflow): Likewise.
11600 * reload.c (push_reload): Likewise.
11601 (find_reloads): Likewise.
11602 (find_reloads_subreg_address): Likewise.
11603 * reload1.c (eliminate_regs_1): Likewise.
11604 * rtlanal.c (nonzero_bits1): Likewise.
11605 (num_sign_bit_copies1): Likewise.
11606 * simplify-rtx.c (simplify_truncation): Likewise.
11608 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11610 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
11611 of AUTO_INC_DEC with the preprocessor.
11612 * combine.c (combine_instructions): Likewise.
11613 (can_combine_p): Likewise.
11614 (try_combine): Likewise.
11615 * emit-rtl.c (try_split): Likewise.
11616 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11617 * lower-subreg.c (resolve_simple_move): Likewise.
11618 * lra.c (update_inc_notes): Likewise.
11619 * recog.c (asm_operand_ok): Likewise.
11620 (constrain_operands): Likewise.
11621 * regrename.c (scan_rtx_address): Likewise.
11622 * reload.c (update_auto_inc_notes): Likewise.
11623 (reg_inc_found_and_valid_p): Likewise.
11624 * reload1.c (reload): Likewise.
11625 (emit_input_reload_insns): Likewise.
11626 (delete_output_reload): Likewise.
11627 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11628 * valtrack.c (cleanup_auto_inc_dec): Likewise.
11630 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11632 * rtl.h: Always define AUTO_INC_DEC.
11633 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
11634 * combine.c (combine_instructions): Likewise.
11635 (can_combine_p): Likewise.
11636 (try_combine): Likewise.
11637 * emit-rtl.c (try_split): Likewise.
11638 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11639 * lower-subreg.c (resolve_simple_move): Likewise.
11640 * lra.c (update_inc_notes): Likewise.
11641 * recog.c (asm_operand_ok): Likewise.
11642 (constrain_operands): Likewise.
11643 * regrename.c (scan_rtx_address): Likewise.
11644 * reload.c (update_auto_inc_notes): Likewise.
11645 (find_equiv_reg): Likewise.
11646 * reload1.c (reload): Likewise.
11647 (reload_as_needed): Likewise.
11648 (choose_reload_regs): Likewise.
11649 (emit_input_reload_insns): Likewise.
11650 (delete_output_reload): Likewise.
11651 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11652 * valtrack.c (cleanup_auto_inc_dec): Likewise.
11654 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11656 * combine.c (can_combine_def_p): Don't check the value of
11657 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
11658 (combinable_i3pat): Likewise.
11659 (mark_used_regs_combine): Likewise.
11660 * regrename.c (rename_chains): Likewise.
11661 * reload.c (find_reloads_address): Likewise.
11662 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11664 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11666 * combine.c (update_rsp_from_reg_equal): Don't check if
11667 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
11668 (reg_nonzero_bits_for_combine): Likewise.
11669 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
11671 * config/frv/frv.h: Likewise.
11672 * config/lm32/lm32.h: Likewise.
11673 * config/mep/mep.h: Likewise.
11674 * config/mips/mips.h: Likewise.
11675 * config/rs6000/rs6000.h: Likewise.
11676 * config/sh/sh.h: Likewise.
11677 * config/tilegx/tilegx.h (enum reg_class): Likewise.
11678 * config/tilepro/tilepro.h: Likewise.
11679 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
11680 * doc/tm.texi: Regenerate.
11681 * doc/tm.texi.in: Adjust.
11682 * rtlanal.c (nonzero_bits1): Likewise.
11684 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11686 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
11687 with the preprocessor.
11688 (combine_instructions): Likewise.
11689 (try_combine): Likewise.
11691 (distribute_notes): Likewise.
11693 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11695 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
11697 (simplify_set): Likewise.
11698 * cse.c (cse_insn): Likewise.
11699 * fold-const.c (fold_single_bit_test): Likewise.
11700 (fold_unary_loc): Likewise.
11701 * postreload.c (reload_cse_simplify_set): Likewise.
11702 (reload_cse_simplify_operands): Likewise.
11704 2015-07-08 Jiong Wang <jiong.wang@arm.com>
11706 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
11707 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
11709 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
11712 * config/i386/x86intrin.h: Include <adxintrin.h> even if
11713 __iamcu__ is defined.
11715 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
11717 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
11719 2015-07-08 Iain Sandoe <iain@codesourcery.com>
11722 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
11723 names from preservation.
11725 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
11728 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
11730 (function_arg_advance_32): Don't pass vectors in registers for
11732 (function_arg_32): Likewise.
11733 (ix86_return_in_memory): Don't return vectors in registers for
11736 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
11738 PR middle-end/66334
11739 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
11740 hard regno live at the start of BB with incoming abnormal edges.
11741 * lra-lives.c (process_bb_lives): Ditto.
11743 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
11746 * config/nvptx/mkoffload.c (main): Create an offload image only in
11747 64-bit configurations.
11749 2015-07-08 Martin Liska <mliska@suse.cz>
11752 * tree-sra.c (create_access_1): Call ctor without brackets.
11753 (create_artificial_child_access): Likewise.
11755 2015-07-08 Richard Biener <rguenther@suse.de>
11757 PR tree-optimization/66793
11758 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
11759 Properly split the block after stmts ending it.
11761 2015-07-08 Richard Biener <rguenther@suse.de>
11763 PR tree-optimization/66794
11764 * passes.c (execute_function_todo): Assert that post-dominators
11766 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
11767 Free post-dominators.
11769 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11771 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
11774 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
11776 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
11777 more than or equal 8 and less than 32 when optimizing for size.
11779 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11781 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
11782 COSTS_N_INSNS (1) and increment it appropriately throughout the
11785 2015-07-08 Richard Biener <rguenther@suse.de>
11787 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
11789 2015-07-08 Alan Modra <amodra@gmail.com>
11791 * target.def (rtx_costs): Remove "code" param, add "mode".
11792 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
11793 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
11794 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
11795 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
11796 call. Track mode when given in rtx.
11797 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
11798 (default_address_cost): Pass Pmode to rtx_cost.
11799 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
11800 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
11802 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
11803 (notreg_cost): Add mode param. Use it.
11804 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
11805 mode param and pass to set_src_cost. Update all calls.
11806 (hash_scan_set): Formatting.
11807 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
11808 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
11810 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
11811 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
11812 emit_store_flag): Update set_src_cost and rtx_cost calls.
11813 * auto-inc-dec.c (attempt_change): Likewise.
11814 * calls.c (precompute_register_parameters): Likewise.
11815 * combine.c (expand_compound_operation, make_extraction,
11816 force_to_mode, distribute_and_simplify_rtx): Likewise.
11817 * dojump.c (prefer_and_bit_test): Likewise.
11818 * dse.c (find_shift_sequence): Likewise.
11819 * expr.c (compress_float_constant): Likewise.
11820 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
11821 * ifcvt.c (noce_try_sign_mask): Likewise.
11822 * loop-doloop.c (doloop_optimize): Likewise.
11823 * loop-invariant.c (create_new_invariant): Likewise.
11824 * lower-subreg.c (shift_cost, compute_costs): Likewise.
11825 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
11826 lshift_cheap_p): Likewise.
11827 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
11828 try_replace_in_use, reload_cse_move2add): Likewise.
11829 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
11831 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11832 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11833 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
11834 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
11835 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
11836 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
11838 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
11839 * config/arc/arc.c (arc_rtx_costs): Likewise.
11840 * config/arm/arm.c (arm_rtx_costs): Likewise.
11841 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
11842 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11843 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
11844 * config/cris/cris.c (cris_rtx_costs): Likewise.
11845 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
11846 * config/frv/frv.c (frv_rtx_costs): Likewise.
11847 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
11848 * config/i386/i386.c (ix86_rtx_costs): Likewise.
11849 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
11850 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
11851 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
11852 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
11853 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
11854 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
11855 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
11856 * config/mep/mep.c (mep_rtx_cost): Likewise.
11857 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
11858 * config/mips/mips.c (mips_rtx_costs): Likewise.
11859 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
11860 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
11861 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
11862 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
11863 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
11864 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
11865 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
11866 * config/pa/pa.c (hppa_rtx_costs): Likewise.
11867 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
11868 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
11869 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
11870 * config/s390/s390.c (s390_rtx_costs): Likewise.
11871 * config/sh/sh.c (sh_rtx_costs): Likewise.
11872 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
11873 * config/spu/spu.c (spu_rtx_costs): Likewise.
11874 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
11875 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
11876 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
11877 * config/v850/v850.c (v850_rtx_costs): Likewise.
11878 * config/vax/vax.c (vax_rtx_costs): Likewise.
11879 * config/visium/visium.c (visium_rtx_costs): Likewise.
11880 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
11881 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
11882 "code" param, and pass as outer_code to first rtx_cost call. Pass
11883 mode to rtx_cost calls.
11884 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
11886 (aarch64_rtx_costs_wrapper): Update.
11887 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
11888 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
11890 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
11891 and rtx_cost calls.
11892 (avr_operand_rtx_cost): Similarly.
11893 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
11894 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
11895 * config/mips/mips.c (mips_stack_address_p): Comment typo.
11896 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
11897 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
11898 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
11900 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
11901 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
11902 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
11903 * doc/tm.texi: Regenerate.
11905 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
11907 * tree-core.h: Include symtab.h.
11908 * rtl.h: Include hard-reg-set.h but not flags.h.
11909 (HARD_CONST): Remove condition compilation involving HARD_CONST since
11910 hard-reg-set.h is always included.
11911 * regs.h: Don't include hard-reg-set.h or rtl.h.
11912 * cfg.h: Include dominance.h.
11913 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
11914 * backend.h: New. Aggregate commonly used backend header files.
11915 * gimple-ssa.h: Don't include tree-hasher.h.
11916 * ssa.h: New. Aggregate commonly used SSA header files.
11917 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
11918 * sel-sched-ir.h: Flatten includes.
11919 * lra-int.h: Flatten completely.
11920 * sel-sched-dump.h: Flatten includes.
11921 * ira-int.h: Flatten includes.
11922 * gimple-streamer.h: Remove all includes.
11923 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
11924 * resource.h: Flatten hard-reg-set.h and df.h.
11925 * sched-int.h: Flatten insn-arrt.h and df.h.
11926 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
11927 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
11928 * genattrtab.c (write_header): Adjust generated includes.
11929 * genautomata.c (main): Likewise.
11930 * genconditions.c (write-header): Likewise.
11931 * genemit.c (main): Likewise.
11932 * gengtype.c (open_base_files): Likewise.
11933 * genopinit.c (main): Likewise.
11934 * genoutput.c (output_prologue): Likewise.
11935 * genpeep.c (main): Likewise.
11936 * genpreds.c (write_insn_preds_c): Likewise.
11937 * genrecog.c (write_header): Likewise.
11938 * alias.c: Adjust includes.
11939 * asan.c: Likewise.
11940 * attribs.c: Likewise.
11941 * auto-inc-dec.c: Likewise.
11942 * auto-profile.c: Likewise.
11943 * bb-reorder.c: Likewise.
11944 * bt-load.c: Likewise.
11945 * builtins.c: Likewise.
11946 * caller-save.c: Likewise.
11947 * calls.c: Likewise.
11948 * ccmp.c: Likewise.
11950 * cfganal.c: Likewise.
11951 * cfgbuild.c: Likewise.
11952 * cfgcleanup.c: Likewise.
11953 * cfgexpand.c: Likewise.
11954 * cfghooks.c: Likewise.
11955 * cfgloop.c: Likewise.
11956 * cfgloopanal.c: Likewise.
11957 * cfgloopmanip.c: Likewise.
11958 * cfgrtl.c: Likewise.
11959 * cgraph.c: Likewise.
11960 * cgraphbuild.c: Likewise.
11961 * cgraphclones.c: Likewise.
11962 * cgraphunit.c: Likewise.
11963 * cilk-common.c: Likewise.
11964 * combine-stack-adj.c: Likewise.
11965 * combine.c: Likewise.
11966 * compare-elim.c: Likewise.
11967 * convert.c: Likewise.
11968 * coverage.c: Likewise.
11969 * cppbuiltin.c: Likewise.
11970 * cprop.c: Likewise.
11972 * cselib.c: Likewise.
11973 * data-streamer-in.c: Likewise.
11974 * data-streamer-out.c: Likewise.
11975 * data-streamer.c: Likewise.
11976 * dbxout.c: Likewise.
11979 * debug.c: Likewise.
11980 * df-core.c: Likewise.
11981 * df-problems.c: Likewise.
11982 * df-scan.c: Likewise.
11984 * dojump.c: Likewise.
11985 * dominance.c: Likewise.
11986 * domwalk.c: Likewise.
11987 * double-int.c: Likewise.
11989 * dumpfile.c: Likewise.
11990 * dwarf2asm.c: Likewise.
11991 * dwarf2cfi.c: Likewise.
11992 * dwarf2out.c: Likewise.
11993 * emit-rtl.c: Likewise.
11994 * et-forest.c: Likewise.
11995 * except.c: Likewise.
11996 * explow.c: Likewise.
11997 * expmed.c: Likewise.
11998 * expr.c: Likewise.
11999 * final.c: Likewise.
12000 * fixed-value.c: Likewise.
12001 * fold-const.c: Likewise.
12002 * function.c: Likewise.
12003 * fwprop.c: Likewise.
12004 * gcc-plugin.h: Likewise.
12005 * gcse-common.c: Likewise.
12006 * gcse.c: Likewise.
12007 * generic-match-head.c: Likewise.
12008 * ggc-page.c: Likewise.
12009 * gimple-builder.c: Likewise.
12010 * gimple-expr.c: Likewise.
12011 * gimple-fold.c: Likewise.
12012 * gimple-iterator.c: Likewise.
12013 * gimple-low.c: Likewise.
12014 * gimple-match-head.c: Likewise.
12015 * gimple-pretty-print.c: Likewise.
12016 * gimple-ssa-isolate-paths.c: Likewise.
12017 * gimple-ssa-strength-reduction.c: Likewise.
12018 * gimple-streamer-in.c: Likewise.
12019 * gimple-streamer-out.c: Likewise.
12020 * gimple-walk.c: Likewise.
12021 * gimple.c: Likewise.
12022 * gimplify-me.c: Likewise.
12023 * gimplify.c: Likewise.
12024 * godump.c: Likewise.
12025 * graph.c: Likewise.
12026 * graphite-blocking.c: Likewise.
12027 * graphite-dependences.c: Likewise.
12028 * graphite-interchange.c: Likewise.
12029 * graphite-isl-ast-to-gimple.c: Likewise.
12030 * graphite-optimize-isl.c: Likewise.
12031 * graphite-poly.c: Likewise.
12032 * graphite-scop-detection.c: Likewise.
12033 * graphite-sese-to-poly.c: Likewise.
12034 * graphite.c: Likewise.
12035 * haifa-sched.c: Likewise.
12036 * hw-doloop.c: Likewise.
12037 * ifcvt.c: Likewise.
12038 * init-regs.c: Likewise.
12039 * internal-fn.c: Likewise.
12040 * ipa-chkp.c: Likewise.
12041 * ipa-comdats.c: Likewise.
12042 * ipa-cp.c: Likewise.
12043 * ipa-devirt.c: Likewise.
12044 * ipa-icf-gimple.c: Likewise.
12045 * ipa-icf.c: Likewise.
12046 * ipa-inline-analysis.c: Likewise.
12047 * ipa-inline-transform.c: Likewise.
12048 * ipa-inline.c: Likewise.
12049 * ipa-polymorphic-call.c: Likewise.
12050 * ipa-profile.c: Likewise.
12051 * ipa-prop.c: Likewise.
12052 * ipa-pure-const.c: Likewise.
12053 * ipa-ref.c: Likewise.
12054 * ipa-reference.c: Likewise.
12055 * ipa-split.c: Likewise.
12056 * ipa-utils.c: Likewise.
12057 * ipa-visibility.c: Likewise.
12059 * ira-build.c: Likewise.
12060 * ira-color.c: Likewise.
12061 * ira-conflicts.c: Likewise.
12062 * ira-costs.c: Likewise.
12063 * ira-emit.c: Likewise.
12064 * ira-lives.c: Likewise.
12066 * jump.c: Likewise.
12067 * langhooks.c: Likewise.
12069 * loop-doloop.c: Likewise.
12070 * loop-init.c: Likewise.
12071 * loop-invariant.c: Likewise.
12072 * loop-iv.c: Likewise.
12073 * loop-unroll.c: Likewise.
12074 * lower-subreg.c: Likewise.
12075 * lra-assigns.c: Likewise.
12076 * lra-coalesce.c: Likewise.
12077 * lra-constraints.c: Likewise.
12078 * lra-eliminations.c: Likewise.
12079 * lra-lives.c: Likewise.
12080 * lra-remat.c: Likewise.
12081 * lra-spills.c: Likewise.
12083 * lto-cgraph.c: Likewise.
12084 * lto-compress.c: Likewise.
12085 * lto-opts.c: Likewise.
12086 * lto-section-in.c: Likewise.
12087 * lto-section-out.c: Likewise.
12088 * lto-streamer-in.c: Likewise.
12089 * lto-streamer-out.c: Likewise.
12090 * lto-streamer.c: Likewise.
12092 * mode-switching.c: Likewise.
12093 * modulo-sched.c: Likewise.
12094 * omega.c: Likewise.
12095 * omp-low.c: Likewise.
12096 * optabs.c: Likewise.
12097 * opts-global.c: Likewise.
12098 * passes.c: Likewise.
12099 * plugin.c: Likewise.
12100 * postreload-gcse.c: Likewise.
12101 * postreload.c: Likewise.
12102 * predict.c: Likewise.
12103 * print-rtl.c: Likewise.
12104 * print-tree.c: Likewise.
12105 * profile.c: Likewise.
12106 * real.c: Likewise.
12107 * realmpfr.c: Likewise.
12108 * recog.c: Likewise.
12110 * reg-stack.c: Likewise.
12111 * regcprop.c: Likewise.
12112 * reginfo.c: Likewise.
12113 * regrename.c: Likewise.
12114 * regstat.c: Likewise.
12115 * reload.c: Likewise.
12116 * reload1.c: Likewise.
12117 * reorg.c: Likewise.
12118 * resource.c: Likewise.
12119 * rtl-chkp.c: Likewise.
12120 * rtlanal.c: Likewise.
12121 * rtlhooks.c: Likewise.
12122 * sanopt.c: Likewise.
12123 * sched-deps.c: Likewise.
12124 * sched-ebb.c: Likewise.
12125 * sched-rgn.c: Likewise.
12126 * sched-vis.c: Likewise.
12127 * sdbout.c: Likewise.
12128 * sel-sched-dump.c: Likewise.
12129 * sel-sched-ir.c: Likewise.
12130 * sel-sched.c: Likewise.
12131 * sese.c: Likewise.
12132 * shrink-wrap.c: Likewise.
12133 * simplify-rtx.c: Likewise.
12134 * stack-ptr-mod.c: Likewise.
12135 * stmt.c: Likewise.
12136 * stor-layout.c: Likewise.
12137 * store-motion.c: Likewise.
12138 * stringpool.c: Likewise.
12139 * symtab.c: Likewise.
12140 * target-globals.c: Likewise.
12141 * targhooks.c: Likewise.
12142 * toplev.c: Likewise.
12143 * tracer.c: Likewise.
12144 * trans-mem.c: Likewise.
12145 * tree-affine.c: Likewise.
12146 * tree-browser.c: Likewise.
12147 * tree-call-cdce.c: Likewise.
12148 * tree-cfg.c: Likewise.
12149 * tree-cfgcleanup.c: Likewise.
12150 * tree-chkp-opt.c: Likewise.
12151 * tree-chkp.c: Likewise.
12152 * tree-chrec.c: Likewise.
12153 * tree-complex.c: Likewise.
12154 * tree-data-ref.c: Likewise.
12155 * tree-dfa.c: Likewise.
12156 * tree-diagnostic.c: Likewise.
12157 * tree-dump.c: Likewise.
12158 * tree-eh.c: Likewise.
12159 * tree-emutls.c: Likewise.
12160 * tree-if-conv.c: Likewise.
12161 * tree-inline.c: Likewise.
12162 * tree-into-ssa.c: Likewise.
12163 * tree-iterator.c: Likewise.
12164 * tree-loop-distribution.c: Likewise.
12165 * tree-nested.c: Likewise.
12166 * tree-nrv.c: Likewise.
12167 * tree-object-size.c: Likewise.
12168 * tree-outof-ssa.c: Likewise.
12169 * tree-parloops.c: Likewise.
12170 * tree-phinodes.c: Likewise.
12171 * tree-predcom.c: Likewise.
12172 * tree-pretty-print.c: Likewise.
12173 * tree-profile.c: Likewise.
12174 * tree-scalar-evolution.c: Likewise.
12175 * tree-sra.c: Likewise.
12176 * tree-ssa-address.c: Likewise.
12177 * tree-ssa-alias.c: Likewise.
12178 * tree-ssa-ccp.c: Likewise.
12179 * tree-ssa-coalesce.c: Likewise.
12180 * tree-ssa-copy.c: Likewise.
12181 * tree-ssa-copyrename.c: Likewise.
12182 * tree-ssa-dce.c: Likewise.
12183 * tree-ssa-dom.c: Likewise.
12184 * tree-ssa-dse.c: Likewise.
12185 * tree-ssa-forwprop.c: Likewise.
12186 * tree-ssa-ifcombine.c: Likewise.
12187 * tree-ssa-live.c: Likewise.
12188 * tree-ssa-loop-ch.c: Likewise.
12189 * tree-ssa-loop-im.c: Likewise.
12190 * tree-ssa-loop-ivcanon.c: Likewise.
12191 * tree-ssa-loop-ivopts.c: Likewise.
12192 * tree-ssa-loop-manip.c: Likewise.
12193 * tree-ssa-loop-niter.c: Likewise.
12194 * tree-ssa-loop-prefetch.c: Likewise.
12195 * tree-ssa-loop-unswitch.c: Likewise.
12196 * tree-ssa-loop.c: Likewise.
12197 * tree-ssa-math-opts.c: Likewise.
12198 * tree-ssa-operands.c: Likewise.
12199 * tree-ssa-phiopt.c: Likewise.
12200 * tree-ssa-phiprop.c: Likewise.
12201 * tree-ssa-pre.c: Likewise.
12202 * tree-ssa-propagate.c: Likewise.
12203 * tree-ssa-reassoc.c: Likewise.
12204 * tree-ssa-sccvn.c: Likewise.
12205 * tree-ssa-scopedtables.c: Likewise.
12206 * tree-ssa-sink.c: Likewise.
12207 * tree-ssa-strlen.c: Likewise.
12208 * tree-ssa-structalias.c: Likewise.
12209 * tree-ssa-tail-merge.c: Likewise.
12210 * tree-ssa-ter.c: Likewise.
12211 * tree-ssa-threadedge.c: Likewise.
12212 * tree-ssa-threadupdate.c: Likewise.
12213 * tree-ssa-uncprop.c: Likewise.
12214 * tree-ssa-uninit.c: Likewise.
12215 * tree-ssa.c: Likewise.
12216 * tree-ssanames.c: Likewise.
12217 * tree-stdarg.c: Likewise.
12218 * tree-streamer-in.c: Likewise.
12219 * tree-streamer-out.c: Likewise.
12220 * tree-streamer.c: Likewise.
12221 * tree-switch-conversion.c: Likewise.
12222 * tree-tailcall.c: Likewise.
12223 * tree-vect-data-refs.c: Likewise.
12224 * tree-vect-generic.c: Likewise.
12225 * tree-vect-loop-manip.c: Likewise.
12226 * tree-vect-loop.c: Likewise.
12227 * tree-vect-patterns.c: Likewise.
12228 * tree-vect-slp.c: Likewise.
12229 * tree-vect-stmts.c: Likewise.
12230 * tree-vectorizer.c: Likewise.
12231 * tree-vrp.c: Likewise.
12232 * tree.c: Likewise.
12233 * tsan.c: Likewise.
12234 * ubsan.c: Likewise.
12235 * valtrack.c: Likewise.
12236 * value-prof.c: Likewise.
12237 * var-tracking.c: Likewise.
12238 * varasm.c: Likewise.
12239 * varpool.c: Likewise.
12240 * vmsdbgout.c: Likewise.
12241 * vtable-verify.c: Likewise.
12243 * wide-int.cc: Likewise.
12244 * xcoffout.c: Likewise.
12245 * config/aarch64/aarch64-builtins.c: Likewise.
12246 * config/aarch64/aarch64.c: Likewise.
12247 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12248 * config/alpha/alpha.c: Likewise.
12249 * config/arc/arc.c: Likewise.
12250 * config/arm/aarch-common.c: Likewise.
12251 * config/arm/arm-builtins.c: Likewise.
12252 * config/arm/arm-c.c: Likewise.
12253 * config/arm/arm.c: Likewise.
12254 * config/avr/avr-c.c: Likewise.
12255 * config/avr/avr-log.c: Likewise.
12256 * config/avr/avr.c: Likewise.
12257 * config/bfin/bfin.c: Likewise.
12258 * config/c6x/c6x.c: Likewise.
12259 * config/cr16/cr16.c: Likewise.
12260 * config/cris/cris.c: Likewise.
12261 * config/darwin-c.c: Likewise.
12262 * config/darwin.c: Likewise.
12263 * config/epiphany/epiphany.c: Likewise.
12264 * config/epiphany/mode-switch-use.c: Likewise.
12265 * config/epiphany/resolve-sw-modes.c: Likewise.
12266 * config/fr30/fr30.c: Likewise.
12267 * config/frv/frv.c: Likewise.
12268 * config/ft32/ft32.c: Likewise.
12269 * config/h8300/h8300.c: Likewise.
12270 * config/i386/i386-c.c: Likewise.
12271 * config/i386/i386.c: Likewise.
12272 * config/i386/msformat-c.c: Likewise.
12273 * config/i386/winnt-cxx.c: Likewise.
12274 * config/i386/winnt-stubs.c: Likewise.
12275 * config/i386/winnt.c: Likewise.
12276 * config/ia64/ia64-c.c: Likewise.
12277 * config/ia64/ia64.c: Likewise.
12278 * config/iq2000/iq2000.c: Likewise.
12279 * config/lm32/lm32.c: Likewise.
12280 * config/m32c/m32c-pragma.c: Likewise.
12281 * config/m32c/m32c.c: Likewise.
12282 * config/m32r/m32r.c: Likewise.
12283 * config/m68k/m68k.c: Likewise.
12284 * config/mcore/mcore.c: Likewise.
12285 * config/mep/mep-pragma.c: Likewise.
12286 * config/mep/mep.c: Likewise.
12287 * config/microblaze/microblaze-c.c: Likewise.
12288 * config/microblaze/microblaze.c: Likewise.
12289 * config/mips/mips.c: Likewise.
12290 * config/mmix/mmix.c: Likewise.
12291 * config/mn10300/mn10300.c: Likewise.
12292 * config/moxie/moxie.c: Likewise.
12293 * config/msp430/msp430-c.c: Likewise.
12294 * config/msp430/msp430.c: Likewise.
12295 * config/nds32/nds32-cost.c: Likewise.
12296 * config/nds32/nds32-fp-as-gp.c: Likewise.
12297 * config/nds32/nds32-intrinsic.c: Likewise.
12298 * config/nds32/nds32-isr.c: Likewise.
12299 * config/nds32/nds32-md-auxiliary.c: Likewise.
12300 * config/nds32/nds32-memory-manipulation.c: Likewise.
12301 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12302 * config/nds32/nds32-predicates.c: Likewise.
12303 * config/nds32/nds32.c: Likewise.
12304 * config/nios2/nios2.c: Likewise.
12305 * config/nvptx/nvptx.c: Likewise.
12306 * config/pa/pa.c: Likewise.
12307 * config/pdp11/pdp11.c: Likewise.
12308 * config/rl78/rl78-c.c: Likewise.
12309 * config/rl78/rl78.c: Likewise.
12310 * config/rs6000/rs6000-c.c: Likewise.
12311 * config/rs6000/rs6000.c: Likewise.
12312 * config/rx/rx.c: Likewise.
12313 * config/s390/s390-c.c: Likewise.
12314 * config/s390/s390.c: Likewise.
12315 * config/sh/sh-c.c: Likewise.
12316 * config/sh/sh-mem.cc: Likewise.
12317 * config/sh/sh.c: Likewise.
12318 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12319 * config/sh/sh_treg_combine.cc: Likewise.
12320 * config/sol2-c.c: Likewise.
12321 * config/sol2-cxx.c: Likewise.
12322 * config/sol2-stubs.c: Likewise.
12323 * config/sol2.c: Likewise.
12324 * config/sparc/sparc-c.c: Likewise.
12325 * config/sparc/sparc.c: Likewise.
12326 * config/spu/spu-c.c: Likewise.
12327 * config/spu/spu.c: Likewise.
12328 * config/stormy16/stormy16.c: Likewise.
12329 * config/tilegx/mul-tables.c: Likewise.
12330 * config/tilegx/tilegx-c.c: Likewise.
12331 * config/tilegx/tilegx.c: Likewise.
12332 * config/tilepro/mul-tables.c: Likewise.
12333 * config/tilepro/tilepro-c.c: Likewise.
12334 * config/tilepro/tilepro.c: Likewise.
12335 * config/v850/v850-c.c: Likewise.
12336 * config/v850/v850.c: Likewise.
12337 * config/vax/vax.c: Likewise.
12338 * config/visium/visium.c: Likewise.
12339 * config/vms/vms-c.c: Likewise.
12340 * config/vms/vms.c: Likewise.
12341 * config/vxworks.c: Likewise.
12342 * config/xtensa/xtensa.c: Likewise.
12344 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
12346 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
12347 Remove operand constraints. Change operand 2 predicate to
12348 nonmemory operand. Limit const_int values to mode bitsize. Only
12349 allow const_int values less than 32 when optimizing for size.
12350 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
12351 Remove operand constraints.
12352 (*bt<mode>): Use SImode for const_int values less than 32.
12353 (regmode): Remove mode attribute.
12355 2015-07-07 Anatoly Sokolov <aesok@post.ru>
12357 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12358 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
12359 moxie_legitimate_address_p): New functions.
12360 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12362 2015-07-07 Tom de Vries <tom@codesourcery.com>
12364 PR tree-optimization/66642
12365 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
12366 header comment. Rename split_edge variable to edge_at_split. Split
12367 exit edge to create new loop exit bb. Insert loop exit phis in new
12370 2015-07-07 Tom de Vries <tom@codesourcery.com>
12372 * tree-cfg.c (get_virtual_phi): New function.
12373 * tree-cfg.h (get_virtual_phi): Declare.
12374 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
12375 (rewrite_virtuals_into_loop_closed_ssa): New function.
12376 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
12378 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
12379 (transform_to_exit_first_loop_alt): Use
12380 rewrite_virtuals_into_loop_closed_ssa.
12382 2015-07-07 Richard Biener <rguenther@suse.de>
12384 * fold-const.c (fold_binary_loc): Move
12385 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
12386 * match.pd: ... here.
12387 Add (X * C1) % C2 -> 0 simplification pattern derived from
12390 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
12393 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
12394 change for target/65249.
12396 2015-07-07 Paulo Matos <pmatos@broadcom.com>
12398 * symtab.c (address_matters_1): Fix typo in comment above.
12399 (can_increase_alignment_p): Likewise.
12401 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12403 * function.c (free_after_compilation): Clear PROP_cfg in
12404 f->curr_properties.
12406 2015-07-07 Richard Biener <rguenther@suse.de>
12408 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
12410 (add_control_edge): Remove excessive vertical space in dumping.
12411 (process_ssa_edge_worklist): Simulate at most one statement and
12412 return whether we did. Do not simulate PHIs if they are in a
12413 BB not yet simulated.
12414 (ssa_propagate): Adjust to always drain the BB worklist whenever
12415 a BB is available there, likewise the VARYING edges list before
12416 the interesting edge list.
12418 2015-07-07 Christian Bruel <christian.bruel@st.com>
12421 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
12423 2015-07-07 Richard Biener <rguenther@suse.de>
12425 PR middle-end/66739
12426 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
12429 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
12431 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
12432 modes for operands 0 and 3. Use SImode for operands 2 and 3.
12433 Copy operand 0 to a temporary if !ext_register_operand. Remove
12434 ancient extract_bit_field workaround.
12435 (insv<mode>_1): Rename from mov<mode>_insv_1.
12436 (*insvqi): Rename from *movqi_insv_2.
12437 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
12438 for renamed insvsi_1.
12439 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
12441 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
12443 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
12444 call to nvptx_reorg_subreg.
12446 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
12448 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
12449 * graphite-dependencies.c, graphite-interchange.c,
12450 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
12451 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
12454 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
12456 * match.pd: Remove element_mode inside HONOR_*.
12457 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
12458 (~X | X -> -1, ~X ^ X -> -1): Merge.
12459 * tree.c (build_each_one_cst): New function.
12460 * tree.h (build_each_one_cst): Likewise.
12462 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
12464 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12467 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
12469 * config.gcc <mips*-*-*>: Add fused-madd.opt.
12470 * config/mips/mips.opt (mfused-madd): Remove.
12471 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
12472 * config/mips/mips.h (TARGET_MIPS8000): New.
12473 (ISA_HAS_FP_MADD4_MSUB4): Remove.
12474 (ISA_HAS_FP_MADDF_MSUBF): Remove.
12475 (ISA_HAS_FP_MADD3_MSUB3): Remove.
12476 (ISA_HAS_NMADD4_NMSUB4): Remove.
12477 (ISA_HAS_NMADD3_NMSUB3): Remove.
12478 (ISA_HAS_FUSED_MADD4): New.
12479 (ISA_HAS_UNFUSED_MADD4): New.
12480 (ISA_HAS_FUSED_MADDF): New.
12481 (ISA_HAS_FUSED_MADD3): New.
12482 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
12483 (*fma<mode>4_madd3) New.
12484 (*fma<mode>4_madd4) New.
12485 (*fma<mode>4_maddf) New.
12487 (*fms<mode>4_msub3) New.
12488 (*fms<mode>4_msub4) New.
12490 (*fnma<mode>4_nmadd3) New.
12491 (*fnma<mode>4_nmadd4) New.
12493 (*fnms<mode>4_nmsub3) New.
12494 (*fnms<mode>4_nmsub4) New.
12495 (*madd4<mode>) Modify to be unfused only.
12496 (*msub4<mode>) Modify to be unfused only.
12497 (*nmadd4<mode>) Modify to be unfused only.
12498 (*nmsub4<mode>) Modify to be unfused only.
12499 (*madd3<mode>) Remove.
12500 (*msub3<mode>) Remove.
12501 (*nmadd3<mode>) Remove.
12502 (*nmsub3<mode>) Remove.
12503 (*nmadd3<mode>_fastmath) Remove.
12504 (*nmsub3<mode>_fastmath) Remove.
12505 (*nmadd4<mode>_fastmath) Update condition.
12506 (*nmsub4<mode>_fastmath) Update condition.
12508 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
12511 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
12512 alignment attribute, exploring one level down for records and arrays.
12514 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
12516 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
12517 modes for operands 0 and 1. Use SImode for operands 2 and 3.
12518 Copy operand 1 to a temporary if !ext_register_operand. Remove
12519 ancient extract_bit_field workaround.
12520 (*extv<mode>): Rename from *mov<mode>_extv_1.
12521 (*extvqi): Rename from *movqi_extv_1.
12522 (extzv<mode>): Rename from extzv. Use SWI248 modes for
12523 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
12524 to a temporary if !ext_register_operand. Remove ancient
12525 extract_bit_field workaround.
12526 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
12527 (*extzvqi): Rename from *movqi_extzv_2.
12528 (*testqi_ext_3): Remove modes from const_int_operand predicated
12529 operands. Add "n" constraint.
12530 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
12531 operand. Add "J" constraint.
12532 (*btsq, *btrq, *btcq peephole2s): Remove mode from
12533 const_0_to_63 predicated operand.
12534 (regmode): New insn attribute.
12535 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
12536 to nonmemory_operand. Use regmode insn attribute.
12537 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
12538 (*jcc_bt<mode>_mask): Remove mode from operand 3.
12539 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
12540 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
12541 operands. Use "N" constraint instead of "n".
12543 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
12545 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
12547 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
12550 * config/i386/i386.c (iamcu_cost): New.
12551 (m_IAMCU): Likewise.
12552 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
12553 (processor_target_table): Add an entry for "iamcu".
12554 (processor_alias_table): Likewise.
12555 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
12556 (ix86_adjust_cost): Likewise.
12557 (ia32_multipass_dfa_lookahead): Likewise.
12558 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
12559 * config/i386/x86-tune.def: Updated for m_IAMCU.
12561 2015-07-06 Richard Biener <rguenther@suse.de>
12563 PR tree-optimization/66772
12564 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
12565 values are available in the PHI node BB when there are
12566 still unexecutable edges.
12568 2015-07-06 Richard Biener <rguenther@suse.de>
12570 PR tree-optimization/66767
12571 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
12572 Make sure to build the alignment test on a SSA name without
12573 final alignment info valid only if the alignment test
12576 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
12579 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
12580 loop start when inserting LSETUP.
12582 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
12585 * config/i386/i386.c (ix86_option_override_internal): Allow
12586 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
12588 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12590 * read-md.c (decimal_string): Rename to ...
12591 (md_decimal_string): ... this.
12592 (handle_enum): Reflect this.
12594 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12597 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
12599 2015-07-06 Richard Biener <rguenther@suse.de>
12601 PR middle-end/66759
12602 * match.pd: Add missing constraint of y to REAL_CST in
12603 REAL_CST - x CMP y to y - CST CMP x simplification.
12605 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
12607 PR tree-optimization/66757
12608 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
12610 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
12611 Sandra Loosemore <sandra@codesourcery.com>
12613 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
12614 Delete extern declaration.
12615 (gprel_constant_p): Add extern declaration.
12616 * config/nios2/constraints.md ("S"): Use gprel_constant_p
12617 instead of nios2_symbol_ref_in_small_data_p.
12618 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
12619 (nios2_symbol_ref_in_small_data_p): Make static.
12620 (gprel_constant_p): Make non-static.
12622 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
12624 * doc/fragments.texi (Target Fragment): Convert debian.org
12626 * doc/install.texi (Configuration): Ditto.
12628 2015-07-05 Jakub Jelinek <jakub@redhat.com>
12630 PR tree-optimization/66718
12631 * tree-vect-stmts.c (vectorizable_call): Replace uses of
12632 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
12634 PR tree-optimization/66718
12635 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
12636 vectorizable_load, vectorizable_condition): Move vectype,
12637 nunits, ncopies computation after checking what kind of statement
12640 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12642 * target-insns.def (extv, extzv, insv): New targetm instruction
12644 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
12646 * recog.c (simplify_while_replacing): Likewise.
12648 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12650 * target-insns.def (doloop_begin, doloop_end): New targetm
12651 instruction patterns.
12652 * loop-init.c: Include target.h.
12653 (pass_loop2::gate): Use the new targetm patterns instead of
12654 HAVE_*/gen_* interface.
12655 (pass_rtl_doloop::gate): Likewise.
12656 (pass_rtl_doloop::execute): Remove preprocessor condition.
12657 * hw-doloop.c: Build unconditionally.
12658 * loop-doloop.c: Likewise.
12659 (doloop_optimize): Use the new targetm patterns instead of
12660 HAVE_*/gen_* interface.
12661 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
12662 * modulo-sched.c (doloop_register_get): Likewise.
12664 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12666 * target-insns.def (clear_cache): New targetm instruction pattern.
12667 * builtins.c (expand_builtin___clear_cache): Use it instead of
12668 HAVE_*/gen_* interface.
12670 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12672 * target-insns.def (allocate_stack, check_stack, probe_stack)
12673 (probe_stack_address, split_stack_prologue, split_stack_space_check):
12674 New targetm instruction patterns.
12675 * explow.c (allocate_dynamic_stack_space): Use them instead of
12676 HAVE_*/gen_* interface.
12677 (emit_stack_probe): Likewise.
12678 (probe_stack_range): Likewise.
12679 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12681 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12683 * target-insns.def (stack_protect_set, stack_protect_test): New
12684 targetm instruction patterns.
12685 * cfgexpand.c (stack_protect_prologue): Use them instead of
12686 HAVE_*/gen_* interface.
12687 * function.c (stack_protect_epilogue): Likewise.
12689 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12691 * expr.h (gen_move_insn_uncast): Delete.
12692 * expr.c (gen_move_insn_uncast): Delete.
12694 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12696 * target-insns.def (restore_stack_block, restore_stack_function)
12697 (restore_stack_nonlocal, save_stack_block, save_stack_function)
12698 (save_stack_nonlocal): New targetm instruction patterns.
12699 * builtins.c (expand_builtin_apply): Use them instead of
12700 HAVE_*/gen_* interface.
12701 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
12703 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12705 * target-insns.def (trap): New targetm instruction pattern.
12706 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
12708 * explow.c (allocate_dynamic_stack_space): Likewise.
12709 * ifcvt.c (find_if_header): Likewise.
12711 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12713 * target-insns.def (prefetch): New targetm instruction pattern.
12714 * tree-ssa-loop-prefetch.c: Include targeth.
12715 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
12716 of HAVE_*/gen_* interface.
12717 * builtins.c (expand_builtin_prefetch): Likewise.
12718 * toplev.c (process_options): Likewise.
12720 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12722 * target-insns.def (untyped_call, untyped_return): New targetm
12723 instruction patterns.
12724 * builtins.c (expand_builtin_apply): Use them instead of
12725 HAVE_*/gen_* interface.
12726 (result_vector): Define unconditionally.
12728 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12730 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
12731 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
12732 (nonlocal_goto_receiver): New targetm instruction patterns.
12733 * builtins.c (expand_builtin_setjmp_setup): Use them instead
12734 of HAVE_*/gen_* interface.
12735 (expand_builtin_setjmp_receiver): Likewise.
12736 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
12737 * except.c (expand_dw2_landing_pad_for_region): Likewise.
12739 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
12741 * target.def: Add code_for_* hooks.
12742 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
12743 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
12744 * target-insns.def (casesi, tablejump): New targetm instruction
12746 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
12747 (do_tablejump): Likewise.
12748 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
12749 (expand_sjlj_dispatch_table): Likewise.
12750 * targhooks.c (default_case_values_threshold): Likewise.
12752 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
12754 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
12755 Use rtx_insn * instead of rtx.
12756 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
12757 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
12758 (nios2_call_tls_get_addr): Likewise.
12759 (nios2_emit_expensive_div): Likewise.
12760 (nios2_emit_move_sequence): Change return type to bool.
12761 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
12762 Change return type to bool.
12764 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
12767 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
12769 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
12772 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
12773 of register_operand. Remove constraint.
12775 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
12777 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
12778 the first argument.
12780 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
12782 * attribs.c (decl_attributes): Guard inform with the return value
12783 of the preceding warning.
12785 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
12787 * doc/invoke.texi (moverride): Move to correct section.
12789 2015-07-03 Richard Biener <rguenther@suse.de>
12791 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
12793 (dt_operand::gen_gimple_expr): After valueizing operands
12794 re-canonicalize operand order for commutative tree codes.
12796 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
12799 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
12801 (__crc32w): Likewise.
12802 (__crc32d): Likewise.
12803 (__rdpmc): Likewise.
12804 (__rdtscp): Likewise.
12805 (_rdpmc): Likewise.
12806 (_rdtscp): Likewise.
12807 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
12810 2015-07-03 Richard Biener <rguenther@suse.de>
12812 * fold-const.c (fold_mathfn_compare): Remove.
12813 (fold_inf_compare): Likewise.
12814 (fold_comparison): Move floating point comparison simplifications...
12815 * match.pd: ... to patterns here. Introduce simple_comparisons
12816 operator list and use it for patterns formerly in fold_comparison.
12818 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
12820 PR tree-optimization/66119
12821 * toplev.c (process_options): Don't set up default values for
12822 the sra_max_scalarization_size_{speed,size} parameters.
12823 * tree-sra (analyze_all_variable_accesses): If no values
12824 have been set for the sra_max_scalarization_size_{speed,size}
12825 parameters, call get_move_ratio to get target defaults.
12827 2015-07-03 Richard Biener <rguenther@suse.de>
12829 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
12830 * match.pd: ... here.
12832 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
12835 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
12836 is not actually the default on FreeBSD.
12838 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12840 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
12842 (CMPGE_8HI): Likewise.
12843 (CMPGE_4SI): Likewise.
12844 (CMPGE_2DI): Likewise.
12845 (CMPGE_U16QI): Likewise.
12846 (CMPGE_U8HI): Likewise.
12847 (CMPGE_U4SI): Likewise.
12848 (CMPGE_U2DI): Likewise.
12849 (CMPLE_16QI): Likewise.
12850 (CMPLE_8HI): Likewise.
12851 (CMPLE_4SI): Likewise.
12852 (CMPLE_2DI): Likewise.
12853 (CMPLE_U16QI): Likewise.
12854 (CMPLE_U8HI): Likewise.
12855 (CMPLE_U4SI): Likewise.
12856 (CMPLE_U2DI): Likewise.
12857 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12858 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
12859 ALTIVEC_BUILTIN_VEC_CMPLE.
12860 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
12861 floating-point vector modes.
12862 (vector_nlt<mode>): New define_expand.
12863 (vector_nltu<mode>): Likewise.
12864 (vector_ngt<mode>): Likewise.
12865 (vector_ngtu<mode>): Likewise.
12867 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
12869 PR rtl-optimization/66706
12870 * combine.c (make_compound_operation): If an AND of SUBREG of
12871 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
12873 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
12875 * tree-pass.h (make_pass_ch_vect): New.
12876 * passes.def: Add pass_ch_vect just before pass_if_conversion.
12878 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
12879 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
12880 make_pass_ch_vect): New.
12881 (pass_ch): Extend ch_base.
12883 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
12884 (ch_base::copy_headers): ...here.
12886 2015-07-02 Richard Biener <rguenther@suse.de>
12888 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
12889 * fold-const.c (get_pointer_modulus_and_residue): Remove.
12890 (fold_binary_loc): Implement (T)ptr & CST in terms of
12891 get_pointer_alignment_1.
12892 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
12893 Make sure to build the alignment test on a SSA name without
12894 final alignment info valid only after the prologue.
12896 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
12898 * config/cris/cris.md ("epilogue"): Remove condition.
12899 ("prologue"): Ditto.
12901 2015-07-02 Richard Biener <rguenther@suse.de>
12903 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
12904 parameter to record a condition that is false.
12905 (record_conditions): When recording an extra NE_EXPR that is
12906 true also record a EQ_EXPR that is false.
12908 2015-07-02 Bin Cheng <bin.cheng@arm.com>
12910 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
12911 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
12912 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
12913 (set_iv, find_interesting_uses_address, add_candidate_1): New
12914 argument to alloc_iv.
12915 (find_interesting_uses_op, find_interesting_uses_cond): Don't
12916 duplicate struct iv.
12917 (free_loop_data): Don't free struct iv explicitly.
12918 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
12920 2015-07-01 DJ Delorie <dj@redhat.com>
12922 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
12924 (SUPPORTS_DISCRIMINATOR): Define.
12926 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
12929 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
12930 there are no CALLs in the same pattern.
12932 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12934 PR rtl-optimization/61047
12935 * rtlanal.c (get_initial_register_offset): New function.
12936 (rtx_addr_can_trap_p_1): Check offsets of stack references.
12938 2015-07-01 Richard Biener <rguenther@suse.de>
12940 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
12941 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
12942 ~X CMP C -> X CMP' ~C to ...
12943 * match.pd: ... patterns here.
12945 2015-07-01 Nick Clifton <nickc@redhat.com>
12947 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
12948 a 16-bit value into a 20-bit memory slot.
12950 2015-07-01 Jiong Wang <jiong.wang@arm.com>
12952 * doc/sourcebuild.texi (AArch64-specific attributes): Document
12953 "aarch64_tiny", "aarch64_small", "aarch64_large",
12954 "aarch64_little_endian", "aarch64_big_endian".
12956 2015-07-01 Jiong Wang <jiong.wang@arm.com>
12958 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
12959 Document "aarch64_small_fpic".
12961 2015-07-01 Jiong Wang <jiong.wang@arm.com>
12963 * configure.ac: Add check for aarch64 assembler -fpic relocation
12965 * configure: Regenerate.
12966 * config.in: Regenerate.
12967 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
12968 to -fPIC if not support of -fpic relocation modifier in assembler.
12970 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
12973 * rtl.c (classify_insn): Handle returns in PARALLELs.
12975 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
12977 PR middle-end/66633
12978 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
12979 to true if the function is nested and if not optimizing.
12980 (convert_local_omp_clauses): Initialize need_frame to true if the
12981 function contains nested functions and if not optimizing.
12983 2015-07-01 Richard Biener <rguenther@suse.de>
12985 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
12986 (X & Y) ^ Y -> ~X & Y transforms to ...
12987 * match.pd: ... here.
12989 2015-07-01 Richard Biener <rguenther@suse.de>
12991 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
12992 of converts to avoid uninteresting noise from the conversion
12993 simplifying patterns.
12995 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
12997 * config/c6x/c6x.c (try_rename_operands): Do not depend on
12998 gcc_assert evaluating its argument for side-effect.
13000 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
13003 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
13006 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
13008 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
13009 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
13010 (hash_scc): Add this_ref_p and ref_p parameters and pass them
13011 to the inner DFS walk.
13013 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13015 * target-insns.def (jump): New targetm instruction pattern.
13016 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
13017 instead of gen_jump.
13018 (fix_up_crossing_landing_pad): Likewise.
13019 (add_labels_and_missing_jumps): Likewise.
13020 (fix_crossing_conditional_branches): Likewise.
13021 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13022 (force_nonfallthru_and_redirect): Likewise.
13023 * cse.c (cse_insn): Likewise.
13024 * expmed.c (expand_divmod): Likewise.
13025 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
13026 * haifa-sched.c (init_before_recovery): Likewise.
13027 (sched_create_recovery_edges): Likewise.
13028 * ifcvt.c (find_cond_trap): Likewise.
13029 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
13030 (expand_float, expand_fix): Likewise.
13031 * stmt.c (emit_jump): Likewise.
13033 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13035 * defaults.h (HAVE_load_multiple, gen_load_multiple)
13036 (HAVE_store_multiple, gen_store_multiple): Delete.
13037 * target-insns.def (load_multiple, store_multiple): New targetm
13038 instruction patterns.
13039 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
13040 of HAVE_*/gen_* interface.
13042 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13044 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
13045 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
13046 (gen_mem_signal_fence): Delete.
13047 * target-insns.def (mem_signal_fence, mem_thread_fence)
13048 (memory_barrier): New targetm instruction patterns.
13049 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
13051 (expand_mem_signal_fence): Likewise.
13053 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13055 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
13056 * target-insns.def (epilogue, prologue, sibcall_prologue): New
13057 targetm instruction patterns.
13058 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
13060 * calls.c (expand_call): Likewise.
13061 * cfgrtl.c (cfg_layout_finalize): Likewise.
13062 * df-scan.c (df_get_entry_block_def_set): Likewise.
13063 (df_get_exit_block_use_set): Likewise.
13064 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
13065 * final.c (final_start_function): Likewise.
13066 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13067 (reposition_prologue_and_epilogue_notes): Likewise.
13068 * reorg.c (find_end_label): Likewise.
13069 * toplev.c (process_options): Likewise.
13071 2015-06-30 David Malcolm <dmalcolm@redhat.com>
13073 * typed-splay-tree.h: New file.
13075 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
13078 * lra-int.h (lra_substitute_pseudo): Add a parameter.
13079 (lra_substitute_pseudo_within_insn): Ditto.
13080 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
13082 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
13083 to lra_substitute_pseudo.
13084 * lra-lives.c (process_bb_lives): Add an argument to
13085 lra_substitute_pseudo_within_insn call.
13086 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
13087 argument to lra_substitute_pseudo and
13088 lra_substitute_pseudo_within_insn calls.
13089 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
13091 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
13093 * configure: Regenerated.
13095 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
13097 * config.gcc: Support i[34567]86-*-elfiamcu target.
13098 * config/i386/iamcu.h: New.
13099 * config/i386/i386.opt: Add -miamcu.
13100 * doc/invoke.texi: Document -miamcu.
13101 * common/config/i386/i386-common.c (ix86_handle_option): Turn
13102 off x87/MMX/SSE/AVX codegen for -miamcu.
13103 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13104 __iamcu/__iamcu__ for -miamcu.
13105 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
13106 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
13107 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
13108 * config/i386/i386.c (ix86_option_override_internal): Ignore and
13109 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
13110 MCU by default. Default long double to 64-bit for Intel MCU.
13111 Turn on -freg-struct-return for Intel MCU. Issue an error when
13112 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
13114 (function_arg_advance_32): Pass value whose size is no larger
13115 than 8 bytes in registers for Intel MCU.
13116 (function_arg_32): Likewise.
13117 (ix86_return_in_memory): Return value whose size is no larger
13118 than 8 bytes in registers for Intel MCU.
13119 (iamcu_alignment): New function.
13120 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
13122 (ix86_local_alignment): Don't increase alignment for Intel MCU.
13123 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
13126 2015-06-30 Marek Polacek <polacek@redhat.com>
13128 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
13129 both operands of the resulting expression.
13131 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
13132 the final expression with the operand's type and then convert
13133 it to the type of the expression.
13135 2015-06-30 Richard Biener <rguenther@suse.de>
13137 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
13138 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
13139 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
13140 * match.pd: ... to patterns here.
13142 2015-06-30 Richard Biener <rguenther@suse.de>
13144 PR tree-optimization/66704
13145 * tree-vect-data-refs.c (vect_setup_realignment): Use
13146 make_ssa_name for non-SSA name source.
13148 2015-06-30 Jakub Jelinek <jakub@redhat.com>
13150 PR middle-end/66702
13151 * omp-low.c (simd_clone_adjust): Handle addressable linear
13152 or uniform parameters or non-gimple type uniform parameters.
13154 2015-06-30 Richard Biener <rguenther@suse.de>
13156 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
13157 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
13158 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
13159 * match.pd: ... here.
13160 Add a few cases of A - B -> A + (-B) when B "easily" negates.
13161 Move (x & y) | x -> x and friends before
13162 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
13164 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
13166 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
13167 -mfix-ut699 is not specified.
13168 (leon3_load): Rename into...
13169 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
13172 2015-06-30 Marek Polacek <polacek@redhat.com>
13174 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
13175 * match.pd: ... here.
13177 2015-06-30 Richard Biener <rguenther@suse.de>
13179 * target-insns.def (canonicalize_funcptr_for_compare): Add.
13180 * fold-const.c (build_range_check): Replace uses of
13181 HAVE_canonicalize_funcptr_for_compare.
13182 (fold_widened_comparison): Likewise.
13183 (fold_sign_changed_comparison): Likewise.
13184 * dojump.c: Include "target.h".
13185 (do_compare_and_jump): Replace uses of
13186 HAVE_canonicalize_funcptr_for_compare and
13187 gen_canonicalize_funcptr_for_compare.
13188 * expr.c (do_store_flag): Likewise.
13190 2015-06-30 Tom de Vries <tom@codesourcery.com>
13192 PR tree-optimization/66652
13193 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
13194 max_loop_iterations to determine if nit + 1 overflows.
13196 2015-06-30 Richard Biener <rguenther@suse.de>
13198 * tree-vrp.c (register_edge_assert_for_2): Also register
13199 asserts for dominating conversion results.
13201 2015-06-30 Bin Cheng <bin.cheng@arm.com>
13203 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
13204 field in struct iv.
13206 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
13209 * configure.ac: Fix filds and fildq test for 64-bit.
13210 * configure: Regenerated.
13212 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
13214 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
13215 (nvptx_reorg): Here. Keep the non-subreg pieces.
13217 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
13219 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
13220 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13222 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
13224 * config/i386/i386.md (*jcc_1): Use %! in asm template.
13225 Set attribute "length_nobnd" instead of "length".
13228 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
13230 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
13232 * config/nios2/nios2.c (nios2_delegitimize_address): Make
13233 assert less restrictive.
13235 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
13238 * cgraphunit.c (cgraph_node::finalize_function): Do not call
13239 do_warn_unused_parameter.
13240 * function.c (do_warn_unused_parameter): Move from here.
13241 * function.h (do_warn_unused_parameter): Do not declare.
13243 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
13246 * gcc.target/arm/armv-sync-comp-swap.c: New.
13247 * gcc.target/arm/armv-sync-op-acquire.c: New.
13248 * gcc.target/arm/armv-sync-op-full.c: New.
13249 * gcc.target/arm/armv-sync-op-release.c: New.
13251 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
13254 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
13255 initial acquire barrier with final barrier.
13257 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
13260 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
13261 initial acquire barrier with final barrier.
13263 2015-06-29 Richard Henderson <rth@redhat.com>
13265 * config/i386/constraints.md (Bf): New constraint.
13266 * config/i386/i386-c.c (ix86_target_macros): Define
13267 __GCC_ASM_FLAG_OUTPUTS__.
13268 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
13270 * doc/extend.texi (FlagOutputOperands): Document them.
13272 2015-06-29 Jiong Wang <jiong.wang@arm.com>
13274 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
13275 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
13277 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
13278 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
13279 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
13280 (aarch64_symbol_context): Ditto.
13281 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
13282 and use new pattern name.
13283 (aarch64_expand_mov_immediate): Ditto.
13284 (aarch64_print_operand): Ditto.
13285 (aarch64_classify_tls_symbol): Ditto.
13287 2015-06-29 Marek Polacek <polacek@redhat.com>
13288 Marc Glisse <marc.glisse@inria.fr>
13290 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
13291 * match.pd: ... pattern here.
13293 2015-06-29 Tom de Vries <tom@codesourcery.com>
13295 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
13296 function structure.
13298 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
13300 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
13301 feature description, split out the native option, add a link to
13302 the feature documentation, rearrange and slightly rewrite text.
13303 (Aarch64 options, -mcpu): Likewise.
13304 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
13305 +rdma implies Adv. SIMD.
13307 2015-06-29 Marek Polacek <polacek@redhat.com>
13310 * function.c (stack_protect_epilogue): Remove a cast to int.
13311 * doc/invoke.texi: Update -Wswitch-bool description.
13313 2015-06-29 Richard Biener <rguenther@suse.de>
13315 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
13316 * fold-const.c (fold_binary_loc): Move &A - &B simplification
13317 via ptr_difference_const ...
13318 * match.pd: ... here.
13319 When matching (X ^ Y) == Y also match with swapped operands.
13321 2015-06-29 Richard Biener <rguenther@suse.de>
13323 * lto-streamer.h (LTO_major_version): Bump to 5.
13325 2015-06-29 Richard Biener <rguenther@suse.de>
13327 PR tree-optimization/66677
13328 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
13329 STMT_VINFO_VEC_STMT clobbering less strict.
13331 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13333 PR middle-end/64130
13334 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
13335 division, compute max and min when value ranges for dividend and
13336 divisor are available.
13338 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
13339 Sandra Loosemore <sandra@codesourcery.com>
13341 * regrename.h (regrename_do_replace): Change to return bool.
13342 * regrename.c (rename_chains): Check return value of
13343 regname_do_replace.
13344 (regrename_do_replace): Re-validate the modified insns and
13345 return bool status.
13346 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13347 Update to match rename_chains changes.
13348 * config/c6x/c6x.c (try_rename_operands): Assert that
13349 regrename_do_replace returns true.
13351 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
13353 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
13354 operand 2 here. Use copy_addr_to_reg to copy non-index
13355 register operand 2 to a temporary.
13356 (<mode>_stx): Ditto for operand 1.
13357 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
13358 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
13359 (ix86_store_bounds): Ditto.
13361 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
13363 * print-tree.c (print_node) [TREE_VEC]: Print its length.
13365 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
13367 * gimple.c (gimple_call_set_fndecl): Remove.
13368 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
13369 build1_loc directly instead of build_fold_addr_expr_loc.
13371 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
13373 * hash-map.h (hash_map::traverse): Use the definition of the
13374 Key typedef rather than the typedef itself.
13376 2015-06-26 Martin Jambor <mjambor@suse.cz>
13379 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
13380 NULL instead of calling dump_enabled_p.
13382 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13384 * config/aarch64/aarch64.opt: (override): New.
13385 * doc/invoke.texi (override): Document.
13386 * config/aarch64/aarch64.c (aarch64_flag_desc): New
13387 (aarch64_fusible_pairs): Likewise.
13388 (aarch64_tuning_flags): Likewise.
13389 (aarch64_tuning_override_function): Likewise.
13390 (aarch64_tuning_override_functions): Likewise.
13391 (aarch64_parse_one_option_token): Likewise.
13392 (aarch64_parse_boolean_options): Likewise.
13393 (aarch64_parse_fuse_string): Likewise.
13394 (aarch64_parse_tune_string): Likewise.
13395 (aarch64_parse_one_override_token): Likewise.
13396 (aarch64_parse_override_string): Likewise.
13397 (aarch64_override_options): Parse the -override string if it
13400 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13402 * config/aarch64/aarch64-protos.h (tune_params): Remove
13403 const from members.
13404 (aarch64_tune_params): Remove const, change to no longer be
13406 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
13407 change to no longer be a pointer, initialize to generic_tunings.
13408 (aarch64_min_divisions_for_recip_mul): Change dereference of
13409 aarch64_tune_params to member access.
13410 (aarch64_reassociation_width): Likewise.
13411 (aarch64_rtx_mult_cost): Likewise.
13412 (aarch64_address_cost): Likewise.
13413 (aarch64_branch_cost): Likewise.
13414 (aarch64_rtx_costs): Likewise.
13415 (aarch64_register_move_cost): Likewise.
13416 (aarch64_memory_move_cost): Likewise.
13417 (aarch64_sched_issue_rate): Likewise.
13418 (aarch64_builtin_vectorization_cost): Likewise.
13419 (aarch64_override_options): Take a copy of the selected tuning
13420 struct in to aarch64_tune_params, rather than just setting
13421 a pointer, change dereferences of aarch64_tune_params to member
13423 (aarch64_override_options_after_change): Change dereferences of
13424 aarch64_tune_params to member access.
13425 (aarch64_macro_fusion_p): Likewise.
13426 (aarch_macro_fusion_pair_p): Likewise.
13427 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
13429 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13431 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
13432 (aarch64_tune_flags): Likewise.
13433 (AARCH64_TUNE_FMA_STEERING): Likewise.
13434 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
13435 to AARCH64_FL_USE_FMA_STEERING_PASS.
13436 (cortex-a57.cortex-a53): Likewise.
13437 (cortex-a72): Use cortexa72_tunings.
13438 (cortex-a72.cortex-a53): Likewise.
13439 (exynos-m1): Likewise.
13440 * config/aarch64/aarch64-protos.h (tune_params): Add
13441 a field: extra_tuning_flags.
13442 * config/aarch64/aarch64-tuning-flags.def: New.
13443 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
13444 (aarch64_extra_tuning_flags): Likewise.
13445 (aarch64_tune_params): Declare here.
13446 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
13447 (cortexa53_tunings): Likewise.
13448 (cortexa57_tunings): Likewise.
13449 (thunderx_tunings): Likewise.
13450 (xgene1_tunings): Likewise.
13451 (cortexa72_tunings): New.
13452 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
13453 (gate): Check against aarch64_tune_params.
13454 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
13457 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13459 * config/aarch64/aarch64-fusion-pairs.def: New.
13460 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
13461 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
13462 aarch64_fusion_pairs.
13463 (AARCH64_FUSE_MOV_MOVK): Likewise.
13464 (AARCH64_FUSE_ADRP_ADD): Likewise.
13465 (AARCH64_FUSE_MOVK_MOVK): Likewise.
13466 (AARCH64_FUSE_ADRP_LDR): Likewise.
13467 (AARCH64_FUSE_CMP_BRANCH): Likewise.
13469 2015-06-26 Jiong Wang <jiong.wang@arm.com>
13471 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
13472 SYMBOL_SMALL_GOT_28K.
13473 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
13474 relocation modifiers.
13475 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
13476 (ldr_got_small_28k_<mode>): New.
13477 (ldr_got_small_28k_sidi): New.
13478 * config/aarch64/iterators.md (got_modifier): New mode iterator.
13479 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
13480 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13481 SYMBOL_SMALL_GOT_28K.
13482 (aarch64_rtx_costs): Add costs for new instruction sequences.
13483 (initialize_aarch64_code_model): Initialize new model.
13484 (aarch64_classify_symbol): Recognize new model and new symbol classification.
13485 (aarch64_asm_preferred_eh_data_format): Support new model.
13486 (aarch64_load_symref_appropriately): Generate new instruction
13487 sequences for -fpic.
13488 (TARGET_USE_PSEUDO_PIC_REG): New definition.
13489 (aarch64_use_pseudo_pic_reg): New function.
13491 2015-06-26 Jiong Wang <jiong.wang@arm.com>
13493 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
13494 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
13495 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
13496 (aarch64_expand_mov_immediate): Ditto.
13497 (aarch64_print_operand): Ditto.
13498 (aarch64_classify_symbol): Ditto.
13500 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
13502 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
13504 2015-06-26 Bin Cheng <bin.cheng@arm.com>
13507 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
13508 assertion failed. Remove assertion itself.
13510 2015-06-26 Richard Biener <rguenther@suse.de>
13512 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
13513 and -A CMP CST -> A CMP -CST which is redundant with a pattern
13515 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
13516 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
13517 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
13518 * match.pd: ... patterns here.
13520 2015-06-26 Marek Polacek <polacek@redhat.com>
13522 * match.pd ((x | y) & ~(x & y) -> x ^ y,
13523 (x | y) & (~x ^ y) -> x & y): New patterns.
13525 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
13527 * rtl.h (emit): Add an optional boolean parameter to control
13528 whether barriers are emitted.
13529 * emit-rtl.c (emit): Likewise.
13530 * gensupport.c (get_emit_function): Return null rather than "emit".
13531 * genemit.c (gen_emit_seq): Handle the null return value.
13532 Don't emit barriers after the final instruction in the sequence.
13533 * gentarget-def.c (main): Don't emit barriers after the instruction.
13535 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13537 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
13538 TARGET_UNIFIED_ASM.
13540 2015-06-26 Richard Biener <rguenther@suse.de>
13542 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
13544 2015-06-26 Richard Biener <rguenther@suse.de>
13546 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
13547 irrespective on whether the inner operation has a single use
13548 of both off are constant.
13550 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
13551 Segher Boessenkool <segher@kernel.crashing.org>
13554 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
13555 before doing PUT_MODE or PUT_CODE on operands to avoid
13556 in-place RTX modification.
13558 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
13560 * gentarget-def.c (def_target_insn): Cast return of strtol to
13563 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
13565 * gimple.h (gimple_call_set_fn): Move inline function.
13566 * gimple.c (gimple_call_set_fn): Relocate here.
13568 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
13572 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
13573 the replacement insn will work.
13575 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
13577 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
13580 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
13582 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
13583 * cgraph.h: Include ipa-ref.h and plugin-api.h.
13584 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
13585 (symtab_node::address_can_be_compared_p): Move function.
13586 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
13588 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
13589 * auto-profile.c: Likewise.
13590 * bb-reorder.c: Likewise.
13591 * builtins.c: Likewise.
13592 * calls.c: Likewise.
13593 * cfgexpand.c: Likewise.
13594 * cgraphbuild.c: Likewise.
13595 * cgraphclones.c: Likewise.
13596 * cgraphunit.c: Likewise.
13597 * combine.c: Likewise.
13598 * coverage.c: Likewise.
13599 * data-streamer-in.c: Likewise.
13600 * data-streamer-out.c: Likewise.
13601 * data-streamer.c: Likewise.
13602 * dbxout.c: Likewise.
13603 * dwarf2out.c: Likewise.
13604 * except.c: Likewise.
13605 * expr.c: Likewise.
13606 * final.c: Likewise.
13607 * fold-const.c: Likewise.
13608 * ggc-page.c: Likewise.
13609 * gimple-fold.c: Likewise.
13610 * gimple-iterator.c: Likewise.
13611 * gimple-pretty-print.c: Likewise.
13612 * gimple-streamer-in.c: Likewise.
13613 * gimple-streamer-out.c: Likewise.
13614 * gimple.c: Likewise.
13615 * gimplify.c: Likewise.
13616 * ipa-chkp.c: Likewise.
13617 * ipa-comdats.c: Likewise.
13618 * ipa-cp.c: Likewise.
13619 * ipa-devirt.c: Likewise.
13620 * ipa-icf-gimple.c: Likewise.
13621 * ipa-icf.c: Likewise.
13622 * ipa-inline-analysis.c: Likewise.
13623 * ipa-inline-transform.c: Likewise.
13624 * ipa-inline.c: Likewise.
13625 * ipa-polymorphic-call.c: Likewise.
13626 * ipa-profile.c: Likewise.
13627 * ipa-prop.c: Likewise.
13628 * ipa-pure-const.c: Likewise.
13629 * ipa-ref.c: Likewise.
13630 * ipa-reference.c: Likewise.
13631 * ipa-split.c: Likewise.
13632 * ipa-utils.c: Likewise.
13633 * ipa-visibility.c: Likewise.
13635 * langhooks.c: Likewise.
13636 * lto-cgraph.c: Likewise.
13637 * lto-compress.c: Likewise.
13638 * lto-opts.c: Likewise.
13639 * lto-section-in.c: Likewise.
13640 * lto-section-out.c: Likewise.
13641 * lto-streamer-in.c: Likewise.
13642 * lto-streamer-out.c: Likewise.
13643 * lto-streamer.c: Likewise.
13644 * omp-low.c: Likewise.
13645 * opts-global.c: Likewise.
13646 * passes.c: Likewise.
13647 * predict.c: Likewise.
13648 * print-tree.c: Likewise.
13649 * profile.c: Likewise.
13651 * sanopt.c: Likewise.
13652 * stor-layout.c: Likewise.
13653 * symtab.c: Likewise.
13654 * toplev.c: Likewise.
13655 * trans-mem.c: Likewise.
13656 * tree-cfg.c: Likewise.
13657 * tree-chkp.c: Likewise.
13658 * tree-eh.c: Likewise.
13659 * tree-emutls.c: Likewise.
13660 * tree-inline.c: Likewise.
13661 * tree-nested.c: Likewise.
13662 * tree-parloops.c: Likewise.
13663 * tree-pretty-print.c: Likewise.
13664 * tree-profile.c: Likewise.
13665 * tree-sra.c: Likewise.
13666 * tree-ssa-alias.c: Likewise.
13667 * tree-ssa-live.c: Likewise.
13668 * tree-ssa-loop-ivcanon.c: Likewise.
13669 * tree-ssa-loop-ivopts.c: Likewise.
13670 * tree-ssa-pre.c: Likewise.
13671 * tree-ssa-sccvn.c: Likewise.
13672 * tree-ssa-strlen.c: Likewise.
13673 * tree-ssa-structalias.c: Likewise.
13674 * tree-streamer-in.c: Likewise.
13675 * tree-streamer-out.c: Likewise.
13676 * tree-streamer.c: Likewise.
13677 * tree-switch-conversion.c: Likewise.
13678 * tree-tailcall.c: Likewise.
13679 * tree-vect-data-refs.c: Likewise.
13680 * tree-vect-stmts.c: Likewise.
13681 * tree-vectorizer.c: Likewise.
13682 * tree.c: Likewise.
13683 * tsan.c: Likewise.
13684 * ubsan.c: Likewise.
13685 * value-prof.c: Likewise.
13686 * varasm.c: Likewise.
13687 * varpool.c: Likewise.
13688 * config/arm/arm.c: Likewise.
13689 * config/bfin/bfin.c: Likewise.
13690 * config/c6x/c6x.c: Likewise.
13691 * config/cris/cris.c: Likewise.
13692 * config/darwin-c.c: Likewise.
13693 * config/darwin.c: Likewise.
13694 * config/i386/i386.c: Likewise.
13695 * config/i386/winnt.c: Likewise.
13696 * config/microblaze/microblaze.c: Likewise.
13697 * config/mips/mips.c: Likewise.
13698 * config/rs6000/rs6000.c: Likewise.
13699 * config/rx/rx.c: Likewise.
13700 * config/s390/s390.c: Likewise.
13701 * config/tilegx/mul-tables.c: Likewise.
13703 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13705 * config/aarch64/aarch64.c, config/alpha/alpha.c,
13706 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
13707 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
13708 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
13709 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
13710 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
13711 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
13712 config/microblaze/microblaze.c, config/mips/mips.c,
13713 config/mmix/mmix.c, config/mn10300/mn10300.c,
13714 config/moxie/moxie.c, config/msp430/msp430.c,
13715 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
13716 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
13717 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
13718 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
13719 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13720 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
13721 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
13722 target-def.h include.
13723 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
13725 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13727 * Makefile.in (TARGET_DEF): Add target-insns.def.
13728 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
13729 (build/gentarget-def.o): New rule.
13730 (genprogrtl): Add target-def.
13731 * target-insns.def, gentarget-def.c: New files.
13732 * target.def: Add targetm.have_* and targetm.gen_* hooks,
13733 based on the contents of target-insns.def.
13734 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
13735 (HAVE_return, gen_return): Delete.
13736 * target-def.h: Include insn-target-def.h.
13737 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
13738 instead of direct calls. Rely on them to do the appropriate assertions.
13739 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
13740 (convert_jumps_to_returns): Use targetm interface instead of
13742 (thread_prologue_and_epilogue_insns): Likewise.
13743 * reorg.c (find_end_label, dbr_schedule): Likewise.
13744 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
13745 * shrink-wrap.c (convert_to_simple_return): Likewise.
13746 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
13748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13750 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
13751 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
13752 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
13753 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
13754 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
13755 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
13756 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
13757 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
13758 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
13759 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
13760 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
13761 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
13762 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
13763 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13764 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
13765 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
13768 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13770 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
13771 (unbounded_int_hashmap_traits::key_type): Likewise.
13772 * hash-map.h (hash_map): Get the key type from the traits.
13773 * hash-traits.h (default_hash_traits): By default, inherit from the
13774 template parameter.
13775 * alias.c (alias_set_traits): Delete.
13776 (alias_set_entry_d::children): Use alias_set_hash as the first
13777 template parameter.
13778 (record_alias_subset): Update accordingly.
13779 * except.c (tree_hash_traits): Delete.
13780 (type_to_runtime_map): Use tree_hash as the first template parameter.
13781 (init_eh): Update accordingly.
13782 * genmatch.c (capture_id_map_hasher): Delete.
13783 (cid_map_t): Use nofree_string_hash as first template parameter.
13784 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
13785 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
13786 Use symbol_compare_hash as the first template parameter in
13787 subdivide_hash_map.
13788 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
13789 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
13790 template parameter.
13791 * passes.c (pass_registry_hasher): Delete.
13792 (name_to_pass_map): Use nofree_string_hash as the first template
13794 (register_pass_name): Update accordingly.
13795 * sanopt.c (sanopt_tree_map_traits): Delete.
13796 (sanopt_tree_triplet_map_traits): Delete.
13797 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
13798 template parameter.
13799 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
13800 the first template parameter.
13801 * sese.c (rename_map_hasher): Delete.
13802 (rename_map_type): Use tree_ssa_name_hash as the first template
13804 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
13805 (function_summary::m_map): Use map_hash as the first template
13807 (function_summary::release): Update accordingly.
13808 * tree-if-conv.c (phi_args_hash_traits): Delete.
13809 (predicate_scalar_phi): Use tree_operand_hash as the first template
13810 parameter to phi_arg_map.
13811 * tree-inline.h (dependence_hasher): Delete.
13812 (copy_body_data::dependence_map): Use dependence_hash as the first
13813 template parameter.
13814 * tree-inline.c (remap_dependence_clique): Update accordingly.
13815 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
13816 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
13818 (addr_stridxptr): Update accordingly.
13819 * value-prof.c (profile_id_traits): Delete.
13820 (cgraph_node_map): Use profile_id_hash as the first template
13822 (init_node_map): Update accordingly.
13823 * config/alpha/alpha.c (string_traits): Delete.
13824 (machine_function::links): Use nofree_string_hash as the first
13825 template parameter.
13826 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
13827 * config/m32c/m32c.c (pragma_traits): Delete.
13828 (pragma_htab): Use nofree_string_hash as the first template parameter.
13829 (m32c_note_pragma_address): Update accordingly.
13830 * config/mep/mep.c (pragma_traits): Delete.
13831 (pragma_htab): Use nofree_string_hash as the first template parameter.
13832 (mep_note_pragma_flag): Update accordingly.
13833 * config/mips/mips.c (mips16_flip_traits): Delete.
13834 (mflip_mips16_htab): Use nofree_string_hash as the first template
13836 (mflip_mips16_use_mips16_p): Update accordingly.
13837 (local_alias_traits): Delete.
13838 (mips16_local_aliases): Use nofree_string_hash as the first template
13840 (mips16_local_alias): Update accordingly.
13842 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13844 * hash-map-traits.h (default_hashmap_traits): Delete.
13846 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13848 * hash-map-traits.h (unbounded_hashmap_traits): New class.
13849 (unbounded_int_hashmap_traits): Likewise.
13850 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
13852 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13854 * ipa-icf.h (symbol_compare_hash): New class.
13855 (symbol_compare_hashmap_traits): Use it.
13856 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
13857 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
13858 (mem_alloc_description::reverse_mem_map_t): Remove redundant
13859 default_hashmap_traits.
13860 * sanopt.c (sanopt_tree_triplet_hash): New class.
13861 (sanopt_tree_triplet_map_traits): Use it.
13863 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13865 * gengtype-parse.c (require_template_declaration): Allow '+' in
13866 template parameters. Consolidate cases.
13867 * hash-traits.h (int_hash): New class.
13868 * alias.c (alias_set_hash): New structure.
13869 (alias_set_traits): Use it.
13870 * symbol-summary.h (function_summary::map_hash): New class.
13871 (function_summary::summary_hashmap_traits): Use it.
13872 * tree-inline.h (dependence_hash): New class.
13873 (dependence_hasher): Use it.
13874 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
13875 * value-prof.c (profile_id_hash): New class.
13876 (profile_id_traits): Use it.
13878 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13880 * config/mips/mips.c (mips16_flip_traits): Use it.
13881 (local_alias_traits, mips16_local_aliases): Convert from a map of
13882 rtxes to a map of symbol names.
13883 (mips16_local_alias): Update accordingly.
13885 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13887 * hash-traits.h (string_hash, nofree_string_hash): New classes.
13888 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
13889 * passes.c (pass_registry_hasher): Likewise.
13890 * config/alpha/alpha.c (string_traits): Likewise.
13891 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
13892 * config/m32c/m32c.c (pragma_traits): Likewise.
13893 * config/mep/mep.c (pragma_traits): Likewise.
13895 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13897 * tree-hash-traits.h (tree_hash): New class.
13898 * except.c: Include tree-hash-traits.h.
13899 (tree_hash_traits): Use tree_hash.
13901 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13903 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
13904 * sese.c: Include tree-hash-traits.h.
13905 (rename_map_hasher): Use tree_ssa_name_hasher.
13907 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13909 * tree-hash-traits.h (tree_decl_hash): New class.
13910 * tree-ssa-strlen.c: Include tree-hash-traits.h.
13911 (stridxlist_hash_traits): Use tree_decl_hash.
13913 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13915 * tree-hash-traits.h: New file.
13916 (tree_operand_hash): New class.
13917 * sanopt.c: Include tree-hash-traits.h.
13918 (sanopt_tree_map_traits): Use tree_operand_hash.
13919 * tree-if-conv.c: Include tree-hash-traits.h.
13920 (phi_args_hash_traits): Use tree_operand_hash.
13921 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
13922 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
13924 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13926 * hash-map-traits.h: Include hash-traits.h.
13927 (simple_hashmap_traits): New class.
13928 * mem-stats.h (hash_map): Change the default traits to
13929 simple_hashmap_traits<default_hash_traits<Key> >.
13931 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13933 * hash-table.h: Update comments.
13935 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13937 * hash-traits.h (default_hash_traits): New structure.
13938 * hash-set.h (default_hashset_traits): Delete.
13939 (hash_set): Use default_hash_traits<Key> instead of
13940 default_hashset_traits. Delete hash_entry type and use Key directly.
13941 * ipa-devirt.c (pair_traits): Delete.
13942 (default_hash_traits <type_pair>): Override.
13943 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
13944 (odr_types_equivalent_p, add_type_duplicate): Likewise.
13946 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13948 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
13950 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13952 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
13953 (has_is_empty, is_empty_helper): Delete.
13954 (has_mark_deleted, mark_deleted_helper): Delete.
13955 (has_mark_empty, mark_empty_helper): Delete.
13956 (hash_table::is_deleted): Call the Descriptor unconditionally.
13957 (hash_table::is_empty): Likewise.
13958 (hash_table::mark_deleted): Likewise.
13959 (hash_table::mark_empty): Likewise.
13961 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13963 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
13964 redundant typedefs and members.
13965 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
13966 redundant typedefs.
13967 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
13968 * ipa-devirt.c (odr_name_hasher): Likewise.
13969 (polymorphic_call_target_hasher): Likewise.
13970 * ira-costs.c (cost_classes_hasher): Likewise.
13971 * statistics.c (stats_counter_hasher): Likewise.
13972 * trans-mem.c (log_entry_hasher): Likewise.
13973 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13974 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
13975 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
13976 * var-tracking.c (variable_hasher): Likewise.
13977 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
13978 Remove redundant typedefs and members.
13980 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
13982 * hash-traits.h (ggc_cache_hasher): Rename to...
13983 (ggc_cache_remove): ...this and remove typedefs.
13984 (ggc_cache_ptr_hash): New class.
13985 * hash-table.h: Update commentary.
13986 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
13987 rather than ggc_cache_hasher.
13988 (const_wide_int_hasher, reg_attr_hasher): Likewise.
13989 (const_double_hasher, const_fixed_hasher): Likewise.
13990 * function.c (insn_cache_hasher): Likewise.
13991 * trans-mem.c (tm_wrapper_hasher): Likewise.
13992 * tree.h (tree_decl_map_cache_hasher): Likewise.
13993 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
13994 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
13995 * ubsan.c (tree_type_map_cache_hasher): Likewise.
13996 * varasm.c (tm_clone_hasher): Likewise.
13997 * config/i386/i386.c (dllimport_hasher): Likewise.
13998 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
13999 (tree_hasher): Likewise.
14001 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14003 * hash-traits.h (ggc_hasher): Rename to...
14004 (ggc_remover): ...this and remove typedefs.
14005 (ggc_cache_hasher): Update accordingly. Add typedefs.
14006 (ggc_ptr_hash): New class.
14007 * hash-table.h: Update comment.
14008 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
14010 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
14011 (tree_descriptor_hasher): Likewise.
14012 * cgraph.c (function_version_hasher): Likewise.
14013 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
14014 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
14015 (dw_loc_list_hasher, addr_hasher): Likewise.
14016 * function.h (used_type_hasher): Likewise.
14017 * function.c (temp_address_hasher): Likewise.
14018 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
14019 * libfuncs.h (libfunc_hasher): Likewise.
14020 * lto-streamer.h (decl_state_hasher): Likewise.
14021 * optabs.c (libfunc_decl_hasher): Likewise.
14022 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
14023 * varasm.c (section_hasher, object_block_hasher): Likewise.
14024 (const_rtx_desc_hasher): Likewise.
14025 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
14026 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
14028 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14030 * hash-traits.h (free_ptr_hash): New class.
14031 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
14032 rather than typed_free_remove. Remove redudant typedefs.
14033 (external_ref_hasher): Likewise.
14034 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
14035 (ehspec_hasher): Likewise.
14036 * ggc-common.c (saving_hasher): Likewise.
14037 * gimplify.c (gimplify_hasher): Likewise.
14038 * haifa-sched.c (delay_i2_hasher): Likewise.
14039 * loop-invariant.c (invariant_expr_hasher): Likewise.
14040 * loop-iv.c (biv_entry_hasher): Likewise.
14041 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
14042 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
14043 * tree-cfg.c (locus_discrim_hasher): Likewise.
14044 * tree-eh.c (finally_tree_hasher): Likewise.
14045 * tree-into-ssa.c (var_info_hasher): Likewise.
14046 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
14047 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
14048 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
14049 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
14050 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
14051 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
14052 (shared_bitmap_hasher): Likewise.
14053 * tree-ssa-threadupdate.c (redirection_data): Likewise.
14054 * tree-vectorizer.h (peel_info_hasher): Likewise.
14055 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
14056 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
14058 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14060 * hash-table.h: Update comments.
14061 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
14062 (nofree_ptr_hash): New class.
14063 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
14064 than typed_noop_remove. Remove redudant typedefs.
14065 * attribs.c (attribute_hasher): Likewise.
14066 * cfg.c (bb_copy_hasher): Likewise.
14067 * cselib.c (cselib_hasher): Likewise.
14068 * dse.c (invariant_group_base_hasher): Likewise.
14069 * dwarf2cfi.c (trace_info_hasher): Likewise.
14070 * dwarf2out.c (macinfo_entry_hasher): Likewise.
14071 (comdat_type_hasher, loc_list_hasher): Likewise.
14072 * gcse.c (pre_ldst_expr_hasher): Likewise.
14073 * genmatch.c (id_base): Likewise.
14074 * genrecog.c (test_pattern_hasher): Likewise.
14075 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
14076 * haifa-sched.c (delay_i1_hasher): Likewise.
14077 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
14078 * ipa-icf.h (congruence_class_group_hash): Likewise.
14079 * ipa-profile.c (histogram_hash): Likewise.
14080 * ira-color.c (allocno_hard_regs_hasher): Likewise.
14081 * lto-streamer.h (string_slot_hasher): Likewise.
14082 * lto-streamer.c (tree_entry_hasher): Likewise.
14083 * plugin.c (event_hasher): Likewise.
14084 * postreload-gcse.c (expr_hasher): Likewise.
14085 * store-motion.c (st_expr_hasher): Likewise.
14086 * tree-sra.c (uid_decl_hasher): Likewise.
14087 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
14088 (ssa_name_var_hash): Likewise.
14089 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
14090 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
14091 * tree-ssa-pre.c (pre_expr_d): Likewise.
14092 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
14093 * vtable-verify.h (registration_hasher): Likewise.
14094 * vtable-verify.c (vtbl_map_hasher): Likewise.
14095 * config/arm/arm.c (libcall_hasher): Likewise.
14096 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
14097 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
14098 * config/sol2.c (comdat_entry_hasher): Likewise.
14099 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
14100 (print_fold_checksum, fold_checksum_tree): Likewise.
14101 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
14102 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
14103 (fold_build_call_array_loc): Likewise.
14104 * tree-ssa-ccp.c (gimple_htab): Likewise.
14105 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
14106 rather than pointer_type.
14108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14110 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
14111 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
14113 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14115 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
14116 (ggc_hasher::ggc_mx): Likewise.
14117 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
14118 that duplicate ggc_hasher ones.
14120 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14122 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
14123 (gt_cleare_cache): Check here for deleted and empty entries.
14124 Replace handle_cache_entry with a call to keep_cache_entry.
14125 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
14126 (ggc_cache_hasher::keep_cache_entry): New function.
14127 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
14128 (tm_wrapper_hasher::keep_cache_entry): New function.
14129 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
14130 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14131 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
14132 (type_cache_hasher::keep_cache_entry): New function.
14133 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
14134 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14135 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
14136 (tree_type_map_cache_hasher::keep_cache_entry): New function.
14137 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
14138 (tm_clone_hasher::keep_cache_entry): New function.
14139 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
14140 (dllimport_hasher::keep_cache_entry): New function.
14142 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14144 * hash-table.h: Include hash-traits.h.
14145 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
14146 (ggc_cache_hasher): Move to...
14147 * hash-traits.h: ...this new file.
14149 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14151 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
14152 struct cl_optimization.
14153 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
14154 * tree.c (make_node_stat): Allocate cl_optimization struct.
14155 (copy_node_stat): Allocate and copy cl_optimization struct.
14157 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14159 * function.h (struct incoming_args): Move struct.
14160 (pass_by_reference, reference_callee_copied): Remove prototypes.
14161 * emit-rtl.h (struct incoming_args): Relocate struct here.
14162 * calls.h (pass_by_reference, reference_callee_copied): Relocate
14164 * function.c (pass_by_reference, reference_callee_copied): Move.
14165 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
14166 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
14167 * ipa-chkp.c: Include calls.h.
14169 2015-06-25 Andrew Macleod <amacleod@redhat.com>
14171 * alias.h (alias_set_type): Move typedef.
14172 * coretypes.h (alias_set_type): Relocate typedef here.
14173 * rtl.h: Don't include alias.h.
14175 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14177 * cgraph.h (cgraph_rtl_info): Move to rtl.h
14178 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
14180 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
14181 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
14183 * calls.c: Include hard-reg-set.h before rtl.h.
14186 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14187 Vladimir Makarov <vmakarov@redhat.com>
14189 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
14192 2015-06-25 Richard Biener <rguenther@suse.de>
14194 * fold-const.c (fold_binary_loc): Move simplification of
14195 (X <<>> C1) & C2 ...
14196 * match.pd: ... here.
14198 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
14200 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
14202 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14204 * match.pd: Add patterns for vec_conds between 1 and 0.
14206 2015-06-25 Richard Biener <rguenther@suse.de>
14208 * tree-vect-stmts.c (vectorizable_conversion): Do not set
14209 STMT_VINFO_VEC_STMT for SLP.
14210 (vectorizable_store): Likewise.
14211 (vectorizable_load): Likewise.
14212 (vect_transform_stmt): Catch SLP vectorization clobbering
14213 STMT_VINFO_VEC_STMT.
14215 2015-06-25 Richard Biener <rguenther@suse.de>
14217 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
14219 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
14220 cleanup resulting dead code and parameters.
14221 (vect_transform_slp_perm_load): Adjust.
14223 2015-06-25 Nick Clifton <nickc@redhat.com>
14225 * config/bfin/bfin.c (bfin_expand_prologue): Set
14226 current_function_static_stack_size if flag_stack_usage_info is set.
14227 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14228 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
14229 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14230 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
14232 2015-06-25 Tom de Vries <tom@codesourcery.com>
14234 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
14235 comment that the generated IV is unsigned.
14237 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14240 * config/arm/arm.c (arm_dbx_register_number): Return
14241 DWARF_FRAME_REGISTERS by default.
14243 2015-06-25 Tom de Vries <tom@codesourcery.com>
14245 * dominance.c (calculate_dominance_info): Fix verify_dominators call
14246 argument. Call verify_dominator when reusing dominator info.
14248 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
14251 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
14252 an additional element of the unspec vector. Modify indices
14254 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
14255 * config/sh/sh.c (prepare_move_operands): Pass incremented
14256 const_int to gen_GOTaddr2picreg.
14257 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
14259 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
14261 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
14262 Condition on TARGET_FLOAT.
14264 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
14266 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
14269 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
14271 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
14273 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
14274 aarch64_err_no_fpadvsimd.
14276 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
14277 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
14278 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
14279 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
14280 Turn error into assert, test TARGET_FLOAT.
14281 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
14284 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
14287 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
14289 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
14291 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
14293 2015-06-24 Renlin Li <renlin.li@arm.com>
14295 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
14296 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
14298 2015-06-24 Richard Biener <rguenther@suse.de>
14300 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
14302 (lower_opt_convert): Support lowering of conditional view_convert.
14303 (parser::parse_operation): Likewise.
14304 (parser::parse_for): Likewise.
14306 2015-06-24 Renlin Li <renlin.li@arm.com>
14308 * varasm.c (emit_local): Use unsigned int for align variable.
14310 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14313 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
14314 for negative numbers.
14316 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14318 PR rtl-optimization/66306
14319 * reload.c (find_reloads): Swap the match_dup info for
14320 commutative operands.
14322 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14324 * config/s390/vx-builtins.md
14325 ("vec_scatter_element<mode>_<non_vec_int>")
14326 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
14327 attribute with bhfgq.
14329 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14331 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
14333 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14335 * config/s390/s390-builtin-types.def: Add flag to indicate the
14336 options under which the function type is needed.
14337 * config/s390/s390-builtins.def: Add flag to indicate the options
14338 under which the builtin is enabled.
14339 * config/s390/s390-builtins.h: Add flags parameter to macro
14341 (bflags_for_builtin): New function.
14342 (flags_for_builtin): Renamed to ...
14343 (opflags_for_builtin): ... this.
14344 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
14345 flags_for_builtin to bflags_for_builtin and
14346 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
14347 * config/s390/s390.c: Add initialization of bflags_builtin and
14348 opflags_builtin arrays.
14349 Remove code for flags_builtin.
14350 (s390_init_builtins): Only create builtin function types if one of
14351 their flags is active.
14352 Only create builtins if all of their flags are active.
14353 (s390_expand_builtin): Rename flags_for_builtin to
14354 opflags_for_builtin.
14356 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14358 * config/s390/vecintrin.h: Remove internal builtins.
14360 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14362 * config/s390/s390.c (s390_secondary_reload): Fix check for
14363 GENERAL_REGS register class.
14365 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14367 * config/s390/s390.c (s390_support_vector_misalignment): Call
14368 default implementation for !TARGET_VX.
14370 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14372 * config/s390/s390.c (s390_legitimate_constant_p): Add
14375 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14377 * config/s390/s390.c (s390_vector_abi): New variable definition.
14378 (s390_check_type_for_vector_abi): New function.
14379 (TARGET_ASM_FILE_END): New macro definition.
14380 (s390_asm_file_end): New function.
14381 (s390_function_arg): Call s390_check_type_for_vector_abi.
14382 (s390_gimplify_va_arg): Likewise.
14383 * configure: Regenerate.
14384 * configure.ac: Check for .gnu_attribute Binutils feature.
14386 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
14389 * config/bfin/bfin.c (hwloop_optimize): Initialize
14390 JUMP_LABEL for newly created jump.
14392 2015-06-23 Tristan Gingold <gingold@adacore.com>
14394 * collect-utils.c (collect_wait): Unlink the response file here
14396 (do_wait): ...here.
14397 (utils_cleanup): ...and here.
14399 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
14401 * df-scan.c: Don't include target-def.h.
14402 * targhooks.c: Likewise.
14403 * config/arm/arm-c.c: Likewise.
14404 * config/i386/i386-c.c: Likewise.
14405 * config/nds32/nds32-cost.c: Likewise.
14406 * config/nds32/nds32-fp-as-gp.c: Likewise.
14407 * config/nds32/nds32-intrinsic.c: Likewise.
14408 * config/nds32/nds32-isr.c: Likewise.
14409 * config/nds32/nds32-md-auxiliary.c: Likewise.
14410 * config/nds32/nds32-memory-manipulation.c: Likewise.
14411 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14412 * config/nds32/nds32-predicates.c: Likewise.
14414 2015-06-23 Richard Biener <rguenther@suse.de>
14416 PR tree-optimization/66636
14417 * tree-vect-stmts.c (vectorizable_store): Properly compute the
14418 def type for further defs for strided stores.
14420 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
14422 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
14423 conditional selects.
14424 (setcc_int<mode>, setcc_float<mode>): Reformat.
14426 2015-06-23 Marek Polacek <polacek@redhat.com>
14428 * match.pd ((x + y) - (x | y) -> x & y,
14429 (x + y) - (x & y) -> x | y): New patterns.
14431 2015-06-23 Ludovic Courtès <ludo@gnu.org>
14434 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
14435 '-dynamic-linker' within %{!shared: ...}.
14437 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
14440 * config/i386/predicates.md (addsub_vm_operator): New predicate.
14441 (addsub_vs_operator): Ditto.
14442 (addsub_vs_parallel): Ditto.
14443 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
14444 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
14445 Put minus RTX before plus and adjust vec_merge selector.
14446 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
14447 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
14448 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
14449 (addsub vec_merge splitters): New combiner splitters.
14450 (addsub vec_select/vec_concat splitters): Ditto.
14452 2015-06-23 Bin Cheng <bin.cheng@arm.com>
14454 PR tree-optimization/66449
14455 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
14456 POINTER_PLUS_EXPR for pointers.
14458 2015-06-23 Alan Modra <amodra@gmail.com>
14460 * rtlanal.c (commutative_operand_precedence): Correct comments.
14461 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
14462 declaration. Return an int. Distinguish REG,REG return from
14464 (struct simplify_plus_minus_op_data): Make local to function.
14465 (simplify_plus_minus): Don't set canonicalized if merely sorting
14466 registers. Avoid packing ops if nothing changes. White space fixes.
14468 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
14470 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
14471 -fdump-ada-spec is passed but not if -fsyntax-only is.
14473 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
14476 * lra-lives.c (process_bb_lives): Check insn copying the same
14477 reload pseudo and don't create a copy for it.
14479 2015-06-22 Tom de Vries <tom@codesourcery.com>
14481 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
14484 2015-06-22 Tom de Vries <tom@codesourcery.com>
14486 * builtins.def (DEF_GOMP_BUILTIN): Test
14487 'flag_tree_parallelize_loops > 1' instead of
14488 'flag_tree_parallelize_loops'. Test flag_cilkplus.
14490 2015-06-22 Tom de Vries <tom@codesourcery.com>
14492 * dominance.c (calculate_dominance_info): Verify dominators if
14495 2015-06-22 Marek Polacek <polacek@redhat.com>
14497 * match.pd ((x ^ y) ^ (x | y) -> x & y,
14498 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
14499 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
14500 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
14502 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
14505 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
14506 cost of embedded comparison.
14508 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14511 * config/rs6000/predicates.md (altivec_register_operand): Permit
14512 virtual stack registers.
14513 (vsx_register_operand): Likewise.
14514 (vfloat_operand): Likewise.
14515 (vint_operand): Likewise.
14516 (vlogical_operand): Likewise.
14518 2015-06-22 Richard Biener <rguenther@suse.de>
14520 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
14521 and single_scalar_iteration_cost members.
14522 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
14523 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
14524 (vect_get_single_scalar_iteration_cost): Remove.
14525 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
14526 Use LOOP_VINFO_SCALAR_ITERATION_COST.
14527 * tree-vect-loop.c (destroy_loop_vec_info): Free
14529 (vect_get_single_scalar_iteration_cost): Compute result into
14530 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
14531 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
14532 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
14533 (vect_estimate_min_profitable_iters): Use them.
14535 2015-06-22 Christian Bruel <christian.bruel@st.com>
14538 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
14539 (TARGET_INSERT_ATTRIBUTES): Define.
14540 (thumb_flipper): New var.
14541 * config/arm/arm.opt (-mflip-thumb): New switch.
14543 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
14544 Martin Liska <mliska@suse.cz>
14547 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
14548 construction of arg_types.
14549 (sem_function::sem_function): Likewise.
14550 (sem_function::~sem_function): Remove destruction of arg_types.
14551 (sem_function::compatible_parm_types_p): New function.
14552 (sem_function::equals_wpa): Reorg matching of return values
14553 and parameter types.
14554 (sem_function::equals_private): Reorg mathcing of argument types.
14555 (sem_function::parse_tree_args): Remove.
14556 * ipa-icf.h (init_wpa): Do not call it.
14557 (parse_tree_args): Remove.
14558 (compatible_parm_types_p): Declare.
14559 (result_type): Remove.
14560 (arg_types): Remove.
14562 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
14565 * ipa-polymorphic-call.c
14566 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
14567 initializing alias oracle; fix formating; set base_alias_set if it
14570 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
14572 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
14573 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
14574 (find_inc): Likewise.
14575 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
14577 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
14578 * df-scan.c (df_swap_refs): Remove.
14579 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
14580 * dominance.c (link_roots): Use std::swap instead of manually swapping.
14581 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
14582 * fold-const.c (fold_relational_const): Likewise.
14583 * genattrtab.c (simplify_test_exp): Likewise.
14584 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
14585 gimple_simplify): Likewise.
14586 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
14587 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
14588 * ipa-devirt.c (add_type_duplicate): Likewise.
14589 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
14590 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
14591 * lra.c (lra_create_copy): Likewise.
14592 * lto-streamer-out.c (DFS::DFS): Likewise.
14593 * modulo-sched.c (get_sched_window): Likewise.
14594 * omega.c (omega_pretty_print_problem): Likewise.
14595 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
14596 * reload1.c (reloads_unique_chain_p): Likewise.
14597 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
14598 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
14600 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
14602 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
14603 predicate_mem_writes): Likewise.
14604 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
14605 * tree-predcom.c (combine_chains): Likewise.
14606 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
14607 refs_may_alias_p_1): Likewise.
14608 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
14609 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14610 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
14611 number_of_iterations_cond): Likewise.
14612 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
14613 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
14614 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
14615 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
14616 * tree-vrp.c (extract_range_from_binary_expr_1,
14617 extract_range_from_unary_expr_1): Likewise.
14619 2015-06-20 Marek Polacek <polacek@redhat.com>
14621 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
14623 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
14626 * config/sh/sh.c (prepare_move_operands): Replace subreg
14627 index term with R0 for base and index addressing.
14629 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
14631 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
14633 (movsf_aarch64): Change condition from register_operand to
14634 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
14635 load1. Change type for alternative 7 to store1.
14636 (movdf_aarch64): Likewise.
14638 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
14640 * config/vax/vax.md: Adjust sign/zero extend patterns to
14641 handle SUBREGs in operands[1].
14643 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14645 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
14646 of manually swapping.
14647 (expand_vec_perm_interleave2): Likewise.
14649 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
14651 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
14652 reuse bounds created for abnormal ssa names.
14654 2015-06-19 Jakub Jelinek <jakub@redhat.com>
14656 * config/nvptx/nvptx.md (allocate_stack): Rename to...
14657 (allocate_stack_<mode>): ... this, and add :P on both
14658 match_operand and unspec.
14659 (allocate_stack): New expander.
14661 2015-06-19 Christian Bruel <christian.bruel@st.com>
14665 * config/arm/arm.c (arm_set_current_function): Handle
14666 explicit default options.
14668 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
14670 * config/i386/i386.md (*movsicc_noc_zext): New insn.
14671 (zero-extended cmove with mem peephole2): New pattern.
14672 (cmove with mem peephole2): Merge patterns.
14674 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
14676 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
14678 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
14680 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
14681 * config/mips/mips.md (*madd4<mode>): Ditto.
14682 (*nmadd3<mode>) Ditto.
14683 (*nmadd4<mode>_fastmath): Ditto.
14684 (*nmadd3<mode>_fastmath): Ditto.
14685 (*nmsub4<mode>): Ditto.
14686 (*nmsub3<mode>): Ditto.
14687 (*nmsub4<mode>_fastmath): Ditto.
14688 (*nmsub3<mode>_fastmath): Ditto.
14690 2015-06-18 Michael Matz <matz@suse.de>
14692 PR middle-end/66253
14693 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
14694 grouped strided stores.
14695 (vectorizable_load): Don't use the DR from first_stmt in
14696 the non-SLP grouped strided case.
14698 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
14701 * function.c (assign_bounds): Add arguments assign_regs,
14702 assign_special, assign_bt.
14703 (assign_parms): For vararg functions handle bounds in BT
14704 and special slots after incoming vararg bounds.
14706 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
14708 PR middle-end/66568
14709 * cfgexpand.c (expand_return): Handle missing bounds.
14710 (expand_gimple_stmt_1): Likewise.
14711 * tree-chkp.c (chkp_expand_zero_bounds): New.
14712 * tree-chkp.h (chkp_expand_zero_bounds): New.
14714 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
14716 PR middle-end/66567
14717 * ipa-chkp.c (chkp_maybe_create_clone): Require
14718 functions to be instrumentable.
14719 * tree-chkp.c (chkp_replace_function_pointer): Use
14720 chkp_instrumentable_p instead of attribute check.
14722 2015-06-18 Richard Biener <rguenther@suse.de>
14724 PR tree-optimization/66510
14725 * tree-vect-stmts.c (vectorizable_load): Properly compute the
14726 number of vector loads for SLP permuted loads.
14727 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
14728 check the stride for loop vectorization.
14729 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
14730 vectorization factor.
14731 (vect_analyze_group_access): If the group size is not a power
14732 of two require a epilogue loop.
14733 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
14734 compute and optimizing and alias test pruning after final
14735 vectorization factor computation.
14736 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
14738 (vect_transform_slp_perm_load): Properly compute the original
14739 number of vector load stmts.
14741 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
14743 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
14744 "unlikely character , in @var" warning.
14746 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
14748 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
14749 (ix86_function_arg_advance): Ditto.
14750 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
14752 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
14754 * function.h (struct rtl_data): Remove struct and accessor macros.
14755 * emit-rtl.h (struct rtl_data): Relocate to here.
14756 * Makefile.in (GTFILES): Add emit-rtl.h.
14757 * df-core.c: Include emit-rtl.h.
14758 * genattrtab.c: Likewise.
14759 * genconditions.c: Likewise.
14760 * genpreds.c: Likewise.
14761 * genrecog.c: Likewise.
14762 * regcprop.c: Likewise.
14763 * resource.c: Likewise.
14764 * sched-rgn.c: Likewise.
14765 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14766 * config/i386/winnt.c: Likewise.
14768 2015-06-17 Jakub Jelinek <jakub@redhat.com>
14770 PR middle-end/66429
14771 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
14772 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
14773 and has_force_vectorize_loops flags from cfun into
14775 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
14776 if simduid is non-NULL.
14777 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
14778 * passes.def (pass_simduid_cleanup): Add new pass after loop
14780 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
14781 indirection from htab argument's type.
14782 (shrink_simd_arrays): New function.
14783 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
14784 Don't call adjust_simduid_builtins if there are no loops.
14785 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
14786 (pass_simduid_cleanup::execute): New method.
14787 (make_pass_simduid_cleanup): New function.
14789 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
14791 * tree-core.h (tree_target_option): Make opts field a pointer to a
14792 cl_target_option instead of an instance of the struct.
14793 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
14795 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
14796 TARGET_OPTION_NODE.
14797 (copy_node_stat): Allocate and copy struct cl_target_option.
14799 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
14801 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
14802 Remove conditional exposure of prototypes.
14803 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
14804 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
14805 definitions in tree.h with functions.
14806 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
14808 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
14810 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
14812 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
14813 (*cmp<mode>_signed): ... this.
14814 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
14815 (*cmp<mode>_unsigned): ... this. Remove %b.
14817 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
14819 * coretypes.h: Include input.h and as-a.h.
14820 * rtl.h: Include input.h and as-a.h for generator files.
14821 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
14822 * vec.c: Don't include diagnostic-core.h.
14823 * alias.c: Do not include input.h, line-map.h or is-a.h.
14824 * asan.c: Likewise.
14825 * attribs.c: Likewise.
14826 * auto-inc-dec.c: Likewise.
14827 * auto-profile.c: Likewise.
14828 * bb-reorder.c: Likewise.
14829 * bt-load.c: Likewise.
14830 * builtins.c: Likewise.
14831 * caller-save.c: Likewise.
14832 * calls.c: Likewise.
14833 * ccmp.c: Likewise.
14835 * cfganal.c: Likewise.
14836 * cfgbuild.c: Likewise.
14837 * cfgcleanup.c: Likewise.
14838 * cfgexpand.c: Likewise.
14839 * cfghooks.c: Likewise.
14840 * cfgloop.c: Likewise.
14841 * cfgloop.h: Likewise.
14842 * cfgloopanal.c: Likewise.
14843 * cfgloopmanip.c: Likewise.
14844 * cfgrtl.c: Likewise.
14845 * cgraph.c: Likewise.
14846 * cgraphbuild.c: Likewise.
14847 * cgraphclones.c: Likewise.
14848 * cgraphunit.c: Likewise.
14849 * cilk-common.c: Likewise.
14850 * combine-stack-adj.c: Likewise.
14851 * combine.c: Likewise.
14852 * compare-elim.c: Likewise.
14853 * convert.c: Likewise.
14854 * coverage.c: Likewise.
14855 * cppbuiltin.c: Likewise.
14856 * cprop.c: Likewise.
14858 * cselib.c: Likewise.
14859 * data-streamer-in.c: Likewise.
14860 * data-streamer-out.c: Likewise.
14861 * data-streamer.c: Likewise.
14862 * dbxout.c: Likewise.
14865 * debug.c: Likewise.
14866 * df-core.c: Likewise.
14867 * df-problems.c: Likewise.
14868 * df-scan.c: Likewise.
14871 * diagnostic-core.h: Likewise.
14872 * diagnostic.c: Likewise.
14873 * dojump.c: Likewise.
14874 * dominance.c: Likewise.
14875 * domwalk.c: Likewise.
14876 * double-int.c: Likewise.
14878 * dumpfile.c: Likewise.
14879 * dumpfile.h: Likewise.
14880 * dwarf2asm.c: Likewise.
14881 * dwarf2cfi.c: Likewise.
14882 * dwarf2out.c: Likewise.
14883 * emit-rtl.c: Likewise.
14884 * et-forest.c: Likewise.
14885 * except.c: Likewise.
14886 * explow.c: Likewise.
14887 * expmed.c: Likewise.
14888 * expr.c: Likewise.
14889 * final.c: Likewise.
14890 * fixed-value.c: Likewise.
14891 * fold-const.c: Likewise.
14892 * function.c: Likewise.
14893 * fwprop.c: Likewise.
14894 * gcc-plugin.h: Likewise.
14895 * gcse.c: Likewise.
14896 * generic-match-head.c: Likewise.
14897 * ggc-page.c: Likewise.
14898 * gimple-builder.c: Likewise.
14899 * gimple-expr.c: Likewise.
14900 * gimple-fold.c: Likewise.
14901 * gimple-iterator.c: Likewise.
14902 * gimple-low.c: Likewise.
14903 * gimple-match-head.c: Likewise.
14904 * gimple-pretty-print.c: Likewise.
14905 * gimple-ssa-isolate-paths.c: Likewise.
14906 * gimple-ssa-strength-reduction.c: Likewise.
14907 * gimple-streamer-in.c: Likewise.
14908 * gimple-streamer-out.c: Likewise.
14909 * gimple-streamer.h: Likewise.
14910 * gimple-walk.c: Likewise.
14911 * gimple.c: Likewise.
14912 * gimplify-me.c: Likewise.
14913 * gimplify.c: Likewise.
14914 * godump.c: Likewise.
14915 * graph.c: Likewise.
14916 * graphite-blocking.c: Likewise.
14917 * graphite-dependences.c: Likewise.
14918 * graphite-interchange.c: Likewise.
14919 * graphite-isl-ast-to-gimple.c: Likewise.
14920 * graphite-optimize-isl.c: Likewise.
14921 * graphite-poly.c: Likewise.
14922 * graphite-scop-detection.c: Likewise.
14923 * graphite-sese-to-poly.c: Likewise.
14924 * graphite.c: Likewise.
14925 * haifa-sched.c: Likewise.
14926 * hw-doloop.c: Likewise.
14927 * ifcvt.c: Likewise.
14928 * init-regs.c: Likewise.
14929 * input.c: Likewise.
14930 * internal-fn.c: Likewise.
14931 * ipa-chkp.c: Likewise.
14932 * ipa-comdats.c: Likewise.
14933 * ipa-cp.c: Likewise.
14934 * ipa-devirt.c: Likewise.
14935 * ipa-icf-gimple.c: Likewise.
14936 * ipa-icf.c: Likewise.
14937 * ipa-inline-analysis.c: Likewise.
14938 * ipa-inline-transform.c: Likewise.
14939 * ipa-inline.c: Likewise.
14940 * ipa-polymorphic-call.c: Likewise.
14941 * ipa-profile.c: Likewise.
14942 * ipa-prop.c: Likewise.
14943 * ipa-pure-const.c: Likewise.
14944 * ipa-ref.c: Likewise.
14945 * ipa-reference.c: Likewise.
14946 * ipa-split.c: Likewise.
14947 * ipa-utils.c: Likewise.
14948 * ipa-visibility.c: Likewise.
14950 * ira-build.c: Likewise.
14951 * ira-color.c: Likewise.
14952 * ira-conflicts.c: Likewise.
14953 * ira-costs.c: Likewise.
14954 * ira-emit.c: Likewise.
14955 * ira-lives.c: Likewise.
14957 * jump.c: Likewise.
14958 * langhooks.c: Likewise.
14960 * loop-doloop.c: Likewise.
14961 * loop-init.c: Likewise.
14962 * loop-invariant.c: Likewise.
14963 * loop-iv.c: Likewise.
14964 * loop-unroll.c: Likewise.
14965 * lower-subreg.c: Likewise.
14966 * lra-assigns.c: Likewise.
14967 * lra-coalesce.c: Likewise.
14968 * lra-constraints.c: Likewise.
14969 * lra-eliminations.c: Likewise.
14970 * lra-lives.c: Likewise.
14971 * lra-remat.c: Likewise.
14972 * lra-spills.c: Likewise.
14974 * lto-cgraph.c: Likewise.
14975 * lto-compress.c: Likewise.
14976 * lto-opts.c: Likewise.
14977 * lto-section-in.c: Likewise.
14978 * lto-section-out.c: Likewise.
14979 * lto-streamer-in.c: Likewise.
14980 * lto-streamer-out.c: Likewise.
14981 * lto-streamer.c: Likewise.
14983 * mode-switching.c: Likewise.
14984 * modulo-sched.c: Likewise.
14985 * omega.c: Likewise.
14986 * omp-low.c: Likewise.
14987 * optabs.c: Likewise.
14988 * opts-global.c: Likewise.
14989 * opts.h: Likewise.
14990 * passes.c: Likewise.
14991 * plugin.c: Likewise.
14992 * postreload-gcse.c: Likewise.
14993 * postreload.c: Likewise.
14994 * predict.c: Likewise.
14995 * pretty-print.h: Likewise.
14996 * print-rtl.c: Likewise.
14997 * print-tree.c: Likewise.
14998 * profile.c: Likewise.
14999 * real.c: Likewise.
15000 * realmpfr.c: Likewise.
15001 * recog.c: Likewise.
15003 * reg-stack.c: Likewise.
15004 * regcprop.c: Likewise.
15005 * reginfo.c: Likewise.
15006 * regrename.c: Likewise.
15007 * regstat.c: Likewise.
15008 * reload.c: Likewise.
15009 * reload1.c: Likewise.
15010 * reorg.c: Likewise.
15011 * resource.c: Likewise.
15012 * rtl-chkp.c: Likewise.
15013 * rtl-error.c: Likewise.
15014 * rtlanal.c: Likewise.
15015 * rtlhooks.c: Likewise.
15016 * sanopt.c: Likewise.
15017 * sched-deps.c: Likewise.
15018 * sched-ebb.c: Likewise.
15019 * sched-rgn.c: Likewise.
15020 * sched-vis.c: Likewise.
15021 * sdbout.c: Likewise.
15022 * sel-sched-dump.c: Likewise.
15023 * sel-sched-ir.c: Likewise.
15024 * sel-sched.c: Likewise.
15025 * sese.c: Likewise.
15026 * shrink-wrap.c: Likewise.
15027 * simplify-rtx.c: Likewise.
15028 * stack-ptr-mod.c: Likewise.
15029 * statistics.c: Likewise.
15030 * stmt.c: Likewise.
15031 * stor-layout.c: Likewise.
15032 * store-motion.c: Likewise.
15033 * streamer-hooks.c: Likewise.
15034 * stringpool.c: Likewise.
15035 * symtab.c: Likewise.
15036 * target-globals.c: Likewise.
15037 * targhooks.c: Likewise.
15038 * toplev.c: Likewise.
15039 * tracer.c: Likewise.
15040 * trans-mem.c: Likewise.
15041 * tree-affine.c: Likewise.
15042 * tree-browser.c: Likewise.
15043 * tree-call-cdce.c: Likewise.
15044 * tree-cfg.c: Likewise.
15045 * tree-cfgcleanup.c: Likewise.
15046 * tree-chkp-opt.c: Likewise.
15047 * tree-chkp.c: Likewise.
15048 * tree-chrec.c: Likewise.
15049 * tree-complex.c: Likewise.
15050 * tree-data-ref.c: Likewise.
15051 * tree-dfa.c: Likewise.
15052 * tree-diagnostic.c: Likewise.
15053 * tree-dump.c: Likewise.
15054 * tree-eh.c: Likewise.
15055 * tree-emutls.c: Likewise.
15056 * tree-if-conv.c: Likewise.
15057 * tree-inline.c: Likewise.
15058 * tree-into-ssa.c: Likewise.
15059 * tree-iterator.c: Likewise.
15060 * tree-loop-distribution.c: Likewise.
15061 * tree-nested.c: Likewise.
15062 * tree-nrv.c: Likewise.
15063 * tree-object-size.c: Likewise.
15064 * tree-outof-ssa.c: Likewise.
15065 * tree-parloops.c: Likewise.
15066 * tree-phinodes.c: Likewise.
15067 * tree-predcom.c: Likewise.
15068 * tree-pretty-print.c: Likewise.
15069 * tree-profile.c: Likewise.
15070 * tree-scalar-evolution.c: Likewise.
15071 * tree-sra.c: Likewise.
15072 * tree-ssa-address.c: Likewise.
15073 * tree-ssa-alias.c: Likewise.
15074 * tree-ssa-ccp.c: Likewise.
15075 * tree-ssa-coalesce.c: Likewise.
15076 * tree-ssa-copy.c: Likewise.
15077 * tree-ssa-copyrename.c: Likewise.
15078 * tree-ssa-dce.c: Likewise.
15079 * tree-ssa-dom.c: Likewise.
15080 * tree-ssa-dse.c: Likewise.
15081 * tree-ssa-forwprop.c: Likewise.
15082 * tree-ssa-ifcombine.c: Likewise.
15083 * tree-ssa-live.c: Likewise.
15084 * tree-ssa-loop-ch.c: Likewise.
15085 * tree-ssa-loop-im.c: Likewise.
15086 * tree-ssa-loop-ivcanon.c: Likewise.
15087 * tree-ssa-loop-ivopts.c: Likewise.
15088 * tree-ssa-loop-manip.c: Likewise.
15089 * tree-ssa-loop-niter.c: Likewise.
15090 * tree-ssa-loop-prefetch.c: Likewise.
15091 * tree-ssa-loop-unswitch.c: Likewise.
15092 * tree-ssa-loop.c: Likewise.
15093 * tree-ssa-math-opts.c: Likewise.
15094 * tree-ssa-operands.c: Likewise.
15095 * tree-ssa-phiopt.c: Likewise.
15096 * tree-ssa-phiprop.c: Likewise.
15097 * tree-ssa-pre.c: Likewise.
15098 * tree-ssa-propagate.c: Likewise.
15099 * tree-ssa-reassoc.c: Likewise.
15100 * tree-ssa-sccvn.c: Likewise.
15101 * tree-ssa-scopedtables.c: Likewise.
15102 * tree-ssa-sink.c: Likewise.
15103 * tree-ssa-strlen.c: Likewise.
15104 * tree-ssa-structalias.c: Likewise.
15105 * tree-ssa-tail-merge.c: Likewise.
15106 * tree-ssa-ter.c: Likewise.
15107 * tree-ssa-threadedge.c: Likewise.
15108 * tree-ssa-threadupdate.c: Likewise.
15109 * tree-ssa-uncprop.c: Likewise.
15110 * tree-ssa-uninit.c: Likewise.
15111 * tree-ssa.c: Likewise.
15112 * tree-ssanames.c: Likewise.
15113 * tree-stdarg.c: Likewise.
15114 * tree-streamer-in.c: Likewise.
15115 * tree-streamer-out.c: Likewise.
15116 * tree-streamer.c: Likewise.
15117 * tree-switch-conversion.c: Likewise.
15118 * tree-tailcall.c: Likewise.
15119 * tree-vect-data-refs.c: Likewise.
15120 * tree-vect-generic.c: Likewise.
15121 * tree-vect-loop-manip.c: Likewise.
15122 * tree-vect-loop.c: Likewise.
15123 * tree-vect-patterns.c: Likewise.
15124 * tree-vect-slp.c: Likewise.
15125 * tree-vect-stmts.c: Likewise.
15126 * tree-vectorizer.c: Likewise.
15127 * tree-vrp.c: Likewise.
15128 * tree.c: Likewise.
15129 * tsan.c: Likewise.
15130 * ubsan.c: Likewise.
15131 * valtrack.c: Likewise.
15132 * value-prof.c: Likewise.
15133 * var-tracking.c: Likewise.
15134 * varasm.c: Likewise.
15135 * varpool.c: Likewise.
15136 * vmsdbgout.c: Likewise.
15137 * vtable-verify.c: Likewise.
15139 * wide-int.cc: Likewise.
15140 * xcoffout.c: Likewise.
15141 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
15142 * common/common-targhooks.c: Likewise.
15143 * config/aarch64/aarch64-builtins.c: Likewise.
15144 * config/aarch64/aarch64.c: Likewise.
15145 * config/alpha/alpha.c: Likewise.
15146 * config/arc/arc.c: Likewise.
15147 * config/arm/aarch-common.c: Likewise.
15148 * config/arm/arm-builtins.c: Likewise.
15149 * config/arm/arm-c.c: Likewise.
15150 * config/arm/arm.c: Likewise.
15151 * config/avr/avr-c.c: Likewise.
15152 * config/avr/avr-log.c: Likewise.
15153 * config/avr/avr.c: Likewise.
15154 * config/bfin/bfin.c: Likewise.
15155 * config/c6x/c6x.c: Likewise.
15156 * config/cr16/cr16.c: Likewise.
15157 * config/cris/cris.c: Likewise.
15158 * config/darwin-c.c: Likewise.
15159 * config/darwin.c: Likewise.
15160 * config/default-c.c: Likewise.
15161 * config/epiphany/epiphany.c: Likewise.
15162 * config/epiphany/mode-switch-use.c: Likewise.
15163 * config/epiphany/resolve-sw-modes.c: Likewise.
15164 * config/fr30/fr30.c: Likewise.
15165 * config/frv/frv.c: Likewise.
15166 * config/ft32/ft32.c: Likewise.
15167 * config/glibc-c.c: Likewise.
15168 * config/h8300/h8300.c: Likewise.
15169 * config/i386/i386-c.c: Likewise.
15170 * config/i386/i386.c: Likewise.
15171 * config/i386/msformat-c.c: Likewise.
15172 * config/i386/winnt-cxx.c: Likewise.
15173 * config/i386/winnt-stubs.c: Likewise.
15174 * config/i386/winnt.c: Likewise.
15175 * config/ia64/ia64-c.c: Likewise.
15176 * config/ia64/ia64.c: Likewise.
15177 * config/iq2000/iq2000.c: Likewise.
15178 * config/lm32/lm32.c: Likewise.
15179 * config/m32c/m32c-pragma.c: Likewise.
15180 * config/m32c/m32c.c: Likewise.
15181 * config/m32r/m32r.c: Likewise.
15182 * config/m68k/m68k.c: Likewise.
15183 * config/mcore/mcore.c: Likewise.
15184 * config/mep/mep-pragma.c: Likewise.
15185 * config/mep/mep.c: Likewise.
15186 * config/microblaze/microblaze-c.c: Likewise.
15187 * config/microblaze/microblaze.c: Likewise.
15188 * config/mips/mips.c: Likewise.
15189 * config/mmix/mmix.c: Likewise.
15190 * config/mn10300/mn10300.c: Likewise.
15191 * config/moxie/moxie.c: Likewise.
15192 * config/msp430/msp430-c.c: Likewise.
15193 * config/msp430/msp430.c: Likewise.
15194 * config/nds32/nds32-cost.c: Likewise.
15195 * config/nds32/nds32-fp-as-gp.c: Likewise.
15196 * config/nds32/nds32-intrinsic.c: Likewise.
15197 * config/nds32/nds32-isr.c: Likewise.
15198 * config/nds32/nds32-md-auxiliary.c: Likewise.
15199 * config/nds32/nds32-memory-manipulation.c: Likewise.
15200 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15201 * config/nds32/nds32-predicates.c: Likewise.
15202 * config/nds32/nds32.c: Likewise.
15203 * config/nios2/nios2.c: Likewise.
15204 * config/nvptx/nvptx.c: Likewise.
15205 * config/pa/pa.c: Likewise.
15206 * config/pdp11/pdp11.c: Likewise.
15207 * config/rl78/rl78-c.c: Likewise.
15208 * config/rl78/rl78.c: Likewise.
15209 * config/rs6000/rs6000-c.c: Likewise.
15210 * config/rs6000/rs6000.c: Likewise.
15211 * config/rx/rx.c: Likewise.
15212 * config/s390/s390-c.c: Likewise.
15213 * config/s390/s390.c: Likewise.
15214 * config/sh/sh-c.c: Likewise.
15215 * config/sh/sh-mem.cc: Likewise.
15216 * config/sh/sh.c: Likewise.
15217 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15218 * config/sh/sh_treg_combine.cc: Likewise.
15219 * config/sol2-c.c: Likewise.
15220 * config/sol2-cxx.c: Likewise.
15221 * config/sol2-stubs.c: Likewise.
15222 * config/sol2.c: Likewise.
15223 * config/sparc/sparc-c.c: Likewise.
15224 * config/sparc/sparc.c: Likewise.
15225 * config/spu/spu-c.c: Likewise.
15226 * config/spu/spu.c: Likewise.
15227 * config/stormy16/stormy16.c: Likewise.
15228 * config/tilegx/mul-tables.c: Likewise.
15229 * config/tilegx/tilegx-c.c: Likewise.
15230 * config/tilegx/tilegx.c: Likewise.
15231 * config/tilepro/mul-tables.c: Likewise.
15232 * config/tilepro/tilepro-c.c: Likewise.
15233 * config/tilepro/tilepro.c: Likewise.
15234 * config/v850/v850-c.c: Likewise.
15235 * config/v850/v850.c: Likewise.
15236 * config/vax/vax.c: Likewise.
15237 * config/visium/visium.c: Likewise.
15238 * config/vms/vms-c.c: Likewise.
15239 * config/vms/vms.c: Likewise.
15240 * config/vxworks.c: Likewise.
15241 * config/winnt-c.c: Likewise.
15242 * config/xtensa/xtensa.c: Likewise.
15244 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
15246 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
15248 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
15250 2015-06-17 Richard Biener <rguenther@suse.de>
15252 PR tree-optimization/66251
15253 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
15254 stmts for SLP strided stores.
15257 2015-05-22 Richard Biener <rguenther@suse.de>
15259 PR tree-optimization/66251
15260 * tree-vect-stmts.c (vectorizable_conversion): Properly
15261 set STMT_VINFO_VEC_STMT even for the SLP case.
15263 2015-05-26 Michael Matz <matz@suse.de>
15265 PR middle-end/66251
15266 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
15267 STMT_VINFO_VEC_STMT, also with SLP.
15269 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
15272 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
15273 (*avx_addsubv4df3_1s): Ditto.
15274 (*sse3_addsubv2df3_1): Ditto.
15275 (*sse3_addsubv2df3_1s): Ditto.
15276 (*avx_addsubv8sf3_1): Ditto.
15277 (*avx_addsubv8sf3_1s): Ditto.
15278 (*sse3_addsubv4sf3_1): Ditto.
15279 (*sse3_addsubv4sf3_1s): Ditto.
15281 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
15283 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
15284 (SYSROOT_SUFFIX_SPEC): Update.
15285 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
15286 (STARTFILE_PREFIX_SPEC): Update.
15287 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
15288 (MULTILIB_REQUIRED): New.
15289 (MULTILIB_OSDIRNAMES): New.
15290 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
15291 (MULTILIB_REQUIRED): New.
15292 (MULTILIB_OSDIRNAMES): New.
15294 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
15296 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
15297 * config/aarch64/aarch64-options-extensions.def: Update "fP",
15298 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
15299 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
15300 (AARCH64_FL_PAN): New.
15301 (AARCH64_FL_LOR): New.
15302 (AARCH64_FL_RDMA): New.
15303 (AARCH64_FL_FOR_ARCH8_1): New.
15304 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
15305 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
15307 2015-06-16 Martin Liska <mliska@suse.cz>
15309 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
15310 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
15313 2015-06-16 Richard Biener <rguenther@suse.de>
15315 * tree-vect-stmts.c (vectorizable_store): Adjust.
15316 (vectorizable_load): Likewise.
15317 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15319 (vect_create_data_ref_ptr): Likewise.
15320 (bump_vector_ptr): Adjust.
15322 2015-06-16 Richard Biener <rguenther@suse.de>
15324 * tree-vect-stmts.c (vectorizable_load): Properly start loads
15325 with the first element if this is grouped loads.
15327 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
15329 * config/arm/arm-protos.h (struct tune_params): Rename
15330 log_op_non_sc to log_op_non_short_circuit, and rename enum
15331 values to expand SC to SHORT_CIRCUIT.
15332 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
15333 to LOG_OP_NON_SHORT_CIRCUIT.
15334 (arm_fastmul_tune):Likewise
15335 (arm_strongarm_tune): Likewise.
15336 (arm_xscale_tune): Likewise.
15337 (arm_9e_tune): Likewise.
15338 (arm_marvell_pj4_tune): Likewise.
15339 (arm_v6t2_tune): Likewise.
15340 (arm_cortex_tune): Likewise.
15341 (arm_cortex_a8_tune): Likewise.
15342 (arm_cortex_a7_tune): Likewise.
15343 (arm_cortex_a15_tune): Likewise.
15344 (arm_cortex_a53_tune): Likewise.
15345 (arm_cortex_a57_tune): Likewise.
15346 (arm_xgene1_tune): Likewise.
15347 (arm_cortex_a5_tune): Likewise.
15348 (arm_cortex_a9_tune): Likewise.
15349 (arm_cortex_a12_tune): Likewise.
15350 (arm_v7m_tune): Likewise.
15351 (arm_cortex_m7_tune): Likewise.
15352 (arm_v6m_tune): Likewise.
15353 (arm_fa726te_tune): Likewise.
15355 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
15357 * altivec.md: Delete UNSPEC_VMLADDUHM.
15358 (mulv4si3_p8): New pattern.
15359 (mulv4si3): Use it for POWER8.
15360 (mulv8hi3): Use vmladduhm with zero addend.
15361 (altivec_vmladduhm): Descriptive RTL.
15363 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
15365 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
15366 to use neon_move instead of mov_imm.
15367 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
15368 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
15370 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
15371 aarch64_float_const_zero_rtx_p check before TFmode check.
15372 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
15374 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
15375 code and attributes to match. Change condition from register_operand
15376 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
15377 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
15380 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
15383 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
15384 there is no parent.
15386 2015-06-14 Shiva Chen <shiva0217@gmail.com>
15388 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
15389 HOST_WIDE_INT parameter.
15391 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
15394 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
15395 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
15397 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
15399 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
15401 * rtl.h (classify_insn): Declare.
15402 * emit-rtl.c (classify_insn): Move to...
15403 * rtl.c: ...here and add generator support.
15404 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
15405 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
15406 * genemit.c (gen_emit_seq): New function.
15407 (gen_expand, gen_split): Use it.
15409 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
15411 * tree.c (make_vector_stat): Fix comment to state that the
15412 function returns a VECTOR_CST.
15414 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
15416 * gensupport.h (add_implicit_parallel): Declare.
15417 * genrecog.c (add_implicit_parallel): Move to...
15418 * gensupport.c (add_implicit_parallel): ...here.
15419 (process_one_cond_exec): Use it.
15420 * genemit.c (gen_insn): Likewise.
15422 2015-06-13 Iain Sandoe <iain@codesourcery.com>
15425 * passes.c (rest_of_decl_compilation): Do not register globals for
15426 early debug if they are declared in built-ins.
15428 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
15430 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
15432 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15434 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
15436 (noce_try_cmove_arith): Likewise.
15437 (noce_get_alt_condition): Likewise.
15439 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15441 * common/config/i386/i386-common.c
15442 (OPTION_MASK_ISA_MWAITX_SET): New.
15443 (ix86_handle_option): Handle mwaitx.
15444 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
15445 (x86_64-*-*): Likewise.
15446 * config/i386/mwaitxintrin.h: New header.
15447 * config/i386/cpuid.h (bit_MWAITX): Define.
15448 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15450 * config/i386/i386.opt (mwaitx): New.
15451 * config/i386/i386-builtin-types.def
15452 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
15453 * config/i386/i386-c.c: Define __MWAITX__ if needed.
15454 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
15456 (ix86_option_override_internal): Handle new option.
15457 (processor_alias_table): Added PTA_MWAITX.
15458 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
15459 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
15460 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
15461 IX86_BUILTIN_MONITORX built-ins.
15462 * config/i386/i386.h (TARGET_MWAITX): New.
15463 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
15465 (mwaitx): New pattern.
15466 (monitorx_<mode>): New pattern.
15467 * config/i386/x86intrin.h: Include mwaitxintrin.h.
15468 * doc/extend.texi: Document monitorx and mwaitx builtins.
15469 * doc/invoke.texi: Document -mmwaitx option.
15471 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
15473 * emit-rtl.c (need_atomic_barrier_p): Mask model with
15474 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
15476 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
15478 * dbxout.c (xcoff_debug_hooks): Provide a function for
15479 register_main_translation_unit hook.
15481 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
15483 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
15484 variants cases from switch.
15485 (rs6000_post_atomic_barrier): Same.
15486 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
15487 (rs6000_expand_atomic_exchange): Same.
15488 (rs6000_expand_atomic_op): Same.
15489 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
15490 SYNC variants cases from switch.
15491 (atomic_load): Same.
15492 (atomic_store): Same.
15494 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
15496 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
15497 CONST_INT for goto.
15499 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
15502 * dwarf2out.c (check_die): Check for common duplicate attributes.
15503 (add_location_or_const_value_attribute): Do not add duplicate
15505 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
15507 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
15508 (gen_type_die_with_usage): Call check_die.
15509 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
15511 2015-06-11 Jason Merrill <jason@redhat.com>
15513 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
15516 2015-06-11 Marek Polacek <polacek@redhat.com>
15518 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
15520 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
15523 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
15524 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
15525 (*addx_extend_sp32): Fix pasto.
15526 (*subx_extend): Rename into...
15527 (*subx_extend_sp32): ...this.
15528 (*adddi3_extend_sp32): Add earlyclobber.
15529 (*subdi3_insn_sp32): Likewise.
15530 (*subdi3_extend_sp32): Likewise.
15531 (*and_not_di_sp32): Likewise.
15532 (*or_not_di_sp32): Likewise.
15533 (*xor_not_di_sp32): Likewise.
15534 (*negdi2_sp32): Likewise.
15535 (*one_cmpldi2_sp32): Likewise.
15537 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
15539 * debug.h (struct gcc_debug_hooks): Add a
15540 register_main_translation_unit hook.
15541 * debug.c (do_nothing_debug_hooks): Provide a function for this
15543 * dbxout.c (dbx_debug_hooks): Likewise.
15544 * sdbout.c (sdb_debug_hooks): Likewise.
15545 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15546 * dwarf2out.c (main_translation_unit): New global variable.
15547 (dwarf2out_register_main_translation_unit): New function
15548 implementing the new hook.
15549 (dwarf2_debug_hooks): Assign
15550 dwarf2out_register_main_translation_unit to this new hook.
15551 (dwarf2out_init): Associate any main translation unit to
15554 2015-06-11 Marek Polacek <polacek@redhat.com>
15556 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
15558 2015-06-11 Marek Polacek <polacek@redhat.com>
15560 * match.pd: Use single_use throughout.
15562 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15564 * config/arm/arm.c (arm_option_params_internal): When optimising
15565 for speed set max_insns_skipped when arm_restrict_it.
15567 2015-06-11 Christian Bruel <christian.bruel@st.com>
15570 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
15572 (arm_cpu_builtins): New function.
15573 (arm_pragma_target_parse): Call arm_cpu_builtins.
15574 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
15575 (arm_register_target_pragmas): Likewise.
15576 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
15577 Call arm_register_target_pragmas.
15578 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
15579 (arm_pragma_target_parse): Likewise.
15581 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
15583 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
15584 of the second operand.
15586 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
15589 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
15590 to prepare mask operand for AVX512 modes.
15592 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15595 * doc/md.texi (Machine Constraints): Document that on the PowerPC
15596 if you use a constraint that targets a VSX register, you must use
15597 %x<n> in the template.
15599 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
15601 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
15602 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
15603 (define_insn "trap"): New definition.
15605 2015-06-10 Richard Biener <rguenther@suse.de>
15607 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
15609 (vect_supported_load_permutation_p): ... here. Handle
15610 supportable permutations in reductions.
15611 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
15612 for vectorizing strided group loads.
15614 2015-06-10 Jakub Jelinek <jakub@redhat.com>
15617 * config/i386/i386.c (ix86_split_long_move): For collisions
15618 involving direct tls segment refs, move the UNSPEC_TP possibly
15619 wrapped in ZERO_EXTEND out of the address for lea, to each of
15622 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15624 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
15625 dmb sy. Adjust tabs.
15627 2015-06-10 Tom de Vries <tom@codesourcery.com>
15629 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
15631 2015-06-10 Martin Liska <mliska@suse.cz>
15634 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
15635 all enum values in mem_alloc_origin.
15636 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
15638 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
15639 * bitmap.c (bitmap_register): Likewise.
15640 (dump_bitmap_statistics): Likewise.
15641 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
15642 (ggc_record_overhead): Likewise.
15643 * hash-map.h: Likewise.
15644 * hash-set.h: Likewise.
15645 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
15646 * hash-table.h: Likewise.
15647 * vec.c (vec_prefix::register_overhead): Likewise.
15648 (vec_prefix::release_overhead): Likewise.
15649 (dump_vec_loc_statistics): Likewise.
15651 2015-06-09 Christian Bruel <christian.bruel@st.com>
15654 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
15655 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
15656 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
15657 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
15658 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
15659 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
15660 (arm_valid_target_attribute_p): Likewise.
15661 (arm_set_current_function, arm_can_inline_p): Likewise.
15662 (arm_valid_target_attribute_rec): Likewise.
15663 (arm_previous_fndecl): New variable.
15664 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15665 (TARGET_CAN_INLINE_P): Define.
15666 (arm_asm_trampoline_template): Emit mode.
15667 (arm_file_start): Don't set unified syntax.
15668 (arm_declare_function_name): Set unified syntax and mode.
15669 (arm_option_override): Init target_option_default_node.
15670 and target_option_current_node.
15671 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
15672 (*call_symbol): Likewise.
15673 * doc/extend.texi: Document ARM/Thumb target attribute.
15674 * doc/invoke.texi: Likewise.
15676 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
15679 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
15680 PR rtl-optimization/64164
15681 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15682 * tree-ssa-copyrename.c: Removed.
15683 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15684 -ftree-coalesce-vars.
15685 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15686 * common.opt (ftree-copyrename): Ignore.
15687 (ftree-coalesce-inlined-vars): Likewise.
15688 * doc/invoke.texi: Remove the ignored options above.
15689 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15690 * tree-ssa-coalesce.h: ... here.
15691 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15692 headers required by it.
15693 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15694 across variables when flag_tree_coalesce_vars. Check register
15695 use and promoted modes to allow coalescing. Moved to
15696 tree-ssa-coalesce.c.
15697 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15698 with its member functions to tree-ssa-coalesce.c.
15699 (var_map_base_init): Likewise. Renamed to
15700 compute_samebase_partition_bases.
15701 (partition_view_normal): Drop want_bases parameter.
15702 (partition_view_bitmap): Likewise.
15703 * tree-ssa-live.h: Adjust declarations.
15704 * tree-ssa-coalesce.c: Include explow.h.
15705 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15706 default defs at the entry point.
15707 (dump_part_var_map): New.
15708 (compute_optimized_partition_bases): New, called by...
15709 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15710 of compute_samebase_partition_bases. Adjust.
15711 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15712 * cfgexpand.c (leader_merge): New.
15713 (get_rtl_for_parm_ssa_default_def): New.
15714 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15715 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15716 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15717 redundant MEM attr setting.
15718 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15720 (expand_one_stack_var): ... this. New wrapper to check and
15721 skip already expanded SSA partitions.
15722 (record_alignment_for_reg_var): New, factored out of...
15723 (expand_one_var): ... this.
15724 (expand_one_ssa_partition): New.
15725 (adjust_one_expanded_partition_var): New.
15726 (expand_one_register_var): Check and skip already expanded SSA
15728 (expand_used_vars): Don't create DECLs for anonymous SSA
15729 names. Expand all SSA partitions, then adjust all SSA names.
15730 (pass::execute): Replace the loops that set
15731 SA.partition_to_pseudo from partition leaders and cleared
15732 DECL_RTL for multi-location variables, and that which used to
15733 rename vars and set attrs, with one that clears DECL_RTL and
15734 checks that PARMs and RESULTs default_defs match DECL_RTL.
15735 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15736 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15737 * explow.c (promote_ssa_mode): New.
15738 * explow.h (promote_ssa_mode): Declare.
15739 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15740 * function.c: Include cfgexpand.h.
15741 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15742 (use_register_for_parm_decl): Wrapper for the above to
15743 special-case the result_ptr.
15744 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15745 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15746 multiple locations.
15747 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15748 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15749 (assign_parm_setup_block): Prefer SSA-assigned location.
15750 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15751 if stack_parm is NULL.
15752 (assign_parm_setup_stack): Prefer SSA-assigned location.
15753 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15754 rtl before testing for pointer bounds. Special-case result_ptr.
15755 (expand_function_start): Maybe reset DECL_RTL of result.
15756 Prefer SSA-assigned location for result and static chain.
15757 Factor out DECL_RESULT and SET_DECL_RTL.
15758 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15759 anonymous SSA names. Use promote_ssa_mode.
15760 (get_temp_reg): Likewise.
15761 (remove_ssa_form): Adjust.
15762 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15763 and get its reg_usage for reg invalidation.
15764 (compute_bb_dataflow): Pass it insn.
15765 (emit_notes_in_bb): Likewise.
15766 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
15767 fail assert on conversion between unsigned types.
15769 2015-06-09 Tom de Vries <tom@codesourcery.com>
15771 PR tree-optimization/65460
15772 * omp-low.c (expand_omp_target): Set parallelized_function on
15773 cgraph_node for child_fn.
15775 2015-06-09 Tom de Vries <tom@codesourcery.com>
15777 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
15778 parallelized_function before add_new_function.
15780 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
15782 * gcc-plugin.h: Move decls to plugin.h and include it.
15783 * plugin.h: Relocate decls from gcc-plugin.h
15784 * ggc-page.c: Include required header files.
15785 * passes.c: Likewise.
15786 * cgraphunit.c: Likewise.
15788 2015-06-09 Tom de Vries <tom@codesourcery.com>
15790 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
15792 2015-06-09 Jason Merrill <jason@redhat.com>
15795 * toplev.c (check_global_declaration): Don't warn about a clone.
15797 2015-06-09 Marek Polacek <polacek@redhat.com>
15799 PR tree-optimization/66299
15800 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
15801 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
15804 2015-06-09 Richard Biener <rguenther@suse.de>
15806 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
15807 (vect_analyze_slp_instance): Instead do not falsely drop
15810 2015-06-09 Richard Biener <rguenther@suse.de>
15812 PR middle-end/66423
15813 * match.pd: Handle A % (unsigned)(1 << B).
15815 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
15817 * varasm.c (output_object_block_htab): Remove.
15818 (output_object_block_compare): New.
15819 (output_object_blocks): Sort named object_blocks before outputting
15822 2015-06-09 Richard Biener <rguenther@suse.de>
15824 PR tree-optimization/66419
15825 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
15826 consider GROUP_GAP when detecting a perfect subchain.
15828 2015-06-09 Nick Clifton <nickc@redhat.com>
15830 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
15831 place read only data in the .frodata section.
15833 2015-06-09 Shiva Chen <shiva0217@gmail.com>
15835 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
15836 (atomic_store<mode>): Likewise.
15838 2015-06-09 Richard Biener <rguenther@suse.de>
15840 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
15842 2015-06-09 Richard Biener <rguenther@suse.de>
15844 PR middle-end/66413
15845 * tree-inline.c (insert_init_debug_bind): Unshare value.
15847 2015-06-09 Richard Biener <rguenther@suse.de>
15849 PR tree-optimization/66396
15850 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
15851 Rename virtual operands.
15853 2015-06-09 Tom de Vries <tom@codesourcery.com>
15855 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
15856 always return false.
15858 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
15860 PR rtl-optimization/64164
15861 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15862 * tree-ssa-copyrename.c: Removed.
15863 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15864 -ftree-coalesce-vars.
15865 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15866 * common.opt (ftree-copyrename): Ignore.
15867 (ftree-coalesce-inlined-vars): Likewise.
15868 * doc/invoke.texi: Remove the ignored options above.
15869 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15870 * tree-ssa-coalesce.h: ... here.
15871 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15872 headers required by it.
15873 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15874 across variables when flag_tree_coalesce_vars. Check register
15875 use and promoted modes to allow coalescing. Moved to
15876 tree-ssa-coalesce.c.
15877 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15878 with its member functions to tree-ssa-coalesce.c.
15879 (var_map_base_init): Likewise. Renamed to
15880 compute_samebase_partition_bases.
15881 (partition_view_normal): Drop want_bases parameter.
15882 (partition_view_bitmap): Likewise.
15883 * tree-ssa-live.h: Adjust declarations.
15884 * tree-ssa-coalesce.c: Include explow.h.
15885 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15886 default defs at the entry point.
15887 (dump_part_var_map): New.
15888 (compute_optimized_partition_bases): New, called by...
15889 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15890 of compute_samebase_partition_bases. Adjust.
15891 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15892 * cfgexpand.c (leader_merge): New.
15893 (get_rtl_for_parm_ssa_default_def): New.
15894 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15895 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15896 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15897 redundant MEM attr setting.
15898 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15900 (expand_one_stack_var): ... this. New wrapper to check and
15901 skip already expanded SSA partitions.
15902 (record_alignment_for_reg_var): New, factored out of...
15903 (expand_one_var): ... this.
15904 (expand_one_ssa_partition): New.
15905 (adjust_one_expanded_partition_var): New.
15906 (expand_one_register_var): Check and skip already expanded SSA
15908 (expand_used_vars): Don't create DECLs for anonymous SSA
15909 names. Expand all SSA partitions, then adjust all SSA names.
15910 (pass::execute): Replace the loops that set
15911 SA.partition_to_pseudo from partition leaders and cleared
15912 DECL_RTL for multi-location variables, and that which used to
15913 rename vars and set attrs, with one that clears DECL_RTL and
15914 checks that PARMs and RESULTs default_defs match DECL_RTL.
15915 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15916 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15917 * explow.c (promote_ssa_mode): New.
15918 * explow.h (promote_ssa_mode): Declare.
15919 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15920 * function.c: Include cfgexpand.h.
15921 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15922 (use_register_for_parm_decl): Wrapper for the above to
15923 special-case the result_ptr.
15924 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15925 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15926 multiple locations.
15927 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15928 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15929 (assign_parm_setup_block): Prefer SSA-assigned location.
15930 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15931 if stack_parm is NULL.
15932 (assign_parm_setup_stack): Prefer SSA-assigned location.
15933 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15934 rtl before testing for pointer bounds. Special-case result_ptr.
15935 (expand_function_start): Maybe reset DECL_RTL of result.
15936 Prefer SSA-assigned location for result and static chain.
15937 Factor out DECL_RESULT and SET_DECL_RTL.
15938 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15939 anonymous SSA names. Use promote_ssa_mode.
15940 (get_temp_reg): Likewise.
15941 (remove_ssa_form): Adjust.
15942 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15943 and get its reg_usage for reg invalidation.
15944 (compute_bb_dataflow): Pass it insn.
15945 (emit_notes_in_bb): Likewise.
15946 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
15947 fail assert on conversion between unsigned types.
15949 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
15952 * tree-inline.c (reset_debug_binding): New.
15953 (reset_debug_bindings): Likewise.
15954 (expand_call_inline): Call it.
15956 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
15958 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
15961 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
15963 * lto-streamer-out.c (lto_output_location): Stream
15964 reserved locations correctly.
15965 * lto-streamer-in.c (lto_output_location): Likewise.
15967 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
15969 * coretypes.h: Include hash-table.h and hash-set.h for host files.
15970 * ggc.h: Don't include statistics.h>
15971 * hash-map.h: Remove all includes.
15972 * hash-set.h: Likewise.
15973 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
15974 the include list. Remove <new>.
15975 * inchash.h: Remove all includes.
15976 * mem-stats.h: Likewise.
15977 * vec.h: No special processing for generators or ggc.
15978 * alias.c : Adjust include files.
15979 * alloc-pool.c : Likewise.
15980 * alloc-pool.h : Likewise.
15981 * asan.c : Likewise.
15982 * attribs.c : Likewise.
15983 * auto-inc-dec.c : Likewise.
15984 * auto-profile.c : Likewise.
15985 * bb-reorder.c : Likewise.
15986 * bitmap.c : Likewise.
15987 * bitmap.h : Likewise.
15988 * bt-load.c : Likewise.
15989 * builtins.c : Likewise.
15990 * caller-save.c : Likewise.
15991 * calls.c : Likewise.
15992 * ccmp.c : Likewise.
15993 * cfg.c : Likewise.
15994 * cfganal.c : Likewise.
15995 * cfgbuild.c : Likewise.
15996 * cfgcleanup.c : Likewise.
15997 * cfgexpand.c : Likewise.
15998 * cfghooks.c : Likewise.
15999 * cfgloop.c : Likewise.
16000 * cfgloop.h : Likewise.
16001 * cfgloopanal.c : Likewise.
16002 * cfgloopmanip.c : Likewise.
16003 * cfgrtl.c : Likewise.
16004 * cgraph.c : Likewise.
16005 * cgraphbuild.c : Likewise.
16006 * cgraphclones.c : Likewise.
16007 * cgraphunit.c : Likewise.
16008 * cilk-common.c : Likewise.
16009 * combine-stack-adj.c : Likewise.
16010 * combine.c : Likewise.
16011 * compare-elim.c : Likewise.
16012 * context.c : Likewise.
16013 * convert.c : Likewise.
16014 * coverage.c : Likewise.
16015 * cppbuiltin.c : Likewise.
16016 * cprop.c : Likewise.
16017 * cse.c : Likewise.
16018 * cselib.c : Likewise.
16019 * data-streamer-in.c : Likewise.
16020 * data-streamer-out.c : Likewise.
16021 * data-streamer.c : Likewise.
16022 * data-streamer.h : Likewise.
16023 * dbxout.c : Likewise.
16024 * dce.c : Likewise.
16025 * ddg.c : Likewise.
16026 * debug.c : Likewise.
16027 * df-core.c : Likewise.
16028 * df-problems.c : Likewise.
16029 * df-scan.c : Likewise.
16031 * dfp.c : Likewise.
16032 * dojump.c : Likewise.
16033 * dominance.c : Likewise.
16034 * domwalk.c : Likewise.
16035 * double-int.c : Likewise.
16036 * dse.c : Likewise.
16037 * dumpfile.c : Likewise.
16038 * dwarf2asm.c : Likewise.
16039 * dwarf2cfi.c : Likewise.
16040 * dwarf2out.c : Likewise.
16041 * emit-rtl.c : Likewise.
16042 * et-forest.c : Likewise.
16043 * except.c : Likewise.
16044 * except.h : Likewise.
16045 * explow.c : Likewise.
16046 * expmed.c : Likewise.
16047 * expr.c : Likewise.
16048 * final.c : Likewise.
16049 * fixed-value.c : Likewise.
16050 * fold-const.c : Likewise.
16051 * function.c : Likewise.
16052 * fwprop.c : Likewise.
16053 * gcc-plugin.h : Likewise.
16054 * gcc.c : Likewise.
16055 * gcse-common.c : Likewise.
16056 * gcse.c : Likewise.
16057 * genattrtab.c : Likewise.
16058 * genautomata.c : Likewise.
16059 * genconditions.c : Likewise.
16060 * genemit.c : Likewise.
16061 * generic-match-head.c : Likewise.
16062 * genextract.c : Likewise.
16063 * gengtype-state.c : Likewise.
16064 * gengtype.c : Likewise.
16065 * genhooks.c : Likewise.
16066 * genmatch.c : Likewise.
16067 * genmodes.c : Likewise.
16068 * genrecog.c : Likewise.
16069 * gensupport.c : Likewise.
16070 * ggc-common.c : Likewise.
16071 * ggc-internal.h : Likewise.
16072 * ggc-none.c : Likewise.
16073 * ggc-page.c : Likewise.
16074 * gimple-builder.c : Likewise.
16075 * gimple-expr.c : Likewise.
16076 * gimple-fold.c : Likewise.
16077 * gimple-iterator.c : Likewise.
16078 * gimple-low.c : Likewise.
16079 * gimple-match-head.c : Likewise.
16080 * gimple-pretty-print.c : Likewise.
16081 * gimple-ssa-isolate-paths.c : Likewise.
16082 * gimple-ssa-strength-reduction.c : Likewise.
16083 * gimple-ssa.h : Likewise.
16084 * gimple-streamer-in.c : Likewise.
16085 * gimple-streamer-out.c : Likewise.
16086 * gimple-streamer.h : Likewise.
16087 * gimple-walk.c : Likewise.
16088 * gimple.c : Likewise.
16089 * gimplify-me.c : Likewise.
16090 * gimplify.c : Likewise.
16091 * godump.c : Likewise.
16092 * graph.c : Likewise.
16093 * graphds.c : Likewise.
16094 * graphite-blocking.c : Likewise.
16095 * graphite-dependences.c : Likewise.
16096 * graphite-interchange.c : Likewise.
16097 * graphite-isl-ast-to-gimple.c : Likewise.
16098 * graphite-optimize-isl.c : Likewise.
16099 * graphite-poly.c : Likewise.
16100 * graphite-scop-detection.c : Likewise.
16101 * graphite-sese-to-poly.c : Likewise.
16102 * graphite.c : Likewise.
16103 * haifa-sched.c : Likewise.
16104 * hard-reg-set.h : Likewise.
16105 * hw-doloop.c : Likewise.
16106 * ifcvt.c : Likewise.
16107 * inchash.c : Likewise.
16108 * incpath.c : Likewise.
16109 * init-regs.c : Likewise.
16110 * input.c : Likewise.
16111 * internal-fn.c : Likewise.
16112 * ipa-chkp.c : Likewise.
16113 * ipa-comdats.c : Likewise.
16114 * ipa-cp.c : Likewise.
16115 * ipa-devirt.c : Likewise.
16116 * ipa-icf-gimple.c : Likewise.
16117 * ipa-icf.c : Likewise.
16118 * ipa-inline-analysis.c : Likewise.
16119 * ipa-inline-transform.c : Likewise.
16120 * ipa-inline.c : Likewise.
16121 * ipa-polymorphic-call.c : Likewise.
16122 * ipa-profile.c : Likewise.
16123 * ipa-prop.c : Likewise.
16124 * ipa-pure-const.c : Likewise.
16125 * ipa-ref.c : Likewise.
16126 * ipa-reference.c : Likewise.
16127 * ipa-split.c : Likewise.
16128 * ipa-utils.c : Likewise.
16129 * ipa-visibility.c : Likewise.
16130 * ipa.c : Likewise.
16131 * ira-build.c : Likewise.
16132 * ira-color.c : Likewise.
16133 * ira-conflicts.c : Likewise.
16134 * ira-costs.c : Likewise.
16135 * ira-emit.c : Likewise.
16136 * ira-lives.c : Likewise.
16137 * ira.c : Likewise.
16138 * jump.c : Likewise.
16139 * langhooks.c : Likewise.
16140 * lcm.c : Likewise.
16141 * libfuncs.h : Likewise.
16142 * lists.c : Likewise.
16143 * loop-doloop.c : Likewise.
16144 * loop-init.c : Likewise.
16145 * loop-invariant.c : Likewise.
16146 * loop-iv.c : Likewise.
16147 * loop-unroll.c : Likewise.
16148 * lower-subreg.c : Likewise.
16149 * lra-assigns.c : Likewise.
16150 * lra-coalesce.c : Likewise.
16151 * lra-constraints.c : Likewise.
16152 * lra-eliminations.c : Likewise.
16153 * lra-lives.c : Likewise.
16154 * lra-remat.c : Likewise.
16155 * lra-spills.c : Likewise.
16156 * lra.c : Likewise.
16157 * lto-cgraph.c : Likewise.
16158 * lto-compress.c : Likewise.
16159 * lto-opts.c : Likewise.
16160 * lto-section-in.c : Likewise.
16161 * lto-section-out.c : Likewise.
16162 * lto-streamer-in.c : Likewise.
16163 * lto-streamer-out.c : Likewise.
16164 * lto-streamer.c : Likewise.
16165 * lto-streamer.h : Likewise.
16166 * mcf.c : Likewise.
16167 * mode-switching.c : Likewise.
16168 * modulo-sched.c : Likewise.
16169 * omega.c : Likewise.
16170 * omp-low.c : Likewise.
16171 * optabs.c : Likewise.
16172 * opts-global.c : Likewise.
16173 * opts.h : Likewise.
16174 * passes.c : Likewise.
16175 * plugin.c : Likewise.
16176 * postreload-gcse.c : Likewise.
16177 * postreload.c : Likewise.
16178 * predict.c : Likewise.
16179 * print-rtl.c : Likewise.
16180 * print-tree.c : Likewise.
16181 * profile.c : Likewise.
16182 * read-md.c : Likewise.
16183 * read-md.h : Likewise.
16184 * read-rtl.c : Likewise.
16185 * real.c : Likewise.
16186 * realmpfr.c : Likewise.
16187 * recog.c : Likewise.
16188 * ree.c : Likewise.
16189 * reg-stack.c : Likewise.
16190 * regcprop.c : Likewise.
16191 * reginfo.c : Likewise.
16192 * regrename.c : Likewise.
16193 * regstat.c : Likewise.
16194 * reload.c : Likewise.
16195 * reload1.c : Likewise.
16196 * reorg.c : Likewise.
16197 * resource.c : Likewise.
16198 * rtl-chkp.c : Likewise.
16199 * rtl.c : Likewise.
16200 * rtl.h : Likewise.
16201 * rtlanal.c : Likewise.
16202 * rtlhash.c : Likewise.
16203 * rtlhash.h : Likewise.
16204 * rtlhooks.c : Likewise.
16205 * sanopt.c : Likewise.
16206 * sched-deps.c : Likewise.
16207 * sched-ebb.c : Likewise.
16208 * sched-rgn.c : Likewise.
16209 * sched-vis.c : Likewise.
16210 * sdbout.c : Likewise.
16211 * sel-sched-dump.c : Likewise.
16212 * sel-sched-ir.c : Likewise.
16213 * sel-sched-ir.h : Likewise.
16214 * sel-sched.c : Likewise.
16215 * sese.c : Likewise.
16216 * shrink-wrap.c : Likewise.
16217 * shrink-wrap.h : Likewise.
16218 * simplify-rtx.c : Likewise.
16219 * stack-ptr-mod.c : Likewise.
16220 * statistics.c : Likewise.
16221 * stmt.c : Likewise.
16222 * stor-layout.c : Likewise.
16223 * store-motion.c : Likewise.
16224 * stringpool.c : Likewise.
16225 * symtab.c : Likewise.
16226 * target-globals.c : Likewise.
16227 * targhooks.c : Likewise.
16228 * tlink.c : Likewise.
16229 * toplev.c : Likewise.
16230 * tracer.c : Likewise.
16231 * trans-mem.c : Likewise.
16232 * tree-affine.c : Likewise.
16233 * tree-affine.h : Likewise.
16234 * tree-browser.c : Likewise.
16235 * tree-call-cdce.c : Likewise.
16236 * tree-cfg.c : Likewise.
16237 * tree-cfgcleanup.c : Likewise.
16238 * tree-chkp-opt.c : Likewise.
16239 * tree-chkp.c : Likewise.
16240 * tree-chrec.c : Likewise.
16241 * tree-complex.c : Likewise.
16242 * tree-data-ref.c : Likewise.
16243 * tree-dfa.c : Likewise.
16244 * tree-diagnostic.c : Likewise.
16245 * tree-dump.c : Likewise.
16246 * tree-eh.c : Likewise.
16247 * tree-eh.h : Likewise.
16248 * tree-emutls.c : Likewise.
16249 * tree-hasher.h : Likewise.
16250 * tree-if-conv.c : Likewise.
16251 * tree-inline.c : Likewise.
16252 * tree-inline.h : Likewise.
16253 * tree-into-ssa.c : Likewise.
16254 * tree-iterator.c : Likewise.
16255 * tree-loop-distribution.c : Likewise.
16256 * tree-nested.c : Likewise.
16257 * tree-nrv.c : Likewise.
16258 * tree-object-size.c : Likewise.
16259 * tree-outof-ssa.c : Likewise.
16260 * tree-parloops.c : Likewise.
16261 * tree-phinodes.c : Likewise.
16262 * tree-predcom.c : Likewise.
16263 * tree-pretty-print.c : Likewise.
16264 * tree-profile.c : Likewise.
16265 * tree-scalar-evolution.c : Likewise.
16266 * tree-sra.c : Likewise.
16267 * tree-ssa-address.c : Likewise.
16268 * tree-ssa-alias.c : Likewise.
16269 * tree-ssa-ccp.c : Likewise.
16270 * tree-ssa-coalesce.c : Likewise.
16271 * tree-ssa-copy.c : Likewise.
16272 * tree-ssa-copyrename.c : Likewise.
16273 * tree-ssa-dce.c : Likewise.
16274 * tree-ssa-dom.c : Likewise.
16275 * tree-ssa-dse.c : Likewise.
16276 * tree-ssa-forwprop.c : Likewise.
16277 * tree-ssa-ifcombine.c : Likewise.
16278 * tree-ssa-live.c : Likewise.
16279 * tree-ssa-loop-ch.c : Likewise.
16280 * tree-ssa-loop-im.c : Likewise.
16281 * tree-ssa-loop-ivcanon.c : Likewise.
16282 * tree-ssa-loop-ivopts.c : Likewise.
16283 * tree-ssa-loop-manip.c : Likewise.
16284 * tree-ssa-loop-niter.c : Likewise.
16285 * tree-ssa-loop-prefetch.c : Likewise.
16286 * tree-ssa-loop-unswitch.c : Likewise.
16287 * tree-ssa-loop.c : Likewise.
16288 * tree-ssa-math-opts.c : Likewise.
16289 * tree-ssa-operands.c : Likewise.
16290 * tree-ssa-phiopt.c : Likewise.
16291 * tree-ssa-phiprop.c : Likewise.
16292 * tree-ssa-pre.c : Likewise.
16293 * tree-ssa-propagate.c : Likewise.
16294 * tree-ssa-reassoc.c : Likewise.
16295 * tree-ssa-sccvn.c : Likewise.
16296 * tree-ssa-scopedtables.c : Likewise.
16297 * tree-ssa-sink.c : Likewise.
16298 * tree-ssa-strlen.c : Likewise.
16299 * tree-ssa-structalias.c : Likewise.
16300 * tree-ssa-tail-merge.c : Likewise.
16301 * tree-ssa-ter.c : Likewise.
16302 * tree-ssa-threadedge.c : Likewise.
16303 * tree-ssa-threadupdate.c : Likewise.
16304 * tree-ssa-uncprop.c : Likewise.
16305 * tree-ssa-uninit.c : Likewise.
16306 * tree-ssa.c : Likewise.
16307 * tree-ssanames.c : Likewise.
16308 * tree-stdarg.c : Likewise.
16309 * tree-streamer-in.c : Likewise.
16310 * tree-streamer-out.c : Likewise.
16311 * tree-streamer.c : Likewise.
16312 * tree-streamer.h : Likewise.
16313 * tree-switch-conversion.c : Likewise.
16314 * tree-tailcall.c : Likewise.
16315 * tree-vect-data-refs.c : Likewise.
16316 * tree-vect-generic.c : Likewise.
16317 * tree-vect-loop-manip.c : Likewise.
16318 * tree-vect-loop.c : Likewise.
16319 * tree-vect-patterns.c : Likewise.
16320 * tree-vect-slp.c : Likewise.
16321 * tree-vect-stmts.c : Likewise.
16322 * tree-vectorizer.c : Likewise.
16323 * tree-vectorizer.h : Likewise.
16324 * tree-vrp.c : Likewise.
16325 * tree.c : Likewise.
16326 * tsan.c : Likewise.
16327 * ubsan.c : Likewise.
16328 * valtrack.c : Likewise.
16329 * valtrack.h : Likewise.
16330 * value-prof.c : Likewise.
16331 * var-tracking.c : Likewise.
16332 * varasm.c : Likewise.
16333 * varpool.c : Likewise.
16335 * vmsdbgout.c : Likewise.
16336 * vtable-verify.c : Likewise.
16337 * vtable-verify.h : Likewise.
16338 * web.c : Likewise.
16339 * wide-int.cc : Likewise.
16340 * xcoffout.c : Likewise.
16341 * config/aarch64/aarch64-builtins.c : Likewise.
16342 * config/aarch64/aarch64.c : Likewise.
16343 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
16344 * config/alpha/alpha.c : Likewise.
16345 * config/arc/arc.c : Likewise.
16346 * config/arm/aarch-common.c : Likewise.
16347 * config/arm/arm-builtins.c : Likewise.
16348 * config/arm/arm-c.c : Likewise.
16349 * config/arm/arm.c : Likewise.
16350 * config/avr/avr-c.c : Likewise.
16351 * config/avr/avr-log.c : Likewise.
16352 * config/avr/avr.c : Likewise.
16353 * config/bfin/bfin.c : Likewise.
16354 * config/c6x/c6x.c : Likewise.
16355 * config/cr16/cr16.c : Likewise.
16356 * config/cris/cris.c : Likewise.
16357 * config/darwin-c.c : Likewise.
16358 * config/darwin.c : Likewise.
16359 * config/default-c.c : Likewise.
16360 * config/epiphany/epiphany.c : Likewise.
16361 * config/epiphany/mode-switch-use.c : Likewise.
16362 * config/epiphany/resolve-sw-modes.c : Likewise.
16363 * config/fr30/fr30.c : Likewise.
16364 * config/frv/frv.c : Likewise.
16365 * config/ft32/ft32.c : Likewise.
16366 * config/glibc-c.c : Likewise.
16367 * config/h8300/h8300.c : Likewise.
16368 * config/i386/i386-c.c : Likewise.
16369 * config/i386/i386.c : Likewise.
16370 * config/i386/msformat-c.c : Likewise.
16371 * config/i386/winnt-cxx.c : Likewise.
16372 * config/i386/winnt-stubs.c : Likewise.
16373 * config/i386/winnt.c : Likewise.
16374 * config/ia64/ia64-c.c : Likewise.
16375 * config/ia64/ia64.c : Likewise.
16376 * config/iq2000/iq2000.c : Likewise.
16377 * config/lm32/lm32.c : Likewise.
16378 * config/m32c/m32c-pragma.c : Likewise.
16379 * config/m32c/m32c.c : Likewise.
16380 * config/m32r/m32r.c : Likewise.
16381 * config/m68k/m68k.c : Likewise.
16382 * config/mcore/mcore.c : Likewise.
16383 * config/mep/mep-pragma.c : Likewise.
16384 * config/mep/mep.c : Likewise.
16385 * config/microblaze/microblaze-c.c : Likewise.
16386 * config/microblaze/microblaze.c : Likewise.
16387 * config/mips/mips.c : Likewise.
16388 * config/mmix/mmix.c : Likewise.
16389 * config/mn10300/mn10300.c : Likewise.
16390 * config/moxie/moxie.c : Likewise.
16391 * config/msp430/msp430-c.c : Likewise.
16392 * config/msp430/msp430.c : Likewise.
16393 * config/nds32/nds32-cost.c : Likewise.
16394 * config/nds32/nds32-fp-as-gp.c : Likewise.
16395 * config/nds32/nds32-intrinsic.c : Likewise.
16396 * config/nds32/nds32-isr.c : Likewise.
16397 * config/nds32/nds32-md-auxiliary.c : Likewise.
16398 * config/nds32/nds32-memory-manipulation.c : Likewise.
16399 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
16400 * config/nds32/nds32-predicates.c : Likewise.
16401 * config/nds32/nds32.c : Likewise.
16402 * config/nios2/nios2.c : Likewise.
16403 * config/nvptx/nvptx.c : Likewise.
16404 * config/pa/pa.c : Likewise.
16405 * config/pdp11/pdp11.c : Likewise.
16406 * config/rl78/rl78-c.c : Likewise.
16407 * config/rl78/rl78.c : Likewise.
16408 * config/rs6000/rs6000-c.c : Likewise.
16409 * config/rs6000/rs6000.c : Likewise.
16410 * config/rx/rx.c : Likewise.
16411 * config/s390/s390-c.c : Likewise.
16412 * config/s390/s390.c : Likewise.
16413 * config/sh/sh-c.c : Likewise.
16414 * config/sh/sh-mem.cc : Likewise.
16415 * config/sh/sh.c : Likewise.
16416 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
16417 * config/sh/sh_treg_combine.cc : Likewise.
16418 * config/sol2-c.c : Likewise.
16419 * config/sol2-cxx.c : Likewise.
16420 * config/sol2-stubs.c : Likewise.
16421 * config/sol2.c : Likewise.
16422 * config/sparc/sparc-c.c : Likewise.
16423 * config/sparc/sparc.c : Likewise.
16424 * config/spu/spu-c.c : Likewise.
16425 * config/spu/spu.c : Likewise.
16426 * config/stormy16/stormy16.c : Likewise.
16427 * config/tilegx/mul-tables.c : Likewise.
16428 * config/tilegx/tilegx-c.c : Likewise.
16429 * config/tilegx/tilegx.c : Likewise.
16430 * config/tilepro/mul-tables.c : Likewise.
16431 * config/tilepro/tilepro-c.c : Likewise.
16432 * config/tilepro/tilepro.c : Likewise.
16433 * config/v850/v850-c.c : Likewise.
16434 * config/v850/v850.c : Likewise.
16435 * config/vax/vax.c : Likewise.
16436 * config/visium/visium.c : Likewise.
16437 * config/vms/vms-c.c : Likewise.
16438 * config/vms/vms.c : Likewise.
16439 * config/vxworks.c : Likewise.
16440 * config/winnt-c.c : Likewise.
16441 * config/xtensa/xtensa.c : Likewise.
16443 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
16446 * ipa-utils.h (warn_types_mismatch): Update prototype.
16447 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
16449 (type_mismatch_p): New function.
16450 (warn_types_mismatch): Reorg to work better on non-C++ types.
16451 (odr_types_equivalent_p): Add loc1/loc2 parameters.
16452 (add_type_duplicate): Update.
16454 2015-06-08 Tom de Vries <tom@codesourcery.com>
16456 PR rtl-optimization/66444
16457 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
16460 2015-06-08 Richard Biener <rguenther@suse.de>
16462 PR tree-optimization/66422
16463 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
16464 block after inserted gcc_unreachable.
16466 2015-06-08 Nick Clifton <nickc@redhat.com>
16468 * config/rx/rx.c (rx_function_value): Do not promote vector types.
16469 (rx_promote_function_mode): Likewise.
16470 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
16472 2015-06-08 Jakub Jelinek <jakub@redhat.com>
16474 * genattrtab.c (insn_alternatives): Change type from int *
16476 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
16477 (get_attr_value): Change type of num_alt to uint64_t.
16478 (compute_alternative_mask): Change return type from
16479 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
16480 (make_alternative_compare, mk_attr_alt): Change argument type
16481 from int to uint64_t.
16482 (simplify_test_exp): Change type of i from int to uint64_t.
16483 Shift ((uint64_t) 1) instead of 1 up.
16484 (main): Adjust oballocvec first argument from int to uint64_t.
16485 Shift ((uint64_t) 1) instead of 1 up.
16487 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16490 * gdbhooks.py: Import sys.
16491 (intptr): New function. Replace int(...) by intptr(...).
16493 2015-06-08 Richard Biener <rguenther@suse.de>
16495 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
16496 adjustment for gaps at the end of a SLP load group properly.
16497 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
16498 all permutations we can generate.
16499 (vect_transform_slp_perm_load): Use the correct group-size.
16501 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
16503 * genmatch.c (expr::gen_transform): For conditions, guess the type
16504 from the second operand.
16506 2015-06-08 Tom de Vries <tom@codesourcery.com>
16508 PR tree-optimization/66442
16509 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
16510 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
16511 if the loop latch is not a singleton. Use
16512 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
16514 2015-06-08 Marek Polacek <polacek@redhat.com>
16517 * toplev.c (check_global_declaration): Don't warn about artificial
16520 2015-06-08 Tom de Vries <tom@codesourcery.com>
16522 PR tree-optimization/66436
16523 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
16525 * gimplify.c: Add tree-dump.h include.
16526 (gimplify_function_tree): Dump function to gimple dump file.
16527 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
16530 2015-06-08 Tom de Vries <tom@codesourcery.com>
16532 PR tree-optimization/66435
16533 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
16536 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
16538 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
16539 of ptr_type_node to not be ptr_to_node.
16540 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
16541 TREE_TYPE of pointers.
16542 * gimple-expr.c (useless_type_conversion): Reorder the check for
16543 function pointers and TYPE_CANONICAL.
16545 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
16548 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
16549 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
16550 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
16552 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
16553 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
16554 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
16555 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
16556 and non iso if unix2003.
16558 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
16560 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
16562 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
16564 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
16565 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
16566 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
16567 except.c, final.c, function.c, gcse-common.c, genemit.c,
16568 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
16569 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
16570 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
16571 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
16574 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
16576 * combine.c (combine_split_insns): Remove cast.
16577 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
16578 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
16579 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
16580 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
16581 * genemit.c (gen_split): Change return type of generated functions to
16583 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
16584 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
16585 gen_peephole2_* functions.
16586 (print_subroutine, main): Likewise.
16587 * recog.c (peephole2_optimize): Remove cast.
16588 (peep2_next_insn): Promote return type to rtx_insn.
16589 * recog.h (peep2_next_insn): Fix prototype.
16590 * rtl.h (try_split, split_insns): Likewise.
16592 2015-06-06 DJ Delorie <dj@redhat.com>
16594 * config/msp430/msp430.c (msp430_asm_integer): Support addition
16595 and subtraction too.
16597 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
16600 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
16601 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
16602 instead of Snd. Disparage Sid/z alternative with '^'.
16604 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
16606 * dwarf2out.c: Remove deferred_locations*.
16607 (dwarf2_debug_hooks): Add early_finish hook.
16608 Remove global_decl hook.
16609 Add early_global_decl and late_global_decl hook.
16610 New global early_dwarf.
16611 New structure set_early_dwarf.
16612 (output_die): Indicate whether a DIE was generated early
16613 when generating assembly with -dA.
16614 (struct limbo_die_struct): Document created_for field.
16615 Remove file_table_last_lookup.
16616 (remove_AT): Return TRUE if successful.
16617 (remove_child_TAG): Clear die_parent.
16618 (reparent_child): New function abstracted from...
16619 (splice_child_die): ...here.
16620 (new_die): ICE if a DIE ends up in limbo too late.
16622 (defer_location): Remove.
16623 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
16624 (fill_variable_array_bounds): New.
16625 (decl_start_label): Call fill_variable_array_bounds.
16626 (gen_formal_parameter_die): Rewrite to reuse previously generated
16628 (gen_subprogram_die): Same.
16629 (gen_variable_die): Same.
16630 (gen_const_die): Same.
16631 (gen_label_die): Same.
16632 (gen_lexical_block_die): Same.
16633 (decl_will_get_specification_p): New.
16634 (local_function_static): New.
16635 (gen_struct_or_union_type_die): Fill in variable-length fields.
16636 (gen_typedef_die): Fill in variable-length typedefs.
16637 (gen_tagged_type_die): Gracefully return on error_mark_node.
16638 Handle re-entrancy.
16639 (gen_type_die_with_usage): Handle variable-length types.
16640 Remove duplicate code for ARRAY_TYPE case.
16641 (process_scope_var): Only process imported modules during early
16643 (dwarf2out_early_global_decl): New.
16644 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
16645 (dwarf2out_type_decl): Set early_dwarf while calling
16647 (dwarf2out_decl): Verify that we did not recreate a previously
16649 Do not return on DECL_EXTERNALs in VAR_DECLs.
16650 Abstract some code to local_function_static.
16651 (lookup_filename): Remove use of file_table_last_lookup.
16652 Gracefully exit on missing file_name.
16653 (dwarf2out_finish): Verify limbo list.
16654 Remove deferred_locations_list use.
16655 Move deferred_asm_name and limbo flushing to...
16656 (dwarf2out_early_finish): ...here. New.
16657 (dwarf2out_c_finalize): Remove set of deferred_location_list,
16658 deferred_asm_name, and file_table_last_lookup.
16659 * cgraph.h (referred_to_p): Add default argument.
16660 * cgraphunit.c (referred_to_p): Add and handle include_self
16662 (analyze_functions): Add first_time argument.
16663 Call check_global_declaration for all symbols.
16664 Call late_global_decl for nodes for moribund nodes.
16665 (finalize_compilation_unit): Add new argument to
16667 Call early_global_decl for functions.
16668 Call early_finish debug hook.
16669 * dbxout.c (dbxout_early_global_decl): New.
16670 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
16671 (dbx_debug_hooks): Add new hooks.
16672 (xcoff_debug_hooks): Same.
16673 * debug.c (do_nothing_debug_hooks): Add early_finish field.
16674 Add early and late debug hooks.
16675 Remove global_decl hook.
16676 * debug.h (struct gcc_debug_hooks): Add early_finish,
16677 early_global_decl, and late_global_decl fields.
16678 Remove global_decl field.
16679 Document gcc_debug_hooks.
16680 * gengtype.c (output_typename): Remove.
16681 * godump.c (go_early_global_decl): New.
16682 (go_late_global_decl): New.
16683 (go_global_decl): Remove.
16684 (dump_go_spec_init): Remove global_decl. Add
16685 {early,late}_global_decl.
16686 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
16687 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
16688 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
16689 (write_global_declarations): Remove.
16690 (global_decl_processing): New.
16691 * langhooks.h (struct lang_hooks_for_decls): Remove
16692 final_write_globals field.
16693 Add post_compilation_parsing_cleanups field.
16694 * passes.c (rest_of_decl_compilation): Call early_global_decl.
16695 * sdbout.c: Add early and late_global_decl hooks. Remove
16696 sdbout_global_decl hook.
16697 Add early_finish field for sdb_debug_hooks.
16698 (sdbout_global_decl): Remove.
16699 (sdbout_early_global_decl): New.
16700 (sdbout_late_global_decl): New.
16701 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
16702 * toplev.c (check_global_declaration): Rename from
16703 check_global_declaration_1.
16704 Adapt to use symtab infrastructure.
16705 (check_global_declarations): Remove.
16706 (emit_debug_global_declarations): Remove.
16707 (compile_file): Remove call to final_write_globals langhook.
16708 Run the actual compilation process.
16709 Perform any post compilation parser cleanups.
16710 Generate late debug info.
16711 * toplev.h (check_global_declaration): New.
16712 (check_global_declaration_1): Remove.
16713 (check_global_declarations): Remove.
16714 (write_global_declarations): Remove.
16715 (emit_debug_global_declarations): Remove.
16716 (global_decl_processing): New.
16717 * tree-core.h (struct tree_block): Add DIE field.
16718 * tree.h (BLOCK_DIE): New.
16719 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
16721 (vmsdbgout_early_global_decl): New.
16722 (vmsdbgout_late_global_decl): New.
16723 Add early_finish debug hook field to vmsdbg_debug_hooks.
16724 Remove vmsdbgout_decl to vmsdbgout_function_decl.
16725 Add early and late_global_decl debug hooks.
16727 2015-06-05 Julian Brown <julian@codesourcery.com>
16728 Sandra Loosemore <sandra@codesourcery.com>
16730 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
16731 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
16732 to print-sysroot-suffix.sh script.
16734 2015-06-05 Tom de Vries <tom@codesourcery.com>
16736 merge from gomp4 branch:
16737 2015-05-28 Tom de Vries <tom@codesourcery.com>
16739 PR tree-optimization/65443
16740 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
16741 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
16742 (try_transform_to_exit_first_loop_alt): New function.
16743 (transform_to_exit_first_loop): Use
16744 try_transform_to_exit_first_loop_alt.
16746 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
16748 * builtins.c (expand_builtin_atomic_compare_exchange): Call
16749 emit_cmp_and_jump_insns with the mode of target.
16751 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16753 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
16755 2015-06-04 DJ Delorie <dj@redhat.com>
16757 * config/msp430/msp430.md (movsi_s): New. Special case for
16758 storing a 20-bit symbol into a 32-bit register.
16759 * config/msp430/msp430.c (msp430_subreg): Add support for it.
16760 * config/msp430/predicates.md (msp430_symbol_operand): New.
16762 2015-06-04 Sriraman Tallam <tmsriram@google.com>
16764 * c-family/c-common.c (noplt): New attribute.
16765 (handle_noplt_attribute): New handler.
16766 * calls.c (prepare_call_address): Check for noplt
16768 * config/i386/i386.c (ix86_expand_call): Check
16769 for noplt attribute.
16770 (ix86_nopic_noplt_attribute_p): New function.
16771 (ix86_output_call_insn): Output indirect call for non-pic
16773 * doc/extend.texi (noplt): Document new attribute.
16774 * doc/invoke.texi: Document new attribute.
16776 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
16778 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
16779 real.h, and fixed-value.h when included in host source files.
16780 * double-int.h: Remove redundant #includes listed above.
16781 * fixed-value.h: Likewise.
16782 * real.h: Likewise.
16783 * wide-int.h: Likewise.
16784 * inchash.h: Likewise.
16785 * rtl.h: Add some include files When included from a generator file.
16786 * target.h: Remove wide-int.h and insn-modes.h from the include list.
16787 * internal-fn.h: Don't include coretypes.h.
16788 * alias.c: Adjust includes for restructured coretypes.h.
16789 * asan.c: Likewise.
16790 * attribs.c: Likewise.
16791 * auto-inc-dec.c: Likewise.
16792 * auto-profile.c: Likewise.
16793 * bb-reorder.c: Likewise.
16794 * bt-load.c: Likewise.
16795 * builtins.c: Likewise.
16796 * caller-save.c: Likewise.
16797 * calls.c: Likewise.
16798 * ccmp.c: Likewise.
16800 * cfganal.c: Likewise.
16801 * cfgbuild.c: Likewise.
16802 * cfgcleanup.c: Likewise.
16803 * cfgexpand.c: Likewise.
16804 * cfghooks.c: Likewise.
16805 * cfgloop.c: Likewise.
16806 * cfgloop.h: Likewise.
16807 * cfgloopanal.c: Likewise.
16808 * cfgloopmanip.c: Likewise.
16809 * cfgrtl.c: Likewise.
16810 * cgraph.c: Likewise.
16811 * cgraphbuild.c: Likewise.
16812 * cgraphclones.c: Likewise.
16813 * cgraphunit.c: Likewise.
16814 * cilk-common.c: Likewise.
16815 * combine-stack-adj.c: Likewise.
16816 * combine.c: Likewise.
16817 * compare-elim.c: Likewise.
16818 * convert.c: Likewise.
16819 * coverage.c: Likewise.
16820 * cppbuiltin.c: Likewise.
16821 * cprop.c: Likewise.
16823 * cselib.c: Likewise.
16824 * data-streamer-in.c: Likewise.
16825 * data-streamer-out.c: Likewise.
16826 * data-streamer.c: Likewise.
16827 * dbxout.c: Likewise.
16830 * debug.c: Likewise.
16831 * df-core.c: Likewise.
16832 * df-problems.c: Likewise.
16833 * df-scan.c: Likewise.
16836 * dojump.c: Likewise.
16837 * dominance.c: Likewise.
16838 * domwalk.c: Likewise.
16839 * double-int.c: Likewise.
16841 * dumpfile.c: Likewise.
16842 * dwarf2asm.c: Likewise.
16843 * dwarf2cfi.c: Likewise.
16844 * dwarf2out.c: Likewise.
16845 * dwarf2out.h: Likewise.
16846 * emit-rtl.c: Likewise.
16847 * et-forest.c: Likewise.
16848 * except.c: Likewise.
16849 * explow.c: Likewise.
16850 * expmed.c: Likewise.
16851 * expr.c: Likewise.
16852 * final.c: Likewise.
16853 * fixed-value.c: Likewise.
16854 * fold-const.c: Likewise.
16855 * function.c: Likewise.
16856 * fwprop.c: Likewise.
16857 * gcc-plugin.h: Likewise.
16858 * gcse.c: Likewise.
16859 * generic-match-head.c: Likewise.
16860 * ggc-page.c: Likewise.
16861 * gimple-builder.c: Likewise.
16862 * gimple-expr.c: Likewise.
16863 * gimple-fold.c: Likewise.
16864 * gimple-iterator.c: Likewise.
16865 * gimple-low.c: Likewise.
16866 * gimple-match-head.c: Likewise.
16867 * gimple-pretty-print.c: Likewise.
16868 * gimple-ssa-isolate-paths.c: Likewise.
16869 * gimple-ssa-strength-reduction.c: Likewise.
16870 * gimple-streamer-in.c: Likewise.
16871 * gimple-streamer-out.c: Likewise.
16872 * gimple-streamer.h: Likewise.
16873 * gimple-walk.c: Likewise.
16874 * gimple.c: Likewise.
16875 * gimplify-me.c: Likewise.
16876 * gimplify.c: Likewise.
16877 * godump.c: Likewise.
16878 * graph.c: Likewise.
16879 * graphite-blocking.c: Likewise.
16880 * graphite-dependences.c: Likewise.
16881 * graphite-interchange.c: Likewise.
16882 * graphite-isl-ast-to-gimple.c: Likewise.
16883 * graphite-optimize-isl.c: Likewise.
16884 * graphite-poly.c: Likewise.
16885 * graphite-scop-detection.c: Likewise.
16886 * graphite-sese-to-poly.c: Likewise.
16887 * graphite.c: Likewise.
16888 * haifa-sched.c: Likewise.
16889 * hooks.h: Likewise.
16890 * hw-doloop.c: Likewise.
16891 * ifcvt.c: Likewise.
16892 * incpath.c: Likewise.
16893 * init-regs.c: Likewise.
16894 * internal-fn.c: Likewise.
16895 * ipa-chkp.c: Likewise.
16896 * ipa-comdats.c: Likewise.
16897 * ipa-cp.c: Likewise.
16898 * ipa-devirt.c: Likewise.
16899 * ipa-icf-gimple.c: Likewise.
16900 * ipa-icf.c: Likewise.
16901 * ipa-inline-analysis.c: Likewise.
16902 * ipa-inline-transform.c: Likewise.
16903 * ipa-inline.c: Likewise.
16904 * ipa-polymorphic-call.c: Likewise.
16905 * ipa-profile.c: Likewise.
16906 * ipa-prop.c: Likewise.
16907 * ipa-pure-const.c: Likewise.
16908 * ipa-ref.c: Likewise.
16909 * ipa-reference.c: Likewise.
16910 * ipa-split.c: Likewise.
16911 * ipa-utils.c: Likewise.
16912 * ipa-visibility.c: Likewise.
16914 * ira-build.c: Likewise.
16915 * ira-color.c: Likewise.
16916 * ira-conflicts.c: Likewise.
16917 * ira-costs.c: Likewise.
16918 * ira-emit.c: Likewise.
16919 * ira-lives.c: Likewise.
16921 * jump.c: Likewise.
16922 * langhooks.c: Likewise.
16924 * loop-doloop.c: Likewise.
16925 * loop-init.c: Likewise.
16926 * loop-invariant.c: Likewise.
16927 * loop-iv.c: Likewise.
16928 * loop-unroll.c: Likewise.
16929 * lower-subreg.c: Likewise.
16930 * lra-assigns.c: Likewise.
16931 * lra-coalesce.c: Likewise.
16932 * lra-constraints.c: Likewise.
16933 * lra-eliminations.c: Likewise.
16934 * lra-lives.c: Likewise.
16935 * lra-remat.c: Likewise.
16936 * lra-spills.c: Likewise.
16938 * lto-cgraph.c: Likewise.
16939 * lto-compress.c: Likewise.
16940 * lto-opts.c: Likewise.
16941 * lto-section-in.c: Likewise.
16942 * lto-section-out.c: Likewise.
16943 * lto-streamer-in.c: Likewise.
16944 * lto-streamer-out.c: Likewise.
16945 * lto-streamer.c: Likewise.
16947 * mode-switching.c: Likewise.
16948 * modulo-sched.c: Likewise.
16949 * omega.c: Likewise.
16950 * omp-low.c: Likewise.
16951 * optabs.c: Likewise.
16952 * opts-global.c: Likewise.
16953 * passes.c: Likewise.
16954 * plugin.c: Likewise.
16955 * postreload-gcse.c: Likewise.
16956 * postreload.c: Likewise.
16957 * predict.c: Likewise.
16958 * print-rtl.c: Likewise.
16959 * print-tree.c: Likewise.
16960 * profile.c: Likewise.
16961 * real.c: Likewise.
16962 * realmpfr.c: Likewise.
16963 * realmpfr.h: Likewise.
16964 * recog.c: Likewise.
16966 * reg-stack.c: Likewise.
16967 * regcprop.c: Likewise.
16968 * reginfo.c: Likewise.
16969 * regrename.c: Likewise.
16970 * regs.h: Likewise.
16971 * regstat.c: Likewise.
16972 * reload.c: Likewise.
16973 * reload1.c: Likewise.
16974 * reorg.c: Likewise.
16975 * resource.c: Likewise.
16976 * rtl-chkp.c: Likewise.
16977 * rtlanal.c: Likewise.
16978 * rtlhooks.c: Likewise.
16979 * sanopt.c: Likewise.
16980 * sched-deps.c: Likewise.
16981 * sched-ebb.c: Likewise.
16982 * sched-rgn.c: Likewise.
16983 * sched-vis.c: Likewise.
16984 * sdbout.c: Likewise.
16985 * sel-sched-dump.c: Likewise.
16986 * sel-sched-ir.c: Likewise.
16987 * sel-sched.c: Likewise.
16988 * sese.c: Likewise.
16989 * shrink-wrap.c: Likewise.
16990 * shrink-wrap.h: Likewise.
16991 * simplify-rtx.c: Likewise.
16992 * stack-ptr-mod.c: Likewise.
16993 * statistics.c: Likewise.
16994 * stmt.c: Likewise.
16995 * stor-layout.c: Likewise.
16996 * store-motion.c: Likewise.
16997 * stringpool.c: Likewise.
16998 * symtab.c: Likewise.
16999 * target-globals.c: Likewise.
17000 * targhooks.c: Likewise.
17001 * toplev.c: Likewise.
17002 * tracer.c: Likewise.
17003 * trans-mem.c: Likewise.
17004 * tree-affine.c: Likewise.
17005 * tree-affine.h: Likewise.
17006 * tree-browser.c: Likewise.
17007 * tree-call-cdce.c: Likewise.
17008 * tree-cfg.c: Likewise.
17009 * tree-cfgcleanup.c: Likewise.
17010 * tree-chkp-opt.c: Likewise.
17011 * tree-chkp.c: Likewise.
17012 * tree-chrec.c: Likewise.
17013 * tree-complex.c: Likewise.
17014 * tree-data-ref.c: Likewise.
17015 * tree-dfa.c: Likewise.
17016 * tree-diagnostic.c: Likewise.
17017 * tree-dump.c: Likewise.
17018 * tree-eh.c: Likewise.
17019 * tree-emutls.c: Likewise.
17020 * tree-if-conv.c: Likewise.
17021 * tree-inline.c: Likewise.
17022 * tree-into-ssa.c: Likewise.
17023 * tree-iterator.c: Likewise.
17024 * tree-loop-distribution.c: Likewise.
17025 * tree-nested.c: Likewise.
17026 * tree-nrv.c: Likewise.
17027 * tree-object-size.c: Likewise.
17028 * tree-outof-ssa.c: Likewise.
17029 * tree-parloops.c: Likewise.
17030 * tree-phinodes.c: Likewise.
17031 * tree-predcom.c: Likewise.
17032 * tree-pretty-print.c: Likewise.
17033 * tree-pretty-print.h: Likewise.
17034 * tree-profile.c: Likewise.
17035 * tree-scalar-evolution.c: Likewise.
17036 * tree-sra.c: Likewise.
17037 * tree-ssa-address.c: Likewise.
17038 * tree-ssa-alias.c: Likewise.
17039 * tree-ssa-ccp.c: Likewise.
17040 * tree-ssa-coalesce.c: Likewise.
17041 * tree-ssa-copy.c: Likewise.
17042 * tree-ssa-copyrename.c: Likewise.
17043 * tree-ssa-dce.c: Likewise.
17044 * tree-ssa-dom.c: Likewise.
17045 * tree-ssa-dse.c: Likewise.
17046 * tree-ssa-forwprop.c: Likewise.
17047 * tree-ssa-ifcombine.c: Likewise.
17048 * tree-ssa-live.c: Likewise.
17049 * tree-ssa-loop-ch.c: Likewise.
17050 * tree-ssa-loop-im.c: Likewise.
17051 * tree-ssa-loop-ivcanon.c: Likewise.
17052 * tree-ssa-loop-ivopts.c: Likewise.
17053 * tree-ssa-loop-manip.c: Likewise.
17054 * tree-ssa-loop-niter.c: Likewise.
17055 * tree-ssa-loop-prefetch.c: Likewise.
17056 * tree-ssa-loop-unswitch.c: Likewise.
17057 * tree-ssa-loop.c: Likewise.
17058 * tree-ssa-loop.h: Likewise.
17059 * tree-ssa-math-opts.c: Likewise.
17060 * tree-ssa-operands.c: Likewise.
17061 * tree-ssa-phiopt.c: Likewise.
17062 * tree-ssa-phiprop.c: Likewise.
17063 * tree-ssa-pre.c: Likewise.
17064 * tree-ssa-propagate.c: Likewise.
17065 * tree-ssa-reassoc.c: Likewise.
17066 * tree-ssa-sccvn.c: Likewise.
17067 * tree-ssa-scopedtables.c: Likewise.
17068 * tree-ssa-sink.c: Likewise.
17069 * tree-ssa-strlen.c: Likewise.
17070 * tree-ssa-structalias.c: Likewise.
17071 * tree-ssa-tail-merge.c: Likewise.
17072 * tree-ssa-ter.c: Likewise.
17073 * tree-ssa-threadedge.c: Likewise.
17074 * tree-ssa-threadupdate.c: Likewise.
17075 * tree-ssa-uncprop.c: Likewise.
17076 * tree-ssa-uninit.c: Likewise.
17077 * tree-ssa.c: Likewise.
17078 * tree-ssanames.c: Likewise.
17079 * tree-stdarg.c: Likewise.
17080 * tree-streamer-in.c: Likewise.
17081 * tree-streamer-out.c: Likewise.
17082 * tree-streamer.c: Likewise.
17083 * tree-switch-conversion.c: Likewise.
17084 * tree-tailcall.c: Likewise.
17085 * tree-vect-data-refs.c: Likewise.
17086 * tree-vect-generic.c: Likewise.
17087 * tree-vect-loop-manip.c: Likewise.
17088 * tree-vect-loop.c: Likewise.
17089 * tree-vect-patterns.c: Likewise.
17090 * tree-vect-slp.c: Likewise.
17091 * tree-vect-stmts.c: Likewise.
17092 * tree-vectorizer.c: Likewise.
17093 * tree-vrp.c: Likewise.
17094 * tree.c: Likewise.
17095 * tsan.c: Likewise.
17096 * ubsan.c: Likewise.
17097 * valtrack.c: Likewise.
17098 * value-prof.c: Likewise.
17099 * var-tracking.c: Likewise.
17100 * varasm.c: Likewise.
17101 * varpool.c: Likewise.
17102 * vmsdbgout.c: Likewise.
17103 * vtable-verify.c: Likewise.
17105 * wide-int-print.cc: Likewise.
17106 * wide-int-print.h: Likewise.
17107 * wide-int.cc: Likewise.
17108 * xcoffout.c: Likewise.
17109 * config/aarch64/aarch64-builtins.c: Likewise.
17110 * config/aarch64/aarch64.c: Likewise.
17111 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17112 * config/alpha/alpha.c: Likewise.
17113 * config/arc/arc.c: Likewise.
17114 * config/arm/aarch-common.c: Likewise.
17115 * config/arm/arm-builtins.c: Likewise.
17116 * config/arm/arm-c.c: Likewise.
17117 * config/arm/arm.c: Likewise.
17118 * config/avr/avr-c.c: Likewise.
17119 * config/avr/avr-log.c: Likewise.
17120 * config/avr/avr.c: Likewise.
17121 * config/bfin/bfin.c: Likewise.
17122 * config/c6x/c6x.c: Likewise.
17123 * config/cr16/cr16.c: Likewise.
17124 * config/cris/cris.c: Likewise.
17125 * config/darwin-c.c: Likewise.
17126 * config/darwin.c: Likewise.
17127 * config/default-c.c: Likewise.
17128 * config/epiphany/epiphany.c: Likewise.
17129 * config/epiphany/mode-switch-use.c: Likewise.
17130 * config/epiphany/resolve-sw-modes.c: Likewise.
17131 * config/fr30/fr30.c: Likewise.
17132 * config/frv/frv.c: Likewise.
17133 * config/ft32/ft32.c: Likewise.
17134 * config/glibc-c.c: Likewise.
17135 * config/h8300/h8300.c: Likewise.
17136 * config/i386/i386-c.c: Likewise.
17137 * config/i386/i386.c: Likewise.
17138 * config/i386/msformat-c.c: Likewise.
17139 * config/i386/winnt-cxx.c: Likewise.
17140 * config/i386/winnt-stubs.c: Likewise.
17141 * config/i386/winnt.c: Likewise.
17142 * config/ia64/ia64-c.c: Likewise.
17143 * config/ia64/ia64.c: Likewise.
17144 * config/iq2000/iq2000.c: Likewise.
17145 * config/lm32/lm32.c: Likewise.
17146 * config/m32c/m32c-pragma.c: Likewise.
17147 * config/m32c/m32c.c: Likewise.
17148 * config/m32r/m32r.c: Likewise.
17149 * config/m68k/m68k.c: Likewise.
17150 * config/mcore/mcore.c: Likewise.
17151 * config/mep/mep-pragma.c: Likewise.
17152 * config/mep/mep.c: Likewise.
17153 * config/microblaze/microblaze-c.c: Likewise.
17154 * config/microblaze/microblaze.c: Likewise.
17155 * config/mips/mips.c: Likewise.
17156 * config/mmix/mmix.c: Likewise.
17157 * config/mn10300/mn10300.c: Likewise.
17158 * config/moxie/moxie.c: Likewise.
17159 * config/msp430/msp430-c.c: Likewise.
17160 * config/msp430/msp430.c: Likewise.
17161 * config/nds32/nds32-cost.c: Likewise.
17162 * config/nds32/nds32-fp-as-gp.c: Likewise.
17163 * config/nds32/nds32-intrinsic.c: Likewise.
17164 * config/nds32/nds32-isr.c: Likewise.
17165 * config/nds32/nds32-md-auxiliary.c: Likewise.
17166 * config/nds32/nds32-memory-manipulation.c: Likewise.
17167 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17168 * config/nds32/nds32-predicates.c: Likewise.
17169 * config/nds32/nds32.c: Likewise.
17170 * config/nios2/nios2.c: Likewise.
17171 * config/nvptx/nvptx.c: Likewise.
17172 * config/pa/pa.c: Likewise.
17173 * config/pdp11/pdp11.c: Likewise.
17174 * config/rl78/rl78-c.c: Likewise.
17175 * config/rl78/rl78.c: Likewise.
17176 * config/rs6000/rs6000-c.c: Likewise.
17177 * config/rs6000/rs6000.c: Likewise.
17178 * config/rx/rx.c: Likewise.
17179 * config/s390/s390-c.c: Likewise.
17180 * config/s390/s390.c: Likewise.
17181 * config/sh/sh-c.c: Likewise.
17182 * config/sh/sh-mem.cc: Likewise.
17183 * config/sh/sh.c: Likewise.
17184 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17185 * config/sh/sh_treg_combine.cc: Likewise.
17186 * config/sol2-c.c: Likewise.
17187 * config/sol2-cxx.c: Likewise.
17188 * config/sol2-stubs.c: Likewise.
17189 * config/sol2.c: Likewise.
17190 * config/sparc/sparc-c.c: Likewise.
17191 * config/sparc/sparc.c: Likewise.
17192 * config/spu/spu-c.c: Likewise.
17193 * config/spu/spu.c: Likewise.
17194 * config/stormy16/stormy16.c: Likewise.
17195 * config/tilegx/mul-tables.c: Likewise.
17196 * config/tilegx/tilegx-c.c: Likewise.
17197 * config/tilegx/tilegx.c: Likewise.
17198 * config/tilepro/mul-tables.c: Likewise.
17199 * config/tilepro/tilepro-c.c: Likewise.
17200 * config/tilepro/tilepro.c: Likewise.
17201 * config/v850/v850-c.c: Likewise.
17202 * config/v850/v850.c: Likewise.
17203 * config/vax/vax.c: Likewise.
17204 * config/visium/visium.c: Likewise.
17205 * config/vms/vms-c.c: Likewise.
17206 * config/vms/vms.c: Likewise.
17207 * config/vxworks.c: Likewise.
17208 * config/winnt-c.c: Likewise.
17209 * config/xtensa/xtensa.c: Likewise.
17210 * common/config/bfin/bfin-common.c: Likewise.
17212 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
17214 * tree.h (tree_code_for_canonical_type_merging): New function.
17215 * tree.c (gimple_canonical_types_compatible_p): Use
17216 tree_code_for_canonical_type_merging..
17218 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17222 * doc/tm.texi: Regenerate.
17223 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
17224 * target.def (TARGET_RELAXED_ORDERING): Likewise.
17225 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
17226 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
17227 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
17228 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
17229 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
17230 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
17231 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
17233 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17235 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
17236 register fma steering pass.
17237 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
17238 AARCH64_TUNE_FMA_STEERING.
17240 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
17242 * tree.c (verify_type_variant): Verify that type and variant is
17244 (gimple_canonical_types_compatible_p): Look for main variants.
17246 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17248 * config.gcc (powerpc*-*-*): Add support for a new configure
17249 option --with-advance-toolchain=<xxx> which overrides using the
17250 default header files, libraries and dynamic linker.
17252 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
17253 specs to support the configure --with-advance-toolchain=<xxx>
17255 (INCLUDE_EXTRA_SPEC): Likewise.
17256 (LINK_OS_EXTRA_SPEC32): Likewise.
17257 (LINK_OK_EXTRA_SPEC64): Likewise.
17258 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
17259 (DYNAMIC_LINKER_PREFIX): Likewise.
17260 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
17262 (GLIBC_DYNAMIC_LINKER32): Likewise.
17263 (GLIBC_DYNAMIC_LINKER64): Likewise.
17264 (LINK_OS_LINUX_SPEC32): Likewise.
17265 (LINK_OS_LINUX_SPEC64): Likewise.
17267 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
17268 configuration option.
17270 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
17273 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
17274 to determine current function ABI.
17275 (ix86_function_value_regno_p): Ditto.
17277 2015-06-03 Martin Liska <mliska@suse.cz>
17279 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
17280 * bitmap.h (struct bitmap_usage): Likewise.
17281 * ggc-common.c (struct ggc_usage): Likewise.
17282 * mem-stats.h (struct mem_location): Likewise.
17283 (struct mem_usage): Likewise.
17284 * vec.c (struct vec_usage): Likewise.
17286 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
17288 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
17291 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
17293 * doc/plugins.texi (enum plugin_event): New event.
17294 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
17295 and PLUGIN_FINISH_FUNCTION.
17296 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
17297 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
17299 2015-06-03 Richard Biener <rguenther@suse.de>
17301 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17302 compute GROUP_GAP for the first element.
17303 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
17306 2015-06-03 Nick Clifton <nickc@redhat.com>
17308 * config/rl78/rl78-real.md: Add peepholes to avoid a register
17309 copy when calling a function.
17310 * config/rl78/rl78.c (need_to_save): Do not push the frame
17311 pointer in an interrupt handler prologue if it is never used.
17313 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17315 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
17317 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
17319 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
17320 reference when cloning alias node.
17322 2015-06-03 Martin Liska <mliska@suse.cz>
17324 * alloc-pool.h (struct pool_usage): Correct space padding.
17325 * ggc-page.c (ggc_print_statistics): Align columns in a report.
17326 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
17327 * tree.c (dump_tree_statistics): Align columns in a report.
17329 2015-06-03 Martin Liska <mliska@suse.cz>
17331 * alloc-pool.c (allocate_pool_descriptor): Remove.
17332 (struct pool_output_info): Likewise.
17333 (print_alloc_pool_statistics): Likewise.
17334 (dump_alloc_pool_statistics): Likewise.
17335 * alloc-pool.h (struct pool_usage): New struct.
17336 (pool_allocator::initialize): Change usage of memory statistics
17337 to a new interface.
17338 (pool_allocator::release): Likewise.
17339 (pool_allocator::allocate): Likewise.
17340 (pool_allocator::remove): Likewise.
17341 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
17342 for a pool allocator.
17343 * mem-stats.h (struct mem_location): Add new ctor.
17344 (struct mem_usage): Add counter for number of
17346 (mem_alloc_description::register_descriptor): New overload of
17347 * mem-stats.h (mem_location::to_string): New function.
17348 * bitmap.h (struct bitmap_usage): Use this new function.
17349 * ggc-common.c (struct ggc_usage): Likewise.
17352 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
17354 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
17355 of GCC_INSN_FLAGS_H block.
17357 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17359 * explow.c (plus_constant): Update check after force_const_mem call
17360 to see if the value returned is not a NULL_RTX.
17362 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
17364 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
17365 remove instumentation thunks calling reachable functions.
17366 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
17367 * lto/lto-partition.c (privatize_symbol_name_1): New.
17368 (privatize_symbol_name): Privatize both decl and orig_decl
17369 names for instrumented functions.
17370 * cgraph.c (cgraph_node::verify_node): Add transparent
17371 alias chain check for instrumented node.
17373 2015-06-03 Marek Polacek <polacek@redhat.com>
17377 * tree.c (attribute_value_equal): Handle attribute format.
17378 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
17380 2015-06-03 Richard Biener <rguenther@suse.de>
17382 PR tree-optimization/63916
17383 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17384 Forward-propagate non-invariant addresses by splicing their
17385 reference ops if the result isn't going to be used by PRE.
17386 (vn_reference_lookup_3): Remove pointless assert.
17388 2015-06-03 Richard Biener <rguenther@suse.de>
17390 PR tree-optimization/66375
17391 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
17392 add to the evolution before following SSA edges.
17394 2015-06-03 Bin Cheng <bin.cheng@arm.com>
17396 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
17397 (dump_use, dump_cand, find_induction_variables): Pass new argument
17399 (record_use): Preserve the ssa name information in IV.
17401 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
17403 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
17405 (add_mode_tests): Don't add mode tests if the predicate only
17406 accepts scalar constant integers. Otherwise, allow the mode
17407 of "op" to be VOIDmode if the predicate does accept such integers.
17409 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
17412 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
17413 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
17414 (aarch64_secondary_reload): Likewise
17415 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
17417 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
17420 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
17421 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17424 * cprop.c (try_replace_reg): Check cost of constants before propagating.
17426 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17428 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
17429 provide access to the IBM extended double floating point mode if
17430 long double is IEEE 128-bit floating point.
17431 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
17432 point if long double is the IBM extended double type.
17434 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
17435 enable adding IEEE 128-bit floating point support.
17436 (-mfloat128-software): Likewise.
17437 (-mfloat128-sw): Likewise.
17439 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
17440 128-bit floating point types to occupy any register if
17441 -mlong-double-64. Do not allow use of IFmode/KFmode unless
17442 -mfloat128-software is enabled.
17443 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
17445 (rs6000_option_override_internal): Add -mfloat128-* support.
17446 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
17448 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
17449 and float128 type nodes.
17450 (ieee128_float_type_node): Likewise.
17451 (ibm128_float_type_node): Likewise.
17453 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
17456 * config/aarch64/geniterators.sh: Rewrite in awk.
17458 2015-06-02 Martin Liska <mliska@suse.cz>
17460 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
17461 values to avoid -Wmaybe-uninitialized errors.
17463 2015-06-02 Richard Biener <rguenther@suse.de>
17466 * dwarf2out.c (lookup_context_die): New function.
17467 (resolve_addr): Avoid forcing a full DIE for the
17468 target of a DW_TAG_GNU_call_site during late compilation.
17469 Instead create a stub DIE without a type if we have a
17470 context DIE present.
17472 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
17474 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
17476 2015-06-02 Bin Cheng <bin.cheng@arm.com>
17478 PR tree-optimization/48052
17479 * cfgloop.h (struct control_iv): New.
17480 (struct loop): New field control_ivs.
17481 * tree-ssa-loop-niter.c : Include "stor-layout.h".
17482 (number_of_iterations_lt): Set no_overflow information.
17483 (number_of_iterations_exit): Init control iv in niter struct.
17484 (record_control_iv): New.
17485 (estimate_numbers_of_iterations_loop): Call record_control_iv.
17486 (loop_exits_before_overflow): New. Interface factored out of
17487 scev_probably_wraps_p.
17488 (scev_probably_wraps_p): Factor loop niter related code into
17489 loop_exits_before_overflow.
17490 (free_numbers_of_iterations_estimates_loop): Free control ivs.
17491 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
17493 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
17495 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
17496 the target doesn't belong to the current function.
17498 2015-06-02 Marek Polacek <polacek@redhat.com>
17500 PR middle-end/66345
17501 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
17502 get_maxval_strlen does not produce an INTEGER_CST.
17504 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
17506 * config/arc/constraints.md: Use lower-case names in match_code.
17507 * config/mmix/constraints.md: Likewise.
17509 2015-06-02 Richard Biener <rguenther@suse.de>
17511 PR tree-optimization/65961
17512 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
17513 check and clarify dump message.
17514 (vect_build_slp_tree): If all children are built up from scalars
17515 build up the parent from scalars instead.
17516 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
17518 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
17521 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
17522 instead of print ... .
17524 2015-06-02 Alan Modra <amodra@gmail.com>
17526 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
17529 2015-06-02 Bin Cheng <bin.cheng@arm.com>
17531 PR tree-optimization/52563
17532 PR tree-optimization/62173
17533 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
17534 (alloc_iv, set_iv): New parameter.
17535 (determine_biv_step): Delete.
17536 (find_bivs): Inline original determine_biv_step. Pass new
17537 argument to set_iv.
17538 (idx_find_step): Use no_overflow information for conversion.
17539 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
17540 resolve_mixers handle folded_casts.
17541 (instantiate_scev_name): Change bool parameter to bool pointer.
17542 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
17543 (instantiate_array_ref, instantiate_scev_not): Ditto.
17544 (instantiate_scev_3, instantiate_scev_2): Ditto.
17545 (instantiate_scev_1, instantiate_scev_r): Ditto.
17546 (instantiate_scev_convert, ): Change parameter. Pass argument
17547 to chrec_convert_aggressive.
17548 (instantiate_scev): Change argument.
17549 (resolve_mixers): New parameter and set it.
17550 (scev_const_prop): New argument.
17551 * tree-scalar-evolution.h (resolve_mixers): New parameter.
17552 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
17554 (chrec_convert): New parameter. Move definition below.
17555 (chrec_convert_aggressive): New parameter and set it. Call
17556 convert_affine_scev.
17557 * tree-chrec.h (chrec_convert): New parameter.
17558 (chrec_convert_aggressive): Ditto.
17560 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
17562 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
17563 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
17564 the LHS of a no-return call if its type has variable size.
17565 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
17566 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
17568 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
17570 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
17571 * config.in: Regenerate.
17573 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17575 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
17576 consecutive accesses within outer-loop with force_vectorize
17577 for references with zero step in inner-loop.
17579 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
17581 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
17582 rather than from gcc/build directory.
17584 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
17587 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
17588 for __sync memory models, emit initial loads and final barriers as
17591 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
17594 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
17595 (aarch64_split_atomic_op): Check for __sync memory models, emit
17596 appropriate initial loads and final barriers.
17598 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
17600 * Makefile.in: Fix gcov dependencies that should
17601 not point to a build folder.
17603 2015-06-01 Richard Biener <rguenther@suse.de>
17606 2015-05-29 Richard Biener <rguenther@suse.de>
17608 PR tree-optimization/66314
17609 * tree-ssa-threadupdate.c (create_block_for_threading): Add
17610 parameter that says which loop the new block belongs to.
17611 (ssa_create_duplicates): Blocks duplicated for the threaded
17612 path belong to the loop of the thread destination.
17614 2015-06-01 Martin Liska <mliska@suse.cz>
17616 * sched-deps.c: Include pool-alloc.h before
17617 cselib.h header file is included.
17619 2015-06-01 Richard Biener <rguenther@suse.de>
17621 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
17624 2015-06-01 Martin Liska <mliska@suse.cz>
17626 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
17627 a function local variable.
17629 2015-06-01 Martin Liska <mliska@suse.cz>
17631 * alloc-pool.c (create_alloc_pool): Remove.
17632 (empty_alloc_pool): Likewise.
17633 (free_alloc_pool): Likewise.
17634 (free_alloc_pool_if_empty): Likewise.
17635 (pool_alloc): Likewise.
17636 (pool_free): Likewise.
17637 * alloc-pool.h: Remove old declarations.
17639 2015-06-01 Martin Liska <mliska@suse.cz>
17641 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
17642 (ira_create_object): Likewise.
17643 (ira_create_allocno): Likewise.
17644 (ira_create_live_range): Likewise.
17645 (copy_live_range): Likewise.
17646 (ira_finish_live_range): Likewise.
17647 (ira_free_allocno_costs): Likewise.
17648 (finish_allocno): Likewise.
17649 (finish_allocnos): Likewise.
17650 (initiate_prefs): Likewise.
17651 (ira_create_pref): Likewise.
17652 (finish_pref): Likewise.
17653 (finish_prefs): Likewise.
17654 (initiate_copies): Likewise.
17655 (ira_create_copy): Likewise.
17656 (finish_copy): Likewise.
17657 (finish_copies): Likewise.
17658 (finish_prefs): Likewise.
17660 2015-06-01 Martin Liska <mliska@suse.cz>
17662 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
17663 (allocate_and_init_ipcp_value): Likewise.
17664 (ipcp_lattice::add_value): Likewise.
17665 (merge_agg_lats_step): Likewise.
17666 (ipcp_driver): Likewise.
17667 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
17668 (ipa_free_all_structures_after_iinln): Likewise.
17669 * ipa-prop.h: Likewise.
17671 2015-06-01 Martin Liska <mliska@suse.cz>
17673 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
17675 (set_hint_predicate): Likewise.
17676 (inline_summary_alloc): Likewise.
17677 (reset_inline_edge_summary): Likewise.
17678 (reset_inline_summary): Likewise.
17679 (set_cond_stmt_execution_predicate): Likewise.
17680 (set_switch_stmt_execution_predicate): Likewise.
17681 (compute_bb_predicates): Likewise.
17682 (estimate_function_body_sizes): Likewise.
17683 (inline_free_summary): Likewise.
17685 2015-06-01 Martin Liska <mliska@suse.cz>
17687 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
17688 (ipa_edge_duplication_hook): Likewise.
17689 (ipa_free_all_structures_after_ipa_cp): Likewise.
17690 (ipa_free_all_structures_after_iinln): Likewise.
17692 2015-06-01 Martin Liska <mliska@suse.cz>
17694 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
17695 (ipa_profile_generate_summary): Likewise.
17696 (ipa_profile_read_summary): Likewise.
17697 (ipa_profile): Likewise.
17699 2015-06-01 Martin Liska <mliska@suse.cz>
17701 * tree-ssa-structalias.c (new_var_info): Use new type-based
17703 (new_constraint): Likewise.
17704 (init_alias_vars): Likewise.
17705 (delete_points_to_sets): Likewise.
17707 2015-06-01 Martin Liska <mliska@suse.cz>
17709 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
17710 (free_strinfo): Likewise.
17711 (pass_strlen::execute): Likewise.
17713 2015-06-01 Martin Liska <mliska@suse.cz>
17715 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
17717 (vn_reference_insert_pieces): Likewise.
17718 (vn_phi_insert): Likewise.
17719 (visit_reference_op_call): Likewise.
17720 (copy_phi): Likewise.
17721 (copy_reference): Likewise.
17722 (process_scc): Likewise.
17723 (allocate_vn_table): Likewise.
17724 (free_vn_table): Likewise.
17726 2015-06-01 Martin Liska <mliska@suse.cz>
17728 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
17730 (add_repeat_to_ops_vec): Likewise.
17731 (get_ops): Likewise.
17732 (maybe_optimize_range_tests): Likewise.
17733 (init_reassoc): Likewise.
17734 (fini_reassoc): Likewise.
17736 2015-06-01 Martin Liska <mliska@suse.cz>
17738 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
17740 (bitmap_set_new): Likewise.
17741 (get_or_alloc_expr_for_constant): Likewise.
17742 (get_or_alloc_expr_for): Likewise.
17743 (phi_translate_1): Likewise.
17744 (compute_avail): Likewise.
17745 (init_pre): Likewise.
17746 (fini_pre): Likewise.
17748 2015-06-01 Martin Liska <mliska@suse.cz>
17750 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
17751 (delete_dep_node): Likewise.
17752 (create_deps_list): Likewise.
17753 (free_deps_list): Likewise.
17754 (sched_deps_init): Likewise.
17755 (sched_deps_finish): Likewise.
17757 2015-06-01 Martin Liska <mliska@suse.cz>
17759 * regcprop.c (free_debug_insn_changes): Use new type-based
17761 (replace_oldest_value_reg): Likewise.
17762 (pass_cprop_hardreg::execute): Likewise.
17764 2015-06-01 Martin Liska <mliska@suse.cz>
17766 * ira-build.c (initiate_cost_vectors): Use new type-based
17768 (ira_allocate_cost_vector): Likewise.
17769 (ira_free_cost_vector): Likewise.
17770 (finish_cost_vectors): Likewise.
17772 2015-06-01 Martin Liska <mliska@suse.cz>
17774 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
17776 (free_sched_pools): Likewise.
17777 * sel-sched-ir.h (_list_alloc): Likewise.
17778 (_list_remove): Likewise.
17780 2015-06-01 Martin Liska <mliska@suse.cz>
17782 * stmt.c (add_case_node): Use new type-based pool allocator.
17783 (expand_case): Likewise.
17784 (expand_sjlj_dispatch_table): Likewise.
17786 2015-06-01 Martin Liska <mliska@suse.cz>
17788 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
17789 (free_bb): Likewise.
17790 (pass_cse_reciprocals::execute): Likewise.
17792 2015-06-01 Martin Liska <mliska@suse.cz>
17794 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
17795 (sra_deinitialize) Likewise.
17796 (create_access_1) Likewise.
17797 (build_accesses_from_assign) Likewise.
17798 (create_artificial_child_access) Likewise.
17800 2015-06-01 Martin Liska <mliska@suse.cz>
17802 * dse.c (get_group_info):Use new type-based pool allocator.
17803 (dse_step0) Likewise.
17804 (free_store_info) Likewise.
17805 (delete_dead_store_insn) Likewise.
17806 (free_read_records) Likewise.
17807 (record_store) Likewise.
17808 (replace_read) Likewise.
17809 (check_mem_read_rtx) Likewise.
17810 (scan_insn) Likewise.
17811 (dse_step1) Likewise.
17812 (dse_step7) Likewise.
17814 2015-06-01 Martin Liska <mliska@suse.cz>
17816 * df-scan.c (struct df_scan_problem_data):Use new type-based
17818 (df_scan_free_internal) Likewise.
17819 (df_scan_alloc) Likewise.
17820 (df_grow_reg_info) Likewise.
17821 (df_free_ref) Likewise.
17822 (df_insn_create_insn_record) Likewise.
17823 (df_mw_hardreg_chain_delete) Likewise.
17824 (df_insn_info_delete) Likewise.
17825 (df_free_collection_rec) Likewise.
17826 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
17827 (df_sort_and_compress_mws) Likewise.
17828 (df_ref_create_structure) Likewise.
17829 (df_ref_record) Likewise.
17831 2015-06-01 Martin Liska <mliska@suse.cz>
17833 * df-problems.c (df_chain_create):Use new type-based pool allocator.
17834 (df_chain_unlink_1) Likewise.
17835 (df_chain_unlink) Likewise.
17836 (df_chain_remove_problem) Likewise.
17837 (df_chain_alloc) Likewise.
17838 (df_chain_free) Likewise.
17839 * df.h (struct dataflow) Likewise.
17841 2015-06-01 Martin Liska <mliska@suse.cz>
17843 * cselib.c (new_elt_list):Use new type-based pool allocator.
17844 (new_elt_loc_list) Likewise.
17845 (unchain_one_elt_list) Likewise.
17846 (unchain_one_elt_loc_list) Likewise.
17847 (unchain_one_value) Likewise.
17848 (new_cselib_val) Likewise.
17849 (cselib_init) Likewise.
17850 (cselib_finish) Likewise.
17852 2015-06-01 Martin Liska <mliska@suse.cz>
17854 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
17855 (sh_reorg) Likewise.
17857 2015-06-01 Martin Liska <mliska@suse.cz>
17859 * cfg.c (initialize_original_copy_tables):Use new type-based
17861 (free_original_copy_tables) Likewise.
17862 (copy_original_table_clear) Likewise.
17863 (copy_original_table_set) Likewise.
17865 2015-06-01 Martin Liska <mliska@suse.cz>
17867 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
17869 (asan_mem_ref_new) Likewise.
17870 (free_mem_ref_resources) Likewise.
17872 2015-06-01 Martin Liska <mliska@suse.cz>
17874 * var-tracking.c (variable_htab_free):Use new type-based
17876 (attrs_list_clear) Likewise.
17877 (attrs_list_insert) Likewise.
17878 (attrs_list_copy) Likewise.
17879 (shared_hash_unshare) Likewise.
17880 (shared_hash_destroy) Likewise.
17881 (unshare_variable) Likewise.
17882 (var_reg_delete_and_set) Likewise.
17883 (var_reg_delete) Likewise.
17884 (var_regno_delete) Likewise.
17885 (drop_overlapping_mem_locs) Likewise.
17886 (variable_union) Likewise.
17887 (insert_into_intersection) Likewise.
17888 (canonicalize_values_star) Likewise.
17889 (variable_merge_over_cur) Likewise.
17890 (dataflow_set_merge) Likewise.
17891 (remove_duplicate_values) Likewise.
17892 (variable_post_merge_new_vals) Likewise.
17893 (dataflow_set_preserve_mem_locs) Likewise.
17894 (dataflow_set_remove_mem_locs) Likewise.
17895 (variable_from_dropped) Likewise.
17896 (variable_was_changed) Likewise.
17897 (set_slot_part) Likewise.
17898 (clobber_slot_part) Likewise.
17899 (delete_slot_part) Likewise.
17900 (loc_exp_insert_dep) Likewise.
17901 (notify_dependents_of_changed_value) Likewise.
17902 (emit_notes_for_differences_1) Likewise.
17903 (vt_emit_notes) Likewise.
17904 (vt_initialize) Likewise.
17905 (vt_finalize) Likewise.
17907 2015-06-01 Martin Liska <mliska@suse.cz>
17909 * ira-color.c (init_update_cost_records):Use new type-based
17911 (get_update_cost_record) Likewise.
17912 (free_update_cost_record_list) Likewise.
17913 (finish_update_cost_records) Likewise.
17914 (initiate_cost_update) Likewise.
17916 2015-06-01 Martin Liska <mliska@suse.cz>
17918 * lra.c (init_insn_regs): Use new type-based pool allocator.
17919 (new_insn_reg) Likewise.
17920 (free_insn_reg) Likewise.
17921 (free_insn_regs) Likewise.
17922 (finish_insn_regs) Likewise.
17923 (init_insn_recog_data) Likewise.
17924 (init_reg_info) Likewise.
17925 (finish_reg_info) Likewise.
17926 (lra_free_copies) Likewise.
17927 (lra_create_copy) Likewise.
17928 (invalidate_insn_data_regno_info) Likewise.
17930 2015-06-01 Martin Liska <mliska@suse.cz>
17932 * lra-lives.c (free_live_range): Use new type-based pool allocator.
17933 (free_live_range_list) Likewise.
17934 (create_live_range) Likewise.
17935 (copy_live_range) Likewise.
17936 (lra_merge_live_ranges) Likewise.
17937 (remove_some_program_points_and_update_live_ranges) Likewise.
17938 (lra_live_ranges_init) Likewise.
17939 (lra_live_ranges_finish) Likewise.
17941 2015-06-01 Martin Liska <mliska@suse.cz>
17943 * et-forest.c (et_new_occ): Use new type-based pool allocator.
17944 (et_new_tree): Likewise.
17945 (et_free_tree): Likewise.
17946 (et_free_tree_force): Likewise.
17947 (et_free_pools): Likewise.
17948 (et_split): Likewise.
17950 2015-06-01 Martin Liska <mliska@suse.cz>
17952 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
17954 * alloc-pool.h (pool_allocator::pool_allocator): New function.
17955 (pool_allocator::release): Likewise.
17956 (inline pool_allocator::release_if_empty): Likewise.
17957 (inline pool_allocator::~pool_allocator): Likewise.
17958 (pool_allocator::allocate): Likewise.
17959 (pool_allocator::remove): Likewise.
17961 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
17963 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
17966 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
17968 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
17970 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
17971 (arm_macro_fusion_p): Likewise.
17972 (arm_macro_fusion_pair_p): Likewise.
17974 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
17976 * config/aarch64/aarch64-protos.h (tune_params): Rename
17977 fuseable_ops to fusible_ops.
17978 * config/aarch64/aarch64.c (generic_tunings): Rename
17979 fuseable_ops to fusible_ops.
17980 (cortexa53_tunings): Likewise.
17981 (cortexa57_tunings): Likewise.
17982 (thunderx_tunings): Likewise.
17983 (xgene1_tunings): Likewise.
17984 (aarch64_macro_fusion_p): Likewise.
17985 (aarch64_macro_fusion_pair_p): Likewise.
17987 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
17989 * config/s390/driver-native.c: New file.
17990 * config/s390/x-native: New file.
17991 * config.host: Add new files for s390.
17992 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
17994 * config.gcc: Likewise.
17995 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
17996 * config/s390/s390-opts.h (enum processor_type): Ditto.
17997 * config/s390/s390.c (s390_option_override): Catch unhandled
18000 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
18003 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
18004 redirection for instrumented calls.
18005 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
18006 (append_compiler_options): Append -fcheck-pointer-bounds.
18007 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
18008 (chkp_redirect_edge): New.
18009 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
18010 (chkp_redirect_edge): New.
18012 2015-06-01 Richard Biener <rguenther@suse.de>
18014 PR tree-optimization/66280
18015 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
18018 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18020 * config/aarch64/aarch64.md
18021 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
18024 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
18026 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
18027 Remove obsolete kludge.
18029 2015-06-01 Richard Biener <rguenther@suse.de>
18031 * tree-ssa-reassoc.c (get_rank): Simplify.
18033 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
18035 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
18036 * configure: Regenerated.
18038 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
18040 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
18041 issue (add space between string literal and macro).
18042 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
18044 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
18046 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
18047 implict or explicit -fPIE or -fpie.
18049 2015-05-30 Mike Frysinger <vapier@gentoo.org>
18051 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
18053 2015-05-28 DJ Delorie <dj@redhat.com>
18055 * expmed.c (extract_bit_field_1): Avoid clobbering a
18056 yet-to-be-used base/index register.
18058 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
18060 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
18061 (alias_stats): Add num_universal.
18062 (alias_set_subset_of): Special case pointers; be ready for NULL
18064 (alias_sets_conflict_p): Special case pointers; be ready for NULL
18066 (init_alias_set_entry): Break out from ...
18067 (record_alias_subset): ... here; propagate new fields;
18068 allocate children only when really needed.
18069 (get_alias_set): Do less generous pointer globbing.
18070 (dump_alias_stats_in_alias_c): Update statistics.
18072 2015-05-30 Alan Modra <amodra@gmail.com>
18074 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
18075 correct block for use of r12.
18076 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
18078 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18081 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
18084 2015-05-29 Jakub Jelinek <jakub@redhat.com>
18086 PR tree-optimization/66142
18087 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
18088 virtual phis that feed themselves.
18090 2015-05-29 Richard Biener <rguenther@suse.de>
18092 PR tree-optimization/66314
18093 * tree-ssa-threadupdate.c (create_block_for_threading): Add
18094 parameter that says which loop the new block belongs to.
18095 (ssa_create_duplicates): Blocks duplicated for the threaded
18096 path belong to the loop of the thread destination.
18098 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18100 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
18101 to cleanup-saved-temps.
18102 * doc/sourcebuild.texi (Clean up generated test files): Expand
18104 (dg-keep-saved-temps): Document new proc.
18105 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
18106 cleanup-saved-temps): Remove.
18108 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
18110 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
18111 gcc_AC_CHECK_DECLS.
18112 * configure: Regenerate.
18114 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18116 * config/nios2/linux.h (CPP_SPEC): Define.
18118 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18120 * config/microblaze/linux.h (CPP_SPEC): Define.
18122 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18124 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
18125 -pthread is specified.
18127 2015-05-28 Richard Biener <rguenther@suse.de>
18129 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
18130 (vect_fixup_scalar_cycles_with_patterns): Likewise.
18131 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
18132 after pattern recog.
18133 (vect_create_epilog_for_reduction): Properly handle reductions
18135 (vectorizable_reduction): Likewise.
18136 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
18138 (vect_get_constant_vectors): Create the correct number of
18139 initial values for reductions.
18140 (vect_schedule_slp_instance): Handle reduction chains that are
18141 type changing properly.
18142 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
18144 2015-05-28 Richard Biener <rguenther@suse.de>
18146 PR tree-optimization/66142
18147 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
18148 values better in memcpy destination handling. Handle non-aliasing
18151 2015-05-28 Lawrence Velázquez <vq@larryv.me>
18154 * config/darwin-c.c (version_components): New global enum.
18155 (parse_version, version_as_legacy_macro)
18156 (version_as_modern_macro, macosx_version_as_macro): New functions.
18157 (version_as_macro): Remove.
18158 (darwin_cpp_builtins): Use new function.
18160 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
18162 * builtins.c (expand_builtin_acc_on_device): Mark parameters
18163 with ATTRIBUTE_UNUSED.
18165 2015-05-28 Julian Brown <julian@codesourcery.com>
18169 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
18170 sequence for !ACCEL_COMPILER.
18172 2015-05-28 Nick Clifton <nickc@redhat.com>
18174 * config/rx/rx.c (push_regs): New function. Extracts code from...
18175 (rx_expand_prologue): ... here. Use push_regs to push even small
18176 spans of registers.
18177 (pop_regs): New function.
18178 (rx_expand_epilogue): Use pop_regs to pop even small spans of
18181 2015-05-28 Richard Biener <rguenther@suse.de>
18183 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
18185 (SLP_INSTANCE_BODY_COST_VEC): Remove.
18186 (vect_update_slp_costs_according_to_vf): Likewise.
18187 (vect_slp_analyze_operations): Update prototype.
18188 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
18189 vect_update_slp_costs_according_to_vf, adjust.
18190 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
18191 (vect_analyze_slp_cost_1): Likewise.
18192 (vect_analyze_slp_cost): Likewise. Properly deal with
18193 widening reduction ops. Commit body costs.
18194 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
18195 cost for loops from here.
18196 (vect_slp_analyze_operations): But do it from here when
18197 the vectorization factor is known and stmts are analyzed.
18198 (vect_bb_vectorization_profitable_p): Simplify.
18199 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
18200 (vect_update_slp_costs_according_to_vf): Remove.
18202 2015-05-27 Magnus Granberg <zorry@gentoo.org>
18203 H.J. Lu <hongjiu.lu@intel.com>
18205 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
18206 (BUILD_CFLAGS): Likewise.
18207 (BUILD_CXXFLAGS): Likewise.
18208 (LINKER): Add @NO_PIE_FLAG@.
18209 (BUILD_LDFLAGS): Likewise.
18210 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
18211 --enable-default-pie.
18212 * common.opt (fPIE): Initialize to -1.
18214 (no-pie): New option.
18215 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
18216 * configure.ac: Add --enable-default-pie.
18217 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
18218 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
18219 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
18220 * gcc.c (NO_PIE_SPEC): New.
18221 (PIE_SPEC): Likewise.
18222 (NO_FPIE1_SPEC): Likewise.
18223 (FPIE1_SPEC): Likewise.
18224 (NO_FPIE2_SPEC): Likewise.
18225 (FPIE2_SPEC): Likewise.
18226 (NO_FPIE2_SPEC): Likewise.
18227 (FPIE_SPEC): Likewise.
18228 (NO_FPIE_SPEC): Likewise.
18229 (NO_FPIC1_SPEC): Likewise.
18230 (FPIC1_SPEC): Likewise.
18231 (NO_FPIC2_SPEC): Likewise.
18232 (FPIC2_SPEC): Likewise.
18233 (NO_FPIC2_SPEC): Likewise.
18234 (FPIC_SPEC): Likewise.
18235 (NO_FPIC_SPEC): Likewise.
18236 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
18237 (FPIE1_OR_FPIC1_SPEC): Likewise.
18238 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
18239 (FPIE2_OR_FPIC2_SPEC): Likewise.
18240 (NO_FPIE_AND_FPIC_SPEC): Likewise.
18241 (FPIE_OR_FPIC_SPEC): Likewise.
18242 (LD_PIE_SPEC): Likewise.
18243 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
18244 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
18245 * config/darwin.h (PIE_SPEC): Renamed to ...
18246 (DARWIN_PIE_SPEC): This.
18247 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
18248 * config/darwin9.h (PIE_SPEC): Renamed to ...
18249 (DARWIN_PIE_SPEC): This.
18250 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
18251 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18252 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
18253 FPIE2_OR_FPIC2_SPEC.
18254 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
18255 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
18256 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
18257 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18258 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18259 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18260 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
18261 * config/m32r/m32r.h (ASM_SPEC): Likewise.
18262 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
18263 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18264 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
18265 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
18266 * config/sparc/linux.h (ASM_SPEC): Likewise.
18267 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18268 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
18269 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
18270 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18271 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18272 * config/sparc/sparc.h (ASM_SPEC): Likewise.
18273 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
18274 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
18275 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
18276 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
18277 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
18278 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
18279 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
18280 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
18281 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
18282 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
18283 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
18284 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
18285 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18286 * config/vax/linux.h (ASM_SPEC): Likewise.
18287 * doc/install.texi: Document --enable-default-pie.
18288 * doc/invoke.texi: Document -no-pie.
18289 * config.in: Regenerated.
18290 * configure: Likewise.
18292 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18294 PR rtl-optimization/66168
18295 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
18296 can_move_invariant_reg.
18298 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
18301 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
18302 REG_EQUAL note when doing insert.
18304 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
18305 instead of "%d" for 'o' operand.
18307 2015-05-27 Nathan Sidwell <nathan@acm.org>
18310 * tree.c (build_pointer_type_for_mode): Canonical type does not
18311 inherit can_alias_all.
18312 (build_reference_type_for_mode): Likewise.
18314 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
18316 * expr.h (array_at_struct_end_p): Move to...
18317 (array_ref_element_size): Likewise.
18318 (component_ref_field_offset): Likewise.
18319 * tree.h (array_ref_element_size): ...here.
18320 (array_at_struct_end_p): Likewise.
18321 (component_ref_field_offset): Likewise.
18322 * expr.c (array_ref_element_size): Move to...
18323 (array_ref_low_bound): Likewise.
18324 (array_at_struct_end_p): Likewise.
18325 (array_ref_up_bound): Likewise.
18326 (component_ref_field_offset): Likewise.
18327 * tree.c (array_ref_element_size): ...here.
18328 (array_ref_low_bound): Likewise.
18329 (array_ref_up_bound): Likewise.
18330 (array_at_struct_end_p): Likewise.
18331 (component_ref_field_offset): Likewise.
18333 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
18334 Szabolcs Nagy <szabolcs.nagy@arm.com>
18336 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
18338 2015-05-27 Jason Merrill <jason@redhat.com>
18341 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
18342 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
18343 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
18345 2015-05-22 Aditya Kumar <hiraditya@msn.com>
18347 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
18350 * statistics.c (statistics_fini_pass): Print pass name.
18352 2015-05-27 Richard Biener <rguenther@suse.de>
18354 PR tree-optimization/66272
18356 2014-08-15 Richard Biener <rguenther@suse.de>
18358 PR tree-optimization/62031
18359 * tree-data-ref.c (dr_analyze_indices): Do not set
18360 DR_UNCONSTRAINED_BASE.
18361 (dr_may_alias_p): All indirect accesses have to go the
18362 formerly DR_UNCONSTRAINED_BASE path.
18363 * tree-data-ref.h (struct indices): Remove
18364 unconstrained_base member.
18365 (DR_UNCONSTRAINED_BASE): Remove.
18367 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
18369 * dwarf2out.c: Remove block_map.
18370 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
18371 (gen_lexical_block_die): Same.
18372 (dwarf2out_function_decl): Remove block_map use.
18373 (dwarf2out_c_finalize): Same.
18374 * tree-core.h (struct tree_block): Add die field.
18375 * tree.h (BLOCK_DIE): New.
18377 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18380 * expr.c (memory_load_overlap): New function.
18381 (emit_push_insn): When pushing partial args to the stack would
18382 clobber the register part load the overlapping part into a pseudo
18383 and put it into the hard reg after pushing. Change return type
18384 to bool. Add bool argument.
18385 * expr.h (emit_push_insn): Change return type to bool.
18387 * calls.c (expand_call): Cancel sibcall optimization when encountering
18388 partial argument on targets with ARGS_GROW_DOWNWARD and
18389 !STACK_GROWS_DOWNWARD.
18390 (emit_library_call_value_1): Update callsite of emit_push_insn.
18391 (store_one_arg): Likewise.
18393 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
18395 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
18397 2015-05-27 Martin Liska <mliska@suse.cz>
18399 * Makefile.in: Add additional dependencies related to memory report
18401 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
18402 * bitmap.c (struct bitmap_descriptor_d): Remove.
18403 (struct loc): Likewise.
18404 (struct bitmap_desc_hasher): Likewise.
18405 (bitmap_desc_hasher::hash): Likewise.
18406 (bitmap_desc_hasher::equal): Likewise.
18407 (get_bitmap_descriptor): Likewise.
18408 (bitmap_register): User new memory descriptor API.
18409 (register_overhead): Likewise.
18410 (bitmap_find_bit): Register nsearches and search_iter statistics.
18411 (struct bitmap_output_info): Remove.
18412 (print_statistics): Likewise.
18413 (dump_bitmap_statistics): Use new memory descriptor.
18414 * bitmap.h (struct bitmap_usage): New class.
18415 * genmatch.c: Extend header file inclusion.
18416 * genpreds.c: Likewise.
18417 * ggc-common.c (struct ggc_usage): New class.
18418 (struct ggc_loc_desc_hasher): Remove.
18419 (ggc_loc_desc_hasher::hash): Likewise.
18420 (ggc_loc_desc_hasher::equal): Likewise.
18421 (struct ggc_ptr_hash_entry): Likewise.
18422 (struct ptr_hash_hasher): Likewise.
18423 (ptr_hash_hasher::hash): Likewise.
18424 (ptr_hash_hasher::equal): Likewise.
18425 (make_loc_descriptor): Likewise.
18426 (ggc_prune_ptr): Likewise.
18427 (dump_ggc_loc_statistics): Use new memory descriptor.
18428 (ggc_record_overhead): Likewise.
18429 (ggc_free_overhead): Likewise.
18430 (final_cmp_statistic): Remove.
18431 (cmp_statistic): Likewise.
18432 (ggc_add_statistics): Liekwise.
18433 (ggc_prune_overhead_list): Likewise.
18434 * hash-map-traits.h: New file.
18435 * hash-map.h (struct default_hashmap_traits): Move the traits to a
18436 separate header file.
18437 * hash-set.h: Pass memory statistics info to ctor.
18438 * hash-table.c (void dump_hash_table_loc_statistics): New function.
18439 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
18440 (hash_table::~hash_table): Register memory release operation.
18441 (hash_table::alloc_entries): Handle memory allocation operation.
18442 (hash_table::expand): Likewise.
18443 * inchash.c (iterative_hash_hashval_t): Move implementation to header
18445 (iterative_hash_host_wide_int): Likewise.
18446 * inchash.h (class hash): Likewise.
18447 * mem-stats-traits.h: New file.
18448 * mem-stats.h: New file.
18449 (mem_location): Add new class.
18450 (mem_usage): Likewise.
18451 (mem_alloc_description): Likewise.
18452 * sese.c: Add new header file inclusision.
18453 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
18455 * tree-sra.c: Add new header file inclusision.
18456 * vec.c (struct vec_descriptor): Remove.
18457 (hash_descriptor): Likewise.
18458 (struct vec_usage): Likewise.
18459 (struct ptr_hash_entry): Likewise.
18460 (hash_ptr): Likewise.
18461 (eq_ptr): Likewise.
18462 (vec_prefix::register_overhead): Use new memory descriptor API.
18463 (vec_prefix::release_overhead): Likewise.
18464 (add_statistics): Remove.
18465 (dump_vec_loc_statistics): Use new memory descriptor API.
18466 * vec.h (struct vec_prefix): Likewise.
18467 (va_heap::reserve): Likewise.
18468 (va_heap::release): Likewise.
18469 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
18471 2015-05-27 Richard Biener <rguenther@suse.de>
18473 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
18474 earlier and remove ??? comment.
18475 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
18476 and got called from loop analysis bail out. Always pass the SLP
18477 node to the vectorizable_* functions.
18478 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
18479 the premature SLP check here.
18480 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
18481 detected SLP stmts.
18482 (vect_detect_hybrid_slp_1): Likewise.
18484 2015-05-26 Jeff Law <law@redhat.com>
18486 * combine.c (find_split_point): Verify that the shift count is a
18487 constant when choosing (plus (ashift ...)) as a split point.
18489 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
18490 No functional changes.
18492 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
18494 * ipa-polymorphic-call.c
18495 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
18496 case when call target is already known.
18498 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
18501 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
18502 take into account the case that operands[1] and operands[2]
18503 are the same register.
18505 2015-05-26 Michael Matz <matz@suse.de>
18507 PR middle-end/66251
18509 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
18511 (vect_create_vectorized_demotion_stmts): Always set
18512 STMT_VINFO_VEC_STMT, also with SLP.
18513 (vectorizable_store): Handle strided group stores.
18515 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18518 * config/aarch64/aarch64.md
18519 (*adds_shift_imm_<mode>): New pattern.
18520 (*subs_shift_imm_<mode>): Likewise.
18521 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
18522 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
18523 (*add_uxt<mode>_shift2): Likewise.
18524 (*add_uxtsi_shift2_uxtw): Likewise.
18525 (*sub_uxt<mode>_shift2): Likewise.
18526 (*sub_uxtsi_shift2_uxtw): Likewise.
18528 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
18530 * config/rs6000/constraints.md (Y, U): Use match_test.
18532 2015-05-26 Christian Bruel <christian.bruel@st.com>
18535 * config/arm/arm.c (arm_option_check_internal)
18536 (arm_option_params_internal): Check opts->target_flags to set macros.
18537 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
18538 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
18539 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
18540 (builtin_define): Replaced with def_or_undef_macro.
18541 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
18542 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
18543 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
18544 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
18545 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
18546 (TARGET_ARM_FEATURE_LDREX_P)
18547 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
18548 * config/arm/arm-c.c (def_or_undef_macro): New function.
18549 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
18551 2015-05-26 Christian Bruel <christian.bruel@st.com>
18553 * c-common.h (builtin_define_with_int_value)
18554 (builtin_define_type_sizeof): Declare.
18555 * c-cppbuiltin.c (builtin_define_with_int_value)
18556 (builtin_define_type_sizeof): Externalize.
18557 (builtin_define_std): Cleanup declaration.
18558 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
18559 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
18560 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
18561 (builtin_define, builtin_assert): New macros.
18563 2015-05-26 Richard Biener <rguenther@suse.de>
18565 PR tree-optimization/66142
18566 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
18567 MEM_REFs for the same base address.
18569 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18572 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
18574 2015-05-26 Jason Merrill <jason@redhat.com>
18576 * configure.ac: Set CXXFLAGS for ISL test.
18577 * configure: Regenerate.
18579 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
18580 strstr and basename.
18581 * configure: Regenerate.
18583 2015-05-26 Richard Biener <rguenther@suse.de>
18585 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
18586 X % C -> X & (C - 1) for C being a power-of two to ...
18587 * match.pd: ... patterns.
18589 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
18591 * match.pd (swapped_tcc_comparison): New operator list.
18592 (-A CMP -B): New simplification.
18593 * fold-const.c (fold_comparison): Remove corresponding code.
18595 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
18597 * caller-save.c (init_caller_save): Base temporary register numbers
18598 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
18599 * cfgloopanal.c (init_set_costs): Likewise.
18600 * dojump.c (prefer_and_bit_test): Likewise.
18601 * expr.c (init_expr_target): Likewise.
18602 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18603 * lower-subreg.c (init_lower_subreg): Likewise.
18604 * postreload.c (reload_cse_regs_1): Likewise.
18606 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
18608 * gensupport.h (compute_test_codes): Declare.
18609 * gensupport.c (compute_predicate_codes): Rename to...
18610 (compute_test_codes): ...this. Generalize error message.
18611 (process_define_predicate): Update accordingly.
18612 * genpreds.c (compute_maybe_allows): Delete.
18613 (add_constraint): Use compute_test_codes to determine whether
18614 something can accept a SUBREG, REG or MEM.
18616 2015-05-26 Torvald Riegel <triegel@redhat.com>
18618 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
18619 'memory model' to align with C++11; fix description of memory orders;
18622 2015-05-26 Richard Biener <rguenther@suse.de>
18624 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
18625 (vect_analyze_loop_operations): ... here. Remove slp parameter,
18626 detect whether we apply SLP. Remove call to
18627 vect_update_slp_costs_according_to_vf.
18628 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
18629 vect_update_slp_costs_according_to_vf from here. Dispatch
18630 to vect_slp_analyze_operations to analyze SLP stmts.
18631 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
18632 unused bb_vec_info parameter, adjust assert.
18633 (vect_slp_analyze_operations): Pass in the slp instance tree
18634 instead of bb_vec_info.
18635 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
18636 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
18638 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
18640 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
18641 Q_REGS. Expand comment.
18642 (REG_CLASS_NAMES): Ditto.
18643 (REG_CLASS_CONTENTS): Ditto.
18645 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
18648 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
18649 when LEGACY_INT_REGNO_P is processed.
18651 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
18653 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
18655 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18657 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
18658 register if not marked dead/unused, before return.
18660 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
18663 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
18664 is set; check for assembler name at LTO time.
18665 (type_in_anonymous_namespace): Remove hacks, check that all
18666 anonymous types are called "<anon>"
18667 (odr_type_p): Simplify; add check for "<anon>"
18668 (odr_subtypes_equivalent): Add odr_type_p check.
18669 * tree.c (need_assembler_name_p): Even anonymous namespace needs
18672 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
18674 * ipa-utils.h (method_class_type): Remove.
18675 * cgraphunit.c (walk_polymorphic_call_targets): Use
18676 TYPE_METHOD_BASETYPE.
18677 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
18678 on main variants only.
18679 (method_class_type): Remove.
18680 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
18681 (build_type_inheritance_graph): Likewise.
18682 * ipa-icf.c (sem_function::equals_wpa): Likewise.
18683 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
18684 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
18686 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
18688 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
18689 is_typedef_decl, typedef_variant_p): Constify.
18690 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
18691 is_typedef_decl, typedef_variant_p): Constify.
18693 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18695 * defaults.h (gen_tablejump): New function.
18696 (HAVE_tablejump): Add default value.
18698 * stmt.c: Likewise.
18700 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18702 * defaults.h (gen_store_multiple): New function.
18703 (HAVE_store_multiple): Add default value.
18704 * expr.c (move_block_from_reg): Adjust.
18706 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18708 * defaults.h (gen_load_multiple): New function.
18709 (HAVE_load_multiple): Add default value.
18710 * expr.c (move_block_to_reg): Adjust.
18712 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18714 * defaults.h (gen_mem_signal_fence): New function.
18715 (HAVE_mem_signal_fence): Add default value.
18716 * optabs.c: Adjust.
18718 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18720 * defaults.h (gen_memory_barrier): New function.
18721 (HAVE_memory_barrier): Add default value.
18722 * optabs.c: Adjust.
18724 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18726 * defaults.h (gen_mem_thread_fence): New function.
18727 (HAVE_mem_thread_fence): Add default definition.
18728 * optabs.c: Adjust.
18730 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18732 * combine.c (find_split_point): Check the value of HAVE_lo_sum
18733 instead of if it is defined.
18734 (combine_simplify_rtx): Likewise.
18735 * lra-constraints.c (process_address_1): Likewise.
18736 * config/darwin.c: Adjust.
18737 * genconfig.c (main): Always define HAVE_lo_sum.
18739 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18741 * genmatch.c (parser::parse_operation): Reject expanding
18742 operator-list inside 'for'.
18744 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18746 * genmatch.c (parser::parse_for): Reject iterator if used as
18749 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18751 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
18752 after end of id-list.
18754 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
18756 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
18757 we do not try to compute canonical type for type that does not need
18759 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
18761 * tree.h (type_with_alias_set_p): New.
18763 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
18765 * tree.c (gimple_canonical_types_compatible_p): Do not compare
18766 function attributes.
18767 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
18769 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
18771 * Makefile.in (check_gcc_parallelize): Delete.
18772 (lang_checks_parallelized): Update comment.
18774 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
18776 PR rtl-optimization/66237
18777 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
18778 location of an "as_a" cast.
18780 2015-05-22 Jeff Law <law@redhat.com>
18782 * config/pa/pa.md (non-canonical shift-add insns): Remove.
18783 (peepholes with non-canonical RTL sources): Remove.
18784 (peepholes for indexed stores of FP regs in integer modes): Match and
18785 generate canonical RTL.
18787 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
18789 PR tree-optimization/63387
18790 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
18791 ((x ord x) & (y ord y) -> (x ord y),
18792 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
18793 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
18794 vectors like scalars.
18796 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
18798 * convert.c (convert_to_integer, convert_to_vector): Include the
18799 types in the error message.
18801 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
18803 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
18806 2015-05-22 Jeff Law <law@redhat.com>
18808 * config/pa/pa.md (integer_indexed_store splitters): Use
18809 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
18810 insns -- adjusting the constant 2nd operand accordingly.
18812 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
18813 (plus (ashift X log2) Y) if it is a split point.
18815 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
18816 out of hppa_legitimize_address to handle both forms of a multiply
18818 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
18819 Always generate the ASHIFT variant as the result is not directly
18820 used in a MEM. Update comments and refactor slightly to improve
18823 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18826 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
18827 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
18828 (aarch64_composite_type_p): Return false if given type and mode are
18829 for a short vector.
18831 2015-05-22 Richard Biener <rguenther@suse.de>
18833 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
18835 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
18836 patterns when determining whether SLP is pure.
18837 (vect_is_slp_reduction): Remove check for pattern stmts.
18838 (vect_is_simple_reduction_1): Remove dead code.
18839 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
18840 (vect_get_and_check_slp_defs): Pass in the stmt number.
18841 Allow the first def in a reduction to be not a pattern stmt when
18842 the rest of the stmts def are patterns.
18843 (vect_build_slp_tree_1): Allow tcc_expression codes like
18844 SAD_EXPR and DOT_PROD_EXPR.
18845 (vect_build_slp_tree): Adjust.
18846 (vect_analyze_slp): Refactor and move BB vect error message ...
18847 (vect_slp_analyze_bb_1): ... here.
18849 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
18851 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
18852 for CSWTCH temporary.
18854 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18856 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
18857 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
18860 2015-05-22 Richard Biener <rguenther@suse.de>
18862 PR tree-optimization/66251
18863 * tree-vect-stmts.c (vectorizable_conversion): Properly
18864 set STMT_VINFO_VEC_STMT even for the SLP case.
18866 2015-05-22 Marek Polacek <polacek@redhat.com>
18868 * doc/extend.texi: Use @pxref instead of @xref.
18870 2015-05-22 hiraditya <hiraditya@msn.com>
18872 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
18875 2015-05-22 Richard Biener <rguenther@suse.de>
18877 PR tree-optimization/65701
18878 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18879 Move peeling cost models into one place. Peel for alignment
18880 for single loads only if an aligned load is cheaper than
18883 2015-05-22 Marek Polacek <polacek@redhat.com>
18886 * doc/extend.texi (Enumerator Attributes): New section.
18887 Document syntax of enumerator attributes.
18889 2015-05-22 Richard Biener <rguenther@suse.de>
18891 * tree-vect-loop.c (get_reduction_op): New function.
18892 (vect_model_reduction_cost): Use it, add reduc_index parameter.
18893 Make ready for BB reductions.
18894 (vect_create_epilog_for_reduction): Use get_reduction_op.
18895 (vectorizable_reduction): Init reduc_index to a valid value.
18896 Adjust vect_model_reduction_cost call.
18897 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
18898 operand for reduction defaults. Add SAD_EXPR support.
18899 Assert we have a neutral op for SLP reductions.
18900 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
18901 walking pattern stmt ops only recurse to SSA names.
18903 2015-05-22 Richard Biener <rguenther@suse.de>
18905 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
18906 assert with guard, remove check on detected reduction.
18907 (vect_recog_sad_pattern): Likewise.
18908 (vect_recog_widen_sum_pattern): Likewise.
18910 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18912 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
18913 __always_inline__ attribute.
18914 (vaesdq_u8): Likewise.
18915 (vaesmcq_u8): Likewise.
18916 (vaesimcq_u8): Likewise.
18917 (vsha1cq_u32): Likewise.
18918 (vsha1mq_u32): Likewise.
18919 (vsha1pq_u32): Likewise.
18920 (vsha1h_u32): Likewise.
18921 (vsha1su0q_u32): Likewise.
18922 (vsha1su1q_u32): Likewise.
18923 (vsha256hq_u32): Likewise.
18924 (vsha256h2q_u32): Likewise.
18925 (vsha256su0q_u32): Likewise.
18926 (vsha256su1q_u32): Likewise.
18927 (vmull_p64): Likewise.
18928 (vmull_high_p64): Likewise.
18930 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18932 * final.c (final_scan_insn): Don't check HAVE_peephole with the
18934 * output.h: Likewise.
18935 * genconfig.c (main): Alwways define HAVE_peephole.
18936 * genpeep.c: Don't emit checks of HAVE_peephole.
18938 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18940 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
18941 check HAVE_conditional_move with the preprocessor.
18943 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18945 * genconfig.c (main): Always define HAVE_conditional_move.
18946 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
18947 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
18950 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18952 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
18953 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
18954 and FRAME_POINTER_REGNUM with the preprocessor.
18956 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18958 * defaults.h: Add default for STACK_PUSH_CODE.
18959 * expr.c: Don't redefine STACK_PUSH_CODE.
18960 * recog.c: Likewise.
18962 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18964 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
18965 sched-deps.c: Use if instead of preprocessor checks with
18966 STACK_GROWS_DOWNWARD.
18968 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18970 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
18972 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
18973 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
18974 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
18975 * doc/tm.texi: Regenerate.
18977 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
18980 * config/i386/constraints.md (Bg): New constraint for GOT memory
18982 * config/i386/i386.md (*call_got_x32): New pattern.
18983 (*call_value_got_x32): Likewise.
18984 * config/i386/predicates.md (GOT_memory_operand): New predicate.
18986 2015-05-21 Jakub Jelinek <jakub@redhat.com>
18988 PR tree-optimization/66233
18989 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
18992 2015-05-21 Jeff Law <law@redhat.com>
18994 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
18995 than MULT for shadd sequences.
18997 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
18999 * alias.c (alias_stats): New static var.
19000 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
19001 (dump_alias_stats_in_alias_c): New function.
19002 * alias.h (dump_alias_stats_in_alias_c): Declare.
19003 * tree-ssa-alias.c (dump_alias_stats): Call it.
19005 2015-05-08 Michael Matz <matz@suse.de>
19007 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
19009 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
19010 (STMT_VINFO_STRIDED_P): ... this.
19011 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
19012 (vect_verify_datarefs_alignment): Likewise.
19013 (vect_enhance_data_refs_alignment): Likewise.
19014 (vect_analyze_data_ref_access): Likewise.
19015 (vect_analyze_data_refs): Accept strided stores.
19016 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
19017 (vect_model_load_cost): Adjust for macro rename.
19018 (vectorizable_mask_load_store): Likewise.
19019 (vectorizable_load): Likewise.
19020 (vectorizable_store): Open code strided stores.
19022 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19024 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
19025 Document sqrt_insn.
19027 2015-05-21 Richard Biener <rguenther@suse.de>
19030 * match.pd: Guard pattern optimzing (int)(float)int
19031 conversions to apply only on GIMPLE.
19033 2015-05-21 Jeff Law <law@redhat.com>
19035 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
19036 multiply-accumulate/shift-add insn generation.
19038 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19041 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
19042 operands[1] are the same.
19044 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
19046 PR middle-end/66221
19047 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
19048 build_distinct_type_copy to copy bounds.
19050 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
19052 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
19053 Change to unsigned int.
19055 2015-05-20 Jeff Law <law@redhat.com>
19057 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
19058 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
19059 (pa_shadd_constant_p): Allow constants for shadd insns rather
19060 than valid scaling constants for memory addresses.
19061 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
19062 * config/pa/predicates.md (mem_shadd_operand): New predicate.
19063 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
19064 (shift-add insns using ASHIFT): New patterns.
19066 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
19068 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
19070 (fix_up_fall_thru_edges): Likewise.
19071 (fix_crossing_conditional_branches): Likewise. Promote jump targets
19072 from to rtx_insn to rtx_code_label where feasible.
19073 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
19074 gen_move_insn (returned type changed to rtx_insn).
19075 * builtins.c (expand_errno_check): Fix arguments of
19076 do_compare_rtx_and_jump (now expects rtx_code_label).
19077 (expand_builtin_acc_on_device): Likewise.
19078 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
19079 invert_jump (now exprects rtx_jump_insn).
19080 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
19081 (construct_init_block): Use rtx_code_label.
19082 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
19083 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
19084 calling redirect_jump.
19085 (patch_jump_insn): Likewise.
19086 (redirect_branch_edge): Likewise.
19087 (force_nonfallthru_and_redirect): Likewise.
19088 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
19090 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
19091 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
19092 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
19093 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
19094 to store the value retured by gen_label_rtx.
19095 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
19097 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
19098 (split_branches): Fix calls of redirect_jump.
19099 * dojump.c (jumpifnot): Promote argument type from rtx to
19101 (jumpifnot_1): Likewise.
19102 (jumpif): Likewise.
19103 (jumpif_1): Likewise.
19104 (do_jump_1): Likewise.
19105 (do_jump): Likewise. Use rtx_code_label when feasible.
19106 (do_jump_by_parts_greater_rtx): Likewise.
19107 (do_jump_by_parts_zero_rtx): Likewise.
19108 (do_jump_by_parts_equality_rtx): Likewise.
19109 (do_compare_rtx_and_jump): Likewise.
19110 * dojump.h: Update function prototypes.
19111 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
19113 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
19115 (emit_label_before): Likewise.
19116 (emit_jump_insn_after_noloc): Likewise.
19117 (emit_jump_insn_after_setloc): Likewise.
19118 (emit_jump_insn_after): Likewise
19119 (emit_jump_insn_before_setloc): Likewise.
19120 (emit_jump_insn_before): Likewise.
19121 (emit_label_before): Promote return type to rtx_code_label.
19122 (emit_label): Likewise.
19123 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
19124 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
19126 (emit_stack_restore): Likewise.
19127 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
19128 (do_cmp_and_jump): Likewise.
19129 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
19130 from rtx to rtx_code_label.
19131 (gen_move_insn_uncast): New function.
19132 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
19133 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
19134 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
19135 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
19136 invert_jump_1 and redirect_jump_1.
19137 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
19138 do_compare_rtx_and_jump.
19139 (expand_addsub_overflow): Likewise.
19140 (expand_neg_overflow): Likewise.
19141 (expand_mul_overflow): Likewise.
19142 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
19143 return value of gen_move_insn.
19144 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
19145 * loop-doloop.c (add_test): Use rtx_code_label.
19146 (doloop_modify): Likewise.
19147 (doloop_optimize): Likewise.
19148 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
19149 * lra-constraints.c (emit_spill_move): Remove cast of value returned
19151 (inherit_reload_reg): Add cast when calling dump_insn_slim.
19152 (split_reg): Likewise.
19153 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
19155 * optabs.c (expand_binop_directly): Remove casts of values returned by
19157 (expand_unop_direct): Likewise.
19158 (expand_abs): Likewise.
19159 (maybe_emit_unop_insn): Likewise.
19160 (maybe_gen_insn): Promote return type to rtx_insn.
19161 * optabs.h: Update prototype of maybe_gen_insn.
19162 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
19164 * recog.c (struct peep2_insn_data): Promote type of insn field to
19166 (peep2_reinit_state): Use NULL instead of NULL_RTX.
19167 (peep2_attempt): Remove casts of insn in peep2_insn_data.
19168 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
19169 * recog.h (struct insn_gen_fn): Promote return types of function
19170 pointers and operator ().from rtx to rtx_insn.
19171 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
19172 (fill_eager_delay_slots): Likewise.
19173 (relax_delay_slots): Likewise.
19174 (make_return_insns): Likewise.
19175 (dbr_schedule): Likewise.
19176 (optimize_skips): Likewise.
19177 (reorg_redirect_jump): Likewise.
19178 (fill_slots_from_thread): Likewise.
19179 * reorg.h: Update prototypes.
19180 * resource.c (find_dead_or_set_registers): Use dyn_cast to
19181 rtx_jump_insn instead of check. Use it's jump_target method.
19182 * rtl.h (rtx_jump_insn::jump_label): Define new method.
19183 (rtx_jump_insn::jump_target): Define new method.
19184 (rtx_jump_insn::set_jump_target): Define new method.
19185 * rtlanal.c (tablejump_p): Promote type of one local variable.
19186 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
19187 (sched_analyze_insn): Likewise.
19188 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
19189 (print_insn): Likewise.
19190 * stmt.c (label_rtx): Promote return type to rtx_insn.
19191 (force_label_rtx): Likewise.
19192 (jump_target_rtx): Define new function.
19193 (expand_label): Use it, get rid of one cast.
19194 (expand_naked_return): Promote rtx to rtx_code_label.
19195 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
19196 (expand_case): Use rtx_code_label instread of rtx where feasible.
19197 (expand_sjlj_dispatch_table): Likewise.
19198 (emit_case_nodes): Likewise.
19199 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
19200 * store-motion.c (insert_store): Make use of new return type of
19201 gen_move_insn and remove a cast.
19202 (replace_store_insn): Likewise.
19204 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
19206 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
19207 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
19209 2015-05-20 Jeff Law <law@redhat.com>
19211 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
19212 dispose of the jump thread path when the jump threading
19213 opportunity is cancelled.
19215 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
19217 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
19218 when printing the caret character.
19220 2015-05-20 Marek Polacek <polacek@redhat.com>
19222 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
19224 2015-05-20 Marek Polacek <polacek@redhat.com>
19226 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
19227 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
19228 * gimple-fold.c (canonicalize_bool): Likewise.
19229 (same_bool_result_p): Likewise.
19230 * tree-if-conv.c (parse_predicate): Likewise.
19232 2015-05-20 Marek Polacek <polacek@redhat.com>
19234 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
19235 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
19237 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19239 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
19240 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
19243 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
19245 * config/mips/mips.h (micromips_globals): Declare.
19247 2015-05-20 David Malcolm <dmalcolm@redhat.com>
19249 * timevar.def (TV_INITIALIZE_RTL): New.
19250 * toplev.c (initialize_rtl): Use an auto_timevar to account this
19251 function's time to TV_INITIALIZE_RTL.
19253 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
19255 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
19256 gimple_build_nop calls.
19257 (chkp_find_bounds_for_elem): Likewise.
19258 (chkp_get_zero_bounds): Likewise.
19259 (chkp_get_none_bounds): Likewise.
19260 (chkp_get_bounds_by_definition): Likewise.
19261 (chkp_generate_extern_var_bounds): Likewise.
19262 (chkp_get_bounds_for_decl_addr): Likewise.
19263 (chkp_get_bounds_for_string_cst): Likewise.
19265 2015-05-20 Bin Cheng <bin.cheng@arm.com>
19267 PR tree-optimization/65447
19268 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
19269 (dump_use, dump_uses): Support to dump sub use.
19270 (record_use): New parameters to support sub use. Remove call to
19272 (record_sub_use, record_group_use): New functions.
19273 (compute_max_addr_offset, split_all_small_groups): New functions.
19274 (group_address_uses, rewrite_use_address): New functions.
19275 (strip_offset): New declaration.
19276 (find_interesting_uses_address): Call record_group_use.
19277 (add_candidate): New assertion.
19278 (infinite_cost_p): Move definition forward.
19279 (add_costs): Check INFTY cost and return immediately.
19280 (get_computation_cost_at): Clear setup cost and dependent bitmap
19282 (determine_use_iv_cost_address): Compute cost for sub uses.
19283 (rewrite_use_address_1): Rename from old rewrite_use_address.
19284 (free_loop_data): Free sub uses.
19285 (tree_ssa_iv_optimize_loop): Call group_address_uses.
19287 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
19288 Jim Wilson <jim.wilson@linaro.org>
19290 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
19291 new fields loadv and storev.
19292 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
19293 Initialize loadv and storev.
19294 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
19295 (cortexa53_extra_costs): Likewise.
19296 (cortexa57_extra_costs): Likewise.
19297 (xgene1_extra_costs): Likewise.
19298 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
19301 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
19303 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
19305 (cortexa8_extra_costs): Likewise.
19306 (cortexa5_extra_costs): Likewise.
19307 (cortexa7_extra_costs): Likewise.
19308 (cortexa12_extra_costs): Likewise.
19309 (cortexa15_extra_costs): Likewise.
19310 (v7m_extra_costs): Likewise.
19312 2015-05-20 Jeff Law <law@redhat.com>
19314 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
19315 instead of open-coded version. Also delete the jump thread created
19316 within this function.
19318 2015-05-20 Alan Modra <amodra@gmail.com>
19320 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
19321 stack adjusting insn. Formatting.
19322 (rs6000_emit_prologue): Track stack adjusting insn, and use of
19323 r12. If possible, emit first -fsplit-stack arg pointer insn
19324 before stack adjust. Don't use r12 to save cr if split-stack.
19326 2015-05-20 Alan Modra <amodra@gmail.com>
19328 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
19330 (rs6000_supports_split_stack): New function.
19331 * gcc/config/rs6000/rs6000.c (machine_function): Add
19332 split_stack_arg_pointer.
19333 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
19334 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
19335 rather than virtual_incoming_args_rtx.
19336 (rs6000_va_start): Likewise.
19337 (split_stack_arg_pointer_used_p): New function.
19338 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
19339 (morestack_ref): New var.
19340 (gen_add3_const, rs6000_expand_split_stack_prologue,
19341 rs6000_internal_arg_pointer, rs6000_live_on_entry,
19342 rs6000_split_stack_space_check): New functions.
19343 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
19344 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
19345 (UNSPECV_SPLIT_STACK_RETURN): Define.
19346 (split_stack_prologue, load_split_stack_limit,
19347 load_split_stack_limit_di, load_split_stack_limit_si,
19348 split_stack_return, split_stack_space_check): New expands and insns.
19349 * gcc/config/rs6000/rs6000-protos.h
19350 (rs6000_expand_split_stack_prologue): Declare.
19351 (rs6000_split_stack_space_check): Declare.
19353 2015-05-20 Alan Modra <amodra@gmail.com>
19355 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
19356 (direct_return): Test vrsave_size rather than vrsave_mask.
19357 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
19358 (rs6000_emit_epilogue): Likewise.
19360 2015-05-20 Alan Modra <amodra@gmail.com>
19362 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
19363 when not saving registers.
19364 (debug_stack_info): Adjust to omit printing unused offsets,
19366 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
19369 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19372 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
19373 value_type to const char *.
19375 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
19377 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
19378 to build a biarch toolchain again.
19380 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
19382 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
19383 or implicit declarations.
19384 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
19386 (get_odr_type): Check type has linkage before adding bases.
19387 (register_odr_type): Check that type has linkage before adding it.
19388 (type_known_to_have_no_deriavations_p): Rename to ..
19389 (type_known_to_have_no_derivations_p): This one.
19390 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
19391 (type_known_to_have_no_derivations_p): This one.
19392 * ipa-polymorphic-call.c
19393 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
19396 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
19398 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
19399 (layout_type): Use RECORD_OR_UNION_TYPE_P.
19401 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19403 * config/s390/s390.c (s390_vector_bool_type_p): New function.
19404 (s390_invalid_binary_op): New function.
19405 (TARGET_INVALID_BINARY_OP): Define macro.
19407 2015-05-19 David Sherwood <david.sherwood@arm.com>
19409 * loop-invariant.c (create_new_invariant): Don't calculate address cost
19410 if mode is not a scalar integer.
19411 (get_inv_cost): Increase computational cost for unused invariants.
19413 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19415 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
19416 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
19417 * config/s390/s390-builtin-types.def: New file.
19418 * config/s390/s390-builtins.def: New file.
19419 * config/s390/s390-builtins.h: New file.
19420 * config/s390/s390-c.c: New file.
19421 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
19422 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
19423 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
19424 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
19426 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
19428 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
19429 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
19430 variable definitions.
19431 (s390_const_operand_ok): New function.
19432 (s390_expand_builtin): Rewrite.
19433 (s390_init_builtins): New function.
19434 (s390_handle_vectorbool_attribute): New function.
19435 (s390_attribute_table): Add s390_vector_bool attribute.
19436 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
19437 (s390_branch_condition_mask): Generate masks for new modes.
19438 (s390_expand_vec_compare_cc): New function.
19439 (s390_mangle_type): Add mangling for vector bool types.
19440 (enum s390_builtin): Remove.
19441 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
19443 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
19444 s390_cpu_cpp_builtins.
19445 (REGISTER_TARGET_PRAGMAS): New macro.
19446 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
19447 (insn_cmp mode attribute): Add new CC modes.
19448 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
19449 (lcbb): New pattern definition.
19450 * config/s390/s390intrin.h: Include vecintrin.h.
19451 * config/s390/t-s390: New file.
19452 * config/s390/vecintrin.h: New file.
19453 * config/s390/vector.md: Include vx-builtins.md.
19454 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
19457 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19459 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
19461 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
19462 (s390_select_ccmode): Likewise.
19463 (s390_canonicalize_comparison): Swap operands if necessary.
19464 (s390_expand_vec_compare_scalar): Expand DFmode compare using
19465 single element vector instructions.
19466 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
19467 (s390_branch_condition_mask): Generate CC masks for the new modes.
19468 * config/s390/s390.md (v0, vf, vd): New mode attributes.
19469 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
19470 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
19471 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
19472 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
19473 (*extend<DSF:mode><BFP:mode>2): New insn definition.
19474 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
19475 (extend<DSF:mode><BFP:mode>2): Turn into expander.
19476 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
19477 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
19478 (sqrt<mode>2): Add vector instruction.
19480 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19482 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
19484 * config/s390/predicates.md (const0_operand, constm1_operand)
19485 (constable_operand): Accept vector operands.
19486 * config/s390/s390-modes.def: Add supported vector modes.
19487 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
19488 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
19489 (s390_bytemask_vector_p, s390_expand_vec_strlen)
19490 (s390_expand_vec_compare, s390_expand_vcond)
19491 (s390_expand_vec_init): Add prototypes.
19492 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
19493 (s390_vector_mode_supported_p): New function.
19494 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
19495 (s390_contiguous_bitmask_vector_p): New function.
19496 (s390_bytemask_vector_p): New function.
19497 (s390_split_ok_p): Vector regs don't work either.
19498 (regclass_map): Add VEC_REGS.
19499 (s390_legitimate_constant_p): Handle vector constants.
19500 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
19501 (legitimate_reload_vector_constant_p): New function.
19502 (s390_preferred_reload_class): Handle CONST_VECTOR.
19503 (s390_reload_symref_address): Likewise.
19504 (s390_secondary_reload): Vector memory instructions only support
19505 short displacements. Rename reload*_nonoffmem* to reload*_la*.
19506 (s390_emit_ccraw_jump): New function.
19507 (s390_expand_vec_strlen): New function.
19508 (s390_expand_vec_compare): New function.
19509 (s390_expand_vcond): New function.
19510 (s390_expand_vec_init): New function.
19511 (s390_dwarf_frame_reg_mode): New function.
19512 (print_operand): Handle addresses with 'O' and 'R' constraints.
19513 (NR_C_MODES, constant_modes): Add vector modes.
19514 (s390_output_pool_entry): Handle vector constants.
19515 (s390_hard_regno_mode_ok): Handle vector registers.
19516 (s390_class_max_nregs): Likewise.
19517 (s390_cannot_change_mode_class): New function.
19518 (s390_invalid_arg_for_unprototyped_fn): New function.
19519 (s390_function_arg_vector): New function.
19520 (s390_function_arg_float): Remove size variable.
19521 (s390_pass_by_reference): Handle vector arguments.
19522 (s390_function_arg_advance): Likewise.
19523 (s390_function_arg): Likewise.
19524 (s390_return_in_memory): Vector values are returned in a VR if
19526 (s390_function_and_libcall_value): Handle vector arguments.
19527 (s390_gimplify_va_arg): Likewise.
19528 (s390_call_saved_register_used): Consider the arguments named.
19529 (s390_conditional_register_usage): Disable v16-v31 for non-vec
19531 (s390_preferred_simd_mode): New function.
19532 (s390_support_vector_misalignment): New function.
19533 (s390_vector_alignment): New function.
19534 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
19535 (TARGET_VECTOR_MODE_SUPPORTED_P)
19536 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
19537 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
19538 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
19539 (TARGET_VECTOR_ALIGNMENT): Define target macro.
19540 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
19541 (FIRST_PSEUDO_REGISTER): Increase value.
19542 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
19543 (VECTOR_REG_P): Define macros.
19544 (FIXED_REGISTERS, CALL_USED_REGISTERS)
19545 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
19546 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
19547 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
19548 Add vector registers.
19549 (CANNOT_CHANGE_MODE_CLASS): Call C function.
19550 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
19551 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
19553 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
19554 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
19555 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
19556 (VR*_REGNUM): New constants.
19557 (ALL): New mode iterator.
19558 (INTALL): Remove mode iterator.
19560 (movti): Implement TImode moves for VRs.
19561 Disable TImode splitter for VR targets.
19562 Implement splitting TImode GPR<->VR moves.
19563 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
19564 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
19565 reload<mode>_la_in, reload<mode>_la_out.
19566 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
19567 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
19568 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
19569 (mov<mode> SF SD): Prefer lder, lde for loading.
19570 Add lrl and strl instructions.
19571 Add vector instructions.
19572 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
19573 Call s390_expand_vec_strlen on z13.
19574 (*cc_to_int): Change predicate to nonimmediate_operand.
19575 (addti3): Rename to *addti3. New expander.
19576 (subti3): Rename to *subti3. New expander.
19577 * config/s390/vector.md: New file.
19579 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19581 * common/config/s390/s390-common.c (processor_flags_table): Add
19583 * config.gcc: Add z13.
19584 * config/s390/s390-opts.h (enum processor_type): Add
19585 PROCESSOR_2964_Z13.
19586 * config/s390/s390.c (s390_adjust_priority): Check for
19587 PROCESSOR_2964_Z13.
19588 (s390_reorg): Likewise.
19589 (s390_sched_reorder): Likewise.
19590 (s390_sched_variable_issue): Likewise.
19591 (s390_loop_unroll_adjust): Likewise.
19592 (s390_option_override): Likewise. Default to -mvx when available.
19593 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
19594 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
19595 (TARGET_VX_ABI): Define macros.
19597 (TARGET_DEFAULT): Add MASK_OPT_VX.
19598 * config/s390/s390.md ("cpu" attribute): Add z13.
19599 ("cpu_facility" attribute): Add vec.
19600 * config/s390/s390.opt (processor_type): Add z13.
19601 (mvx): New options.
19602 * doc/invoke.texi: Add z13 option for -march.
19604 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19606 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
19607 mode check to make sure that only scalar integer values are
19610 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
19612 * tree.c (verify_type_variant): Fix #undef.
19613 (gimple_canonical_types_compatible_p): Move here from lto.c
19614 (verify_type): Verify TYPE_CANONICAL compatibility.
19615 * tree.h (gimple_canonical_types_compatible_p): Declare.
19617 2015-05-19 Jakub Jelinek <jakub@redhat.com>
19619 PR middle-end/66199
19620 * tree.h (OMP_TEAMS_COMBINED): Define.
19621 * gimplify.c (enum gimplify_omp_var_data): Add
19622 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
19623 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
19624 (omp_notice_variable): Accept both ORT_TEAMS
19625 and ORT_COMBINED_TEAMS. Don't recurse if
19626 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
19627 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
19629 (omp_no_lastprivate): New function.
19630 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
19631 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
19632 notice_outer and set appropriate bits, otherwise make
19633 sure default(none) combined constructs won't complain.
19634 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
19635 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
19636 omp_no_lastprivate either remove the clause or turn it
19637 into OMP_CLAUSE_PRIVATE.
19638 (gimplify_omp_for): Fix up handling of implicit
19639 lastprivate or linear iterators.
19640 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
19641 ORT_COMBINED_TEAMS.
19642 * omp-low.c (lower_omp_for_lastprivate): For combined
19643 for simd use fd.loop.n2 from the for rather than simd.
19645 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19647 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
19648 instead of gen_rtx_raw_REG.
19649 (cris_expand_epilogue): Likewise.
19650 * config/microblaze/microblaze.c (microblaze_classify_address):
19652 * config/sparc/sparc.md: Likewise.
19654 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
19656 * config/alpha/alpha.c (alpha_legitimize_reload_address)
19657 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
19658 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
19659 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
19660 Use CASE_CONST_SCALAR_INT.
19661 (print_operand) <case 'M'>: Use mode_width_operand to check the
19662 value of the constant.
19663 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
19664 * config/alpha/predicates.md (input_operand): Use general_operand
19665 instead of match_code as operand check.
19666 (symbolic_operand): Use match_code with subexpression digits.
19667 * config/alpha/constraints.md (Q): Ditto.
19669 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19671 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
19673 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19675 * config/s390/s390.c (s390_secondary_reload): Fix check for
19676 load/store relative.
19678 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19680 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
19681 alternative_mask to uint64_t.
19683 2015-05-19 Jakub Jelinek <jakub@redhat.com>
19685 PR tree-optimization/66187
19686 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
19687 Pass TYPE_SIGN to tree_int_cst_min_precision. If
19688 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
19690 2015-05-19 David Malcolm <dmalcolm@redhat.com>
19692 * diagnostic.c (diagnostic_report_current_module): Strengthen
19693 local "new_map" from const line_map * to
19694 const line_map_ordinary *.
19695 * genmatch.c (error_cb): Likewise for local "map".
19696 (output_line_directive): Likewise for local "map".
19697 * input.c (expand_location_1): Likewise for local "map".
19698 Pass NULL rather than &map to
19699 linemap_unwind_to_first_non_reserved_loc, since the value is never
19700 read from there, and the value written back not read from here.
19701 (is_location_from_builtin_token): Strengthen local "map" from
19702 const line_map * to const line_map_ordinary *.
19703 (dump_location_info): Strengthen locals "map" from
19704 line_map *, one to const line_map_ordinary *, the other
19705 to const line_map_macro *.
19706 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
19707 const line_map * to const line_map_macro *.
19708 (maybe_unwind_expanded_macro_loc): Add a call to
19709 linemap_check_macro when writing to the "map" field of the
19711 Introduce local const line_map_ordinary * "ord_map", using it in
19712 place of "map" in the part of the function where we know we have
19713 an ordinary map. Strengthen local "m" from const line_map * to
19714 const line_map_ordinary *.
19716 2015-05-19 Nick Clifton <nickc@redhat.com>
19719 * config/msp430/msp430.md (zero_extendhisi2): Add support for
19720 separate source and destination registers.
19722 2015-05-19 Richard Biener <rguenther@suse.de>
19724 PR tree-optimization/66165
19725 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
19726 for no load permutation.
19728 PR tree-optimization/66185
19729 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
19730 when building the SLP node from scalars.
19732 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
19733 Tristan Gingold <gingold@adacore.com>
19735 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
19736 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
19737 (expand_stack_restore): Call record_new_stack_level.
19738 (expand_stack_save): Do not call do_pending_stack_adjust.
19739 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
19740 * calls.c (expand_call): Call record_new_stack_level for alloca.
19741 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
19742 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
19743 (update_sjlj_context): New global function.
19744 * except.h (update_sjlj_context): Declare.
19745 * explow.c (record_new_stack_level): New global function.
19746 (allocate_dynamic_stack_space): Call record_new_stack_level.
19747 * explow.h (record_new_stack_level): Declare.
19748 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
19749 * cfgrtl.c (duplicate_insn_chain): Likewise.
19751 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19753 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
19754 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
19755 STACK_GROWS_DOWNWARD as normal if.
19756 (expand_call): Likewise.
19758 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
19761 * config/sh/sh.md (*round_int_even): New insn_and_split and
19762 accompanying new unnamed split.
19764 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19766 * bitmap.c (bitmap_set_range): Handle count==1 specially.
19767 (bitmap_clear_range): Likewise.
19768 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
19769 bitmap_set_range unconditionally.
19770 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
19771 * df-scan.c (df_mark_reg): Likewise.
19772 * haifa-sched.c (setup_ref_regs): Likewise.
19773 * sched-rgn.c (update_live_1): Likewise.
19775 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19777 * regs.h (END_HARD_REGNO): Delete.
19778 (END_REGNO): Move to...
19780 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
19781 * caller-save.c (mark_set_regs): Likewise.
19782 * combine.c (move_deaths, distribute_notes): Likewise.
19783 * cse.c (invalidate, invalidate_for_call): Likewise.
19784 * df-scan.c (df_ref_record): Likewise.
19785 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
19786 (record_last_reg_set_info): Likewise.
19787 * reg-stack.c (convert_regs_exit): Likewise.
19788 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
19789 * resource.c (update_live_status): Likewise.
19790 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
19792 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19794 * rtl.h (reg_info): Add an nregs field.
19795 (REG_NREGS): Use it.
19796 (SET_REGNO_RAW): Delete.
19797 (set_regno_raw): New function.
19798 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
19799 (END_REGNO): Redefine in terms of REG_NREGS.
19800 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
19802 * emit-rtl.c (set_mode_and_regno): Likewise.
19803 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
19804 instead of SET_REGNO_RAW.
19806 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19808 * rtl.h (PUT_MODE_RAW): New macro.
19809 (PUT_REG_NOTE_KIND): Use it.
19810 (set_mode_and_regno): Declare.
19811 (gen_raw_REG): Change regno to "unsigned int".
19812 (gen_rtx_REG): Change "unsigned" to "unsigned int".
19813 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
19814 use set_mode_and_regno to change the mode of registers.
19815 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
19816 * emit-rtl.c (set_mode_and_regno): New function.
19817 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
19818 * caller-save.c (reg_save_code): Use set_mode_and_regno.
19819 * expr.c (init_expr_target): Likewise.
19820 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19821 * postreload.c (reload_cse_simplify_operands): Likewise.
19823 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19825 * caller-save.c (init_caller_save): Use word_mode and
19826 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
19827 * expr.c (init_expr_target): Likewise.
19828 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19829 * postreload.c (reload_cse_regs_1): Likewise.
19831 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19833 * rtl.def (REG): Change format to "r".
19834 * rtl.h (rtunion): Remove rt_reg.
19835 (reg_info): New structure.
19836 (rtx_def): Add reg field to main union.
19837 (X0REGATTR): Delete.
19838 (REG_CHECK): New macro.
19839 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
19840 * rtl.c (rtx_format): Document "r".
19841 (rtx_code_size): Handle REG specially.
19842 * gengenrtl.c (special_format): Return true for formats
19844 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
19845 Deal with REG_ATTRS after the field loop.
19846 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
19847 * expmed.c (init_expmed): Call gen_raw_REG instead of
19849 * expr.c (init_expr_target): Likewise.
19850 * regcprop.c (maybe_mode_change): Likewise.
19851 * varasm.c (make_decl_rtl): Likewise.
19852 * final.c (leaf_renumber_regs_insn): Return early after
19854 * genemit.c (gen_exp): Handle 'r' fields.
19855 * genpeep.c (match_rtx): Likewise.
19856 * gensupport.c (subst_pattern_match): Likewise.
19857 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
19858 (alter_constraints, subst_dup): Likewise.
19859 * read-rtl.c (read_rtx_code): Likewise.
19860 * print-rtl.c (print_rtx): Likewise.
19861 * genrecog.c (find_operand, find_matching_operand): Likewise.
19862 (validate_pattern, match_pattern_2): Likewise.
19863 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
19864 (rtx_test::regno_field): New function.
19865 (operator ==, safe_to_hoist_p, transition_parameter_type)
19866 (parameter_type_string, print_parameter_value)
19867 (print_nonbool_test, print_test): Handle new enum values.
19868 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
19869 * lra-constraints.c (operands_match_p): Likewise.
19871 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19873 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
19874 Change type of new_regno to unsigned int.
19875 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
19876 new_regno to unsigned int.
19877 (df_ref_change_reg_with_loc): Remove old_regno parameter.
19878 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
19879 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
19880 (SET_REGNO_RAW): Add space after ",".
19882 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19884 * rtl.h (REG_NREGS): New macro
19885 * alias.c (record_set): Use it.
19886 * cfgcleanup.c (mark_effect): Likewise.
19887 * combine.c (likely_spilled_retval_1): Likewise.
19888 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
19889 (move_deaths, distribute_notes): Likewise.
19890 * cselib.c (cselib_record_set): Likewise.
19891 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
19892 * df-scan.c (df_mark_reg): Likewise.
19893 * dse.c (look_for_hardregs): Likewise.
19894 * dwarf2out.c (reg_loc_descriptor): Likewise.
19895 (multiple_reg_loc_descriptor): Likewise.
19896 * expr.c (write_complex_part, read_complex_part): Likewise.
19897 (emit_move_complex): Likewise.
19898 * haifa-sched.c (setup_ref_regs): Likewise.
19899 * ira-lives.c (mark_hard_reg_live): Likewise.
19900 * lra.c (lra_set_insn_recog_data): Likewise.
19901 * mode-switching.c (create_pre_exit): Likewise.
19902 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
19903 (reload_combine_recognize_pattern): Likewise.
19904 (reload_combine_note_use, move2add_record_mode): Likewise.
19905 (reload_cse_move2add): Likewise.
19906 * reg-stack.c (subst_stack_regs_pat): Likewise.
19907 * regcprop.c (kill_value, copy_value): Likewise.
19908 (copyprop_hardreg_forward_1): Likewise.
19909 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
19910 (build_def_use): Likewise.
19911 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
19912 (deps_analyze_insn): Likewise.
19913 * sched-rgn.c (check_live_1, update_live_1): Likewise.
19914 * sel-sched.c (count_occurrences_equiv): Likewise.
19915 * valtrack.c (dead_debug_insert_temp): Likewise.
19917 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
19919 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
19920 * dse.c (note_add_store): Likewise.
19921 * ira-lives.c (mark_hard_reg_dead): Likewise.
19922 * loop-invariant.c (mark_reg_store): Likewise.
19923 (mark_reg_death): Likewise.
19924 * postreload.c (reload_combine): Likewise.
19925 (reload_combine_note_store): Likewise.
19926 (reload_combine_note_use): Likewise.
19927 * recog.c (peep2_reg_dead_p): Likewise.
19929 2015-05-19 Alan Modra <amodra@gmail.com>
19931 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
19932 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
19933 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
19935 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
19936 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
19937 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
19938 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
19940 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
19942 * config/mips/mips.md (JOIN_MODE): New mode iterator.
19943 (join2_load_Store<JOIN_MODE:mode>): New pattern.
19944 (join2_loadhi): Likewise.
19945 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
19946 load-load and store-stores.
19947 * config/mips/mips.opt (mload-store-pairs): New option.
19948 (TARGET_LOAD_STORE_PAIRS): New macro.
19949 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
19950 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
19951 * config/mips/mips.c (mips_load_store_bonding_p): New function.
19953 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
19955 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
19957 * dojump.c (do_compare_rtx_and_jump): Likewise.
19958 * expmed.c (emit_store_flag_1): Likewise.
19959 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
19960 * final.c (sprint_ul): Use std::reverse for reversing a string.
19961 * fold-const.c (extract_muldiv_1): Use std::swap.
19962 * genmodes.c (emit_mode_int_n): Likewise.
19963 * ifcvt.c (dead_or_predicable): Likewise.
19964 * ira-build.c (ira_merge_live_ranges): Likewise.
19965 (swap_allocno_copy_ends_if_necessary): Likewise.
19966 * ira.c (ira_setup_alts): Likewise.
19967 * loop-iv.c (iv_analyze_expr): Likewise.
19968 (implies_p): Likewise.
19969 (canon_condition): Likewise.
19970 * lra-constraints.c (swap_operands): Likewise.
19971 * lra-lives.c (lra_merge_live_ranges): Likewise.
19972 * omega.c (swap): Remove.
19974 (omega_unprotect_1): Use std::swap.
19975 (omega_solve_geq): Likewise.
19976 * optabs.c (expand_binop_directly): Likewise.
19977 (expand_binop): Likewise.
19978 (emit_conditional_move): Likewise.
19979 (emit_conditional_add): Likewise.
19980 * postreload.c (reload_cse_simplify_operands): Likewise.
19981 * reg-stack.c (emit_swap_insn): Likewise.
19982 (swap_to_top): Likewise.
19983 (compare_for_stack_reg): Likewise.
19984 (subst_asm_stack_regs): Likewise.
19985 * reload.c (find_reloads): Likewise.
19986 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
19987 * sel-sched.c (invoke_reorder_hooks): Likewise.
19988 (create_block_for_bookkeeping): Likewise.
19989 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
19990 (lambda_matrix_right_hermite): Use std::swap.
19991 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
19992 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
19993 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
19994 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
19995 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
19996 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
19997 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
19998 * tree-vrp.c (compare_ranges): Likewise.
19999 * var-tracking.c (add_with_sets): Likewise.
20000 (vt_find_locations): Likewise.
20002 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
20004 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
20006 (FBSD_ENDFILE_SPEC): Likewise.
20007 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
20008 config/freebsd-spec.h.
20009 (ENDFILE_SPEC): Likewise.
20011 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
20012 Richard Henderson <rth@redhat.com>
20015 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
20016 Check for a memory location that is not a reference (using an AND)
20017 to an unaligned location here.
20018 * config/alpha/predicates.md (normal_memory_operand): Remove.
20020 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
20022 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
20023 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
20025 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
20027 * config/mips/mips.c (micromips_globals): New variable.
20028 (mips_set_compression_mode): Save and reinitialize target-dependent
20029 state for microMIPS.
20031 2015-05-18 Martin Liska <mliska@suse.cz>
20033 * dbgcnt.def: Add new counter.
20034 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
20036 2015-05-18 Martin Liska <mliska@suse.cz>
20038 * dbgcnt.def: Sort counters.
20039 * opts.c (common_handle_option): Do not compile if
20040 -fdbg-cnt-list is enabled.
20042 2015-05-18 Tom de Vries <tom@codesourcery.com>
20044 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
20045 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
20046 address operator to va_list operand.
20047 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
20049 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
20051 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
20052 * config/s390/s390.c (s390_gimplify_va_arg): Same.
20053 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
20055 2015-05-18 Tom de Vries <tom@codesourcery.com>
20057 * tree-ssa-tail-merge.c: Fix whitespace.
20059 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
20061 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
20062 cortex-a17, and cortex-a17.cortex-a7.
20064 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
20067 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
20069 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
20072 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
20073 QImode inner modes for TARGET_AVX512BW. Force mask operand
20074 to a register for AVX512F modes.
20076 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20078 * toplev.c (emit_debug_global_declarations): Do not output debug info
20079 when doing slim LTO objects.
20081 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20083 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
20084 odr_types_equivalent_p): Declare.
20085 (odr_type_p): Use gcc_checking_assert.
20086 (type_in_anonymous_namespace_p) Declare.
20087 (type_with_linkage_p): Declare.
20088 * common.opt (Wlto-type-mismatch): New warning.
20089 * ipa-devirt.c (compound_type_base): New function.
20090 (odr_or_derived_type_p): New function.
20091 (odr_types_equivalent_p): New function.
20092 (add_type_duplicate): Simplify.
20093 (type_with_linkage_p): Add hack to prevent false positives on C types
20094 (type_in_anonymous_namespace_p): Likewise.
20095 * tree.c (need_assembler_name_p): Use type_with_linkage.
20096 * tree.h (type_in_anonymous_namespace_p): Remove.
20097 * doc/invoke.texi (-Wlto-type-mismatch): Document
20099 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20101 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
20102 (verify_type): Verify STRING_FLAG.
20104 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
20107 * tree-pretty-print.c (percent_K_format): Replace locus pointer
20108 with accessor function.
20109 * tree-diagnostic.c (diagnostic_report_current_function): Use
20110 diagnostic_location function.
20111 (maybe_unwind_expanded_macro_loc): Likewise.
20112 (virt_loc_aware_diagnostic_finalizer): Likewise.
20113 (default_tree_printer): Replace locus pointer with accessor function.
20114 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
20115 (diagnostic_set_info_translated): Initialize second location.
20116 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
20117 (diagnostic_show_locus): Handle two locations. Call
20118 diagnostic_print_caret_line.
20119 (diagnostic_print_caret_line): New.
20120 (default_diagnostic_starter): Use diagnostic_location function.
20121 (diagnostic_report_diagnostic): Use diagnostic_location function.
20122 (verbatim): Do not set text.locus.
20123 * diagnostic.h (struct diagnostic_info): Remove location field.
20124 (struct diagnostic_context): Make caret_chars an array of two.
20125 (diagnostic_location): New inline.
20126 (diagnostic_expand_location): Handle two locations.
20127 (diagnostic_same_line): New inline.
20128 (diagnostic_print_caret_line): Declare.
20129 (CARET_LINE_MARGIN): New constant.
20130 * pretty-print.c (pp_printf): Do not set text.locus.
20131 (pp_verbatim): Do not set text.locus.
20132 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
20133 (struct text_info): Replace locus pointer with locations
20134 array. Add accessor functions.
20136 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
20137 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20140 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
20141 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
20142 large constants in register instead of splitting them.
20144 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
20147 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
20148 replacements in memory addresses.
20149 (get_unaligned_address): Ditto.
20151 2015-05-16 James Bowman <james.bowman@ftdichip.com>
20153 * config/ft32/*: New files for FT32 port.
20154 * doc/install.texi: Add FT32 information.
20155 * doc/invoke.texi: Add FT32 information.
20156 * doc/md.texi: Add FT32 information.
20157 * doc/contrib.texi: Self added.
20159 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
20161 PR tree-optimization/64454
20162 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
20163 (-1 - A -> ~A): Remove unnecessary condition.
20165 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
20167 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
20168 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
20169 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
20171 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
20173 * ipa-chkp.h (chkp_wrap_function): New.
20174 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
20175 (chkp_wrap_function_name): New.
20176 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
20177 to get wrapper name.
20178 * lto-cgraph.c: Include ipa-chkp.h.
20179 (input_cgraph_1): Avoid alias chain for wrappers.
20181 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
20183 PR middle-end/66134
20184 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
20185 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
20187 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20189 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
20190 (AARCH64_FL_SLOWMUL): Delete.
20191 (AARCH64_FL_CRC): Redefine to 1<<3.
20192 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
20194 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20196 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
20199 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
20201 * config/alpha/alpha.md (extendqidi2): Use general_operand
20202 instead of some_operand for operand[1] predicate.
20203 (extendhidi2): Ditto.
20204 (cbranchdi4): Use general_operand instead of some_operand
20205 for operand[1] and operands[2] predicates.
20206 (cstoredi4): Ditto.
20207 * config/alpha/predicates.md (some_operand): Remove unused predicate.
20208 (some_ni_operand): Ditto.
20210 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
20212 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
20213 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
20214 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
20215 low part of the constant using alpha_emit_set_const_1.
20216 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
20218 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
20220 * varasm.c (output_constant_pool_1): Pass down alignment from
20221 constant pool entry's descriptor to output_constant_pool_2.
20222 (output_object_block): Add comment prior to call to
20223 output_constant_pool_1.
20225 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
20227 PR rtl-optimization/65862
20228 * target.def (ira_change_pseudo_allocno_class): New hook.
20229 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
20231 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
20232 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
20234 * ira-costs.c (find_costs_and_classes): Call the hook and change
20235 classes when it is necessary.
20236 * doc/tm.texi: Update.
20238 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
20240 * config/i386/i386.md (sibcall_memory): Check that register with
20241 callee address is not also used as one of the arguments, instead
20242 of checking that it is not live after the sibcall.
20243 (sibcall_pop_memory): Ditto.
20244 (sibcall_value_memory): Ditto.
20245 (sibcall_value_pop_memory): Ditto.
20247 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
20249 * generic-match-head.c (types_match): Handle non-types.
20250 * gimple-match-head.c (types_match): Likewise.
20251 * match.pd: Remove unnecessary TREE_TYPE for types_match.
20253 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
20255 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
20256 (csneg3<mode>_insn): Enable expansion of pattern.
20258 2015-05-14 Nick Clifton <nickc@redhat.com>
20260 * config/rl78/rl78.c (rl78_select_section): Select the correct
20261 default section based upon the category of the decl.
20263 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20265 PR rtl-optimization/30967
20266 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
20267 destination mode for the cost of scc patterns.
20269 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
20271 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
20272 using SWIM248 mode iterator.
20273 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
20274 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
20275 for operand[2] constraint.
20276 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
20278 2015-05-13 Jakub Jelinek <jakub@redhat.com>
20280 PR middle-end/66133
20281 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
20282 make sure it is never noreturn, even when the task body does not
20284 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
20285 right before GIMPLE_OMP_RETURN.
20286 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
20287 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
20288 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
20290 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20292 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
20293 * tree-ssa-math-opts.c: Include params.h
20294 (pow_synth_sqrt_info): New struct.
20295 (representable_as_half_series_p): New function.
20296 (get_fn_chain): Likewise.
20297 (print_nested_fn): Likewise.
20298 (dump_fractional_sqrt_sequence): Likewise.
20299 (dump_integer_part): Likewise.
20300 (expand_pow_as_sqrts): Likewise.
20301 (gimple_expand_builtin_pow): Use above to attempt to expand
20302 pow as series of square roots. Removed now unused variables.
20304 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
20306 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
20307 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
20308 Remove *p0 and *p1 arguments. Rewrite function.
20309 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
20310 (alpha_split_const_mov): Update calls to alpha_extract_integer and
20311 alpha_emit_set_long_const.
20312 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
20313 (alpha_output_mi_thunk_osf): Ditto.
20314 * config/alpha/alpha.md (movti): Do not check operands[1]
20317 2015-05-13 Richard Biener <rguenther@suse.de>
20319 PR tree-optimization/66129
20320 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
20322 (vect_schedule_slp_instance): Fix typo.
20324 2015-05-13 David Malcolm <dmalcolm@redhat.com>
20326 * common.opt (fdump-internal-locations): New option.
20327 * input.c: Include diagnostic-core.h.
20328 (get_end_location): New function.
20329 (write_digit): New function.
20330 (write_digit_row): New function.
20331 (dump_location_range): New function.
20332 (dump_labelled_location_range): New function.
20333 (dump_location_info): New function.
20334 * input.h (dump_location_info): New prototype.
20335 * toplev.c (compile_file): Handle flag_dump_locations.
20337 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
20339 * gimple-expr.h (is_gimple_constant): Reorder.
20340 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
20342 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20344 * combine.c (simplify_set): When generating a CC set, if the
20345 source already is in the correct mode, do not wrap it in a
20346 compare. Simplify the rest of that code.
20348 2015-05-13 Richard Biener <rguenther@suse.de>
20350 PR tree-optimization/66123
20351 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
20354 2015-05-13 Richard Biener <rguenther@suse.de>
20356 PR middle-end/66110
20357 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
20359 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
20361 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20363 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
20364 * aclocal.m4: Regenerated with automake-1.11.6.
20366 2015-05-13 Tom de Vries <tom@codesourcery.com>
20368 PR tree-optimization/66010
20369 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
20370 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
20371 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
20372 and rval based on do_deref.
20374 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20377 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
20378 link time constants into adress expressions and therefore set
20381 2015-05-13 Jakub Jelinek <jakub@redhat.com>
20384 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
20385 Use SWI248 iterator instead of SWI.
20386 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
20387 Use eq_attr "alternative" "0" instead of match_test in
20388 length_immediate attribute computation.
20389 (*mulvhi4, *mulvhi4_1): New define_insns.
20392 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
20393 SIGNED to get precision of non-negative value.
20395 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20398 * function.c (diddle_return_value_1): Process bounds first.
20399 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
20402 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20404 PR rtl-optimization/64616
20405 * loop-invariant.c (can_move_invariant_reg): New.
20406 (move_invariant_reg): Call above new function to decide whether
20407 instruction can just be moved, skipping creation of temporary
20410 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
20412 PR target/pr66047.c
20413 * i386.c (ix86_function_sseregparm): Only return -1 if local function
20414 with implied regparm is called from -mno-sse function.
20415 (init_cumulative_args): Output error if ix86_function_sseregparm
20416 return -1 and SSE register would be needed.
20417 (function_arg_advance_32): Likewise.
20418 (function_arg_32): Likewise.
20419 * i386.h (ix86_args): Add decl field.
20421 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
20424 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
20425 inlines across optimization boundary.
20427 2015-05-12 Jason Merrill <jason@redhat.com>
20429 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
20430 string literal and macro name.
20432 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
20434 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
20435 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
20436 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
20438 2015-05-12 David Malcolm <dmalcolm@redhat.com>
20440 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
20441 (-Wmisleading-indentation): New option.
20442 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
20444 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
20446 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
20447 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
20448 (alpha_extract_integer): Ditto.
20449 (alpha_legitimate_constant_p): Ditto.
20450 (alpha_split_tmode_pair): Ditto.
20451 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
20452 (alpha_expand_mov): Ditto.
20453 (print_operand): Remove handling of 'H' modifier.
20454 <case 'm'>: Remove CONST_DOUBLE handling.
20455 (summarize_insn): Handle CONST_WIDE_INT.
20456 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
20458 (movti): Handle CONST_WIDE_INT.
20459 * config/alpha/constraints.md ('H'): Remove constraint definition.
20460 ('G'): Do not match MODE_FLOAT class.
20461 * config/alpha/predicates.md (const0_operand): Also match
20463 (non_add_const_operand): Ditto.
20464 (non_zero_const_operand): Ditto.
20465 (some_operand): Ditto.
20466 (input_operand): Ditto. Handle CONST_WIDE_INT.
20467 (and_operand): Do not match const_double.
20468 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
20470 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
20473 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
20474 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
20475 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
20476 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
20477 is_mm_seq_cst, is_mm_sync): New accessor functions.
20478 * builtins.c (expand_builtin_sync_operation,
20479 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
20480 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
20481 (get_memmodel, expand_builtin_atomic_compare_exchange,
20482 expand_builtin_atomic_load, expand_builtin_atomic_store,
20483 expand_builtin_atomic_clear): Use new accessor routines.
20484 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
20485 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
20486 (maybe_emit_sync_lock_test_and_set): Use new accessors and
20487 MEMMODEL_SYNC_ACQUIRE.
20488 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
20489 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
20490 expand_atomic_store): Use new accessors.
20491 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
20492 * tsan.c (instrument_builtin_call): Update check for memory model beyond
20493 final enum to use MEMMODEL_LAST.
20494 * c-family/c-common.c: Use new accessor for memmodel_base.
20495 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
20497 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
20498 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
20499 mem_thread_fence, *dmb): Likewise.
20500 * config/alpha/alpha.c (alpha_split_compare_and_swap,
20501 alpha_split_compare_and_swap_12): Likewise.
20502 * config/arm/arm.c (arm_expand_compare_and_swap,
20503 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
20504 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
20505 atomic_loaddi): Likewise.
20506 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
20508 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
20509 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
20511 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
20512 atomic_store<mode>, atomic_compare_and_swap<mode>,
20513 atomic_exchange<mode>): Use new accessors.
20514 * config/mips/mips.c (mips_process_sync_loop): Likewise.
20515 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
20516 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
20517 rs6000_post_atomic_barrier): Add new cases.
20518 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
20519 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
20520 (atomic_load<mode>): Add new cases and use new accessors.
20521 (store_quadpti): Add new cases.
20522 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
20524 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
20525 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
20528 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
20530 * ipa-devirt.c (type_with_linkage_p): New function.
20531 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
20533 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
20534 (can_be_name_hashed_p): Simplify.
20535 (hash_odr_name): Check that type has linkage before checking if it is
20537 (types_same_for_odr): Likewise.
20538 (odr_name_hasher::equal): Likewise.
20539 (odr_subtypes_equivalent_p): Likewise.
20540 (warn_types_mismatch): Likewise.
20541 (get_odr_type): Likewise.
20542 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
20543 * ipa-utils.h (odr_type_p): Move offline.
20544 * tree.c (need_assembler_name_p): Fix handling of types
20546 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
20548 2015-05-12 David Malcolm <dmalcolm@redhat.com>
20550 * timevar.c (timevar_enable): Delete in favor of...
20551 (g_timer): New global.
20552 (struct timevar_def): Move to timevar.h inside class timer.
20553 (struct timevar_stack_def): Likewise.
20554 (timevars): Delete global in favor of field "m_timevars" within
20555 class timer in timevar.h
20556 (stack): Likewise, in favor of field "m_stack".
20557 (unused_stack_instances): Likewise, in favor of field
20558 "m_unused_stack_instances".
20559 (start_time): Likewise, in favor of field "m_start_time".
20560 (get_time): Eliminate check for timevar_enable.
20561 (timer::timer): New function, built from part of timevar_init.
20562 (timevar_init): Rewrite idempotency test from using
20563 "timevar_enable" bool to using dynamic allocation of "g_timer".
20564 Move rest of implementation into timer's constructor.
20565 (timevar_push_1): Rename to...
20566 (timer::push): ...this, adding "m_" prefixes to variables that
20567 are now fields of timer.
20568 (timevar_pop_1): Likewise, rename to...
20569 (timer::pop): ...this, and add "m_" prefixes.
20570 (timevar_start): Replace test for "timevar_enable" with one for
20571 "g_timer", and move bulk of implementation to...
20572 (timer::start): ...here, adding "m_" prefixes.
20573 (timevar_stop): Likewise, from here...
20574 (timer::stop): ...to here.
20575 (timevar_cond_start): Likewise, from here...
20576 (timer::cond_start): ...to here.
20577 (timevar_cond_stop): Likewise, from here...
20578 (timer::cond_stop): ...to here.
20579 (validate_phases): Rename to...
20580 (timer::validate_phases): ...this, and add "m_" prefixes. Make
20581 locals "total" and "tv" const.
20582 (timevar_print): Rename to...
20583 (timer::print): ...this, and add "m_" prefixes. Make locals
20584 "total" and "tv" const. Eliminate test for timevar_enable.
20585 * timevar.h (timevar_enable): Eliminate.
20586 (g_timer): New declaration.
20587 (timevar_push_1): Eliminate.
20588 (timevar_pop_1): Eliminate.
20589 (timevar_print): Eliminate.
20590 (class timer): New class.
20591 (timevar_push): Rewrite to use g_timer.
20592 (timevar_pop): Likewise.
20593 * toplev.c (toplev::~toplev): Likewise.
20595 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
20597 * arm-protos.h (arm_sched_autopref): Delete.
20598 (tune_params): Re-organize, use enums for flag values.
20599 (FUSE_OPS): New macro.
20600 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
20601 (ARM_PREFETCH_BENEFICIAL): Likewise.
20602 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
20603 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
20604 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
20605 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
20606 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
20607 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
20608 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
20609 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
20611 (arm_option_override, thumb2_reorg, arm_print_tune_info)
20612 (aarch_macro_fusion_pair_p): Update uses of current_tune.
20613 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
20615 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
20617 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
20620 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
20621 Sandra Loosemore <sandra@codesourcery.com>
20623 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
20625 (REG_CLASS_NAMES): Add "IJMP_REGS".
20626 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
20627 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
20628 use new "c" register constraint.
20629 * config/nios2/constraint.md (c): New register constraint
20630 corresponding to IJMP_REGS.
20632 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
20634 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
20635 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
20636 define_splits): Delete, revamp, transmogrify into ...
20637 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20638 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20639 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20642 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
20644 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
20645 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
20647 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
20649 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
20650 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
20651 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
20652 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
20653 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
20654 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
20655 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
20656 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
20657 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
20658 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20659 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
20660 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
20661 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
20662 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
20663 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
20664 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
20665 and 30 corresponding splitters): Delete.
20667 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
20669 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
20672 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
20674 * combine.c (recog_for_combine_1): New function, factored out
20675 from recog_for_combine.
20676 (change_zero_ext): New function.
20677 (recog_for_combine): If recog fails, try again with the pattern
20678 modified by change_zero_ext; if that still fails, restore the
20681 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
20683 * combine.c (get_undo_marker): New function.
20684 (undo_to_marker): New function, largely factored out from ...
20685 (undo_all): ... this. Adjust.
20687 2015-05-12 Richard Biener <rguenther@suse.de>
20689 PR tree-optimization/66101
20690 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
20691 fixup if we turn a loop exit edge to a fallthru edge.
20693 2015-05-12 Richard Biener <rguenther@suse.de>
20695 PR tree-optimization/37021
20696 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
20697 (SLP_TREE_TWO_OPERATORS): New define.
20698 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
20699 SLP_TREE_TWO_OPERATORS.
20700 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
20702 (vect_build_slp_tree): Adjust.
20703 (vect_analyze_slp_cost_1): Likewise.
20704 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
20705 emitting two vector stmts and mixing the results.
20707 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
20709 * call.c (print_z_candidates): Remove dead code.
20711 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20713 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
20714 and zEC12_simple_fp.
20715 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
20718 2015-05-12 Tom de Vries <tom@codesourcery.com>
20720 PR tree-optimization/66010
20721 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
20723 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
20724 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
20725 va_lists are passed, and remove corresponding handling.
20726 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
20727 do_deref argument to ifn_va_arg.
20728 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
20731 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20734 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
20735 REG before taking its REGNO.
20737 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
20739 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
20740 rsp->sign_bit_copies and rsp->nonzero_bits into ...
20741 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
20742 present to get more accurate information about the number of sign bit
20743 copies and non zero bits.
20745 2015-05-12 Richard Biener <rguenther@suse.de>
20747 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
20748 do not allow unrolling.
20750 2015-05-11 Richard Henderson <rth@redhat.com>
20752 * config/i386/i386-modes.def (CCP): New.
20753 * config/i386/i386.c (put_condition_code): Handle it.
20754 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
20756 2015-05-11 Richard Henderson <rth@redhat.com>
20758 * target.def (md_asm_clobbers): Replace with...
20759 (md_asm_adjust): this.
20760 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
20761 (TARGET_MD_ASM_ADJUST): New.
20762 * tm.texi: Rebuild.
20763 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
20764 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
20765 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
20767 * cfgexpand.c (check_operand_nalternatives): Accept vector of
20768 constraints instead of lists of outputs and inputs.
20769 (expand_asm_stmt): Save and restore input_location around the
20770 body of the function. Move asm data into vectors instead of
20771 building tree lists. Generate cleanup sequences as needed,
20772 rather than waiting til the end. Use new md_asm_adjust hook.
20774 * config/vxworks.c: Include vec.h before target.h.
20775 * gimple.c: Likewise.
20776 * incpath.c: Likewise.
20777 * mode-switching.c: Likewise.
20779 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
20780 (cris_md_asm_adjust): this.
20781 (TARGET_MD_ASM_CLOBBERS): Remove.
20782 (TARGET_MD_ASM_ADJUST): New.
20783 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
20784 (ix86_md_asm_adjust): this.
20785 (TARGET_MD_ASM_CLOBBERS): Remove.
20786 (TARGET_MD_ASM_ADJUST): New.
20787 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
20788 (mn10300_md_asm_adjust): this.
20789 (TARGET_MD_ASM_CLOBBERS): Remove.
20790 (TARGET_MD_ASM_ADJUST): New.
20791 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
20792 (rs6000_md_asm_adjust): this.
20793 (TARGET_MD_ASM_CLOBBERS): Remove.
20794 (TARGET_MD_ASM_ADJUST): New.
20795 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
20796 (visium_md_asm_adjust): this.
20797 (TARGET_MD_ASM_CLOBBERS): Remove.
20798 (TARGET_MD_ASM_ADJUST): New.
20800 2015-05-11 Richard Henderson <rth@redhat.com>
20802 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
20803 if noutputs is zero.
20804 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
20806 * cfgexpand.c (expand_asm_operands): Merge into...
20807 (expand_asm_stmt): ... here.
20809 * cfgexpand.c (expand_asm_operands): Don't call
20810 resolve_asm_operand_names.
20811 * stmt.c (resolve_asm_operand_names): Clarify block comment.
20813 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
20815 * dwarf2out.c (gen_member_die): Sanity check that we access
20816 TYPE_MAIN_VARIANT for TYPE_METHODS.
20817 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
20818 checking TYPE_METHODS.
20819 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
20821 (build_distinct_type_copy): Clear TYPE_METHODS.
20822 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
20823 (verify_type): Allow TYPE_METHODS to be error_mark_node.
20824 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
20826 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
20828 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
20829 (emit_pattern_before_setloc): Likewise.
20831 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
20833 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
20834 for define_peephole2s.
20835 (get_peephole2_pattern): New function.
20836 (main): Use it. Call validate_pattern.
20838 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20840 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
20841 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
20842 (Last callee saved reg is different for AVR_TINY architecture)
20844 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
20846 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
20847 when looking for memory references.
20849 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
20852 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
20853 via function pointers.
20855 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
20857 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
20858 indirect call by forcing address into a pseudo with -fno-plt.
20859 * common.opt (flag_plt): New option.
20860 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
20861 ([-fno-plt]): Document.
20863 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
20866 * config/rs6000/option-defaults.h: Add space between string literal
20869 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
20871 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
20872 accross ARM targets.
20874 2015-05-11 Christian Bruel <christian.bruel@st.com>
20876 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
20877 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
20879 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
20881 PR rtl-optimization/66076
20882 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
20883 Don't grow the heap array if it is already big enough from a
20884 previous iteration.
20886 2015-05-11 Christian Bruel <christian.bruel@st.com>
20888 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
20889 (is_called_in_ARM_mode): Remove.
20890 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
20891 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
20892 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
20893 arm_declare_function_name.
20895 2015-05-11 Christian Bruel <christian.bruel@st.com>
20897 * config/arm/arm.c (arm_option_override): Reoganized and split into :
20898 (arm_option_params_internal); New function.
20899 (arm_option_check_internal): New function.
20900 (arm_option_override_internal): New function.
20901 (thumb_code, thumb1_code): Remove.
20902 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
20903 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
20904 (thumb_code, thumb1_code): Remove.
20905 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
20907 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
20909 * config/alpha/alpha.c (alpha_emit_set_const_1)
20910 (alpha_emit_set_long_const, alpha_extract_integer)
20911 (alpha_legitimate_constant_p, alpha_split_const_mov)
20912 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
20913 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20914 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
20916 * config/alpha/predicates.md (mode_mask_operand): Do not match
20918 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20919 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
20920 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
20921 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20922 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
20924 2015-05-11 Jakub Jelinek <jakub@redhat.com>
20927 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
20928 default_binds_local_p_2.
20929 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
20930 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
20932 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
20934 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
20936 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
20938 Patch by Richard Biener
20939 * coverage.c (coverage_obj_init): Delay building of type variant
20940 until the type is finished.
20942 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
20944 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
20945 mismatch between C and C++ type; compoare correctly ARG_TYPES
20946 for non-prototypes and output correctly parameter index for METHOD_TYPE.
20947 (odr_types_equivalent_p): Fix wording of warning about attributes;
20948 it is OK to match prototype and non-prototype.
20950 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
20952 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
20953 TYPE_ARG_TYPES list.
20954 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
20955 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
20957 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
20959 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
20960 * tree.h (is_lang_specific): Constify.
20962 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
20964 PR tree-optimization/64454
20965 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
20968 2015-05-08 Jason Merrill <jason@redhat.com>
20970 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
20971 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
20972 config/darwin.h, config/darwin9.h, config/elfos.h,
20973 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
20974 config/microblaze/microblaze.h, config/mips/mips.h,
20975 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
20976 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
20977 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
20978 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
20979 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
20980 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
20981 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
20982 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
20983 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
20984 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
20985 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
20986 between string literal and macro name.
20988 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20990 * jump.c: Change argument types to rtx_insn *.
20993 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20995 * lra-constraints.c: Change argument type to rtx_insn *.
20997 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20999 * df-problems.c: Change argument type to rtx_insn *.
21001 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21003 * combine.c: Change argument type to rtx_insn *.
21005 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21008 * rtlanal.c: Change argument type to rtx_insn *.
21010 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21012 * sched-deps.c: Change argument types to rtx_insn *.
21013 * sched-int.h: Adjust.
21015 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21017 * dwarf2cfi.c: Change argument type to rtx_insn *.
21019 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21021 * ira.c (decrease_live_ranges_number): Changetype of local
21022 variable to rtx_insn *.
21023 * recog.c: Change argument types to rtx_insn *.
21026 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21028 * reorg.c: Change argument types to rtx_insn *.
21030 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21032 * ira-color.c: Change argument types to rtx_insn *.
21033 * lra-eliminations.c: Likewise.
21036 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21038 * gcse.c: Change argument types to rtx_insn *.
21040 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21042 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
21044 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21046 * emit-rtl.c (emit_debug_insn_before): Change argument type to
21050 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21052 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
21055 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21057 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
21060 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21062 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
21065 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21067 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
21070 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21072 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
21076 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21078 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
21082 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21084 * except.c (can_nonlocal_goto): Change type of argument to
21088 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21090 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
21093 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21095 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
21096 * cfgrtl.c (can_delete_label_p): Adjust.
21099 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21101 * reorg.c (stop_search_p): Change argument to rtx_insn *.
21103 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21105 * except.c (make_reg_eh_region_note): Change argument to
21107 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
21108 * except.h: Adjust.
21110 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21112 * mode-switching.c (commit_mode_sets): Change type of local
21113 variable from rtx to rtx_insn *.
21115 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
21117 * doc/install.texi (--enable-languages): Add missing jit and lto info.
21118 Add ^ to grep command.
21119 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
21120 arg to last gimple_simplify declaration. Add missing gimple_build
21121 declaration for built-in function case with four tree args.
21123 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
21124 Szabolcs Nagy <szabolcs.nagy@arm.com>
21126 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
21127 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
21128 (GNU_USER_DYNAMIC_LINKERN32): Update.
21130 2015-05-08 Richard Biener <rguenther@suse.de>
21132 PR tree-optimization/66036
21133 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21134 Handle strided group loads.
21135 (vect_verify_datarefs_alignment): Likewise.
21136 (vect_enhance_data_refs_alignment): Likewise.
21137 (vect_analyze_group_access): Likewise.
21138 (vect_analyze_data_ref_access): Likewise.
21139 (vect_analyze_data_ref_accesses): Likewise.
21140 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
21141 (vectorizable_load): Likewise.
21143 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
21145 * config/rs6000/rs6000.md: Require operand inequality in one
21148 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
21149 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21151 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
21153 * config/rx/rx.md (movdi, movdf): Likewise.
21154 Likewise for define_peephole2s.
21156 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21158 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
21159 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
21160 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
21161 vtst_u64): Rewrite using gcc vector extensions.
21163 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21165 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
21166 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
21168 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21170 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
21172 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
21174 * config/glibc-stdint.h (OPTION_MUSL): Define.
21175 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
21176 Change the definition based on OPTION_MUSL for 64 bit targets.
21177 * config/linux.h (OPTION_MUSL): Redefine.
21178 * config/alpha/linux.h (OPTION_MUSL): Redefine.
21179 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
21180 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
21182 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
21183 Szabolcs Nagy <szabolcs.nagy@arm.com>
21185 * config.gcc (LIBC_MUSL): New tm_defines macro.
21186 * config/linux.h (OPTION_MUSL): Define.
21187 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
21188 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
21189 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21190 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21191 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21192 * config/linux.opt (mmusl): New option.
21193 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
21194 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21195 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21196 * configure: Regenerate.
21198 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
21199 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21202 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
21203 * config/i386/knetbsd-gnu64.h: New file.
21205 2015-05-08 Marek Polacek <polacek@redhat.com>
21208 * doc/invoke.texi: Document -Woverride-init-side-effects.
21210 2015-05-07 Marek Polacek <polacek@redhat.com>
21213 * doc/invoke.texi: Document -Wshift-negative-value.
21215 2015-05-06 Aditya Kumar <hiraditya@msn.com>
21217 * gcov-tool.c (do_merge): Refactore to remove int ret.
21218 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
21219 !type == FUNC to type != FUNC.
21220 * reload.h (struct target_reload): Changee to type of
21221 x_spill_indirect_levels from bool to unsigned char.
21223 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
21225 * rtl.h (always_void_p): New function.
21226 * gengenrtl.c (always_void_p): Likewise.
21227 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
21228 with code foo are always VOIDmode.
21229 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
21230 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
21231 compare-elim.c, config/aarch64/aarch64.c,
21232 config/aarch64/aarch64.md, config/alpha/alpha.c,
21233 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
21234 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
21235 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
21236 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21237 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
21238 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
21239 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
21240 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
21241 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
21242 config/ia64/vect.md, config/iq2000/iq2000.c,
21243 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
21244 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
21245 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
21246 config/mep/mep.c, config/microblaze/microblaze.c,
21247 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
21248 config/mn10300/mn10300.c, config/msp430/msp430.c,
21249 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
21250 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
21251 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
21252 config/rs6000/altivec.md, config/rs6000/rs6000.c,
21253 config/rs6000/rs6000.md, config/rs6000/vector.md,
21254 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
21255 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
21256 config/sh/sh.md, config/sh/sh_treg_combine.cc,
21257 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
21258 config/spu/spu.md, config/stormy16/stormy16.c,
21259 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
21260 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
21261 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
21262 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
21263 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
21264 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
21265 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
21266 var-tracking.c: Update calls accordingly.
21268 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
21271 PR middle-end/54303
21272 * varasm.c (function_mergeable_rodata_prefix): New function.
21273 (mergeable_string_section): Use it.
21274 (mergeable_constant_section): Use it.
21276 2015-05-07 Jeff Law <law@redhat.com>
21279 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
21280 simplifier to narrow arithmetic.
21281 * generic-match-head.c: (types_match, single_use): New functions.
21282 * gimple-match-head.c: (types_match, single_use): New functions.
21284 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21286 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
21289 2015-05-07 Richard Biener <rguenther@suse.de>
21291 PR tree-optimization/66002
21292 * passes.def: Schedule another pass_merge_phi after ifcombine, right
21295 2015-05-07 Marek Polacek <polacek@redhat.com>
21296 Martin Uecker <uecker@eecs.berkeley.edu>
21298 * doc/invoke.texi: Document -fsanitize=bounds-strict.
21299 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
21300 into SANITIZE_NONDEFAULT.
21301 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
21303 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
21306 * config/alpha/alpha.c (alpha_override_options_after_change): New.
21307 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
21308 (alpha_override_options): Move align_loops, align_jumps and
21309 align_functions handling into alpha_override_options_after_change.
21311 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
21312 Chris Jones <chrisj@nvidia.com>
21313 Joshua Conner <jconner@nvidia.com>
21315 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
21316 linking of crtfastmath.o.
21317 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
21319 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
21321 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
21322 (cstore<mode>4_unsigned_imm): New expander.
21323 (cstore<mode>4): Remove empty constraint strings. Use the new
21326 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
21329 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
21332 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21334 * config/aarch64/geniterators.sh: Use standard BRE in sed.
21336 2015-05-06 Alan Modra <amodra@gmail.com>
21339 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
21340 (UNSPEC_NOP): Define.
21341 (reload_vsx_from_gpr<mode>): Add missing DONE.
21342 (reload_gpr_from_vsx<mode>): Likewise.
21343 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
21344 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
21346 2015-05-06 Christian Bruel <christian.bruel@st.com>
21349 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
21350 align_jumps, align_functions into aarch64_override_options_after_change.
21352 2015-05-06 Richard Biener <rguenther@suse.de>
21354 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
21355 vect_transform_slp_perm_load to check if we support a permutation
21356 for basic-block vectorization.
21358 2015-05-06 Nick Clifton <nickc@redhat.com>
21360 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
21361 used, even if it is not being used as a frame pointer.
21363 2015-05-05 Jason Merrill <jason@redhat.com>
21365 * dwarf2out.c (gen_member_die): Don't emit anything for an
21366 anonymous class constructor.
21368 2015-05-05 David Malcolm <dmalcolm@redhat.com>
21370 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
21371 that it reflects the block structure.
21372 (afdo_propagate_edge): Likewise.
21373 (afdo_calculate_branch_prob): Likewise.
21374 (afdo_annotate_cfg): Likewise.
21375 * cfgcleanup.c (equal_different_set_p): Likewise.
21376 (try_crossjump_to_edge): Likewise.
21377 * cgraph.c (cgraph_node::verify_node): Likewise.
21378 * cgraphunit.c (expand_all_functions): Likewise.
21379 * config/i386/i386.c (ix86_expand_copysign): Likewise.
21380 (exact_dependency_1): Likewise.
21381 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
21382 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
21383 * gensupport.c (process_define_subst): Likewise.
21384 * lto-wrapper.c (merge_and_complain): Likewise.
21385 * tree-if-conv.c (if_convertible_bb_p): Likewise.
21386 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
21387 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
21388 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
21389 * tree-vect-loop.c (vectorizable_reduction): Likewise.
21390 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
21391 * tree-vect-stmts.c (vectorizable_shift): Likewise.
21392 * tree-vrp.c (vrp_finalize): Likewise.
21393 * tree.c (variably_modified_type_p): Likewise.
21395 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
21397 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
21398 on darwin12 and later.
21399 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
21400 file to pass -rdynamic on darwin12 and later.
21401 * config/darwin.opt (rdynamic): Add.
21403 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
21405 * doc/extend.texi (C Extensions): Update menu for moved Variable
21406 Attributes and Type Attributes sections.
21408 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
21411 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
21412 if rep_8byte stringop strategy was specified for 32-bit target.
21414 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
21417 * config/i386/i386.md (vector convert to float spltiter): Check for
21418 xmm16+, when splitting scalar float conversion.
21419 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
21421 2015-05-05 Nick Clifton <nickc@redhat.com>
21423 * config/msp430/msp430-opts.h (enum msp430_regions): New.
21424 * config/msp430/msp430.c (msp430_override_options): Complain if
21425 -mcode-region or -mdata-region is used on a non MSP430X.
21426 (msp430_section_attr): New function. Checks lower, upper and
21428 (msp430_attribute_table): Add lower, upper and either.
21429 (gen_prefix): New function. Generates a prefix for a section
21431 (msp430_select_section): New function - handles the choice of
21432 section for an object. Takes into account memory region
21433 attributes and options.
21434 (msp430_function_section): Use gen_prefix.
21435 (TARGET_SECTION_TYPE_FLAGS): Define.
21436 (msp430_section_type_flags): New function.
21437 (TARGET_ASM_UNIQUE_SECTION): Define.
21438 (msp430_unique_section): New function.
21439 (msp430_output_aligned_decl_common): New function.
21440 (msp430_do_not_relax_short_jumps): New function.
21441 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
21443 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21444 * config/msp430/msp430-protos.h
21445 (msp430_do_not_relax_short_jumps): New prototype.
21446 (msp430_output_aligned_decl_common): New prototype.
21447 * config/msp430/msp430.md (length): New attribute.
21448 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
21449 then use a long code sequence for short jumps.
21450 * config/msp430/msp430.opt (mcode-region): New.
21451 (mdata-region): New.
21452 * doc/invoke.texi: Document new options.
21453 * doc/extend.texi: Document new attributes.
21455 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
21457 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
21458 (tune_params): Add field branch_costs.
21459 (aarch64_branch_cost): Declare.
21460 * gcc/config/aarch64.c (generic_branch_cost): New.
21461 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
21462 (cortexa53_tunings): Likewise.
21463 (cortexa57_tunings): Likewise.
21464 (thunderx_tunings): Likewise.
21465 (xgene1_tunings): Likewise.
21466 (aarch64_branch_cost): Define.
21467 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
21469 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
21471 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
21472 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
21473 * config/i386/i386.md: Ditto.
21474 * config/i386/winnt.c: Ditto.
21476 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
21478 * doc/extend.texi (__atomic Builtins): Move implementation details
21479 to the end of the description, rewrite opening paragraphs, state
21480 difference with __sync builtins, state C11/C++11 assumptions,
21481 weaken itemized descriptions, add explanation of memory model
21482 behaviour, expand description of compare-exchange, simplify text.
21484 2015-05-05 Renlin Li <renlin.li@arm.com>
21486 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
21488 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
21490 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
21491 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
21492 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
21493 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
21494 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
21495 * configure: Regenerate.
21496 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
21497 * doc/install.texi (aarch64*-*-*): Document new
21498 --enable-fix-cortex-a53-843419 option.
21499 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
21500 and -mno-fix-cortex-a53-843419 options.
21502 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
21505 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
21507 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
21509 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
21510 fix overactive TYPE_MIN_VALUE check and add FIXME for type
21511 compatibility problems.
21513 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
21515 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
21517 (cbranchsi4_reg): New.
21518 * config/microblaze/microblaze.c
21519 (microblaze_expand_conditional_branch_reg): New.
21520 * config/microblaze/microblaze-protos.h
21521 (microblaze_expand_conditional_branch_reg): New prototype.
21523 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
21525 * config/microblaze/microblaze.md (peephole2): New.
21527 2015-05-04 Jeff Law <law@redhat.com>
21530 2015-05-04 Jeff Law <law@redhat.com>
21532 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
21533 simplifier to narrow arithmetic.
21534 * generic-match-head.c: (types_match, single_use): New functions.
21535 * gimple-match-head.c: (types_match, single_use): New functions.
21537 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
21540 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
21541 (split_branches): Likewise.
21543 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
21545 * common.opt (fdelete-null-pointer-checks): Init to -1.
21546 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
21547 override flag_delete_null_pointer_checks default.
21548 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
21549 behavior re address zero. Better document target-specific behavior.
21550 (-fisolate-errneous-paths-dereference): Mention relationship to
21551 -fdelete-null-pointer-checks.
21553 2015-05-04 Jakub Jelinek <jakub@redhat.com>
21555 PR tree-optimization/65984
21556 * ubsan.c: Include tree-cfg.h.
21557 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
21558 stmt_could_throw_p test, rename can_throw variable to ends_bb.
21560 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
21562 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
21563 to CONST_DOUBLE_P predicate.
21564 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
21565 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
21566 allow only operands that satisfy standard_sse_constant_p predicate.
21567 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
21568 to CONST_DOUBLE_P predicate.
21570 2015-05-04 Jeff Law <law@redhat.com>
21572 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
21573 simplifier to narrow arithmetic.
21574 * generic-match-head.c: (types_match, single_use): New functions.
21575 * gimple-match-head.c: (types_match, single_use): New functions.
21577 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
21579 * config/arm/arm.c: Restore bootstrap.
21581 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
21583 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
21584 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
21585 as CONST_WIDE_INT, not CONST_DOUBLE.
21586 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
21587 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
21588 (ix86_find_base_term): Do not check for CONST_DOUBLE.
21589 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
21590 (ix86_build_signbit_mask): Rewrite using wide ints.
21591 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
21592 (ix86_rtx_costs): Handle CONST_WIDE_INT.
21593 (find_constant): Ditto.
21594 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
21595 using gen_int_mode.
21596 * config/i386/predicates.md (x86_64_immediate_operand)
21597 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
21598 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
21599 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
21600 (const0_operand): Also match const_wide_int.
21601 (constm1_operand): Ditto.
21602 (const1_operand): Ditto.
21604 2015-05-04 Richard Biener <rguenther@suse.de>
21606 PR tree-optimization/65965
21607 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
21608 store groups at gaps.
21610 2015-05-04 Richard Biener <rguenther@suse.de>
21612 PR tree-optimization/65935
21613 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
21614 then make sure to apply that swapping to the IL.
21616 2015-05-04 Jakub Jelinek <jakub@redhat.com>
21618 * Makefile.in (PATCHLEVEL_c): New variable.
21619 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
21620 expand the same way as if DEVPHASE_c was non-empty.
21622 2015-05-04 Kai Tietz <ktietz@redhat.com>
21625 * lto-wrapper.c (run_gcc): Open filename
21628 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
21630 * doc/extend.texi (Variable Attributes, Type Attributes): Move
21631 sections up in file, to immediately after the Function Attributes
21634 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
21636 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
21638 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21640 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
21641 (insert_partition_copy_on_edge): Adjust.
21642 (insert_rtx_to_part_on_edge): Likewise.
21643 (insert_part_to_rtx_on_edge): Likewise.
21645 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21647 * function.c (set_return_jump_label): Change type of argument to
21649 * function.h (set_return_jump_label): Adjust.
21651 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21653 * reload.h (struct reg_equivs_t): Change type of init to
21655 * ira.c (fix_reg_equiv_init): Adjust.
21656 * reload1.c (eliminate_regs_1): Likewise.
21657 (init_eliminable_invariants): Likewise.
21659 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21661 * cselib.c (fp_setter_insn): Take a rtx_insn *.
21662 * cselib.h (fp_setter_insn): Adjust.
21664 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21666 * recog.c (struct validate_replace_src_data): Change type of
21667 insn field to rtx_insn *.
21668 (validate_replace_src_group): Change type of argument to rtx_insn *.
21669 * recog.h (validate_replace_src_group): Adjust.
21671 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21673 * haifa-sched.c: Change the type of some variables to rtx_insn *.
21674 * sched-deps.c: Likewise.
21675 * sched-int.h: Likewise.
21676 * sched-rgn.c: Likewise.
21677 * sel-sched.c: Likewise.
21679 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21682 * config/i386/i386.c: Change the type of some arguments to
21684 * config/arm/arm.c: Likewise.
21686 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21688 * lra-constraints.c: Change type of some arguments to rtx_insn *.
21690 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21692 * regcprop.c (kill_autoinc_value): Change type of argument to
21695 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21697 * genrecog.c (print_subroutine): Adjust.
21698 * recog.c (get_bool_attr_mask_uncached): Likewise.
21699 * recog.h (struct recog_data_d): Change the type of insn to
21702 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21704 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
21706 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21708 * df-problems.c (df_set_note): Change type of argument to
21711 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21713 * builtins.c (expand_builtin_trap): Change type of local
21714 variable to rtx_insn *.
21715 (add_sched_insns_for_speculation): Likewise.
21716 (ix86_emit_save_regs): Likewise.
21717 (get_scratch_register_on_entry): Likewise.
21718 (ix86_emit_restore_reg_using_pop): Likewise.
21719 (ix86_emit_leave): Likewise.
21720 (ix86_emit_restore_regs_using_mov): Likewise.
21721 (ix86_expand_epilogue): Likewise.
21723 (rl78_alloc_physical_registers_umul): Likewise.
21724 * cselib.c (discard_useless_locs): Likewise.
21725 (cselib_invalidate_regno): Likewise.
21726 (cselib_invalidate_mem): Likewise.
21727 * function.c (expand_function_start): Likewise.
21728 (emit_use_return_register_into_block): Likewise.
21729 * gcse.c: Likewise.
21730 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
21731 * ifcvt.c (noce_get_alt_condition): Likewise.
21732 * loop-doloop.c (doloop_condition_get): Likewise.
21733 * lra-constraints.c (inherit_in_ebb): Likewise.
21734 * modulo-sched.c (sms_schedule_by_order): Likewise.
21735 * recog.c (next_insn_tests_no_inequality): Likewise.
21736 * reorg.c (emit_delay_sequence): Likewise.
21737 (update_reg_dead_notes): Likewise.
21738 (fix_reg_dead_note): Likewise.
21739 (fill_slots_from_thread): Likewise.
21740 (delete_computation): Likewise.
21742 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
21744 * doc/extend.texi (Variable Attributes): Add menu and proper
21745 @nodes to subsections. Move Microsoft Windows attributes to
21746 their own subsection.
21747 (Type Attributes): Reorganize introduction to remove duplicate
21748 list of attributes. Add menu and proper @nodes to subsections.
21749 Alphabetize the main table of common attributes.
21751 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
21753 * match.pd: New simplification patterns.
21754 (x + (x & 1)) -> ((x + 1) & ~1)
21755 (x & ~(x & y)) -> ((x & ~y))
21756 (x | ~(x | y)) -> ((x | ~y))
21758 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21760 * target.def (attribute_table): Mention that struct attribute_spec
21761 is defined in tree-core.h rather than tree.h
21762 * doc/tm.texi: Regenerate.
21764 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
21766 * genrecog.c (test): Rename to rtx_test. Update rest of file
21769 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
21771 PR translation/65959
21772 * params.h (DEFPARAM): Rename msgid to nocmsgid.
21774 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
21776 * gcc/config/aarch64/aarch64-protos.h (tune_params):
21777 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
21778 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
21779 Return value depending on target.
21780 (generic_tunings): Initialize new target settings.
21781 (cortexa53_tunings): Likewise.
21782 (cortexa57_tunings): Likewise.
21783 (thunderx_tunings): Likewise.
21784 (xgene1_tunings): Likewise.
21786 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
21788 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
21789 Make Cortex-A53 shift costs more accurate.
21791 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21793 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
21796 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
21798 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
21799 Calculate cost of op0 and op1 in PLUS and MINUS cases.
21801 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21803 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
21804 Add cost of op0 in the compare-with-fpzero case.
21806 2015-04-30 David Malcolm <dmalcolm@redhat.com>
21808 * builtins.c (fold_builtin_1): Remove spurious second
21810 * cgraph.h (symtab_node::get_availability): Likewise.
21811 * opts.c (common_handle_option): Remove spurious second semicolon.
21812 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
21813 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
21815 2015-04-30 Caroline Tice <cmtice@google.com>
21817 PR gcov-profile/65929
21818 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
21819 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
21820 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
21821 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
21822 * doc/tm.texi: Regenerate.
21823 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
21824 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
21825 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
21826 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
21828 2015-04-30 Marek Polacek <polacek@redhat.com>
21830 * varasm.c (handle_cache_entry): Fix logic.
21832 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21834 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
21835 (*extrsi5_insn_uxtw_alt): Likewise.
21836 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
21837 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
21840 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21842 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
21845 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21847 * config/aarch64/aarch64.md
21848 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
21849 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
21850 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
21851 appropriately. Handle alternative EON form.
21853 2015-04-30 Renlin Li <renlin.li@arm.com>
21855 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
21856 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
21858 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
21861 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
21862 -fstrict-aliasing boundaries.
21864 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21866 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
21867 and [SU]MNEGL patterns.
21869 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21871 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
21872 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
21873 combined arithmetic-shift ops. Properly handle all shift and extend
21874 operations that can occur in combination with PLUS/MINUS.
21875 Rename maybe_fma to compound_p.
21876 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
21877 arithmetic and shift operations.
21879 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21881 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
21882 rather than arith_shift cost when costing ADD/MINUS of an
21885 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
21888 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
21891 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
21893 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
21894 are for the same position.
21896 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
21898 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
21900 (vectorize_loops): Use it.
21902 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
21904 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
21905 for aggregate types.
21906 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
21907 type to be non_ODR.
21908 * tree.c (need_assembler_name_p): Compute mangled name for
21909 non-fundamental types and integer types.
21911 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
21913 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
21915 * expr.c (expand_expr_real_2): Likewise.
21917 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
21919 * tree.c (build_common_builtin_nodes): Do not build
21920 __builtin_alloca_with_align as equivalent of library alloca.
21922 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
21924 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
21925 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
21927 * tree.c: Include print-tree.h and ipa-utils.h
21928 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
21929 (free_lang_data_in_cgraph): Call verify_type.
21930 (verify_type_variant): New function.
21931 (verify_type): New function.
21932 * tree.h (verify_type): Declare.
21934 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
21936 * config/mips/mips-cpus.def: (mips4): Change default processor
21937 from PROCESSOR_R8000 to PROCESSOR_R10000.
21939 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
21941 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
21942 la/jalr instead of jal.
21944 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
21947 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
21948 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
21949 (setcc+movzbl peephole2): Check also clobbered reg.
21950 (setcc+andl peephole2): Ditto.
21952 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
21955 * config/nvptx/mkoffload.c (target_ilp32): New variable.
21956 (main): Set it depending on "-foffload-abi=[...]".
21957 (compile_native, main): Use it to pass "-m32" or "-m64" to the
21960 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
21963 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
21964 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
21965 Flip lane index back at assembly time for bigendian.
21967 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
21969 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
21970 * gimplify.c (gimplify_omp_workshare): Use it.
21972 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
21974 * Makefile.in (build/genrecog.o): Depend on inchash.h.
21975 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
21977 * genrecog.c: Rewrite most of the code except for the third page.
21979 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
21981 * inchash.h, inchash.c: Include bconfig.h for build objects.
21982 * Makefile.in (build/inchash.o): New rule.
21984 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
21987 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
21988 number in type attribute expression.
21990 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
21992 * loop-iv.c (canon_condition): Generalize to all types of integer
21995 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
21997 * gimple-walk.c: Prune duplicate or unneeded includes.
21998 (walk_gimple_asm): Only call parse_input_constraint or
21999 parse_output_constraint if their findings are used.
22000 Honour parse_input_constraint and parse_output_constraint
22003 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
22005 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
22007 2015-04-29 Tom de Vries <tom@codesourcery.com>
22009 PR tree-optimization/65893
22010 * passes.def (pass_all_optimizations): Move pass_stdarg to after
22013 2015-04-29 Richard Biener <rguenther@suse.de>
22015 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22016 compute GROUP_SIZE for basic-block SLP.
22017 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
22018 take into account gaps.
22019 (vect_get_mask_element): Properly reject references to previous
22021 (vect_transform_slp_perm_load): Likewise.
22023 2015-04-29 Christian Bruel <christian.bruel@st.com>
22026 * config/i386/i386.c (ix86_default_align): New function.
22027 (ix86_override_options_after_change): Call ix86_default_align.
22028 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
22029 (ix86_override_options_after_change): New function.
22031 2015-04-28 Jeff Law <law@redhat.com>
22033 * tree-ssa-dom.c (record_equality); Fix comment typos.
22035 2015-04-28 Tom de Vries <tom@codesourcery.com>
22037 PR tree-optimization/65887
22038 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
22040 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
22042 * doc/extend.texi (Declaring Attributes of Functions): Split into
22043 subsections by target. Alphabetize the table of common attributes.
22044 Rewrite some of the introductory text to reflect the new structure.
22045 Update some cross-references to point to the new subsections.
22046 (Attribute Syntax): Put paragraph about "__" naming here. Remove
22047 duplicate copies in the discussion of function, label, and type
22050 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
22053 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
22055 2015-04-28 Jason Merrill <jason@redhat.com>
22058 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
22059 (finalize_type_size): Respect TYPE_USER_ALIGN.
22060 (layout_type) [ARRAY_TYPE]: Likewise.
22062 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
22064 * config/arm/arm.md (*arm_movt): Fix type attribute.
22065 (*cmpsi_shiftsi): Likewise.
22066 (*cmpsi_shiftsi_swp): Likewise.
22067 (*movsicc_insn): Likewise.
22068 (*cond_move): Likewise.
22069 (*if_plus_move): Likewise.
22070 (*if_move_plus): Likewise.
22071 (*if_arith_move): Likewise.
22072 (*if_move_arith): Likewise.
22073 (*if_shift_move): Likewise.
22074 (*if_move_shift): Likewise.
22075 (*arm_movtas_ze): Likewise.
22076 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
22077 redundancy and type attribute.
22078 (*thumb2_movsi_insn): Fix type attribute.
22079 (*thumb2_addsi_short): Likewise.
22080 (thumb2_addsi3_compare0): Likewise.
22081 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
22082 attributes accordingly.
22084 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
22087 * function.c (pad_to_arg_alignment): Add parentheses.
22089 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
22091 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
22092 libgcc/config/frv/elf-lib.h.
22094 2015-04-28 Tom de Vries <tom@codesourcery.com>
22096 * tree-call-cdce.c: Fix example in header comment.
22098 2015-04-28 Richard Biener <rguenther@suse.de>
22100 PR tree-optimization/62283
22101 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
22102 fails fatally and we are vectorizing a basic-block simply
22103 cause the child to be constructed piecewise.
22104 (vect_analyze_slp_cost_1): Adjust.
22105 (vect_detect_hybrid_slp_stmts): Likewise.
22106 (vect_bb_slp_scalar_cost): Likewise.
22107 (vect_get_constant_vectors): For piecewise constructed
22108 constants place them after the last def.
22109 (vect_get_slp_defs): Adjust.
22110 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
22111 externals for basic-block vectorization.
22113 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22116 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
22118 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
22119 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
22120 (AARCH64_TUNE_FMA_STEERING): Likewise.
22121 * config/aarch64/aarch64-cores.def: Set
22122 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
22123 FMUL/FMADD instructions.
22124 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
22125 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
22126 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
22127 * config/aarch64/cortex-a57-fma-steering.h: New file.
22128 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22130 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
22132 * gensupport.c (std_preds): Add missing codes to address_operand entry.
22134 2015-04-28 Richard Biener <rguenther@suse.de>
22136 PR tree-optimization/65851
22137 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
22138 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
22139 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
22140 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
22141 (ccp_visit_phi_node): Adjust.
22142 (evaluate_stmt): For simplifications to SSA names return its
22143 lattice value if that isn't VARYING. Return immediately when
22144 simplified to a constant.
22145 (visit_assignment): Adjust.
22146 (ccp_visit_stmt): Likewise.
22148 2015-04-28 Tom de Vries <tom@codesourcery.com>
22150 PR tree-optimization/65818
22151 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
22154 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22156 * calls.c (save_fixed_argument_area): Don't check
22157 ARGS_GROW_DOWNWARD with the preprocessor.
22158 (restore_fixed_argument_area): Likewise.
22159 (mem_overlaps_already_clobbered_arg_p): Likewise.
22160 (check_sibcall_argument_overlap): Likewise.
22161 (expand_call): Likewise.
22162 (emit_library_call_value_1): Likewise.
22163 (store_one_arg): Likewise.
22164 * function.c (assign_parms): Likewise.
22165 (locate_and_pad_parm): Likewise.
22166 (pad_to_arg_alignment): Likewise.
22167 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22169 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22171 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
22172 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
22173 * calls.c (save_fixed_argument_area): Don't chekc if
22174 ARGS_GROW_DOWNWARD is defined.
22175 (restore_fixed_argument_area): Likewise.
22176 (mem_overlaps_already_clobbered_arg_p): Likewise.
22177 (check_sibcall_argument_overlap): Likewise.
22178 (expand_call): Likewise.
22179 (emit_library_call_value_1): Likewise.
22180 (store_one_arg): Likewise.
22181 * function.c (assign_parms): Likewise.
22182 (locate_and_pad_parm): Likewise.
22183 (pad_to_arg_alignment): Likewise.
22184 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22186 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22188 * defaults.h (gen_epilogue): New function.
22189 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
22191 * cfgrtl.c (cfg_layout_finalize): Likewise.
22192 * df-scan.c: Likewise.
22193 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22194 (reposition_prologue_and_epilogue_notes): Likewise.
22195 * reorg.c (find_end_label): Likewise.
22196 * toplev.c: Likewise.
22198 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22200 * bb-reorder.c (HAVE_return): Don't check if its undefined.
22201 * defaults.h (gen_simple_return): New function.
22202 (gen_simple_return): Likewise.
22203 (HAVE_return): Add default definition to false.
22204 (HAVE_simple_return): Likewise.
22205 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
22206 HAVE_return and HAVE_simple_return are defined.
22207 * function.c (gen_return_pattern): Likewise.
22208 (convert_jumps_to_returns): Likewise.
22209 (thread_prologue_and_epilogue_insns): Likewise.
22210 * reorg.c (find_end_label): Likewise.
22211 (dbr_schedule): Likewise.
22212 * shrink-wrap.c: Likewise.
22213 * shrink-wrap.h: Likewise.
22215 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22217 * defaults.h (EPILOGUE_USES): Add default definition of false.
22218 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
22219 * resource.c (init_resource_info): Likewise.
22221 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22223 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
22225 * dwarf2out.c (field_byte_offset): REmove check if
22226 PCC_BITFIELD_TYPE_MATTERS is defined.
22227 * stor-layout.c (layout_decl): Likewise.
22228 (update_alignment_for_field): Likewise.
22229 (place_field): Likewise.
22231 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22233 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
22235 * regrename.c (check_new_reg_p): Remove check if
22236 HARD_REGNO_RENAME_OK is defined.
22237 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
22239 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22241 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
22242 * cse.c (fold_rtx): Likewise.
22243 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
22244 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
22245 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
22246 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
22247 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
22248 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
22249 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
22250 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
22251 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
22252 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
22254 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
22255 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
22256 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
22257 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
22258 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
22259 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
22260 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
22261 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
22262 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
22263 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
22264 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
22265 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
22266 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
22267 * doc/tm.texi: Regenerate.
22268 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
22269 either true or false.
22271 2015-04-27 Jeff Law <law@redhat.com>
22273 PR tree-optimization/65217
22274 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
22275 of them has a single use, make sure it is the LHS of the implied
22278 2015-04-28 Alan Modra <amodra@gmail.com>
22281 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
22282 (offsettable_ok_by_alignment): Use minimum of decl and toc
22283 pointer alignment. Replace dead code with assertion.
22284 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
22285 case if size exceeds toc pointer alignment.
22286 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
22287 (rs6000_emit_move): Likewise.
22288 * configure.ac: Add linker toc pointer alignment check.
22289 * configure: Regenerate.
22290 * config.in: Regenerate.
22292 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
22294 * config.gcc: Add h8300-*-linux.
22295 * config/h8300/linux.h: New.
22296 * config/h8300/t-linux: New.
22297 * config/h8300/h8300.c (h8300_option_override): Normal mode
22298 is not supported for h8300-*-linux.
22299 (h8300_file_start): Target priority change.
22300 (get_shift_alg): Likewise.
22301 (h8300_shift_need_scratch_p): Likewise.
22302 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
22303 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
22305 2015-04-27 Caroline Tice <cmtice@google.com>
22307 * final.c (final_scan_insn): Output cold_function_name as function
22309 * varasm.c (cold_function_name): Make global.
22310 (assemble_start_function): Re-set cold_function_name.
22311 (assemble_end_function): Output cold partition size.
22312 * varasm.h (cold_function_name): Declare global.
22314 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
22316 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
22317 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
22319 (*movxi_internal_avx512f): Ditto.
22320 (define_split): Check for xmm16+, when splitting scalar float_extend.
22321 (*extendsfdf2_mixed): Use "v" constraint.
22322 (define_split): Check for xmm16+, when splitting scalar float_truncate.
22323 (*truncdfsf_fast_sse): Use "v" constraint.
22324 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
22325 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
22326 (define_peephole2): Check for xmm16+, when converting scalar
22328 (define_peephole2): Check for xmm16+, when converting scalar
22330 (*fop_<mode>_comm_mixed): Use "v" constraint.
22331 (*fop_<mode>_comm_sse): Ditto.
22332 (*fop_<mode>_1_mixed): Ditto.
22333 (*sqrt<mode>2_sse): Ditto.
22334 (*ieee_s<ieee_maxmin><mode>3): Ditto.
22336 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22338 * combine.c (simplify_if_then_else): Use std::swap instead
22339 of manually swapping.
22340 (known_cond): Likewise.
22341 (simplify_comparison): Likewise.
22343 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
22346 * config/rs6000/htm.md: Remove all define_expands.
22347 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
22348 UNSPECV_HTM_TABORTWCI): Remove.
22349 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
22350 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
22351 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
22352 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
22353 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
22354 tabortwci_internal): Remove define_insns.
22355 (tabort<wd>c, tabort<wd>ci): New define_insns.
22356 (tabort): Use gpc_reg_operand.
22357 (tcheck): Remove operand.
22358 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
22359 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
22361 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
22362 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
22363 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
22364 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
22365 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
22366 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
22367 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
22368 (tcheck): Remove builtin argument.
22369 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
22371 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
22372 tabortdc and tabortdci builtins when not in 64-bit mode.
22373 Modify code to handle the loss of the HTM define_expands.
22374 Emit code to copy the CR register to TARGET.
22375 (htm_init_builtins): Modify code to handle the loss of the HTM
22377 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
22378 (RS6000_BTC_64BIT): Likewise.
22379 (RS6000_BTC_CR): New macro.
22380 * doc/extend.texi: Update documentation for htm builtins.
22382 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22384 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
22385 of manually swapping.
22386 (simplify_associative_operation): Likewise.
22387 (simplify_binary_operation): Likewise.
22388 (simplify_plus_minus): Likewise.
22389 (simplify_relational_operation): Likewise.
22390 (simplify_ternary_operation): Likewise.
22392 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
22394 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
22395 (xs_hi_nonmemory_operand): Remove error.
22396 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
22397 general_operand rather than xs_hi_general_operand.
22399 2015-04-27 Richard Biener <rguenther@suse.de>
22401 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
22402 (record_equivalences_from_stmt): Valueize rhs.
22403 (record_equality): Canonicalize x and y order via
22404 tree_swap_operands_p. Do not swap operands for same loop depth.
22406 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
22410 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
22411 Add hint how to use own spec file.
22413 2015-04-27 Jakub Jelinek <jakub@redhat.com>
22415 PR tree-optimization/65875
22416 * tree-vrp.c (update_value_range): If in is_new case setting
22417 old_vr to VR_VARYING, also set new_vr to it. Remove
22418 old_vr->type == VR_VARYING test.
22419 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
22420 SSA_PROP_INTERESTING if update_value_range returned true,
22421 but new range is VR_VARYING.
22423 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22425 * combine.c (sign_extend_short_imm): New.
22426 (set_nonzero_bits_and_sign_copies): Use above new function for sign
22427 extension of src short immediate.
22428 (reg_nonzero_bits_for_combine): Likewise for tem.
22430 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
22432 * stor-layout.c (self_referential_component_ref_p): New predicate.
22433 (copy_self_referential_tree_r): Use it.
22434 (self_referential_size): Punt for simple operations directly involving
22435 self-referential component references.
22436 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
22438 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
22440 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
22442 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
22444 * vec.h (vec): Make splice arguments const. Update definitions
22447 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
22449 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
22452 2015-04-26 Tom de Vries <tom@codesourcery.com>
22454 PR tree-optimization/65826
22455 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
22457 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
22459 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
22460 (*madd3<mode>): Ditto.
22461 (*msub4<mode>): Ditto.
22462 (*msub3<mode>): Ditto.
22463 (*nmadd4<mode>): Ditto.
22464 (*nmadd3<mode>): Ditto.
22465 (*nmadd4<mode>_fastmath): Ditto.
22466 (*nmadd3<mode>_fastmath): Ditto.
22467 (*nmsub4<mode>): Ditto.
22468 (*nmsub3<mode>): Ditto.
22469 (*nmsub4<mode>_fastmath): Ditto.
22470 (*nmsub3<mode>_fastmath): Ditto.
22472 2015-04-24 Jason Merrill <jason@redhat.com>
22475 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
22476 down when building TYPE_CANONICAL.
22477 (build_pointer_type_for_mode): Likewise.
22479 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
22481 * genrecog.c (validate_pattern): Check matching constraint refers
22482 to a lower numbered operand.
22484 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22487 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
22488 save to independent variables use the Save attribute. This will
22489 allow these options to be modified with the #pragma/attribute
22491 (-mallow-movmisalign): Likewise.
22492 (-mallow-df-permute): Likewise.
22493 (-msched-groups): Likewise.
22494 (-malways-hint): Likewise.
22495 (-malign-branch-targets): Likewise.
22496 (-mvectorize-builtins): Likewise.
22497 (-msave-toc-indirect): Likewise.
22499 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
22500 can be set via the #pragma/attribute target support.
22501 (rs6000_opt_vars): Likewise.
22502 (rs6000_inner_target_options): If VSX was set, also set
22503 -mno-avoid-indexed-addresses.
22505 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22507 * config/arm/iterators.md (shiftable_ops): Rename to...
22508 (SHIFTABLE_OPS): ... This. Update use in comments.
22509 (ior_xor): Rename to...
22510 (IOR_XOR): ... This.
22511 (vqh_ops): Rename to...
22512 (VQH_OPS): ... This.
22513 (vqhs_ops): Rename to...
22514 (VQHS_OPS): ... This.
22515 (rshifts): Rename to...
22516 (RSHIFTS): ... This.
22517 (returns): Rename to...
22518 (RETURNS): ... This.
22519 * config/arm/arm.md: Update uses of the above.
22520 * config/arm/neon.md: Likewise.
22522 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22524 * config.host (case ${host}): Add aarch64*-*-linux case.
22525 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
22526 fields to all the cores.
22527 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
22528 Add MCPU_MTUNE_NATIVE_SPECS.
22529 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
22530 field to all extensions.
22531 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
22532 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
22533 Adjust definition of AARCH64_OPT_EXTENSION.
22534 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
22535 (MCPU_MTUNE_NATIVE_SPECS): Define.
22536 * config/aarch64/driver-aarch64.c: New file.
22537 * config/aarch64/x-arch64: New file.
22538 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
22541 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
22542 Wei Mi <wmi@google.com>
22544 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
22545 * config/i386/i386.c (extract_base_offset_in_addr): New function.
22546 (ix86_operands_ok_for_move_multiple): Ditto.
22547 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
22548 (movlpd/movhpd to movupd peephole2): Ditto.
22550 2015-04-24 Marek Polacek <polacek@redhat.com>
22553 * input.h (from_macro_expansion_at): Define.
22556 * doc/invoke.texi: Update description of -Wlogical-op.
22558 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
22560 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
22561 ternary operator in fprintf and harmonize spacing.
22563 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
22565 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
22566 Mark operand1 commutative.
22568 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
22570 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
22571 input operands in memory.
22572 (*vec_concatv2si_sse4_1): Ditto.
22573 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
22574 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
22576 (vec_extract_hi_v32hi): Ditto.
22577 (vec_extract_hi_v64hi): Ditto.
22578 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
22580 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
22581 Steven Bosscher <steven@gcc.gnu.org>
22583 PR rtl-optimization/34503
22584 * cprop.c (cprop_reg_p): New.
22585 (hash_scan_set): Use above function to check if register can be
22587 (find_avail_set): Return up to two sets, one whose source is a
22588 register and one whose source is a constant. Sets are returned in an
22589 array passed as parameter rather than as a return value.
22590 (cprop_insn): Use a do while loop rather than a goto. Try each of the
22591 sets returned by find_avail_set, starting with the one whose source is
22592 a constant. Use cprop_reg_p to check if register can be propagated.
22593 (do_local_cprop): Use cprop_reg_p to check if register can be
22595 (implicit_set_cond_p): Likewise.
22597 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
22599 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
22600 (sem_function::equals): IGNORED_NODES parameter is now unused;
22601 update call of equals_private.
22602 (sem_function::equals_private): Do not call equals_wpa; skip
22603 gimple body matching if there is no body.
22604 (sem_function::init): Add logic to hash tthunk info.
22605 (sem_function::parse): Also parse thunks.
22606 * ipa-icf.h (equals_private): Update declaration.
22608 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22610 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
22611 asterisk from name so this can be generated directly.
22612 (*altivec_stvx_<mode>_internal): Likewise.
22613 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
22614 that this is never called during or after reload/lra.
22615 (rs6000_frame_related): Remove split_reg
22616 argument and logic that references it.
22617 (emit_frame_save): Remove last parameter from call to
22618 rs6000_frame_related.
22619 (rs6000_emit_prologue): Remove last parameter from eight calls to
22620 rs6000_frame_related. Force generation of stvx instruction for
22621 Altivec register saves. Remove split_reg handling, which is no
22623 (rs6000_emit_epilogue): Force generation of lvx instruction for
22624 Altivec register restores.
22626 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22628 * config/rs6000/rs6000.opt (mcrypto): Change option description to
22629 match category changes in ISA 2.07B.
22631 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22633 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
22635 (cmp_op, cmp_type): New code attributes.
22636 (NEON_VCMP, NEON_VACMP): New int iterators.
22637 (cmp_op_unsp): New int attribute.
22638 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
22639 (neon_vceq<mode>): Delete.
22640 (neon_vc<cmp_op><mode>_insn): New pattern.
22641 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
22642 (neon_vcgeu<mode>): Delete.
22643 (neon_vcle<mode>): Likewise.
22644 (neon_vclt<mode>: Likewise.
22645 (neon_vcage<mode>): Likewise.
22646 (neon_vcagt<mode>): Likewise.
22647 (neon_vca<cmp_op><mode>): New define_expand.
22648 (neon_vca<cmp_op><mode>_insn): New pattern.
22649 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
22651 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
22653 * tree.h (attribute_value_equal): Declare.
22654 * tree.c (attribute_value_equal): Export.
22656 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
22658 * ipa-icf.c (sem_item::compare_attributes): New function.
22659 (sem_item::compare_referenced_symbol_properties): Compare variable
22661 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
22662 (sem_function::param_used_p): New function.
22663 (sem_function::equals_wpa): Fix attribute comparsion; match
22664 parameter type codes; do not compare paremter flags when
22665 they are not used; compare edge flags; compare indirect calls.
22666 (sem_item::update_hash_by_addr_refs): Hash reference type.
22667 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
22668 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
22669 reference use type.
22670 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
22671 * ipa-icf.h (compare_attributes, param_used_p): Declare.
22673 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
22675 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
22677 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
22678 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
22679 (sem_item::compare_referenced_symbol_properties): New.
22680 (sem_item::hash_referenced_symbol_properties): New.
22681 (sem_item::compare_cgraph_references): Rename to ...
22682 (sem_item::compare_symbol_references): ... this one; use
22683 compare_referenced_symbol_properties.
22684 (sem_function::equals_wpa): Do not compare
22685 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
22686 DECL_IS_OPERATOR_NEW; compare pointer sizes.
22687 (sem_item::update_hash_by_addr_refs): Call
22688 hash_referenced_symbol_properties.
22689 (sem_item::update_hash_by_local_refs): Cleanup.
22690 (sem_function::merge): Do not mix up symbol properties.
22691 (sem_variable::equals_wpa): Use compare_symbol_references.
22692 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
22693 (sem_item::hash_referenced_symbol_properties): New.
22694 (sem_item::compare_symbol_references): New.
22695 (sem_item::compare_cgraph_references): Remove.
22697 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
22700 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
22701 Emit size of local.
22703 2015-04-23 Nick Clifton <nickc@redhat.com>
22705 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
22706 ATTRIBUTE_UNUSED to x parameter.
22707 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
22709 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22711 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
22712 TARGET_CRYPTO to TARGET_P8_VECTOR>
22713 (crypto_vpermxor_<mode>): Likewise.
22714 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
22715 (BU_CRYPTO_3A): Likewise.
22716 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
22717 (BU_CRYPTO_OVERLOAD_3A): New #define.
22718 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
22719 (VPMSUMH): Likewise.
22720 (VPMSUMW): Likewise.
22721 (VPMSUMD): Likewise.
22722 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
22723 (VPERMXOR_V4SI): Likewise.
22724 (VPERMXOR_V8HI): Likewise.
22725 (VPERMXOR_V16QI): Likewise.
22726 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
22727 BU_CRYPTO_OVERLOAD_2A.
22728 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
22729 BU_CRYPTO_OVERLOAD_3A.
22730 * config/rs6000/rs6000.opt (mcrypto): Change description of
22733 2015-04-23 Richard Biener <rguenther@suse.de>
22735 * passes.def: Remove copy propagation passes run directly after CCP.
22736 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
22738 (ccp_visit_phi_node): Rework to handle first executable edge
22741 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
22743 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
22744 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
22745 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
22746 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
22747 (thumb_legimitimize_reload_address): Remove.
22748 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
22750 (thumb_legimitimize_reload_address): Remove.
22752 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22754 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
22756 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22758 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
22760 (store_multiple): Likewise.
22762 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22764 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
22765 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
22766 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
22767 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
22768 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
22769 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
22770 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
22771 Specify issue_rate value.
22772 (arm_issue_rate): Look up issue rate from tuning structs. Remove
22773 large switch statement.
22774 (arm_marvell_pj4_tune): New struct.
22775 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
22778 2015-04-23 Richard Biener <rguenther@suse.de>
22780 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
22781 (vect_find_last_store_in_slp_instance): Rename to ...
22782 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
22783 (vect_analyze_slp_cost_1): Use vector_load for constant defs
22784 and vec_construct for external defs when estimating prologue cost.
22785 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
22786 Compute costs here only when vectorizing loops.
22787 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
22788 have been determined.
22789 (vect_schedule_slp_instance): Simplify vectorized code placement
22790 and prepare for in-BB external defs.
22791 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
22792 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
22793 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
22795 (vect_model_load_cost): Likewise.
22796 (vectorizable_store): Instead add it here.
22797 (vectorizable_load): Likewise.
22798 (vect_is_simple_use): Dump def type textually.
22800 2015-04-23 Richard Biener <rguenther@suse.de>
22802 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
22803 * cfgloop.c (verify_loop_structure): Verify the root loop node.
22804 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
22805 instead of get_eh_region_from_lp_number.
22806 * loop-init.c (fix_loop_structure): If we removed a loop, reset
22809 2015-04-23 Anton Blanchard <anton@samba.org>
22811 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
22812 need for -mprofile-kernel to save LR to stack.
22814 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22816 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
22818 (insn_is_swappable_p): Return 1 for a convert from double to
22819 single precision when all of its uses are splats of BE element
22822 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
22824 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
22826 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22829 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
22830 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
22831 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
22833 (rs6000_builtin_mask_for_load): Return 0 for targets with
22834 efficient unaligned VSX accesses so that the vectorizer will use
22835 direct unaligned loads.
22836 (rs6000_builtin_support_vector_misalignment): Always return true
22837 for targets with efficient unaligned VSX accesses.
22838 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
22839 stores on targets with efficient unaligned VSX accesses is almost
22840 always the same as the cost of an aligned load or store, so model
22842 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
22843 unaligned vectors if we have efficient unaligned VSX accesses.
22844 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
22845 undocumented option.
22847 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22850 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
22852 * config.gcc (LIBC_MUSL): New tm_defines macro.
22853 * config/linux.h (OPTION_MUSL): Define.
22854 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22855 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22856 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22858 * config/linux.opt (mmusl): New option.
22859 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22860 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22862 * configure: Regenerate.
22864 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
22866 * config.gcc (LIBC_MUSL): New tm_defines macro.
22867 * config/linux.h (OPTION_MUSL): Define.
22868 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22869 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22870 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22872 * config/linux.opt (mmusl): New option.
22873 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22874 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22876 * configure: Regenerate.
22878 2015-04-22 Yury Gribov <y.gribov@samsung.com>
22880 * doc/invoke.texi (-fsanitize-sections): Update description.
22881 * asan.c (set_sanitized_sections): Parse incoming arg.
22882 (section_sanitized_p): Support wildcards.
22884 2015-04-22 Tom de Vries <tom@codesourcery.com>
22886 PR tree-optimization/65823
22887 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
22888 equality between ap_copy and ap.
22890 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22893 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
22895 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22898 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
22900 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22903 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
22904 remove already contained t-files.
22906 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22908 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
22909 Remove unneeded forward declarations.
22910 (suitable_for_tail_call_opt_p): Commentary typo fix.
22912 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22914 * varasm.c (emit_bss): Remove redundant guard.
22916 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22918 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
22920 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22922 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
22924 2015-04-22 Hale Wang <hale.wang@arm.com>
22925 Terry Guo <terry.guo@arm.com>
22927 PR rtl-optimization/64818
22928 * combine.c (can_combine_p): Don't combine user-specified
22929 register if it is in an asm input.
22931 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
22934 * passes.def (early_optimizations): Add pass_dse.
22936 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22938 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
22939 * reorg.c (redundant_insn): Remove ifdef
22940 INSN_REFERENCES_ARE_DELAYED.
22941 * resource.c (mark_referenced_resources): Likewise.
22943 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22945 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
22946 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
22947 * resource.c (mark_set_resources): Likewise.
22949 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22951 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
22952 * cfgcleanup.c (flow_find_cross_jump): Likewise.
22953 (flow_find_head_matching_sequence): Likewise.
22954 (try_head_merge_bb): Likewise.
22955 * combine.c (can_combine_p): Likewise.
22956 (try_combine): Likewise.
22957 (distribute_notes): Likewise.
22958 * df-problems.c (can_move_insns_across): Likewise.
22959 * final.c (final): Likewise.
22960 * gcse.c (insert_insn_end_basic_block): Likewise.
22961 * ira.c (find_moveable_pseudos): Likewise.
22962 * reorg.c (try_merge_delay_insns): Likewise.
22963 (fill_simple_delay_slots): Likewise.
22964 (fill_slots_from_thread): Likewise.
22965 * sched-deps.c (sched_analyze_2): Likewise.
22967 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22969 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
22970 PIC_OFFSET_TABLE_REGNUM.
22972 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22974 * alias.c (init_alias_target): Remove ifdef
22975 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
22976 * df-scan.c (df_insn_refs_collect): Likewise.
22977 (df_get_regular_block_artificial_uses): Likewise.
22978 (df_get_eh_block_artificial_uses): Likewise.
22979 (df_get_entry_block_def_set): Likewise.
22980 (df_get_exit_block_use_set): Likewise.
22981 * emit-rtl.c (gen_rtx_REG): Likewise.
22982 * ira.c (ira_setup_eliminable_regset): Likewise.
22983 * reginfo.c (init_reg_sets_1): Likewise.
22984 * regrename.c (rename_chains): Likewise.
22985 * reload1.c (reload): Likewise.
22986 (eliminate_regs_in_insn): Likewise.
22987 * resource.c (mark_referenced_resources): Likewise.
22988 (init_resource_info): Likewise.
22990 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22992 * defaults.h (MASK_RETURN_ADDR): New definition.
22993 * except.c (expand_builtin_extract_return_addr): Remove ifdef
22996 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22998 * defaults.h (RETURN_ADDR_OFFSET): New definition.
22999 * except.c (expand_builtin_extract_return_addr): Remove ifdef
23000 RETURN_ADDR_OFFSET.
23001 (expand_builtin_frob_return_addr): Likewise.
23003 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23005 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
23006 (try_redirect_by_replacing_jump): Likewise.
23007 (rtl_tidy_fallthru_edge): Likewise.
23008 * combine.c (insn_a_feeds_b): Likewise.
23009 (find_split_point): Likewise.
23010 (simplify_set): Likewise.
23011 * cprop.c (cprop_jump): Likewise.
23012 * cse.c (cse_extended_basic_block): Likewise.
23013 * df-problems.c (can_move_insns_across): Likewise.
23014 * function.c (emit_use_return_register_into_block): Likewise.
23015 * haifa-sched.c (sched_init): Likewise.
23016 * ira.c (find_moveable_pseudos): Likewise.
23017 * loop-invariant.c (find_invariant_insn): Likewise.
23018 * lra-constraints.c (curr_insn_transform): Likewise.
23019 * postreload.c (reload_combine_recognize_const_pattern):
23021 * reload.c (find_reloads): Likewise.
23022 * reorg.c (delete_scheduled_jump): Likewise.
23023 (steal_delay_list_from_target): Likewise.
23024 (steal_delay_list_from_fallthrough): Likewise.
23025 (redundant_insn): Likewise.
23026 (fill_simple_delay_slots): Likewise.
23027 (fill_slots_from_thread): Likewise.
23028 (delete_computation): Likewise.
23029 * sched-rgn.c (add_branch_dependences): Likewise.
23031 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23033 * genconfig.c (main): Always define HAVE_cc0.
23034 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
23036 * cfgcleanup.c (flow_find_cross_jump): Likewise.
23037 (flow_find_head_matching_sequence): Likewise.
23038 (try_head_merge_bb): Likewise.
23039 * cfgrtl.c (rtl_merge_blocks): Likewise.
23040 (try_redirect_by_replacing_jump): Likewise.
23041 (rtl_tidy_fallthru_edge): Likewise.
23042 * combine.c (do_SUBST_MODE): Likewise.
23043 (insn_a_feeds_b): Likewise.
23044 (combine_instructions): Likewise.
23045 (can_combine_p): Likewise.
23046 (try_combine): Likewise.
23047 (find_split_point): Likewise.
23049 (simplify_set): Likewise.
23050 (distribute_notes): Likewise.
23051 * cprop.c (cprop_jump): Likewise.
23052 * cse.c (cse_extended_basic_block): Likewise.
23053 * df-problems.c (can_move_insns_across): Likewise.
23054 * final.c (final): Likewise.
23055 (final_scan_insn): Likewise.
23056 * function.c (emit_use_return_register_into_block): Likewise.
23057 * gcse.c (insert_insn_end_basic_block): Likewise.
23058 * haifa-sched.c (sched_init): Likewise.
23059 * ira.c (find_moveable_pseudos): Likewise.
23060 * loop-invariant.c (find_invariant_insn): Likewise.
23061 * lra-constraints.c (curr_insn_transform): Likewise.
23062 * optabs.c (prepare_cmp_insn): Likewise.
23063 * postreload.c (reload_combine_recognize_const_pattern):
23065 * reload.c (find_reloads): Likewise.
23066 (find_reloads_address_1): Likewise.
23067 * reorg.c (delete_scheduled_jump): Likewise.
23068 (steal_delay_list_from_target): Likewise.
23069 (steal_delay_list_from_fallthrough): Likewise.
23070 (try_merge_delay_insns): Likewise.
23071 (redundant_insn): Likewise.
23072 (fill_simple_delay_slots): Likewise.
23073 (fill_slots_from_thread): Likewise.
23074 (delete_computation): Likewise.
23075 (relax_delay_slots): Likewise.
23076 * sched-deps.c (sched_analyze_2): Likewise.
23077 * sched-rgn.c (add_branch_dependences): Likewise.
23079 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23081 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
23082 that is trivially ded on non cc0 targets.
23083 (simplify_set): Likewise.
23084 (mark_used_regs_combine): Likewise.
23085 * cse.c (new_basic_block): Likewise.
23086 (fold_rtx): Likewise.
23087 (cse_insn): Likewise.
23088 (cse_extended_basic_block): Likewise.
23089 (set_live_p): Likewise.
23090 * rtlanal.c (canonicalize_condition): Likewise.
23091 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23093 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23095 * conditions.h: Define macros even if HAVE_cc0 is undefined.
23096 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
23097 * final.c: Likewise.
23098 * jump.c: Likewise.
23099 * recog.c: Likewise.
23100 * recog.h: Declare functions even when HAVE_cc0 is undefined.
23101 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
23103 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23105 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
23106 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
23107 * builtins.c (expand_builtin): Remove check if
23108 EH_RETURN_DATA_REGNO is defined.
23109 * df-scan.c (df_bb_refs_collect): Likewise.
23110 (df_get_exit_block_use_set): Likewise.
23111 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
23112 * ira-lives.c (process_bb_node_lives): Likewise.
23113 * lra-lives.c (process_bb_lives): Likewise.
23115 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
23117 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
23118 FIRST_PSEUDO_REG): New.
23119 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
23120 (ARG_POINTER_REGNUM): Define to ARGP_REG.
23121 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
23122 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
23123 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
23124 (FIRST_INT_REG): New.
23125 (LAST_INT_REG): New.
23126 (FIRST_*_REG): Define using *_REG.
23127 (LAST_*_REG): Ditto.
23128 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
23129 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
23130 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
23132 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23134 * expmed.c: (synth_mult): Only assume overlapping
23135 shift with previous steps in alg_sub_t_m2 case.
23137 2015-04-21 Richard Biener <rguenther@suse.de>
23139 PR tree-optimization/65650
23140 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
23141 transitions involving copies.
23142 (set_lattice_value): Adjust for copy lattice state.
23143 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
23144 if that doesn't dominate the merge point.
23145 (bit_value_unop): Adjust what we treat as varying mask.
23146 (bit_value_binop): Likewise.
23147 (bit_value_assume_aligned): Likewise.
23148 (evaluate_stmt): When we simplified to a SSA name record a copy
23149 instead of dropping to varying.
23150 (visit_assignment): Simplify.
23152 * gimple-match.h (gimple_simplify): Add another callback.
23153 * gimple-fold.c (fold_stmt_1): Adjust caller.
23154 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
23155 for the 2nd callback.
23156 * gimple-match-head.c (gimple_simplify): Add a callback that is
23157 used to valueize the stmt operands and use it that way.
23159 2015-04-21 Richard Biener <rguenther@suse.de>
23161 PR tree-optimization/65788
23162 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
23164 2015-04-21 Richard Biener <rguenther@suse.de>
23166 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
23167 vec_construct cost by vec_stmt_cost.
23169 2015-04-21 Richard Biener <rguenther@suse.de>
23171 * cfghooks.h (create_basic_block): Replace with two overloads
23172 for RTL and GIMPLE.
23173 (split_block): Likewise.
23174 * cfghooks.c (split_block): Rename to ...
23175 (split_block_1): ... this.
23176 (split_block): Add two type-safe overloads for RTL and GIMPLE.
23177 (split_block_after_labels): Call split_block_1.
23178 (create_basic_block): Rename to ...
23179 (create_basic_block_1): ... this.
23180 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
23181 (create_empty_bb): Call create_basic_block_1.
23182 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
23183 split_block_after_labels.
23184 * omp-low.c (expand_parallel_call): Likewise.
23185 (expand_omp_target): Likewise.
23186 (simd_clone_adjust): Likewise.
23187 * tree-chkp.c (chkp_get_entry_block): Likewise.
23188 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
23189 create_basic_block overload.
23190 (cgraph_node::expand_thunk): Likewise.
23191 * tree-cfg.c (make_blocks): Likewise.
23192 (handle_abnormal_edges): Likewise.
23193 * tree-inline.c (copy_bb): Likewise.
23195 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23197 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
23199 (*xor_one_cmplsidi3_ze): Likewise.
23201 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
23203 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
23204 use df_remove_problem rather than manually removing problems, leaving
23205 holes in df->problems_in_order[].
23207 2015-04-21 Tom de Vries <tom@codesourcery.com>
23209 PR tree-optimization/65802
23210 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
23212 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23214 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
23216 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
23217 at '.'. Assert that there's enough space for everything.
23219 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
23221 PR tree-optimization/64950
23223 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
23226 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
23229 2015-04-20 Shiva Chen <shiva0217@gmail.com>
23231 PR rtl-optimization/64916
23232 * cfgcleanup.c (values_equal_p): New function.
23233 (can_replace_by): Use it.
23235 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
23238 * doc/invoke.texi ([-Wnarrowing]): Update.
23240 2015-04-20 Jeff Law <law@redhat.com>
23242 PR tree-optimization/65658
23243 * tree-ssa-threadupdate.c (redirection_block_p): Remove
23244 redundant test for GIMPLE_ASSIGN in last change.
23246 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
23248 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
23249 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
23250 (legitimize_tls_address): Ditto.
23251 (ix86_expand_move): Ditto.
23252 (ix86_expand_binary_operator): Remove reload_in_progress checks.
23253 (ix86_expand_unary_operator): Ditto.
23254 * config/i386/predicates.md (index_register_operand): Ditto.
23256 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
23258 * reorg.c (try_merge_delay_insns): Improve correctness checking
23259 for targets with multiple delay slots.
23261 2015-04-20 Jeff Law <law@redhat.com>
23263 PR tree-optimization/65658
23264 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
23267 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
23269 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
23270 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
23273 2015-04-20 Jakub Jelinek <jakub@redhat.com>
23276 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
23278 2015-04-20 Richard Biener <rguenther@suse.de>
23280 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
23281 * gimple-fold.c (gimple_build_valueize): New function.
23282 (gimple_build): Always use gimple_build_valueize as valueize hook.
23284 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
23287 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
23288 and overwrite variable parts if <= 1/2 the elements are variable.
23290 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
23292 PR rtl-optimization/65805
23293 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
23294 Don't use difference of offset and previous offset if
23295 update_sp_offset is non-zero.
23296 (eliminate_regs_in_insn): Ditto.
23297 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
23298 lra_eliminate_regs_1 call.
23299 * lra-constraints.c (get_equiv_with_elimination): Ditto.
23301 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
23303 * hash-table.h: Remove version of hash_table that stored value_type *.
23304 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
23305 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
23306 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
23307 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
23308 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
23309 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
23310 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
23311 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
23312 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
23313 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
23314 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
23315 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
23316 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
23317 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
23318 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
23319 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
23321 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23322 Jakub Jelinek <jakub@redhat.com>
23325 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
23326 subsequent SH_NONE operand does not overwrite an existing *special
23328 (adjust_extract): Handle case where a vec_extract operation is
23329 wrapped in a PARALLEL.
23331 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
23334 * config/i386/i386.c (ix86_binds_local_p): Define only if
23335 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
23337 2015-04-17 Jeff Law <law@redhat.com>
23339 PR tree-optimization/47679
23340 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
23341 * tree-ssa-scopedtables.c: New file.
23342 * tree-ssa-scopedtables.h: New file.
23343 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
23344 (const_and_copies): Change name/type.
23345 (record_const_or_copy): Move into tree-ssa-scopedtables.c
23346 (record_const_or_copy_1): Similarly.
23347 (restore_vars_to_original_value): Similarly.
23348 (pass_dominator::execute): Create and destroy const_and_copies table.
23349 (thread_across_edge): Update passing of const_and_copies.
23350 (record_temporary_equivalence): Use method calls rather than
23351 manipulating const_and_copies directly.
23352 (record_equality, cprop_into_successor_phis): Similarly.
23353 (dom_opt_dom_walker::before_dom_children): Similarly.
23354 (dom_opt_dom_walker::after_dom_children): Similarly.
23355 (eliminate_redundant_computations): Similarly.
23356 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
23357 (record_temporary_equivalence): Likewise.
23358 (invalidate_equivalences): Likewise.
23359 (record_temporary_equivalences_from_phis): Update due to type
23360 change of const_and_copies. Use method calls rather than
23361 manipulating the stack directly.
23362 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
23363 (thread_through_normal_block, thread_across_edge): Likewise.
23364 (thread_across_edge): Likewise.
23365 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
23366 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
23368 (identify_jump_threads): Update due to type change of equiv_stack.
23369 (finalize_jump_threads): Delete the equiv_stack when complete.
23371 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
23373 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23374 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
23375 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
23377 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
23380 * config.gcc: Exit with a comment when we do not have a major version
23381 number for the FreeBSD target.
23383 2015-04-17 Jakub Jelinek <jakub@redhat.com>
23386 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
23387 maybe_allows_mem bitfields.
23388 (maybe_allows_none_start, maybe_allows_none_end,
23389 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
23390 maybe_allows_mem_end): New variables.
23391 (compute_maybe_allows): New function.
23392 (add_constraint): Use it to initialize maybe_allows_reg and
23393 maybe_allows_mem fields.
23394 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
23395 is_address constraints such that those that allow neither mem nor
23396 reg come first, then those that only allow reg but not mem, then
23397 those that only allow mem but not reg, then the rest.
23398 (write_allows_reg_mem_function): New function.
23399 (write_tm_preds_h): Call it.
23400 * stmt.c (parse_output_constraint, parse_input_constraint): Use
23401 the generated insn_extra_constraint_allows_reg_mem function
23402 instead of always setting *allows_reg = true; *allows_mem = true;
23403 for unknown extra constraints.
23405 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
23408 * output.h (default_binds_local_p_3): New.
23409 * varasm.c (default_binds_local_p_3): Make it public. Take an
23410 argument to indicate if common symbol may be local. If common
23411 symbol may be local, treat non-external variable as defined
23413 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
23414 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
23415 * config/i386/i386.c (ix86_binds_local_p): New.
23416 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
23417 ix86_binds_local_p.
23419 2015-04-17 Jakub Jelinek <jakub@redhat.com>
23422 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
23423 trying mem_loc_descriptor on XEXP (rtl, 0).
23425 2015-04-17 Martin Liska <mliska@suse.cz>
23427 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23428 Release symbol_compare_collection.
23429 * ipa-reference.c: Add TODO that a vector should be released.
23431 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
23434 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
23435 to new AVR-LibC file layout (bug #44574).
23436 (*avrlibc_devicelib): Same.
23437 * config/avr/avr-mcus.def: Adjust comments.
23438 * config/avr/avr.opt (nodevicelib): Adjust help.
23440 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
23442 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
23444 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
23447 * gimplify.c (gimplify_init_constructor): Always emit a
23448 side-effecting constructor.
23450 2015-04-17 Tom de Vries <tom@codesourcery.com>
23452 PR tree-optimization/64950
23453 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
23454 in cfun->curr_properties.
23455 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
23456 if we generate an IFN_VA_ARG.
23457 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
23458 function if PROP_gimple_lva is not set in src function.
23460 2015-04-17 Tom de Vries <tom@codesourcery.com>
23461 Michael Matz <matz@suse.de>
23463 PR tree-optimization/64950
23464 * gimple-iterator.c (update_modified_stmts): Remove static.
23465 * gimple-iterator.h (update_modified_stmts): Declare.
23466 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
23467 (gimplify_va_arg_internal): New function.
23468 (gimplify_va_arg_expr): Use IFN_VA_ARG.
23469 * gimplify.h (gimplify_va_arg_internal): Declare.
23470 * internal-fn.c (expand_VA_ARG): New unreachable function.
23471 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
23472 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
23473 (expand_ifn_va_arg): New function.
23474 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
23475 (pass_stdarg::execute): Call expand_ifn_va_arg.
23476 (pass_data_lower_vaarg): New pass_data.
23477 (pass_lower_vaarg): New gimple_opt_pass.
23478 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
23479 (make_pass_lower_vaarg): New function.
23480 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
23481 properties_required field.
23482 * passes.def (all_passes): Add pass_lower_vaarg.
23483 * tree-pass.h (PROP_gimple_lva): Add define.
23484 (make_pass_lower_vaarg): Declare.
23486 2015-04-17 Tom de Vries <tom@codesourcery.com>
23488 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
23489 * calls.c (call_expr_flags): Same.
23491 2015-04-17 Tom de Vries <tom@codesourcery.com>
23493 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
23494 (pass_stdarg::execute): ... here.
23496 2015-04-17 Tom de Vries <tom@codesourcery.com>
23497 Michael Matz <matz@suse.de>
23499 * tree-cfg.c (make_blocks_1): Factor out of ...
23500 (make_blocks): ... here.
23501 (make_edges_bb): Factor out of ...
23502 (make_edges): ... here.
23503 (gimple_find_sub_bbs): New function.
23504 * tree-cfg.h (gimple_find_sub_bbs): Declare.
23506 2015-04-17 Tom de Vries <tom@codesourcery.com>
23508 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
23510 2015-04-17 Yury Gribov <y.gribov@samsung.com>
23512 * asan.c (set_sanitized_sections): New function.
23513 (section_sanitized_p): Ditto.
23514 (asan_protect_global): Optionally sanitize user-defined
23516 * asan.h (set_sanitized_sections): Declare new function.
23517 * common.opt (fsanitize-sections): New option.
23518 * doc/invoke.texi (-fsanitize-sections): Document new option.
23519 * opts-global.c (handle_common_deferred_options): Handle new
23522 2015-04-17 Jakub Jelinek <jakub@redhat.com>
23525 * dwarf2out.c (loc_list_from_tree): Return NULL
23526 for DEBUG_EXPR_DECL.
23528 2015-04-17 Christian Bruel <christian.bruel@st.com>
23530 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
23533 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23535 * ira-color.c (setup_left_conflict_sizes_p): Do not process
23536 node itself when computing left conflict subnode size.
23538 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
23540 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
23541 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
23542 *fop_<mode>_1_sse using enabled attribute. Use
23543 register_mixssei387nonimm_operand operand 1 predicate. Change
23544 alternative 3 constraints from "x" to "v".
23546 2015-04-16 Richard Biener <rguenther@suse.de>
23548 PR tree-optimization/65774
23549 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
23550 bit-value tracking on.
23552 2015-04-16 Richard Biener <rguenther@suse.de>
23554 PR tree-optimization/64277
23555 * tree-vrp.c (check_array_ref): Fix anti-range handling,
23556 simplify upper bound handling.
23557 (search_for_addr_array): Simplify.
23558 (check_array_bounds): Handle ADDR_EXPRs here.
23559 (check_all_array_refs): Simplify.
23561 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
23563 * config/i386/i386.c (print_reg): Rewrite function.
23565 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23567 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
23568 Invert the condition.
23570 2015-04-16 Renlin Li <renlin.li@arm.com>
23572 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
23573 simplifications for UNSIGNED_FLOAT.
23575 2015-04-16 Nick Clifton <nickc@redhat.com>
23577 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
23579 (enum rl78_cpu_type): New.
23580 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
23581 (umulhi3_shift_virt): Remove m constraint from operand 1.
23582 (umulqihi3_virt): Likewise.
23583 * config/rl78/rl78.c (rl78_option_override): Add code to process
23584 -mcpu and -mmul options.
23585 (rl78_alloc_physical_registers): Add code to handle divhi and
23586 divsi valloc attributes.
23587 (set_origin): Likewise.
23588 * config/rl78/rl78.h (RL78_MUL_G14): Define.
23589 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
23590 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
23592 (ASM_SPEC): Pass -mcpu on to assembler.
23593 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
23594 (mulqi3_rl78): Likewise.
23595 (mulhi3_g13): Likewise.
23596 (mulhi3): Generate the G13 or G14 versions of the insn directly.
23597 (mulsi3): Likewise.
23598 (mulhi3_g14): Add clobbers of AX and BC.
23599 (mulsi3_g14): Likewise.
23600 (mulsi3_g13): Likewise.
23601 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
23602 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
23603 * config/rl78/rl78.opt (mmul): Initialise value to
23605 (mcpu): New option.
23606 (m13, m14, mrl78): New option aliases.
23607 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
23608 (MULTILIB_DIRNAMES): Add g13 and g14.
23609 * doc/invoke.texi: Document -mcpu and -mmul options.
23611 2015-04-16 Richard Biener <rguenther@suse.de>
23613 * tree-ssa-ccp.c (likely_value): See if we have operands that
23614 are marked as never simulate again and return CONSTANT in this
23616 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
23617 not have any operands that will be simulated again as
23618 not being simulated again.
23620 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
23622 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
23623 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
23624 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
23626 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
23628 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
23629 *float<SWI48:mode><MODEF:mode>2_sse.
23630 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
23632 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
23635 2015-04-15 Tom de Vries <tom@codesourcery.com>
23638 * function.c (push_dummy_function): New function.
23639 (init_dummy_function_start): Use push_dummy_function.
23640 (pop_dummy_function): New function. Factored out of ...
23641 (expand_dummy_function_end): ... here.
23642 * function.h (push_dummy_function, pop_dummy_function): Declare.
23643 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
23644 pop_dummy_function.
23645 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
23647 2015-04-15 Jeff Law <law@redhat.com>
23649 PR tree-optimization/47679
23650 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
23651 need for forward declaration in upcoming changes.
23652 (record_conditions, record_edge_info): Likewise.
23654 PR rtl-optimization/42522
23655 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
23656 SIGN_EXTRACT as a whole object rather than simplifying
23659 2015-04-15 Jakub Jelinek <jakub@redhat.com>
23662 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
23663 and GIMPLE_PREDICT use break instead of return true. For
23664 GIMPLE_EH_DISPATCH, compare dispatch region.
23666 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
23668 * doc/extend.texi (__sync Builtins): Simplify some text. Update
23669 details about the implementation. Make clear preference for
23670 __atomic builtins. Reduce possibility of future change.
23672 2015-04-15 Nick Clifton <nickc@redhat.com>
23674 * config/rx/rx.opt (mallow-string-insns): New option.
23675 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
23676 builtin if string instructions are denied.
23677 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
23678 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
23680 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
23681 * config/rx/rx.md (movstr): Enable pattern only if string
23682 instructions are allowed.
23683 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
23684 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
23685 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
23686 (MULTILIB_DIRNAMES): Add no-strings.
23687 * doc/invoke.texi: Document -mno-allow-string-insns.
23689 2015-04-15 Alan Modra <amodra@gmail.com>
23693 PR middle-end/36043
23694 * calls.c (load_register_parameters): Don't load past end of
23695 mem unless suitably aligned.
23697 2015-04-15 Nick Clifton <nickc@redhat.com>
23699 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
23700 decrement instruction as being frame related.
23701 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
23703 If zero extending a function address enclose the operation in
23705 (rl78_preferred_reload_class): New function.
23706 (TARGET_PREFERRED_RELOAD_CLASS): Define.
23707 * config/rl78/rl78.md: Remove useless constraints in expanders.
23708 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
23709 (mulhi3_rl78): Likewise.
23710 (mulhi3_g13): Likewise.
23711 (mulsi3_rl78): Likewise.
23712 (es_addr): Move to before the multiply patterns.
23714 2015-04-15 Alan Modra <amodra@gmail.com>
23716 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
23717 and sequence_stack. Add seq.
23718 (seq_stack): Delete.
23719 * function.c (prepare_function_start): Don't access x_last_insn.
23720 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
23721 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
23722 * emit_rtl.c (start_sequence, push_topmost_sequence,
23723 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
23724 sequence accessors.
23725 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
23726 remove_insn): Likewise. Simplify.
23727 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
23728 and pop_topmost_sequence.
23729 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
23731 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
23733 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
23736 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
23739 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
23741 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
23742 (LEGACY_INT_REGNO_P): Ditto.
23743 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
23744 (ANY_MASK_REG_P): Remove.
23745 (BND_REG_P): Rename from ANY_BND_REG_P.
23746 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
23747 legacy integer registers. Do not handle MMX_REG_P in a special way.
23748 Merge 64byte and 32byte SSE handling.
23750 2015-04-14 Nick Clifton <nickc@redhat.com>
23752 * expr.c (expand_assignment): Force an address offset computation
23753 into a register before changing its mode.
23754 (expand_expr_real_1): Likewise.
23756 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
23758 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
23759 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
23760 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
23761 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
23762 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
23763 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
23764 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
23765 and __aarch64_vget_lane_any.
23767 2015-04-14 Jakub Jelinek <jakub@redhat.com>
23769 PR rtl-optimization/65761
23770 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
23771 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
23773 2015-04-14 Richard Biener <rguenther@suse.de>
23775 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
23776 (graphite_can_represent_scev): Use POINTER_TYPE_P.
23778 2015-04-14 Richard Biener <rguenther@suse.de>
23780 PR tree-optimization/65758
23781 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
23783 (ccp_lattice_meet): Likewise.
23784 (bit_value_unop): Likewise.
23785 (bit_value_binop): Likewise.
23786 (bit_value_assume_aligned): Likewise.
23788 2015-04-14 Christian Bruel <christian.bruel@st.com>
23790 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
23793 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
23795 PR tree-optimization/63387
23796 * match.pd ((x unord x) | (y unord y) -> (x unord y),
23797 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
23799 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
23801 * config/i386/predicates.md (any_QIreg_operand): Rename from
23802 q_regs_operand. Do not process subregs.
23803 (QIreg_operand): Use QI_REGNO_P predicate.
23804 (ext_QIreg_operand): Ditto.
23805 (ext_register_operand): Ditto.
23806 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
23807 (AND splitters): Ditto.
23808 (AND with -65536 splitter): Add SWI48 mode for operand 0.
23809 (AND with -256 splitter): Use any_QIreg_operand predicate and
23810 SWI248 mode for operand 0.
23811 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
23812 mode for operand 0.
23813 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
23815 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
23817 * doc/plugins.texi: Rewrite first introductory paragraph.
23819 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
23821 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
23822 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
23824 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
23826 * ipa-profie.c (ipa_profile): Check number of parameters
23827 and possible polymorphic call targets before
23830 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
23832 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
23833 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
23835 2015-04-13 Richard Biener <rguenther@suse.de>
23837 PR tree-optimization/65204
23838 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
23839 takens for bit-CCP.
23841 2015-04-13 Richard Biener <rguenther@suse.de>
23844 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
23845 and cond_not_taken_branch_cost to 4 and 2.
23846 (bdver2_cost): Likewise.
23847 (bdver3_cost): Likewise.
23848 (bdver4_cost): Likewise.
23850 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
23852 * hash-table.h (hash_table constructor): Add mem stats.
23853 (alloc_entries): Likewise.
23855 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
23857 * ipa-cp.c (ipcp_driver): Relase prev_edge.
23858 * passes.c (execute_one_pass): Only add transform if pass has one.
23860 2015-04-12 Joseph Myers <joseph@codesourcery.com>
23862 * config/i386/i386.c (ix86_option_override_internal): Don't set
23863 -fprefetch-loop-arrays if optimizing for size.
23865 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
23866 Gerald Pfeifer <gerald@pfeifer.com>
23868 * doc/contrib.texi (Contributors): Add Martin Jambor and
23871 2015-04-12 Jakub Jelinek <jakub@redhat.com>
23873 * BASE-VER: Set to 6.0.0.
23875 PR tree-optimization/65747
23876 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
23877 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
23879 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
23881 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
23882 sentence. Improve grammar.
23884 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
23886 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
23888 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
23891 * ipa-inline-transform.c (speculation_removed): Remove static var.
23892 (check_speculations): New function.
23893 (clone_inlined_nodes): Do not check spculations.
23894 (inline_call): Call check_speculations.
23895 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
23896 consider non-invariants.
23898 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
23899 Martin Liska <mliska@suse.cz>
23902 * ipa-icf.c (sem_item::compare_cgraph_references): function and
23903 variable can not match.
23904 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
23905 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
23907 2015-04-11 Jakub Jelinek <jakub@redhat.com>
23909 PR tree-optimization/65735
23910 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
23911 Remove visited_phis argument, add visited_bbs, avoid recursing into the
23912 same bb rather than just into the same phi node.
23913 (thread_through_normal_block): Adjust caller.
23915 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
23917 * doc/contrib.texi (Contributors): Add Ira Rosen.
23919 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
23921 * gcov.c (find_source): Fix miswording in error message.
23922 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
23923 (ix86_expand_sse_comi_round): Fix typo in error message.
23925 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
23927 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
23929 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
23931 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
23933 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
23936 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
23937 Print bad_spills_num and insn_pseudos_num.
23939 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23942 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
23943 when creating +1 values for SImode.
23945 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
23948 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
23951 2015-04-10 Jakub Jelinek <jakub@redhat.com>
23952 Iain Sandoe <iain@codesourcery.com>
23955 * configure: Regenerate.
23957 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
23960 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
23962 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
23964 * doc/contrib.texi (Contributors): Add John Marino.
23966 2015-04-09 Jakub Jelinek <jakub@redhat.com>
23968 PR tree-optimization/65709
23969 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
23970 TREE_TYPE (TREE_TYPE (t)).
23972 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
23975 * lra-int.h (lra_bad_spill_regno_start): New.
23976 * lra.c (lra_bad_spill_regno_start): New.
23977 (lra): Set up lra_bad_spill_regno_start. Set up
23978 lra_constraint_new_regno_start unconditionally.
23979 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
23982 2015-04-09 Marek Polacek <polacek@redhat.com>
23983 Jakub Jelinek <jakub@redhat.com>
23985 PR middle-end/65554
23986 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
23987 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
23990 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
23992 PR rtl-optimization/65693
23993 * combine.c (is_parallel_of_n_reg_sets): Move outside of
23996 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
23999 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
24000 device specs file if "device-specs%s" didn't resolve to a path.
24002 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
24005 * config/i386/i386.c (fixup_modeless_constant): New.
24006 (ix86_expand_args_builtin): Fixup modeless constant operand.
24007 (ix86_expand_round_builtin): Ditto.
24008 (ix86_expand_special_args_builtin): Ditto.
24009 (ix86_expand_builtin): Ditto.
24011 2015-04-09 Jakub Jelinek <jakub@redhat.com>
24014 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
24015 any pow2 integer in between 2 and 0x80000000U inclusive.
24017 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
24019 PR rtl-optimization/65693
24020 * combine.c (is_parallel_of_n_reg_sets): Change first argument
24021 from an rtx_insn * to an rtx.
24022 (try_combine): Adjust both callers. Use it once more.
24024 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24026 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
24027 (chkp_make_static_const_bounds): Search existing
24028 symbol by assembler name. Use make_decl_one_only.
24029 (chkp_get_zero_bounds_var): Remove node search which
24030 is now performed in chkp_make_static_const_bounds.
24031 (chkp_get_none_bounds_var): Likewise.
24033 2015-04-08 Michael Witten <mfwitten@gmail.com>
24035 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
24038 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24040 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
24042 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
24044 * doc/extend.texi (__sync Builtins): Fix grammar.
24046 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24048 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
24050 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24052 * varasm.c (emit_local): Move definition of align.
24054 2015-04-08 Julian Brown <julian@codesourcery.com>
24056 * config/nvptx/mkoffload.c (process): Support variable mapping.
24058 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
24060 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
24062 (alpha_write_one_linkage): Correct typo.
24064 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24066 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
24068 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
24070 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
24072 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24074 * tree-chkp.h (chkp_insert_retbnd_call): New.
24075 * tree-chkp.c (chkp_insert_retbnd_call): New.
24076 * ipa-split.c (insert_bndret_call_after): Remove.
24077 (split_function): Use chkp_insert_retbnd_call.
24078 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
24079 bounds for instrumented functions.
24081 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
24084 * calls.c (initialize_argument_information): When producing tail
24085 call also turn SSA_NAMES passed by references to original PARM_DECLs
24087 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
24090 * lra-remat.c (do_remat): Process input and non-input insn
24091 registers separately.
24093 2015-04-07 Jakub Jelinek <jakub@redhat.com>
24096 * valtrack.c (debug_lowpart_subreg): New function.
24097 (dead_debug_insert_temp): Use it.
24099 PR middle-end/65680
24100 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
24101 into signed HOST_WIDE_INT the same as negative bit_offset.
24103 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
24105 * ipa-comdats.c (ipa_comdats): Visit all thunks
24106 to set proper comdat group.
24108 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24111 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
24112 on constants for NEON VSTRUCT modes.
24114 2015-04-07 Jakub Jelinek <jakub@redhat.com>
24115 Iain Sandoe <iain@codesourcery.com>
24118 * configure: Regenerate.
24120 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24123 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
24124 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
24125 that LFD is used to load double constants instead of LFS. Add
24126 defaults for all costs structures. Add comments for missing
24127 initialization fields.
24128 (size32_cost): Likewise.
24129 (size64_cost): Likewise.
24130 (rs64a_cost): Likewise.
24131 (mpccore_cost): Likewise.
24132 (ppc403_cost): Likewise.
24133 (ppc405_cost): Likewise.
24134 (ppc440_cost): Likewise.
24135 (ppc476_cost): Likewise.
24136 (ppc601_cost): Likewise.
24137 (ppc603_cost): Likewise.
24138 (ppc604_cost): Likewise.
24139 (ppc604e_cost): Likewise.
24140 (ppc620_cost): Likewise.
24141 (ppc630_cost): Likewise.
24142 (ppccell_cost): Likewise.
24143 (ppc750_cost): Likewise.
24144 (ppc7450_cost): Likewise.
24145 (ppc8540_cost): Likewise.
24146 (ppce300c2c3_cost): Likewise.
24147 (ppce500mc_cost): Likewise.
24148 (ppce500mc64_cost): Likewise.
24149 (ppce5500_cost): Likewise.
24150 (ppce6500_cost): Likewise.
24151 (titan_cost): Likewise.
24152 (power4_cost): Likewise.
24153 (power6_cost): Likewise.
24154 (power7_cost): Likewise.
24155 (power8_cost): Likewise.
24156 (ppca2_cost): Likewise.
24157 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
24159 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
24160 instead of XXLOR to copy SFmode to clear out dirty bits created
24161 when SFmode denormals are generated.
24162 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
24163 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
24165 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
24167 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
24168 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
24169 * config/aarch64/aarch64-tune.md: Regenerate.
24171 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
24173 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
24174 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
24175 * config/arm/arm-cores.def (exynos-m1): New core.
24176 * config/arm/arm-tune.md: Regenerate.
24177 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
24178 * config/arm/bpabi.h: Likewise.
24180 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
24182 * ipa-cp (set_single_call_flag): Remove too
24183 restrictive assert.
24185 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
24187 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
24188 GOMP_offload_unregister from the destructor.
24190 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
24192 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
24193 flags for instrumentation thunk.
24194 (chkp_produce_thunks): Likewise.
24196 2015-04-05 Martin Liska <mliska@suse.cz>
24199 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
24200 has computed data structure.
24201 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24203 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
24205 * invoke.texi (inline-unit-growth): Increase growth to 20%
24206 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
24208 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
24211 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
24213 (lra_rematerialization_iter): New.
24214 * lra.c (lra): Initialize lra_rematerialization_iter.
24215 Stop updating lra_constraint_new_regno_start after switching of
24216 inheritance and rematerialization.
24217 * lra-remat.c (lra_rematerialization_iter): New.
24218 (lra_remat): Add printing pass iteration. Do rematerialization
24219 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
24221 2015-04-04 Richard Biener <rguenther@suse.de>
24223 PR tree-optimization/64909
24224 PR tree-optimization/65660
24225 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
24226 to take a cost vector for scalar iteration cost.
24227 (vect_get_single_scalar_iteration_cost): Likewise.
24228 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
24229 Compute the scalar iteration cost into a cost vector.
24230 (vect_get_known_peeling_cost): Use the scalar cost vector to
24231 account for the cost of the peeled iterations.
24232 (vect_estimate_min_profitable_iters): Likewise.
24233 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24236 2015-04-04 Alan Modra <amodra@gmail.com>
24240 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
24241 0.0 constant unless TARGET_VSX.
24242 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
24245 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
24248 * ipa-inline-transform.c (inline_call): Skip sanity check to work
24251 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
24254 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
24255 speculative indirect edges to avoid ordering issue.
24257 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
24260 * ipa-inline.c (edge_badness): Add combined size to the denominator.
24262 2015-04-03 Jakub Jelinek <jakub@redhat.com>
24264 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
24265 TYPE_ARTIFICIAL on the .omp_data* types.
24267 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
24269 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
24270 instrumentation thunks.
24272 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
24274 * config/i386/i386.c (ix86_expand_call): Avoid nested
24275 PARALLEL in returned call value.
24277 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
24279 * lto-cgraph.c (input_cgraph_1): Always link instrumented
24280 assembler name with original one.
24282 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
24284 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
24286 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
24288 Revert parts of r216820.
24289 * config/i386/i386.md (movqi_internal): Correct type calculation
24290 for alternatives 3 and 5.
24292 2015-04-02 Jakub Jelinek <jakub@redhat.com>
24294 PR preprocessor/61977
24295 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
24296 predefine __vector/__bool/__pixel macros nor context sensitive
24297 macros for CLK_ASM.
24298 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
24300 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
24302 * config/pa/pa.c (pa_output_move_double): Directly handle register
24303 indexed memory operand. Simplify handling of scaled register indexed
24306 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
24309 * config/i386/linux-common.h (MPX_SPEC): New.
24310 (CHKP_SPEC): Add MPX_SPEC.
24311 * doc/invoke.texi (-fcheck-pointer-boudns): Document
24312 possible issues with '-z bndplt' support in linker.
24314 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
24316 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
24317 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
24318 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
24319 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
24320 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
24322 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
24324 * config/i386/sync.md (UNSPEC_MOVA): Remove.
24325 (atomic_load<mode>): Change operand 0 predicate to
24326 nonimmediate_operand and fix up the destination when needed.
24328 (atomic_loaddi_fpu): Use UNSPEC_LDA.
24329 (atomic_store<mode>): Change operand 1 predicate to
24330 nonimmendate_operand and move the source to register when needed.
24332 (atomic_store<mode>_1): Use UNSPEC_STA.
24333 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
24334 Fix moves from memory operand. Use UNSPEC_STA.
24336 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
24338 * expmed.c (strict_volatile_bitfield_p): Check that the access will
24339 not cross a MODESIZE boundary.
24340 (store_bit_field, extract_bit_field): Added assertions in the
24341 strict volatile bitfields code path.
24343 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
24346 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
24347 Increase args array size by one to avoid buffer overflow.
24349 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
24351 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24353 * ipa-inline.c (edge_badness): Add wrapper penalty.
24354 (sum_callers): Move up.
24355 (inline_small_functions): Set single_caller.
24356 * ipa-inline.h (inline_summary): Add single_caller.
24357 * ipa-split.c (split_function): Set split_part.
24358 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
24359 * cgraph.h (cgraph_node): Add split_part.
24361 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
24364 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
24365 Do not split operands 0 and operands 2 to halfmode.
24366 (atomic_compare_and_swap<mode>): Update for
24367 atomic_compare_and_swap<dwi>_doubleword changes.
24369 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
24371 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
24372 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
24373 no caching is done.
24375 2015-03-31 Martin Liska <mliska@suse.cz>
24378 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
24379 has already filled up function summary.
24380 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24382 2015-03-31 Richard Biener <rguenther@suse.de>
24384 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
24387 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
24389 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
24391 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
24392 (s390_asm_output_function_label): Adapt to new signature of
24393 s390_function_num_hotpatch_hw
24394 Optimise the code generating assembler output.
24395 Add comments to assembler file.
24397 2015-03-31 Richard Biener <rguenther@suse.de>
24399 PR middle-end/65626
24400 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
24401 of the noreturn call so it is last and cleanup_control_flow_bb
24402 can do the CFG part.
24404 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
24407 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
24408 same_comdat_group for external symbols.
24409 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
24410 infinite same_comdat_group traversal loop.
24412 2015-03-31 Jakub Jelinek <jakub@redhat.com>
24415 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
24416 automatically to $headers.
24418 2015-03-30 Jakub Jelinek <jakub@redhat.com>
24421 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
24422 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
24424 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
24426 * ipa-prop.c (param_type_may_change_p): Likewise.
24427 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
24428 (remove_unused_scope_block_p): Add in_ctor_dtor_block
24429 argument. Before inlining, preserve
24430 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
24431 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
24433 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
24435 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
24438 * ipa-inline.c (edge_badness): Base denominator on callee's
24441 2015-03-27 Martin Jambor <mjambor@suse.cz>
24444 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
24445 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
24446 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
24447 node_calling_single_call.
24448 * ipa-cp.c (count_callers): New function.
24449 (set_single_call_flag): Likewise.
24450 (initialize_node_lattices): Count callers and set single_flag_call if
24452 (incorporate_penalties): New function.
24453 (good_cloning_opportunity_p): Use it, dump new flags.
24454 (propagate_constants_topo): Set node_within_scc flag if appropriate.
24455 * doc/invoke.texi (ipa-cp-recursion-penalty,
24456 ipa-cp-single-call-pentalty): Document.
24458 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
24461 * symtab.c (symtab_node::get_partitioning_class): Register vars
24463 * varpool.c (symbol_table::output_variables) Do not assemble unefined
24464 decls for non-symbols.
24466 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
24469 * output.h (default_binds_local_p_2): New.
24470 * varasm.c (default_binds_local_p_2): Renamed to ...
24471 (default_binds_local_p_3): This. Don't return true on protected
24472 data symbol if protected data may be external.
24473 (default_binds_local_p): Use default_binds_local_p_3.
24474 (default_binds_local_p_1): Likewise.
24475 (default_binds_local_p_2): New.
24476 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
24477 default_binds_local_p_2 if TARGET_MACHO is undefined.
24479 2015-03-27 Jakub Jelinek <jakub@redhat.com>
24482 * config/i386/i386.c (legitimize_pic_address): If base
24483 is SYMBOL_REF or LABEL_REF using %rip addressing, force
24484 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
24486 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
24489 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
24492 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
24495 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
24496 of optimized out indirect call.
24497 (redirect_to_unreachable): Always build symbol table node for
24498 BUILT_IN_UNREACHABLE
24500 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
24503 * ira-costs.c (record_reg_classes): Process all constraint string
24506 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
24508 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
24512 * config/c6x/constraints.md (S3): New constraint.
24513 * config/c6x/c6x.md (real_jump): Use it.
24515 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
24517 PR middle-end/65595
24518 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
24519 do redirection if the call is not optimized out.
24521 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
24524 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
24525 (fchkp-check-incomplete-type): Add LTO.
24526 (fchkp-zero-input-bounds-for-main): Likewise.
24527 (fchkp-first-field-has-own-bounds): Likewise.
24528 (fchkp-narrow-bounds): Likewise.
24529 (fchkp-narrow-to-innermost-array): Likewise.
24530 (fchkp-use-static-bounds): Likewise.
24531 (fchkp-use-static-const-bounds): Likewise.
24532 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
24534 2015-03-27 Marek Polacek <polacek@redhat.com>
24536 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
24538 2015-03-27 Marek Polacek <polacek@redhat.com>
24541 * ubsan.c (ubsan_create_edge): New function.
24542 (instrument_bool_enum_load): Call it.
24543 (instrument_nonnull_arg): Likewise.
24544 (instrument_nonnull_return): Likewise.
24545 (instrument_object_size): Likewise.
24547 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
24549 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
24552 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
24555 * lto-streamer.h (class lto_location_cache): New.
24556 (struct data_in): Add location_cache.
24557 (lto_input_location): Update prototype.
24558 (stream_input_location_now): New.
24559 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
24560 pointer to location.
24561 (stream_input_location): Update.
24562 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
24563 (warn_odr): Apply location cache before warning.
24564 (lto_input_location): Update prototype.
24565 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
24566 Use stream_input_location_now.
24567 * lto-streamer-in.c (lto_location_cache::current_cache): New static
24569 (lto_location_cache::cmp_loc): New function.
24570 (lto_location_cache::apply_location_cache): New function.
24571 (lto_location_cache::accept_location_cache): New function.
24572 (lto_location_cache::revert_location_cache): New function.
24573 (lto_location_cache::input_location): New function.
24574 (lto_input_location): Do location caching.
24575 (stream_input_location_now): New function.
24576 (input_eh_region, input_struct_function_base): Use
24577 stream_input_location_now.
24578 (lto_data_in_create): use new.
24579 (lto_data_in_delete): Use delete.
24580 * tree-streamer-in.c (unpack_ts_block_value_fields,
24581 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
24582 lto_input_ts_exp_tree_pointers): Update for cached location api.
24584 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
24587 * passes.def: Add pass_nothrow.
24588 * ipa-pure-const.c: (pass_data_nothrow): New.
24589 (pass_nothrow): New.
24590 (pass_nothrow::execute): New.
24591 (make_pass_nothrow): New.
24592 * tree-pass.h (make_pass_nothrow): Declare.
24594 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
24596 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
24597 edge to change by speculation resolution or redirection.
24598 (edge_set_predicate): Likewise.
24599 (inline_summary_t::duplicate): Likewise.
24600 (remap_edge_summaries): Likewise.
24602 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
24604 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
24606 (can_inline_edge_p): Relax option matching for always inline functions.
24608 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
24611 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
24612 Check operand 4 and operand 0 for equality.
24613 (avx512f_vextract<shuffletype>32x4_1_maskm):
24614 Check operand 6 and operand 0 for equality.
24615 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
24617 (vec_extract_hi_<mode>_maskm): Ditto.
24619 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
24621 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
24622 dead calls back to live.
24623 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
24625 (cgraph_node::verify_node): ... here; verify only callee edges,
24627 * cif-code.def (CILK_SPAWN): New code.
24629 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
24631 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
24632 (edge_set_predicate): Use it to mark unreachable edges.
24633 (inline_summary_t::duplicate): Remove unnecesary code.
24634 (remap_edge_summaries): Likewise.
24635 (dump_inline_summary): Report contains_cilk_spawn.
24636 (compute_inline_parameters): Compute contains_cilk_spawn.
24637 (inline_read_section, inline_write_summary): Stream
24638 contains_cilk_spawn.
24639 * ipa-inline.c (can_inline_edge_p): Do not touch
24640 DECL_STRUCT_FUNCTION that may not be available;
24641 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
24642 remove check for callee_fun->can_throw_non_call_exceptions and
24643 replace it by optimization attribute check; check for flag_exceptions.
24644 * ipa-inline-transform.c (inline_call): Maintain
24645 DECL_FUNCTION_PERSONALITY
24646 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
24648 2015-03-26 Jakub Jelinek <jakub@redhat.com>
24650 PR tree-optimization/65551
24651 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
24652 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
24654 2015-03-26 Richard Biener <rguenther@suse.de>
24656 PR middle-end/65555
24657 * tree-cfg.c (verify_gimple_call): Do not require a call to
24658 have no LHS if it wasn't recognized as control altering yet.
24660 2015-03-26 Jakub Jelinek <jakub@redhat.com>
24662 PR tree-optimization/64715
24663 * passes.def: Add another instance of pass_object_sizes before ccp1.
24664 * tree-object-size.c (pass_object_sizes::execute): In
24665 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
24666 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
24667 __bos result and the computed constant. Remove redundant
24668 checks, obsoleted by gimple_call_builtin_p test.
24670 * var-tracking.c (variable_tracking_main_1): Don't track
24671 variables for targetm.no_register_allocation targets.
24673 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
24675 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
24676 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
24678 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
24681 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
24682 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
24683 0.0 is correctly setup.
24684 (extenddftf2_internal): Likewise.
24686 2015-03-25 Sebastian Pop <s.pop@samsung.com>
24688 PR tree-optimization/65177
24689 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
24691 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
24692 edges not adjacent on the path to the original code.
24694 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
24697 * doc/install.texi (Building a native compiler): Document new
24698 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
24699 configuration assumes that the host supports the linker plugin.
24701 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
24704 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
24705 chain for generated call.
24707 2015-03-25 Richard Biener <rguenther@suse.de>
24709 * passes.c (pass_manager::execute_early_local_passes): Guard
24710 execution of pass_chkp_instrumentation_passes with
24711 flag_check_pointer_bounds.
24712 (pass_chkp_instrumentation_passes::gate): Likewise.
24714 2015-03-25 Martin Liska <mliska@suse.cz>
24716 PR tree-optimization/65538
24717 * symbol-summary.h (function_summary::~function_summary):
24718 Relese memory for allocated summaries.
24719 (function_summary::release): New function.
24721 2015-03-25 Jakub Jelinek <jakub@redhat.com>
24724 * lto-streamer-out.c (DFS::worklist): New struct.
24725 (DFS::worklist_vec): New data member.
24726 (DFS::next_dfs_num): Remove.
24727 (DFS::DFS): Rewritten using worklist instead of recursion,
24728 using most of code from DFS::DFS_write_tree.
24729 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
24730 pass it to DFS_write_tree calls.
24731 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
24732 quick initial checks push it into worklist_vec and return.
24734 2015-03-25 Richard Biener <rguenther@suse.de>
24736 PR middle-end/65519
24737 * genmatch.c (expr::gen_transform): Re-write to avoid
24738 using gimple_build.
24740 2015-03-25 Bin Cheng <bin.cheng@arm.com>
24742 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
24744 2015-03-25 Bin Cheng <bin.cheng@arm.com>
24746 * config/arm/arm.opt (print_tune_info): New option.
24747 * config/arm/arm.c (arm_print_tune_info): New function.
24748 (arm_file_start): Call arm_print_tune_info.
24749 * config/arm/arm-protos.h (struct tune_params): Add comment.
24750 * doc/invoke.texi (@item -mprint-tune-info): New item.
24751 (-mtune): mention it in ARM Option Summary.
24753 2015-03-25 DJ Delorie <dj@redhat.com>
24755 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
24758 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
24759 Martin Liska <mliska@suse.cz>
24761 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
24762 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
24763 (sem_item::add_type): New function.
24764 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
24765 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
24766 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
24767 (sem_function::equals_wpa): Fix typo.
24768 * ipa-icf.h (sem_item::add_type): New function.
24769 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
24772 2015-03-24 Jakub Jelinek <jakub@redhat.com>
24774 PR tree-optimization/65533
24775 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
24776 with swapped operands, call vect_free_slp_tree on
24777 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
24780 2015-03-24 Richard Biener <rguenther@suse.de>
24782 PR middle-end/65517
24783 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
24784 for fixup if necessary.
24786 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
24788 * doc/extend.texi (Function Attributes): Add @cindex entries
24789 for all attributes and regularize their format. Delete text
24790 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
24791 information about "eightbit_data", "tiny_data", and "model"
24792 variable attributes to the Variable Attributes section. Fix
24793 some obvious typos and copy-editing issues.
24794 (Variable Attributes, Type Attributes): Likewise add/fix
24795 @cindex entries for all attributes.
24797 2015-03-23 Jakub Jelinek <jakub@redhat.com>
24800 * tree-chkp.c (chkp_build_returned_bound): Ignore
24801 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
24803 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
24806 * config/sh/predicates.md (simple_mem_operand,
24807 displacement_mem_operand): Add test for reg.
24808 (short_displacement_mem_operand): Test for displacement_mem_operand
24809 before invoking sh_disp_addr_displacement.
24810 * config/sh/constraints.md (Sdd, Sra): Simplify.
24811 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
24812 Remove redundant displacement_mem_operand tests.
24814 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
24817 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
24818 the same -mmcu=MCU more than once.
24820 2015-03-23 Jakub Jelinek <jakub@redhat.com>
24823 * ipa-devirt.c: Remove duplicate demangle.h include.
24826 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
24828 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
24829 REG_POINTER on *destptr after adjusting it for prologue size.
24832 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
24833 ultimate_alias_target ()->order ints instead of
24834 ultimate_alias_target () pointers.
24836 2015-03-23 Richard Biener <rguenther@suse.de>
24838 PR tree-optimization/65518
24839 * tree-vect-stmts.c (vectorizable_load): Reject single-element
24840 interleaving cases we generate absymal code for.
24842 2015-03-23 Richard Biener <rguenther@suse.de>
24844 PR tree-optimization/65494
24845 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
24847 (vect_analyze_slp_instance): But do that here, always and once.
24849 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24851 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
24852 adding T or multiplying by T+1 and subracting T.
24854 2015-03-22 Jeff Law <law@redhat.com>
24856 PR rtl-optimization/64317
24857 * Makefile.in (OBJS): Add gcse-common.c
24858 * gcse.c: Include gcse-common.h
24859 (struct modify_pair_s): Move structure definition to gcse-common.h
24860 (compute_transp): Move function to gcse-common.c.
24861 (canon_list_insert): Similarly.
24862 (record_last_mem_set_info): Break out some code and put it into
24863 gcse-common.c. Call into the new common code.
24864 (compute_local_properties): Pass additional arguments to compute_transp.
24865 * postreload-gcse.c: Include gcse-common.h and df.h
24866 (modify_mem_list_set, blocks_with_calls): New variables.
24867 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
24868 (get_bb_avail_insn): Pass in the expression index too.
24869 (alloc_mem): Allocate memory for the new bitmaps and lists.
24870 (free_mem): Free memory for the new bitmaps and lists.
24871 (insert_expr_in_table): Record a bitmap index for each entry we
24873 (record_last_mem_set_info): Call into common code in gcse-common.c.
24874 (get_bb_avail_insn): If no available insn was found in the requested
24875 BB. If BB has a single predecessor, see if the expression is
24876 transparent in BB and available in that single predecessor.
24877 (compute_expr_transp): New wrapper for compute_transp.
24878 (eliminate_partially_redundant_load): Pass expression's bitmap_index
24879 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
24880 (gcse_after_reload_main): If there are elements in the hash table,
24881 then compute transparency for all the elements in the hash table.
24882 * gcse-common.h: New file.
24883 * gcse-common.c: New file.
24885 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
24887 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
24889 (System Headers): Likewise.
24891 (Traditional macros): Likewise.
24892 (Invocation): Likewise.
24893 (Option Index): Likewise.
24894 * doc/cppopts.texi (-M): Likewise.
24895 (-finput-charset): Likewise.
24896 (--help): Likewise.
24897 * doc.invoke.texi (AVR Options): Likewise.
24898 (V850 Options): Likewise.
24900 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
24903 * ipa-devirt.c: Include demangle.h
24904 (odr_type_d): Add field rtti_broken.
24905 (odr_subtypes_equivalent_p): Do not require name to match.
24906 (compare_virtual_tables): Fix typo; if type already has ODR violation,
24907 bypass the tests; be ready for function referneces in vtables that are
24908 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
24909 (warn_odr): Give up for nameless types.
24910 (warn_types_mismatch): Report mismatch in mangled names;
24911 report mismatch in anonymous namespaces; look into component types to
24912 give useful error; report when mismatch is dragged in from other ODR
24914 (odr_types_equivalent_p): Match types for being polymorphic; avoid
24915 duplicated diagnostics.
24916 (add_type_duplicate): Reorder checks so more informative ones come
24917 first; fix typo; do not output "the extra base is defined here" when
24919 (BINFO_N_BASE_BINFOS): Relax sanity check.
24921 2015-03-22 Martin Liska <mliska@suse.cz>
24922 Jakub Jelinek <jakub@redhat.com>
24924 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
24925 masks that can potentially include a builtin.
24926 (ix86_add_new_builtins): Introduce fast filter for isa values
24927 that cannot trigger builtin inclusion.
24929 2015-03-22 Martin Liska <mliska@suse.cz>
24931 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
24932 (sem_item::update_hash_by_local_refs): Likewise.
24933 (sem_variable::get_hash): Empty line is fixed.
24934 (sem_item_optimizer::execute): Include adding of hash references.
24935 (sem_item_optimizer::update_hash_by_addr_refs): New function.
24936 (sem_item_optimizer::build_hash_based_classes): Use local hash.
24937 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
24938 (sem_item::update_hash_by_local_refs): Likewise.
24940 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
24943 * ipa-comdats.c (enqueue_references): Walk through thunks.
24944 (ipa_comdats): Likewise.
24945 (set_comdat_group_1): New function.
24947 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
24950 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
24953 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
24954 Gerald Pfeifer <gerald@pfeifer.com>
24956 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
24958 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
24959 Sandra Loosemore <sandra@codesourcery.com>
24961 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
24962 function parameter declaration.
24963 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
24964 Update arguments to nios2_adjust_call_address().
24965 (sibcall_internal): Rename from *sibcall.
24966 (sibcall_value_internal): Rename from *sibcall_value.
24967 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
24968 (nios2_large_got_address): Add target temp reg parameter.
24969 (nios2_got_address): Adjust call to nios2_large_got_address, add
24970 force_reg around it.
24971 (nios2_load_pic_address): Add target temp reg parameter, replace call
24972 to nios2_got_address with corresponding code.
24973 (nios2_legitimize_constant_address): Update call to
24974 nios2_load_pic_address.
24975 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
24976 to use temp reg for PIC loading purposes.
24977 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
24978 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
24979 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
24981 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
24983 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
24984 usage of "the @option{...}".
24985 (-Wopenmp-simd): Likewise.
24986 (-fsanitize-recover): Likewise.
24987 (-fsanitize-undefined-trap-on-error): Likewise.
24989 (tracer-dynamic-coverage-feedback): Likewise.
24990 (reorder-block-duplicate-feedback): Likewise.
24991 (loop-unroll-jam-size): Likewise.
24994 (-mabs=legacy): Likewise.
24995 (-mupper-regs-df): Likewise.
24996 (-mupper-regs-sf): Likewise.
24997 (-mpointers-to-nested-functions): Likewise.
24999 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25001 * doc/extend.texi (Cilk Plus Builtins): Add markup.
25003 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25005 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
25006 additional index entries and cross-references.
25007 (-fchkp-check-incomplete-type): Likewise.
25008 (-fchkp-first-field-has-own-bounds): Likewise.
25009 (-fchkp-narrow-to-innermost-array): Likewise.
25010 (-fchkp-use-fast-string-functions): Likewise.
25011 (-fchkp-use-nochk-string-functions): Likewise.
25012 (-fchkp-use-static-const-bounds): Likewise.
25013 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25014 (-fchkp-instrument-marked-only): Likewise.
25015 (-fchkp-use-wrappers): Likewise.
25016 (-static-libmpx): Likewise.
25017 (-static-libmpxwrappers): Likewise.
25018 * doc/extend.texi (bnd_legacy): Likewise.
25019 (bnd_instrument): Likewise.
25020 (bnd_variable_size): Likewise.
25021 (Pointer Bounds Checker builtins): Likewise.
25023 2015-03-21 Tom de Vries <tom@codesourcery.com>
25025 PR tree-optimization/65458
25026 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
25027 * cgraph.h (cgraph_node): Add parallelized_function field.
25028 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
25029 (input_overwrite_node): Read parallelized_function field.
25030 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
25031 parallelized_function on cgraph_node for child_fn.
25032 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
25033 Remove include of gt-tree-parloops.h.
25034 (parallelized_functions): Remove static variable.
25035 (parallelized_function_p): Rewrite using parallelized_function field of
25037 (create_loop_fn): Remove adding to parallelized_functions.
25038 * Makefile.in (GTFILES): Remove tree-parloops.c
25040 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
25042 PR rtl-optimization/64366
25043 * lra.c (lra_update_insn_regno_info): Consider regs in
25044 CALL_INSN_FUNCTION_USAGE memory.
25046 2015-03-20 Richard Biener <rguenther@suse.de>
25048 PR middle-end/64715
25049 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
25050 for type comparison and gcc_checking_assert.
25051 (chrec_fold_plus_poly_poly): Likewise.
25052 (chrec_fold_multiply_poly_poly): Likewise.
25053 (chrec_convert_1): Likewise.
25054 * gimplify.c (gimplify_expr): Remove premature folding of
25055 &X + CST to &MEM[&X, CST].
25057 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25059 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
25061 (ipa_inline): Recompute inline_failed codes.
25062 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25063 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
25066 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
25068 PR rtl-optimization/60851
25069 * recog.c (constrain_operands): Accept a pseudo register before reload
25070 for LRA enabled targets.
25072 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
25075 * config/rs6000/predicates.md (easy_fp_constant): Remove special
25076 -ffast-math handling that kept non-0 constants live in the RTL
25077 until reload. Remove logic testing the number of instructions it
25078 took to create a constant in a GPR that was never used, due to a
25079 test for soft-float earlier.
25080 (memory_fp_constant): Delete, no longer used.
25082 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
25083 alternatives for loading non-0 constants into GPRs for hard
25084 floating point that is no longer needed due to changes in
25085 easy_fp_constant. Add support for loading 0.0 into GPRs.
25086 (mov<mode>_hardfloat32): Likewise.
25087 (mov<mode>_hardfloat64): Likewise.
25088 (mov<mode>_64bit_dm): Likewise.
25089 (movtd_64bit_nodm): Likewise.
25090 (pre-reload move FP constant define_split): Delete define_split,
25091 since it is no longer used.
25092 (extenddftf2_internal): Remove GHF constraints that are not valid
25095 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
25097 PR rtl-optimization/63491
25098 * lra-constraints.c (check_and_process_move): Use src instead of
25099 sreg. Remove some dead code.
25101 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
25104 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
25105 (sem_variable::merge): Likewise.
25107 2015-03-19 Martin Liska <mliska@suse.cz>
25110 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
25111 all fields of cgraph_thunk_info.
25113 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
25115 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
25116 clone instrumented thunks.
25118 2015-03-19 Richard Biener <rguenther@suse.de>
25121 2015-03-10 Richard Biener <rguenther@suse.de>
25123 PR middle-end/63155
25124 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
25125 * tree-ssa-coalesce.c: Include timevar.h.
25126 (attempt_coalesce): Handle graph being NULL.
25127 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
25128 Split out abnormal coalescing to ...
25129 (perform_abnormal_coalescing): ... this function.
25130 (coalesce_ssa_name): Perform abnormal coalescing without computing
25132 (verify_ssa_coalescing_worker): New function.
25133 (verify_ssa_coalescing): Likewise.
25135 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
25136 Jakub Jelinek <jakub@redhat.com>
25139 * tsan.c (instrument_gimple): Clear tail call flag on
25142 2015-03-19 Jakub Jelinek <jakub@redhat.com>
25145 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
25146 call in the return bb.
25147 (find_split_points): Add RETURN_BB argument, don't call
25149 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
25150 if true append TSAN_FUNC_EXIT internal call after the call to
25151 the split off function.
25152 (execute_split_functions): Call find_return_bb here.
25153 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
25154 Adjust find_split_points and split_function calls.
25156 2015-03-18 DJ Delorie <dj@redhat.com>
25158 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
25159 (iorqi3_virt): Likewise.
25161 2015-03-18 Tom de Vries <tom@codesourcery.com>
25163 * tree-parloops.c (parallelize_loops): Make static.
25164 * tree-parloops.h (parallelize_loops): Remove extern declaration.
25166 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
25168 PR middle-end/64491
25170 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
25172 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
25173 condition would be removed due to undefined behaviour.
25175 2015-03-18 Martin Liska <mliska@suse.cz>
25178 * cgraph.c (cgraph_node::get_create): Remove unnecessary
25179 xstrdup_for_dump wrapper.
25180 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
25182 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
25183 with xstrdup_for_dump.
25184 (sem_variable::equals): Likewise.
25185 (sem_item_optimizer::read_section): Use symtab_node::name instead of
25187 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
25188 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
25189 symtab_node::asm_name with xstrdup_for_dump.
25190 (congruence_class::dump): Use symtab_node::name instead of
25192 * ipa-icf.h (symtab_node::name): Remove.
25193 (symtab_node::asm_name): Likewise.
25195 2015-03-18 Jakub Jelinek <jakub@redhat.com>
25197 PR tree-optimization/65450
25198 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
25200 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
25201 it instead of duplicate_ssa_name_ptr_info.
25204 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
25206 2015-03-18 Richard Biener <rguenther@suse.de>
25208 * tree-data-ref.h (struct access_matrix): Remove.
25209 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
25210 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
25211 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
25212 (am_vector_index_for_loop): Likewise.
25213 (struct data_reference): Remove access_matrix member.
25214 (DR_ACCESS_MATRIX): Remove.
25215 (lambda_vector_new): Add comment.
25216 (lambda_matrix_new): Use XOBNEWVEC.
25218 2015-03-18 Richard Biener <rguenther@suse.de>
25220 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
25221 (pass_ch::execute): Cleanup the CFG only if we did sth.
25222 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
25224 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25226 * expmed.c (synth_mult): Use std::swap instead of manually
25227 swapping algorithms.
25229 2015-03-18 Jakub Jelinek <jakub@redhat.com>
25232 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
25234 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
25237 * config/avr/avr.opt (-nodevicelib): New option.
25238 * doc/invoke.texi (AVR Options): Document it.
25239 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
25240 libgcc.a, libc.a, libm.a.
25241 * config/avr/specs.h: Same.
25242 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
25243 which don't (directly) depend on the device. Print more help.
25244 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
25245 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
25246 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
25248 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
25249 for specs file name.
25250 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
25251 * config/avr/avr-mcus.def: Adjust initializers and comments.
25253 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
25255 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
25256 DECL_ONE_ONLY to check if decl is one only.
25257 * ipa-split.c (consider_split): Limit splitt of one only functions.
25259 2015-03-16 Jakub Jelinek <jakub@redhat.com>
25261 PR tree-optimization/65427
25262 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
25264 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
25266 2015-03-16 Marek Polacek <polacek@redhat.com>
25268 * cgraph.h (add_new_static_var): Remove declaration.
25269 * varpool.c (add_new_static_var): Remove function.
25271 2015-03-16 Jakub Jelinek <jakub@redhat.com>
25273 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
25274 instead of vec<tree> * with vec_alloc and release for args.
25277 PR middle-end/65431
25278 * omp-low.c (delete_omp_context): Only splay_tree_delete
25279 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
25280 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
25282 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
25285 * cfgexpand.c (align_base): New function.
25286 (alloc_stack_frame_space): Call it.
25287 (expand_stack_vars): Align prev_frame to be sure
25288 data->asan_vec elements aligned properly.
25290 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
25292 PR middle-end/65409
25293 * expr.c (store_field): Do not do a direct block copy if the source is
25294 a PARALLEL with BLKmode.
25296 2015-03-16 Tom de Vries <tom@codesourcery.com>
25298 PR middle-end/65414
25300 2015-03-12 Tom de Vries <tom@codesourcery.com>
25302 PR rtl-optimization/64895
25303 * lra-lives.c (check_pseudos_live_through_calls): Use
25304 actual_call_used_reg_set instead of call_used_reg_set, if available.
25306 2015-03-16 Alan Modra <amodra@gmail.com>
25309 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
25310 Modify Z->r bswapdi splitter to use dest in place of scratch.
25311 In r->Z and Z->r bswapdi splitter rename word_high, word_low
25312 to word1, word2 and rearrange logic to suit.
25313 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
25314 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
25315 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
25316 Add one '?' on r->r. Modify Z->r splitter to avoid need for
25319 2015-03-14 Jakub Jelinek <jakub@redhat.com>
25321 PR tree-optimization/65369
25322 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
25323 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
25324 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
25326 PR tree-optimization/65418
25327 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
25328 are casts in the first PLUS_EXPR operand, ensure tbias and
25329 *totallowp are in the inner type.
25331 PR rtl-optimization/65401
25332 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
25333 argument. If true, adjust_address_nv of x with big-endian
25334 correction for the mode widening to GET_MODE (y).
25335 (make_field_assignment): Don't do MEM mode widening here.
25336 Use MEM_P instead of GET_CODE == MEM.
25338 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
25340 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
25341 the external decls.
25343 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25346 * config/arm/arm.c (arm_gen_constant, AND case): Use
25347 ARM_SIGN_EXTEND when constructing AND mask.
25349 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25351 * graph.c (print_graph_cfg): Make function names visible and append
25352 parenthesis to it. Also make groups of basic blocks belonging to the
25353 same function visible.
25355 2015-03-12 Richard Biener <rguenther@suse.de>
25357 PR middle-end/44563
25358 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
25359 to avoid quadratic behavior with inline expansion splitting blocks.
25360 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
25361 with the successor if the predecessor will be merged with it.
25362 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
25363 entry block with its successor.
25365 2015-03-13 Richard Biener <rguenther@suse.de>
25367 PR middle-end/44563
25368 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
25369 (cleanup_tree_cfg_1): Do not call it.
25370 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
25371 (fixup_noreturn_call): Mark the stmt as control altering.
25372 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
25374 (pass_data_fixup_cfg): Produce a dump file.
25375 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
25376 (need_noreturn_fixup): New global.
25377 (pass_dominator::execute): Fixup queued noreturn calls.
25378 (optimize_stmt): Queue calls that became noreturn for fixup.
25379 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
25380 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
25381 (el_to_fixup): New global.
25382 (eliminate_dom_walker::before_dom_childre): Queue calls that
25383 became noreturn for fixup.
25384 (eliminate): Fixup queued noreturn calls.
25385 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
25386 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
25387 (substitute_and_fold_dom_walker::before_dom_children): Queue
25388 alls that became noreturn for fixup.
25389 (substitute_and_fold): Fixup queued noreturn calls.
25391 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
25393 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
25394 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
25395 are building; for methods check ODR type of class they belong to if
25396 they may lead to a polymorphic call.
25397 (sem_function::compare_polymorphic_p): Be bit smarter about testing
25398 when function may lead to a polymorphic call.
25399 (sem_function::compare_type_list): Remove.
25400 (sem_variable::equals): Update use of compatible_types_p.
25401 (sem_variable::parse_tree_refs): Remove.
25402 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
25404 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
25406 (func_checker::compatible_polymorphic_types_p): Break out from ...
25407 (unc_checker::compatible_types_p): ... here.
25408 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
25410 (unc_checker::compatible_types_p): Update.
25411 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
25414 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25416 PR rtl-optimization/65235
25417 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
25418 When first element of vec_concat is const_int, calculate its size
25419 using second element.
25421 2015-03-12 Richard Biener <rguenther@suse.de>
25423 PR middle-end/65270
25424 * fold-const.c (operand_equal_p): Fix ordering of resetting
25425 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
25427 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
25429 * config/s390/s390.c (s390_reorg): Move code to output nops after label
25431 (s390_asm_output_function_label): Likewise.
25432 * config/s390/s390.c (s390_asm_output_function_label):
25433 Fix function label alignment with -mhtopatch.
25434 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
25435 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
25436 ("nop_2_byte"): New define_insn.
25437 ("nop_4_byte"): Likewise.
25438 ("nop_6_byte"): Likewise.
25439 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
25440 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
25442 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
25445 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
25448 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
25451 * toplev.c (process_options): Restrict Pointer Bounds Checker
25452 usage with Address Sanitizer.
25454 2015-03-12 Richard Biener <rguenther@suse.de>
25456 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
25458 * omp-low.c (expand_omp_taskreg): Split block before removing
25460 (expand_omp_target): Likewise.
25461 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
25462 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
25463 stmt to split_block.
25465 2015-03-12 Tom de Vries <tom@codesourcery.com>
25467 PR rtl-optimization/64895
25468 * lra-lives.c (check_pseudos_live_through_calls): Use
25469 actual_call_used_reg_set instead of call_used_reg_set, if available.
25471 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
25473 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
25474 (cgraph_node::remove): Likewise.
25475 (cgraph_node::get_untransformed_body): Likewise.
25476 * varpool.c (varpool_node::remove): Likewise.
25477 (varpool_node::get_constructor): Add sanity check.
25479 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
25481 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
25483 (-fabi-compat-version): Likewise.
25484 (-ffriend-injection): Likewise.
25485 (-Wdeclaration-after-statement): Likewise.
25486 (-fomit-frame-pointer): Likewise.
25487 (-ftree-coalesce-inlined-vars): Likewise.
25488 (-fvisibility=): Likewise.
25489 * doc/extend.texi (Typeof): Likewise.
25490 (Zero Length): Likewise.
25491 (Escaped Newlines): Likewise.
25492 (Compound Literals): Likewise.
25493 (Function Attributes): Likewise.
25494 (Label Attributes): Likewise.
25495 (Type Attributes): Likewise.
25496 (Function Names): Likewise.
25497 (Other Builtins): Likewise.
25498 (Function Specific Option Pragmas): Likewise.
25499 (C++ Interface): Likewise.
25501 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
25503 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
25505 2015-03-11 Marek Polacek <polacek@redhat.com>
25507 PR tree-optimization/65388
25508 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
25510 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
25513 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
25514 * configure: Regenerate.
25515 * config.in: Regenerate.
25516 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
25517 [-mn-flash]: Document it.
25518 [__AVR_ARCH__]: Document avrtiny.
25520 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
25521 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
25522 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
25524 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25526 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
25528 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25531 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
25532 allow reloads of PLUS in floating point/VSX registers.
25534 2015-03-11 Junmo Park <junmoz.park@samsung.com>
25536 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
25537 crypto_sha256_fast.
25538 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
25540 2015-03-11 Richard Biener <rguenther@suse.de>
25542 PR tree-optimization/65310
25543 * tree-sra.c (build_ref_for_offset): Also preserve larger
25546 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
25548 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
25550 2015-03-10 Jakub Jelinek <jakub@redhat.com>
25553 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
25555 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
25557 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
25559 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
25560 (sem_function::equals_wpa): ... here.
25562 2015-03-10 Marek Polacek <polacek@redhat.com>
25563 Jakub Jelinek <jakub@redhat.com>
25566 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
25567 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
25570 2015-03-10 Jakub Jelinek <jakub@redhat.com>
25573 * config/rs6000/t-linux: For powerpc64* target set
25574 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
25576 2015-03-10 Richard Biener <rguenther@suse.de>
25578 PR middle-end/44563
25579 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
25580 for redirect_all_calls.
25582 2015-03-10 Marek Polacek <polacek@redhat.com>
25584 * gdbinit.in (pcfun): Define and document.
25586 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
25588 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
25589 of libgomp-plugin.h.
25590 (find_target_compiler): Support a case when the path to gcc is
25591 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
25592 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
25593 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
25595 (main): Use GCC_INSTALL_NAME as target_driver_name.
25596 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
25598 (mkoffload.o): Remove obsolete include path and defines.
25599 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
25601 2015-03-10 Richard Biener <rguenther@suse.de>
25603 PR middle-end/63155
25604 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
25605 * tree-ssa-coalesce.c: Include timevar.h.
25606 (attempt_coalesce): Handle graph being NULL.
25607 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
25608 Split out abnormal coalescing to ...
25609 (perform_abnormal_coalescing): ... this function.
25610 (coalesce_ssa_name): Perform abnormal coalescing without computing
25612 (verify_ssa_coalescing_worker): New function.
25613 (verify_ssa_coalescing): Likewise.
25615 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
25618 * config.gcc (extra_options) [avr]: Remove.
25619 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
25620 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
25621 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
25623 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
25624 (-mmcu=): Add Var and MissingArgError properties.
25626 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
25627 * config/avr/t-multilib: Regenerate.
25628 * config/avr/specs.h: New file.
25629 * config/avr/driver-avr.c: New file.
25630 * config/avr/genopt.sh: Remove file.
25631 * config/avr/avr-tables.opt: Remove file.
25632 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
25633 * config/avr/avr-c.c: Same.
25634 * avr-arch.h: Same.
25635 (avr_current_device): Remove proto.
25636 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
25637 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
25638 (EXTRA_SPEC_FUNCTIONS): Define.
25639 (avr_devicespecs_file): New specs function proto.
25640 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
25641 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
25642 (avr_current_device): Remove definition and usage.
25643 (avr_set_core_architecture): New static function.
25644 (avr_option_override): Use it.
25645 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
25646 (mcu_name): New static array.
25647 (comparator, avr_archs_str, avr_mcus_str): New static functions.
25648 (avr_inform_devices, avr_inform_core_architectures): New functions.
25649 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
25650 (avrlibc.h) [WITH_AVRLIBC]: Include.
25651 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
25652 (print_mcu): Rewrite from scratch.
25653 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
25654 Forward to avr-specific specs defined in device-specs file.
25655 * config/avr/t-avr (driver-avr.o): New rule.
25656 (avr-devices.o): Depend on avr-arch.h.
25657 (avr-mcus): No more depend on avr-tables.opt.
25658 (avr-tables.opt): Remove rule.
25659 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
25661 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
25663 * c-family/c.opt (fchkp-use-wrappers): New.
25664 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
25665 (chkp_wrap_function): New.
25666 (chkp_build_instrumented_fndecl): Support wrapped
25668 * doc/invoke.texi (-fcheck-pointer-bounds): New.
25669 (-fchkp-check-incomplete-type): New.
25670 (-fchkp-first-field-has-own-bounds): New.
25671 (-fchkp-narrow-bounds): New.
25672 (-fchkp-narrow-to-innermost-array): New.
25673 (-fchkp-optimize): New.
25674 (-fchkp-use-fast-string-functions): New.
25675 (-fchkp-use-nochk-string-functions): New.
25676 (-fchkp-use-static-bounds): New.
25677 (-fchkp-use-static-const-bounds): New.
25678 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
25679 (-fchkp-check-read): New.
25680 (-fchkp-check-write): New.
25681 (-fchkp-store-bounds): New.
25682 (-fchkp-instrument-calls): New.
25683 (-fchkp-instrument-marked-only): New.
25684 (-fchkp-use-wrappers): New.
25685 (-static-libmpx): New.
25686 (-static-libmpxwrappers): New.
25688 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
25690 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
25691 (CHKP_SPEC): Add wrappers library.
25692 * c-family/c.opt (static-libmpxwrappers): New.
25694 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
25696 * config/i386/linux-common.h (LIBMPX_LIBS): New.
25697 (LIBMPX_SPEC): New.
25699 * gcc.c (CHKP_SPEC): New.
25700 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
25701 * c-family/c.opt (static-libmpx): New.
25703 2015-03-10 Richard Biener <rguenther@suse.de>
25705 PR middle-end/44563
25706 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
25708 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
25709 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
25710 (cgraph_add_edge_to_call_site_hash): Likewise.
25711 (cgraph_node::get_edge): Likewise.
25712 (cgraph_edge::set_call_stmt): Likewise.
25713 (cgraph_edge::remove_caller): Likewise.
25715 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
25717 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
25718 (callee_saved_gpr_regs_size): ... this.
25719 (callee_saved_regs_first_regno): Rename to ...
25720 (callee_saved_first_gpr_regno): ... this.
25721 (callee_saved_regs_last_regno) Rename to ...
25722 (callee_saved_last_gpr_regno): ... this.
25723 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
25725 (nds32_initial_elimination_offset): Likewise.
25726 (nds32_expand_prologue): Likewise.
25727 (nds32_expand_epilogue): Likewise.
25728 (nds32_expand_prologue_v3push): Likewise.
25729 (nds32_expand_epilogue_v3pop): Likewise.
25730 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
25731 Adjust renamed variables.
25732 (nds32_output_stack_pop): Likewise.
25734 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
25736 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
25739 2015-03-10 Jakub Jelinek <jakub@redhat.com>
25741 PR rtl-optimization/65321
25742 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
25744 * var-tracking.c (use_narrower_mode): Likewise.
25746 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
25748 PR tree-optimization/65355
25749 * varasm.c (notice_global_symbol): Do not produce RTL.
25750 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
25752 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
25753 check for section anchors.
25755 2015-03-10 Alan Modra <amodra@gmail.com>
25758 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
25759 to be single-arch by default. Set cpu_is_64bit for powerpc64
25760 given --with-cpu=native.
25761 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
25762 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
25764 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
25765 rs6000_isa_flags rather than TARGET_64BIT.
25767 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
25768 Kaz Kojima <kkojima@gcc.gnu.org>
25770 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
25772 2015-03-09 Jakub Jelinek <jakub@redhat.com>
25775 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
25776 on a TREE_BINFO, instead use BINFO_TYPE.
25778 2015-03-09 Richard Biener <rguenther@suse.de>
25780 PR middle-end/65270
25781 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
25782 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
25783 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
25784 of that. When comparing dereferences compare alignment.
25785 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
25787 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
25789 * ipa-inline-analysis.c (check_callers): Check
25790 node->can_remove_if_no_direct_calls_and_refs_p.
25791 (growth_likely_positive): Reorganize to call
25792 can_remove_if_no_direct_calls_p later.
25793 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
25794 will_be_removed_from_program_if_no_direct_calls_p): Add
25795 will_inline parameter.
25796 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
25797 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
25798 Handle inliner case correctly.
25800 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
25802 PR tree-optimization/63743
25803 * cfgexpand.c (reorder_operands): Also reorder if only second operand
25804 had its definition forwarded by TER.
25806 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
25809 * ipa-utils.h (types_odr_comparable): Add strict argument.
25810 * ipa-devirt.c: Fix whitespace;
25811 (odr_hasher): Remove.
25812 (odr_name_hasher, odr_vtable_hasher): New hashers.
25813 (can_be_name_hashed_p): New predicate.
25814 (hash_type_name): remove.
25815 (hash_odr_name): New.
25816 (odr_name_hasher::hash): new.
25817 (can_be_vtable_hashed_p): New.
25818 (hash_odr_vtable): New.
25819 (odr_vtable_hasher::hash): New.
25820 (types_same_for_odr): Add strict parameter.
25821 (types_odr_comparable): Likewise.
25822 (odr_name_hasher::equal): New.
25823 (odr_vtable_hasher::equal): New.
25824 (odr_name_hasher::remove): New.
25825 (odr_hash_type): Change to hash_table<odr_name_hasher>.
25826 (odr_vtable_hash_type): New.
25827 (odr_vtable_hash): New.
25828 (odr_subtypes_equivalent_p): Do strict comparsion.
25829 (add_type_duplicate): Merge type names; cleanup; avoid type
25831 (register_odr_type): Initialize vtable hash.
25832 (build_type_inheritance_graph): Likewise
25833 (get_odr_type): Reorg to use two hashes.
25834 (dump_possible_polymorphic_call_targets): Move sanity check after debug
25836 (ipa_devirt): Dump type_inheritance_graph.
25837 (types_same_for_odr): Add strict mode.
25839 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
25842 * cgraph.h (symtab_node): Add definition_alignment,
25843 can_increase_alignment_p and increase_alignment.
25844 * symtab.c (symtab_node::can_increase_alignment_p,
25845 increase_alignment_1, symtab_node::increase_alignment,
25846 symtab_node::definition_alignment): New.
25847 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
25848 can_increase_alignment_p.
25849 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
25850 * tree-vect-stmts.c (ensure_base_align): Likewise.
25851 * varasm.c (function_section_1): Use definition_alignment.
25852 (assemble_start_function): Likewise.
25853 (emit_local): likewise.
25854 (build_constant_desc): Likewsie.
25855 (output_constant_def_contents): Likewise.
25856 (place_block_symbol): Likewise.
25857 (output_object_block): Likewise.
25859 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
25862 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
25863 when outputting debug.
25865 2015-03-07 Marek Polacek <polacek@redhat.com>
25866 Martin Uecker <uecker@eecs.berkeley.edu>
25869 * doc/invoke.texi: Update description of -fsanitize=bounds.
25871 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
25873 * tree-ssa-phiopt.c (neg_replacement): Remove.
25874 (tree_ssa_phiopt_worker): Remove negate optimization.
25876 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
25879 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
25881 2015-03-06 Richard Biener <rguenther@suse.de>
25883 PR middle-end/64928
25884 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
25885 and liveout_obstack members.
25886 (calculate_live_on_exit): Remove.
25887 (calculate_live_ranges): Change declaration.
25888 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
25889 (new_tree_live_info): Adjust.
25890 (calculate_live_ranges): Delete livein when not wanted.
25891 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
25892 Deal with partly deleted live info.
25893 (loe_visit_block): Remove temporary bitmap by using
25894 bitmap_ior_and_compl_into.
25895 (live_worklist): Adjust accordingly.
25896 (calculate_live_on_exit): Make static.
25897 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
25898 we do not need livein.
25900 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
25902 * real.c (real_from_string): Fix typo in assertion.
25904 2015-03-06 Alex Velenko <alex.velenko@arm.com>
25906 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
25909 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
25911 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
25913 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
25916 * lra-assigns.c (find_hard_regno_for): Rename to
25917 find_hard_regno_for_1. Add a new parameter.
25918 (find_hard_regno_for): New function using find_hard_regno_for_1.
25920 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25922 PR rtl-optimization/65067
25923 * expmed.c (store_bit_field, extract_bit_field): Reworked the
25924 strict volatile bitfield handling.
25926 2015-03-05 Martin Liska <mliska@suse.cz>
25929 * ipa-icf.c (sem_variable::equals): Compare variables types.
25931 2015-03-05 Richard Henderson <rth@redhat.com>
25934 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
25935 correctly check weak symbol binding.
25937 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
25939 PR middle-end/65315
25940 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
25943 2015-03-05 Martin Liska <mliska@suse.cz>
25945 * ipa-inline.c (inline_small_functions): Set default value to
25946 prevent warning during bootstrap.
25947 * tree.h: Add pragma guard that ignores false positives during
25950 2015-03-05 Richard Biener <rguenther@suse.de>
25952 PR tree-optimization/65310
25953 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
25954 Properly preserve alignment of the base of the access.
25956 2015-03-05 Richard Biener <rguenther@suse.de>
25959 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
25960 Compare dependence info.
25962 2015-03-05 Richard Biener <rguenther@suse.de>
25964 PR middle-end/65233
25965 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
25967 (walk_ssa_copies): Revert last chage. Instead do not walk
25968 SSA names registered for SSA update.
25970 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
25973 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
25974 vtable references for their containing type.
25975 (sem_function::equals_wpa): Compare TYPE_RESTRICT
25976 and type attributes.
25978 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
25980 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
25981 before negating it.
25982 * stor-layout.c (finalize_record_size): Revert latest change.
25984 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
25986 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
25988 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
25990 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
25991 for correct comdat handling.
25992 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
25994 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
25995 (used_from_object_file_p_worker): Remove.
25996 (cgraph_node::only_called_directly_or_alised): Add
25997 used_from_object_file_p.
25998 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
25999 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
26000 can_remove_if_no_direct_calls_and_refs_p.
26002 2015-03-04 Nick Clifton <nickc@redhat.com>
26004 * config/rl78/rl78.h (enum reg_class): Remove real registers from
26005 General register class.
26006 * config/rl78/rl78-real.md: Replace general register constraints
26007 with real+virtual register constraints.
26009 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26011 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
26012 from checking for -mhtm option.
26014 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26016 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
26017 (struct ipa_sra_check_caller_data): Add has_thunk field.
26018 (ipa_sra_check_caller): Check for thunk.
26019 (ipa_sra_preliminary_function_checks): Give up on function with
26021 (ipa_early_sra): Use call_for_symbol_and_aliases.
26023 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
26026 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
26027 called for __stack_chk_guard symbol.
26029 2015-03-03 DJ Delorie <dj@redhat.com>
26031 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
26033 (*addhi3_real): Likewise.
26034 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
26035 pattern to match incrementing memory.
26036 * config/rl78/predicates.md (rl78_1_2_operand): New.
26037 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
26038 it's the same and only mem.
26039 (rl78_alloc_physical_registers_op2): If there's effectively only
26040 one MEM, transcode it into HL.
26041 (rl78_far_p): Reject addresses that aren't legitimate.
26043 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
26045 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
26048 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
26050 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
26052 Implement call0 ABI for xtensa
26053 * config/xtensa/constraints.md ("a" constraint): Include stack
26054 pointer in case of call0 ABI.
26055 ("q" constraint): Make empty in case of call0 ABI.
26056 ("D" constraint): Include stack pointer in case of call0 ABI.
26057 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
26058 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
26060 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
26062 (xtensa_regno_to_class): Make it a local variable in the
26063 function xtensa_regno_to_class.
26064 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
26065 macro, function prototype and implementation.
26066 (reg_nonleaf_alloc_order): Make it a local variable in the
26067 function order_regs_for_local_alloc.
26068 (xtensa_conditional_register_usage): New function.
26069 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
26070 (xtensa_valid_move): Allow direct moves to stack pointer
26071 register in call0 ABI.
26072 (xtensa_setup_frame_addresses): Only spill register windows in
26074 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
26075 call0 ABI respectively.
26076 (xtensa_function_arg_1): Only mark a7 register for copying in
26078 (xtensa_call_save_reg): New function.
26079 (compute_frame_size): Add space for callee saved register
26080 storage to the frame size in call0 ABI.
26081 (xtensa_expand_prologue): Generate code to set up stack frame
26082 and save callee-saved registers in call0 ABI.
26083 (xtensa_expand_epilogue): New function.
26084 (xtensa_set_return_address): New function.
26085 (xtensa_return_addr): Calculate return address in call0 ABI.
26086 (xtensa_builtin_saveregs): Only mark a7 register for copying and
26087 emit copying code in windowed ABI.
26088 (order_regs_for_local_alloc): Add preferred register allocation
26089 order for non-leaf function in call0 ABI.
26090 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
26091 (xtensa_asm_trampoline_template): Add trampoline generation for
26093 (xtensa_trampoline_init): Add trampoline initialization for
26095 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
26097 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
26098 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
26099 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
26100 ABI call-used registers.
26101 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
26102 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
26104 (REG_CLASS_CONTENTS): Include all registers into the preferred
26105 reload registers set, adjust the set in the
26106 xtensa_conditional_register_usage.
26107 (xtensa_regno_to_class): Drop variable declaration.
26108 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
26110 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
26112 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
26113 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
26114 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
26115 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
26116 location in call0 ABI.
26117 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
26118 stack adjustment size when handling exception.
26119 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
26120 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
26122 ("return" pattern): Generate ret.n/ret in call0 ABI.
26123 ("epilogue" pattern): Expand epilogue.
26124 ("nonlocal_goto" pattern): Use default in call0 ABI.
26125 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
26126 emit eh_set_a0_* depending on ABI.
26127 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
26128 ("eh_set_a0_call0", "blockage"): New patterns.
26130 2015-03-03 Martin Liska <mliska@suse.cz>
26133 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
26135 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26138 * config/rs6000/rs6000-tables.opt: Regenerate table.
26140 2015-03-03 Renlin Li <renlin.li@arm.com>
26142 * doc/md.texi (@item ^): Change ? into ^.
26144 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
26146 * doc/tm.texi: Regenerated.
26148 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
26150 * builtins.c (expand_builtin_return_addr): Add
26151 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
26152 surrounding #ifdef.
26153 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
26155 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
26157 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
26159 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
26162 2015-03-03 Martin Jambor <mjambor@suse.cz>
26163 Eric Botcazou <ebotcazou@adacore.com>
26165 * tree-sra.c (ipa_sra_check_caller_data): New type.
26166 (has_caller_p): Removed.
26167 (ipa_sra_check_caller): New function.
26168 (ipa_sra_preliminary_function_checks): Use it.
26170 2015-03-03 Martin Liska <mliska@suse.cz>
26172 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
26173 instead of if branch.
26175 2015-03-03 Martin Liska <mliska@suse.cz>
26178 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
26180 2015-03-23 Jeff Law <law@redhat.com>
26182 PR tree-optimization/65241
26183 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
26184 hash table if INSERT is true.
26186 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26189 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
26191 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26194 * config/avr/avr.c (context.h, tree-pass.h): Include them.
26195 (avr_pass_data_recompute_notes): New static variable.
26196 (avr_pass_recompute_notes): New class.
26197 (avr_register_passes): New static function.
26198 (avr_option_override): Call it.
26200 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26202 Fix various problems with specs file generation.
26205 * config.gcc (extra_gcc_objs) [avr]: Remove.
26206 * config/avr/driver-avr.c: Remove file.
26207 * config/avr/t-avr (driver-avr.o): Remove rule.
26208 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
26209 INCLUDES to build. Depend on TM_H.
26210 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
26211 build warnings. Fix non-matching types and non-existing %-codes.
26213 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
26214 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
26215 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
26216 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
26217 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
26218 (LIBGCC_SPEC): Remove definitions.
26220 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
26222 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
26223 to create a register in testing mode.
26225 2015-03-03 Martin Liska <mliska@suse.cz>
26226 Jan Hubicka <hubicka@ucw.cz>
26229 * cgraph.c (cgraph_node::has_thunk_p): New function.
26230 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
26231 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
26232 (sem_function::merge): Assert is changed.
26234 2015-03-03 Martin Liska <mliska@suse.cz>
26235 Martin Jambor <mjambor@suse.cz>
26238 * ipa-icf.c (sem_item_optimizer::execute): Change function
26239 return value to boolean.
26240 (sem_item_optimizer::merge_classes): Likewise.
26241 (ipa_icf_driver): Return TODO_remove_functions in case there's
26242 a merge operation processed.
26243 * ipa-icf.h: Change function return value to boolean.
26245 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26248 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
26249 processor type for 64-bit little endian PowerPC.
26251 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
26252 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
26253 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
26254 printing built-in mask so it does not pass NULL pointers.
26256 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
26259 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
26262 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
26263 !ISA_HAS_FP_CONDMOVE.
26265 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
26267 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
26270 2015-03-02 Ulrich Drepper <drepper@gmail.com>
26272 * doc/invoke.texi (Options for Code Generation Conventions):
26273 Fix URL of DSO paper.
26275 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
26278 * ipa-inline.c (check_callers): Looks for recursion.
26279 (inline_to_all_callers): Give up on uninlinable or recursive edges.
26280 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
26281 summary of inline clones.
26282 (do_estimate_growth_1): Fix recursion check.
26284 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
26287 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
26290 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
26291 Aldy Hernandez <aldyh@redhat.com>
26294 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
26295 when checking TYPE_BINFO.
26297 2015-03-02 Richard Biener <rguenther@suse.de>
26300 * ipa-icf-gimple.c: Include builtins.h.
26301 (func_checker::compare_memory_operand): Compare base alignment.
26303 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
26306 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
26307 are never passed by reference.
26309 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
26312 * tree-chkp.c (chkp_check_lower): Don't check against
26313 zero bounds for already instrumented functions.
26314 (chkp_check_upper): Likewise.
26315 (chkp_fini): Clean pass local data to avoid wrong reusage.
26317 2015-02-28 Martin Liska <mliska@suse.cz>
26318 Jan Hubicka <hubicka@ucw.cz>
26320 * ipa-icf.c (sem_variable::equals): Improve debug output;
26321 get variable constructor.
26322 (sem_variable::parse): Do not filter out too early; give up on
26323 volatile and register vars.
26324 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
26326 * ipa-icf.h (sem_variable::init): Do not set ctor.
26327 (sem_variable::ctor): Remove.
26329 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
26331 PR middle-end/65233
26332 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
26334 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26336 * ipa-icf.c: Include stor-layout.h
26337 (sem_function::compare_cgraph_references): Rename to ...
26338 (sem_item::compare_cgraph_references): ... this one.
26339 (sem_variable::equals_wpa): New function
26340 (sem_variable::equals): Do not check stuff already verified by
26342 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
26343 * ipa-icf.h (sem_item): Add compare_cgraph_references.
26344 (sem_function): Remove compare_cgraph_references.
26345 (sem_variable): Turns equals_wpa into non-inline.
26347 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26349 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
26350 (sem_item::add_expr): New function.
26351 (sem_function::hash_stmt): Handle operands of most statements.
26352 (sem_variable::get_hash): Hash the actual constructor.
26353 * ipa-icf.h (sem_item): Add add_expr.
26354 (sem_function): Update prototype of hash_stmt
26356 2015-02-28 Martin Liska <mliska@suse.cz>
26357 Jan Hubicka <hubicka@ucw.cz>
26360 * ipa-icf-gimple.c (func_checker::compare_function_decl):
26362 (func_checker::compare_variable_decl): Skip symtab vars.
26363 (func_checker::compare_cst_or_decl): Update.
26364 * ipa-icf.c (sem_function::parse): Do not consider aliases.
26365 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
26366 use correct symtab predicates.
26367 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
26368 (sem_variable::parse): Update comment.
26369 (sem_item_optimizer::build_graph): Consider ultimate aliases
26372 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26374 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
26377 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26379 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
26380 (sem_variable::merge) Likewise.
26382 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26384 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
26385 target; also match flag_ipa_devirt.
26387 2015-03-01 Martin Liska <mliska@suse.cz>
26388 Jan Hubicka <hubicka@ucw.cz>
26390 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
26391 Validate variable alignment.
26392 * ipa-icf.c (sem_function::equals_private): Be more precise
26393 about non-common function attributes.
26394 (sem_variable::equals): Likewise.
26396 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26399 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
26400 across COMDAT group boundary.
26402 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26405 * ipa-icf.c (clear_decl_rtl): New function.
26406 (sem_function::merge): Clear RTL before forming alias.
26407 (sem_variable::merge): Clear RTL before forming alias.
26409 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26412 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
26414 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
26416 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
26419 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
26421 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
26422 a typo in the description.
26424 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
26427 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
26428 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
26429 * lra-constraints.c: Include "params.h".
26430 (EBB_PROBABILITY_CUTOFF): Use
26431 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
26432 (lra_inheritance): Use '<' instead of '<=' for
26433 EBB_PROBABILITY_CUTOFF.
26434 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
26437 2015-02-27 Martin Liska <mliska@suse.cz>
26439 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
26440 vector length condition.
26442 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
26444 * doc/extend.texi (x86 transactional memory intrinsics):
26445 Reorganize discussion of _xbegin. Clarify that the return
26446 value is a bit mask. Expand example and move to end of section.
26448 2015-02-26 Jakub Jelinek <jakub@redhat.com>
26449 Aldy Hernandez <aldyh@redhat.com>
26451 PR rtl-optimization/65220
26452 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
26454 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
26457 * lra-remat.c (update_scratch_ops): New.
26458 (do_remat): Call it.
26459 * lra.c (lra_register_new_scratch_op): New. Take code from ...
26460 (remove_scratches): ... here.
26461 * lra-int.h (lra_register_new_scratch_op): New prototype.
26463 2015-02-27 Marek Polacek <polacek@redhat.com>
26466 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
26467 -Wformat-signedness anymore.
26469 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26471 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
26473 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
26475 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26477 * config/s390/s390.c (enum s390_builtin):
26478 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
26479 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
26480 (s390_init_builtins): Generate new builtin functions.
26481 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
26482 (s390_sfpc, s390_efpc): New pattern definitions.
26484 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26486 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
26487 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
26488 (s390_builtin_decls): New array.
26489 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
26490 (s390_builtin_decl): New function.
26491 (TARGET_BUILTIN_DECL): Define macro.
26493 2015-02-27 Richard Biener <rguenther@suse.de>
26495 PR middle-end/63175
26496 * builtins.c (get_object_alignment_2): Make sure to re-apply
26497 the ANDed mask after recursing to its operand gets us a new
26498 misalignment bit position.
26500 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
26501 Martin Liska <mliska@suse.cz>
26504 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
26505 Use address_matters_p.
26506 (redirect_all_callers, set_addressable): New functions.
26507 (sem_function::merge): Reorganize and fix merging issues.
26508 (sem_variable::merge): Likewise.
26509 (sem_variable::compare_sections): Remove.
26510 * common.opt (fmerge-all-constants, fmerge-constants): Remove
26512 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
26514 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
26516 (address_matters_1): New function.
26517 (symtab_node::address_matters_p): New function.
26518 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
26519 check for merged flag.
26520 * cgraph.h (address_matters_p): Declare.
26521 (symtab_node::address_taken_from_non_vtable_p): Remove.
26522 (symtab_node::address_can_be_compared_p): New method.
26523 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
26524 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
26526 (comdat_can_be_unshared_p_1) Use address_matters_p.
26527 (update_vtable_references): Fix formating.
26528 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
26529 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
26530 * cgraphclones.c: Preserve merged and icf_merged flags.
26532 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
26534 * doc/extend.texi (Function Attributes): Fix spelling and typos.
26535 (Label Attributes): Likewise.
26536 (Cilk Plus Builtins): Likewise.
26537 (ARC SIMD Built-in Functions): Likewise.
26538 (ARM C Language Extensions (ACLE)): Likewise.
26539 (PowerPC Built-in Functions): Likewise.
26540 (PowerPC Hardware Transactional Memory Built-in Functions):
26543 2015-02-26 Jakub Jelinek <jakub@redhat.com>
26545 PR tree-optimization/65216
26546 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
26547 new stmt and new SSA_NAME for lhs whenever the arguments have
26548 changed and weren't just swapped. Fix comment typo.
26550 PR tree-optimization/65215
26551 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
26552 for PDP endian targets.
26553 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
26554 Fix up formatting issues.
26555 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
26556 size is smaller than the original, adjust MEM_REF offset by the
26557 difference of sizes. Use is_gimple_mem_ref_addr instead of
26558 is_gimple_min_invariant test to avoid adding address temporaries.
26560 2015-02-26 Martin Liska <mliska@suse.cz>
26561 Jan Hubicka <hubicka@ucw.cz>
26564 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
26565 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
26566 (sem_item_optimizer::process_cong_reduction): Include division by
26567 sensitive references.
26568 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
26569 * ipa-ref.c (ipa_ref::address_matters_p): New function.
26570 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
26572 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
26575 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
26577 * config/avr/avr.c: Same.
26578 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
26579 Refuse any constant address not in 0..0xbf.
26580 * config/avr/avr.md (*mov<mode>, *movsf): Remove
26581 tiny_valid_direct_memory_access_range from insn conditions.
26582 (mov<mode>): Don't special-case expansion of avrtiny addresses.
26584 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
26587 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
26588 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
26589 * config/sh/predicates.md (const_logical_operand): New predicate.
26590 * config/sh/sh.md: Add new peephole2 patterns.
26592 2015-02-26 Marek Polacek <polacek@redhat.com>
26595 * ipa-inline.c (early_inliner): Recompute inline parameters.
26597 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26600 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
26601 instructions with TImode operands are included in the analysis.
26603 2015-02-26 Sebastian Pop <s.pop@samsung.com>
26605 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
26606 of an EDGE_FSM_THREAD.
26608 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
26610 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
26612 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
26615 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
26617 2015-02-26 Sebastian Pop <s.pop@samsung.com>
26619 PR tree-optimization/65048
26620 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
26621 (thread_through_all_blocks): Call valid_jump_thread_path.
26622 Remove invalid FSM jump-thread paths.
26624 2015-02-26 Jakub Jelinek <jakub@redhat.com>
26626 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
26627 (ipa_write_optimization_summaries): Likewise.
26628 * tree-streamer.h: Include data-streamer.h.
26629 (streamer_mode_table): Declare extern variable.
26630 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
26631 * lto-streamer-out.c (lto_output_init_mode_table,
26632 lto_write_mode_table): New functions.
26633 (produce_asm_for_decls): Call lto_write_mode_table when streaming
26635 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
26636 (lto_create_simple_input_block): Add mode_table argument to the
26637 lto_input_block constructors.
26638 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
26640 * data-streamer-in.c (string_for_index): Likewise.
26641 * ipa-inline-analysis.c (inline_read_section): Likewise.
26642 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
26643 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
26644 * lto-streamer-in.c (lto_read_body_or_constructor,
26645 lto_input_toplevel_asms): Likewise.
26646 (lto_input_mode_table): New function.
26647 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
26648 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
26649 Use bp_pack_machine_mode.
26650 * real.h (struct real_format): Add name field.
26651 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
26652 (class lto_input_block): Add mode_table member.
26653 (lto_input_block::lto_input_block): Add mode_table_ argument,
26654 initialize mode_table.
26655 (struct lto_file_decl_data): Add mode_table field.
26656 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
26657 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
26658 unpack_ts_decl_common_value_fields,
26659 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
26660 * tree-streamer.c (streamer_mode_table): New variable.
26661 * real.c (ieee_single_format, mips_single_format,
26662 motorola_single_format, spu_single_format, ieee_double_format,
26663 mips_double_format, motorola_double_format,
26664 ieee_extended_motorola_format, ieee_extended_intel_96_format,
26665 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
26666 ibm_extended_format, mips_extended_format, ieee_quad_format,
26667 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
26668 decimal_single_format, decimal_double_format, decimal_quad_format,
26669 ieee_half_format, arm_half_format, real_internal_format): Add name
26671 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
26673 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
26676 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
26677 reordering for selective scheduling.
26679 2015-02-26 Terry Guo <terry.guo@arm.com>
26681 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
26682 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
26683 (arm_arch_no_volatile_ce): Declare new global variable.
26684 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
26685 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
26686 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
26687 (TARGET_NO_VOLATILE_CE): New macro.
26688 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
26689 volatile memory access in IT block
26691 2015-02-25 Kai Tietz <ktietz@redhat.com>
26693 PR tree-optimization/61917
26694 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
26695 that reduc_def_stmt is null.
26697 2015-02-25 Martin Liska <mliska@suse.cz>
26699 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
26700 hard register variables.
26702 2015-02-25 Kai Tietz <ktietz@redhat.com>
26705 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
26706 (symtab::noninterposable_alias): Likewise.
26708 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
26711 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
26713 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
26715 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
26718 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
26719 as split condition; force split via '#' in output pattern.
26721 2015-02-25 Richard Biener <rguenther@suse.de>
26722 Kai Tietz <ktietz@redhat.com>
26724 PR tree-optimization/61917
26725 * tree-vect-loop.c (vectorizable_reduction): Allow
26726 vect_internal_def without reduction to exit graceful.
26728 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
26731 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
26732 only with NONDEBUG_INSN_P.
26734 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
26736 Use variadic macros with avr-log.c.
26738 * config/avr/avr-protos.h (avr_vdump): New prototype.
26739 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
26740 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
26741 * config/avr/avr-log.c: Adjust comments.
26742 (avr_vdump): New function.
26743 (avr_vadump): Pass caller as 2nd argument instead of format string.
26744 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
26745 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
26747 2015-02-25 Jakub Jelinek <jakub@redhat.com>
26750 * target.def (target_option_stream_in): New target hook.
26751 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
26752 targetm.target_option.post_stream_in if non-NULL.
26753 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
26754 * doc/tm.texi: Updated.
26755 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
26757 (TARGET_OPTION_POST_STREAM_IN): Redefine.
26759 2015-02-24 Jeff Law <law@redhat.com>
26762 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
26763 of operand 0 and operand 2.
26764 (zero_cost_loop_end, loop_end): Similarly.
26766 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
26768 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
26771 2015-02-24 DJ Delorie <dj@redhat.com>
26773 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
26774 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
26775 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
26776 instead of hardcoding SImode.
26778 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
26780 * omp-low.c (create_omp_child_function): Tag entrypoint
26781 functions with a special attribute.
26783 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
26786 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
26788 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
26790 PR rtl-optimization/65123
26791 * lra-remat.c (operand_to_remat): Check hard regs in insn
26794 2015-02-24 Nick Clifton <nickc@redhat.com>
26796 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
26799 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
26802 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
26803 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
26804 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
26805 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
26806 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
26807 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
26808 (BUILT_IN_GOACC_PARALLEL): Specify as
26809 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
26810 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
26811 * builtin-types.def
26812 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26813 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26814 Remove function types.
26815 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
26816 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26817 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26818 New function types.
26820 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
26822 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
26824 2015-02-24 Jakub Jelinek <jakub@redhat.com>
26826 PR tree-optimization/65170
26827 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
26828 if val[1] < 0, clear also val[2] and return 3.
26830 2015-02-24 Alan Modra <amodra@gmail.com>
26833 * config/rs6000/rs6000.c (get_memref_parts): Only return true
26834 when *base is a reg. Handle nested plus addresses. Simplify
26837 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
26839 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
26840 use natural alignment when optimizing for size.
26842 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
26845 * config/sh/sh.md (movsicc_true+3): Remove peephole.
26846 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
26847 * config/sh/sh.c (replace_n_hard_rtx): Remove.
26849 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
26852 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
26853 too big for a wide_int. Implement missing wrapping operation.
26855 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
26858 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
26859 instead of const_int 4294901760.
26861 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
26863 * config/avr/t-avr: Fix typo in comment.
26865 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
26867 * doc/rtl.texi (fma): Clarify documentation.
26869 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
26872 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
26873 over input_location.
26875 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
26877 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
26878 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
26879 restrict alignments to absolute_biggest_alignment.
26880 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
26882 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
26883 * doc/tm.texi: Regenerate.
26884 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
26886 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
26889 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
26891 2015-02-20 Richard Biener <rguenther@suse.de>
26893 PR tree-optimization/65136
26894 * tree-ssa-propagate.c: Include cfgloop.h.
26895 (replace_phi_args_in): Avoid replacing loop latch edge PHI
26896 arguments with constants.
26898 2015-02-20 Jakub Jelinek <jakub@redhat.com>
26899 Martin Liska <mliska@suse.cz>
26902 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
26903 don't try to create_thunk if stdarg_p. If
26904 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
26905 redirect_callers if possible.
26906 (sem_item_optimizer::execute): Call unregister_hooks here...
26907 (ipa_icf_driver): ... instead of here.
26909 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26911 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
26912 Mark operand 0 as earlyclobber in 2nd alternative.
26913 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
26914 Write negated shift amount into QI lowpart operand 0 and use it
26916 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
26918 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
26920 * cgraph.h (clone_function_name_1): Declare.
26921 * cgraphclones.c (clone_function_name_1): New function.
26922 (clone_function_name): Use it.
26923 * lto-partition.c: Include "stringpool.h".
26924 (must_not_rename, maybe_rewrite_identifier)
26925 (validize_symbol_for_target): New static functions.
26926 (privatize_symbol_name): Use must_not_rename.
26927 (promote_symbol): Call validize_symbol_for_target.
26928 (lto_promote_cross_file_statics): Likewise.
26929 (lto_promote_statics_nonwpa): Likewise.
26931 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
26934 * config/avr/avr.md (pushhi_insn): New insn.
26935 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
26937 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
26938 Jakub Jelinek <jakub@redhat.com>
26940 * tree-streamer.c (preload_common_nodes): Don't preload
26941 TI_VA_LIST* for offloading.
26942 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
26945 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
26947 * config/pa/pa.c (pa_emit_move_sequence): Always force
26948 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
26951 * config/pa/pa.c (pa_reloc_rw_mask): New function.
26952 (TARGET_ASM_RELOC_RW_MASK): Define.
26953 (pa_cannot_force_const_mem): Revert previous change.
26955 2015-02-19 Martin Jambor <mjmabor@suse.cz>
26956 Jan Hubicka <hubicka@ucw.cz>
26959 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
26960 across jump functions.
26962 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
26964 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
26966 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
26968 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
26970 2015-02-19 Richard Henderson <rth@redhat.com>
26972 PR middle-end/65074
26973 * varasm.c (default_binds_local_p_2): Don't test node->definition;
26974 test DECL_EXTERNAL independent of symtab_node.
26976 2015-02-19 Jakub Jelinek <jakub@redhat.com>
26979 * varpool.c (varpool_node::get_constructor): Return early
26980 if this->lto_file_data is NULL.
26982 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26984 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
26985 (rank_for_schedule_debug): Update.
26986 (ready_sort): Make static. Move sorting logic to ...
26987 (ready_sort_debug, ready_sort_real): New static functions.
26988 (schedule_block): Sort both debug insns and real insns in preparation
26989 for ready list trimming. Improve debug output.
26990 * sched-int.h (ready_sort): Remove global declaration.
26992 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
26994 * ipa-icf.c (sem_function::equals_private): Adjust.
26995 (sem_function::bb_dict_test): Take a vec<int> * instead of
26997 * ipa-icf.h (bb_dict_test): Likewise.
26999 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27001 PR gcov-profile/64634
27002 * tree-eh.c (frob_into_branch_around): Fix up typos
27003 in function comment.
27004 (lower_catch): Put eh_seq resulting from EH lowering of
27005 the cleanup sequence after the cleanup rather than before it.
27007 2015-02-18 Tom de Vries <tom@codesourcery.com>
27009 * common.opt (fstdarg-opt): New option.
27010 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
27011 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
27012 (@item -fstdarg-opt): New item.
27014 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
27017 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
27018 for common symbols.
27020 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27022 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
27024 (ALL_HOST_OBJS): Add mkoffload.o.
27025 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
27027 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
27029 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
27030 (compare_virtual_tables): Be smarter about skipping typeinfos;
27031 do sane output on virtual table table mismatch.
27032 (warn_odr): Be ready for forward declarations of enums;
27033 output sane info on base mismatch and virtual table mismatch.
27034 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
27035 when only one type is polymorphic.
27036 (get_odr_type): Fix hashtable corruption.
27037 (dump_odr_type): Dump mangled names.
27039 2015-02-18 Richard Biener <rguenther@suse.de>
27041 PR tree-optimization/65063
27042 * tree-predcom.c (determine_unroll_factor): Return 1 if we
27043 have replaced looparound PHIs.
27045 2015-02-18 Martin Liska <mliska@suse.cz>
27047 * lto-streamer.c (lto_streamer_init): Encapsulate
27048 streamer_check_handled_ts_structures with checking macro.
27050 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27053 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
27054 section if !implicit_section.
27055 (cgraph_node::create_version_clone_with_body): Likewise.
27056 * trans-mem.c (ipa_tm_create_version): Likewise.
27058 2015-02-18 Richard Biener <rguenther@suse.de>
27060 PR tree-optimization/62217
27061 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
27064 2015-02-18 Marek Polacek <polacek@redhat.com>
27067 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
27068 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
27069 is in range [-16K, -1]. Don't issue run-time error if
27070 (ptr > ptr + offset).
27072 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
27074 * doc/install.texi (nvptx-*-none): New section.
27075 * doc/invoke.texi (Nvidia PTX Options): Likewise.
27076 * config/nvptx/nvptx.opt: Update.
27078 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
27079 (access_check): New functions, copied from
27080 config/i386/intelmic-mkoffload.c.
27081 (main): For non-installed testing, look in all COMPILER_PATHs for
27084 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
27086 2015-02-18 Andrew Pinski <apinski@cavium.com>
27087 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27089 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
27090 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
27092 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
27094 * ipa-visibility.c (function_and_variable_visibility): Only
27095 check locality if node is not already local.
27096 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27097 call_for_symbol_and_aliases instead of
27098 call_for_symbol_thunks_and_aliases.
27099 (ipa_inline): Likewise.
27100 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27101 first walk aliases.
27102 * ipa.c (symbol_table::remove_unreachable_nodes): Use
27103 call_for_symbol_and_aliases.
27104 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27105 (ipa_propagate_frequency_1): Use it; use opt_for_fn
27106 (ipa_propagate_frequency): Update.
27107 (ipa_profile): Add opt_for_fn gueards.
27109 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
27111 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
27112 * doc/invoke.texi (SH options): Document it.
27113 * config/sh/sh.c (sh_insn_length_adjustment): Check
27114 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
27116 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
27118 * common.opt (fipa-cp-alignment): New.
27119 * ipa-cp.c (ipcp_store_alignment_results): Check
27120 flag_ipa_cp_alignment.
27121 * opts.c (default_options_table): Enable -fipa-cp-alignment for
27123 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
27124 * doc/invoke.texi: Document -fipa-cp-alignment.
27126 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
27129 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
27130 to nil. Adjust comments.
27132 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
27134 * ipa-visibility.c (function_and_variable_visibility): Only
27135 check locality if node is not already local.
27136 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27137 call_for_symbol_and_aliases instead of
27138 call_for_symbol_thunks_and_aliases.
27139 (ipa_inline): Likewise.
27140 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27141 first walk aliases.
27142 * ipa.c (symbol_table::remove_unreachable_nodes): Use
27143 call_for_symbol_and_aliases.
27144 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27145 (ipa_propagate_frequency_1): Use it; use opt_for_fn
27146 (ipa_propagate_frequency): Update.
27147 (ipa_profile): Add opt_for_fn guards.
27149 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
27151 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
27152 skipping of "strange" tokens.
27154 2015-02-17 Jeff Law <law@redhat.com>
27156 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
27159 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
27161 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
27162 as forcing a HARD_DEP between instructions, thereby
27163 disallowing rewriting to break dependencies.
27165 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
27167 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
27168 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
27169 variables in boundary that have no inlitalizer encoded and are
27171 * varasm.c (default_binds_local_p_2): External definitions do not
27172 count as definitions here.
27174 2015-02-16 Jeff Law <law@redhat.com>
27176 PR tree-optimization/64823
27177 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
27179 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27180 threading through blocks with PHIs, but no statements.
27181 (thread_through_normal_block): Distinguish between blocks where
27182 we did not process all the statements and blocks with no statements.
27184 2015-02-16 Jakub Jelinek <jakub@redhat.com>
27185 James Greenhalgh <james.greenhalgh@arm.com>
27188 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
27189 section if not linkonce. Fix up formatting.
27190 (cgraph_node::create_version_clone_with_body): Copy section.
27191 * trans-mem.c (ipa_tm_create_version): Likewise.
27193 2015-02-16 Richard Biener <rguenther@suse.de>
27195 PR tree-optimization/65077
27196 * tree-ssa-structalias.c (get_constraint_for_1): Handle
27197 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
27198 (find_func_aliases): Allow float values to carry pointers again.
27200 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27202 * doc/install.texi (Specific): Reorder targets list to put
27203 aarch64 in alphabetical order. Add a link to aarch64*-*-*
27206 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27207 David Edelsohn <dje.gcc@gmail.com>
27210 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
27211 mapping class to external variable or function reference.
27212 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
27215 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
27218 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
27219 ASM_WEAKEN_DECL if defined.
27221 2015-02-16 Richard Biener <rguenther@suse.de>
27224 * varasm.c (default_file_start): For LTO produced units
27225 emit <artificial> as file directive.
27227 2015-02-16 Richard Biener <rguenther@suse.de>
27229 PR tree-optimization/63593
27230 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
27231 stmts and releasing SSA names until...
27232 (execute_pred_commoning): ... after processing all chains.
27234 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
27237 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
27238 external functions.
27240 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
27242 * doc/bugreport.texi: Adjust section titles throughout the file
27243 to use "Title Case".
27244 * doc/extend.texi: Likewise.
27245 * doc/gcov.texi: Likewise.
27246 * doc/implement-c.texi: Likewise.
27247 * doc/implement-cxx.texi: Likewise.
27248 * doc/invoke.texi: Likewise.
27249 * doc/objc.texi: Likewise.
27250 * doc/standards.texi: Likewise.
27251 * doc/trouble.texi: Likewise.
27253 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
27255 * cgraph.h (symtab_node::has_aliases_p): Simplify.
27256 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
27257 * tree.c (lookup_binfo_at_offset): Make static.
27258 (get_binfo_at_offset): Do not shadow offset; add explanatory
27261 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
27263 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
27264 for all floading point loads and stores except those using a register
27266 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
27269 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
27271 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
27272 (do_estimate_growth_1): Record if any uninlinable edge was seen.
27273 (estimate_growth): Handle uninlinable edges correctly.
27274 (check_callers): New.
27275 (growth_likely_positive): Handle aliases correctly.
27277 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
27279 * ipa-chkp.c: Use iterate_direct_aliases.
27280 * symtab.c (resolution_used_from_other_file_p): Move inline.
27281 (symtab_node::create_reference): Fix formating.
27282 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
27283 (symtab_node::iterate_reference): Move inline.
27284 (symtab_node::iterate_referring): Move inline.
27285 (symtab_node::iterate_direct_aliases): Move inline.
27286 (symtab_node::used_from_object_file_p_worker): Inline into ...
27287 (symtab_node::used_from_object_file_p): ... this one; move inline.
27288 (symtab_node::call_for_symbol_and_aliases): Move inline;
27289 use iterate_direct_aliases.
27290 (symtab_node::call_for_symbol_and_aliases_1): New method.
27291 (cgraph_node::call_for_symbol_and_aliases): Move inline;
27292 use iterate_direct_aliases.
27293 (cgraph_node::call_for_symbol_and_aliases_1): New method.
27294 (varpool_node::call_for_node_and_aliases): Rename to ...
27295 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
27296 use iterate_direct_aliases.
27297 (varpool_node::call_for_symbol_and_aliases_1): New method.
27298 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
27299 (ipa_discover_readonly_nonaddressable_var): Update.
27300 * ipa-devirt.c: Fix formating.
27301 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
27303 (cgraph_node::call_for_symbol_and_aliases): Move inline.
27304 (cgraph_node::call_for_symbol_and_aliases_1): New function..
27305 * cgraph.h (used_from_object_file_p_worker): Remove.
27306 (resolution_used_from_other_file_p): Move inline.
27307 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
27308 (symtab_node::iterate_reference): Move inline.
27309 (symtab_node::iterate_referring): Move inline.
27310 (symtab_node::iterate_direct_aliases): Move inline.
27311 (symtab_node::used_from_object_file_p_worker): Inline into ...
27312 (symtab_node::used_from_object_file_p): Move inline.
27313 * tree-emutls.c (ipa_lower_emutls): Update.
27314 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
27315 (varpool_node::call_for_node_and_aliases): Remove.
27317 2015-02-14 Jakub Jelinek <jakub@redhat.com>
27319 PR tree-optimization/62209
27320 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
27321 op == range->exp, insert seq and gimplified code after labels
27322 instead of after the phi.
27324 2015-02-13 Jeff Law <law@redhat.com>
27327 Revert my change for tree-optimization/64823.
27329 2015-02-13 Jakub Jelinek <jakub@redhat.com>
27331 PR tree-optimization/65053
27332 * tree-ssa-phiopt.c (value_replacement): When moving assign before
27333 cond, either reset VR on lhs or set it to phi result VR.
27335 2015-02-13 Jeff Law <law@redhat.com>
27337 PR tree-optimization/64823
27338 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
27339 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27340 threading through blocks with PHIs, but no statements.
27341 (thread_through_normal_block): Distinguish between blocks where
27342 we did not process all the statements and blocks with no statements.
27344 PR rtl-optimization/47477
27345 * match.pd (convert (plus/minus (convert @0) (convert @1): New
27346 simplifier to narrow arithmetic.
27348 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
27351 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
27352 polymorphic call info when type is not known to be preserved.
27354 2015-02-13 Maritn Jambor <mjambor@suse.cz>
27357 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
27358 (inline_call): Use it.
27360 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
27362 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
27363 GOMP_DEVICE_NVIDIA_PTX.
27365 2015-02-13 Jakub Jelinek <jakub@redhat.com>
27368 * stmt.c (emit_case_nodes): Use void_type_node instead of
27369 NULL_TREE as LABEL_DECL type.
27371 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
27373 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
27375 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
27376 symbolic references to data to be forced to constant memory on the
27379 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
27381 PR tree-optimization/65002
27382 * tree-cfg.c (pass_data_fixup_cfg): Don't update
27384 * tree-sra.c (some_callers_have_no_vuse_p): New.
27385 (ipa_early_sra): Reject functions whose callers
27386 assume function is read only.
27388 2015-02-13 Richard Biener <rguenther@suse.de>
27391 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
27392 for LTO produced CUs.
27394 2015-02-13 Bin Cheng <bin.cheng@arm.com>
27396 PR tree-optimization/64705
27397 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
27398 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
27399 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
27400 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
27401 expand_simple_operations.
27403 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
27404 Richard Henderson <rth@redhat.com>
27407 * cgraphunit.c (cgraph_node::finalize_function): Set definition
27408 before notice_global_symbol.
27409 (varpool_node::finalize_decl): Likewise.
27410 * varasm.c (default_binds_local_p_2): Rename from
27411 default_binds_local_p_1, add weak_dominate argument. Use direct
27412 returns instead of assigning to local variable. Unify varpool and
27413 cgraph paths via symtab_node. Reject undef weak variables before
27414 testing visibility. Reorder tests for simplicity.
27415 (default_binds_local_p): Use default_binds_local_p_2.
27416 (default_binds_local_p_1): Likewise.
27417 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
27419 (default_elf_asm_output_external): Emit visibility when specified.
27421 2015-02-13 Alan Modra <amodra@gmail.com>
27423 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
27424 code setting up r11 for out-of-line fp restore.
27426 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
27428 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
27429 (muser-mode): Likewise.
27431 2015-02-13 Alan Modra <amodra@gmail.com>
27433 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
27434 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
27436 2015-02-12 David Howells <dhowells@redhat.com>
27438 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
27440 * tree-ssa-uninit.c (dump_predicates): Likewise.
27441 * opts.c (print_filtered_help): Likewise.
27443 2015-02-12 Jakub Jelinek <jakub@redhat.com>
27445 * dwarf2out.c (output_die): Use "%s", name instead of name to
27446 avoid -Wformat-security warning.
27448 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
27449 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
27450 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
27451 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
27453 2015-02-12 Jason Merrill <jason@redhat.com>
27455 * common.opt (-flifetime-dse): New.
27457 2015-02-12 Jakub Jelinek <jakub@redhat.com>
27460 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
27462 PR tree-optimization/65014
27463 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
27464 use original second operand of arg0 or arg1 instead of
27465 that adjusted by STRIP_NOPS.
27467 2015-02-11 Jeff Law <law@redhat.com>
27470 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
27471 that needs to be queued, just queue it for a single cycle.
27473 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
27475 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
27476 bodies of thunks; comment on why.
27477 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
27478 symbols are extern.
27480 2015-02-11 Richard Henderson <rth@redhat.com>
27483 * tree-eh.c (mark_reachable_handlers): Mark source and destination
27484 regions of __builtin_eh_copy_values.
27486 2015-02-11 Jakub Jelinek <jakub@redhat.com>
27488 PR middle-end/65003
27489 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
27490 ultimate alias is MEM with SYMBOL_REF satisfying
27491 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
27492 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
27494 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
27496 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
27497 "diagnostic-core.h".
27498 (main): Initialize progname, and call diagnostic_initialize.
27500 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
27501 instead of __OPENMP_TARGET__.
27503 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
27504 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
27505 hard-coding PTX_ID.
27507 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
27509 * doc/sourcebuild.texi (pie_enabled): Document.
27511 2015-02-11 Martin Liska <mliska@suse.cz>
27514 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
27515 a return value for call to a function that is noreturn.
27517 2015-02-11 Richard Biener <rguenther@suse.de>
27520 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
27523 2015-02-11 Andrew Pinski <apinski@cavium.com>
27526 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
27527 Change the first argument type to size_type_node and add another
27529 (aarch64_simd_expand_builtin): Handle the new argument to
27530 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
27531 print an out when the first two arguments are not
27532 nonzero integer constants.
27533 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
27534 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
27536 2015-02-11 Jakub Jelinek <jakub@redhat.com>
27539 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
27540 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
27541 (ix86_set_current_function): Rewritten.
27542 (ix86_add_new_builtins): Temporarily clear current_target_pragma
27543 when creating builtin fndecls.
27545 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
27548 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
27550 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
27551 have no comdat group.
27552 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
27553 (lto_output_varpool_node): Always output alias info.
27554 (output_refs): Output refs of boundary aliases, too.
27555 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
27556 (output_symtab): Output call eges in thunks in boundary.
27557 (get_alias_symbol): Remove.
27558 (input_node, input_varpool_node): Do not special case weakrefs.
27559 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
27560 alias and thunks targets in the boundary; do not take removed symbols
27561 from their comdat groups.
27562 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
27563 (cgraph_node::global_info): Remove.
27564 (cgraph_node::rtl_info): Look through aliases and thunks.
27565 * cgrpah.h (global_info): Remove.
27566 (non_local_p): Remove.
27568 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
27569 Sandra Loosemore <sandra@codesourcery.com>
27571 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
27572 to inline asm. List dialects in proper order.
27574 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
27575 Sandra Loosemore <sandra@codesourcery.com>
27577 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
27579 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
27581 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
27582 modified) reference to Solaris.
27584 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
27586 * doc/extend.texi (Extended Asm): Fix typos.
27588 2015-02-10 Jakub Jelinek <jakub@redhat.com>
27591 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
27593 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
27596 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
27597 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
27598 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
27599 * config/sh/constraints.md (Ara, Add): New constraints.
27600 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
27602 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
27603 atomic_mem_operand_0. Don't use force_reg on the memory address.
27604 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
27605 Sra constraint. Convert to insn_and_split. Add workaround for
27607 (atomic_compare_and_swap<mode>_hard): Copy to
27608 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
27609 Use atomic_mem_operand_0 predicate.
27610 (atomic_compare_and_swap<mode>_soft_gusa,
27611 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
27612 AraAdd constraints.
27613 (atomic_compare_and_swap<mode>_soft_tcb,
27614 atomic_compare_and_swap<mode>_soft_imask,
27615 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
27616 atomic_mem_operand_0 predicate and SraSdd constraints.
27617 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
27619 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
27620 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
27621 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
27622 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
27623 force_reg on the memory address.
27624 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
27625 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
27626 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
27627 atomic_mem_operand_1 predicate and Sra constraint.
27628 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
27629 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
27630 Use atomic_mem_operand_1 predicate.
27631 (atomic_<fetchop_name><mode>_hard): Copy to
27632 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
27633 Use atomic_mem_operand_1 predicate.
27634 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
27635 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
27636 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
27637 insn_and_split. Use atomic_mem_operand_1 predicate.
27638 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
27639 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
27640 Use atomic_mem_operand_1 predicate.
27641 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
27642 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
27643 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
27644 in generated insn with original mem operand before emitting the insn.
27645 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
27646 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
27647 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
27648 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
27649 Use atomic_mem_operand_1 predicate and AraAdd constraints.
27650 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
27651 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
27652 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
27653 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
27654 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
27655 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
27656 atomic_not_fetch<mode>_soft_tcb,
27657 atomic_<fetchop_name>_fetch<mode>_soft_imask,
27658 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
27659 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
27660 Use atomic_mem_operand_1 predicate and SraSdd constraints.
27662 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
27664 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
27665 and 3 earlyclobber operands.
27667 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
27669 * common.opt (fstack-reuse): Mark as optimization.
27671 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
27674 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
27676 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
27678 PR tree-optimization/64326
27679 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
27681 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
27683 PR gcov-profile/61889
27684 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
27686 2015-02-10 Richard Biener <rguenther@suse.de>
27688 PR tree-optimization/64995
27689 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
27690 value we use is final.
27691 (visit_reference_op_store): Always valueize op.
27692 (visit_use): Properly valueize vuses.
27694 2015-02-10 Richard Biener <rguenther@suse.de>
27696 PR tree-optimization/64909
27697 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
27698 pass a scalar-stmt count estimate to the cost model.
27699 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
27701 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
27703 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
27704 enabled by default together with var-tracking.
27706 2015-02-10 Nick Clifton <nickc@redhat.com>
27708 * config/rl78/rl78.c: Remove DIV attribute code accidentally
27709 included in previous rl78 commit.
27711 2015-02-10 Richard Biener <rguenther@suse.de>
27713 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
27714 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
27715 return the bitpack.
27717 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
27719 PR gcov-profile/61889
27720 * config.in: regenerate.
27721 * configure.in: Likewise.
27722 * configure.ac: Check for ftw.h.
27723 * gcov-tool.c: Check for ftw.h before using nftw.
27725 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
27728 * ipa-visibility.c (update_visibility_by_resolution_info): Only
27729 assert when not in lto mode.
27731 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27733 * ira-color.c (setup_left_conflict_sizes_p): Simplify
27734 initialization/assignment of conflict_size.
27736 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
27739 * ipa-cp.c (gather_caller_stats): Skip thunks.
27740 (propagate_constants_topo): Skip aliases.
27742 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
27745 * config/sh/sh.c (sh_option_override): Don't change
27746 -freorder-blocks-and-partition to -freorder-blocks even when
27747 unwinding is enabled.
27748 (sh_can_follow_jump): Return false if the followee jump is
27749 a crossing jump when -freorder-blocks-and-partition is specified.
27750 * config/sh/sh.md (*jump_compact_crossing): New insn.
27752 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
27753 Kaz Kojima <kkojima@gcc.gnu.org>
27756 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
27757 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
27758 (sh_can_redirect_branch): Rename to ...
27759 (sh_can_follow_jump): ... this. Constify argument types.
27760 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
27761 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
27762 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
27763 * doc/tm.texi: Regenerate.
27765 2015-02-09 Jakub Jelinek <jakub@redhat.com>
27768 * builtins.c (expand_builtin): Call targetm.expand_builtin
27769 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
27771 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
27774 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
27776 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
27779 * ipa-icf.c (set_local): New function.
27780 (sem_function::merge): Use it.
27782 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
27784 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
27785 (add_type_duplicate): Fix comparison of BINFOs.
27787 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
27789 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
27790 on getting VOID pointer.
27792 2015-02-09 Jakub Jelinek <jakub@redhat.com>
27795 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
27798 2015-02-09 Richard Biener <rguenther@suse.de>
27800 * genmatch.c (replace_id): Copy expr_type.
27802 2015-02-09 Richard Biener <rguenther@suse.de>
27804 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
27805 (streamer_write_tree_bitfields): Declare.
27806 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
27807 properly unpack padding.
27808 (unpack_value_fields): Inline ...
27809 (streamer_read_tree_bitfields): ... here.
27810 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
27811 and properly add padding bits.
27812 (streamer_pack_tree_bitfields): Fold into ...
27813 (streamer_write_tree_bitfields): ... this new function,
27814 exposing the bitpack object.
27815 * lto-streamer-out.c (lto_write_tree_1): Call
27816 streamer_write_tree_bitfields.
27818 2015-02-09 Richard Biener <rguenther@suse.de>
27820 PR tree-optimization/54000
27821 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
27822 (struct ivopts_data): Add loop_loc member.
27823 (tree_ssa_iv_optimize_loop): Dump loop location.
27824 (create_new_ivs): Likewise, also dump number of IVs generated.
27826 2015-02-09 Martin Liska <mliska@suse.cz>
27828 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
27829 just if not yet registered.
27830 (ipa_icf_generate_summary): Register callgraph hooks.
27832 2015-02-08 Andrew Pinski <apinski@cavium.com>
27834 * config/aarch64/aarch64.c (gty_dummy): Delete.
27836 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
27839 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
27840 (cgraph_node::local_p): Remove thunk related FIXME.
27842 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
27845 * i386.c (ix86_function_regparm): Look through aliases to see if callee
27846 is local and optimized.
27847 (ix86_function_sseregparm): Likewise; also use target's SSE math
27848 settings; error out instead of silently generating wrong code
27850 (init_cumulative_args): Look through aliases.
27852 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
27855 * ipa-split.c (execute_split_functions): Split if function has aliases.
27857 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
27860 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
27861 aliases before trying to expand it.
27862 (cgraph_node::expand_thunk): Fix formating.
27864 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
27866 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
27867 (Using Assembly Language with C): Expand introduction.
27868 (Basic Asm): Copy-edit. Add more information about uses of
27870 (Extended Asm): Copy-edit. Document new escape syntax and
27872 (Global Reg Vars): Copy-edit.
27873 (Local Reg Vars): Likewise.
27875 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
27879 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
27880 (DBX_CONTIN_CHAR): Define.
27882 2015-02-06 Sebastian Pop <s.pop@samsung.com>
27883 Brian Rzycki <b.rzycki@samsung.com>
27885 PR tree-optimization/64878
27886 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
27887 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
27888 Stop recursion at loop phi nodes after having visited a loop phi node.
27890 2015-02-06 Jakub Jelinek <jakub@redhat.com>
27892 * toplev.c (process_options): Change flag_ipa_ra before creating
27893 optimization_{default,current}_node.
27896 * cgraphunit.c (cgraph_node::expand_thunk): If
27897 restype is not is_gimple_reg_type nor the thunk_fndecl
27898 returns aggregate_value_p, set restmp to a temporary variable
27899 instead of resdecl.
27901 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
27903 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
27905 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27908 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
27909 add a general secondary reload handler for SDmode, unless we have
27910 both read/write support for SDmode.
27912 2015-02-06 Jakub Jelinek <jakub@redhat.com>
27914 PR middle-end/64937
27915 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
27916 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
27917 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
27918 1 before, push it to abstract_vec.
27919 (dwarf2out_abstract_function): Adjust caller. Don't call
27920 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
27921 DECL_ABSTRACT_P flags for all abstract_vec elts.
27923 2015-02-06 Renlin Li <renlin.li@arm.com>
27925 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
27927 * tree-ssa.c (execute_update_addresses_taken): Likewise.
27929 2015-02-06 Jeff Law <law@redhat.com>
27932 * config/h8300/h8300.c (push): New argument "in_prologue".
27933 Pass "in_prologue" along to "F".
27934 (h8300_push_pop): Corresponding changes.
27935 (h8300_expand_prologue): Likewise.
27936 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
27938 2015-02-06 Jakub Jelinek <jakub@redhat.com>
27940 PR rtl-optimization/64957
27942 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
27943 IOR rather than for AND.
27945 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
27948 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
27949 of shift-add and (add + shift) operations. Rename local variable.
27951 2015-02-05 Jeff Law <law@redhat.com>
27954 * config/h8300/constraints.md (U): Correctly dectect
27955 "eightbit_data" memory addresses.
27956 * config/h8300/h8300.c (eightbit_constant_address_p): Also
27957 handle (const (plus (symbol_ref (x)))) where x is declared
27958 as an 8-bit data memory address.
27959 * config/h8300/h8300.md (call, call_value): Correctly detect
27960 "funcvec" functions.
27963 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
27964 24 to 28 bits for the H8/300.
27966 2015-02-06 Alan Modra <amodra@gmail.com>
27969 * config/rs6000/rs6000.c (chain_already_loaded): New function.
27970 (rs6000_call_aix): Use it.
27972 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
27974 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
27977 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
27979 * config/h8300/constraints.md ("U" constraint): Use strict
27980 variant of REG_OK_FOR_BASE_P after reload has started.
27982 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
27984 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
27985 define to zero if !TARGET_NEON.
27986 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
27988 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
27989 Trevor Saunders <tsaunders@mozilla.com>
27992 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
27994 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
27997 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
27998 when removing varpool nodes.
28000 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28003 * varpool.c (varpool_node::remove): Fix order of variables.
28005 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28008 * ipa-inline.c (inline_small_functions): Fix ordering issue between
28009 speculation resolution and key updates.
28011 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28013 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
28014 about not letting any speculative edges unupdated.
28016 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28019 * gcov-io.c (gcov_var): Export.
28021 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28023 PR middle-end/64922
28024 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
28025 edges that become speculative.
28027 2015-02-04 Jakub Jelinek <jakub@redhat.com>
28029 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
28030 or DW_LANG_Fortran08.
28031 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
28033 (gen_compile_unit_die): Handle "GNU Fortran2003" and
28034 "GNU Fortran2008" language strings.
28035 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
28036 * langhooks.h (lang_GNU_Fortran): New prototype.
28037 * langhooks.c (lang_GNU_Fortran): New function.
28038 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
28041 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
28043 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
28044 (RTX_OK_FOR_OLO10_P): Likewise.
28046 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
28048 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
28050 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28052 PR middle-end/64922
28053 * gimple.c: Include gimple-ssa.h.
28054 (maybe_remove_unused_call_args): New function.
28055 * gimple.h (maybe_remove_unused_call_args): Declare.
28056 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
28057 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
28058 * gimple-fold.c (gimple_fold_call): Likewise.
28060 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
28062 PR rtl-optimization/64905
28063 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
28064 pointer alignment if it isn't needed.
28066 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
28068 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
28069 cortex-a72.cortex-a53.
28070 * config/aarch64/aarch64-tune.md: Regenerate.
28071 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
28073 2015-02-04 Nick Clifton <nickc@redhat.com>
28075 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
28078 2015-02-04 Jakub Jelinek <jakub@redhat.com>
28080 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
28081 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
28082 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
28084 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
28085 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
28086 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
28087 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
28088 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
28089 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
28090 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
28091 * tree-core.h (enum built_in_function): In between
28092 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
28093 for builtins that use DEF_BUILTIN_CHKP macro.
28095 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
28098 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
28099 operands for tcc_comparison exprs. Fix typos.
28102 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
28103 of two XORs that have an intervening AND or IOR.
28106 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
28107 simplification of XOR of AND to not allocate new rtx before
28108 committing to a simplification.
28110 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28112 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
28113 manual swaps in all peepholes.
28115 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28117 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
28118 of manual swapping implementation.
28119 (aarch64_expand_vec_perm_const_1): Likewise.
28121 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
28123 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
28124 (generic_addrcost_table): Remove NAMED_PARAM.
28125 (cortexa57_addrcost_table): Likewise.
28126 (xgene1_addrcost_table): Likewise.
28127 (generic_regmove_table): Likewise.
28128 (cortexa53_regmove_table): Likewise.
28129 (xgene1_regmove_table): Likewise.
28130 (generic_vector_table): Likewise.
28131 (cortexa57_vector_table): Likewise.
28132 (xgene1_vector_table): Likewise.
28133 (generic_tunings): Likewise.
28134 (cortexa53_tunings): Likewise.
28135 (cortexa57_tunings): Likewise.
28136 (xgene1_tunings): Likewise.
28138 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
28140 * config/arm/arm-cores.def: Add cortex-a72 and
28141 cortex-a72.cortex-a53.
28142 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
28143 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
28144 * config/arm/arm-tune.md: Regenerate.
28145 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
28146 "cortex-a72.cortex-a53".
28147 * doc/invoke.texi (ARM Options/-mtune): Likewise.
28149 2015-02-04 Nick Clifton <nickc@redhat.com>
28152 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
28154 (nonimmediate_di_operand): Likewise.
28156 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
28157 prefixes of known F5 using MSP430 MCUs.
28159 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28161 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
28162 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
28163 instead of __builtin_sqrt.
28165 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
28167 * varasm.c (do_assemble_alias): Follow transparent alias
28169 (default_assemble_visibility): Follow transparent alias
28170 chain for decl name.
28172 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
28174 PR middle-end/62103
28175 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
28176 to compute size of referenced value in the constant case.
28178 2015-02-03 Jakub Jelinek <jakub@redhat.com>
28180 PR rtl-optimization/64756
28181 * cse.c (invalidate_dest): New function.
28182 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
28183 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
28184 invalidate and do not record it.
28186 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
28189 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
28190 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
28191 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
28192 atomic_nand<mode>_soft_tcb): New insns.
28193 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
28194 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
28195 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
28196 Split into atomic_not_fetchsi_hard if operands[0] is unused.
28197 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
28198 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28199 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
28200 atomic_not<mode>_hard if operands[0] is unused.
28201 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
28202 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
28203 if operands[0] is unused.
28204 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
28205 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
28206 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
28207 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28209 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
28210 into atomic_not<mode>_soft_tcb if operands[0] is unused.
28211 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
28212 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
28213 if operands[0] is unused.
28214 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
28215 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
28216 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
28217 atomic_nand_fetchsi_hard if operands[0] is unused.
28218 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
28219 atomic_nand<mode>_hard if operands[0] is unused.
28220 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
28221 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
28222 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
28223 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28224 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
28225 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
28226 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
28227 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28228 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
28229 atomic_not<mode>_hard if operands[0] is unused.
28230 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
28231 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28233 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
28234 into atomic_not<mode>_soft_tcb if operands[0] is unused.
28235 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
28236 atomic_nand<mode>_hard if operands[0] is unused.
28237 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
28238 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28240 2015-02-03 David Malcolm <dmalcolm@redhat.com>
28243 * Makefile.in (GCC_OBJS): Add gcc-main.o.
28244 * gcc-main.c: New file, containing "main" taken from gcc.c.
28245 * gcc.c (do_self_spec): Free decoded_options.
28246 (class driver): Move declaration to gcc.h.
28247 (main): Move declaration and implementation to new file
28249 (driver_get_configure_time_options): New function.
28250 * gcc.h (class driver): Move this declaration here, from
28252 (driver_get_configure_time_options): New declaration.
28254 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
28256 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
28257 cross-module inlining.
28258 * cgraph.h (cgraph_node): Add flag merged.
28259 * ipa-icf.c (sem_function::merge): Maintain it.
28261 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
28263 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
28264 instead of OBJECT_P.
28266 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
28269 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
28270 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
28271 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
28272 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
28274 2015-02-03 Jakub Jelinek <jakub@redhat.com>
28277 * combine.c (reg_n_sets_max): New variable.
28278 (can_change_dest_mode, reg_nonzero_bits_for_combine,
28279 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
28280 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
28281 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
28282 (rest_of_handle_combine): Initialize reg_n_sets_max.
28284 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
28286 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
28287 if some always_inline was inlined, apply changes before inlining
28290 2015-02-02 David Malcolm <dmalcolm@redhat.com>
28293 * config/arm/arm.c (arm_option_override): Set
28294 arm_selected_arch/cpu/tune to NULL on entry.
28296 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
28297 Andrew Pinski <pinskia@gcc.gnu.org>
28298 Jakub Jelinek <jakub@gcc.gnu.org>
28301 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
28302 integer typing for small model. Use IN_RANGE.
28304 2015-02-02 Richard Biener <rguenther@suse.de>
28306 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
28307 * tree-vrp.c (vrp_valueize_1): Likewise.
28309 2015-02-02 Alan Modra <amodra@gmail.com>
28311 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
28312 than mem for toc_restore.
28313 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
28314 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
28315 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
28317 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
28320 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
28321 explicit default options.
28323 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
28326 * ipa-utils.c (ipa_merge_profiles): Add release argument.
28327 * ipa-icf.c (sem_function::merge): Do not release body when merging.
28328 * ipa-utils.h (ipa_merge_profiles): Update prototype.
28330 2015-02-01 Jakub Jelinek <jakub@redhat.com>
28333 * cfgexpand.c (deep_ter_debug_map): New variable.
28334 (avoid_deep_ter_for_debug): New function.
28335 (expand_debug_expr): If TERed SSA_NAME is in
28336 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
28337 instead of trying to expand SSA_NAME's def stmt.
28338 (expand_debug_locations): When expanding debug bind
28339 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
28340 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
28342 (pass_expand::execute): Call avoid_deep_ter_for_debug on
28343 all debug bind stmts. Delete deep_ter_debug_map after
28344 expand_debug_location if non-NULL and clear it.
28346 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
28349 * config/sh/sync.md (atomic_fetch_notsi_hard,
28350 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
28351 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
28352 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
28353 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
28354 atomic_not_fetch<mode>_soft_imask): New insns.
28356 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28358 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
28359 (rank_for_schedule_debug): Split from ...
28360 (rank_for_schedule): ... this.
28361 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
28362 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
28364 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
28366 * doc/md.texi (Machine Constraints): Alphabetize table by target.
28367 * doc/extend.texi (x86 Variable Attributes): Move section to
28368 correct alphabetization after renaming.
28369 (x86 Type Attributes): Likewise.
28370 (Target Builtins): Re-alphabetize menu.
28371 (x86 Built-in Functions): Move section to correct alphabetization
28373 (x86 transactional memory intrinsics): Likewise.
28374 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
28375 and x86 Windows Options in table and menu.
28376 (x86 Options): Move section to correct alphabetization after
28378 (x86 Windows Options): Likewise.
28380 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
28382 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
28383 preferred names of the architecture and its 32- and 64-bit
28385 * doc/invoke.texi: Likewise.
28386 * doc/md.texi: Likewise.
28388 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
28391 * config/i386/predicates.md (address_no_seg_operand): Reject
28392 non-CONST_INT_P operands in invalid mode.
28394 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
28396 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
28397 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
28398 * config/i386/predicates.md (address_no_seg_operand): Call
28399 address_operand with VOIDmode.
28400 (vsib_address_operand): Ditto.
28401 (address_mpx_no_base_operand): Ditto.
28402 (address_mpx_no_index_operand): Ditto.
28404 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
28407 * lra-constraints.c (original_subreg_reg_mode): New.
28408 (simplify_operand_subreg): Try to simplify subreg of const. Use
28409 original_subreg_reg_mode for it.
28410 (swap_operands): Update original_subreg_reg_mode.
28411 (curr_insn_transform): Set up original_subreg_reg_mode.
28413 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
28416 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
28418 (process_alt_operands): Use it.
28419 (curr_insn_transform): Check the optional reload pseudo class is
28422 2015-01-30 Joseph Myers <joseph@codesourcery.com>
28424 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
28425 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
28427 * toplev.h (init_asm_output): Update comment on use of
28428 UNKNOWN_LOCATION with fatal_error.
28429 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
28430 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
28431 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
28432 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
28433 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
28434 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
28435 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
28436 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
28437 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
28438 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
28439 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
28440 fatal_error changed to pass input_location as first argument.
28442 2015-01-30 Martin Liska <mliska@suse.cz>
28444 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
28445 in #pragma GCC diagnostic guards.
28447 2015-01-30 Richard Biener <rguenther@suse.de>
28449 PR tree-optimization/64829
28450 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
28451 not add a widening conversion pattern but hand off extra
28452 widenings to callers.
28453 (vect_recog_widen_mult_pattern): Handle extra widening produced
28454 by vect_handle_widen_op_by_const.
28455 (vect_recog_widen_shift_pattern): Likewise.
28456 (vect_pattern_recog_1): Remove excess vertical space in dumping.
28457 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
28458 (vect_init_vector_1): Likewise.
28459 (vect_get_vec_def_for_operand): Likewise.
28460 (vect_finish_stmt_generation): Likewise.
28461 (vectorizable_load): Likewise.
28462 (vect_analyze_stmt): Likewise.
28463 (vect_is_simple_use): Likewise.
28465 2015-01-29 Jeff Law <law@redhat.com>
28467 * combine.c (try_combine): Fix typo in comment.
28469 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
28472 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
28473 (rs6000_stack_info): Add assert.
28474 (rs6000_output_savres_externs): New function, split off from...
28475 (rs6000_output_function_prologue): ... here. Do not call it for
28478 2015-01-29 Jeff Law <law@redhat.com>
28481 * combine.c (try_combine): If I0 is a memory load and I3 a store
28482 to a related address, increase the "goodness" of doing a 4-insn
28483 combination with I0-I3.
28484 (make_field_assignment): Handle SUBREGs in the ior+and case.
28486 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
28488 PR tree-optimization/64746
28489 * tree-if-conv.c (mask_exists): New function.
28490 (predicate_mem_writes): Save created mask with given size for further
28492 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
28493 (ifcvt_repair_bool_pattern): Collect all statements that are root
28494 of bool pattern and use iterative algorithm to remove multiple uses
28495 of predicates, display number of required iterations.
28497 2015-01-29 Richard Biener <rguenther@suse.de>
28499 PR tree-optimization/64853
28500 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
28501 stmt will get simulated again.
28502 * tree-ssa-ccp.c (valueize_op_1): Likewise.
28504 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28506 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
28507 return_in_pc. Remove redundant assignments.
28508 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
28509 (arm_expand_epilogue): Don't compare boolean with true in if condition.
28511 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
28513 * config/i386/i386.c (ix86_mode_after): Make static.
28515 2015-01-29 Richard Biener <rguenther@suse.de>
28517 PR tree-optimization/64844
28518 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
28519 dump cost model analysis.
28520 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28521 Do not register adjusted load/store costs here.
28523 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
28524 Uros Bizjak <ubizjak@gmail.com>
28526 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
28527 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
28528 using x86_use_pseudo_pic_reg.
28529 * config/i386/i386.c (ix86_conditional_register_usage): Remove
28530 support for fixed PIC register.
28531 (ix86_use_pseudo_pic_reg): Not static any more.
28533 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
28535 PR middle-end/64805
28536 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
28537 to avoid error in cgraph node verification.
28539 2015-01-29 Marek Polacek <polacek@redhat.com>
28541 * doc/standards.texi: Reflect that the default for C is gnu11.
28543 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
28546 * reorg.c (switch_text_sections_between_p): New function.
28547 (relax_delay_slots): Call it when testing if the jump insn
28548 is removable. Use targetm.can_follow_jump when testing if
28549 the conditional branch can follow an unconditional jump.
28551 2015-01-27 Caroline Tice <cmtice@google.com>
28553 Committing VTV Cywin/Ming patch for Patrick Wollgast
28554 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
28555 if -fvtable-verify=preinit/std is used.
28556 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
28557 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
28558 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
28559 if -fvtable-verify=preinit/std is used.
28560 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28561 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
28562 if -fvtable-verify=preinit/std is used.
28563 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
28564 * config/i386/mingw32.h (LIB_SPEC): Likewise.
28565 * varasm.c (assemble_variable): Add code to properly set the comdat
28566 section and name for the .vtable_map_vars section in case the
28567 target is PE or COFF.
28569 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
28572 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
28573 make sane BB profile.
28574 (cgraph_node::expand_thunk): Make sane BB profile.
28575 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
28576 * cgraph.h (init_lowered_empty_function): Update prototype.
28577 * config/i386/i386.c (make_resolver_func): Update call.
28578 * predict.c (gate): Disable branch prediction pass if
28579 profile is already there.
28581 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
28583 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
28584 * opth-gen.awk: Likewise.
28585 * common.opt: Mark flag_fp_contract_mode as Optimization.
28587 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
28589 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
28590 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
28592 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
28595 * config/sh/predicates.md (atomic_arith_operand,
28596 atomic_logical_operand): Remove.
28597 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
28598 (atomic_arith_operand_0): New predicate.
28599 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
28600 Use atomic_arith_operand_0 for input values.
28601 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
28602 atomic_compare_and_swap<mode>_soft_gusa,
28603 atomic_compare_and_swap<mode>_soft_tcb,
28604 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
28605 arith_reg_operand instead of register_operand.
28606 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
28607 atomic_arith_operand_0 for newval input.
28608 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
28609 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
28610 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
28611 arith_reg_operand instead of register_operand.
28612 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
28613 fetchop_predicate_1, fetchop_constraint_1_llcs,
28614 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
28615 fetchop_constraint_1_imask): New code iterator attributes.
28616 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
28617 register_operand. Use fetchop_predicate_1.
28618 (atomic_fetch_<fetchop_name>si_hard,
28619 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
28620 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
28621 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
28622 and arith_reg_operand instead of register_operand. Use
28623 fetchop_predicate_1, fetchop_constraint_1_gusa.
28624 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
28625 and arith_reg_operand instead of register_operand. Use
28626 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
28628 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
28629 and arith_reg_operand instead of register_operand. Use
28630 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
28632 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
28633 register_operand. Use atomic_logical_operand_1.
28634 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
28635 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
28636 arith_reg_operand instead of register_operand.
28637 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
28638 Use arith_reg_dest and arith_reg_operand instead of register_operand.
28639 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
28640 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
28641 register_operand. Use fetchop_predicate_1.
28642 (atomic_<fetchop_name>_fetchsi_hard,
28643 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
28644 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
28645 fetchop_constraint_1_llcs.
28646 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
28647 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
28648 fetchop_constraint_1_gusa.
28649 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
28650 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
28651 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
28652 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
28653 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
28654 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
28655 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
28656 register_operand. Use atomic_logical_operand_1.
28657 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
28658 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
28659 arith_reg_operand instead of register_operand.
28660 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
28661 arith_reg_operand instead of register_operand. Use logical_operand
28662 and K08. Adjust asm sequence to allow R0 usage.
28663 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
28664 arith_reg_operand instead of register_operand. Use logical_operand
28667 2015-01-28 Jakub Jelinek <jakub@redhat.com>
28670 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
28671 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
28672 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
28673 only get_full_len HOST_WIDE_INTs from get_val () array rather than
28674 all bits in *val_wide.
28676 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
28678 * varpool.c (tls_model_names): Fix names.
28679 (varpool_node::dump): Dump tls- prefix for tls models.
28681 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
28682 Bernd Schmidt <bernds@codesourcery.com>
28683 Nathan Sidwell <nathan@codesourcery.com>
28685 * config/nvptx/mkoffload.c: New file.
28686 * config/nvptx/t-nvptx: Add build rules for it.
28687 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
28688 (extra_programs): Add mkoffload.
28689 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
28691 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
28693 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
28695 PR middle-end/64809
28696 * cfgexpand.c (reorder_operands): Skip debug gimples.
28698 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
28700 PR tree-optimization/64277
28701 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
28702 range info when possible to refine estimation.
28704 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28706 PR tree-optimization/64718
28707 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
28708 be a 16bit unsigned integer when n->range is 16.
28709 (bswap_replace): Convert src to that type if necessary for all bswap
28710 sizes. Fix rotation right notation in nearby comment. Use bswap_type
28711 set in pass_optimize_bswap::execute ().
28713 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
28715 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
28716 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
28717 integer and floating point variants.
28718 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
28720 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
28722 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
28723 for all vector modes.
28725 2015-01-28 Jakub Jelinek <jakub@redhat.com>
28728 * doc/sourcebuild.texi (comdat_group): Document.
28730 2015-01-28 Terry Guo <terry.guo@arm.com>
28732 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
28734 2015-01-27 David Malcolm <dmalcolm@redhat.com>
28736 * toplev.c (print_version): Add param "show_global_state", and
28737 only print GGC and plugin information if it is true.
28738 (init_asm_output): Pass in "true" for the new param when calling
28740 (process_options): Likewise.
28741 (toplev::main): Likewise.
28742 * toplev.h (print_version): Add new param to decl.
28744 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
28748 * tree.c (lookup_binfo_at_offset): New function.
28749 (get_binfo_at_offset): Use it.
28751 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
28754 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
28755 on vtable being vtable.
28757 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
28759 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
28760 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
28761 -mhotpatch= option.
28762 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
28763 -mno-hotpatch options. Change syntax of -mhotpatch= option.
28764 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
28766 (s390_hotpatch_trampoline_halfwords_max): Renamed.
28767 (s390_hotpatch_hw_max): New name.
28768 (s390_hotpatch_trampoline_halfwords): Renamed.
28769 (s390_hotpatch_hw_before_label): New name.
28770 (get_hotpatch_attribute): Removed.
28771 (s390_hotpatch_hw_after_label): New name.
28772 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
28774 (s390_attribute_table): Ditto.
28775 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
28776 (s390_function_num_hotpatch_hw): New name.
28777 Remove special handling of inline functions and hotpatching.
28778 Return number of nops before and after the function label.
28779 (s390_can_inline_p): Removed.
28780 (s390_asm_output_function_label): Emit a configurable number of nops
28781 after the function label.
28782 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
28783 (TARGET_CAN_INLINE_P) Removed.
28784 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
28786 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28787 Jiong Wang <jiong.wang@arm.com>
28789 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
28791 (cb<optab><mode>1): Likewise.
28792 * config/aarch64/iterators.md (bcond): New define_code_attr.
28794 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28796 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
28799 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28801 * config/s390/s390.c (s390_register_move_cost): Increase costs for
28804 2015-01-27 Richard Biener <rguenther@suse.de>
28806 * tree-vrp.c (update_value_range): Intersect the range with
28807 old recorded SSA name range information.
28809 2015-01-27 Nick Clifton <nickc@redhat.com>
28811 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
28812 BC, DE and HL registers directly, not via AX.
28813 When decrementing the stack pointer by a large amount, transfer SP
28814 into AX and perform the subtraction there.
28815 (rl78_expand_epilogue): Perform the inverse of the above
28818 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28820 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
28822 2015-01-27 Jakub Jelinek <jakub@redhat.com>
28823 Yury Gribov <y.gribov@samsung.com>
28826 * ubsan.c (ubsan_source_location): Refactor code.
28827 (ubsan_type_descriptor): Update type size. Refactor code.
28829 2015-01-27 Richard Biener <rguenther@suse.de>
28831 PR tree-optimization/56273
28832 PR tree-optimization/59124
28833 PR tree-optimization/64277
28834 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
28835 from the first VRP pass.
28837 2015-01-27 Jakub Jelinek <jakub@redhat.com>
28840 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
28841 handle the first argument in the same loop as all the other arguments.
28843 PR rtl-optimization/61058
28844 * jump.c (cleanup_barriers): Update basic block boundaries
28845 if BLOCK_FOR_INSN is non-NULL on PREV.
28847 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
28849 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
28850 bounds narrowing, already instrumented calls and calls to
28851 not instrumentable functions.
28853 2015-01-27 Jakub Jelinek <jakub@redhat.com>
28855 PR tree-optimization/64807
28856 * wide-int.cc (wi::divmod_internal): Clear
28857 b_dividend[dividend_blocks_needed].
28859 2015-01-26 DJ Delorie <dj@redhat.com>
28861 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
28862 volatile memory references.
28864 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
28867 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
28869 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
28870 shifts if it already fits into K08.
28872 2015-01-26 Jakub Jelinek <jakub@redhat.com>
28875 * ipa-inline.c (inline_small_functions): Print "unknown" even
28876 if edge->call_stmt is non-NULL, but has builtins or unknown
28879 PR middle-end/64421
28880 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
28881 with asterisk, skip the first character.
28883 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
28886 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
28889 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
28892 * config/i386/i386.md (*movdi_internal): Also check operand 0
28893 to determine TYPE_LEA operand.
28894 (*movsi_internal): Ditto.
28896 2015-01-26 Jakub Jelinek <jakub@redhat.com>
28898 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
28899 OPTION_MASK_QUAD_MEMORY_ATOMIC.
28901 2015-01-26 Renlin Li <renlin.li@arm.com>
28903 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
28905 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
28908 2015-01-26 Richard Biener <rguenther@suse.de>
28910 PR middle-end/64764
28911 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
28912 combining two BIT_AND_EXPR predicates.
28914 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
28917 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
28919 2015-01-26 Terry Guo <terry.guo@arm.com>
28921 * config/arm/arm.c (arm_file_start): Update the assignment of
28922 Tag_ABI_HardFP_use.
28924 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
28926 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
28928 config/arm/arm.md: Include the new Cortex-A57 model.
28929 (generic_sched): Don't use generic_sched when tuning for
28932 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
28933 Uros Bizjak <ubizjak@gmail.com>
28935 * config/i386/i386.c (get_builtin_code_for_version): Add
28936 support for BMI and BMI2 multiversion functions.
28938 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28940 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
28941 (extract_bit_field): Likewise.
28942 (extract_low_bits): Likewise.
28943 (expand_mult): Likewise.
28944 (expand_mult_highpart_adjust): Likewise.
28946 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
28948 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
28949 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
28950 * config/i386/i386.c (processor_model): Add
28951 M_INTEL_COREI7_BROADWELL.
28952 (arch_names_table): Add "broadwell".
28954 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
28963 * config/sh/sh-protos.h
28964 (sh_extending_set_of_reg::can_use_as_unextended_reg,
28965 sh_extending_set_of_reg::use_as_unextended_reg,
28966 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
28967 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
28968 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
28969 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
28970 (sh_treg_insns): New class.
28971 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
28972 (scope_counter): New class.
28973 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
28974 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
28975 sh_extending_set_of_reg::can_use_as_unextended_reg,
28976 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
28977 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
28978 sh_split_treg_set_expr): New functions.
28979 (addsubcosts): Handle treg_set_expr.
28980 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
28981 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
28982 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
28983 (sh_insn_operands_modified_between_p): Make non-static.
28984 * config/sh/predicates.md (zero_extend_movu_operand): Allow
28985 simple_mem_operand in addition to displacement_mem_operand.
28986 (zero_extend_operand): Don't allow zero_extend_movu_operand.
28987 (treg_set_expr, treg_set_expr_not_const01,
28988 arith_reg_or_treg_set_expr): New predicates.
28989 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
28990 arith_or_int_operand instead of logical_operand. Convert to
28991 insn_and_split. Try to optimize constant operand in splitter.
28992 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
28993 (*tstqi_t_zero): Delete.
28994 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
28995 (tstsi_t_and_not): Delete.
28996 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
28997 Convert to insn_and_split.
28998 (unnamed split, tstsi_t_zero_extract_xor,
28999 tstsi_t_zero_extract_subreg_xor_little,
29000 tstsi_t_zero_extract_subreg_xor_big): Delete.
29001 (*tstsi_t_shift_mask): New insn_and_split.
29002 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
29003 to recombine with surrounding insns when splitting.
29004 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
29005 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
29006 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
29007 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
29008 (*cbranch_div0s: Delete.
29009 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
29010 Try to recombine with surrounding insns when splitting. Add operand
29012 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
29013 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
29014 *addc_r_r_msb, *addc_2r_msb): Delete.
29015 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
29017 (*addc_negreg_t): New insn_and_split.
29018 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
29019 Try to recombine with surrounding insns when splitting.
29020 Add operand order variants.
29021 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
29022 insn_and_split patterns.
29023 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
29024 surrounding insns when splitting.
29025 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
29026 (*rotcl): Likewise. Add zero_extract variant.
29027 (*ashrsi2_31): New insn_and_split.
29028 (*negc): Convert to insn_and_split. Use treg_set_expr.
29029 (*zero_extend<mode>si2_disp_mem): Update comment.
29030 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
29032 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
29033 with surrounding insns when splitting.
29034 (any_treg_expr_to_reg): New insn_and_split.
29035 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
29036 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
29037 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
29038 *zero_extract_2): New single bit zero extract patterns.
29039 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
29040 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
29041 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
29042 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
29044 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
29045 register_operand for set source.
29047 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
29049 * i386.opt (prefetch_sse): New targetsave.
29050 * i386.c (ix86_function_specific_save): Save prefetch_sse.
29051 (ix86_function_specific_restore): Restore prefetch_sse and initialize
29052 ix86_cost/ix86_tune_cost.
29054 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29056 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
29057 Support the JIT by using 0 as the language type.
29059 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
29062 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
29063 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
29064 (mark_regno_live, process_bb_lives): Pass new parameter value to
29065 make_hard_regno_born.
29067 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29069 PR rtl-optimization/63637
29070 PR rtl-optimization/60663
29071 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
29072 if elt->cost is MAX_COST for ASM_OPERANDS.
29073 (find_sets_in_insn): Fix up comment typo.
29074 (cse_insn): Don't set src_volatile for all non-volatile
29075 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
29076 or with "memory" clobber. Set elt->cost to MAX_COST
29077 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
29078 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
29080 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
29082 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
29085 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
29087 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
29088 libgcc/config/i386/elf-lib.h.
29090 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29093 * gcc.c (print_configuration): Don't print a blank line at the end
29095 (run_attempt): ... but here unstead.
29097 PR middle-end/64734
29098 * omp-low.c (scan_sharing_clauses): Don't ignore
29099 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
29100 on target data/update constructs.
29102 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
29105 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
29106 (DEBUG_RELOAD): Removed define.
29107 (m32c_limit_reload_class): Enable traces with if DEBUG0.
29108 (m32c_function_arg): Added a type cast.
29109 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
29110 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
29111 * config/m32c/bitops.md (andqi3_16): Likewise.
29112 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
29113 (push_a01_l): Likewise.
29115 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29118 * main.c (main): Construct toplev instances with init_signals=true.
29119 * toplev.c (general_init): Add param "init_signals", and use it to
29120 conditionalize the calls to signal and host_hooks.extra_signals.
29121 (toplev::toplev): Add param "init_signals".
29122 (toplev::main): When invoking general_init, pass m_init_signals
29123 to control whether signal-handlers are installed.
29124 * toplev.h (toplev::toplev): Add param "init_signals".
29125 (toplev::m_init_signals): New field.
29127 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29130 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
29131 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
29132 latter may be affected by the former (e.g. on i686).
29134 2015-01-23 Martin Liska <mliska@suse.cz>
29136 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
29137 false positive during profiledbootstrap.
29139 2015-01-23 Tom de Vries <tom@codesourcery.com>
29142 * lto-opts.c (lto_write_options): Output non-explicit conservative
29144 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
29145 (append_compiler_options): Pass -fopenacc through.
29147 2015-01-23 Tom de Vries <tom@codesourcery.com>
29150 * lto-opts.c (lto_write_options): Output non-explicit conservative
29152 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
29153 (append_compiler_options): Pass -fopenmp through.
29155 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29158 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
29161 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
29162 * diagnostic.def (DK_ICE_NOBT): New kind.
29163 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
29164 like DK_ICE, but never print backtrace.
29165 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
29166 (internal_error_no_backtrace): New function.
29167 * gcc.c (execute): Use internal_error_no_backtrace instead of
29170 2015-01-22 Jeff Law <law@redhat.com>
29173 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
29174 improve code density for small immediate to memory case.
29175 (insv): Better handle bitfield assignments when the field is
29176 being set to all ones.
29177 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
29180 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29181 Jakub Jelinek <jakub@redhat.com>
29183 PR middle-end/64729
29184 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
29185 for !TARGET_LIBC_PROVIDES_SSP version and
29186 -fstack-protector-{all,strong,explicit} otherwise.
29187 * config/freebsd.h (LINK_SSP_SPEC): Handle
29188 -fstack-protector-{strong,explicit}.
29190 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
29191 H.J. Lu <hongjiu.lu@intel.com>
29194 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
29197 2015-01-22 Wei Mi <wmi@google.com>
29199 PR rtl-optimization/64557
29200 * dse.c (record_store): Call get_addr for mem_addr.
29201 (check_mem_read_rtx): Likewise.
29203 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
29205 * fold-const.c (const_binop): Add early return for non-tcc_binary.
29207 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
29209 * toplev.c (init_local_tick): Process the failure when read
29210 fails for random_seed.
29212 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
29213 'pretty_name' to avoid memory overflow.
29215 2015-01-22 Richard Biener <rguenther@suse.de>
29217 PR middle-end/64728
29218 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
29219 abnormal coalescing on undefined SSA names.
29221 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
29225 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
29227 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
29229 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
29231 PR middle-end/63325
29232 * fold-const.c (fold_checksum_tree): Don't include value of
29233 expr->decl_with_vis.symtab_node in the checksum.
29235 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29237 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
29239 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
29242 * gcc.c (insert_comments): New function.
29243 (try_generate_repro): Call it.
29244 (append_text): Removed.
29246 2015-01-22 Richard Biener <rguenther@suse.de>
29248 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
29249 with IL incompatible options. Properly honor user optimize
29252 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
29254 PR rtl-optimization/64682
29255 * combine.c (distribute_notes): When moving a death note for
29256 a register that is set in the new I2, make sure to put it
29257 before that new I2.
29259 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
29261 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
29262 not TARGET_DEFAULT.
29264 2015-01-21 Jakub Jelinek <jakub@redhat.com>
29267 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
29268 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
29269 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
29272 * doc/invoke.texi (-fsanitize=vptr): Document.
29274 PR rtl-optimization/62078
29275 * dse.c: Include cfgcleanup.h.
29276 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
29277 anything call purge_all_dead_edges and cleanup_cfg at the end
29280 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
29282 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
29285 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
29287 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
29290 2015-01-21 David Sherwood <david.sherwood@arm.com>
29291 Tejas Belagod <Tejas.Belagod@arm.com>
29293 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
29294 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
29295 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
29298 2015-01-21 David Sherwood <david.sherwood@arm.com>
29299 Tejas Belagod <Tejas.Belagod@arm.com>
29301 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
29302 (aarch64_reverse_mask): New decls.
29303 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
29304 (insn_count): New mode_attr.
29305 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
29306 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
29307 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
29308 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
29309 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
29310 (aarch64_simd_st4): New patterns.
29311 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
29312 (aarch64_reverse_mask): New functions.
29314 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
29316 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
29318 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
29319 addressing modes for BE.
29320 (aarch64_print_operand): Add 'R' specifier.
29321 (aarch64_simd_disambiguate_copy): Delete.
29322 (aarch64_simd_emit_reg_reg_move): New function.
29323 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
29324 in define_splits for structural moves.
29325 (mov<mode>): Use less restrictive predicates.
29326 (*aarch64_mov<mode>): Simplify and only allow for LE.
29327 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
29329 2015-01-21 Alan Hayward <alan.hayward@arm.com>
29331 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
29333 2015-01-21 Richard Henderson <rth@redhat.com>
29336 * ccmp.c (used_in_cond_stmt_p): Remove.
29337 (expand_ccmp_expr): Don't use it.
29339 2015-01-21 Nick Clifton <nickc@redhat.com>
29341 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
29344 2015-01-21 Richard Biener <rguenther@suse.de>
29346 PR middle-end/64313
29347 * tree-core.h (builtin_info, builtin_info_type): Turn from
29348 an object with two arrays into an array of an object with
29349 decl and two flags, implicit_p and declared_p.
29350 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
29351 set_builtin_decl, set_builtin_decl_implicit_p,
29352 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
29353 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
29354 * builtins.c (builtin_info): Adjust.
29355 * gimplify.c (gimplify_addr_expr): References to builtins
29356 that have been declared by the user makes them eligible for
29357 use by the compiler. Call set_builtin_decl_implicit_p on them.
29359 2015-01-20 Jeff Law <law@redhat.com>
29362 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
29363 allow pc-relative addresses in operand predicates or constraints.
29365 2015-01-21 Bin Cheng <bin.cheng@arm.com>
29367 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
29368 neon on aarch32 processors for stringops.
29370 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29373 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
29375 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29378 * ipa-inline.c: Include lto-streamer.h
29379 (report_inline_failed_reason): Output source file differences and
29380 flags on optimization/target node mismatch.
29381 (can_inline_edge_p): Consider caller to be the outer inline function;
29382 be less restrictive about matching opimize and optimize_size attributes.
29383 (inline_account_function_p): Break out from ...
29384 (inline_small_functions): ... here.
29385 * ipa-inline-transform.c (clone_inlined_nodes): Use
29386 inline_account_function_p.
29387 (inline_call): Use optimize attribution; use inline_account_function_p.
29388 (inline_transform): Use opt_for_fn.
29389 * ipa-inline.h (inline_account_function_p): Declare.
29391 2015-01-20 Jakub Jelinek <jakub@redhat.com>
29394 * dwarf2out.c (decl_piece_node): Don't put bitsize into
29395 mode if bitsize <= 0.
29396 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
29397 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
29398 sizes and positions.
29400 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
29402 * config/nios2/nios2.c (nios2_asm_file_end): Implement
29403 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
29405 (TARGET_ASM_FILE_END): Define.
29407 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29409 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
29410 (struct tune_params): Use the enum.
29411 * arm.c (arm_*_tune): Update.
29412 (arm_option_override): Update.
29414 2015-01-20 Richard Biener <rguenther@suse.de>
29417 * ipa-reference.c (add_static_var): Inline ...
29418 (analyze_function): ... here after splitting out from ...
29419 (is_proper_for_analysis): ... this.
29421 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
29424 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
29425 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
29426 replace the conditional with it's true branch.
29427 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
29428 (arm_lra_p): Remove.
29430 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
29432 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
29434 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29436 * config/tilegx/mul-tables.c: Move symtab.h include after
29437 coretypes.h include.
29438 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
29439 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
29440 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
29441 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
29442 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
29444 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
29448 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
29450 PR rtl-optimization/64081
29451 * loop-iv.c (def_pred_latch_p): New function.
29452 (latch_dominating_def): Allow specific cases with non-single
29454 (iv_get_reaching_def): Likewise.
29455 (check_complex_exit_p): New function.
29456 (check_simple_exit): Use check_complex_exit_p to allow certain cases
29457 with exits not executing on any iteration.
29459 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29462 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
29463 to set branch cost.
29465 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29468 * i386.c (gate): Check flag_expensive_optimizations and
29470 (ix86_option_override_internal): Drop optimize_size condition
29471 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
29472 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
29473 MASK_PREFER_AVX128.
29474 (ix86_avx256_split_vector_move_misalign,
29475 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
29476 * sse.md (all uses of TARGET_PREFER_AVX128): Add
29477 optimize_insn_for_speed_p check.
29479 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
29481 * config/mips/mips.h (FP_ASM_SPEC): New define.
29482 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
29485 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
29488 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
29489 nullptr for insn when reaching the first insn.
29490 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
29491 (sh_insn_operands_modified_between_p): Add nullptr check.
29492 (sh_find_extending_set_of_reg): Fix log message. Don't accept
29493 sign extending mem load if the insn contains any UNSPEC or
29496 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29498 * params.def (inline-unit-growth): Drop to 15%.
29499 * invoke.texi (inline-unit-growth): Document change.
29501 2015-01-19 Martin Liska <mliska@suse.cz>
29504 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
29505 function for second argument of OBJ_TYPE_REF.
29507 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29510 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
29511 whether function is an alias.
29513 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29515 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
29518 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
29520 PR rtl-optimization/64671
29521 * lra-remat.c (operand_to_remat): Don't consider jump and call
29524 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
29527 * config/rs6000/default64.h: Include rs6000-cpus.def.
29528 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
29529 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
29530 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
29532 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
29534 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
29535 pseudo-op to specify assembler dialect.
29537 2015-01-19 Martin Liska <mliska@suse.cz>
29540 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
29541 Handle safe potentially removed nodes during filtering.
29543 2015-01-19 Martin Liska <mliska@suse.cz>
29545 * doc/extend.texi (no_icf): Add new attribute description.
29546 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
29547 where the pass attempts to merge a function with no_icf attribute.
29549 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29552 * doc/md.texi (ARM Options): Document register constraints.
29554 2015-01-19 Jiong Wang <jiong.wang@arm.com>
29555 Andrew Pinski <apinski@cavium.com>
29558 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
29559 (ashl<mode>3): Don't expand if operands[2] is not constant.
29561 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29564 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
29565 Match xor-and-xor RTL pattern.
29567 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
29569 PR rtl-optimization/64081
29570 * loop-iv.c (def_pred_latch_p): New function.
29571 (latch_dominating_def): Allow specific cases with non-single
29573 (iv_get_reaching_def): Likewise.
29574 (check_complex_exit_p): New function.
29575 (check_simple_exit): Use check_complex_exit_p to allow certain cases
29576 with exits not executing on any iteration.
29578 2015-01-19 Jakub Jelinek <jakub@redhat.com>
29580 * common.opt (fgraphite): Fix a typo.
29582 2015-01-19 Felix Yang <felix.yang@huawei.com>
29584 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
29586 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
29587 uminp, smax_nanp, smin_nanp): New builtins.
29588 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
29589 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
29590 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
29591 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
29592 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
29593 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
29594 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
29595 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
29596 vpminnms_f32): Rewrite using builtin functions.
29598 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
29601 * omp-low.c (offload_symbol_decl): Remove variable.
29602 (get_offload_symbol_decl): Remove function.
29603 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
29604 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
29605 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
29606 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
29607 BUILT_IN_GOACC_UPDATE don't pass it at all.
29609 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
29611 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
29614 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
29616 * ipa-chkp.c (chkp_produce_thunks): Add early param
29617 to split thunks production into two passes. Keep
29618 'always_inline' function bodies after the first pass.
29619 (pass_data_ipa_chkp_early_produce_thunks): New.
29620 (pass_ipa_chkp_early_produce_thunks): New.
29621 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
29622 chkp_produce_thunks signature.
29623 (make_pass_ipa_chkp_early_produce_thunks): New.
29624 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
29625 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
29626 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
29628 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
29630 * cgraph.c (cgraph_node::dump): Dump profile flags.
29632 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
29635 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
29636 reg appear first in the parallel.
29638 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
29640 * ipa-reference.c (set_reference_optimization_summary,
29641 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
29643 (ignore_module_statics): New static var.
29644 (propagate_bits): If ipa-reference is disabled, do not look into local
29646 (analyze_function): Disable analysis when ipa_reference is disabled.
29647 (generate_summary): Do not dump when reference is disabled;
29648 collect vars accessed from functions with ipa-reference disabled.
29649 (get_read_write_all_from_node): When ipa-reference is disabled, use the
29651 (gate): Enable for LTO.
29652 (ignore_edge_p): New function.
29653 (propagate): Skip functions w/o ipa-reference analysis.
29654 * optc-save-gen.awk: Handle optimize_debug correctly.
29655 * opth-gen.awk: Likewise.
29656 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
29657 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
29658 fira-share-save-slots, fira-share-spill-slots,
29659 fmodulo-sched-allow-regmoves, fpartial-inlining,
29660 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
29661 ftracer, ftree-parallelize-loops, fassociative-math,
29662 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
29664 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
29665 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
29667 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
29670 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
29673 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
29675 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
29677 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
29679 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
29680 Remove duplicate option listings.
29682 2015-01-18 Felix Yang <felix.yang@huawei.com>
29684 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
29685 (autofdo_source_profile::get_callsite_total_count,
29686 function_instance::get_function_instance_by_decl,
29687 string_table::get_index, string_table::get_index_by_decl,
29688 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
29689 Fix comment typos. Reformatting and minor code rearrangement.
29691 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
29693 * config/rs6000/rs6000.md (probe_stack): Delete.
29694 (probe_stack_address): New.
29696 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
29698 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
29699 to test for 32-bit ABIs, not !TARGET_POWERPC64.
29701 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
29703 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
29704 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
29705 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
29707 (rs6000_libcall_value): Use the new function.
29709 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
29711 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
29713 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
29715 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
29716 implement a more precise life analysis for it during backward scan.
29718 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
29720 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
29722 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
29724 PR rtl-optimization/52773
29725 * calls.c (emit_library_call_value): When pushing arguments use
29726 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
29727 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
29728 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
29730 2015-01-17 Jeff Law <law@redhat.com>
29732 PR rtl-optimization/32790
29733 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
29734 not ZERO_EXTEND in SET_DESTs.
29736 2015-01-17 Alan Modra <amodra@gmail.com>
29738 * cprop.c (do_local_cprop): Revert last change.
29740 2015-01-16 DJ Delorie <dj@redhat.com>
29741 Nick Clifton <nickc@redhat.com>
29743 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
29744 (addhi3_real): Likewise. Fix [HL+0] syntax.
29745 (subqi3_real): Likewise.
29746 (subhi3_real): Likewise.
29747 (cbranchqi4_real): Likewise. Allow saddr,#imm.
29748 (cbranchhi4_real): Likewise.
29749 (cbranchhi4_real_inverted): Likewise.
29750 (cbranchsi4_real_lt): Likewise.
29751 (cbranchsi4_real_ge): Likewise.
29752 (cbranchsi4_real_ge): Likewise.
29753 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
29754 (sub<mode>3_virt): Likewise.
29755 (cbranchqi4_virt): Likewise.
29756 (cbranchhi4_virt): Likewise.
29757 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
29758 always use '[reg+imm]' even when imm is zero.
29759 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
29760 (rl78_general_operand): New.
29761 (rl78_nonimmediate_operand): New.
29762 (rl78_nonfar_operand): Use them.
29763 (rl78_nonfar_nonimm_operand): Likewise.
29764 (rl78_stack_based_mem): Fix.
29765 * config/rl78/constraints.md (Ibqi): New.
29770 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
29771 (iorqi3): Likewise.
29772 (xorqi3): Likewise.
29773 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
29775 * config/rl78/constrains (Qs8): New constraint.
29776 * config/rl78/rl78.c (rl78_flags_already_set): New function.
29777 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
29778 * config/rl78/rl78-real.md (update_Z): New attribute.
29779 Update patterns to set it.
29780 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
29781 shorter compare and branch sequence can be used.
29782 (cbranchhi4_real): Likewise.
29783 (cbranchhi4_real_inverted): Likewise.
29785 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
29786 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
29788 * config/rl78/rl78.c (rl78_get_name_encoding): New.
29789 (rl78_option_override): Allow -mes0 only if C.
29790 (characterize_address): Support subregs of symbol_refs.
29791 (rl78_addr_space_address_mode): Move. Add __near.
29792 (rl78_far_p): Likewise.
29793 (rl78_addr_space_pointer_mode): Likewise.
29794 (rl78_as_legitimate_address): Likewise.
29795 (rl78_addr_space_subset_p): Likewise.
29796 (rl78_addr_space_convert): Likewise.
29797 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
29798 symbols with -mes0.
29799 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
29801 (rl78_alloc_physical_registers_op1): Change logic to prefer
29802 symbol[BC] addressing.
29803 (frodata_section): New.
29804 (rl78_asm_init_sections): Initialize it.
29805 (rl78_select_section): Put __far readonly symbols in .frodata.
29806 (rl78_make_type_far): New.
29807 (rl78_insert_attributes): Force all readonly symbols to be
29809 (rl78_asm_out_integer): New.
29810 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
29811 * config/rl78/rl78.opt (-mes0): New.
29813 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
29814 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
29815 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
29816 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
29817 (rl78_saddr_p): New.
29818 (rl78_output_aligned_common): New.
29819 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
29820 (rl78_handle_saddr_attribute): New.
29821 (rl78_handle_naked_attribute): New.
29822 (rl78_attribute_table): Add saddr.
29823 (rl78_print_operand_1): Don't print '!' on saddr operands.
29824 (rl78_print_operand_1): Strip encodings.
29826 (rl78_strip_name_encoding): New.
29827 (rl78_attrlist_to_encoding): New.
29828 (rl78_encode_section_info): New.
29829 (rl78_asm_init_sections): New.
29830 (rl78_select_section): New.
29831 (rl78_output_labelref): New.
29832 (rl78_output_aligned_common): New.
29833 (rl78_asm_out_integer): New.
29834 (rl78_asm_ctor_dtor): New.
29835 (rl78_asm_constructor): New.
29836 (rl78_asm_destructor): New.
29838 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
29839 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
29840 (transcode_memory_rtx): Update.
29841 (rl78_expand_epilogue): Use A_REG instead of 0.
29843 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29845 * config/arm/arm-protos.h (struct tune_params): New field
29846 sched_autopref_queue_depth.
29847 * config/arm/arm.c (sched-int.h): Include header.
29848 (arm_first_cycle_multipass_dfa_lookahead_guard,)
29849 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
29850 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
29851 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
29852 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
29853 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
29854 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
29855 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
29856 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
29857 * config/arm/t-arm (arm.o): Update.
29858 * haifa-sched.c (update_insn_after_change): Update.
29859 (rank_for_schedule): Use auto-prefetcher model, if requested.
29860 (autopref_multipass_init): New static function.
29861 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
29862 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
29863 variable for debug dumps.
29864 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
29865 (autopref_multipass_dfa_lookahead_guard): New global function that
29866 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
29867 (init_h_i_d): Update.
29868 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
29869 * sched-int.h (enum autopref_multipass_data_status): New const enum.
29870 (autopref_multipass_data_): Structure for auto-prefetcher data.
29871 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
29872 (struct _haifa_insn_data:autopref_multipass_data): New field.
29873 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
29874 (autopref_multipass_dfa_lookahead_guard): Declare.
29876 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29878 * rtlanal.c (get_base_term): Handle SCRATCH.
29880 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29882 * config/aarch64/aarch64.c
29883 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
29884 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
29886 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
29887 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
29889 2015-01-17 Alan Modra <amodra@gmail.com>
29891 * cprop.c (do_local_cprop): Disallow replacement of fixed
29894 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29897 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
29900 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
29902 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
29903 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
29905 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29907 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
29908 * config/arm/thumb1.md: ... Here.
29910 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
29912 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
29913 TImode for TARGET_32BIT.
29915 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
29917 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
29918 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
29920 (rs6000_abi_word_mode): New function.
29922 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
29924 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
29925 instead of UNITS_PER_WORD to describe the size of stack slots.
29927 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
29929 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
29930 as rs6000_promote_function_mode. Move comment to there.
29931 (rs6000_promote_function_mode): New function.
29933 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
29935 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
29936 -mpowerpc64 is active.
29938 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29940 PR middle-end/64353
29941 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
29944 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
29946 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
29947 introduced in revision 219724.
29949 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29950 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29953 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
29954 destination is not a GP reg.
29955 (*movdi_aarch64): Likewise.
29957 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
29960 * config/rs6000/default64.h: Revert ISA change.
29962 2015-01-16 Richard Biener <rguenther@suse.de>
29964 PR middle-end/64614
29965 * tree-ssa-uninit.c: Include tree-cfg.h.
29966 (MAX_SWITCH_CASES): New define.
29967 (convert_control_dep_chain_into_preds): Handle switch statements.
29968 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
29969 (normalize_one_pred_1): Do not split bit-manipulations.
29972 2015-01-16 Richard Biener <rguenther@suse.de>
29974 PR tree-optimization/64568
29975 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
29976 complex load rewriting for TARGET_MEM_REFs.
29978 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
29980 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
29982 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
29985 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
29987 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
29988 (aarch64_lra_p): Remove.
29990 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29993 * ipa-chkp.h (chkp_instrumentable_p): New.
29994 * ipa-chkp.c: Include tree-inline.h.
29995 (chkp_instrumentable_p): New.
29996 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
29997 Fix processing of not instrumentable functions.
29998 (chkp_versioning): Use chkp_instrumentable_p. Warn about
29999 not instrumentable functions.
30000 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
30001 chkp_instrumentable_p.
30002 * tree-inline.h (copy_forbidden): New.
30003 * tree-inline.c (copy_forbidden): Not static anymore.
30005 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30007 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
30010 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
30012 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
30013 type OP_OUT to OP_INOUT.
30015 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
30017 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
30018 (high x) y) to y if x and y have the same base.
30020 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
30022 * config/arm/cortex-a57.md: New.
30023 * config/aarch64/aarch64.md: Include it.
30024 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
30025 * config/aarch64/aarch64-tune.md: Regenerate.
30027 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
30030 * ccmp.c (expand_ccmp_next): New function.
30031 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
30032 and compare insn sequence.
30033 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
30034 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
30035 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
30036 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
30037 (*ccmp_ior): Changed to ccmp_ior<mode>.
30038 (cmp<mode>): New pattern.
30039 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
30041 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
30043 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
30045 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
30046 _mm256_bsrli_epi128): New.
30047 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
30049 2015-01-15 Jiong Wang <jiong.wang@arm.com>
30051 * expmed.c (store_bit_field_using_insv): Improve warning message.
30052 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
30054 2015-01-15 Jiong Wang <jiong.wang@arm.com>
30056 PR rtl-optimization/64011
30057 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
30058 there is partial overflow.
30060 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30062 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
30064 (nds32_expand_epilogue_v3pop): Likewise.
30065 * config/nds32/nds32.md (sibcall): Define this for sibling call
30067 (sibcall_register): Likewise.
30068 (sibcall_immediate): Likewise.
30069 (sibcall_value): Likewise.
30070 (sibcall_value_register): Likewise.
30071 (sibcall_value_immediate): Likewise.
30072 (sibcall_epilogue): Likewise.
30073 (epilogue): Pass false to indicate this is not a sibcall epilogue.
30074 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
30075 (nds32_expand_epilogue_v3pop): Likewise.
30077 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30079 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
30080 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
30081 (return_internal): New.
30082 (return): Define this named pattern.
30083 (simple_return): Define this named pattern.
30084 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
30085 pattern instead of unspec_volatile_func_return.
30086 (nds32_expand_epilogue_v3pop): Likewise.
30087 (nds32_can_use_return_insn): New function.
30089 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30091 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
30092 * config/nds32/nds32.md (pop25return): New.
30093 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
30094 pop25return pattern.
30096 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30098 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
30099 -mforbid-fp-as-gp, and -mex9 options.
30101 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30103 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
30104 remove -mgp-direct option.
30106 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30108 * doc/invoke.texi (--param early-inlining-insns): Update default value.
30109 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
30111 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30113 * ipa-inline.c (inline_small_functions): Work around hints
30116 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
30119 * doc/invoke.texi (Option Summary): Document new Nios II
30121 (Nios II Options): Likewise.
30122 * config/nios2/nios2.opt: Add -mgpopt= option support.
30123 Modify existing -mgpopt and -mno-gpopt options to be aliases.
30124 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
30125 * config/nios2/nios2.c (nios2_option_override): Adjust
30126 -mgpopt defaulting.
30127 (nios2_in_small_data_p): Return true for explicit small data
30128 sections even with -G0.
30129 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
30132 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30135 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
30137 (inline_call): Fix removal of aliases.
30139 2015-01-15 Jakub Jelinek <jakub@redhat.com>
30141 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
30142 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
30143 * opts.c (common_handle_option): Add -fsanitize=vptr.
30144 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
30145 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
30146 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
30147 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
30148 (ubsan_expand_vptr_ifn): New prototype.
30149 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
30150 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
30151 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
30152 expand_LOOP_VECTORIZED): Make argument nameless, remove
30154 (expand_UBSAN_VPTR): New function.
30155 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
30157 (UBSAN_VPTR): New internal function.
30158 * sanopt.c (tree_map_traits): Renamed to ...
30159 (sanopt_tree_map_traits): ... this.
30160 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
30161 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
30162 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
30163 (maybe_optimize_ubsan_vptr_ifn): New function.
30164 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
30165 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
30167 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
30168 internal calls like pure functions for aliasing, even when they
30169 have other side-effects that prevent making them ECF_PURE.
30170 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
30171 (ubsan_expand_vptr_ifn): New function.
30173 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
30175 PR rtl-optimization/64110
30176 * stmt.c (parse_output_constraint): Process '^' and '$'.
30177 (parse_input_constraint): Ditto.
30178 * lra-constraints.c (process_alt_operands): Process the new
30180 * ira-costs.c (record_reg_classes): Process the new constraint
30182 * genoutput.c (indep_constraints): Add '^' and '$'.
30183 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
30184 * doc/md.texi: Add description of the new constraints.
30186 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
30187 Bernd Schmidt <bernds@codesourcery.com>
30188 Cesar Philippidis <cesar@codesourcery.com>
30189 James Norris <jnorris@codesourcery.com>
30190 Tom de Vries <tom@codesourcery.com>
30191 Ilmir Usmanov <i.usmanov@samsung.com>
30192 Dmitry Bocharnikov <dmitry.b@samsung.com>
30193 Evgeny Gavrin <e.gavrin@samsung.com>
30194 Jakub Jelinek <jakub@redhat.com>
30196 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
30197 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30198 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30199 New function types.
30200 * builtins.c: Include "gomp-constants.h".
30201 (expand_builtin_acc_on_device): New function.
30202 (expand_builtin, is_inexpensive_builtin): Handle
30203 BUILT_IN_ACC_ON_DEVICE.
30204 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
30206 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
30208 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
30209 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
30210 i386/intelmic-offload.h.
30211 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
30212 to libgomp and its dependencies.
30213 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
30214 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
30215 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
30216 * config/ia64/hpux.h (LIB_SPEC): Likewise.
30217 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
30218 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
30219 * doc/generic.texi: Update for OpenACC changes.
30220 * doc/gimple.texi: Likewise.
30221 * doc/invoke.texi: Likewise.
30222 * doc/sourcebuild.texi: Likewise.
30223 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
30224 GF_OMP_FOR_KIND_OACC_LOOP.
30225 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
30226 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
30227 GF_OMP_TARGET_KIND_OACC_UPDATE,
30228 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30230 * gimple.c: Update comments for OpenACC changes.
30231 * gimple.def: Likewise.
30232 * gimple.h: Likewise.
30233 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
30234 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
30235 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
30236 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30237 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
30239 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
30240 * gimplify.c: Include "gomp-constants.h".
30241 Update comments for OpenACC changes.
30242 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
30243 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
30244 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
30245 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
30246 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
30247 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
30248 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
30249 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
30250 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
30252 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
30253 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
30254 OMP_CLAUSE_SET_MAP_KIND.
30255 (gimplify_oacc_cache): New function.
30256 (gimplify_omp_for): Handle OACC_LOOP.
30257 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
30259 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
30260 OACC_EXIT_DATA, OACC_UPDATE.
30261 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
30262 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
30263 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
30264 (gimplify_body): Consider flag_openacc next to flag_openmp.
30265 * lto-streamer-out.c: Include "gomp-constants.h".
30266 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
30267 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
30268 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
30269 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
30270 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
30271 (BUILT_IN_ACC_ON_DEVICE): New builtins.
30272 * omp-low.c: Include "gomp-constants.h".
30273 Update comments for OpenACC changes.
30274 (struct omp_context): Add reduction_map, gwv_below, gwv_this
30276 (extract_omp_for_data, use_pointer_for_field, install_var_field)
30277 (new_omp_context, delete_omp_context, scan_sharing_clauses)
30278 (create_omp_child_function, scan_omp_for, scan_omp_target)
30279 (check_omp_nesting_restrictions, lower_reduction_clauses)
30280 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
30281 Update for OpenACC changes.
30282 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
30283 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
30284 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
30285 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
30286 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
30287 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
30289 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
30290 Handle GF_OMP_FOR_KIND_OACC_LOOP.
30291 (expand_omp_target, lower_omp_target): Handle
30292 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
30293 GF_OMP_TARGET_KIND_OACC_UPDATE,
30294 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
30295 GF_OMP_TARGET_KIND_OACC_DATA.
30296 (pass_expand_omp::execute, execute_lower_omp)
30297 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
30299 (offload_symbol_decl): New variable.
30300 (oacc_get_reduction_array_id, oacc_max_threads)
30301 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
30302 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
30303 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
30304 (oacc_gimple_assign, oacc_initialize_reduction_data)
30305 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
30307 (is_targetreg_ctx): Remove function.
30308 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
30309 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
30310 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
30311 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
30312 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
30313 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
30314 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
30315 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
30316 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
30317 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
30318 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
30319 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
30320 * tree-core.h: Update comments for OpenACC changes.
30321 (enum omp_clause_map_kind): Remove.
30322 (struct tree_omp_clause): Change type of map_kind member from enum
30323 omp_clause_map_kind to unsigned char.
30324 * tree-inline.c: Update comments for OpenACC changes.
30325 * tree-nested.c: Likewise. Include "gomp-constants.h".
30326 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
30327 (convert_tramp_reference_stmt, convert_gimple_call): Update for
30328 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
30329 OMP_CLAUSE_SET_MAP_KIND.
30330 * tree-pretty-print.c: Include "gomp-constants.h".
30331 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
30332 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
30333 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
30334 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
30335 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
30336 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
30337 instead of OMP_CLAUSE_MAP_*.
30338 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
30339 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
30340 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
30341 * tree-streamer-in.c: Include "gomp-constants.h".
30342 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
30343 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
30344 * tree-streamer-out.c: Include "gomp-constants.h".
30345 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
30347 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
30348 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
30349 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
30350 * tree.c (omp_clause_num_ops): Update accordingly.
30351 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
30353 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
30354 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
30355 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
30356 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
30357 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
30358 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
30359 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
30360 (OMP_CLAUSE_SET_MAP_KIND): New macro.
30361 * varpool.c (varpool_node::get_create): Consider flag_openacc next
30363 * config/i386/intelmic-offload.h: New file.
30364 * config/nvptx/offload.h: Likewise.
30366 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30368 * explow.h: Remove duplicate contents.
30369 * dojump.h: Likewise.
30371 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
30373 * arm.c (arm_xgene_tune): Add default initializer for instruction
30376 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30380 * ipa.c (symbol_table::remove_unreachable_nodes):
30381 Do not put abstract origins into boundary.
30383 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
30385 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
30386 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
30388 2015-01-15 Steve Ellcey <sellcey@mips.com>
30390 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
30391 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
30392 builtins.def, and chkp-builtins.def.
30394 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
30396 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
30399 2015-01-15 Richard Biener <rguenther@suse.de>
30401 PR tree-optimization/61743
30402 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
30403 information on PHIs for some simple cases.
30405 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30407 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
30409 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
30410 * config/arm/arm-cores.def (xgene1): New entry.
30411 * config/arm/arm-tables.opt: Regenerate.
30412 * config/arm/arm-tune.md: Regenerate.
30413 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
30415 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
30417 * tree-if-conv.c: Include hash-map.h.
30418 (aggressive_if_conv): New variable.
30419 (fold_build_cond_expr): Add simplification of non-zero condition.
30420 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
30421 destination block is not always executed.
30422 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
30423 than two predecessors if AGGRESSIVE_IF_CONV is true.
30424 (if_convertible_stmt_p): Fix commentary.
30425 (all_preds_critical_p): New function.
30426 (has_pred_critical_p): New function.
30427 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
30428 BB can have more than two predecessors and all incoming edges can be
30430 (predicate_bbs): Skip predication for loop exit block, use build2_loc
30431 to compute predicate for true edge.
30432 (find_phi_replacement_condition): Delete this function.
30433 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
30434 Allow interchange PHI arguments if EXTENDED is false.
30435 Change check that block containing reduction statement candidate
30436 is predecessor of phi-block since phi may have more than two arguments.
30437 (phi_args_hash_traits): New helper structure.
30438 (struct phi_args_hash_traits): New type.
30439 (phi_args_hash_traits::hash): New function.
30440 (phi_args_hash_traits::equal_keys): New function.
30441 (gen_phi_arg_condition): New function.
30442 (predicate_scalar_phi): Add handling of phi nodes with more than two
30443 arguments, delete COND and TRUE_BB arguments, insert body of
30444 find_phi_replacement_condition to predicate ordinary phi nodes.
30445 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
30446 delete call of find_phi_replacement_condition and invoke
30447 predicate_scalar_phi with two arguments.
30448 (insert_gimplified_predicates): Add assert that non-predicated block
30449 don't have statements to insert.
30450 (ifcvt_split_critical_edges): New function.
30451 (ifcvt_split_def_stmt): Likewise.
30452 (ifcvt_walk_pattern_tree): Likewise.
30453 (stmt_is_root_of_bool_pattern): Likewise.
30454 (ifcvt_repair_bool_pattern): Likewise.
30455 (ifcvt_local_dce): Likewise.
30456 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
30457 is copy of inner or outer loop force_vectorize field, invoke
30458 ifcvt_split_critical_edges, ifcvt_local_dce and
30459 ifcvt_repair_bool_pattern for aggressive if-conversion.
30461 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
30463 * config/aarch64/aarch64.md: Include xgene1.md.
30464 * config/aarch64/xgene1.md: New file.
30466 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30468 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
30469 xgene1 (APM XGene-1) core definition.
30470 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
30471 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
30472 * doc/invoke.texi: Document -mcpu=xgene1.
30474 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30476 * dojump.h: New header file.
30477 * explow.h: Likewise.
30478 * expr.h: Remove includes.
30479 Move expmed.c prototypes to expmed.h.
30480 Move dojump.c prototypes to dojump.h.
30481 Move alias.c prototypes to alias.h.
30482 Move explow.c prototypes to explow.h.
30483 Move calls.c prototypes to calls.h.
30484 Move emit-rtl.c prototypes to emit-rtl.h.
30485 Move varasm.c prototypes to varasm.h.
30486 Move stmt.c prototypes to stmt.h.
30487 (saved_pending_stack_adjust): Move to dojump.h.
30488 (adjust_address): Move to explow.h.
30489 (adjust_address_nv): Move to emit-rtl.h.
30490 (adjust_bitfield_address): Likewise.
30491 (adjust_bitfield_address_size): Likewise.
30492 (adjust_bitfield_address_nv): Likewise.
30493 (adjust_automodify_address_nv): Likewise.
30494 * explow.c (expr_size): Move to expr.c.
30495 (int_expr_size): Likewise.
30496 (tree_expr_size): Likewise.
30497 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30498 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
30499 * genemit.c (main): Generate includes statistics.h, real.h,
30500 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
30502 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
30503 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
30504 explow.h, emit-rtl.h, stmt.h.
30505 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
30506 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
30507 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
30508 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
30509 emit-rtl.h, varasm.h, stmt.h.
30510 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
30511 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
30512 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
30513 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
30514 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30515 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
30516 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
30517 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
30518 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
30519 tm.h tree.h varasm.h vec.h wide-int.h.
30520 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30521 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
30522 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
30523 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
30524 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
30525 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
30526 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
30527 * loop-iv.c: Likewise.
30528 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
30529 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
30530 statistics.h stmt.h tree.h varasm.h wide-int.h.
30531 * lra-constraints.c: Likewise.
30532 * lra-eliminations.c: Likewise.
30533 * lra-lives.c: Likewise.
30534 * lra-remat.c: Likewise.
30535 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30536 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
30537 statistics.h stmt.h tree.h varasm.h wide-int.h.
30538 * hw-doloop.c: Likewise.
30539 * ira-color.c: Likewise.
30540 * ira-emit.c: Likewise.
30541 * loop-doloop.c: Likewise.
30542 * loop-invariant.c: Likewise.
30543 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30544 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
30545 statistics.h stmt.h tree.h varasm.h wide-int.h.
30546 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
30547 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
30548 statistics.h stmt.h tree.h varasm.h wide-int.h.
30549 * combine-stack-adj.c: Likewise.
30552 * ifcvt.c: Likewise.
30553 * ira-costs.c: Likewise.
30554 * jump.c: Likewise.
30555 * lra-coalesce.c: Likewise.
30556 * lra-spills.c: Likewise.
30557 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30558 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
30559 stmt.h varasm.h wide-int.h.
30560 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30561 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
30563 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
30564 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
30565 statistics.h stmt.h varasm.h wide-int.h.
30566 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
30567 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
30568 varasm.h wide-int.h.
30569 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
30570 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
30571 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
30572 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
30573 statistics.h stmt.h.
30574 * config/tilepro/tilepro.c: Likewise.
30575 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
30576 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
30577 * config/pdp11/pdp11.c: Likewise.
30578 * config/xtensa/xtensa.c: Likewise.
30579 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
30580 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
30582 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30583 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
30584 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
30585 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30586 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
30587 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
30588 * rtl-chkp.c: Likewise.
30589 * tree-chkp-opt.c: Likewise.
30590 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
30591 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
30592 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
30593 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30594 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
30595 statistics.h stmt.h.
30596 * tree-vect-data-refs.c: Likewise.
30597 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
30598 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30599 rtl.h statistics.h stmt.h varasm.h.
30600 * internal-fn.c: Likewise.
30601 * ipa-icf-gimple.c: Likewise.
30602 * lto-section-out.c: Likewise.
30603 * tree-data-ref.c: Likewise.
30604 * tree-nested.c: Likewise.
30605 * tree-outof-ssa.c: Likewise.
30606 * tree-predcom.c: Likewise.
30607 * tree-pretty-print.c: Likewise.
30608 * tree-scalar-evolution.c: Likewise.
30609 * tree-ssa-strlen.c: Likewise.
30610 * tree-vect-loop.c: Likewise.
30611 * tree-vect-patterns.c: Likewise.
30612 * tree-vect-slp.c: Likewise.
30613 * tree-vect-stmts.c: Likewise.
30614 * tsan.c: Likewise.
30615 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30616 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
30618 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
30619 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30620 statistics.h stmt.h varasm.h.
30621 * loop-unroll.c: Likewise.
30622 * ubsan.c: Likewise.
30623 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
30624 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
30626 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30627 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
30628 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
30629 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
30630 statistics.h stmt.h.
30631 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
30632 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
30633 statistics.h stmt.h varasm.h.
30634 * gimple-match-head.c: Likewise.
30635 * lto-cgraph.c: Likewise.
30636 * lto-section-in.c: Likewise.
30637 * lto-streamer-in.c: Likewise.
30638 * lto-streamer-out.c: Likewise.
30639 * tree-affine.c: Likewise.
30640 * tree-cfg.c: Likewise.
30641 * tree-cfgcleanup.c: Likewise.
30642 * tree-if-conv.c: Likewise.
30643 * tree-into-ssa.c: Likewise.
30644 * tree-ssa-alias.c: Likewise.
30645 * tree-ssa-copyrename.c: Likewise.
30646 * tree-ssa-dse.c: Likewise.
30647 * tree-ssa-forwprop.c: Likewise.
30648 * tree-ssa-live.c: Likewise.
30649 * tree-ssa-math-opts.c: Likewise.
30650 * tree-ssa-pre.c: Likewise.
30651 * tree-ssa-sccvn.c: Likewise.
30652 * tree-tailcall.c: Likewise.
30653 * tree-vect-generic.c: Likewise.
30654 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30655 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
30656 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30657 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
30658 * varasm.c: Likewise.
30659 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30660 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
30662 * init-regs.c: Likewise.
30664 * omp-low.c: Likewise.
30665 * stack-ptr-mod.c: Likewise.
30666 * tree-ssa-reassoc.c: Likewise.
30667 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30668 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
30670 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30671 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
30672 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30673 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
30674 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30675 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
30676 * tree-ssa-phiopt.c: Likewise.
30677 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30678 fixed-value.h hashtab.h real.h statistics.h stmt.h.
30679 * config/fr30/fr30.c: Likewise.
30680 * config/frv/frv.c: Likewise.
30681 * expr.c: Likewise.
30682 * final.c: Likewise.
30683 * optabs.c: Likewise.
30684 * passes.c: Likewise.
30685 * simplify-rtx.c: Likewise.
30686 * stmt.c: Likewise.
30687 * toplev.c: Likewise.
30688 * var-tracking.c: Likewise.
30689 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30690 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30691 * lower-subreg.c: Likewise.
30692 * postreload-gcse.c: Likewise.
30694 * reginfo.c: Likewise.
30695 * store-motion.c: Likewise.
30696 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30697 fixed-value.h hashtab.h real.h stmt.h varasm.h.
30698 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30699 fixed-value.h hashtab.h statistics.h stmt.h.
30700 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30701 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
30702 * except.c: Likewise.
30703 * explow.c: Likewise.
30704 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30705 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
30707 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30708 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
30709 * tree-ssa-structalias.c: Likewise.
30710 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30711 fixed-value.h insn-config.h real.h statistics.h.
30712 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30713 fixed-value.h insn-config.h real.h statistics.h stmt.h.
30714 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30715 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
30716 * cfgbuild.c: Likewise.
30717 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30718 fixed-value.h real.h rtl.h statistics.h stmt.h.
30719 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30720 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
30721 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30722 fixed-value.h real.h statistics.h stmt.h.
30723 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30724 fixed-value.h real.h statistics.h stmt.h varasm.h.
30725 * cprop.c: Likewise.
30726 * modulo-sched.c: Likewise.
30727 * postreload.c: Likewise.
30728 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
30729 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
30730 statistics.h stmt.h varasm.h.
30731 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
30732 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30733 rtl.h statistics.h stmt.h varasm.h.
30734 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
30735 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
30737 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
30738 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
30740 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
30741 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
30743 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
30744 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30745 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30746 function.h real.h statistics.h stmt.h varasm.h.
30747 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30748 insn-config.h real.h statistics.h stmt.h.
30749 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30750 statistics.h stmt.h.
30751 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
30752 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
30753 statistics.h stmt.h varasm.h.
30754 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
30755 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
30756 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30757 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
30758 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
30759 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
30760 statistics.h stmt.h varasm.h.
30761 * ipa-polymorphic-call.c: Likewise.
30762 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
30763 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30764 statistics.h stmt.h.
30765 * config/c6x/c6x.c: Likewise.
30766 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
30767 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30768 statistics.h stmt.h varasm.h.
30769 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
30770 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
30772 * ipa-split.c: Likewise.
30773 * tree-eh.c: Likewise.
30774 * tree-ssa-dce.c: Likewise.
30775 * tree-ssa-loop-niter.c: Likewise.
30776 * tree-vrp.c: Likewise.
30777 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
30778 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
30780 * config/nds32/nds32-fp-as-gp.c: Likewise.
30781 * config/nds32/nds32-intrinsic.c: Likewise.
30782 * config/nds32/nds32-isr.c: Likewise.
30783 * config/nds32/nds32-md-auxiliary.c: Likewise.
30784 * config/nds32/nds32-memory-manipulation.c: Likewise.
30785 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
30786 * config/nds32/nds32-predicates.c: Likewise.
30787 * config/nds32/nds32.c: Likewise.
30788 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
30789 fixed-value.h hashtab.h real.h statistics.h.
30790 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
30791 fixed-value.h hashtab.h real.h statistics.h stmt.h.
30792 * config/arm/arm.c: Likewise.
30793 * config/avr/avr.c: Likewise.
30794 * config/bfin/bfin.c: Likewise.
30795 * config/h8300/h8300.c: Likewise.
30796 * config/i386/i386.c: Likewise.
30797 * config/ia64/ia64.c: Likewise.
30798 * config/iq2000/iq2000.c: Likewise.
30799 * config/m32c/m32c.c: Likewise.
30800 * config/m32r/m32r.c: Likewise.
30801 * config/m68k/m68k.c: Likewise.
30802 * config/mcore/mcore.c: Likewise.
30803 * config/mep/mep.c: Likewise.
30804 * config/mips/mips.c: Likewise.
30805 * config/mn10300/mn10300.c: Likewise.
30806 * config/moxie/moxie.c: Likewise.
30807 * config/pa/pa.c: Likewise.
30808 * config/rl78/rl78.c: Likewise.
30809 * config/rx/rx.c: Likewise.
30810 * config/s390/s390.c: Likewise.
30811 * config/sh/sh.c: Likewise.
30812 * config/sparc/sparc.c: Likewise.
30813 * config/spu/spu.c: Likewise.
30814 * config/stormy16/stormy16.c: Likewise.
30815 * config/v850/v850.c: Likewise.
30816 * config/vax/vax.c: Likewise.
30817 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
30818 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30819 * config/msp430/msp430.c: Likewise.
30820 * predict.c: Likewise.
30821 * value-prof.c: Likewise.
30822 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
30823 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
30824 * config/microblaze/microblaze.c: Likewise.
30825 * config/nios2/nios2.c: Likewise.
30826 * config/rs6000/rs6000.c: Likewise.
30827 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30828 insn-config.h real.h rtl.h statistics.h stmt.h.
30829 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30830 insn-config.h real.h statistics.h stmt.h.
30831 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
30832 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
30833 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
30834 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
30835 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
30836 fixed-value.h real.h statistics.h stmt.h.
30837 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
30838 fixed-value.h statistics.h stmt.h.
30839 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
30842 2015-01-15 Jakub Jelinek <jakub@redhat.com>
30844 * gengtype.c (create_user_defined_type): Workaround
30845 -Wmaybe-uninitialized false positives.
30846 * cse.c (fold_rtx): Likewise.
30847 * loop-invariant.c (gain_for_invariant): Likewise.
30849 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
30851 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
30852 set the memory attributes in all cases but clear MEM_EXPR if need be.
30854 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
30856 PR tree-optimization/64434
30857 * cfgexpand.c (reorder_operands): New function.
30858 (expand_gimple_basic_block): Insert call of reorder_operands if
30861 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
30863 * config/mips/micromips.md (*swp): Remove explicit parallel.
30864 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
30865 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
30866 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
30867 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
30868 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
30869 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
30870 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
30871 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
30872 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
30873 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
30874 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
30875 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
30876 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
30877 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
30878 (mips_wrdsp): Likewise.
30879 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
30881 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
30882 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
30883 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
30884 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
30885 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
30886 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
30887 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
30888 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
30889 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
30891 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
30893 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
30894 (mips_print_operand): Support 'y' to print exact log2 in decimal
30896 * config/mips/mips.h (ISA_HAS_LSA): New define.
30897 (ISA_HAS_DLSA): Likewise.
30898 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
30899 * config/mips/predicates.md (const_immlsa_operand): New predicate.
30901 2015-01-15 Martin Liska <mliska@suse.cz>
30904 * optc-save-gen.awk: Add support for array types.
30906 2015-01-15 Richard Biener <rguenther@suse.de>
30908 PR middle-end/64365
30909 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
30910 for MEM_REF access functions with the same base can never partially
30913 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
30915 * common.opt: New option -fstack-protector-explicit.
30916 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
30917 (stack_protect_decl_phase): Handle stack_protect attribute for
30918 explicit stack protection requests.
30919 (expand_used_vars): Similarly.
30920 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
30921 * doc/extend.texi: Add documentation for "stack_protect" attribute.
30922 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
30924 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
30927 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
30929 (sh_extending_set_of_reg): New struct.
30930 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
30931 sh_remove_reg_dead_or_unused_notes): New Declarations.
30932 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
30933 sh_find_extending_set_of_reg, sh_split_tst_subregs,
30934 sh_extending_set_of_reg::use_as_extended_reg): New functions.
30935 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
30936 convert to insn_and_split and use new function sh_split_tst_subregs.
30938 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
30940 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
30942 (Optimization Options): Move -fuse-ld documentation to...
30943 (Link Options): ...here.
30945 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
30947 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
30949 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
30950 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
30951 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
30952 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
30953 instead of ZR for the memory operand of LL/SC.
30954 (compare_and_swap_12, sync_add<mode>): Likewise.
30955 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
30956 (sync_new_<optab>_12, sync_nand_12): Likewise.
30957 (sync_old_nand_12, sync_new_nand_12): Likewise.
30958 (sync_sub<mode>, sync_old_add<mode>): Likewise.
30959 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
30960 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
30961 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
30962 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
30963 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
30964 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
30965 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
30966 * doc/md.texi (ZC): Update description.
30968 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
30970 * builtins.c (expand_builtin_atomic_exchange): Remove error when
30971 memory model is CONSUME.
30972 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
30973 expand_builtin_atomic_store): Change invalid memory model errors to
30975 (expand_builtin_atomic_clear): Change invalid model errors to warnings
30976 and issue warning for CONSUME.
30978 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
30980 * lto-cgraph: Update function comments for
30981 lto_symtab_encoder_encode_*.
30983 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
30985 * Makefile.in (site.exp): Do not set ENABLE_LTO.
30987 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
30989 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
30990 * lto-cgraph.c (select_what_to_stream): Remove argument, use
30991 lto_stream_offload_p instead.
30992 * lto-streamer.h (select_what_to_stream): Remove argument.
30993 * passes.c (ipa_write_summaries): Likewise.
30994 * tree-pass.h (ipa_write_summaries): Likewise.
30996 2015-01-14 Richard Biener <rguenther@suse.de>
30998 PR tree-optimization/59354
30999 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
31000 groups larger than the slp group size as having gaps.
31002 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
31004 PR middle-end/59448
31005 * builtins.c (get_memmodel): Promote consume to acquire always.
31007 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31010 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
31013 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31016 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
31018 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
31019 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
31020 AVX512VBMI, as it implies AVX512BW.
31022 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31025 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
31026 (vec_unpacks_hi_v16sf): Ditto.
31028 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31030 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
31033 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31035 * doc/invoke.texi (mapcs): Mention deprecation.
31036 (mapcs-frame): Likewise.
31038 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
31041 * config/arm/arm.c (callee_saved_reg_p): Define.
31042 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
31043 register is callee saved instead of !call_used_regs[reg].
31044 (thumb1_compute_save_reg_mask): Likewise.
31046 2015-01-14 Hale Wang <hale.wang@arm.com>
31048 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
31051 2015-01-14 Richard Biener <rguenther@suse.de>
31054 * tree-inline.c (insert_debug_decl_map): Check destination
31055 function MAY_HAVE_DEBUG_STMTS.
31056 (insert_init_debug_bind): Likewise.
31057 (insert_init_stmt): Remove redundant check.
31058 (remap_gimple_stmt): Drop debug stmts if the destination
31059 function has var-tracking assignments disabled.
31061 2015-01-14 Martin Liska <mliska@suse.cz>
31063 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
31064 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
31066 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31069 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
31070 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
31072 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31074 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
31075 level from an ARCH; do not inject the default.
31076 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
31077 MIPS_ISA_LEVEL_SPEC.
31078 (MIPS_ISA_NAN2008_SPEC): Update comment.
31079 (BASE_DRIVER_SELF_SPECS): Likewise.
31080 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
31081 MIPS_DEFAULT_ISA_LEVEL_SPEC.
31082 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
31083 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
31084 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
31086 2015-01-14 Richard Biener <rguenther@suse.de>
31088 PR tree-optimization/64493
31089 PR tree-optimization/64495
31090 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
31091 assign the proper vectorized PHI to the inner loop exit PHIs.
31093 2015-01-14 Joey Ye <joey.ye@arm.com>
31095 * config/arm/arm.c (arm_compute_save_reg_mask):
31096 Do not save lr in case of tail call.
31097 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
31099 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
31101 * tree-vrp.c (check_array_ref): Emit more warnings
31102 for warn_array_bounds >= 2.
31103 * common.opt: New option -Warray-bounds=.
31104 * doc/invoke.texi: Document -Warray-bounds=.
31106 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
31108 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
31109 (mforbid-fp-as-gp): Remove.
31111 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
31112 (nds32_symbol_load_store_p): Remove.
31113 (nds32_fp_as_gp_check_available): Clean up implementation.
31114 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
31116 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
31117 fp-as-gp and ex9 cases.
31119 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31121 * tree-profile.c (init_ic_make_global_vars): Drop workaround
31122 for bintuils bug 14342.
31123 (init_ic_make_global_vars): Likewise.
31124 (gimple_init_edge_profiler): Likewise.
31125 (gimple_gen_ic_func_profiler): Likewise.
31127 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31129 * ipa-inline.c (inline_small_functions): Swap the operands in
31132 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31135 * ipa-inline-analysis.c (node_growth_cache): Remove.
31136 (initialize_growth_caches): Do not initialize it.
31137 (free_growth_caches): Do not free it.
31138 (do_estimate_growth): Rename to ...
31139 (estimate_growth): ... this one; drop growth cache code.
31140 (growth_likely_positive): Always go the heuristics way.
31141 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
31142 (reset_edge_caches): Do not reset node growth.
31143 (heap_edge_removal_hook): Do not maintain cache.
31144 (inline_small_functions): Likewise; strenghten sanity check.
31145 (ipa_inline): Do not maintain caches.
31146 * ipa-inline.h (node_growth_cache): Remove.
31147 (do_estimate_growth): Remove to ...
31148 (estimate_growth): this one; remove inline version.
31149 (reset_node_growth_cache): Remove.
31151 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31154 * ipa-inline.c (inline_small_functions): Update callee keys after
31155 resolving speculation
31156 (inline_small_functions): Always check monotonicity of the queue.
31158 2015-01-13 Marek Polacek <polacek@redhat.com>
31160 PR middle-end/64391
31161 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
31163 2015-01-13 Jakub Jelinek <jakub@redhat.com>
31165 PR rtl-optimization/64286
31166 * ree.c (combine_reaching_defs): Move part of comment earlier,
31167 remove !SCALAR_INT_MODE_P check.
31168 (add_removable_extension): Don't add vector mode
31169 extensions if all uses of the source register aren't the same
31172 2015-01-13 Renlin Li <renlin.li@arm.com>
31174 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
31175 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
31177 2015-01-13 Martin Liska <mliska@suse.cz>
31179 * ipa-icf.c (sem_function::equals_private): Call new functions
31180 cl_target_option_print_diff and cl_optimization_print_diff.
31181 * optc-save-gen.awk (cl_target_option_print_diff): New function.
31182 (cl_optimization_print_diff): Likewise.
31183 * opth-gen.awk: Likewise.
31185 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
31187 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
31188 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
31189 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
31190 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
31191 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
31192 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
31194 2015-01-13 Andrew Pinski <apinski@cavium.com>
31196 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
31197 instead of src mode.
31199 2015-01-13 Richard Biener <rguenther@suse.de>
31202 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
31205 2015-01-13 Andrew Pinski <apinski@cavium.com>
31207 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
31209 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
31211 2015-01-13 Jakub Jelinek <jakub@redhat.com>
31213 PR middle-end/63974
31214 * cfgexpand.c (expand_computed_goto): Don't call
31215 convert_memory_address here.
31217 2015-01-13 Richard Biener <rguenther@suse.de>
31219 PR tree-optimization/64406
31220 * tree-loop-distibution.c (pass_loop_distribution::execute):
31221 Reset the SCEV hashtable if we distributed anything.
31223 2015-01-13 Richard Biener <rguenther@suse.de>
31225 PR tree-optimization/64404
31226 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
31227 SLP types for CSEd loads.
31229 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31231 PR tree-optimization/64436
31232 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
31233 merge of two symbolic numbers for a bitwise OR to ...
31234 (perform_symbolic_merge): This. Also fix computation of the range and
31235 end of the symbolic number corresponding to the result of a bitwise OR.
31237 2015-01-13 Richard Biener <rguenther@suse.de>
31239 PR tree-optimization/64568
31240 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
31241 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
31243 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31245 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
31246 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
31248 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31250 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
31251 target-specific symbol_ref flag.
31252 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
31253 resides in rodata section.
31254 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
31255 (nds32_encode_section_info): New function.
31257 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31259 * config/nds32/nds32.md (call): Use pseudo instruction bal which
31260 clobbers TA_REGNUM if large code model is specified.
31261 (call_register): Likewise.
31262 (call_immediate): Likewise.
31263 (call_value): Likewise.
31264 (call_value_register): Likewise.
31265 (call_value_immediate): Likewise.
31267 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31269 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
31270 (TARGET_CMODEL_MEDIUM): New macro.
31271 (TARGET_CMODEL_LARGE): New macro.
31272 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
31273 code model setting in assembly code.
31275 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31277 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31278 Remove MASK_GP_DIRECT flag.
31279 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
31280 one of the multilib default options.
31281 * config/nds32/nds32.opt (mgp-direct): Remove.
31282 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
31283 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
31285 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31287 * config/nds32/nds32.opt (mcmodel): Add new option.
31288 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
31289 to describe code model.
31291 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
31294 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
31296 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
31298 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
31299 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
31300 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
31301 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
31302 __builtin_sh_set_fpscr.
31304 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
31306 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
31307 after a funtion name just to indicate it is a function.
31308 ([-fsanitize-undefined-trap-on-error]): Likewise.
31309 ([-fdbg-cnt=]): Likewise.
31310 ([-mmemcpy]): Likewise.
31311 ([-mflush-func]): Likewise.
31312 ([-msynci]): Likewise.
31314 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
31316 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
31319 2015-01-12 Jakub Jelinek <jakub@redhat.com>
31321 PR tree-optimization/64563
31322 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
31323 instead of != VR_VARYING.
31326 * config/i386/i386.c (ix86_expand_prologue): Add
31327 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
31329 PR tree-optimization/64454
31330 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
31331 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
31332 for signed or [0, op1 - 1] for unsigned modulo.
31333 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
31334 even if op1 does not satisfy integer_pow2p.
31337 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
31339 2015-01-12 Jeff Law <law@redhat.com>
31342 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
31343 (trunchiqi2, truncsihi2): Similarly.
31345 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
31346 rather than calling F.
31348 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
31350 * tsan.c (instrument_expr): Use force_gimple_operand.
31351 Use may_be_nonaddressable_p instead of is_gimple_addressable.
31353 2015-01-12 Richard Biener <rguenther@suse.de>
31355 PR tree-optimization/64530
31356 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
31359 2015-01-12 Richard Biener <rguenther@suse.de>
31361 PR middle-end/64357
31362 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
31365 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31367 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
31368 Cortex-A17 tuning parameters.
31369 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
31371 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31373 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
31374 * config/arm/arm.c (arm_macro_fusion_p): New function.
31375 (arm_macro_fusion_pair_p): Likewise.
31376 (TARGET_SCHED_MACRO_FUSION_P): Define.
31377 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
31378 (ARM_FUSE_NOTHING): Likewise.
31379 (ARM_FUSE_MOVW_MOVT): Likewise.
31380 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
31381 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
31382 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
31383 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
31384 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
31385 arm_cortex_a5_tune): Specify fuseable_ops value.
31387 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
31390 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
31391 test for PIE with copy reloc.
31392 * configure: Regenerated.
31394 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31396 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
31398 (arm_tls_descseq_addr): Likewise.
31399 (arm_gen_movmemqi): Likewise.
31400 (arm_expand_epilogue_apcs_frame): Likewise.
31401 (arm_expand_epilogue): Likewise.
31402 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
31405 2015-01-12 Martin Liska <mliska@suse.cz>
31408 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
31409 volatility for correct operands.
31411 2015-01-12 Martin Liska <mliska@suse.cz>
31413 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
31414 indication that a function is not leaf.
31415 (sem_function::compare_polymorphic_p): Likewise.
31417 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31419 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
31420 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
31421 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
31422 fold-const.h, tree-check.h.
31424 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
31428 * ipa-inline.c (compute_uninlined_call_time,
31429 compute_inlined_call_time): Use counts for extra precision when
31431 (big_speedup_p): Fix formating.
31432 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
31433 (relative_time_benefit): Remove.
31434 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
31435 merge guessed and read profile paths.
31436 (inline_small_functions): Count only !optimize_size functions into
31437 initial size; be more lax about sanity check when profile is used;
31438 be sure to update inlined function profile when profile is read.
31440 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
31443 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
31444 cost when edge becomes direct.
31445 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
31446 is resolved or when introducing new speculation.
31448 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
31452 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
31453 '||' to fix typo issue.
31455 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
31456 accept and return NULL.
31458 2015-01-12 Martin Liska <mliska@suse.cz>
31460 * cgraph.c (cgraph_edge::remove_callee): Move function to header
31461 file for being inlined.
31462 (cgraph_set_edge_callee): Delete.
31463 (cgraph_edge::redirect_callee): Move function to header file
31465 (cgraph_edge::make_direct): Use new function.
31466 (cgraph_edge::dump_edge_flags): New function created from
31467 static dump_edge_flags function.
31468 (cgraph_node::dump): Use new function.
31469 (cgraph_edge::verify_count_and_frequency): New function created
31470 from verify_edge_count_and_frequency.
31471 (cgraph_edge::verify_corresponds_to_fndecl): New function created
31472 from verify_edge_corresponds_to_fndecl.
31473 (verify_edge_corresponds_to_fndecl): Delete.
31474 (cgraph_node::verify_node): Use new function.
31475 * cgraph.h (cgraph_edge::set_callee): New function.
31476 (cgraph_edge::dump_edge_flags): Likewise.
31477 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
31479 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
31481 * ipa-utils.c (estimate_function_body_sizes): Do not
31482 free node params when called late with early=true.
31484 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
31486 * doc/md.texi (Instruction Patterns): Rewrite text for
31488 (Example): Likewise.
31490 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
31492 * doc/invoke.texi (Option Summary): Break long lines.
31493 [(-fdiagnostics-color)]: Put long literal in @smallexample
31495 [(-fsanitize-recover)]: Likewise.
31496 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
31497 [(-ffast-math)]: Likewise.
31498 [(--param max-inline-insns-recursive)]: Likewise.
31499 [(--param max-inline-recursive-depth)]: Likewise.
31500 [(-mno-text-section-literals)]: Likewise.
31502 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
31504 * doc/install.texi: Update for libgomp being renamed from "GNU
31505 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
31507 * doc/sourcebuild.texi: Likewise.
31509 2015-01-10 Anthony Green <green@moxielogic.com>
31511 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
31512 mul.x availability for moxiebox configuration.
31514 2015-01-09 Anthony Green <green@moxielogic.com>
31516 * config/moxie/moxie.md: Tabify assembly output.
31518 2015-01-09 Anthony Green <green@moxielogic.com>
31520 * config/moxie/moxie.md (CC_REG): Correct register definition.
31522 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
31524 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
31525 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
31528 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
31530 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
31532 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
31533 Jakub Jelinek <jakub@redhat.com>
31535 PR middle-end/64412
31536 * lto-streamer.h (lto_stream_offload_p): New declaration.
31537 * lto-streamer.c (lto_stream_offload_p): New variable.
31538 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
31539 at the same time as section_name_prefix.
31540 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
31541 if lto_stream_offload_p.
31542 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
31543 stream TREE_TARGET_OPTION if lto_stream_offload_p.
31544 (write_ts_function_decl_tree_pointers): Don't
31545 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
31546 * tree-streamer-in.c (unpack_value_fields): Don't stream
31547 TREE_TARGET_OPTION in if ACCEL_COMPILER.
31548 (lto_input_ts_function_decl_tree_pointers): Don't stream
31549 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
31550 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
31551 instead of section_name_prefix string comparisons.
31553 2015-01-09 Jakub Jelinek <jakub@redhat.com>
31555 PR rtl-optimization/64536
31556 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
31559 2015-01-09 Michael Collison <michael.collison@linaro.org>
31561 PR tree-optimization/64322
31562 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
31563 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
31565 2015-01-09 Tom de Vries <tom@codesourcery.com>
31567 PR rtl-optimization/64539
31568 * regcprop.c (kill_clobbered_values): Factor out of ...
31569 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
31570 instead of note_stores with kill_clobbered_value.
31572 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
31574 * ginclude/unwind-arm-common.h: Revert previous commit.
31576 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
31578 * config.gcc (arm*-*-freebsd*): New configuration.
31579 * config/arm/freebsd.h: New file.
31580 * config.host: Add extra components for arm*-*-freebsd*.
31581 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
31582 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
31584 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
31586 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
31588 * config/rs6000/t-rtems: Add e6500 multilibs.
31590 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
31592 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
31595 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
31597 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
31598 MULTILIB_EXCEPTIONS.
31600 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
31602 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
31603 MULTILIB_EXCEPTIONS.
31605 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
31607 * config/arm/t-rtems-eabi: Rename to...
31608 * config/arm/t-rtems: ...this.
31609 * config/arm/rtems-eabi.h: Rename to...
31610 * config/arm/rtems.h: ...this.
31611 * config.gcc (arm*-*-rtems*): Reflect changes above.
31613 2015-01-09 Richard Biener <rguenther@suse.de>
31615 PR tree-optimization/64410
31616 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
31618 (execute_update_addresses_taken): Deal with that.
31619 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
31620 loads/stores for complex variables.
31622 2015-01-09 Martin Liska <mliska@suse.cz>
31624 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
31626 (func_checker::compare_memory_operand): New function.
31627 (func_checker::compare_operand): Split case to newly
31629 (func_checker::compare_cst_or_decl): New function.
31630 (func_checker::compare_gimple_call): Identify
31632 (func_checker::compare_gimple_assign): Likewise.
31633 * ipa-icf-gimple.h: New function.
31635 2015-01-09 Martin Liska <mliska@suse.cz>
31638 * sreal.c (sreal::dump): Change unsigned format to signed for
31640 (sreal::to_double): Replace exp2 with scalbln.
31642 2015-01-09 Martin Liska <mliska@suse.cz>
31644 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
31645 * ipa-icf.c (sem_function::equals_private): Add support for target and
31646 (sem_item_optimizer::merge_classes): Remove redundant function
31647 optimization flags comparison.
31648 * tree.h (target_opts_for_fn): New function.
31650 2015-01-09 Tom de Vries <tom@codesourcery.com>
31652 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
31654 2015-01-09 Kito Cheng <kito@0xlab.org>
31656 PR rtl-optimization/64348
31657 * lra-constraints.c (split_reg): Fix caller-save store/restore
31658 instruction generation.
31660 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
31662 PR gcov-profile/61790
31663 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
31664 long long. Fallback to int64_t if host doesn't have long long and
31665 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
31667 2015-01-08 Jakub Jelinek <jakub@redhat.com>
31669 PR tree-optimization/63989
31670 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
31671 from 1000 to 10000.
31672 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
31673 (get_stridx): If we don't have a record for certain SSA_NAME,
31674 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
31675 constant offset, call get_stridx_plus_constant.
31676 (get_stridx_plus_constant): New function.
31677 (zero_length_string): Don't use get_stridx here.
31680 PR middle-end/64388
31681 * dse.c (struct insn_info): Mention frame_read set also
31682 before reload for tail calls on some targets.
31683 (scan_insn): Revert 2014-12-22 change. Set frame_read
31684 also before reload for tail calls if
31685 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
31686 instead of add_non_frame_wild_read for non-const/memset
31687 tail calls after reload.
31689 2015-01-08 Jason Merrill <jason@redhat.com>
31691 * ubsan.c (do_ubsan_in_current_function): New.
31692 (pass_ubsan::gate): Use it.
31693 * ubsan.h: Declare it.
31694 * convert.c (convert_to_integer): Use it.
31696 2015-01-08 Jakub Jelinek <jakub@redhat.com>
31699 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
31700 compare_code when it is unconditionally overwritten afterwards.
31701 Use ix86_reverse_condition instead of reverse_condition. Don't
31702 change code if *reverse_condition* returned UNKNOWN and don't
31703 swap ct/cf and negate diff in that case.
31705 2015-01-08 Mike Stump <mikestump@comcast.net>
31707 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
31708 (pass_tsan_O0::gate): Likewise.
31709 * extend.texi (Function Attributes): Add no_sanitize_thread
31712 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
31714 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
31715 for registering builtins.
31716 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
31717 add -fopenmp to the argv_obstack used when invoking
31718 compile_for_target.
31720 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
31721 add "-m32" or "-m64" to argv_obstack.
31722 (generate_host_descr_file): Likewise, when invoking host_compiler.
31723 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
31726 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
31728 * config/sh/sh-mem.cc: Use constant as second operand when emitting
31731 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
31734 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
31735 constant load if constant operand fits into I08.
31737 2015-01-08 Jakub Jelinek <jakub@redhat.com>
31740 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
31741 and TREE_THIS_VOLATILE for MEM_REFs.
31742 (build5_stat): Fix up initialization of TREE_READONLY and
31743 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
31745 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
31748 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
31749 of r for the second alternative of the destination operand.
31751 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
31754 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
31756 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
31758 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
31760 ([-fivar-visibility], [-fvisibility]): Likewise.
31762 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
31764 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
31765 the file where @code, @command, etc is more appropriate.
31767 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
31769 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
31770 of -mrecip= documentation.
31772 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31775 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
31776 correct reload handler if -m32 -mpowerpc64 is used.
31778 2015-01-06 Tom de Vries <tom@codesourcery.com>
31780 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
31782 2015-01-08 Christian Bruel <christian.bruel@st.com>
31785 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
31787 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
31789 PR tree-optimization/63259
31790 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
31791 if optab exists for 16bit byteswap.
31793 2015-01-06 Jakub Jelinek <jakub@redhat.com>
31795 * opts.c (common_handle_option): Add support for
31796 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
31797 * doc/invoke.texi: Document -fno-sanitize=all,
31798 -f{,no-}sanitize-recover=all. Document that
31799 -fsanitize=float-cast-overflow is not enabled
31800 by -fsanitize=undefined. Fix up documentation
31801 of -f{,no-}sanitize-recover.
31803 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
31805 * config.gcc: Add Visium support.
31806 * configure.ac: Likewise.
31807 * configure: Regenerate.
31808 * doc/extend.texi (interrupt attribute): Add Visium.
31809 * doc/invoke.texi: Document Visium options.
31810 * doc/install.texi: Document Visium target.
31811 * doc/md.texi: Document Visium constraints.
31812 * common/config/visium: New directory.
31813 * config/visium: Likewise.
31815 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
31817 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
31818 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
31820 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
31822 * combine.c (combine_validate_cost): Do not count the cost of a
31823 split I2 twice. Do not display it twice in the dump, either.
31825 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
31827 Revert parts of r219199.
31828 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
31830 ([-Wtraditional]): Restore markup on <limits.h>.
31832 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
31835 * doc/invoke.texi: Document -Wsuggest-override.
31837 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
31839 PR rtl-optimization/64287
31840 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
31841 (process_options): Disable flag_ipa_ra if profiling.
31843 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
31845 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
31847 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
31849 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
31850 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
31851 put under #if TARGET_LOOPS guard.
31853 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
31855 * config/i386/i386.c (output_387_binary_op): Use std::swap.
31857 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
31859 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
31860 * rtl.h (refers_to_regno_p): Add overload.
31862 * bt-load.c: Likewise.
31863 * combine.c: Likewise.
31864 * df-scan.c: Likewise.
31865 * sched-deps.c: Likewise.
31866 * config/s390/s390.c: Likewise.
31867 * config/m32r/m32r.c: Likewise.
31868 * config/rs6000/spe.md: Likewise.
31869 * config/rs6000/rs6000.c: Likewise.
31870 * config/pa/pa.c: Likewise.
31871 * config/stormy16/stormy16.c: Likewise.
31872 * config/cris/cris.c: Likewise.
31873 * config/arc/arc.md: Likewise.
31874 * config/arc/arc.c: Likewise.
31875 * config/sh/sh.md: Likewise.
31876 * config/sh/sh.c: Likewise.
31877 * config/frv/frv.c: Likewise.
31879 2015-01-05 Jakub Jelinek <jakub@redhat.com>
31882 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
31883 call as cleanup of the whole body.
31884 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
31885 * tsan.c (replace_func_exit): New function.
31886 (instrument_func_exit): Moved earlier.
31887 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
31888 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
31890 (tsan_pass): Don't call instrument_func_exit.
31891 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
31892 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
31896 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
31897 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
31898 it to libubsan handler instead of EXPR. Fold comparisons earlier,
31899 if the result is integer_zerop, return NULL_TREE.
31900 * convert.c (convert_to_integer): Pass expr as ARG.
31902 PR tree-optimization/64465
31903 * tree-inline.c (redirect_all_calls): During inlining
31904 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
31905 changed the stmt to a non-throwing call.
31907 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
31909 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
31910 etc markup throughout the file.
31912 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
31914 Enable experimental TSAN support for Ada.
31915 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
31917 2015-01-05 Jakub Jelinek <jakub@redhat.com>
31919 PR tree-optimization/64494
31920 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
31921 clear SSA_NAME_ANTI_RANGE_P flag.
31923 2015-01-05 Marek Polacek <polacek@redhat.com>
31925 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
31927 2015-01-05 Jakub Jelinek <jakub@redhat.com>
31929 Update copyright years.
31931 * gcc.c (process_command): Update copyright notice dates.
31932 * gcov-dump.c: Ditto.
31934 * doc/cpp.texi: Bump @copying's copyright year.
31935 * doc/cppinternals.texi: Ditto.
31936 * doc/gcc.texi: Ditto.
31937 * doc/gccint.texi: Ditto.
31938 * doc/gcov.texi: Ditto.
31939 * doc/install.texi: Ditto.
31940 * doc/invoke.texi: Ditto.
31942 * auto-profile.c, auto-profile.h: Fix up Copyright line.
31944 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
31946 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
31948 ([-fvtable-verify], [-fvtv-debug]): Likewise.
31949 ([-Wabi]): Likewise.
31950 ([-fmessage-length]): Likewise.
31951 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
31952 ([-Wno-discarded-qualifiers]): Likewise.
31953 ([-Wnodiscarded-array-qualifiers]): Likewise.
31954 ([-Wno-virtual-move-assign]): Likewise.
31955 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
31956 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
31957 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
31958 ([-fsanitize-undefined-trap-on-error]): Likewise.
31959 ([-floop-interchange]): Likewise.
31960 ([-ftree-coalesce-inlined-vars]): Likewise.
31961 ([-fvect-cost-model]): Likewise.
31962 ([-flto]): Likewise.
31963 ([--param]): Likewise.
31964 (Spec Files): Likewise.
31965 ([-mstrict-align]): Likewise.
31966 ([-mfix-cortex-a53-835769]): Likewise.
31967 ([-march], [-mtune]): Likewise.
31968 ([-mpic-register]): Likewise.
31969 ([-munaligned-access]): Likewise.
31970 ([-msp8]): Likewise.
31971 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
31972 (AVR Built-in Macros): Likewise.
31973 ([-mpreferred-stack-boundary]): Likewise.
31974 ([-mtune-crtl]): Likewise.
31975 ([-mashf]): Likewise.
31976 ([-mmcu=]): Likewise.
31977 ([-minrt]): Likewise.
31978 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
31979 ([-mupper-regs]): Likewise.
31980 ([-matomic-model]): Likewise.
31981 ([-mdiv]): Likewise.
31982 ([-mzdcbranch]): Likewise.
31983 ([-mdisable-callt]): Likewise.
31984 ([-msoft-float]): Likewise.
31985 ([-m8byte-align]): Likewise.
31986 ([-fstack-reuse]): Likewise.
31988 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
31990 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
31991 Fix markup, light copy-editing.
31992 ([-fauto-profile]): Rewrite to fix formatting and content
31995 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
31997 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
31998 Copy-edit description.
31999 ([-fisolate-erroneous-paths-attribute]): Likewise.
32000 * common.opt (fisolate-erroneous-paths-dereference):
32001 Copy-edit description.
32002 (fisolate-erroneous-paths-attribute): Likewise.
32004 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32006 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
32009 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32011 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
32012 ([-fvtv-debug]): Likewise.
32013 ([-Wc++-compat]): Likewise.
32014 ([-Wc++11-compat]): Likewise.
32015 ([-Wc++14-compat]): Likewise.
32016 ([-Wno-sized-deallocation]): Likewise.
32017 ([-femit-class-debug-always]): Likewise.
32018 ([-femit-struct-debug-detailed]): Likewise.
32019 ([-fno-keep-inline-dllexport]): Likewise.
32020 ([-fira-algorithm]): Likewise.
32021 ([-fira-region]): Likewise.
32022 ([-flra-remat]): Likewise.
32023 ([-fipa-ra]): Likewise.
32024 ([-fhoist-adjacent-loads]): Likewise.
32025 ([-fisolate-erroneous-paths-dereference]): Likewise.
32026 ([-fisolate-erroneous-paths-attribute]): Likewise.
32027 ([-ftree-switch-conversion]): Likewise.
32028 ([-ftree-tail-merge]): Likewise.
32029 ([-ftree-loop-if-convert]): Likewise.
32030 ([-ftree-loop-if-convert-stores]): Likewise.
32031 ([-ftree-loop-distribution]): Likewise.
32032 ([-ftree-loop-distribute-patterns]): Likewise.
32033 ([-flto-compression-level]): Likewise.
32034 ([-flto-report]): Likewise.
32035 ([-flto-report-wpa]): Likewise.
32036 ([-fuse-linker-plugin]): Likewise.
32037 ([-mfix-cortex-a53-835769]): Likewise.
32038 ([-mno-fix-cortex-a53-835769]): Likewise.
32039 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
32040 explicit listing; add a note to the discussion indicating they
32041 exist. Reorder table to group similar options. Add missing
32042 @opindex entries. Add @need commands throughout the table to
32043 allow it to be split across multiple pages.
32044 ([-m8bit-idiv]): Fix @opindex.
32045 ([-mavx256-split-unaligned-load]): Likewise.
32046 ([-mavx256-split-unaligned-store]): Likewise.
32047 ([-mstack-protector-guard]): Likewise.
32048 ([-mcpu=]): Likewise.
32049 ([-mcpu]): Likewise.
32050 ([-mpointer-size=]): Likewise.
32052 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
32054 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
32055 instead of `m' constraint. Likewise for unnamed movb comparison
32056 patterns using reg_before_reload_operand predicate.
32057 * config/pa/predicates.md (reg_before_reload_operand): Tighten
32058 predicate to reject register index and LO_SUM DLT memory forms
32061 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
32063 * doc/invoke.texi (Option Summary): Fix spelling of
32064 -fdevirtualize-at-ltrans.
32065 ([-fdevirtualize]): Fix markup.
32066 ([-fdevirtualize-speculatively]): Fix typo.
32067 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
32068 implementor-speaky.
32069 * common.opt (fdevirtualize-at-ltrans): Likewise.
32070 * ipa-devirt.c: Fix typos in comments throughout the file.
32071 (ipa_devirt): Fix typos in format strings for dump output.
32073 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
32075 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
32076 discussion of defaults, light copy-editing.
32078 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
32080 * tsan.c (instrument_expr): corrected previous checkin.
32082 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
32084 Instrument bit field and unaligned accesses for TSAN.
32085 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
32086 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
32087 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
32088 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
32089 unaligned memory regions.
32091 2015-01-01 Anthony Green <green@moxielogic.com>
32093 * config/moxie/predicates.md (moxie_general_movsrc_operand):
32094 Restrict move source register offsets to 16 bits.
32096 Copyright (C) 2015 Free Software Foundation, Inc.
32098 Copying and distribution of this file, with or without modification,
32099 are permitted in any medium without royalty provided the copyright
32100 notice and this notice are preserved.