1 2015-10-01 Marek Polacek <polacek@redhat.com>
3 PR tree-optimization/67769
4 * tree-ssa-phiopt.c (conditional_replacement): Call
5 reset_flow_sensitive_info_in_bb.
6 (minmax_replacement): Likewise.
7 (abs_replacement): Likewise.
9 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
11 * builtins.c: Don't include gomp-constants.h.
12 (fold_builtin_1): Don't fold acc_on_device here.
13 * gimple-fold.c: Include gomp-constants.h.
14 (gimple_fold_builtin_acc_on_device): New.
15 (gimple_fold_builtin): Call it.
17 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
19 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for
21 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
23 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
25 * config/arm/aarch-common-protos.h
26 (aarch_accumulator_forwarding): New.
27 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
28 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
29 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
30 * config/arm/cortex-a53.md: Rewrite.
32 2015-10-01 Richard Biener <rguenther@suse.de>
34 * gimple-match.h (mprts_hook): Declare.
35 * gimple-match.head.c (mprts_hook): Define.
36 (maybe_push_res_to_seq): Use new hook.
37 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
38 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
39 (vn_ssa_aux::has_constants): Remove.
40 * tree-ssa-sccvn.c: Include gimple-match.h.
41 (VN_INFO_GET): Assert we don't re-use SSA names.
42 (vn_get_expr_for): Remove.
43 (expr_has_constants): Likewise.
44 (stmt_has_constants): Likewise.
45 (simplify_binary_expression): Likewise.
46 (simplify_unary_expression): Likewise.
47 (vn_lookup_simplify_result): New hook.
49 (visit_reference_op_call): Likewise.
50 (visit_phi): Likewise.
51 (visit_use): Likewise.
52 (process_scc): Likewise.
53 (init_scc_vn): Likewise.
54 (visit_reference_op_load): Likewise. Use match-and-simplify and
55 a gimple seq for inserted expressions.
56 (try_to_simplify): Remove GENERIC stmt combining code.
57 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
58 * tree-ssa-pre.c (eliminate_insert): Adjust.
59 (eliminate_dom_walker::before_dom_children): Likewise.
61 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
63 * doc/invoke.texi (Optimization Options): Add
64 -freorder-blocks-algorithm=.
65 (Optimize Options) <-O>: Add -freorder-blocks.
66 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
67 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
68 <-freorder-blocks>: Also enabled at levels -O and -Os.
69 <-freorder-blocks-algorithm=>: Document new option.
71 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
73 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
74 with flag_reorder_blocks_algorithm.
75 * common.opt (freorder-blocks-algorithm=): New flag.
76 (reorder_blocks_algorithm): New enum.
77 * flag-types.h (reorder_blocks_algorithm): New enum.
78 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
79 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
81 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
83 * bb-reorder.c: Add intro comment.
84 (reorder_basic_blocks_software_trace_cache): Print a header to
86 (edge_order): New function.
87 (reorder_basic_blocks_simple): New function.
88 (reorder_basic_blocks): Choose between the STC and the simple
89 algorithms (always choose the former).
91 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
93 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
94 function, factored out from ...
95 (reorder_basic_blocks): ... here.
97 2015-10-01 Tom de Vries <tom@codesourcery.com>
99 * tree-cfg.c (dump_function_to_file): Dump function attributes using
100 __attribute__(()) string. Move dumping of function attributes to before
103 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
106 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
107 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
108 based on gold linker version.
109 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
110 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
111 * configure, config.in: Regenerate.
113 2015-10-01 Alan Modra <amodra@gmail.com>
115 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
116 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
117 (rs6000_output_mi_thunk): Likewise.
119 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
121 * config/nvptx/mkoffload.c (process): Change offload data format.
123 2015-09-30 Jeff Law <law@redhat.com>
125 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
126 with constant conditions.
127 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
128 (remove_ctrl_stmt_and_useless_edges): No longer static.
129 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
130 (remove_ctrl_stmt_and_useless_edges): Likewise.
132 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
133 Cesar Philippidis <cesar@codesourcery.com>
135 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
136 (TARGET_GOACC_VALIDATE_DIMS): Override.
137 * target.def (TARGET_GOACC): New target hook prefix.
138 (validate_dims): New hook.
139 * targhooks.h (default_goacc_validate_dims): New.
140 * omp-low.c (oacc_validate_dims): New.
141 (execute_oacc_device_lower): New.
142 (default_goacc_validate_dims): New.
143 (pass_data_oacc_device_lower): New.
144 (pass_oacc_device_lower): New pass.
145 (make_pass_oacc_device_lower): New.
146 * tree-pass.h (make_pass_oacc_device_lower): Declare.
147 * passes.def (pass_oacc_device_lower): Add it.
148 * doc/tm.texi: Rebuilt.
149 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
150 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
152 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
154 PR rtl-optimization/67037
155 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
157 2015-09-30 Bernd Schmidt <bernds@redhat.com>
159 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
160 * passes.c: Include tree-ssanames.h.
161 (execute_function_todo): Flush the pending free SSA_NAMEs after
162 eliminating unreachable basic blocks.
163 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
164 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
165 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
166 (flush_ssanames_freelist): New function.
167 (release_ssaname_fn): Put released names on the queue.
168 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
169 * tree-ssanames.h (flush_ssanames_freelist): Declare.
171 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
173 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
174 (generate_target_descr_file, generate_target_offloadend_file)
175 (generate_host_descr_file, prepare_target_image, main): Pass it
177 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
178 (compile_native, main): Pass it on.
179 * lto-wrapper.c (compile_offload_image): Likewise.
181 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
182 Ilya Verbin <ilya.verbin@intel.com>
183 Andrey Turetskiy <andrey.turetskiy@intel.com>
185 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
186 (prepare_target_image, main): Refactor argv building to use
189 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
191 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
192 * config/spu/spu.c (spu_expand_atomic_op): New function.
193 * config/spu/spu.md (AINT): New mode iterator.
194 (ATOMIC): New code iterator.
195 (atomic_name, atomic_pred): New code predicates.
196 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
197 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
198 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
199 "atomic_<atomic_name>_fetch<mode>"): Likewise.
201 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
203 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
205 (scalar_chain::convert_reg): Likewise.
207 2015-09-30 Richard Biener <rguenther@suse.de>
209 * builtins.c: Add comment that no new simplifications shouldd
212 2015-09-30 Marek Polacek <polacek@redhat.com>
214 PR tree-optimization/67690
215 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
216 reset_flow_sensitive_info_in_bb.
217 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
218 * tree-ssanames.c: Include "gimple-iterator.h".
219 (reset_flow_sensitive_info_in_bb): New function.
220 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
222 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
224 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
225 variable, replacing it with...
226 (offload_abi): ... this new variable. Adjust all users.
227 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
229 2015-09-30 Matthias Klose <doko@ubuntu.com>
231 * configure.ac: Remove extraneous ;;.
232 * configure: Regenerate.
234 2015-09-29 James Bowman <james.bowman@ftdichip.com>
236 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
237 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
238 predicate, disallow register for operand 2.
240 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
242 * graphite-dependences.c (scop_get_dependences): Moved in down
243 in order to be visible to its caller.
244 * graphite-poly.h: Removed compute_deps, and extend_schedule.
246 2015-09-29 Sebastian Pop <s.pop@samsung.com>
247 Aditya Kumar <aditya.k7@samsung.com>
249 PR tree-optimization/67754
250 * graphite-optimize-isl.c (optimize_isl): Call
251 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
253 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
255 * builtins.c (expand_builtin_acc_on_device): Delete.
256 (expand_builtin): Don't call it.
257 (fold_builtin_1): Fold acc_on_device.
259 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
261 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
262 (ix86_nsaved_sseregs): Likewise.
264 2015-09-29 Jeff Law <law@redhat.com>
266 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
267 computation of unused value.
269 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
270 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
271 inline macro expansion.
273 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
275 * config/sh/sh.c (gen_shl_and): Fix undefined left shift
277 (gen_shl_sext): Likewise.
278 * config/sh/sh.md (divsi3): Likewise.
279 (imm->ext_dest_operand splitter): Likewise.
281 2015-09-29 Sebastian Pop <s.pop@samsung.com>
282 Aditya Kumar <aditya.k7@samsung.com>
284 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
285 (nb_data_writes_in_bb): Remove.
287 (split_reduction_stmt): Remove.
288 (is_reduction_operation_p): Remove.
289 (phi_contains_arg): Remove.
290 (follow_ssa_with_commutative_ops): Remove.
291 (detect_commutative_reduction_arg): Remove.
292 (detect_commutative_reduction_assign): Remove.
293 (follow_inital_value_to_phi): Remove.
294 (edge_initial_value_for_loop_phi): Remove.
295 (initial_value_for_loop_phi): Remove.
296 (used_outside_reduction): Remove.
297 (detect_commutative_reduction): Remove.
298 (translate_scalar_reduction_to_array_for_stmt): Remove.
299 (remove_phi): Remove.
300 (dr_indices_valid_in_loop): Remove.
301 (close_phi_written_to_memory): Remove.
302 (translate_scalar_reduction_to_array): Remove.
303 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
304 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
305 (rewrite_commutative_reductions_out_of_ssa): Remove.
306 (build_poly_scop): Remove call to
307 rewrite_commutative_reductions_out_of_ssa.
309 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
311 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
312 Add new insn types for vector load and store pairs.
313 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
314 types "neon_ldp{,_q}".
315 * config/arm/cortex-a57.md (neon_load_c): Add insn types
317 (neon_store_complex): Add insn types "neon_stp{,_q}".
318 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
321 2015-09-29 Jeff Law <law@redhat.com>
323 * config/rx/constraints.md (Int08): Fix undefined left shift
325 (Sint08, Sint16, Sint24): Likewise.
326 * config/rx/rx.c (rx_get_stack_layout): Likewise.
328 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
331 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
332 left shift behaviour.
333 * config/msp430/constraints.md ('L' constraint): Similarly.
334 ('Ys' constraint): Similarly.
336 2015-09-29 Richard Biener <rguenther@suse.de>
338 PR tree-optimization/67170
339 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
340 the translate function pointer parameter to get the
341 bool whether to disambiguate only by reference.
342 (walk_non_aliased_vuses): Likewise.
343 * tree-ssa-alias.c (maybe_skip_until): Adjust.
344 (get_continuation_for_phi_1): Likewise.
345 (get_continuation_for_phi): Likewise.
346 (walk_non_aliased_vuses): Likewise.
347 * tree-ssa-sccvn.c (const_parms): New bitmap.
348 (vn_reference_lookup_3): Adjust for interface change.
349 Disambiguate parameters pointing to readonly memory.
350 (free_scc_vn): Free const_parms.
351 (run_scc_vn): Initialize const_parms from a fn spec attribute.
353 2015-09-29 Richard Biener <rguenther@suse.de>
355 PR tree-optimization/67741
356 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
357 builtin calls with correct signature.
359 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
362 * config/i386/i386.c: Include dbgcnt.h.
363 (has_non_address_hard_reg): New.
364 (convertible_comparison_p): New.
365 (scalar_to_vector_candidate_p): New.
366 (remove_non_convertible_regs): New.
368 (scalar_chain::scalar_chain): New.
369 (scalar_chain::~scalar_chain): New.
370 (scalar_chain::add_to_queue): New.
371 (scalar_chain::mark_dual_mode_def): New.
372 (scalar_chain::analyze_register_chain): New.
373 (scalar_chain::add_insn): New.
374 (scalar_chain::build): New.
375 (scalar_chain::compute_convert_gain): New.
376 (scalar_chain::replace_with_subreg): New.
377 (scalar_chain::replace_with_subreg_in_insn): New.
378 (scalar_chain::emit_conversion_insns): New.
379 (scalar_chain::make_vector_copies): New.
380 (scalar_chain::convert_reg): New.
381 (scalar_chain::convert_op): New.
382 (scalar_chain::convert_insn): New.
383 (scalar_chain::convert): New.
384 (convert_scalars_to_vector): New.
385 (pass_data_stv): New.
387 (make_pass_stv): New.
388 (ix86_option_override): Created and register stv pass.
389 (flag_opts): Add -mstv.
390 (ix86_option_override_internal): Likewise.
391 * config/i386/i386.md (SWIM1248x): New.
392 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
393 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
394 (*anddi3_doubleword): New.
395 (*zext<mode>_doubleword): New.
396 (*zextsi_doubleword): New.
397 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
398 (*<code>di3_doubleword): New.
399 * config/i386/i386.opt (mstv): New.
400 * dbgcnt.def (stv_conversion): New.
402 2015-09-29 Tom de Vries <tom@codesourcery.com>
404 * tree-cfg.c (dump_function_to_file): Dump function attributes.
406 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
409 * config/sh/sh.c (sh_override_options_after_change): New.
410 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
411 (sh_option_override): Move align_loops, align_jumps and
412 align_functions handling into sh_override_options_after_change.
414 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
416 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
417 (nvptx_record_offload_symbol): Record function execution geometry.
418 * config/nvptx/mkoffload.c (process): Include launch geometry in
420 * omp-low.c (oacc_launch_pack): New.
421 (replace_oacc_fn_attrib): New.
422 (set_oacc_fn_attrib): New.
423 (get_oacc_fn_attrib): New.
424 (expand_omp_target): Create keyed varargs for GOACC_parallel call
426 * omp-low.h (get_oacc_fn_attrib): Declare.
427 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
428 (DEF_FUNCTION_TYPE_VAR_11): Delete.
429 * tree.h (OMP_CLAUSE_EXPR): New.
430 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
432 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
433 Sebastian Pop <s.pop@samsung.com>
435 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
437 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
438 Sebastian Pop <s.pop@samsung.com>
440 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
441 * graphite-scop-detection.c (struct sese_l): New type.
442 (get_entry_bb): API for getting entry bb of SESE.
443 (get_exit_bb): API for getting exit bb of SESE.
444 (class debug_printer): New type. Simple printer in debug mode.
445 (trivially_empty_bb_p): New. Return true when BB is empty or
446 contains only debug instructions.
447 (graphite_can_represent_expr): Call scalar_evoution_in_region
448 instead of analyze_scalar_evolution. Pass in scop instead of only
450 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
452 (stmt_simple_for_scop_p): Same.
453 (harmful_stmt_in_bb): Same.
454 (graphite_can_represent_loop): Deleted.
455 (struct scopdet_info): Deleted.
456 (scopdet_basic_block_info): Deleted.
457 (build_scops_1): Deleted.
458 (bb_in_sd_region): Deleted.
459 (find_single_entry_edge): Deleted.
460 (find_single_exit_edge): Deleted.
461 (create_single_entry_edge): Deleted.
462 (sd_region_without_exit): Deleted.
463 (create_single_exit_edge): Deleted.
464 (unmark_exit_edges): Deleted.
465 (mark_exit_edges): Deleted.
466 (create_sese_edges): Deleted.
467 (build_graphite_scops): Deleted.
468 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
469 (build_scops): Use the new scop_builder to build scops.
470 (dot_all_scops_1): Use the new pretty printer. Print loop father
472 (loop_body_is_valid_scop): New. Return true if loop body is a
474 (class scop_builder): New. Builds SCoPs for polyhedral
476 (scop_builder): New constructor.
477 (static sese_l invalid_sese): sese_l with invalid edges.
478 (get_sese): Get an sese (from a loop) if possible, invalid_sese
480 (get_nearest_dom_with_single_entry): Get nearest dominator of a
481 basic_block with single entry. Return NULL if we get to the
482 beginning of a function.
483 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
484 a basic_block with single exit. Return NULL if we get to the
485 beginning of a function.
486 (print_sese): Pretty-print SESE.
487 (merge_sese): Merge two SESEs if possible and return the new SESE.
488 (build_scop_depth): Start building the SCoP within a loop nest.
489 (build_scop_breadth): Start building the SCoP at a single loop
490 depth. Merge adjacent SESEs if valid.
491 (can_represent_loop_1): Returns true if Graphite can represent
492 loop inside SCoP. Helper for can_represent_loop.
493 (can_represent_loop): Returns true if Graphite can represent LOOP
494 and all its nested loops in SCoP.
495 (loop_is_valid_scop): Returns true if LOOP and all its nests
496 constitute a valid SCoP.
497 (region_has_one_loop): Returns true of a region has only one loop.
498 (add_scop): Add SCoP to the list of valid scops. Removes an
499 already existing scop if it intersects with or subsumed by this one.
500 (harmful_stmt_in_region): Returns true if SCoP has any statment
501 which cannot be represented by Graphite.
502 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
503 (remove_subscops): Remove any SCoP from the list of already found
504 SCoPs, if subsumed by S1.
505 (intersects): Return true if region bounded by SCoPs S1 and S2
507 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
508 * graphite.c (print_graphite_scop_statistics):
509 (print_graphite_statistics): Print SCoP info while debugging.
510 (graphite_initialize): Early exit in case number of loops in a
511 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
512 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
514 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
515 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
516 (recompute_all_dominators): Recalculate POST_DOMINATORS.
517 * tree-cfg.c (print_loops): Print the function name while printing
520 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
521 Sebastian Pop <s.pop@samsung.com>
523 PR tree-optimization/67700
524 * graphite-sese-to-poly.c (parameter_index_in_region): Call
525 invariant_in_sese_p_rec.
526 (extract_affine): Same.
527 (rewrite_cross_bb_scalar_deps): Call update_ssa.
528 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
529 * sese.h (invariant_in_sese_p_rec): Declare.
531 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
533 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
535 2015-09-28 Jiong Wang <jiong.wang@arm.com>
538 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
539 Jiong Wang <jiong.wang@arm.com>
541 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
542 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
543 (REG_CLASS_NAMES): Likewise.
544 (REG_CLASS_CONTENTS): Likewise.
545 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
546 (aarch64_register_move_cost): Likewise.
547 (aarch64_load_symref_appropriately): Invoke the new added pattern if
549 * config/aarch64/constraints.md (Uc0): New constraint.
551 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
553 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
555 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
557 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
558 SECTION_EXCLUDE in XO mapping class.
560 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
563 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
564 and handle ne and eq codes.
565 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
566 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
567 CONST_INT_P. Use reverse_condition.
568 (sh_split_treg_set_expr): Likewise.
570 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
572 * config/arm/types.md (type): Add rotate_imm.
573 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
575 (*rorsi3_insn_uxtw): Likewise.
576 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
577 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
578 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
580 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
582 PR rtl-optimization/67481
583 * ifcvt.c (contains_ccmode_rtx_p): New function.
584 (insn_valid_noce_process_p): Use it.
586 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
588 PR rtl-optimization/67456
589 PR rtl-optimization/67464
590 PR rtl-optimization/67465
591 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
592 move in the mode of x. Handle combination of complex and simple
593 block pairs as well as the case when one is empty.
595 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
597 * doc/gimple.texi: Update references to gimple_statement_base.
598 * gdbhooks.py: Likewise.
599 * gimple.h: Likewise.
601 2015-09-28 Daniel Cederman <cederman@gaisler.com>
603 * config/sparc/driver-sparc.c: map LEON to leon3
605 2015-09-28 Daniel Cederman <cederman@gaisler.com>
607 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
608 and make it inverse to change default
609 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
611 * doc/invoke.texi: Document change of default
613 2015-09-28 Daniel Cederman <cederman@gaisler.com>
615 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
616 true on %f0 for a target without FPU.
617 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
619 (untyped_return): Do not load %f0 for a target without FPU.
621 2015-09-28 Andrew Pinski <apinski@cavium.com>
623 * config/aarch64/aarch64.md (prefetch):
624 Change the predicate of operand 0 to register_operand.
626 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
628 * config/i386/predicates.md (register_sse4nonimm_operand): New
630 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
631 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
632 Use register_sse4nonimm_operand as operand 0 predicate.
633 (*vec_extractv8hi_sse2): Remove insn pattern.
634 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
635 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
637 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
638 Kaz Kojima <kkojima@gcc.gnu.org>
641 * config/sh/sh-protos.h (sh_lra_p): Declare.
642 * config/sh/sh.c (sh_lra_p): Make non-static.
643 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
644 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
645 Expand into addsi3_scr if operands[2] if needed.
646 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
647 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
648 (addsi3_scr, *addsi3): New insn_and_split patterns.
650 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
652 PR rtl-optimization/64164
653 PR tree-optimization/67312
657 * cfgexpand.c (parm_in_stack_slot_p): Remove.
658 (ssa_default_def_partition): Remove.
659 (get_rtl_for_parm_ssa_default_def): Remove.
660 (set_rtl): Check that RTL assignments match expectations.
661 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
662 default def location for params and results. Record SSA names
663 or types in REG and MEM attrs, respectively.
665 (expand_one_ssa_partition): Drop logic that assigned MEMs with
666 unassigned addresses.
667 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
668 deferred stack alloc vars.
669 (expand_used_vars): Skip partitions holding parm default defs.
670 Move adjust_one_expanded_partition_var loop...
671 (pass_expand::execute): ... here. Drop redundant assert.
672 Adjust comments before the final loop over all ssa names.
673 Require assigned rtl of parms and results to match exactly.
674 Reset its attributes to match them, not any other variables in
676 (expand_debug_expr): Use entry value for PARM's default defs
677 only iff they have zero nondebug uses.
678 * cfgexpand.h (parm_in_stack_slot_p): Remove.
679 (get_rtl_for_parm_ssa_default_def): Remove.
680 (set_parm_rtl): Declare.
681 * doc/invoke.texi: Improve wording.
682 * explow.c (promote_decl_mode): Fix promote_function_mode for
683 result decls not by reference.
684 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
685 bypass TYPE_MODE to get the actual vector mode.
686 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
687 2015-08-19's changes as follows. Drop include of
688 basic-block.h and df.h.
689 (rtl_for_parm): Remove.
690 (maybe_reset_rtl_for_parm): Remove.
691 (parm_in_unassigned_mem_p): Remove.
692 (use_register_for_decl): Add logic for RESULT_DECLs matching
693 assign_parms' behavior.
694 (split_complex_args): Revert.
695 (assign_parms_augmented_arg_list): Revert. Add comment
696 referencing the logic above.
697 (assign_parm_adjust_stack_rtl): Revert.
698 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
699 of SET_DECL_RTL. Set up a REG if the parm demands so.
700 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
701 calls into a single set_parm_rtl. Set up a temporary RTL
702 temporarily for expand_assignment.
703 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
704 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
705 (assign_bounds): Revert.
706 (assign_parms): Revert. Use set_parm_rtl.
707 (allocate_struct_function): Relayout result and parms of
708 non-abstruct functions.
709 (expand_function_start): Revert. Use set_parm_rtl. If the
710 result is not a hard reg, create a pseudo from the promoted
711 mode of the default def. Promote static chain mode.
712 * tree-outof-ssa.c (remove_ssa_form): Drop unused
713 partition_has_default_def. Set up
714 partitions_for_parm_default_defs.
715 (finish_out_of_ssa): Remove partition_has_default_def.
716 Release partitions_for_parm_default_defs.
717 * tree-outof-ssa.h (struct ssaexpand): Remove
718 partition_has_default_def. Add
719 partitions_for_parm_default_defs.
720 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
722 (build_ssa_conflict_graph): Fix conflict-detection of default
723 defs of even unused default defs of params and results.
724 (for_all_parms): New.
725 (create_default_def): New.
726 (register_default_def): New.
727 (coalesce_with_default): New.
728 (create_outofssa_var_map): Create default defs for all parms
729 and results, and register their partitions. Add GIMPLE_RETURN
730 operands as coalesce candidates with results. Add default
731 defs of each parm or result as coalesce candidates with its
732 other defs. Mark each result def, and each default def of
733 parms, as used_in_copy.
734 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
735 with the ssa names, even anonymous ones. Drop
736 parm_in_stack_slot_p calls. Require same signedness and
738 (coalesce_ssa_name): Add coalesce candidates for all defs of
739 each parm and result, even unused ones.
740 (parm_default_def_partition_arg): New type.
741 (set_parm_default_def_partition): New.
742 (get_parm_default_def_partitions): New.
743 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
744 * tree-ssa-live.c (partition_view_init): Regard unused defs of
745 parms and results as used.
746 (verify_live_on_entry): Don't error out just because they're
749 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
751 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
752 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
753 (output_fde): Don't output length for debug_frame on AIX.
754 (output_call_frame_info): Don't output length for debug_frame on AIX.
755 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
756 HAVE_XCOFF_DWARF_EXTRAS.
757 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
758 HAVE_XCOFF_DWARF_EXTRAS.
759 (output_compilation_unit_header): Don't output length on AIX.
760 (output_pubnames): Don't output length on AIX.
761 (output_aranges): Delete argument. Compute length locally. Don't
762 output length on AIX.
763 (output_line_info): Don't output length on AIX.
764 (dwarf2out_finish): Don't compute aranges_length.
765 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
766 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
767 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
768 symbol decoration for AIX.
769 (rs6000_xcoff_debug_unwind_info): New.
770 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
772 (rs6000_xcoff_declare_function_name): Emit different
773 .function pseudo-op when DWARF2_DEBUG. Don't call
774 xcoffout_declare_function for DWARF2_DEBUG.
775 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
777 * config/rs6000/aix71.h: New.
778 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
780 * configure: Regenerate.
781 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
784 2015-09-26 Jeff Law <law@redhat.com>
786 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
788 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
791 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
794 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
797 * config/cris/cris.md (asrandb): Fix left shift undefined
801 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
804 * lra-constarints.c (match_reload): Check presence of the input pseudo
805 in the output operand.
807 2015-09-25 Tobias Burnus <burnus@net-b.de>
809 * doc/invoke.texi (-fsanitize): Minor wording tweak.
811 2015-09-25 Tobias Burnus <burnus@net-b.de>
813 * doc/invoke.texi (-fsanitize): Update URLs.
815 2015-09-25 Teresa Johnson <tejohnson@google.com>
817 * opts.c (finish_options): Unset -freorder-blocks-and-partition
818 if not using profile.
820 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
822 PR pretty-print/67567
823 * pretty-print.c (pp_string): Add gcc_checking_assert.
824 * pretty-print.h (output_buffer_append_r): Likewise.
826 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
829 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
830 addr2 individually. Don't emit logical or insn if one is known to
831 be aligned approriately.
832 (sh_expand_cmpnstr): Likewise.
834 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
836 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
837 __builtin_aarch64_fp[sc]r arguments into a register.
839 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
841 * config.gcc (x86_archs): Replace lakemount with lakemont.
842 (with_cpu): Likewise.
843 (with_arch): Likewise.
844 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
845 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
846 __tune_lakemount__ with __tune_lakemont__.
847 * config/i386/i386.c (lakemount_cost): Renamed to ...
848 (lakemont_cost): This.
849 (m_LAKEMOUNT): Renamed to ...
851 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
852 (processor_target_table): Replace "lakemount" with "lakemont".
853 (processor_alias_table): Likewise.
854 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
856 (ix86_adjust_cost): Likewise.
857 (ia32_multipass_dfa_lookahead): Likewise.
858 * config/i386/i386.h (processor_type): Likewise.
859 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
860 * doc/invoke.texi: Replace lakemount with lakemont. Replace
861 Lakemount with Lakemont.
863 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
865 * config.gcc (x86_archs): Replace iamcu with lakemount.
866 (with_cpu): Likewise.
867 (with_arch): Likewise.
868 * doc/invoke.texi: Likewise.
869 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
870 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
871 __tune_iamcu__ with __tune_lakemount__.
872 * config/i386/i386.c (iamcu_cost): Renamed to ...
873 (lakemount_cost): This.
874 (m_IAMCU): Renamed to ...
876 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
877 (processor_target_table): Replace "iamcu" with "lakemount".
878 (processor_alias_table): Likewise.
879 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
881 (ix86_adjust_cost): Likewise.
882 (ia32_multipass_dfa_lookahead): Likewise.
883 * config/i386/i386.h (processor_type): Likewise.
884 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
886 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
888 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
889 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
891 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
892 (pa_expand_compare_and_swap_loop): New.
893 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
894 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
895 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
896 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
897 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
900 2015-09-24 Michael Collison <michael.collison@linaro.org>
903 * read-md.c (read_name): Allow mode iterators inside angle
904 brackets in rtl expressions.
906 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
909 * ira-color.c (update_allocno_cost): Add parameter.
910 (update_costs_from_allocno): Decrease conflict cost. Pass the new
913 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
916 * opts-common.c (prune_options): Discard all -fdiagnostics-color
917 but the last one, which is moved to the front to be processed
919 * opts.c (enable_warning_as_error): Reject options that do not
922 2015-09-24 Jiong Wang <jiong.wang@arm.com>
924 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
926 2015-09-24 Jiong Wang <jiong.wang@arm.com>
928 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
929 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
930 (aarch64_cannot_force_const_mem): Likewise.
931 (aarch64_classify_address): Likewise.
932 (aarch64_classify_symbolic_expression): Likewise.
933 (aarch64_print_operand): Likewise.
934 (aarch64_classify_symbol): Likewise.
935 (aarch64_mov_operand_p): Likewise.
936 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
937 (aarch64_mov_operand): Likewise.
939 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
941 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
942 for info->spe_gp_size.
944 2015-09-24 Richard Biener <rguenther@suse.de>
947 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
950 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
952 * tree-object-size.c (plus_stmt_object_size)
953 (cond_expr_object_size): Change the formal parameters from gimple
955 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
956 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
957 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
959 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
961 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
962 Check for ld -type pie on Solaris 11.x and 12.
963 * configure: Regenerate.
964 * config.in: Regenerate.
966 * gcc.c (LD_PIE_SPEC): Allow redefinition.
968 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
969 (STARTFILE_SPEC): Use it.
970 (ENDFILE_CRTEND_SPEC): Define.
971 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
972 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
973 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
974 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
975 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
976 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
977 (ENDFILE_ARCH_SPEC): Define.
978 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
980 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
982 * configure.ac (gcc_cv_solaris_crts): New test.
983 * configure. Regenerate.
984 * config.in: Regenerate.
985 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
986 HAVE_SOLARIS_CRTS variant.
988 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
990 * tree-inline.h (count_insns_seq): Delete prototype.
991 (estimate_num_insns_seq): Define prototype.
992 * tree-inline.c (count_insns_seq): Delete.
993 (estimate_num_insns_seq): Remove static qualifier.
994 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
995 with estimate_num_insns_seq.
997 2015-09-24 Richard Biener <rguenther@suse.de>
999 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
1001 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
1002 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
1004 (ao_ref_init_from_vn_reference): Record clique and base in the
1006 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
1008 2015-09-24 Richard Biener <rguenther@suse.de>
1010 PR tree-optimization/48885
1011 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
1012 as not including any restrict tags from other pointers.
1014 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
1016 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
1017 character when appending to offload_targets.
1019 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
1020 offload targets by commas, not colons.
1021 * config.in: Regenerate.
1022 * configure: Likewise.
1023 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
1024 instead of setting up the default offload targets here...
1025 (process_command): ..., do it here.
1027 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
1028 targets are separated by commas.
1029 * config.h.in: Regenerate.
1031 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
1032 Nathan Sidwell <nathan@codesourcery.com>
1034 * omp-low.h (omp_reduction_init_op): Declare.
1035 * omp-low.c (omp_reduction_init_op): New, broken out of ...
1036 (omp_reduction_init): ... here. Call it.
1037 * tree-parloops.c (initialize_reductions): Use
1038 omp_reduction_init_op.
1040 2015-09-23 Richard Biener <rguenther@suse.de>
1043 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
1044 undefined overflow unless they will cancel out.
1046 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
1048 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
1051 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1054 * opts.h (write_langs): Declare.
1055 * opts-global.c (write_langs): Make it extern.
1057 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
1060 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
1061 overlapping regs when matching the pattern.
1063 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1065 * config/aarch64/aarch64-simd.md
1066 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
1067 (aarch64_float_truncate_hi_v4sf_le): New.
1068 (aarch64_float_truncate_hi_v4sf_be): Likewise.
1070 2015-09-23 Richard Biener <rguenther@suse.de>
1072 * tree-ssa-structalias.c (intra_create_variable_infos): Build
1073 representatives for all restrict qualified pointer destinations.
1075 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
1077 * config/i386/i386.md (define_code_attr mshift): New.
1078 (define_mode_iterator SWI1248_AVX512BW): Rename ...
1079 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
1081 (define_insn "*k<logic><mode>"): Use new iterator name.
1082 (define_insn "*<mshift><mode>3"): New.
1084 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
1087 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
1088 mark the block as accessible.
1090 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
1092 * function.c (thread_prologue_and_epilogue_insns): Delete
1093 orig_entry_edge argument to try_shrink_wrapping.
1094 * shrink-wrap.c (can_get_prologue): New function.
1095 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
1096 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
1097 can_get_prologue where needed. Remove code that finds a single
1098 edge for the prologue. Remove code that tests if any reg clobbered
1099 by the prologue is live on the prologue edge. Remove code that finds
1100 the new prologue edge after duplicating blocks. Make a new prologue
1102 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
1104 2015-09-22 Jeff Law <law@redhat.com>
1106 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
1109 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1111 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
1112 -Wtemplates, -Wnamespaces): Document.
1114 2015-09-22 Tom de Vries <tom@codesourcery.com>
1116 PR tree-optimization/67671
1117 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
1118 pointer references as restrict.
1120 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1122 * config/nios2/nios2.c (nios2_legitimize_address): When handling
1123 'reg + reloc' cases, allow first operand to be non-REG, and use
1124 force_reg() to enforce address pattern.
1126 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
1129 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
1130 (define_mode_iterator VI12_AVX_AVX512F): New.
1131 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
1132 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
1133 (define_insn "*<code><mode>3"): ... Into new pattern using
1134 VI12_AVX_AVX512F iterators without masking.
1136 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1138 * config.gcc: Support "skylake-avx512".
1139 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1140 PROCESSOR_SKYLAKE_AVX512.
1141 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
1142 (processor_target_table): Add "skylake-avx512".
1143 (PTA_SKYLAKE_AVX512): Define.
1144 (ix86_option_override_internal): Add "skylake_avx512".
1145 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
1146 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
1147 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
1148 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
1149 * doc/invoke.texi (skylake-avx512): New.
1151 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1153 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
1155 (define_insn "kunpcksi"): Ditto.
1156 (define_insn "kunpckdi"): Ditto.
1158 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1160 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
1161 iterator instead of fixed modes.
1163 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1165 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1167 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
1168 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
1169 out_result. Update to support update-fetch operations.
1170 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
1171 Adjust for change to aarch64_gen_atomic_ldop.
1172 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
1173 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
1174 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
1175 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
1176 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
1178 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1180 * config/aarch64/aarch64-protos.h
1181 (aarch64_atomic_ldop_supported_p): Declare.
1182 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
1183 (enum aarch64_atomic_load_op_code): New.
1184 (aarch64_emit_atomic_load_op): New.
1185 (aarch64_gen_atomic_ldop): Update to support load-operate
1187 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
1189 (aarch64_atomic_<atomic_optab><mode>): New.
1190 (aarch64_atomic_<atomic_optab><mode>_lse): New.
1191 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
1192 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
1193 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
1195 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1197 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
1198 (UNSPECV_ATOMIC_LDOP_OR): New.
1199 (UNSPECV_ATOMIC_LDOP_BIC): New.
1200 (UNSPECV_ATOMIC_LDOP_XOR): New.
1201 (UNSPECV_ATOMIC_LDOP_PLUS): New.
1204 (aarch64_atomic_load<atomic_ldop><mode>): New.
1206 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1208 * config/aarch64/aarch64.md
1209 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
1212 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
1214 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1216 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
1217 (aarch64_gen_atomic_ldop): New.
1218 (aarch64_split_atomic_op): Fix whitespace and add a comment.
1219 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
1220 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
1221 (atomic_exchange<mode>): Replace with an expander.
1222 (aarch64_atomic_exchange<mode>): New.
1223 (aarch64_atomic_exchange<mode>_lse): New.
1224 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
1225 (aarch64_atomic_swp<mode>): New.
1227 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1229 * tree-inline.c (expand_call_inline): Use inform for extra note.
1230 Do not give a note with UNKNOWN_LOCATION.
1231 Replace input_location with gimple_location (stmt).
1232 Use true/false instead of TRUE/FALSE.
1234 2015-09-22 Tom de Vries <tom@codesourcery.com>
1236 PR tree-optimization/67666
1237 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
1238 with single field non-conservative.
1240 2015-09-21 David S. Miller <davem@davemloft.net>
1244 2015-09-11 David S. Miller <davem@davemloft.net>
1246 * config/sparc/constraints.md: Make "U" constraint a real register
1248 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1249 (D_MODES, DF_MODES): Add missing cast.
1250 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1251 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1252 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1254 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1255 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1256 provide these insn when flag_pic.
1258 2015-09-17 David S. Miller <davem@davemloft.net>
1260 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
1262 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
1264 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1265 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1266 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1267 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1268 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1269 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1270 provide when flag_pic.
1272 2015-09-21 Jeff Law <law@redhat.com>
1274 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
1277 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1279 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
1281 2015-09-21 Richard Biener <rguenther@suse.de>
1283 * passes.c (rest_of_decl_compilation): Do not call
1284 dwarf2out_early_global_decl for aliases.
1286 2015-09-21 Richard Biener <rguenther@suse.de>
1289 * dwarf2out.c (add_location_or_const_value_attribute): Remove
1290 attribute parameter. Early exit if either DW_AT_const_value
1291 or DW_AT_location are present already.
1292 (gen_variable_die): Adjust caller.
1293 (dwarf2out_late_global_decl): Likewise.
1295 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1298 * config/sh/sh.c (sh_remove_overlapping_post_inc,
1299 sh_peephole_emit_move_insn): Add new functions.
1300 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
1301 sh_peephole_emit_move_insn): Declere them.
1302 * config/sh/sh.md: Use them in various peephole2 patterns.
1304 2015-09-21 Richard Biener <rguenther@suse.de>
1307 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
1308 address with -fno-delete-null-pointer-checks.
1310 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
1312 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
1313 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
1314 (reduc_uplus_v16qi): Remove.
1316 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
1317 (reduc_<VEC_reduc_name>_v2df): Remove.
1318 (reduc_<VEC_reduc_name>_v4sf): Remove.
1319 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
1321 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
1322 gen_ function by removing * prefix.
1323 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
1325 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1328 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1329 Print i_bound without converting it to a tree.
1331 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
1333 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
1334 operands[4] operands[5] swap with std::swap, removed tmp variable.
1335 (arm_evpc_neon_vzip): Replaced in0/in1 and
1336 out0/out1 swaps with std::swap, removed x variable.
1337 (arm_evpc_neon_vtrn): Replaced in0/int1 and
1338 out0/out1 swaos with std::swap, removed x variable.
1339 (arm_expand_vec_perm_const_1): Replaced
1340 d->op0/d->op1 swap with std::swap, removed x variable.
1341 (arm_evpc_neon_vuzp): Replaced in0/in1 and
1342 out0/out1 swaps with std::swap, removed x variable.
1344 2015-09-21 Jonathan Yong <10walls@gmail.com>
1346 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1347 sysroot/usr/lib/32api for additional win32 libraries,
1348 fixes failing Cygwin bootstrapping.
1350 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1352 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
1354 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1357 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
1358 (*mov_t_msb_neg): Rewrite negc pattern.
1360 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1362 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
1363 immediate generation code.
1365 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1367 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
1368 redundant immediate generation code.
1370 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1372 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
1373 (AARCH64_NUM_BITMASKS): Remove.
1374 (aarch64_bitmasks_cmp): Remove.
1375 (aarch64_build_bitmask_table): Remove.
1377 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1379 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
1380 slow immediate matching loops with a faster algorithm.
1382 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
1384 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
1387 2015-09-20 Jeff Law <law@redhat.com>
1389 PR tree-optimization/47679
1390 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
1391 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
1392 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
1393 (thread_through_normal_block): Use record_temporary_equivalences.
1395 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
1397 * coretypes.h (gimple): Change typedef to be a forward declaration.
1398 * gimple.h (gimple_statement_base): rename to gimple.
1399 * (all functions and types using gimple): Adjust.
1402 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
1403 David Edelsohn <dje.gcc@gmail.com>
1405 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
1406 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1407 (EH_FRAME_THROUGH_COLLECT2): Define.
1408 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1409 (ASM_OUTPUT_DWARF_PCREL): Define.
1410 (ASM_OUTPUT_DWARF_DATAREL): Define.
1412 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
1414 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1417 2015-09-18 Jeff Law <law@redhat.com>
1419 PR tree-optimization/47679
1420 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
1422 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
1423 object. Update constructor.
1424 (pass_dominator::execute): Corresponding chagnes to declaration
1425 and initialization of avail_exprs_stack. Update constructor call
1426 for dom_opt_dom_walker object.
1427 (lookup_avail_expr, record_cond): Accept additional argument. Pass
1428 it down to children as needed.
1429 (record_equivalences_from_incoming_edge): Likewise.
1430 (eliminate_redundant_computations): Likewise.
1431 (record_equivalences_from_stmt): Likewise.
1432 (simplify_stmt_for_jump_threading): Likewise.
1433 (record_temporary_equivalences): Likewise.
1434 (optimize_stmt): Likewise.
1435 (dom_opt_dom_walker::thread_across_edge): Update access to
1436 avail_exprs_stack object and pass it to children as needed.
1437 (dom_opt_dom_walker::before_dom_children): Similarly.
1438 (dom_opt_dom_walker::after_dom_children): Similarly.
1439 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
1440 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
1441 Add avail_expr_stack argument. Pass it to children as needed.
1442 (dummy_simplify): Likewise.
1443 (simplify_control_stmt_condition): Likewise.
1444 (thread_around_empty_blocks): Likewise.
1445 (thread_through_normal_block): Likewise.
1446 (thread_across_edge): Likewise.
1447 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1448 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
1450 PR tree-optimization/47679
1451 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
1453 (dom_opt_dom_walker): New private member holding the const_and_copies
1454 object. Update constructor.
1455 (pass_dominator::execute): Corresponding changes to declaration
1456 and initialization of const_and_copies. Update constructor call
1457 for the dom_opt_dom_walker object.
1458 (record_temporary_equivalences): Accept const_and_copies argument
1459 pass it down to children as needed.
1460 (record_equality): Likewise.
1461 (record_equivalences_from_incoming_edge): Likewise.
1462 (cprop_into_successor_phis, optimize_stmt): Likewise.
1463 (eliminate_redundant_computations): Likewise.
1464 (dom_opt_dom_walker::thread_across_edge): Update access to
1465 const_and_copies object and pass it to children as needed.
1466 (dom_opt_dom_walker::before_dom_children): Similarly.
1467 (dom_opt_dom_walker::after_dom_children): Similarly.
1469 PR tree-optimization/47679
1470 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
1471 it into the avail_exprs_stack class.
1472 (pass_dominator::execute): Corresponding changes to declaration
1473 and initialization of avail_exprs. Pass avail_exprs to
1474 dump_dominator_optimization_stats.
1475 (record_cond): Extract avail_exprs from avail_exprs_stack.
1476 (lookup_avail_expr): Similarly.
1477 (htab_staticstics): Remove unnecessary prototype. Move to earlier
1479 (dump_dominator_optimization_stats): Make static and prototype.
1480 Add argument for the hash table to dump.
1481 (debug_dominator_optimization_stats): Remove.
1482 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
1484 (debug_dominator_optimization_stats): Similarly.
1485 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
1486 "void" in prototype for pop_to_marker method. Add accessor method
1487 for the underlying avail_exprs table.
1489 * tree-ssa-threadedge.c: Remove trailing whitespace.
1491 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
1493 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
1495 (pa_ldil_cint_p): Likewise.
1496 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
1497 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
1499 * config/pa/pa.md: Likewise.
1501 2015-09-18 David Malcolm <dmalcolm@redhat.com>
1503 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
1504 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
1505 (diagnostic_show_locus): Likewise.
1506 (diagnostic_print_caret_line): Likewise.
1507 * diagnostic-show-locus.c: New file.
1509 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
1511 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
1512 "back" parameter. Declare label in #if block.
1514 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
1517 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1518 the address to a register.
1520 2015-09-18 Jeff Law <law@redhat.com>
1522 PR tree-optimization/47679
1523 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1524 * tree-ssa-dom.c: Remove unnecessary header includes.
1525 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1526 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1527 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1528 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1529 (pass_phi_only_cprop::execute): Likewise.
1530 (make_pass_phi_only_cprop): Likewise.
1531 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
1532 uses of file scoped statics by passing the required objects
1533 as parameters wherever needed.
1535 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
1536 David Edelsohn <dje.gcc@gmail.com>
1538 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1539 EH_FRAME_THROUGH_COLLECT2.
1540 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1542 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1543 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
1544 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1545 * except.c (switch_to_exception_section): Use a read-only section
1546 even if EH_FRAME_SECTION_NAME is undefined.
1547 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1548 * collect2.c (write_c_file_stat): Provide dbase on AIX.
1549 (scan_prog_file): Don't export __dso_handle nor
1551 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1552 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1553 (ASM_OUTPUT_DWARF_PCREL): Define.
1554 (ASM_OUTPUT_DWARF_DATAREL): Define.
1555 (EH_FRAME_THROUGH_COLLECT2): Define.
1556 (EH_FRAME_IN_DATA_SECTION): Delete.
1557 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1558 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1560 (rs6000_asm_output_dwarf_datarel): Declare.
1561 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1562 (rs6000_aix_asm_output_dwarf_datarel): New.
1563 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1564 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1565 (EH_FRAME_THROUGH_COLLECT2): Define.
1566 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1567 (EH_FRAME_THROUGH_COLLECT2): Define.
1568 (EH_TABLES_CAN_BE_READ_ONLY): Define.
1569 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1570 (EH_FRAME_THROUGH_COLLECT2): New.
1571 (ASM_OUTPUT_DWARF_DATAREL): New.
1572 * doc/tm.texi: Regenerate.
1574 2015-09-18 Richard Biener <rguenther@suse.de>
1576 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1577 we're in early phase.
1578 (schedule_generic_params_dies_gen): Likewise.
1579 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1580 work as possible, retaining unhandled cases.
1581 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1582 clear out generic_type_instances at the end.
1583 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1584 (dwarf2out_early_finish): ... here. Do most of
1585 gen_remaining_tmpl_value_param_die_attribute here.
1587 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
1589 PR tree-optimization/67283
1590 * tree-sra.c (type_consists_of_records_p): Rename to...
1591 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1592 (completely_scalarize_record): Rename to...
1593 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1594 (scalarize_elem): New.
1595 (analyze_all_variable_accesses): Follow renamings.
1597 2015-09-18 Richard Biener <rguenther@suse.de>
1599 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1602 2015-09-18 Richard Biener <rguenther@suse.de>
1604 PR tree-optimization/66142
1605 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1606 treat MEM[&x] and x the same.
1607 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1608 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1609 when we simplified sth.
1610 (vn_reference_maybe_forwprop_address): Likewise.
1611 (valueize_refs_1): When we simplified through
1612 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1613 set valueized_anything to true.
1614 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1615 one ref kills the other instead of just a offset-based test.
1616 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1617 for the operand_equal_p test to compare bases and also compare
1620 2015-09-17 Christian Bruel <christian.bruel@st.com>
1622 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1624 2015-09-17 Richard Henderson <rth@redhat.com>
1627 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1628 pointers that encode the alignment of the object.
1630 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1632 PR rtl-optimization/66790
1633 * df-problems.c (LIVE): Amend documentation.
1635 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
1637 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1639 (GTFILES): Replace optabs.c with optabs-libfunc.c.
1640 * genopinit.c (main): Add an include guard to insn-opinit.h.
1641 Protect the rtx_code parts with NUM_RTX_CODE.
1642 * optabs.h: Split parts out to...
1643 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1644 * optabs.c: Split parts out to...
1645 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1646 * cilk-common.c: Include optabs-query.h rather than optabs.h.
1647 * fold-const.c: Likewise.
1648 * target-globals.c: Likewise.
1649 * tree-if-conv.c: Likewise.
1650 * tree-ssa-forwprop.c: Likewise.
1651 * tree-ssa-loop-prefetch.c: Likewise.
1652 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1653 Remove unncessary include files.
1654 * tree-ssa-phiopt.c: Likewise.
1655 * tree-ssa-reassoc.c: Likewise.
1656 * tree-switch-conversion.c: Likewise.
1657 * tree-vect-data-refs.c: Likewise.
1658 * tree-vect-generic.c: Likewise.
1659 * tree-vect-loop.c: Likewise.
1660 * tree-vect-patterns.c: Likewise.
1661 * tree-vect-slp.c: Likewise.
1662 * tree-vect-stmts.c: Likewise.
1663 * tree-vrp.c: Likewise.
1664 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1665 rather than optabs.h.
1666 * expr.c: Include optabs-tree.h.
1667 * function.c: Likewise.
1669 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1672 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1673 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1674 * config/arm/arm.c: Include common/common-target.h.
1675 (use_return_insn): Return 0 if the static chain register was saved
1676 above a non-APCS frame.
1677 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1678 (struct scratch_reg): New.
1679 (get_scratch_register_on_entry): New function.
1680 (release_scratch_register_on_entry): Likewise.
1681 (arm_emit_probe_stack_range): Likewise.
1682 (output_probe_stack_range): Likewise.
1683 (arm_expand_prologue): Factor out code dealing with the IP register
1684 for nested function and adjust it for stack checking.
1685 Invoke arm_emit_probe_stack_range if static builtin stack checking
1687 (thumb1_expand_prologue): Sorry out if static builtin stack checking
1689 (arm_expand_epilogue): Add the saved static chain register, if any, to
1690 the amount of pre-pushed registers to pop.
1691 (arm_frame_pointer_required): Return true if static stack checking is
1692 enabled and we want to catch the exception with the EABI unwinder.
1693 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1694 (UNSPEC_PROBE_STACK_RANGE): Likewise.
1695 * config/arm/arm.md (probe_stack): New insn.
1696 (probe_stack_range): Likewise.
1698 2015-09-17 Richard Biener <rguenther@suse.de>
1700 * genmatch.c (parser::parse_expr): Improve error message
1701 for mis-placed flags.
1703 2015-09-17 Richard Biener <rguenther@suse.de>
1705 * passes.c (rest_of_decl_compilation): Always call early_global_decl
1706 debug hook when we created a varpool node.
1707 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1708 dwarf2out_early_global_decl, when not just add location or
1709 value attributes to existing DIEs.
1711 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
1713 * config/aarch64/aarch64.md (copysigndf3): New.
1714 (copysignsf3): Likewise.
1716 2015-09-17 David S. Miller <davem@davemloft.net>
1718 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1719 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1720 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1721 (HARD_REGNO_CALLER_SAVE_MODE): Define.
1722 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1723 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1724 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1725 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1726 provide when flag_pic.
1728 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
1730 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1731 object_allocator change.
1733 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1735 PR tree-optimization/66388
1736 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1737 (dump_iv): Dump no_overflow information.
1738 (alloc_iv): Initialize new field for struct iv.
1739 (mark_bivs): Count number of no_overflow bivs.
1740 (find_deriving_biv_for_expr, record_biv_for_address_use): New
1742 (idx_find_step): Call new functions above.
1743 (add_candidate_1, add_candidate): New paramter.
1744 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1745 (get_computation_aff): Simplify convertion of cand for BIV.
1746 (get_computation_cost_at): Step cand's base if necessary.
1748 2015-09-17 Bin Cheng <bin.cheng@arm.com>
1750 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1752 (tree_simplify_using_condition): Ditto.
1753 (simplify_using_initial_conditions): Ditto.
1754 (loop_exits_before_overflow): Pass new argument to function
1755 simplify_using_initial_conditions. Remove case for type conversions
1757 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1759 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1760 in iv base using loop initial conditions.
1762 2015-09-16 Jeff Law <law@redhat.com>
1764 PR tree-optimization/47679
1765 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1766 (free_all_edge_infos): Use it.
1767 (allocate_edge_info): Free preexisting edge info data.
1768 (pass_dominator::execute): Set up initial edge info structures.
1769 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1771 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1772 If non-null, then push/pop markers appropriately.
1773 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1774 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1777 2015-09-16 James Bowman <james.bowman@ftdichip.com>
1779 * config/ft32/ft32.c: Fix the memory address space predicate.
1781 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1784 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1785 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1787 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1789 * toplev.h (check_global_declaration): Remove declaration.
1790 * toplev.c (check_global_declaration): Move to ...
1791 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1792 (analyze_functions): Update call.
1794 2015-09-16 David S. Miller <davem@davemloft.net>
1796 * lra-constraints.c (simplify_operand_subreg): Do not assume that
1797 lowpart of a SUBREG has offset zero.
1799 2015-09-16 Jeff Law <law@redhat.com>
1801 PR tree-optimization/47679
1802 * tree-ssa-dom.c (enum expr_kind): Moved from here to
1803 tree-ssa-scopedtables.h.
1804 (struct hashable_expr, class expr_hash_elt): Likewise.
1805 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1806 Move associated methods into tree-ssa-scopedtables.c.
1807 (avail_expr_hash, initialize_expr_from_cond): Similarly.
1808 (hashable_expr_equal_p, add_expr_commutative): Likewise.
1809 (add_hashable_expr): Likewise.
1810 (record_cond): Delete element directly.
1811 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1812 private copy ctor and assignment operator methods.
1813 (expr_elt_hasher): Inline trivial methods.
1814 (initialize_expr_from_cond): Prototype.
1815 * tree-ssa-scopedtables.c: Add necessary includes, functions and
1816 methods that were previously in tree-ssa-dom.c. Improve various
1819 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1821 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1823 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1826 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1829 2015-09-16 Richard Biener <rguenther@suse.de>
1832 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1833 location of possibly shared trees.
1835 2015-09-16 Richard Biener <rguenther@suse.de>
1838 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1840 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1842 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1843 offset and size computations instead of HOST_WIDE_INT.
1845 2015-09-16 Richard Biener <rguenther@suse.de>
1848 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1849 result before builting a tree via wide_int_to_tree.
1851 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1853 * Makefile.in: Add memory-block.cc
1854 (pool_allocator::initialize): Use fixed block size.
1855 (pool_allocator::release): Use memory_block_pool.
1856 (pool_allocator::allocate): Likewise.
1857 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1859 * cfg.c (initialize_original_copy_tables): Likewise.
1860 * cselib.c (elt_list_pool, elt_loc_list_pool,
1861 cselib_val_pool): Likewise.
1862 * df-problems.c (df_chain_alloc): Likewise.
1863 * df-scan.c (df_scan_alloc): Likewise.
1864 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1865 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1866 group_info_pool, deferred_change_pool): Likewise.
1867 * et-forest.c (et_nodes, et_occurrences): Likewise.
1868 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1869 ipcp_agg_lattice_pool): Likewise.
1870 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1871 * ipa-profile.c (histogram_pool): Likewise.
1872 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1873 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1874 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1875 * ira-color.c (update_cost_record_pool): Likewise.
1876 * lra-lives.c (lra_live_range_pool): Likewise.
1877 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1878 * memory-block.cc: New file.
1879 * memory-block.h: New file.
1880 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1881 * sched-deps.c (sched_deps_init): Likewise.
1882 * sel-sched-ir.c (sched_lists_pool): Likewise.
1883 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1884 * tree-sra.c (access_pool): Likewise.
1885 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1886 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1887 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1888 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1889 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1890 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1891 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1892 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1894 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1896 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1898 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1901 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1903 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1904 to pass TLS call argument, according to current ABI.
1905 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1906 callx0 for TLS call, according to current ABI.
1908 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1910 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1911 on stack restore statements.
1912 (decide_copy_try_finally): Do not consider a stack restore statement as
1913 coming from sources.
1915 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1917 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1918 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1920 2015-09-15 Jeff Law <law@redhat.com>
1922 PR tree-optimization/47679
1923 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1924 methods and private members.
1925 (avail_exprs_stack): Similarly. Change type of global
1926 from a pair of expr_hash_elt_t to the new class.
1927 (expr_elt_hasher::hash): Corresponding changes.
1928 (expr_elt_hasher::equal): Similarly.
1929 (avail_expr_hash): Similarly.
1930 (pass_dominator::execute): Similarly.
1931 (dom_opt_dom_walker::thread_across_edge): Similarly.
1932 (record_cond): Similarly.
1933 (dom_opt_dom_walker::before_dom_children): Similarly.
1934 (dom_opt_dom_walker::after_dom_children): Similarly.
1935 (lookup_avail_expr): Likewise.
1936 (initialize_hash_element): Now a expr_hash_elt constructor.
1937 (initialize_hash_element_from_expr): Similarly.
1938 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1939 (free_expr_hash_elt): Call dtor for the element.
1940 (remove_local_expressions_from_table): Now the "pop_to_marker"
1941 method in the available_exprs_stack class.
1942 (avail_expr_stack::record_expr): Method factored out.
1943 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1945 (hashable_expr_equal_p): Fix formatting.
1947 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1949 * input.h (location_get_source_line): Drop "expanded_location"
1950 param in favor of a file and line number.
1951 * input.c (location_get_source_line): Likewise.
1952 (dump_location_info): Update for change in signature of
1953 location_get_source_line.
1954 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1956 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1958 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1959 Bump to 4KB for SJLJ exceptions.
1960 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1961 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1962 * doc/tm.texi: Regenerate.
1964 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1966 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1967 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1970 2015-09-15 Richard Biener <rguenther@suse.de>
1972 PR tree-optimization/67470
1973 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1974 structure for PHI hoisting by inserting a forwarder block
1977 2015-09-15 Christian Bruel <christian.bruel@st.com>
1979 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1980 (arm_option_print): New function.
1982 2015-09-15 Christian Bruel <christian.bruel@st.com>
1985 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1986 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1987 Remove flags parameter.
1988 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1989 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1990 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1991 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1992 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1993 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1994 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1995 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1997 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1999 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
2001 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
2002 AARCH64_VALID_SIMD_DREG_MODE.
2004 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2006 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
2007 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
2008 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
2009 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
2010 aarch64_ld4_lane<mode>): Combine together, making...
2011 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
2012 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2013 aarch64_st4_lane<mode>): Combine together, making...
2014 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
2015 * config/aarch64/iterators.md (nregs): Add comment.
2017 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2019 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
2020 Change operand mode from <V_TWO_ELEM> to BLK.
2021 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
2022 (aarch64_vec_store_lanesoi_lane<mode): Likewise
2023 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2024 (aarch64_ld2_lane<mode>): Likewise.
2025 (aarch64_st2_lane<VQ:mode>): Likewise.
2026 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
2028 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2030 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
2031 Change operand mode from <V_FOUR_ELEM> to BLK.
2032 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
2033 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
2034 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2035 (aarch64_ld4_lane<mode>): Likewise.
2036 (aarch64_st4_lane<mode>): Likewise.
2037 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
2039 2015-09-15 Richard Biener <rguenther@suse.de>
2042 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2043 transfer EH info from old to new stmt.
2044 (replace_call_with_value): Likewise.
2045 (replace_call_with_call_and_fold): Likewise.
2046 (gimple_fold_builtin_memory_op): Likewise.
2047 (gimple_fold_builtin_memset): Likewise.
2048 (gimple_fold_builtin_stpcpy): Likewise.
2049 (gimple_fold_call): Likewise.
2051 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2053 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
2055 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
2056 (aarch64_simd_intEI_type_node): Likewise.
2057 (aarch64_simd_builtin_std_type): Remove EImode case.
2058 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
2059 * config/aarch64/aarch64-modes.def: Remove EImode.
2061 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2063 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
2064 Change operand mode from <V_THREE_ELEM> to BLK.
2065 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
2066 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
2067 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2068 (aarch64_ld3_lane<mode>): Likewise.
2069 (aarch64_st3_lane<mode>): Likewise.
2070 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
2072 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2074 * config/aarch64/aarch64-simd.md
2075 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
2076 Change all TImode operands to BLKmode.
2077 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
2078 Change all EImode operands to BLKmode.
2079 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
2080 Change all OImode operands to BLKmode.
2082 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
2083 and call set_mem_size.
2084 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
2086 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
2088 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
2090 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
2092 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
2094 (vec_store_lanesci_lane<mode>): Rename to...
2095 (aarch64_vec_store_lanesci_lane<mode>): ...this.
2097 (vec_store_lanesxi_lane<mode>): Rename to...
2098 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
2100 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2101 aarch64_st4_lane<mode>): Follow renaming.
2103 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2105 * config/s390/s390.c (s390_const_operand_ok): Add missing
2108 2015-09-15 Richard Biener <rguenther@suse.de>
2111 * lto-streamer.h (lto_location_cache::current_sysp): Properly
2113 * lto-streamer-out.c (clear_line_info): Likewise.
2115 2015-09-15 Richard Biener <rguenther@suse.de>
2117 * doc/match-and-simplify.texi: Fix wording.
2119 2015-09-15 Bin Cheng <bin.cheng@arm.com>
2121 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
2122 unnecessary type conversion in op1.
2124 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
2126 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
2127 (dup_block_and_redirect): Delete function.
2128 (can_dup_for_shrink_wrapping): New function.
2129 (fix_fake_fallthrough_edge): New function.
2130 (try_shrink_wrapping): Rewrite function.
2131 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
2133 2015-09-14 Rich Felker <dalias@libc.org>
2135 * configure.ac: Change target pattern for sh TLS support
2136 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
2137 * configure: Regenerate.
2139 2015-09-14 Jeff Law <law@redhat.com>
2141 PR tree-optimization/47679
2142 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
2143 type rather than void *.
2145 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2148 * diagnostic.c (diagnostic_initialize): Do not set
2149 some_warnings_are_errors.
2150 (diagnostic_finish): Use DK_WERROR count instead.
2151 (diagnostic_report_diagnostic): Do not set
2152 some_warnings_are_errors.
2153 * diagnostic.h (struct diagnostic_context): Remove
2154 some_warnings_are_errors.
2156 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
2158 * config/sparc/predicates.md (const_all_ones_operand): Use
2159 CONSTM1_RTX to simplify definition.
2161 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
2164 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
2167 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
2169 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
2170 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
2171 OPT_fshow_column to handled saved option cases.
2172 (append_compiler_options): Do not skip the above added options.
2174 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2177 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
2178 nopcrelative_literal_loads.
2179 (aarch64_classify_address): Likewise.
2180 (aarch64_constant_pool_reload_icode): Define.
2181 (aarch64_secondary_reload): Handle secondary reloads for
2183 (aarch64_override_options): Handle nopcrelative_literal_loads.
2184 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
2185 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2187 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2188 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
2189 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
2191 * doc/invoke.texi (mpc-relative-literal-loads): Document.
2193 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
2196 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
2197 sync_compare_and_swap_optab libcall to target_oval.
2199 2015-09-14 Marek Polacek <polacek@redhat.com>
2201 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
2203 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
2205 2015-09-11 Mark Wielaard <mjw@redhat.com>
2208 * toplev.c (check_global_declaration): Check and use
2209 warn_unused_const_variable.
2210 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
2211 (-Wunused-variable): Remove non-constant. For C implies
2212 -Wunused-const-variable.
2213 (-Wunused-const-variable): New.
2215 2015-09-14 Richard Biener <rguenther@suse.de>
2217 * doc/match-and-simplify.texi: Update for changed syntax
2218 of inner ifs and the new switch expression.
2220 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
2222 * config/i386/haswell.md: New file describing Haswell pipeline.
2223 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
2224 haswell-like processors.
2225 (ix86_reassociation_width): Increase reassociation width for 64-bit
2226 Haswell processor family.
2227 * config/i386/i386.md: Introduce haswell cpu and include new md file.
2229 2015-09-14 Richard Biener <rguenther@suse.de>
2231 * doc/match-and-simplify.texi: Fixup some formatting issues
2232 and document the 's' flag.
2234 2015-09-13 Olivier Hainque <hainque@adacore.com>
2235 Eric Botcazou <ebotcazou@adacore.com>
2237 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
2238 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
2239 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
2240 (TARGET_CPU_gr5): Likewise.
2241 (TARGET_CPU_gr6): Likewise.
2242 (MULTILIB_DEFAULTS): Likewise.
2243 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
2244 for mcpu=gr5 and mcpu=gr6.
2245 (MULTILIB_DIRNAMES): Adjust accordingly.
2247 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2249 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
2250 (mem_ref_p): Likewise.
2251 (outermost_indep_loop): Adjust.
2252 (mem_ref_in_stmt): Likewise.
2253 (determine_max_movement): Likewise.
2254 (mem_ref_alloc): Likewise.
2255 (record_mem_ref_loc): Likewise.
2256 (set_ref_stored_in_loop): Likewise.
2257 (mark_ref_stored): Likewise.
2258 (gather_mem_refs_stmt): Likewise.
2259 (mem_refs_may_alias_p): Likewise.
2260 (for_all_locs_in_loop): Likewise.
2261 (struct rewrite_mem_ref_loc): Likewise.
2262 (rewrite_mem_refs): Likewise.
2263 (struct first_mem_ref_loc_1): Likewise.
2264 (first_mem_ref_loc): Likewise.
2265 (struct sm_set_flag_if_changed): Likewise.
2266 (execute_sm_if_changed_flag_set): Likewise.
2267 (execute_sm): Likewise.
2268 (hoist_memory_references):
2269 (struct ref_always_accessed): Likewise.
2270 (ref_always_accessed_p): Likewise.
2271 (refs_independent_p): Likewise.
2272 (record_dep_loop): Likewise.
2273 (ref_indep_loop_p_1): Likewise.
2274 (ref_indep_loop_p_2): Likewise.
2275 (ref_indep_loop_p): Likewise.
2276 (can_sm_ref_p): Likewise.
2277 (find_refs_for_sm): Likewise.
2278 (tree_ssa_lim_finalize): Likewise.
2280 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2282 * dwarf2out.c (dw_attr_ref): Remove typedef.
2283 (dw_line_info_ref): Likewise.
2284 (pubname_ref): Likewise.
2285 (dw_ranges_ref): Likewise.
2286 (dw_ranges_by_label_ref): Likewise.
2287 (comdat_type_node_ref): Likewise.
2289 (get_AT_low_pc): Likewise.
2290 (get_AT_hi_pc): Likewise.
2291 (get_AT_string): Likewise.
2292 (get_AT_flag): Likewise.
2293 (get_AT_unsigned): Likewise.
2294 (get_AT_ref): Likewise.
2295 (get_AT_file): Likewise.
2296 (remove_AT): Likewise.
2297 (print_die): Likewise.
2298 (check_die): Likewise.
2299 (die_checksum): Likewise.
2300 (attr_checksum_ordered): Likewise.
2301 (struct checksum_attributes): Likewise.
2302 (collect_checksum_attributes): Likewise.
2303 (die_checksum_ordered): Likewise.
2304 (same_die_p): Likewise.
2305 (is_declaration_die): Likewise.
2306 (clone_die): Likewise.
2307 (clone_as_declaration): Likewise.
2308 (copy_declaration_context): Likewise.
2309 (break_out_comdat_types): Likewise.
2310 (copy_decls_walk): Likewise.
2311 (output_location_lists): Likewise.
2312 (external_ref_hasher::hash): Likewise.
2313 (optimize_external_refs_1): Likewise.
2314 (build_abbrev_table): Likewise.
2315 (size_of_die): Likewise.
2316 (unmark_all_dies): Likewise.
2317 (size_of_pubnames): Likewise.
2318 (output_die_abbrevs): Likewise.
2319 (output_die): Likewise.
2320 (output_pubnames): Likewise.
2321 (add_ranges_num): Likewise.
2322 (add_ranges_by_labels): Likewise.
2323 (add_high_low_attributes): Likewise.
2324 (gen_producer_string): Likewise.
2325 (dwarf2out_set_name): Likewise.
2326 (new_line_info_table): Likewise.
2327 (prune_unused_types_walk_attribs): Likewise.
2328 (prune_unused_types_update_strings): Likewise.
2329 (prune_unused_types): Likewise.
2330 (resolve_addr): Likewise.
2331 (optimize_location_lists_1): Likewise.
2332 (index_location_lists): Likewise.
2333 (dwarf2out_finish): Likewise.
2335 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2337 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
2339 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2341 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
2342 (dump_asserts_for): Adjust.
2343 (register_new_assert_for): Likewise.
2344 (process_assert_insertions): Likewise.
2345 (insert_range_assertions): Likewise.
2347 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2349 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
2351 (new_temp_expr_table): Adjust.
2352 (free_temp_expr_table): Likewise.
2353 (version_to_be_replaced_p): Likewise.
2354 (make_dependent_on_partition): Likewise.
2355 (add_to_partition_kill_list): Likewise.
2356 (remove_from_partition_kill_list): Likewise.
2357 (add_dependence): Likewise.
2358 (finished_with_expr): Likewise.
2359 (process_replaceable): Likewise.
2360 (kill_expr): Likewise.
2361 (kill_virtual_exprs): Likewise.
2362 (mark_replaceable): Likewise.
2363 (find_replaceable_in_bb): Likewise.
2364 (find_replaceable_exprs): Likewise.
2365 (debug_ter): Likewise.
2367 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2369 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
2370 (struct btr_user): Rename from btr_user_s.
2371 (struct btr_def): Rename from btr_def_s.
2372 (find_btr_def_group): Adjust.
2373 (add_btr_def): Likewise.
2374 (new_btr_user): Likewise.
2375 (note_other_use_this_block): Likewise.
2376 (compute_defs_uses_and_gen): Likewise.
2377 (link_btr_uses): Likewise.
2378 (build_btr_def_use_webs): Likewise.
2379 (block_at_edge_of_live_range_p): Likewise.
2380 (btr_def_live_range): Likewise.
2381 (combine_btr_defs): Likewise.
2382 (move_btr_def): Likewise.
2383 (migrate_btr_def): Likewise.
2384 (migrate_btr_defs): Likewise.
2386 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2388 * var-tracking.c (shared_hash_def): Rename to shared_hash.
2389 (shared_hash): Remove typedef.
2390 (struct dataflow_set): Adjust.
2391 (shared_hash_unshare): Likewise.
2392 (dataflow_set_merge): Likewise.
2393 (vt_initialize): Likewise.
2394 (vt_finalize): Likewise.
2396 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2398 * var-tracking.c (struct location_chain): Rename from
2400 (struct variable_part): Adjust.
2401 (variable_htab_free): Likewise.
2402 (unshare_variable): Likewise.
2403 (get_init_value): Likewise.
2404 (get_addr_from_local_cache): Likewise.
2405 (drop_overlapping_mem_locs): Likewise.
2406 (val_reset): Likewise.
2407 (struct variable_union_info): Likewise.
2408 (variable_union): Likewise.
2409 (find_loc_in_1pdv): Likewise.
2410 (insert_into_intersection): Likewise.
2411 (intersect_loc_chains): Likewise.
2412 (canonicalize_loc_order_check): Likewise.
2413 (canonicalize_values_mark): Likewise.
2414 (canonicalize_values_star): Likewise.
2415 (canonicalize_vars_star): Likewise.
2416 (variable_merge_over_cur): Likewise.
2417 (remove_duplicate_values): Likewise.
2418 (variable_post_merge_new_vals): Likewise.
2419 (variable_post_merge_perm_vals): Likewise.
2420 (find_mem_expr_in_1pdv): Likewise.
2421 (dataflow_set_preserve_mem_locs): Likewise.
2422 (dataflow_set_remove_mem_locs): Likewise.
2423 (variable_part_different_p): Likewise.
2424 (onepart_variable_different_p): Likewise.
2425 (find_src_set_src): Likewise.
2426 (dump_var): Likewise.
2427 (set_slot_part): Likewise.
2428 (clobber_slot_part): Likewise.
2429 (delete_slot_part): Likewise.
2430 (vt_expand_var_loc_chain): Likewise.
2431 (emit_note_insn_var_location): Likewise.
2432 (vt_finalize): Likewise.
2434 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2436 * dse.c (store_info_t): Remove typedef.
2437 (group_info_t): Likewise.
2438 (const_group_info_t): Likewise.
2439 (deferred_change_t): Likewise.
2440 (get_group_info): Adjust.
2441 (free_store_info): Likewise.
2442 (canon_address): Likewise.
2443 (clear_rhs_from_active_local_stores): Likewise.
2444 (record_store): Likewise.
2445 (replace_read): Likewise.
2446 (check_mem_read_rtx): Likewise.
2447 (scan_insn): Likewise.
2448 (remove_useless_values): Likewise.
2449 (dse_step1): Likewise.
2450 (dse_step2_init): Likewise.
2451 (dse_step2_nospill): Likewise.
2452 (scan_stores_nospill): Likewise.
2453 (scan_reads_nospill): Likewise.
2454 (dse_step3_exit_block_scan): Likewise.
2455 (dse_step3): Likewise.
2456 (dse_step5_nospill): Likewise.
2457 (dse_step6): Likewise.
2459 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2461 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
2462 (alias_set_entry): Remove typedef.
2463 (alias_set_subset_of): Adjust.
2464 (alias_sets_conflict_p): Likewise.
2465 (init_alias_set_entry): Likewise.
2466 (get_alias_set): Likewise.
2467 (new_alias_set): Likewise.
2468 (record_alias_subset): Likewise.
2470 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
2472 * doc/install.texi (Downloading the source): Mark up
2473 contrib/download_prerequisites properly and drop leading "./".
2475 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2477 * config/arc/arc.h: Remove define of STRUCT_VALUE.
2478 * config/lm32/lm32.h: Likewise.
2479 * config/mep/mep.h: Likewise.
2480 * config/visium/visium.h: Likewise.
2481 * system.h: Poison STRUCT_VALUE macro.
2483 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
2485 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
2486 CONSTANT_P operands.
2488 2015-09-11 David S. Miller <davem@davemloft.net>
2490 * config/sparc/constraints.md: Make "U" constraint a real register
2492 * config/sparc/sparc.c (TARGET_LRA_P): Define.
2493 (D_MODES, DF_MODES): Add missing cast.
2494 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2495 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2496 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2498 * config/sparc/sparc.h (PROMOTE_MODE): Define.
2499 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2500 provide these insn when flag_pic.
2502 2015-09-11 Jeff Law <law@redhat.com>
2504 PR tree-optimization/47679
2505 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
2506 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
2507 member with m_. Update inline member functions as necessary. Add
2509 * tree-ssa-scopedtables.c: Update const_and_copies's member
2510 functions to use m_ prefix to access the stack.
2512 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2514 * graphite-optimize-isl.c (disable_tiling): Remove.
2515 (get_schedule_for_band): Do not use disable_tiling.
2516 (get_prevector_map): Delete function.
2517 (enable_polly_vector): Remove.
2518 (get_schedule_for_band_list): Remove dead code.
2520 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
2522 * graphite-optimize-isl.c (get_tile_map): Refactor.
2523 (get_schedule_for_band): Same.
2524 (getScheduleForBand): Same.
2525 (get_prevector_map): Same.
2526 (get_schedule_for_band_list): Same.
2527 (get_schedule_map): Same.
2528 (get_single_map): Same.
2529 (apply_schedule_map_to_scop): Same.
2530 (optimize_isl): Same.
2532 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2535 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2537 * config/aarch64/iterators.md (GPF_TF_F16): New.
2540 2015-09-10 Nathan Sidwell <nathan@acm.org>
2542 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2543 (nvptx_reorg): Adjust comments.
2545 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
2548 * configure.ac: Check if setenv and unsetenv are declared.
2549 * configure: Rebuild.
2550 * config.in: Rebuild.
2551 * system.h: Declare setenv and unsetenv if not declared.
2553 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2555 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2556 commentary to simplify permute mask adjustment equation.
2557 (special_handling_values): Add SH_VPERM.
2558 (const_load_sequence_p): New function.
2559 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2560 the mask loaded from the constant pool.
2561 (adjust_vperm): New function.
2562 (handle_special_swappables): Call adjust_vperm.
2563 (dump_swap_insn_table): Handle SH_VPERM.
2565 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
2567 * shrink-wrap.c (requires_stack_frame_p): Remove static.
2568 * shrink-wrap.h (requires_stack_frame_p): Put back.
2570 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
2572 * reload1.c (elimination_costs_in_insn): Locally turn
2573 -Wmaybe-uninitialized into a warning.
2575 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
2577 * shrink-wrap.c (requires_stack_frame_p): Make static.
2578 (prepare_shrink_wrap): Likewise.
2579 (dup_block_and_redirect): Likewise.
2580 * shrink-wrap.h: Remove declarations of those functions.
2582 2015-09-10 Mark Wielaard <mjw@redhat.com>
2584 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2586 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
2589 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2590 missing simplify_gen_subreg.
2592 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2594 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2595 the vector element is bigger than 64 bit.
2597 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2599 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2600 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2602 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2604 * config/s390/s390.c: Add V1TImode to constant pool modes.
2606 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2609 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2610 predicate. Set predicable_short_it attr to "no".
2612 2015-09-10 Jiong Wang <jiong.wang@arm.com>
2614 PR rtl-optimization/67421
2615 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2616 left wide shift tranformation.
2618 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2620 * common/config/arc/arc-common.c: Remove references to A5.
2621 * config/arc/arc-opts.h: Likewise.
2622 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2623 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2624 * config/arc/t-arc-newlib: Likewise.
2626 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
2628 * config/arc/arc.md (length): Fix attribute length for conditional
2629 executed instructions with long immediate.
2631 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2633 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2634 type for second alternative.
2636 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2638 * doc/invoke.texi (Downloading GCC): Mention
2639 contrib/download_prerequisites script.
2641 2015-09-10 Jakub Jelinek <jakub@redhat.com>
2644 * gimplify.c (gimplify_omp_for): If inner stmt is not found
2645 for combined loop, assert seen_error () and return GS_ERROR.
2648 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2649 if decl is already in outer->variables.
2652 * gimplify.c (gimplify_scan_omp_clauses): Instead of
2653 asserting that decl is not specified in octx->variables,
2654 break out of the loop if it is.
2657 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2658 iterator is not explicitly determined, but is defined inside
2659 of the combined workshare region, handle it like if it has
2660 DECL_EXPR in OMP_FOR_PRE_BODY.
2662 2015-09-09 Nathan Sidwell <nathan@acm.org>
2664 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2665 (*cmp<mode>): Add assembler spacing.
2666 (setcc_int<mode>, set_cc_float<mode>): Likewise.
2667 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2669 (write_func_decl_from_insn): Refactor argument loops & comma emission.
2670 (nvptx_expand_call): Likewise.
2671 (nvptx_output_call_insn): Likewise.
2672 (nvptx_reorg_subreg): Add spacing.
2674 2015-09-09 Marek Polacek <polacek@redhat.com>
2677 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2680 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2683 * doc/invoke.texi ([Wsubobject-linkage]): Document.
2685 2015-09-09 Tom de Vries <tom@codesourcery.com>
2687 * params-list.h: Add missing copyright notice.
2689 2015-09-09 Nathan Sidwell <nathan@acm.org>
2691 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2692 sel_truesi, not andsi.
2694 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2696 * config/arm/arm.md (*subsi3_compare0): Rename to...
2697 (subsi3_compare0): ... This.
2698 (modsi3): New define_expand.
2699 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2700 when operand is power of 2.
2702 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2704 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2705 (*neg<mode>2_compare0): Rename to...
2706 (neg<mode>2_compare0): ... This.
2707 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2708 Move check for speed inside the if-then-elses. Reflect
2709 CSNEG sequence in MOD by power of 2 case.
2711 2015-09-09 Alan Modra <amodra@gmail.com>
2714 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2715 reload replacement for PRE_MODIFY address reg.
2717 2015-09-09 Sebastian Pop <s.pop@samsung.com>
2719 PR tree-optimization/53852
2720 * config.in: Regenerate.
2721 * configure: Regenerate.
2722 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2723 * graphite-optimize-isl.c (optimize_isl): Stop computation when
2724 PARAM_MAX_ISL_OPERATIONS is reached.
2725 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2726 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2727 result equal to isl_stat_ok as the status now can be isl_error_quota.
2728 (subtract_commutative_associative_deps): Same.
2729 (compute_deps): Same.
2731 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2732 Sebastian Pop <s.pop@samsung.com>
2734 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2735 Return the parameter if it was saved in corresponding
2736 parameter_rename_map of the region.
2737 (copy_def): Copy def from sese region to the newly created region.
2738 (copy_internal_parameters): Copy all the internal parameters defined
2739 within a region to the newly created region.
2740 (graphite_regenerate_ast_isl): Copy parameters to the new region before
2741 translating isl to gimple.
2742 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2743 the loop-nest does not have any data-references.
2744 (build_graphite_scops): Create a scop only when there is at least one
2746 (contains_only_close_phi_nodes): Deleted.
2747 (print_graphite_scop_statistics): Deleted
2748 (print_graphite_statistics): Deleted
2749 (limit_scops): Deleted.
2750 (build_scops): Removed call to limit_scops.
2751 * sese.c (new_sese): Construct.
2752 (free_sese): Destruct.
2753 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2755 (set_rename): Pass sese region so that parameters inside the region can
2756 be added to its parameter_rename_map.
2757 (rename_uses): Pass sese region.
2758 (graphite_copy_stmts_from_block): Do not copy parameters that have been
2759 generated in the header of the scop. For each SSA_NAME in the
2760 parameter_rename_map rename its usage.
2761 (invariant_in_sese_p_rec): Return false if tree t is defined outside
2763 (scalar_evolution_in_region): If the tree t is invariant just return t.
2764 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2765 struct sese to keep track of all the parameters which need renaming.
2766 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2768 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2770 2015-09-08 Tom de Vries <tom@codesourcery.com>
2772 * Makefile.in (generated_files): Add params.list.
2773 (params.list, s-params.list): Add rule.
2774 * params.h (enum compiler_param): Include params-list.h. Move define
2775 DEFPARAM, include params.def and undef DEFPARAM ...
2776 * params-list.h: ... here. New file.
2778 2015-09-08 David Malcolm <dmalcolm@redhat.com>
2780 * pretty-print.h (printer_fn): Fix typo in comment.
2782 2015-09-07 Jeff Law <law@redhat.com>
2784 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2786 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2788 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2789 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2790 (arm_neon_fp16_hw): New.
2792 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2794 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2795 UNITS_PER_WORD >= 4.
2797 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2799 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2800 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2801 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2802 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2803 (aarch64_float_extend_lo_v2df): Rename to...
2804 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2806 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2807 (float_extend_lo): Add v4sf.
2809 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2810 * config/aarch64/iterators.md (VQ_HSF): New iterator.
2811 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2812 (Vwide): New mode_attr.
2814 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2816 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2817 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2818 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2819 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2820 V4HF and V8HF variants to iterator.
2822 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2824 * config/aarch64/iterators.md (VDQF_F16): New.
2825 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2827 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2829 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2830 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2831 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2832 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2833 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2834 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2835 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2836 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2837 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2838 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2839 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2840 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2841 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2842 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2843 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2844 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2845 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2846 vld1q_dup_f16): New.
2848 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2850 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2851 Reparameterize to...
2852 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2853 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2854 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2856 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2858 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2860 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2862 * config/aarch64/iterators.md (VDF, Vdtype): New.
2863 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2865 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2867 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2868 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2869 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2870 Add __builtin_aarch64_simd_hf.
2871 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2872 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2873 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2874 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2875 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2876 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2877 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2878 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2879 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2881 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2882 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2883 (VDC, Vdbl): Add V4HF.
2885 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2887 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2888 V4HFmode and V8HFmode.
2889 (aarch64_split_simd_move): Add case for V8HFmode.
2890 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2891 (aarch64_simd_builtin_std_type): Handle HFmode.
2892 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2894 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2895 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2896 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2898 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2901 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2902 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2904 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2905 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2906 vst1q_lane_f16): New.
2907 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2908 (VALLDI_F16, VALL_F16): New.
2909 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2910 Add cases for V4HF and V8HF.
2911 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2913 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2915 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2916 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2917 vld4_dup): Add v4hf variant.
2918 (vget_high, vget_low): Add v8hf variant.
2919 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2920 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2921 v4hf and v8hf variants.
2923 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2925 (V_DOUBLE): Add case for V4HF.
2927 (V_HALF): Add case for V8HF.
2928 (VDQX): Add V4HF, V8HF.
2929 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2930 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2932 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2933 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2934 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2935 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2936 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2937 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2938 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2939 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2940 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2942 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2943 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2944 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2945 Change VDX to VD_RE.
2947 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2948 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2949 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2951 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2952 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2953 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2954 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2955 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2956 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2957 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2958 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2959 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2961 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2963 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2964 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2965 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2966 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2967 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2968 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2969 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2970 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2971 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2972 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2975 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2977 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2979 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2981 * config/arm/arm-builtins.c (v8hf_UP): New.
2982 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2984 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2986 * config/arm/arm_neon.h (float16x8_t): New typedef.
2988 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2990 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2991 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2992 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2993 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2994 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2995 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2996 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2997 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2998 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2999 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
3001 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
3003 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
3004 non-alphanumeric characters in the symbol name.
3006 2015-09-07 Marek Polacek <polacek@redhat.com>
3009 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
3012 2015-09-07 Marek Polacek <polacek@redhat.com>
3014 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
3016 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
3018 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
3021 2015-09-04 Jakub Jelinek <jakub@redhat.com>
3024 * tree-ssa-live.c: Include cfgloop.h.
3025 (remove_unused_locals): Clear loop->simduid if simduid is about
3026 to be removed from cfun->local_decls.
3028 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3031 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
3034 2015-09-04 Tom de Vries <tom@codesourcery.com>
3036 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
3038 2015-09-04 Jeff Law <law@redhat.com>
3040 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
3041 unnecessary constructor. It's now trivial and implemented inside...
3042 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
3043 constructor. Add comments to various methods. Remove unused
3045 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
3046 * tree-vrp.c (identify_jump_threads): Likewise.
3047 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
3049 (thread_across_edge): Similarly.
3050 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
3051 arguments in constructor call.
3053 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3055 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
3056 temp path contains a '-'.
3058 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
3059 Petr Murzin <petr.murzin@intel.com>
3060 Kirill Yukhin <kirill.yukhin@intel.com>
3062 * config/i386/i386-builtin-types.def
3063 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
3064 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
3065 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
3066 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
3067 * config/i386/i386.c
3068 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
3069 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3070 IX86_BUILTIN_SCATTERALTDIV16SI.
3071 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
3072 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
3073 __builtin_ia32_scatteraltdiv8si.
3074 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
3075 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3076 IX86_BUILTIN_SCATTERALTDIV16SI.
3077 (ix86_vectorize_builtin_scatter): New.
3078 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
3079 ix86_vectorize_builtin_scatter.
3081 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
3082 Petr Murzin <petr.murzin@intel.com>
3083 Kirill Yukhin <kirill.yukhin@intel.com>
3085 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
3086 * doc/tm.texi: Regenerate.
3087 * target.def: Add scatter builtin.
3088 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
3089 for loads/stores in case of gather/scatter accordingly.
3090 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3091 STMT_VINFO_GATHER_P(S).
3092 (vect_check_gather): Rename to ...
3093 (vect_check_gather_scatter): this.
3094 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
3095 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
3096 (vect_check_gather_scatter): Use it instead of vect_check_gather.
3097 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
3098 variable and new checkings for it accordingly.
3100 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3101 STMT_VINFO_GATHER_P(S).
3102 (vect_check_gather_scatter): Use it instead of vect_check_gather.
3103 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
3105 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3107 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
3109 (mulv16qi3): New define_expand.
3111 2015-09-03 Martin Sebor <msebor@redhat.com>
3114 * doc/extend.texi (Other Builtins): Document when the address
3115 of a built-in function can be taken.
3117 2015-09-03 Richard Biener <rguenther@suse.de>
3119 * dwarf2out.c (flush_limbo_die_list): Split out from ...
3120 (dwarf2out_early_finish): ... here.
3121 (dwarf2out_finish): Do not call dwarf2out_early_finish but
3122 flush_limbo_die_list. Assert we have no deferred asm names.
3124 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3126 * optabs.c (expand_binop): Don't create a broadcast vector with a
3127 source element wider than the inner mode.
3129 2015-09-03 Richard Biener <rguenther@suse.de>
3131 * varasm.c (output_constant): Use fold_convert instead of
3134 2015-09-03 Tom de Vries <tom@codesourcery.com>
3136 PR tree-optimization/65637
3137 * omp-low.c (expand_omp_for_static_chunk): Handle case that
3138 fin_bb has 2 predecessors.
3140 2015-09-03 Tom de Vries <tom@codesourcery.com>
3142 PR tree-optimization/65637
3143 * omp-low.c (find_phi_with_arg_on_edge): New function.
3144 (expand_omp_for_static_chunk): Fix inner loop phi.
3146 2015-09-03 Tom de Vries <tom@codesourcery.com>
3148 PR tree-optimization/65637
3149 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
3152 2015-09-03 Tom de Vries <tom@codesourcery.com>
3154 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
3156 2015-09-03 Tom de Vries <tom@codesourcery.com>
3158 * doc/invoke.texi (parloops-chunk-size): Add item.
3159 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
3160 * tree-parloops.c: Include params.h.
3161 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
3162 param parloops-chunk-size is used.
3164 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3167 * fold-const.c (fold_binary_loc) : Move
3168 Transform (x >> c) << c into x & (-1<<c) or
3169 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
3170 types using simplify and match.
3171 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
3172 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
3174 2015-09-03 Richard Biener <rguenther@suse.de>
3177 * tree-ssa-structalias.c (ctor_for_analysis): New function.
3178 (create_variable_info_for_1): Use ctor_for_analysis instead
3180 (create_variable_info_for): Likewise.
3182 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
3185 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
3186 in new callgraph edge.
3188 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
3193 * config/aarch64/aarch64-simd.md
3194 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
3195 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
3196 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
3197 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
3199 2015-09-02 Alan Modra <amodra@gmail.com>
3201 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
3202 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
3203 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
3205 2015-09-02 Alan Modra <amodra@gmail.com>
3208 * config/rs6000/predicates.md (current_file_function_operand): Don't
3209 return true for weak symbols.
3210 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
3212 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
3213 Andrew Bennett <andrew.bennett@imgtec.com>
3215 * config/mips/mips-opts.h (mips_cb_setting): New enum.
3216 * config/mips/mips-protos.h: Add definitions for
3217 mips_output_jump and mips_output_equal_conditional_branch
3218 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
3220 (mips_emit_compare): Add support for the MIPS R6 conditional
3222 (mips_process_sync_loop): Likewise.
3223 (mips_output_order_conditional_branch): Likewise.
3224 (mips16_build_call_stub): Change MIPS_CALL to
3226 (mips_print_operand_punctuation): Update 's' case to only
3227 apply to micromips r2.
3228 (mips_adjust_insn_length): Add support for forbidden slot
3230 (mips_avoid_hazard): Likewise.
3231 (mips_reorg_process_insns): Likewise.
3232 (mips_output_jump): New function.
3233 (mips_output_equal_conditional_branch): Likewise.
3234 (mips_output_conditional_branch): Use jrc/bc if compact
3235 branch support is enabled. Ensure the forbidden slots
3236 between the two branch instructions is filled with a nop.
3237 (mips_option_override): Add support to process the compact
3238 branch option and set the correct defaults. Prevent
3239 non-explict relocs being using for MIPS R6.
3240 (mips_trampoline_init): Add compact branch support.
3241 (mips_mult_zero_zero_cost): Allow zero initialisation of
3242 accumulators with TARGET_DSP.
3243 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
3244 (TARGET_CB_MAYBE): New define.
3245 (TARGET_CB_ALWAYS): New define.
3246 (ISA_HAS_DELAY_SLOTS): New define.
3247 (ISA_HAS_COMPACT_BRANCHES): New define.
3248 (ISA_HAS_JRC): New define.
3249 (MIPS_BRANCH_C): New define.
3250 (MIPS_CALL): Removed.
3251 (MICROMIPS_J): Removed.
3252 * config/mips/mips.md (compact_form): New attr.
3253 (hazard): Add support for forbidden slots.
3254 (define_delay): Add support for compact branches.
3255 (*branch_order<mode>): Likewise.
3256 (*branch_order<mode>_inverted): Likewise.
3257 (*branch_equality<mode>): Likewise.
3258 (*branch_equality<mode>_inverted): Likewise.
3259 (*jump_absolute): Likewise.
3260 (*jump_pic): Likewise.
3261 (indirect_jump): Use mips_output_jump to produce assembly output.
3262 (tablejump_<mode>"): Likewise.
3263 (*<optab>"): Likewise.
3264 (<optab>_internal): Likewise.
3265 (sibcall_internal): Likewise.
3266 (sibcall_value_internal): Likewise.
3267 (sibcall_value_multiple_internal): Likewise.
3268 (call_internal): Likewise.
3269 (call_split): Likewise.
3270 (call_internal_direct): Likewise.
3271 (call_direct_split): Likewise.
3272 (call_value_internal): Likewise.
3273 (call_value_split): Likewise.
3274 (call_value_internal_direct): Likewise.
3275 (call_value_direct_split): Likewise.
3276 (call_value_multiple_internal): Likewise.
3277 (call_value_multiple_split): Likewise.
3278 (mips_get_fcsr_mips16_<mode>): Likewise.
3279 (mips_set_fcsr_mips16_<mode>): Likewise.
3280 (tls_get_tp_mips16_<mode>): Likewise.
3281 * config/mips/mips.opt: Add -mcompact-branches option.
3282 * config/mips/predicates.md (order_operator): Ensure the
3283 conditional compact branches are only used if the ISA them.
3284 * doc/invoke.texi: Document -mcompact-branches option.
3286 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
3289 * lra-lives.c (process_bb_lives): Process move pseudos with the
3290 same value for copies and preferences
3291 * lra-constraints.c (match_reload): Create match reload pseudo
3292 with the same value from single dying input pseudo.
3294 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3297 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
3299 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
3301 * trans-mem.c: Add contributed-by.
3302 * trans-mem.h: Same.
3304 2015-09-01 Richard Biener <rguenther@suse.de>
3306 * expr.c (expand_expr_real_1): For expanding TERed defs
3307 set the current location to that of the def if not UNKNOWN.
3309 2015-09-01 David Sherwood <david.sherwood@arm.com>
3311 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
3313 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3315 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
3316 then_cost, else_cost fields. Change branch_cost field to unsigned int.
3317 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
3319 (noce_simple_bbs): New function.
3320 (noce_try_move): Bail if basic blocks are not simple.
3321 (noce_try_store_flag): Likewise.
3322 (noce_try_store_flag_constants): Likewise.
3323 (noce_try_addcc): Likewise.
3324 (noce_try_store_flag_mask): Likewise.
3325 (noce_try_cmove): Likewise.
3326 (noce_try_minmax): Likewise.
3327 (noce_try_abs): Likewise.
3328 (noce_try_sign_mask): Likewise.
3329 (noce_try_bitop): Likewise.
3330 (bbs_ok_for_cmove_arith): New function.
3331 (noce_emit_all_but_last): Likewise.
3332 (noce_emit_insn): Likewise.
3333 (noce_emit_bb): Likewise.
3334 (noce_try_cmove_arith): Handle non-simple basic blocks.
3335 (insn_valid_noce_process_p): New function.
3336 (contains_mem_rtx_p): Likewise.
3337 (bb_valid_for_noce_process_p): Likewise.
3338 (noce_process_if_block): Allow non-simple basic blocks
3341 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
3343 * tree-ssa-dom.c (record_equivalences_from_phis,
3344 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
3345 (lookup_avail_expr): Likewise, and remove comment and unused temp.
3347 2015-09-01 Nick Clifton <nickc@redhat.com>
3349 * config/msp430/msp430.opt (mcpu): Fix typo.
3351 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3353 * config/aarch64/aarch64.c (aarch64_set_current_function):
3354 Re-layout any vector parameters have non-simd layout.
3355 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
3357 (aarch64_simd_expand_args): Delete call to the above.
3359 2015-08-31 Mike Frysinger <vapier@gentoo.org>
3361 * doc/invoke.texi (asan-stack): Add space before option.
3363 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3365 * tree.h (zerop): New function.
3366 * tree.c (zerop): Likewise.
3367 (element_precision): Handle expressions.
3368 * match.pd (define_predicates): Add zerop.
3369 (x <= +Inf): Fix comment.
3370 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
3371 * fold-const.c (fold_binary_loc): ... here. Remove.
3373 2015-08-31 Richard Biener <rguenther@suse.de>
3376 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
3378 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
3380 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
3381 (CEXPI): New operator list.
3382 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
3383 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
3385 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
3387 2015-08-31 Tom de Vries <tom@codesourcery.com>
3389 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
3390 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
3392 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
3393 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
3394 (rewrite_into_loop_closed_ssa): ... here.
3395 (replace_uses_in_dominated_bbs): Remove function.
3396 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
3397 rewrite_into_loop_closed_ssa_1.
3399 2015-08-31 Michael Matz <matz@suse.de>
3401 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
3402 enter entry and exit blocks for reverse post order.
3404 2015-08-31 Richard Biener <rguenther@suse.de>
3406 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
3407 (lto_location_cache::current_sysp): Likewise.
3408 (output_block::current_sysp): Likewise.
3409 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
3410 (lto_location_cache::apply_location_cache): Properly record
3411 system header locations.
3412 (lto_location_cache::input_location): Input whether a file
3414 * lto-streamer-out.c (lto_output_location): Stream whether a file
3417 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3420 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
3422 2015-08-31 Tom de Vries <tom@codesourcery.com>
3424 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
3425 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
3426 Improve function header comments.
3428 2015-08-30 Michael Collison <michael.collison@linaro.org>
3431 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
3434 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3436 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
3437 special_handling bitfield.
3438 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
3439 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
3440 that represents a general xxpermdi.
3441 (insn_is_swappable_p): Add handling for vec_concat of two
3442 doublewords, which maps to a specific xxpermdi.
3443 (adjust_xxpermdi): New function.
3444 (adjust_concat): Likewise.
3445 (handle_special_swappables): Call adjust_xxpermdi and
3447 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
3449 2015-08-30 Rich Felker <dalias@libc.org>
3451 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
3452 case instead of sh[123456ble]-*-*.
3454 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3456 * ira.c (print_unform_and_important_classes,
3457 print_translated_classes): Remove reg_class_names static array.
3458 (print_unform_and_important_classes): Rename to ...
3459 (print_uniform_and_important_classes): ... this.
3460 (ira_debug_allocno_classes): Update accordingly.
3462 2015-08-29 Tom de Vries <tom@codesourcery.com>
3464 PR tree-optimization/46193
3465 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
3468 2015-08-28 Jeff Law <law@redhat.com>
3471 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3472 unable to find X NE 0 in the tables, return X as the simplified
3474 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3475 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3477 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3478 after removing the control flow statement and unnecessary edges.
3480 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
3483 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3485 PR tree-optimization/67283
3486 * tree-sra.c (type_consists_of_records_p): Rename to...
3487 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3489 (completely_scalarize_record): Rename to...
3490 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
3492 (scalarize_elem): New.
3494 2015-08-28 Jiong Wang <jiong.wang@arm.com>
3496 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
3497 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
3498 (aarch64_symbol_type): Likewise.
3499 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3501 (aarch64_expand_mov_immediate): Likewise.
3502 (aarch64_print_operand): Likewise.
3503 (aarch64_classify_tls_symbol): Likewise.
3505 2015-08-28 Richard Biener <rguenther@suse.de>
3507 * cgraphunit.c (symbol_table::compile): Move early debug generation
3509 (symbol_table::finalize_compilation_unit): ... back here and
3510 add a !seen_error () guard.
3512 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3514 * toplev.c (process_options): Do not use flag_loop_block,
3515 flag_loop_interchange, and flag_loop_strip_mine. Add check for
3516 flag_loop_optimize_isl.
3518 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3520 * Makefile.in (OBJS): Remove graphite-blocking.o and
3521 graphite-interchange.o.
3522 * common.opt (floop-strip-mine, floop-interchange, floop-block):
3523 Alias of floop-nest-optimize.
3524 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3525 Document as alias of -floop-nest-optimize.
3526 * graphite-blocking.c: Remove.
3527 * graphite-interchange.c: Remove.
3528 * graphite-optimize-isl.c: Include dumpfile.h.
3529 (getScheduleForBand): Add dump for tiled loops. Use
3530 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3531 * graphite-poly.c (scop_max_loop_depth): Remove.
3532 (print_scattering_function_1): Remove.
3533 (print_scattering_function): Remove.
3534 (print_scattering_functions): Remove.
3535 (debug_scattering_function): Remove.
3536 (debug_scattering_functions): Remove.
3537 (apply_poly_transforms): Remove use of flag_loop_block,
3538 flag_loop_strip_mine, and flag_loop_interchange.
3539 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3541 (print_pdr_access_layout): Remove.
3542 (print_pdr): Print ISL representation.
3543 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3544 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3546 (openscop_print_pbb_domain): Remove.
3547 (print_pbb): Remove call to print_scattering_function.
3548 (openscop_print_scop_context): Remove.
3549 (print_scop_context): Do not print matrices anymore.
3550 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3551 SCOP_TRANSFORMED_SCHEDULE.
3552 (print_isl_set): Add printing of a new line.
3553 (print_isl_map): Same.
3554 (print_isl_aff): Same.
3555 (print_isl_constraint): Same.
3556 (loop_to_lst): Remove.
3557 (scop_to_lst): Remove.
3558 (lst_indent_to): Remove.
3559 (print_lst): Remove.
3560 (debug_lst): Remove.
3561 (dot_lst_1): Remove.
3563 (reverse_loop_at_level): Remove.
3564 (reverse_loop_for_pbbs): Remove.
3565 * graphite-poly.h (pdr_dim_iter_domain): Remove.
3566 (pdr_nb_params): Remove.
3567 (pdr_alias_set_dim): Remove.
3568 (pdr_subscript_dim): Remove.
3569 (pdr_iterator_dim): Remove.
3570 (pdr_parameter_dim): Remove.
3571 (same_pdr_p): Remove.
3572 (struct poly_scattering): Remove.
3573 (struct poly_bb): Remove _original, _transformed, _saved.
3574 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3575 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3576 (PBB_NB_LOCAL_VARIABLES): Remove.
3577 (PBB_NB_SCATTERING_TRANSFORM): Remove.
3578 (schedule_to_scattering): Remove.
3579 (number_of_write_pdrs): Remove.
3580 (pbb_dim_iter_domain): Remove.
3581 (pbb_nb_params): Remove.
3582 (pbb_nb_scattering_orig): Remove.
3583 (pbb_nb_scattering_transform): Remove.
3584 (pbb_nb_dynamic_scattering_transform): Remove.
3585 (pbb_nb_local_vars): Remove.
3586 (pbb_iterator_dim): Remove.
3587 (pbb_parameter_dim): Remove.
3588 (psco_scattering_dim): Remove.
3589 (psct_scattering_dim): Remove.
3590 (psct_local_var_dim): Remove.
3591 (psco_iterator_dim): Remove.
3592 (psct_iterator_dim): Remove.
3593 (psco_parameter_dim): Remove.
3594 (psct_parameter_dim): Remove.
3595 (psct_dynamic_dim): Remove.
3596 (psct_static_dim): Remove.
3597 (psct_add_local_variable): Remove.
3598 (new_lst_loop): Remove.
3599 (new_lst_stmt): Remove.
3602 (lst_add_loop_under_loop): Remove.
3603 (lst_depth): Remove.
3604 (lst_dewey_number): Remove.
3605 (lst_dewey_number_at_depth): Remove.
3608 (lst_find_pbb): Remove.
3609 (find_lst_loop): Remove.
3610 (lst_find_first_pbb): Remove.
3611 (lst_empty_p): Remove.
3612 (lst_find_last_pbb): Remove.
3613 (lst_contains_p): Remove.
3614 (lst_contains_pbb): Remove.
3615 (lst_create_nest): Remove.
3616 (lst_remove_from_sequence): Remove.
3617 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3618 (lst_niter_for_loop): Remove.
3619 (pbb_update_scattering): Remove.
3620 (lst_update_scattering_under): Remove.
3621 (lst_update_scattering): Remove.
3622 (lst_insert_in_sequence): Remove.
3623 (lst_replace): Remove.
3624 (lst_substitute_3): Remove.
3625 (lst_distribute_lst): Remove.
3626 (lst_remove_all_before_including_pbb): Remove.
3627 (lst_remove_all_before_excluding_pbb): Remove.
3628 (struct scop): Remove original_schedule, transformed_schedule, and
3630 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3631 (SCOP_SAVED_SCHEDULE): Remove.
3632 (poly_scattering_new): Remove.
3633 (poly_scattering_free): Remove.
3634 (poly_scattering_copy): Remove.
3635 (store_scattering_pbb): Remove.
3636 (store_lst_schedule): Remove.
3637 (restore_lst_schedule): Remove.
3638 (store_scattering): Remove.
3639 (restore_scattering_pbb): Remove.
3640 (restore_scattering): Remove.
3641 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3642 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
3643 compute the scattering polyhedron dimension from the dimension of
3645 (build_scop_scattering): Update call to
3646 build_pbb_scattering_polyhedrons.
3647 (build_poly_scop): Remove call to scop_to_lst.
3648 * graphite.c (graphite_transform_loops): Add call to print_scop.
3649 (gate_graphite_transforms): Remove use of flag_loop_block,
3650 flag_loop_interchange, and flag_loop_strip_mine.
3652 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3654 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3655 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3656 -floop-nest-optimize.
3657 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3658 (generate_luj_sepclass): Remove.
3659 (generate_luj_options): Remove.
3660 (set_options): Remove opt_luj.
3661 (scop_to_isl_ast): Remove opt_luj.
3662 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3663 flag_loop_unroll_jam.
3664 (getPrevectorMap_full): Remove.
3665 (getScheduleForBandList): Remove map_sepcl.
3666 (getScheduleMap): Same.
3667 (apply_schedule_map_to_scop): Remove sepcl.
3668 (optimize_isl): Same.
3669 * graphite-poly.c (apply_poly_transforms): Remove check for
3670 flag_loop_unroll_jam.
3671 (new_poly_bb): Remove map_sepclass.
3672 * graphite-poly.h (struct poly_bb): Same.
3673 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3674 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3675 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3676 * toplev.c (process_options): Remove flag_loop_unroll_jam.
3678 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
3681 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3683 (UNSPEC_ADD_CARRY): Remove.
3684 (addqi3_cconly_overflow): New expander.
3685 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3686 Adjust for changed add<mode>3_carry.
3687 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3688 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3689 (<plusminus_insn><mode>3_carry): Remove expander.
3690 (*<plusminus_insn><mode>3_carry): Split insn pattern to
3691 add<mode>3_carry and sub<mode>3_carry.
3692 (plusminus_carry_mnemonic): Remove code attribute.
3693 (add<mode>3_carry): Canonicalize insn pattern.
3694 (*addsi3_carry_zext): Ditto.
3695 (sub<mode>3_carry): Ditto.
3696 (*subsi3_carry_zext): Ditto.
3697 (adcx<mode>3): Remove insn pattern.
3698 (addcarry<mode>): New insn pattern.
3699 (subborrow<mode>): Ditto.
3700 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3701 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3702 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3703 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3704 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3705 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3706 Rewrite expander to not clobber carry flag chains.
3708 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
3710 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3711 instead of a rotate.
3713 2015-08-27 Marek Polacek <polacek@redhat.com>
3716 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3717 an entry into an irreducible region.
3719 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3721 * configure: Regenerate.
3723 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3725 PR tree-optimization/67283
3726 * tree-sra.c (type_consists_of_records_p): Rename to...
3727 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3729 (completely_scalarize_record): Rename to...
3730 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3731 (scalarize_elem): New.
3733 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
3735 * tree-sra.c (completely_scalarize_var): Rename to...
3736 (create_total_scalarization_access): ... Here. Drop call to
3737 completely_scalarize_record.
3739 (analyze_all_variable_accesses): Replace completely_scalarize_var
3740 with create_total_scalarization_access and completely_scalarize_record.
3742 2015-08-27 Alan Modra <amodra@gmail.com>
3745 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3748 2015-08-27 Richard Biener <rguenther@suse.de>
3750 * passes.c (rest_of_decl_compilation): Guard early_global_decl
3751 call with !seen_error ().
3752 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3753 early debug generation and finish...
3754 (symbol_table::compile): ... here to put it after a !seen_error ()
3757 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3759 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3762 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3763 Andre Vieira <andre.simoesdiasvieira@arm.com>
3765 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3766 (*cb<optab><mode>1): Likewise.
3767 (*tb<optab><mode>1): Likewise.
3768 (*cb<optab><mode>1): Likewise.
3769 * config/aarch64/iterators.md (inv_cb): New code attribute.
3771 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3772 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3774 2015-08-27 Richard Biener <rguenther@suse.de>
3776 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3778 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3780 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3783 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3785 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3788 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3790 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3791 floating point in VSX registers.
3792 (rs6000_output_move_128bit): Always print out the set insn if we
3793 can't generate an appropriate 128-bit move.
3794 (rs6000_generate_compare): Add support for IEEE 128-bit floating
3795 point in VSX registers comparisons.
3796 (rs6000_expand_float128_convert): Likewise.
3798 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3799 predicate for only GPR hard registers.
3801 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3802 modes to iterators. Add new iterators for moving 128-bit values in
3803 scalar FPR registers and VSX registers.
3804 (FMOVE128): Likewise.
3805 (FMOVE128_FPR): Likewise.
3806 (FMOVE128_GPR): Likewise.
3807 (FMOVE128_VSX): Likewise.
3808 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3813 (RELOAD): Add IEEE 128-bit floating point modes.
3814 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3815 floating point in VSX registers modes.
3816 (signbit<mode>2, IBM128 iterator): Likewise.
3817 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3818 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3820 (neg<mode>2, TFIFKF iterator): Likewise.
3821 (negtf2_internal): Likewise.
3823 (abs<mode>2, TFIFKF iterator): Likewise.
3824 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3825 VSX insn support for negate, absolute value, and negative absolute
3827 (ieee_128bit_vsx_neg<mode>2): Likewise.
3828 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3829 (ieee_128bit_vsx_abs<mode>2): Likewise.
3830 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3831 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3832 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3833 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3834 floating point in VSX registers.
3835 (unpack<mode>_dm): Likewise.
3836 (unpack<mode>_nodm): Likewise.
3837 (pack<mode>): Likewise.
3838 (unpackv1ti): Likewise.
3839 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3840 (packv1ti): Likewise.
3841 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3842 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3844 (extenddftf2_internal): Likewise.
3845 (trunctfdf2): Likewise.
3846 (trunctfdf2_internal2): Likewise.
3847 (fix_trunc_helper): Likewise.
3848 (fix_trunctfdi2"): Likewise.
3849 (floatditf2): Likewise.
3850 (floatuns<mode>tf2): Likewise.
3851 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3852 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3853 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3854 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3855 (float<SDI:mode><IFKF:mode>2): Likewise.
3856 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3858 2015-08-26 Renlin Li <renlin.li@arm.com>
3860 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3862 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3863 Jiong Wang <jiong.wang@arm.com>
3865 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3866 (tlsie_tiny_<mode>): New define_insn.
3867 (tlsie_tiny_sidi): Likewise.
3868 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3870 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3871 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3873 (aarch64_expand_mov_immediate): Likewise.
3874 (aarch64_print_operand): Likewise.
3875 (arch64_classify_tls_symbol): Likewise.
3877 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3879 * config/arm/arm-arches.def: Replace single value flags with
3880 an initializer built from ARM_FSET_MAKE_CPU1.
3881 * config/arm/arm-cores.def: Likewise.
3882 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3883 derivation from the ARM_CORE macro definition, use the given value
3885 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3886 ARM_ARCH macro definition, use the given value instead.
3888 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3890 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3892 (struct builtin_description): Replace field mask with field
3894 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3895 (IWMMXT2_BUILTIN): Likewise.
3896 (IWMMXT2_BUILTIN2): Likewise.
3897 (FP_BUILTIN): Likewise.
3898 (CRC32_BUILTIN): Likewise.
3899 (CRYPTO_BUILTIN): Likewise.
3900 (iwmmx_mbuiltin): Likewise.
3901 (iwmmx2_mbuiltin): Likewise.
3902 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3903 struct builtin_description.
3905 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3907 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3908 (struct builtin_description): Change type of mask to unsigned
3910 * config/arm/arm-protos.h (insn_flags): Declare as type
3912 (tune_flags): Likewise.
3913 * config/arm/arm.c (feature_count): New.
3914 (insn_flags): Define as type arm_feature_set.
3915 (tune_flags): Likewise.
3916 (struct processors): Define field flags as type arm_feature_set.
3917 (all_cores): Update for change to struct processors.
3918 (all_architectures): Likewise.
3919 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3921 (arm_option_override_internal): Likewise.
3922 (arm_option_override): Likewise.
3924 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3925 Jiong Wang <jiong.wang@arm.com>
3927 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3928 tls size for tiny, small, large memory model.
3929 (aarch64_load_symref_appropriately): Support new symbol types.
3930 (aarch64_expand_mov_immediate): Likewise.
3931 (aarch64_print_operand): Likewise.
3932 (aarch64_classify_tls_symbol): Likewise.
3933 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3934 (aarch64_symbol_type): Likewise.
3935 * config/aarch64/aarch64.md (tlsle): Deleted.
3936 (tlsle12_<mode>): New define_insn.
3937 (tlsle24_<mode>): Likewise.
3938 (tlsle32_<mode>): Likewise.
3939 (tlsle48_<mode>): Likewise.
3940 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3943 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3945 * config/arm/arm-protos.h (FL_NONE): New.
3947 (arm_feature_set): New.
3948 (ARM_FSET_MAKE): New.
3949 (ARM_FSET_MAKE_CPU1): New.
3950 (ARM_FSET_MAKE_CPU2): New.
3951 (ARM_FSET_CPU1): New.
3952 (ARM_FSET_CPU2): New.
3953 (ARM_FSET_EMPTY): New.
3954 (ARM_FSET_ANY): New.
3955 (ARM_FSET_HAS_CPU1): New.
3956 (ARM_FSET_HAS_CPU2): New.
3957 (ARM_FSET_HAS_CPU): New.
3958 (ARM_FSET_ADD_CPU1): New.
3959 (ARM_FSET_ADD_CPU2): New.
3960 (ARM_FSET_DEL_CPU1): New.
3961 (ARM_FSET_DEL_CPU2): New.
3962 (ARM_FSET_UNION): New.
3963 (ARM_FSET_INTER): New.
3964 (ARM_FSET_XOR): New.
3965 (ARM_FSET_EXCLUDE): New.
3966 (AFM_FSET_IS_EMPTY): New.
3967 (ARM_FSET_CPU_SUBSET): New.
3969 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3971 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3972 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3973 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3975 (aarch64_expand_mov_immediate): Likewise.
3976 (aarch64_print_operand): Likewise.
3977 (aarch64_classify_symbol): Likewise.
3979 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3981 * config/aarch64/aarch64.opt (mtls-size): New entry.
3982 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3983 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3984 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3986 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3988 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3989 ARM_CORE entry. Fix some white-space.
3990 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3991 ARM_CORE definition.
3993 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3995 * fold-const.c (fold_binary_loc) : Move Optimize
3996 root(x)*root(y) as root(x*y) to match.pd.
3997 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3998 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3999 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
4000 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
4001 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
4002 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
4003 (mult (exps:s @0) (exps:s @1)) : New simplifier.
4004 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
4005 (rdiv @0 (exps:s @1)) : New simplifier.
4007 2015-08-25 Joseph Myers <joseph@codesourcery.com>
4009 * gcc.c (driver::finalize): Only assign to extra_specs if
4012 2015-08-25 Marek Polacek <polacek@redhat.com>
4015 * varasm.c (declare_weak): Return after giving an error.
4017 2015-08-25 David Malcolm <dmalcolm@redhat.com>
4019 * gcc-main.c (main): Add params to driver ctor.
4020 * gcc.c (class env_manager): New.
4022 (env_manager::init): New.
4023 (env_manager::get): New.
4024 (env_manager::xput): New.
4025 (env_manager::restore): New.
4026 Poison getenv and putenv.
4027 (DEFAULT_TARGET_SYSTEM_ROOT): New.
4028 (target_system_root): Update initialization to use
4029 DEFAULT_TARGET_SYSTEM_ROOT.
4030 (struct spec_list): Add field "default_ptr".
4031 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
4032 (init_spec): Likewise.
4033 (set_spec): Clear field "default_ptr".
4034 (read_specs): Free "spec" and "buffer".
4035 (xputenv): Reimplement in terms of env_manager.
4036 (process_command): Replace ::getenv calls with calls to the
4037 env_manager singleton.
4038 (process_brace_body): Free string in three places.
4039 (driver::driver): New.
4040 (driver::~driver): New.
4041 (used_arg): Convert from a function to...
4042 (class used_arg_t): ...this class, and...
4043 (used_arg): ...this new global instance.
4044 (used_arg_t::finalize): New function.
4045 (getenv_spec_function): Add "const" to local "value". Replace
4046 ::getenv call with call to the env_manager singleton.
4047 (path_prefix_reset): New function.
4048 (driver::finalize): New function.
4049 * gcc.h (driver::driver): New.
4050 (driver::~driver): New.
4051 (driver::finalize): New.
4053 2015-08-25 Nathan Sidwell <nathan@acm.org>
4055 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
4056 target doesn't have one.
4058 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
4061 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
4063 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
4066 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
4067 a define_insn, remove second alternative.
4069 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
4070 Joseph Myers <joseph@codesourcery.com>
4072 * gcc.c (struct switchstr): Expand comment.
4074 2015-08-25 Nathan Sidwell <nathan@acm.org>
4076 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
4077 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
4079 2015-08-25 Richard Biener <rguenther@suse.de>
4082 * genmatch.c (expr::gen_transform): Verify the result of
4083 builtin_decl_implicit.
4084 (dt_simplify::gen_1): Likewise.
4086 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4088 * config/arm/constraints.md: Also list Cs and US ARM-specific
4089 constraints as used.
4091 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
4094 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
4096 (nonpic_symbol_mentioned_p): Likewise.
4097 (sh_delegitimize_address): Likewise.
4098 (sh_function_ok_for_sibcall): Take into account weak symbols.
4099 (sh_expand_sym_label2reg): New.
4100 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
4101 * config/sh/sh.md (UNSPEC_PCREL): New enum.
4102 (call_pcrel): Use sh_expand_sym_label2reg.
4103 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4104 (symPCREL_label2reg) New expand.
4106 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
4108 * graphite-poly.c: Change type of region from void* to sese.
4109 * graphite-poly.h (struct scop): Changing the type of scop::region
4110 from void* to sese. Change accessor macro accordingly.
4111 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
4113 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
4115 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4116 Constrain only on INTEGER_TYPE.
4118 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4121 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
4122 -mefficient-unaligned-vsx on ISA 2.7.
4124 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
4125 option to a masked option.
4127 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
4128 logic for -mefficient-unaligned-vsx so that it is set via an arch
4129 ISA option, instead of being set if -mtune=power8 is set. Move
4130 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
4131 near other default option handling.
4133 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4135 * genflags.c (gen_macro): Delete.
4136 (gen_proto): Don't create GEN.*CALL.* macros.
4137 * gensupport.h (get_file_location): Declare.
4138 * gensupport.c (rtx_locs): New variable.
4139 (read_md_rtx): Record rtx locations.
4140 (get_file_location): New function.
4141 * target-insns.def (call, call_pop, call_value, call_value_pop)
4142 (sibcall, sibcall_value): New patterns.
4143 * gentarget-def.c (parse_argument): New function.
4144 (def_target_insn): Use it. Handle optional operands. Raise an
4145 error if an .md pattern has the wrong number of operands for the
4146 pattern name. Remove the names of unused operands from the prototype.
4147 * builtins.c (expand_builtin_apply): Use targetm functions
4148 instead of HAVE_call_value and GEN_CALL_VALUE.
4149 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
4150 and sibcall_value_pop.
4151 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
4153 * config/alpha/alpha.md (untyped_call): Likewise.
4154 * config/iq2000/iq2000.md (untyped_call): Likewise.
4155 * config/m68k/m68k.md (untyped_call): Likewise.
4156 * config/mips/mips.md (untyped_call): Likewise.
4157 * config/pa/pa.md (untyped_call): Likewise.
4158 * config/rs6000/rs6000.md (untyped_call): Likewise.
4159 * config/sparc/sparc.md (untyped_call): Likewise.
4160 * config/tilegx/tilegx.md (untyped_call): Likewise.
4161 * config/tilepro/tilepro.md (untyped_call): Likewise.
4162 * config/visium/visium.md (untyped_call): Likewise.
4163 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
4164 gen_call_value instead of GEN_CALL_VALUE.
4165 * config/arm/arm.md (untyped_call): Likewise.
4166 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
4169 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4171 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
4172 (have_cbranchcc4): New variable.
4173 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
4174 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
4175 (if_convert): Initialize have_cbranchcc4.
4177 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4179 * builtins.c (expand_cmpstrn): Rename to...
4180 (expand_cmpstrn_or_cmpmem): ...this.
4181 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
4182 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
4183 Remove mode argument.
4184 (expand_builtin): Update accordingly.
4186 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4188 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
4189 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
4190 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
4191 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
4192 Add predicates for operands 0 and 3.
4193 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
4195 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
4196 immediate_operand to nonmemory_operand.
4198 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4200 * df-scan.c (df_insn_info_init_fields): New function, split out
4202 (df_insn_create_insn_record): ...here.
4203 (df_insn_info_free_fields): New function, split out from...
4204 (df_insn_info_delete): ...here.
4205 (df_insn_rescan): Use the new functions instead of freeing and
4206 reallocating the df_insn_info.
4208 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4210 * doc/install.texi (Binaries): Remove links no longer valid.
4212 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
4214 * config/nvptx/mkoffload.c (process): Replace
4215 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
4217 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
4220 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
4222 2015-08-24 Renlin Li <renlin.li@arm.com>
4224 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
4225 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
4226 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
4227 * config/arm/constraints.md ("j"): Add check for high code.
4229 2015-08-24 Tom de Vries <tom@codesourcery.com>
4231 PR tree-optimization/65468
4232 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
4235 2015-08-24 Nathan Sidwell <nathan@acm.org>
4237 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
4238 change to nvptx_type_from_mode call. Use arg_promotion for both
4239 split and non-split args.
4241 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4243 * target-insns.def (movstr): New pattern.
4244 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
4245 (expand_movstr): Use targetm rather than HAVE_movstr/
4248 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
4250 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
4253 2015-08-24 Andrew Pinski <apinski@cavium.com>
4255 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
4256 AARCH64_EXTRA_TUNING_OPTION.
4257 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
4259 (aarch64_extra_tuning_flags): Base the shifted value on the index
4260 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
4261 * config/aarch64/aarch64.c: Remove the last argument to
4262 AARCH64_EXTRA_TUNING_OPTION.
4264 2015-08-23 Nathan Sidwell <nathan@acm.org>
4266 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
4268 (nvptx_declare_function_name): Insert formatting tabs for
4271 2015-08-23 Tom de Vries <tom@codesourcery.com>
4273 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
4274 parm_decl, rather than generating a dummy default def in cfun.
4275 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
4276 ssa_name from cfun and child_fn do not share a stmt as def stmt.
4277 (move_stmt_op): Handle PARM_DECl.
4278 (gather_ssa_name_hash_map_from): New function.
4279 (move_sese_region_to_fn): Add default defs for function params, and add
4280 them to vars_map. Release copied ssa names.
4281 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
4283 2015-08-23 Tom de Vries <tom@codesourcery.com>
4285 * doc/sourcebuild.texi: Rename vect_no_int_max with
4286 vect_no_int_min_max. Update description.
4288 2015-08-22 Andrew Pinski <apinski@cavium.com>
4290 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
4291 * config/aarch64/aarch64-protos.h
4292 (aarch64_fusion_pairs_index): New enum.
4293 (aarch64_fusion_pairs): Base the shifted value on the index instead
4294 Rewrite AARCH64_FUSE_ALL to be based on the end index.
4295 of the argument to AARCH64_FUSION_PAIR.
4296 * config/aarch64/aarch64.c: Remove the last argument to
4297 AARCH64_FUSION_PAIR.
4299 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
4301 * dominance.c (new_zero_array): Define.
4302 (dom_info): Redefine as class with proper encapsulation.
4303 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
4305 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
4306 allocations/deallocations. Pass function as parameter (instead of
4308 (dom_info::get_idom): Define accessor method.
4309 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
4310 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
4311 (calculate_dominance_info): Adjust to use dom_info class.
4312 (verify_dominators): Likewise.
4314 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
4316 * print-rtl.c (print_rtx): Check the correct range for
4317 flag_dump_unnumbered_links to behave as documented.
4319 PR rtl-optimization/67227
4320 PR rtl-optimization/64164
4321 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
4322 (nonoverlapping_memrefs_p): Test offsets and sizes when given
4323 identical gimple_reg exprs.
4325 2015-08-21 Nathan Sidwell <nathan@acm.org>
4327 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
4329 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
4330 crtl->stack_alignment_needed to determine alignment.
4331 (nvptx_get_drap_rtx): New.
4332 (TARGET_GET_DRAP_RTX): Override.
4333 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
4335 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4337 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
4339 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4341 * configure.ac: Remove uwin* cases.
4342 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
4343 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
4344 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
4345 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
4346 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
4347 i[34567]86-*-uwin*, powerpc-*-beos*.
4349 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
4351 * gencodes.c (gencodes): Print the comma for the preceding
4352 enum value rather than the current one. Use aliased enum values
4353 rather than #defines for compiled-out patterns.
4354 (main): Update accordingly. Replace LAST_INSN_CODE with
4356 * lra.c (insn_code_data): Update accordingly.
4357 (finish_insn_code_data_once, get_static_insn_data): Likewise.
4358 * recog.h (target_recog): Likewise.
4359 (preprocess_insn_constraints): Change parameter to unsigned int.
4360 * recog.c (preprocess_insn_constraints): Likewise.
4361 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
4362 * tree-vect-stmts.c (vectorizable_operation): Simplify.
4364 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4366 PR rtl-optimization/61657
4367 * loop-iv.c (iv_number_of_iterations): Declare up and down as
4368 unsigned. Remove superflous uint64_t cast.
4370 2014-08-21 Felix Yang <felix.yang@huawei.com>
4371 Jiji Jiang <jiangjiji@huawei.com>
4373 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
4374 argument and get builtin function code directly from CALL.
4375 (gimple_stringop_fixed_value): Modified accordingly.
4376 (gimple_stringops_transform, gimple_stringops_values_to_profile):
4377 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
4379 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
4381 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
4383 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4385 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
4387 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
4388 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
4389 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
4390 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
4391 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
4392 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
4393 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
4394 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
4395 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
4396 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
4398 * match.pd (SIN ) : New Operator.
4399 (TAN) : New Operator.
4400 (mult (SQRT@1 @0) @1) : New simplifier.
4401 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
4402 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4403 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4404 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
4405 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
4406 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
4407 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
4408 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
4409 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
4410 (rdiv @0 (POW:s @1 @2)) : New simplifier.
4412 2015-08-21 Bin Cheng <bin.cheng@arm.com>
4414 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4415 loop if EXPR is simplified to const value.
4417 2015-08-21 Yury Gribov <y.gribov@samsung.com>
4419 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4420 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
4422 2015-08-21 Richard Biener <rguenther@suse.de>
4425 * gimple-fold.c (replace_stmt_with_simplification): Assert
4426 seq is empty when replacing a call with itself but different
4428 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
4429 a call require that it is const.
4431 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4433 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
4434 * builtins.c (get_object_alignment_2): Adjust.
4435 * varasm.c (align_variable): Likewise.
4436 (get_variable_align): Likewise.
4437 (build_constant_desc): Likewise.
4438 (force_const_mem): Likewise.
4439 * doc/tm.texi.in: Likewise.
4440 * doc/tm.texi: Regenerate.
4442 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4444 * genconfig.c (main): Always define HAVE_cc0.
4445 * recog.c (rest_of_handle_peephole2): Adjust.
4447 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4449 * reorg.c (relax_delay_slots): Don't use #if to check value of
4452 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4454 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
4455 * targhooks.c (default_have_conditional_execution): Adjust.
4457 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4459 * rtl.h (rtvec_all_equal_p): Declare.
4460 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
4461 * rtl.c (rtvec_all_equal_p): New function.
4462 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
4463 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
4464 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
4465 * config/arm/arm.c (neon_vdup_constant): Likewise.
4466 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
4467 * config/tilegx/constraints.md (W, Y): Likewise.
4468 * config/tilepro/constraints.md (W, Y): Likewise.
4469 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
4470 (classify_immediate): Use unwrap_const_vec_duplicate.
4471 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
4472 (reg_or_v2s8bit_operand): Likewise.
4473 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
4474 (reg_or_v4s8bit_operand): Likewise.
4476 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4478 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
4479 (vec_shasigma_be): New #define.
4480 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
4481 (VPMSUMH): Likewise.
4482 (VPMSUMW): Likewise.
4483 (VPMSUMD): Likewise.
4484 (VPMSUM): New BU_P8V_OVERLOAD_2.
4485 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
4486 entries for VEC_MADD and VEC_VPMSUM.
4488 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
4490 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
4491 Multiply argument avr_n_flash by 64 to match unit of "KiB".
4492 (avr_pgm_check_var_decl): Same.
4494 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
4496 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
4497 initialization of HFmode scalar type (float16_t) to...
4498 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
4501 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
4503 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
4504 having an -mfp16-format.
4506 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
4508 * config/i386/predicates.md (vector_all_ones_operand): Use
4509 CONSTM1_RTX to simplify definition.
4511 2015-08-20 Richard Biener <rguenther@suse.de>
4513 * toplev.c (compile_file): Remove loop calling late_global_decl
4515 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
4516 on decls we assembled.
4518 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
4520 * common/config/aarch64/aarch64-common.c
4521 (AARCH64_CPU_NAME_LENGTH): Delete.
4522 (aarch64_option_extension): New.
4523 (all_extensions): Likewise.
4524 (processor_name_to_arch): Likewise.
4525 (arch_to_arch_name): Likewise.
4527 (all_architectures): Likewise.
4528 (aarch64_get_extension_string_for_isa_flags): Likewise.
4529 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4531 * config/aarch64/aarch64-protos.h
4532 (aarch64_get_extension_string_for_isa_flags): New.
4533 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4534 (aarch64_option_print): Get the string to print from
4535 aarch64_get_extension_string_for_isa_flags.
4536 (aarch64_declare_function_name): Likewise.
4537 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4538 (MCPU_TO_MARCH_SPEC): This.
4539 (ASM_CPU_SPEC): Use it.
4540 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4541 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4542 (EXTRA_SPEC_FUNCTIONS): Use it.
4544 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
4546 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4547 expansion when !ISA_HAS_LWL_LWR.
4548 (mips_block_move_straight): Update the size of elements copied to
4549 account for alignment when !ISA_HAS_LWL_LWR.
4550 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4552 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4554 * expr.c (expand_expr_real_2): Check gimple statement during
4557 2015-08-19 Magnus Granberg <zorry@gentoo.org>
4559 * common.opt (fstack-protector): Initialize to -1.
4560 (fstack-protector-all): Likewise.
4561 (fstack-protector-strong): Likewise.
4562 (fstack-protector-explicit): Likewise.
4563 * configure.ac: Add --enable-default-ssp.
4564 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
4565 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4567 * doc/install.texi: Document --enable-default-ssp.
4568 * config.in: Regenerated.
4569 * configure: Likewise.
4571 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
4573 PR rtl-optimization/64164
4574 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4575 (parm_in_stack_slot_p): ... this. Disregard mode, what
4576 matters is whether the parm will live in a pseudo or a stack
4578 (expand_one_ssa_partition): Deal with params without a default
4579 def. Disregard mode.
4580 * cfgexpand.h: Renamed function declaration.
4581 * tree-ssa-coalesce.c: Adjust.
4582 * function.c (split_complex_args): Allocate stack slot for
4583 unassigned parms before splitting.
4584 (parm_in_unassigned_mem_p): New. Use it instead of
4585 parm_maybe_byref_p throughout this file.
4586 (assign_parm_setup_block): Use it. Accept pseudos in the
4587 expand-assigned rtl.
4588 (assign_parm_setup_reg): Drop BLKmode requirement.
4589 (assign_parm_setup_stack): Allocate and fill in the address of
4590 unassigned MEM parms.
4592 2015-08-19 David Sherwood <david.sherwood@arm.com>
4594 * genmodes.c (emit_mode_unit_size_inline): New function.
4595 (emit_mode_unit_precision_inline): New function.
4596 (emit_insn_modes_h): Emit new #define. Emit new functions.
4597 (emit_mode_unit_size): New function.
4598 (emit_mode_unit_precision): New function.
4599 (emit_mode_adjustments): Add mode_unit_size adjustments.
4600 (emit_insn_modes_c): Emit new arrays.
4601 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4602 use new inline methods.
4604 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4606 * config/aarch64/aarch64.c (bit_count): Delete prototype
4608 (aarch64_print_operand): Use popcount_hwi instead of the above.
4610 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4612 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4615 2015-08-19 Marek Polacek <polacek@redhat.com>
4618 * gimple-ssa-isolate-paths.c
4619 (insert_trap_and_remove_trailing_statements): Rename to ...
4620 (insert_trap): ... this. Don't remove trailing statements; split
4622 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4624 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
4627 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4628 conditionalize the whole on __GNUC__. Add fallback code
4629 depending neither on undefined nor implementation-defined behaviour.
4631 2015-08-19 Jiong Wang <jiong.wang@arm.com>
4633 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4634 whitespaces with tab.
4636 2015-08-19 Florian Weimer <fweimer@redhat.com>
4638 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4639 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4640 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4641 Move Name_Ids instantiation to the Prj.Proc package, to avoid
4644 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4646 * config/arm/arm.c (bounds_check): Use %wd print format
4647 for HOST_WIDE_INT arguments.
4649 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4651 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4652 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4653 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4654 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4655 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4656 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4657 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4658 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4659 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4662 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
4664 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4665 function.c, graphite-scop-detection.c, haifa-sched.c,
4666 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4667 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4668 varasm.c: Remove typedefs of structs.
4670 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4672 * config/rs6000/altivec.h (vec_adde): New define.
4673 (vec_addec): Likewise.
4674 (vec_double): Likewise.
4675 (vec_bperm): Likewise.
4677 * config/rs6000/rs6000-builtin.def (ADDE): New
4678 BU_ALTIVEC_OVERLOAD_3.
4680 (DOUBLE): New BU_VSX_OVERLOAD_1.
4681 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4682 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4683 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4684 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4685 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4686 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4687 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4688 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4689 and P8V_BUILTIN_VEC_VBPERMQ.
4691 2015-08-18 Jason Merrill <jason@redhat.com>
4693 * print-tree.c (print_node): Handle TREE_BINFO.
4695 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4698 * builtins.c (expand_builtin_signbit): Add asserts to make sure
4699 we can expand BUILT_IN_SIGNBIT inline.
4700 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4701 * doc/extend.texi: Document the type-generic __builtin_signbit.
4703 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
4705 PR rtl-optimization/67218
4706 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4707 (simplify_unary_operation_1): Use it.
4709 2015-08-18 Marek Polacek <polacek@redhat.com>
4712 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4713 if the call isn't valid.
4714 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4715 gimple_call_builtin_p.
4716 (call_may_clobber_ref_p_1): Likewise.
4717 (stmt_kills_ref_p): Likewise.
4719 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
4721 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4722 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4723 (mips_hard_regno_scratch_ok): Likewise.
4724 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4725 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4727 2015-08-18 Bin Cheng <bin.cheng@arm.com>
4729 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4730 (determine_value_range): Call refine_value_range_using_guard for
4731 each loop initial condition to improve value range.
4733 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
4735 * config/i386/i386.c: Remove include of fibheap.h.
4737 2015-08-17 Richard Biener <rguenther@suse.de>
4739 PR tree-optimization/67221
4740 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4741 (sccvn_dom_walker::before_dom_children): Mark backedges of
4742 non-executable blocks as not executable.
4744 2015-08-17 David Sherwood <david.sherwood@arm.com>
4746 * config/arm/arm.c (neon_element_bits): Replace call to
4747 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4748 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4749 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4750 (neon_vdup_lane<mode>): Likewise.
4751 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4752 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4753 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4754 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4755 * config/spu/spu.c (arith_immediate_p): Likewise.
4756 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4757 * expr.c (expand_expr_real_2): Likewise.
4758 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4759 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4760 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4761 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4763 * fold-const.c (fold_binary_loc): Replace call to
4764 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4765 GET_MODE_UNIT_PRECISION (m).
4767 2015-08-17 Mike Stump <mikestump@comcast.net>
4769 * config/arm/arm.c (arm_block_move_unaligned_straight):
4770 Emit normal move instead of unaligned load when source or destination
4771 are appropriately aligned.
4773 2015-08-17 Richard Biener <rguenther@suse.de>
4774 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4777 * match.pd (div (coss (op @0) : New simplifier.
4779 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
4781 PR rtl-optimization/64164
4784 PR rtl-optimization/67000
4787 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4788 * tree-ssa-copyrename.c: Removed.
4789 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4790 -ftree-coalesce-vars.
4791 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4792 * common.opt (ftree-copyrename): Ignore.
4793 (ftree-coalesce-inlined-vars): Likewise.
4794 * doc/invoke.texi: Remove the ignored options above.
4795 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4796 * tree-ssa-coalesce.h: ... here.
4797 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4798 headers required by it.
4799 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4800 across variables when flag_tree_coalesce_vars. Check register
4801 use and promoted modes to allow coalescing. Do not coalesce
4802 maybe-byref parms with SSA_NAMEs of other variables, or
4803 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
4804 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4805 with its member functions to tree-ssa-coalesce.c.
4806 (var_map_base_init): Likewise. Renamed to
4807 compute_samebase_partition_bases.
4808 (partition_view_normal): Drop want_bases parameter.
4809 (partition_view_bitmap): Likewise.
4810 * tree-ssa-live.h: Adjust declarations.
4811 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4812 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4813 default defs at the entry point.
4814 (dump_part_var_map): New.
4815 (compute_optimized_partition_bases): New, called by...
4816 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4817 of compute_samebase_partition_bases. Adjust.
4818 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4819 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4820 (ssa_default_def_partition): New.
4821 (get_rtl_for_parm_ssa_default_def): New.
4822 (align_local_variable, add_stack_var): Support anonymous SSA
4824 (defer_stack_allocation): Likewise. Declare earlier.
4825 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4826 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4827 Do no record deferred-allocation marker in
4828 SA.partition_to_pseudo.
4829 (expand_stack_vars): Adjust check for the marker in it.
4830 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4831 redundant MEM attr setting.
4832 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4834 (expand_one_stack_var): ... this. New wrapper to check and
4835 skip already expanded SSA partitions.
4836 (record_alignment_for_reg_var): New, factored out of...
4837 (expand_one_var): ... this.
4838 (expand_one_ssa_partition): New.
4839 (adjust_one_expanded_partition_var): New.
4840 (expand_one_register_var): Check and skip already expanded SSA
4842 (expand_used_vars): Don't create DECLs for anonymous SSA
4843 names. Expand all SSA partitions, then adjust all SSA names.
4844 (pass::execute): Replace the loops that set
4845 SA.partition_to_pseudo from partition leaders and cleared
4846 DECL_RTL for multi-location variables, and that which used to
4847 rename vars and set attrs, with one that clears DECL_RTL and
4848 checks that PARMs and RESULTs default_defs match DECL_RTL.
4849 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4850 * emit-rtl.c: Include stor-layout.h.
4851 (set_reg_attrs_for_parm): Handle NULL decl.
4852 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4854 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4855 rather than its possibly-NULL DECL.
4856 * explow.c (promote_ssa_mode): New.
4857 * explow.h (promote_ssa_mode): Declare.
4858 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4859 (read_complex_part): Export.
4860 * expr.h (read_complex_part): Declare.
4861 * cfgexpand.h (parm_maybe_byref_p): Declare.
4862 * function.c: Include cfgexpand.h.
4863 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4864 (use_register_for_parm_decl): Wrapper for the above to
4865 special-case the result_ptr.
4866 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4867 (split_complex_args): Take assign_parm_data_all argument.
4868 Pass it to rtl_for_parm. Set up rtl and context for split
4869 args. Reset complex parm before fetching its default decl
4871 (assign_parms_unsplit_complex): Use the default-def complex
4872 parm rtl if it matches the components.
4873 (assign_parms_augmented_arg_list): Adjust.
4874 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4875 multiple locations. Recognize split complex args.
4876 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4877 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4878 (assign_parm_setup_block): Prefer SSA-assigned location, and
4879 fill in its address if the memory location of a maybe-byref
4880 parm was not assigned by cfgexpand.
4881 (assign_parm_setup_reg): Likewise. Adjust its mode as
4882 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4883 sure passed_pointer parms don't need conversion. Copy address
4885 (assign_parm_setup_stack): Prefer SSA-assigned location.
4886 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4887 rtl before testing for pointer bounds. Special-case result_ptr.
4888 (expand_function_start): Maybe reset DECL_RTL of result.
4889 Prefer SSA-assigned location for result and static chain.
4890 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4891 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4892 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4893 anonymous SSA names. Use promote_ssa_mode.
4894 (get_temp_reg): Likewise.
4895 (remove_ssa_form): Adjust.
4896 * stor-layout.c (layout_decl): Don't set mem attributes of
4898 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4899 and get its reg_usage for reg invalidation.
4900 (compute_bb_dataflow): Pass it insn.
4901 (emit_notes_in_bb): Likewise.
4903 2015-08-14 Marek Polacek <polacek@redhat.com>
4905 * tree-core.h (tree_base): Fix typo.
4907 2015-08-14 Marek Polacek <polacek@redhat.com>
4910 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4911 nonnull argument position is not outside function arguments.
4913 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4916 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4917 'lconst_atomic' with 'const_atomic'.
4918 (atomic_fetch_<optab><mode>): Likewise.
4919 (atomic_<optab>_fetch<mode>): Likewise.
4920 * config/aarch64/iterators.md (lconst-atomic): Move below
4922 (const_atomic): New.
4924 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4925 Bernd Schmidt <bernds@codesourcery.com>
4927 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4929 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4930 (DWARF2_DEBUGGING_INFO): Don't define.
4931 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4932 * toplev.c (process_options): Add a case for it.
4933 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4934 (dwarf2out_init): Skip most initializations if
4935 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4937 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4938 DWARF2_LINENO_DEBUGGING_INFO.
4939 * opts.c (set_debug_level): Likewise.
4941 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4943 * config/arm/types.md (is_neon_type): Add missing types.
4945 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4947 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4949 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4950 (processor_alias_table): Add skylake description.
4951 (enum processor_model): Add skylake processor.
4952 (arch_names_table): Add skylake record.
4953 * doc/invoke.texi: Add skylake item.
4955 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4957 * ira-int.h: Include recog.h.
4958 * ira-build.c: Don't include recog.h.
4959 * ira-color.c: Likewise.
4960 * ira-conflicts.c: Likewise.
4961 * ira-costs.c: Likewise.
4962 * ira-emit.c: Likewise.
4963 * ira-lives.c: Likewise.
4965 * sched-deps.c: Likewise.
4966 * sel-sched.c: Likewise.
4967 * target-globals.c: Likewise.
4969 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4972 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4973 compiler that the n_dups and n_operands loop bounds are invariant.
4975 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4977 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4978 expressions in A and B.
4980 2015-08-13 Richard Biener <rguenther@suse.de>
4982 * tree.c (nonnull_arg_p): Move from ...
4983 * tree-vrp.c (nonnull_arg_p): ... here.
4984 * tree.h (nonnull_arg_p): Declare.
4985 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4986 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4987 Properly initialize static chain and by-reference result pointer.
4988 (run_scc_vn): Adjust.
4990 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4992 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4995 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4997 * config/aarch64/aarch64-protos.h
4998 (aarch64_gen_atomic_cas): Declare.
4999 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
5000 Choose appropriate instruction pattern for the target.
5001 (aarch64_gen_atomic_cas): New.
5002 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
5003 (atomic_compare_and_swap<mode>_1): Rename to
5004 aarch64_compare_and_swap<mode>. Fix some indentation.
5005 (aarch64_compare_and_swap<mode>_lse): New.
5006 (aarch64_atomic_cas<mode>): New.
5008 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
5010 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
5013 2015-08-13 Richard Biener <rguenther@suse.de>
5015 PR tree-optimization/67191
5016 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
5017 assert we value-numbered last stmts operand because it can validly
5018 trigger for unreachable code.
5020 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5022 PR rtl-optimization/67103
5023 * ifcvt.c (noce_try_store_flag_constants): Move
5024 x = (-(test != 0) & (b - a)) + a transformation to...
5025 (noce_try_cmove): ... Here. Try it if normal conditional
5028 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
5030 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
5032 * config/mips/mips.md (processor): Remove w32 and w64.
5034 2015-08-13 Richard Biener <rguenther@suse.de>
5036 PR tree-optimization/66502
5037 PR tree-optimization/67167
5038 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
5040 (vn_phi_lookup): Adjust.
5041 (vn_phi_insert): Likewise.
5042 (visit_phi): Prefer to value-number to another PHI node
5043 over value-numbering to a PHI argument.
5044 (init_scc_vn): Mark DFS back edges.
5046 2015-08-13 Richard Biener <rguenther@suse.de>
5048 * gimple.h (gcall::code_): New constant static member.
5049 (gcond::code_): Likewise.
5050 * gimple.c (gcall::code_): Define.
5051 (gcond::code_): Likewise.
5052 (is_a_helper <const gcond *>): Add.
5053 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
5054 and forward to a new gcall overload with less checking and a
5055 cheaper way to access the operand.
5056 (gimple_call_lhs_ptr): Likewise.
5057 (gimple_call_set_lhs): Likewise.
5058 (gimple_call_internal_p): Likewise.
5059 (gimple_call_with_bounds_p): Likewise.
5060 (gimple_call_set_with_bounds): Likewise.
5061 (gimple_call_internal_fn): Likewise.
5062 (gimple_call_set_ctrl_altering): Likewise.
5063 (gimple_call_ctrl_altering_p): Likewise.
5064 (gimple_call_fntype): Likewise.
5065 (gimple_call_fn): Likewise.
5066 (gimple_call_fn_ptr): Likewise.
5067 (gimple_call_set_fndecl): Likewise.
5068 (gimple_call_fndecl): Likewise.
5069 (gimple_call_chain): Likewise.
5070 (gimple_call_num_args): Likewise.
5071 (gimple_call_arg): Likewise.
5072 (gimple_call_arg_ptr): Likewise.
5073 (gimple_call_set_arg): Likewise.
5074 (gimple_call_noreturn_p): Likewise.
5075 (gimple_cond_code): Likewise.
5076 (gimple_cond_lhs): Likewise.
5077 (gimple_cond_rhs): Likewise.
5078 (gimple_has_lhs): Reduce checking.
5080 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5083 * match.pd (div (mult @0 @1) @1) : New simplifier.
5085 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5088 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
5089 predicate to allow construction of vector constants using the
5090 VSLDOI vector shift instruction.
5092 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
5095 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
5096 the number of bytes to be shifted left and filled in with either
5097 all zero or all one bits.
5098 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
5100 (output_vec_const_move): On power8, generate XXLORC to generate
5101 a vector constant with all 1's. Do a split if we need to use a
5104 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
5105 properly test for the MSB.
5107 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
5108 vector constants that can be created with VSLDOI.
5110 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5113 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5114 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5115 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5116 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5117 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5118 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5119 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5120 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5121 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5123 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
5125 * config/xtensa/constraints.md (define_constraint "Y"): New
5127 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
5128 * config/xtensa/linux.h (ASM_SPEC): Likewise.
5129 * config/xtensa/predicates.md (move_operand): Match constants
5130 and symbols in the presence of TARGET_AUTO_LITPOOLS.
5131 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
5132 immediate references to TLS data.
5133 (xtensa_emit_move_sequence): Don't force constants to memory in
5134 the presence of TARGET_AUTO_LITPOOLS.
5135 (print_operand): Add 'y' format, same as default, but capable of
5136 printing SF mode constants as well.
5137 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
5138 (movsf_internal): Add movi pattern that loads literal.
5139 (movsf, movdf): Don't force constants to memory in the presence
5140 of TARGET_AUTO_LITPOOLS.
5141 (movdf_internal): Add 'Y' constraint.
5142 * config/xtensa/xtensa.opt (mauto-litpools): New option.
5143 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
5145 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
5147 * config/arm/arm-fpus.def: Replace booleans with feature flags.
5149 * config/arm/arm.c (ARM_FPU): Update macro.
5150 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
5151 (TARGET_FP16): Likewise.
5152 (TARGET_CRYPTO): Likewise.
5153 (TARGET_NEON): Likewise.
5154 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
5157 2015-08-12 Tom de Vries <tom@codesourcery.com>
5161 * doc/install.texi: Remove --with_host_libstdcxx item. Update
5162 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
5163 accordingly. Mention default for --with-stage1-ldflags.
5165 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
5167 * config/arm/arm.h (arm_fpu_feature_set): New.
5168 (ARM_FPU_FSET_HAS): New.
5172 (FPU_FL_CRYPTO): New.
5174 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5176 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
5177 after -mcmodel=large -fPIC sorry.
5179 2015-08-12 Richard Biener <rguenther@suse.de>
5181 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
5182 comparison operand order and commutative ternary op operand order.
5183 (sccvn_dom_walker::cond_stack): New state to track temporary
5185 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
5187 (sccvn_dom_walker::record_cond): Add a single temporary conditional
5189 (sccvn_dom_walker::record_conds): Add a temporary conditional
5190 expressions and all related expressions also true/false.
5191 (sccvn_dom_walker::before_dom_children): Record temporary
5192 expressions based on the controlling condition of a single
5193 predecessor. When trying to simplify a conditional statement
5194 lookup expressions we might have inserted earlier.
5196 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
5199 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
5200 to ARM core registers.
5202 2015-08-12 Nathan Sidwell <nathan@acm.org>
5204 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
5205 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
5207 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
5209 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
5211 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
5213 2015-08-12 Richard Biener <rguenther@suse.de>
5215 * gimple.h (remove_pointer): New trait.
5216 (GIMPLE_CHECK2): New inline template function.
5217 (gassign::code_): New constant static member.
5218 (is_a_helper<const gassign *>): Add.
5219 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
5220 and forward to a new gassign overload with less checking and a
5221 cheaper way to access the operand.
5222 (gimple_assign_lhs_ptr): Likewise.
5223 (gimple_assign_set_lhs): Likewise.
5224 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
5226 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
5228 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
5230 (gimple_assign_rhs_code): Likewise.
5231 * gimple.c (gassign::code_): Define.
5233 2015-08-12 Richard Biener <rguenther@suse.de>
5235 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5236 Eliminate edges marked as not executable by SCCVN.
5237 * tree-ssa-sccvn.c: Include gimple-iterator.h.
5238 (cond_dom_walker): Rename to sccvn_dom_walker.
5239 (sccvn_dom_walker::before_dom_children): Value-number defs
5241 (run_scc_vn): Remove loop value-numbering all SSA names.
5242 Drop not visited SSA names to varying.
5244 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
5246 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5247 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5248 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5249 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5250 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5251 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5252 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5253 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5254 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5256 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
5259 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
5260 to enum feature_priority and feature_list.
5261 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
5262 and isa_names_table.
5264 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
5266 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
5269 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5273 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
5274 account when deciding what was the command-line status.
5276 2015-08-11 Nathan Sidwell <nathan@acm.org>
5278 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
5280 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
5281 we're not the only contributor to target phi.
5283 2015-08-11 Jiong Wang <jiong.wang@arm.com>
5285 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
5288 2015-08-11 Tom de Vries <tom@codesourcery.com>
5290 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
5292 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
5294 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
5296 * config/i386/i386.md (cpu): Remove knl.
5298 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5302 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
5303 open-coded sequence.
5304 * omp-low.c (oacc_process_reduction_data): Remove handline of
5305 GOMP_DEVICE_HOST_NONSHM.
5307 * lto-streamer-in.c (lto_input_mode_table): Adjust to
5308 GET_MODE_INNER changes.
5310 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5311 Ilya Verbin <ilya.verbin@intel.com>
5313 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
5315 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5317 * doc/options.texi (EnabledBy): Document that the argument must be
5319 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
5320 Not enabled by -Wall.
5321 * optc-gen.awk: Give nicer error messages. Detect if the argument
5322 of EnabledBy is not a Common option.
5323 * common.opt (Wnull-dereference): Not enabled by -Wall.
5324 * opt-functions.awk (lang_enabled_by): Nicer error messages.
5326 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
5328 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
5329 model == 0x4f as Broadwell.
5331 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
5333 PR rtl-optimization/67028
5334 * combine.c (simplify_comparison): Fix comment. Rearrange code.
5335 Add test to see if a const_int fits in the new mode.
5337 2015-08-07 DJ Delorie <dj@redhat.com>
5339 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
5341 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
5343 PR rtl-optimization/67029
5344 * ira-color.c: Include "recog.h" before including "ira-int.h".
5345 * target-globals.c: Likewise.
5346 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
5347 adds an alternative_mask argument and use it instead of
5348 preferred_alternatives.
5349 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
5350 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
5351 * sched-deps.c: Include "ira-int.h" after including "ira.h".
5352 (sched_analyze_insn): Update call to
5353 ira_implicitly_set_insn_hard_regs.
5354 * sel-sched.c: Include "ira-int.h" after including "ira.h".
5355 (implicit_clobber_conflict_p): Update call to
5356 ira_implicitly_set_insn_hard_regs.
5358 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5360 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
5362 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
5365 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
5366 currently_expanding_to_rtl is set.
5368 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5370 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
5371 * configure: Regenerate.
5373 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5374 Jiong Wang <jiong.wang@arm.com>
5376 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5377 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5378 (REG_CLASS_NAMES): Likewise.
5379 (REG_CLASS_CONTENTS): Likewise.
5380 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5381 (aarch64_register_move_cost): Likewise.
5382 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5384 * config/aarch64/constraints.md (Uc0): New constraint.
5386 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5388 * config/aarch64/constraints.md (Usf): Add the test of
5389 aarch64_is_noplt_call_p.
5391 2015-08-06 Jiong Wang <jiong.wang@arm.com>
5393 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
5395 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
5396 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
5397 (call_symbol): Likewise.
5399 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5401 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
5402 for vectorizing multiplication patterns.
5403 * tree-vectorizer.h: Adjust the number of patterns.
5405 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
5407 * config/i386/sse.md (*vec_concatv2df): Declare added
5408 alternatives as sselog type.
5410 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5412 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
5415 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5417 * config/s390/s390.c (s390_expand_tbegin): Expand either
5418 tbegin_1_z13 or tbegin_1 depending on VX flag.
5419 * config/s390/s390.md ("tbegin_1_z13"): New expander.
5421 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5423 * config/s390/s390.opt: Clarify description for -mzvector
5424 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
5427 2015-08-06 Richard Biener <rguenther@suse.de>
5429 * gimple.h (gimple_call_set_fn): Access op member directly.
5430 (gimple_call_chain_ptr): Likewise.
5431 (gimple_call_set_chain): Likewise.
5432 (gimple_cond_lhs_ptr): Likewise.
5433 (gimple_cond_set_lhs): Likewise.
5434 (gimple_cond_rhs_ptr): Likewise.
5435 (gimple_cond_set_rhs): Likewise.
5436 (gimple_cond_true_label): Likewise.
5437 (gimple_cond_set_true_label): Likewise.
5438 (gimple_cond_set_false_label): Likewise.
5439 (gimple_cond_false_label): Likewise.
5440 (gimple_label_label): Likewise.
5441 (gimple_label_set_label): Likewise.
5442 (gimple_goto_set_dest): Likewise.
5443 (gimple_asm_input_op): Likewise.
5444 (gimple_asm_input_op_ptr): Likewise.
5445 (gimple_asm_set_input_op): Likewise.
5446 (gimple_asm_output_op): Likewise.
5447 (gimple_asm_output_op_ptr): Likewise.
5448 (gimple_asm_set_output_op): Likewise.
5449 (gimple_asm_clobber_op): Likewise.
5450 (gimple_asm_set_clobber_op): Likewise.
5451 (gimple_asm_label_op): Likewise.
5452 (gimple_asm_set_label_op): Likewise.
5453 (gimple_switch_index): Likewise.
5454 (gimple_switch_index_ptr): Likewise.
5455 (gimple_return_retval_ptr): Likewise.
5456 (gimple_return_retval): Likewise.
5457 (gimple_return_set_retval): Likewise.
5458 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
5459 (gimple_switch_label): Likewise.
5460 (gimple_switch_set_label): Likewise.
5462 2015-08-06 Richard Biener <rguenther@suse.de>
5464 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
5465 bool comparison canonicalization and restrict to integers.
5467 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
5469 * coretypes.h (enum symbol_visibility): Relocate here.
5470 * flag-types.h (enum symbol_visibility): Remove.
5471 * tree-core.h (enum symbol_visibility): Remove.
5473 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
5476 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
5477 for no_split_stack function attribute along with
5479 (rs6000_expand_split_stack_prologue): Likewise.
5481 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5482 Jeff Law <law@redhat.com>
5485 * doc/invoke.texi (Wnull-dereference): New.
5486 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
5487 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
5488 Warn for potential NULL dereferences.
5489 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
5490 * ubsan.c (instrument_nonnull_arg): Call
5491 infer_nonnull_range_by_attribute.
5492 (instrument_nonnull_return): Likewise.
5493 * common.opt (Wnull-dereference); New.
5494 * gimple.c (infer_nonnull_range): Remove bool arguments.
5495 (infer_nonnull_range_by_dereference): New.
5496 (infer_nonnull_range_by_attribute): New.
5497 * gimple.h: Update declarations.
5499 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5501 * gensupport.c (sequence_num): Replace with...
5502 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
5503 ...these new variables.
5504 (init_rtx_reader_args_cb): Update accordingly.
5505 (get_num_code_insns): Likewise.
5506 (read_md_rtx): Rework to use a while loop and get_c_test.
5507 Use the new counters. Remove redundant DEFINE_SUBST case.
5508 * genoutput.c (gen_split): Delete.
5509 (main): Don't call it.
5511 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5513 * gensupport.h (get_c_test): Declare.
5514 * gensupport.c (get_c_test): New function.
5515 * genconditions.c (main): Use it.
5516 * genrecog.c (validate_pattern): Likewise.
5517 (match_pattern_1): Likewise. Remove c_test argument.
5518 (match_pattern): Update accordingly and remove c_test argument.
5519 (main): Update accordingly.
5521 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5523 * gensupport.h (get_num_insn_codes): Declare.
5524 * gensupport.c (get_num_insn_codes): New function.
5525 * genattrtab.c (optimize_attrs): Rename max_insn_code to
5527 (main): Likewise. Use get_num_insn_codes.
5528 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5530 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5533 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5534 is zero- rather than sign-extended.
5536 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
5538 * target-insns.def (can_extend): Delete.
5540 2015-08-05 Richard Biener <rguenther@suse.de>
5542 PR tree-optimization/67121
5543 * tree-if-conv.c (combine_blocks): Clear range-info produced
5544 by stmts no longer executed conditionally.
5546 2015-08-05 Nick Clifton <nickc@redhat.com>
5548 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5549 to allow identical far pointers to remain.
5551 2015-08-05 Richard Biener <rguenther@suse.de>
5554 * match.pd: Compare address bases with == if they are decls
5555 or SSA names, not operand_equal_p. Otherwise fail.
5557 2015-08-05 Richard Biener <rguenther@suse.de>
5559 PR tree-optimization/67055
5560 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5563 * g++.dg/torture/pr67055.C: New testcase.
5565 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5567 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5569 (define_attr "enabled"): Handle avx521vl and noavx512vl.
5570 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5571 AVX-512 alternative out of SSE.
5572 (define_insn "*vec_concatv2df"): Ditto.
5574 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
5576 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5577 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5578 CODE_FOR_avx_ptestv4di.
5579 * config/i386/sse.md (define_mode_iterator V_AVX): New.
5580 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5581 (define_insn "avx_ptest256"): Merge this ...
5582 (define_insn "sse4_1_ptest"): And this ...
5583 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5585 2015-08-05 Richard Biener <rguenther@suse.de>
5587 PR tree-optimization/67109
5588 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5589 against too big groups. Print whether this is a load or store
5590 group. Rename from ...
5591 (vect_analyze_group_access): ... this which is now a wrapper
5592 dissolving an invalid group.
5593 (vect_analyze_data_ref_accesses): Print whether this is a load
5596 2015-08-05 Richard Biener <rguenther@suse.de>
5599 * match.pd: Guard const_binop result checking against NULL_TREE
5602 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
5604 * cse.c (cse_insn): Restoring old behaviour for src_eqv
5605 when dest and value in the REG_EQUAL are same and dest
5608 2015-08-04 Anatoly Sokolov <aesok@post.ru>
5610 * config/moxie/moxie.h (PRINT_OPERAND,
5611 PRINT_OPERAND_ADDRESS): Remove macros.
5612 * config/moxie/moxie-protos.h (moxie_print_operand,
5613 moxie_print_operand_address): Remove declaration.
5614 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5615 TARGET_PRINT_OPERAND_ADDRESS): Define.
5616 (moxie_print_operand, moxie_print_operand_address): Make static.
5618 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5621 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5622 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5624 2015-08-04 Richard Biener <rguenther@suse.de>
5626 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5628 (dt_operand::gen_gimple_expr): Adjust.
5630 2015-08-04 Richard Biener <rguenther@suse.de>
5632 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5633 bool compares on RHS.
5634 * match.pd: Add X ==/!= !X is false/true pattern.
5636 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
5638 * config/aarch64/aarch64.c: Change inner loop statement cost
5639 to be consistent with other targets.
5641 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
5643 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5646 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
5648 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5649 (machine_function): Remove pseudos field.
5651 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5653 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5654 Exit early and use target_option_current_node if processing current
5657 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5659 * doc/extend.texi (AArch64 Function Attributes): New node.
5660 (AArch64 Pragmas): Likewise.
5662 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5664 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5665 Initialize simd builtins if TARGET_SIMD.
5666 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5667 Make sure that the builtins are initialized only once no matter how
5668 many times the function is called.
5669 (aarch64_init_builtins): Unconditionally initialize crc builtins.
5670 (aarch64_relayout_simd_param): New function.
5671 (aarch64_simd_expand_args): Use above during argument expansion.
5672 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5673 simd builtins if TARGET_SIMD.
5674 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5676 (aarch64_relayout_simd_types): Likewise.
5678 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5680 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5681 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5682 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5683 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5685 (aarch64_reset_previous_fndecl): New function.
5686 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5688 * config/aarch64/aarch64-c.c: New file.
5689 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5690 Push and pop options at beginning and end. Remove ifdef
5691 __ARM_FEATURE_CRC32.
5692 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5693 Add pragma +nothing+simd and +nothing+crypto where appropriate.
5694 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5695 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5697 (aarch64_register_pragmas): Likewise.
5698 (aarch64_reset_previous_fndecl): Likewise.
5699 (aarch64_process_target_attr): Likewise.
5700 (aarch64_override_options_internal): Likewise.
5702 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5704 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5706 (aarch64_can_inline_p): Likewise.
5707 (TARGET_CAN_INLINE_P): Define.
5709 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5711 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5712 Remove static. Handle OPT_mgeneral_regs_only,
5713 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5714 OPT_momit_leaf_frame_pointer.
5715 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5716 (aarch64_attr_opt_type): New enum.
5717 (aarch64_attribute_info): New struct.
5718 (aarch64_handle_attr_arch): New function.
5719 (aarch64_handle_attr_cpu): Likewise.
5720 (aarch64_handle_attr_tune): Likewise.
5721 (aarch64_handle_attr_isa_flags): Likewise.
5722 (aarch64_attributes): New table.
5723 (aarch64_process_one_target_attr): New function.
5724 (num_occurences_in_str): Likewise.
5725 (aarch64_process_target_attr): Likewise.
5726 (aarch64_option_valid_attribute_p): Likewise.
5727 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5728 * config/aarch64/aarch64-protos.h: Include input.h
5729 (aarch64_handle_option): Declare prototype.
5731 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5733 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5734 * config/aarch64/aarch64.c: Include target-globals.h
5735 (aarch64_previous_fndecl): New variable.
5736 (aarch64_set_current_function): New function.
5737 (TARGET_SET_CURRENT_FUNCTION): Define.
5739 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5741 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5742 (explicit_arch): Likewise.
5743 (x_aarch64_isa_flags): Likewise.
5744 (mgeneral-regs-only): Mark as Save.
5745 (mfix-cortex-a53-835769): Likewise.
5746 (mcmodel=): Likewise.
5747 (mstrict-align): Likewise.
5748 (momit-leaf-frame-pointer): Likewise.
5749 (mtls-dialect): Likewise.
5750 (master=): Likewise.
5751 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5752 (aarch64_isa_flags): Remove extern declaration.
5753 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5754 to indicate success or failure.
5755 (aarch64_validate_march): Likewise.
5756 (aarch64_validate_mtune): Likewise.
5757 (aarch64_isa_flags): Delete.
5758 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5759 instead of aarch64_isa_flags.
5760 (aarch64_get_tune_cpu): New function.
5761 (aarch64_get_arch): Likewise.
5762 (aarch64_override_options): Use above and set up explicit_tune_core
5764 (aarch64_print_extension): Move earlier in file. Add isa_flags
5765 argument and use that instead of the global aarch64_isa_flags.
5766 (aarch64_option_save): New function.
5767 (aarch64_option_restore): Likewise.
5768 (aarch64_option_print): Likewise.
5769 (aarch64_declare_function_name): Likewise.
5770 (aarch64_start_file): Delete.
5771 (TARGET_ASM_FILE_START): Do not define.
5772 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5773 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5776 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5778 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5779 flag_omit_leaf_frame_pointer to 2.
5781 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5783 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5785 (TARGET_FIX_ERR_A53_835769): New macro.
5786 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5787 handling of opts->x_aarch64_fix_a53_err835769.
5788 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5789 than aarch64_fix_a53_err835769.
5790 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5791 * config/aarch64/aarch64-linux.h: Likewise.
5793 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
5795 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5796 ix86_expand_int_movcc as boolean.
5798 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5800 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5801 (aarch64_cpu_string): Likewise.
5802 (aarch64_tune_string): Likewise.
5803 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5804 (aarch64_parse_extension): Return aarch64_parse_opt_result.
5805 Add extra argument to put result into.
5806 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
5807 (aarch64_parse_cpu): Add arguments to put results into. Return
5808 aarch64_parse_opt_result.
5809 (aarch64_parse_tune): Likewise.
5810 (aarch64_override_options_after_change_1): New function.
5811 (aarch64_override_options_internal): New function.
5812 (aarch64_validate_mcpu): Likewise.
5813 (aarch64_validate_march): Likewise.
5814 (aarch64_validate_mtune): Likewise.
5815 (aarch64_override_options): Update to reflect above changes.
5816 Move some logic into aarch64_override_options_internal.
5817 Initialize target_option_default_node and target_option_current_node.
5818 (aarch64_override_options_after_change): Move logic into
5819 aarch64_override_options_after_change_1 and call it with global_options.
5820 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5821 flag values from that.
5823 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5825 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5826 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5827 * config/aarch64/aarch64.c (struct processor): Add arch field.
5828 (all_architectures): Handle above, move above all_cores.
5829 (all_cores): Handle above.
5830 (aarch64_parse_arch): Handle above changes.
5831 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5832 above. Update comments.
5833 (armv8.1-a): Likewise.
5834 * config/aarch64/aarch64-cores.def: Update according to above.
5835 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5836 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5837 aarch64_arch_driver_info.
5839 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5841 * config/aarch64/aarch64.c (struct processor): Add ident field.
5842 Rename core sched_core.
5843 (all_cores): Handle above changes.
5844 (all_architectures): Likewise.
5845 (aarch64_parse_arch): Likewise.
5846 (aarch64_override_options): Likewise.
5848 2015-08-04 Richard Biener <rguenther@suse.de>
5850 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5851 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5852 comparisons embedded in [VEC_]COND_EXPRs.
5854 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5856 * tree-if-conv.c: Fix various typos in comments.
5857 * tree-vect-stmts.c: Likewise.
5859 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5861 PR tree-optimization/67043
5862 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5863 preheader after hoisting invariant in it.
5864 (find_defs): Force recomputation of all luids.
5866 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5868 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5869 using a base register.
5871 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5873 * main.c (main): Pass in NULL for toplev's external_timer.
5874 * timevar.c: Include coretypes.h.
5875 (class timer::named_items): New.
5876 (timer::named_items::named_items): New.
5877 (timer::named_items::~named_items): New.
5878 (timer::named_items::push): New.
5879 (timer::named_items::pop): New.
5880 (timer::named_items::print): New.
5881 (timer::timer): Initialize field "m_jit_client_items".
5882 (timer::~timer): New.
5883 (timer::push): Move bulk of implementation to...
5884 (timer::push_internal): ...here. New function.
5885 (timer::pop): Move bulk of implementation to...
5886 (timer::pop_internal): ...here. New function.
5887 (timer::push_client_item): New.
5888 (timer::pop_client_item): New.
5889 (timer::print_row): New function, taken from timer::print.
5890 (timer::print): Print "GCC items" header if we also have client
5891 items. Move row-printing to timer::print_row. Print any client
5893 (timer::get_topmost_item_name): New method.
5894 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5895 (TV_JIT_CLIENT_CODE): New.
5896 * timevar.h (timer::push_client_item): New declaration.
5897 (timer::pop_client_item): New declaration.
5898 (timer::get_topmost_item_name): New method.
5899 (timer::push_internal): New declaration.
5900 (timer::pop_internal): New declaration.
5901 (timer::print_row): New declaration.
5902 (timer::named_items): New declaration.
5903 (timer::m_jit_client_items): New field.
5904 (timer): Add friend class named_items.
5905 (auto_timevar::auto_timevar): Add timer param.
5906 (auto_timevar::~auto_timevar): Use field "m_timer".
5907 (auto_timevar::m_timer): New field.
5908 * toplev.c (initialize_rtl): Add g_timer as param when
5909 constructing auto_timevar instance.
5910 (toplev::toplev): Add "external_timer" param, and use it to
5911 initialize the "g_timer" global if non-NULL.
5912 (toplev::~toplev): If this created "g_timer", delete it.
5913 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5914 with "external_timer" timer *.
5916 2015-08-03 Alexander Basov <coohpt@gmail.com>
5921 * cfgexpand.c (expand_one_var): Add check if stack is going to
5922 be used in naked function.
5923 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5924 whether expression should not reside in MEM.
5925 * function.c (use_register_for_decl): Do not use registers for
5926 non-register things (volatile, float, BLKMode) in naked functions.
5928 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5931 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5932 Adjust splits to match new pattern.
5934 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5936 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5939 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5940 point in VSX registers.
5942 * config/rs6000/constraints.md (wb constraint): Document unused
5944 (we constraint): Likewise.
5945 (wo constraint): Likewise.
5946 (wp constraint): New constraint for IEEE 128-bit floating point in
5948 (wq constraint): Likewise.
5950 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5951 IEEE 128-bit floating point in VSX registers.
5952 (easy_scalar_constant): Likewise.
5954 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5955 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5957 (rs6000_init_hard_regno_mode_ok): Likewise.
5959 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5960 floating point in VSX registers.
5969 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5970 IEEE 128-bit floating point in VSX registers on little endian.
5971 (vsx_le_undo_permute_<mode>): Likewise.
5972 (vsx_le_perm_load_<mode>): Likewise.
5973 (vsx_le_perm_store_<mode>): Likewise.
5974 (splitters for IEEE 128-bit fp moves): Likewise.
5976 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5979 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5980 floating point in VSX registers.
5983 * doc/md.text (Machine Constraints): Document wp and wq
5984 constraints on PowerPC.
5986 2015-08-03 Jeff Law <law@redhat.com>
5989 PR gcov-profile/66899
5990 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5991 iterate over the jump threading paths when an element in the
5992 jump threading paths array is eliminated.
5994 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5996 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5998 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
6000 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
6001 is_use_properly_guarded the variable def_preds. Free its
6002 contents before returning.
6003 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
6004 (is_use_properly_guarded): Replace local variable def_preds with
6005 a parameter. Adjust accordingly. Only update *def_preds if it's
6008 2015-08-03 Richard Biener <rguenther@suse.de>
6010 * genmatch.c (simplify::for_subst_vec): New member.
6011 (binary_ok): New helper for for lowering.
6012 (lower_for): Delay substituting operators into result expressions
6013 if we can merge the results eventually again.
6014 (capture_info::walk_result): Adjust for user_id appearing as
6015 result expression operator.
6016 (expr::gen_transform): Likewise.
6017 (dt_simplify::gen_1): Likewise.
6018 (dt_simplify::gen): Pass not substituted operators to tail
6019 functions or initialize local variable with it.
6020 (decision_tree::gen): Adjust function signature.
6021 * match.pd: Fix tests against global code and add default
6022 cases to switch stmts.
6024 2015-08-03 Richard Biener <rguenther@suse.de>
6026 * genmatch.c (dt_simplify::gen): Create captures array
6027 with an initializer.
6029 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6031 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
6032 the host compiler is affected by placement new aliasing bug.
6033 * configure: Regenerate.
6034 * Makefile.in (ALIASING_FLAGS): New variable.
6035 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
6037 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6040 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
6041 (negmulsf3_vfp): Likewise.
6042 (muldf3negdf_vfp): Disable for -frounding-math.
6043 (mulsf3negsf_vfp): Likewise.
6044 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
6045 fix MULT cost with -frounding-math.
6047 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6049 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
6050 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
6051 explicit. Prefer to add the flag whenever possible.
6052 (noce_process_if_block): Try noce_try_store_flag_constants before
6055 2015-08-03 Richard Biener <rguenther@suse.de>
6057 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
6058 New hash-map to record equivalent transforms.
6059 (dt_node::analyze): Populate the equivalent transforms hash-map.
6060 (dt_simplify::info): Add reference to hash-map entry.
6061 (dt_simplify::gen): If we have split out a function for the
6062 transform, generate a call to it.
6063 (sinfo_hashmap_traits::hash): New function.
6064 (compare_op): New helper function for ...
6065 (sinfo_hashmap_traits::equal_keys): ... this new function.
6066 (decision_tree::gen): Split out common equivalent transforms
6069 2015-08-03 Richard Biener <rguenther@suse.de>
6071 * gimple-fold.c (fold_gimple_assign): Remove folding of
6072 the comparison in COND_EXPRs.
6074 2015-08-03 Richard Biener <rguenther@suse.de>
6076 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
6077 on the rhs of assignments first simplify the embedded
6080 2015-08-03 Richard Biener <rguenther@suse.de>
6082 PR tree-optimization/66917
6083 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
6085 (DR_VECT_AUX): New macro.
6086 (set_dr_misalignment): Adjust.
6087 (dr_misalignment): Likewise.
6088 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6089 Compute whether the base is at least element aligned.
6090 * tree-vect-stmts.c (ensure_base_align): Adjust.
6091 (vectorizable_store): If the base is not element aligned
6092 preserve alignment of the original access if misalignment is unknown.
6093 (vectorizable_load): Likewise.
6095 2015-08-02 Martin Sebor <msebor@redhat.com>
6097 * c-family/c.opt (-Wframe-address): New warning option.
6098 * doc/invoke.texi (Wframe-address): Document it.
6099 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
6100 Clarify possible effects of calling the functions with non-zero
6101 arguments and mention -Wframe-address.
6102 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
6104 2015-08-01 Michael Collison <michael.collison@linaro.org
6105 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6107 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
6108 (*arm_umin_cmp): Likewise.
6110 2015-08-01 Caroline Tice <cmtice@google.com>
6113 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
6115 (vtbl_find_mangled_name): New function.
6116 (vtbl_register_mangled_name): New function.
6117 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
6118 mangled name in mangled name vectors.
6119 (find_or_create_vtbl_map_node): Ditto.
6120 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
6121 update recursion_depth on function entry; pass it to every recursive
6122 call; automatically exit if depth > 25 (give up looking at that point).
6123 (verify_bb_vtables): Initialize recursion_depth and pass it to
6124 var_is_used_for_virtual_call_p.
6125 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
6126 global variable decls.
6127 (vtbl_register_mangled_name): New extern function decl.
6129 2015-08-01 Tom de Vries <tom@codesourcery.com>
6131 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
6133 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
6135 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
6136 operation_no_trapping_overflow. Allow non-overflow operations.
6137 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
6140 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6143 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
6145 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6147 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
6148 Enable for TARGET_32BIT.
6149 (*if_move_neg): Likewise.
6151 2015-07-31 Nick Clifton <nickc@redhat.com>
6153 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
6154 Returns true for __model__.
6155 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
6157 2015-07-31 Alan Modra <amodra@gmail.com>
6160 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
6161 (rs6000_emit_prologue): Set it.
6162 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
6164 2015-07-31 Richard Biener <rguenther@suse.de>
6166 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
6167 -> X == (C1 ^ C2) which is already implemented in match.pd.
6168 Remove redundant dispatching to fold_relational_const.
6169 Move unordered self and NaN compares ...
6170 * match.pd: ... as patterns here. Remove some stray captures
6173 2015-07-31 Petr Murzin <petr.murzin@intel.com>
6175 * config/i386/i386.c
6176 (bdesc_special_args): Convert mask type from signed to unsigned for
6178 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
6179 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
6180 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
6181 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
6182 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
6183 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
6184 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
6185 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
6186 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
6187 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
6188 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
6189 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
6190 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
6191 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
6192 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
6193 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
6194 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
6195 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
6196 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
6197 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
6198 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
6199 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
6200 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
6201 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
6202 * config/i386/i386-builtin-types.def
6203 (V16QI_FTYPE_V16SI): Remove.
6204 (V8DF_FTYPE_V8SI): Ditto.
6205 (V8HI_FTYPE_V8DI): Ditto.
6206 (V8SI_FTYPE_V8DI): Ditto.
6207 (V8SF_FTYPE_V8DF): Ditto.
6208 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
6209 (V16HI_FTYPE_V16SI): Ditto.
6210 (V16SF_FTYPE_V16HI): Ditto.
6211 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
6212 (V16SF_FTYPE_V16SI): Ditto.
6213 (V4DI_FTYPE_V4DI): Ditto.
6214 (V16SI_FTYPE_V16SF): Ditto.
6215 (V16SF_FTYPE_FLOAT): Ditto.
6216 (V8DF_FTYPE_DOUBLE): Ditto.
6217 (V8DI_FTYPE_INT64): Ditto.
6218 (V8DI_FTYPE_V4DI): Ditto.
6219 (V16QI_FTYPE_V8DI): Ditto.
6220 (UINT_FTYPE_V4SF): Ditto.
6221 (UINT64_FTYPE_V4SF): Ditto.
6222 (UINT_FTYPE_V2DF): Ditto.
6223 (UINT64_FTYPE_V2DF): Ditto.
6224 (V16SI_FTYPE_V16SI): Ditto.
6225 (V8DI_FTYPE_V8DI): Ditto.
6226 (V16SI_FTYPE_PV4SI): Ditto.
6227 (V16SF_FTYPE_PV4SF): Ditto.
6228 (V8DI_FTYPE_PV2DI): Ditto.
6229 (V8DF_FTYPE_PV2DF): Ditto.
6230 (V4DI_FTYPE_PV2DI): Ditto.
6231 (V4DF_FTYPE_PV2DF): Ditto.
6232 (V16SI_FTYPE_PV2SI): Ditto.
6233 (V16SF_FTYPE_PV2SF): Ditto.
6234 (V8DI_FTYPE_PV4DI): Ditto.
6235 (V8DF_FTYPE_PV4DF): Ditto.
6236 (V8SF_FTYPE_FLOAT): Ditto.
6237 (V4SF_FTYPE_FLOAT): Ditto.
6238 (V4DF_FTYPE_DOUBLE): Ditto.
6239 (V8SF_FTYPE_PV4SF): Ditto.
6240 (V8SI_FTYPE_PV4SI): Ditto.
6241 (V4SI_FTYPE_PV2SI): Ditto.
6242 (V8SF_FTYPE_PV2SF): Ditto.
6243 (V8SI_FTYPE_PV2SI): Ditto.
6244 (V16SF_FTYPE_PV8SF): Ditto.
6245 (V16SI_FTYPE_PV8SI): Ditto.
6246 (V8DI_FTYPE_V8SF): Ditto.
6247 (V4DI_FTYPE_V4SF): Ditto.
6248 (V2DI_FTYPE_V4SF): Ditto.
6249 (V64QI_FTYPE_QI): Ditto.
6250 (V32HI_FTYPE_HI): Ditto.
6251 (V8UHI_FTYPE_V8UHI): Ditto.
6252 (V16UHI_FTYPE_V16UHI): Ditto.
6253 (V32UHI_FTYPE_V32UHI): Ditto.
6254 (V2UDI_FTYPE_V2UDI): Ditto.
6255 (V4UDI_FTYPE_V4UDI): Ditto.
6256 (V8UDI_FTYPE_V8UDI): Ditto.
6257 (V4USI_FTYPE_V4USI): Ditto.
6258 (V8USI_FTYPE_V8USI): Ditto.
6259 (V16USI_FTYPE_V16USI): Ditto.
6260 (V2DF_FTYPE_V2DF_UINT64): Ditto.
6261 (V2DI_FTYPE_V2DF_V2DF): Ditto.
6262 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
6263 (V8DF_FTYPE_V8DF_V8DI): Ditto.
6264 (V4SF_FTYPE_V4SF_UINT64): Ditto.
6265 (V4SI_FTYPE_V4SF_V4SF): Ditto.
6266 (V16SF_FTYPE_V16SF_V16SI): Ditto.
6267 (V64QI_FTYPE_V32HI_V32HI): Ditto.
6268 (V32HI_FTYPE_V16SI_V16SI): Ditto.
6269 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
6270 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
6271 (V32HI_FTYPE_V64QI_V64QI): Ditto.
6272 (V32HI_FTYPE_V32HI_V32HI): Ditto.
6273 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
6274 (V16SI_FTYPE_V16SI_V4SI): Ditto.
6275 (V16SI_FTYPE_V16SI_V16SI): Ditto.
6276 (V16SI_FTYPE_V32HI_V32HI): Ditto.
6277 (V16SI_FTYPE_V16SI_SI): Ditto.
6278 (V8DI_FTYPE_V8DI_V8DI): Ditto.
6279 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
6280 (V8DI_FTYPE_V16SI_V16SI): Ditto.
6281 (V8DI_FTYPE_V8DI_V2DI): Ditto.
6282 (QI_FTYPE_QI): Ditto.
6283 (SI_FTYPE_SI): Ditto.
6284 (DI_FTYPE_DI): Ditto.
6285 (QI_FTYPE_QI_QI): Ditto.
6286 (QI_FTYPE_QI_INT): Ditto.
6287 (HI_FTYPE_HI_INT): Ditto.
6288 (SI_FTYPE_SI_INT): Ditto.
6289 (DI_FTYPE_DI_INT): Ditto.
6290 (HI_FTYPE_V16QI_V16QI): Ditto.
6291 (SI_FTYPE_V32QI_V32QI): Ditto.
6292 (DI_FTYPE_V64QI_V64QI): Ditto.
6293 (QI_FTYPE_V8HI_V8HI): Ditto.
6294 (HI_FTYPE_V16HI_V16HI): Ditto.
6295 (SI_FTYPE_V32HI_V32HI): Ditto.
6296 (QI_FTYPE_V4SI_V4SI): Ditto.
6297 (QI_FTYPE_V8SI_V8SI): Ditto.
6298 (QI_FTYPE_V2DI_V2DI): Ditto.
6299 (QI_FTYPE_V4DI_V4DI): Ditto.
6300 (QI_FTYPE_V8DI_V8DI): Ditto.
6301 (HI_FTYPE_V16SI_V16SI): Ditto.
6302 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
6303 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
6304 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
6305 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
6306 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
6307 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
6308 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
6309 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
6310 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
6311 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
6312 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
6313 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
6314 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
6315 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
6316 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
6317 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
6318 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
6319 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
6320 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
6321 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
6322 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
6323 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
6324 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6325 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6326 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6327 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6328 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6329 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6330 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6331 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6332 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6333 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
6334 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
6335 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
6336 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6337 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6338 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6339 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
6340 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
6341 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
6342 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
6343 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
6344 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
6345 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
6346 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
6347 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
6348 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
6349 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6350 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6351 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
6352 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6353 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6354 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
6355 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
6356 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
6357 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
6358 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
6359 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
6360 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
6361 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
6362 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
6363 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
6364 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
6365 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
6366 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
6367 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
6368 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
6369 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
6370 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
6371 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
6372 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
6373 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
6374 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
6375 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
6376 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
6377 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
6378 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
6379 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
6380 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
6381 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
6382 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
6383 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
6384 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
6385 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
6386 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
6387 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
6388 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
6389 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
6390 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
6391 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
6392 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
6393 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
6394 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
6395 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
6396 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
6397 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
6398 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
6399 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
6400 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
6401 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
6402 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
6403 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6404 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6405 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6406 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
6407 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
6408 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
6409 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
6410 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
6411 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
6412 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
6413 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
6414 (HI_FTYPE_HI): Ditto.
6415 (HI_FTYPE_V16QI): Ditto.
6416 (SI_FTYPE_V32QI): Ditto.
6417 (DI_FTYPE_V64QI): Ditto.
6418 (QI_FTYPE_V8HI): Ditto.
6419 (HI_FTYPE_V16HI): Ditto.
6420 (SI_FTYPE_V32HI): Ditto.
6421 (QI_FTYPE_V4SI): Ditto.
6422 (QI_FTYPE_V8SI): Ditto.
6423 (HI_FTYPE_V16SI): Ditto.
6424 (QI_FTYPE_V2DI): Ditto.
6425 (QI_FTYPE_V4DI): Ditto.
6426 (QI_FTYPE_V8DI): Ditto.
6427 (V16QI_FTYPE_HI): Ditto.
6428 (V32QI_FTYPE_SI): Ditto.
6429 (V64QI_FTYPE_DI): Ditto.
6430 (V8HI_FTYPE_QI): Ditto.
6431 (V16HI_FTYPE_HI): Ditto.
6432 (V32HI_FTYPE_SI): Ditto.
6433 (V4SI_FTYPE_QI): Ditto.
6434 (V4SI_FTYPE_HI): Ditto.
6435 (V8SI_FTYPE_QI): Ditto.
6436 (V8SI_FTYPE_HI): Ditto.
6437 (V2DI_FTYPE_QI): Ditto.
6438 (V4DI_FTYPE_QI): Ditto.
6439 (HI_FTYPE_HI_HI): Ditto.
6440 (SI_FTYPE_SI_SI): Ditto.
6441 (DI_FTYPE_DI_DI): Ditto.
6442 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
6443 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
6444 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
6445 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
6446 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
6447 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
6448 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
6449 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
6450 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
6451 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
6452 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
6453 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
6454 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
6455 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
6456 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
6457 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
6458 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
6459 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
6460 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
6461 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
6462 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
6463 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
6464 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
6465 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
6466 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
6467 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
6468 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
6469 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
6470 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
6471 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
6472 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
6473 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
6474 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
6475 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
6476 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
6477 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
6478 (V16SI_FTYPE_HI): Ditto.
6479 (V8DI_FTYPE_QI): Ditto.
6480 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
6481 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
6482 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
6483 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
6484 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
6485 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
6486 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
6487 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
6488 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
6489 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
6490 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
6491 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
6492 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
6493 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
6494 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
6495 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
6496 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
6497 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
6498 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
6499 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
6500 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
6501 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
6502 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
6503 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
6504 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
6505 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
6506 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
6507 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
6508 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
6509 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
6510 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
6511 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
6512 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
6513 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
6514 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
6515 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
6516 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
6517 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6518 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6519 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6520 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6521 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6522 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6523 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6524 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6525 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6526 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6527 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6528 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6529 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6530 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6531 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6532 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6533 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6534 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6535 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6536 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6537 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6538 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6539 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6540 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6541 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6542 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6543 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6544 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6545 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6546 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6547 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6548 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6549 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6550 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6551 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6552 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6553 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6554 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6555 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6556 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6557 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6558 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6559 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6560 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6561 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6562 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6563 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6564 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6565 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6566 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6567 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6568 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6569 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6570 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6571 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6572 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6573 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6574 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6575 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6576 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6577 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6578 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6579 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6580 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6581 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6582 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6583 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6584 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6585 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6586 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6587 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6588 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6589 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6590 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6591 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6592 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6593 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6594 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6595 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6596 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6597 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6598 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6599 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6600 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6601 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6602 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6603 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6604 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6605 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6606 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6607 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6608 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6609 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6610 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6611 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6612 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6613 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6614 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6615 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6616 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6617 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6618 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6619 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6620 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6621 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6622 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6623 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6624 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6625 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6626 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6627 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6628 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6629 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6630 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6631 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6632 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6633 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6634 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6635 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6636 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6637 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6638 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6639 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6640 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6641 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6642 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6643 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6644 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6645 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6646 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6647 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6648 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6649 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6650 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6651 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6652 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6653 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6654 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6655 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6656 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6657 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6658 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6659 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6660 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6661 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6662 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6663 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6664 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6665 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6666 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6667 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6668 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6669 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6670 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6671 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6672 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6673 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6674 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6675 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6676 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6677 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6678 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6679 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6680 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6681 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6682 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6683 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6684 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6685 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6686 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6687 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6688 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6689 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6690 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6691 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6692 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6693 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6694 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6695 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6696 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6697 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6698 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6699 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6700 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6701 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6702 (QI_FTYPE_V8DF_INT_QI): Ditto.
6703 (QI_FTYPE_V4DF_INT_QI): Ditto.
6704 (QI_FTYPE_V2DF_INT_QI): Ditto.
6705 (HI_FTYPE_V16SF_INT_HI): Ditto.
6706 (QI_FTYPE_V8SF_INT_QI): Ditto.
6707 (QI_FTYPE_V4SF_INT_QI): Ditto.
6708 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6710 2015-07-31 Richard Biener <rguenther@suse.de>
6712 * gimple-fold.c (fold_gimple_assign): Remove folding of
6715 2015-07-31 Tom de Vries <tom@codesourcery.com>
6717 PR tree-optimization/66846
6718 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6719 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6720 (expand_omp_target) [ENABLE_CHECKING]: Same.
6721 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6722 cfun if !LOOPS_NEED_FIXUP.
6723 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
6724 that omp_for already has its own loop struct.
6725 * tree-parloops.c (create_phi_for_local_result)
6726 (create_call_for_reduction): Handle simple latch bb.
6727 (create_parallel_loop): Add simple latch bb to preserve
6728 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
6729 (gen_parallel_loop): Remove call to cancel_loop_tree.
6730 (parallelize_loops): Skip loops that are inner loops of parallelized
6732 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6733 verify_loop_structure.
6735 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6737 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6738 * config/v850/v850.md (RV_REGNUM): New constants.
6739 * config/v850/v850.c (v850_libcall_value): New functions.
6740 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6741 (TARGET_LIBCALL_VALUE): Define.
6743 2015-07-30 Anatoly Sokolov <aesok@post.ru>
6745 * rtl.h (lowpart_subreg): Move in file.
6746 * loop-iv.c (lowpart_subreg): Move to...
6747 * simplify-rtx.c (lowpart_subreg): ...here.
6748 (simplify_binary_operation_1): Use lowpart_subreg instead of
6749 simplify_gen_subreg.
6750 * expr.c (expand_expr_real_2): Ditto.
6751 * emit-rtl.c (gen_lowpart_common): Ditto.
6752 * combine.c (gen_lowpart_for_combine): Ditto.
6753 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6754 expand_debug_source_expr): Ditto.
6756 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
6758 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6759 (expand_builtin_atomic_clear): Remove support for atomic_clear
6762 2015-07-30 Richard Biener <rguenther@suse.de>
6764 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6765 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6766 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
6767 redundant operand canonicalization.
6769 2015-07-30 David Sherwood <david.sherwood@arm.com>
6771 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6772 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6773 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6774 * config/arm/arm.c (neon_valid_immediate): Likewise.
6775 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6776 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6777 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6778 (expand_vec_perm_vpshufb2_vpermq): Likewise.
6779 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6780 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6781 * config/i386/sse.md
6782 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6783 (*ssse3_palignr<mode>_perm): Likewise.
6784 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6785 * config/spu/spu.c (arith_immediate_p): Likewise.
6786 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6787 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6789 2015-07-30 Richard Biener <rguenther@suse.de>
6791 * genmatch.c (decision_tree::gen_gimple): Merge with ...
6792 (decision_tree::gen_generic): ... this into ...
6793 (decision_tree::gen): ... this.
6794 (main): Adjust callers.
6796 2015-07-30 Richard Biener <rguenther@suse.de>
6798 * genmatch.c (verbose): New global.
6799 (warning_at): Add overload with source_location.
6800 (capture_info::capture_info): Add bool whether generating gimple
6801 or generic. Add gimple member.
6802 (capture_info::cinfo): Add capture member.
6803 (capture_info::walk_match): Record capture. Warn on
6805 (capture_info::walk_c_expr): Add more fragments captures cannot
6806 escape through. Warn on escaped captures.
6807 (dt_simplify::gen_1): Warn on operands we force to have no
6809 (main): Initialize verbose.
6810 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6812 2015-07-30 Richard Biener <rguenther@suse.de>
6815 * match.pd: Allow both operands to independently have conversion
6816 when simplifying compares of addresses.
6818 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6822 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6823 around those cases that need one.
6825 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6827 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6829 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6831 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6832 New. Copied from config/i386/gnu-user.h.
6833 (ASM_COMMENT_START): Likewise.
6834 (DBX_REGISTER_NUMBER): Likewise.
6836 2015-07-29 Richard Biener <rguenther@suse.de>
6838 * gimple-fold.c (fold_gimple_cond): Remove.
6839 (fold_stmt_1): Do not call it.
6841 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6843 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6844 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6846 * config/aarch64/aarch64-modes.def: Add HFmode.
6848 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6849 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6851 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6852 aarch64_promoted_type): New.
6854 (aarch64_float_const_representable_p): Disable HFmode.
6855 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6856 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6857 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6859 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6860 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6862 * config/aarch64/iterators.md (GPF_F16): New.
6864 2015-07-29 Richard Biener <rguenther@suse.de>
6866 * match.pd: Merge address comparison patterns and make them
6867 handle some more cases.
6869 2015-07-29 Richard Biener <rguenther@suse.de>
6871 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6872 (parser::parse_capture): Add bool argument on whether to reject
6874 (parser::parse_expr): Adjust.
6875 (parser::parse_op): Likewise.
6876 (parser::parse_pattern): Likewise.
6878 2015-07-29 Richard Biener <rguenther@suse.de>
6880 * gimple-fold.c (has_use_on_stmt): New function.
6881 (replace_stmt_with_simplification): Use it to allow
6882 abnormals originally referenced in the stmt.
6883 (fold_stmt_1): Canonicalize operand order.
6885 2015-07-28 David Sherwood <david.sherwood@arm.com>
6887 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6888 GET_MODE_INNER unconditionally.
6889 * config/spu/spu.c (arith_immediate_p): Likewise.
6890 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6891 * expmed.c (synth_mult): Remove check for VOIDmode result from
6893 (expand_mult_const): Likewise.
6894 * fold-const.c (fold_binary_loc): Replace call to element_precision
6895 with call to GET_MODE_PRECISION.
6896 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6898 (emit_mode_inner): Likewise.
6899 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6901 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6902 (GET_MODE_UNIT_PRECISION): Likewise.
6903 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6904 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6905 * stor-layout.c (bitwise_type_for_mode): Update assert.
6906 (element_precision): Remove.
6908 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6910 * target-insns.def (reload_load_address): New targetm instruction
6912 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6914 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6916 * target-insns.def (atomic_test_and_set): New targetm instruction
6918 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6919 HAVE_*/gen_* interface.
6921 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6923 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6925 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6926 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6927 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6928 * rtlanal.c (nonzero_bits1): Likewise.
6929 (num_sign_bit_copies1): Likewise.
6931 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6933 * target-insns.def (eh_return): New targetm instruction pattern.
6934 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6936 * function.c (thread_prologue_and_epilogue_insns): Remove
6937 preprocessor condition.
6939 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6941 * target-insns.def (indirect_jump): New targetm instruction pattern.
6942 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6945 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6947 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6948 instead of nonimmediate_operand. Remove C condiition.
6950 2015-07-28 Richard Biener <rguenther@suse.de>
6952 * match.pd: Add more simplification of address comparisons.
6954 2015-07-28 Richard Biener <rguenther@suse.de>
6956 * match.pd: Re-order two cases in comparison with max/min
6957 value simplification to make it apply for bools.
6959 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6961 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6962 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6963 (aarch64_rtx_costs): Properly strip extend or extract before
6964 passing down to rtx costs again.
6966 2015-07-28 Nick Clifton <nickc@redhat.com>
6968 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6969 Optimizes the case where -mes0 is active and a constant symbolic
6971 * config/rl78/rl78-protos.h: Prototype the new function.
6972 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6974 2015-07-28 Tom de Vries <tom@codesourcery.com>
6976 * tree-parloops.c (reduc_stmt_res): New function.
6977 (initialize_reductions, add_field_for_reduction)
6978 (create_phi_for_local_result, create_loads_for_reductions)
6979 (create_stores_for_reduction, build_new_reduction): Handle case that
6980 reduc_stmt is a phi.
6981 (gather_scalar_reductions): Allow double_reduc reductions.
6983 2015-07-28 Richard Biener <rguenther@suse.de>
6985 * fold-const.c (fold_comparison): Remove equality folding
6986 of decl addresses ...
6987 * match.pd: ... here and merge with existing pattern.
6989 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6991 PR tree-optimization/66828
6992 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6993 from int64_t to uint64_t.
6995 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6997 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6998 as valid only in the error message of the driver, not in the
6999 messages of the language compilers.
7001 2015-07-27 Tom de Vries <tom@codesourcery.com>
7003 * tree-parloops.c (gather_scalar_reductions): Simplify function
7006 2015-07-27 Marek Polacek <polacek@redhat.com>
7008 * ipa-devirt.c (types_same_for_odr): Fix typo.
7010 2015-07-27 Jason Merrill <jason@redhat.com>
7013 * dwarf2out.c (gen_inlined_subroutine_die): Check
7014 cgraph_function_possibly_inlined_p.
7016 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
7018 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
7019 Place integer variant first.
7020 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7022 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
7025 * config/arm/arm-builtins.c (enum arm_builtins):
7026 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
7027 (ARM_BUILTIN_NEON_BASE): Rename macro to....
7028 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
7029 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
7030 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
7032 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
7035 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
7036 Add qualifier_lane_index.
7037 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
7038 (arm_getlane_qualifiers): Use qualifier_lane_index.
7039 (arm_lanemac_qualifiers): Rename to...
7040 (arm_mac_n_qualifiers): ...this.
7041 (LANEMAC_QUALIFIERS): Rename to...
7042 (MAC_N_QUALIFIERS): ...this.
7043 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
7044 (arm_setlane_qualifiers): Use qualifier_lane_index.
7045 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
7046 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
7047 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
7048 (arm_expand_neon_builtin): Handle qualifier_lane_index.
7050 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
7051 * config/arm/arm.c (bounds_check): Likewise, improve error message.
7052 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
7053 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
7054 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
7055 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
7056 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
7057 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
7058 qualifiers to TERNOP_IMM.
7059 (vdup_lane): Change qualifiers to GETLANE.
7060 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
7061 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
7062 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
7063 vqdmlsl_n): Change qualifiers to MAC_N.
7065 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
7066 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
7067 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
7068 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
7069 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
7070 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
7071 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
7072 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
7073 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
7074 Remove call to neon_lane_bounds.
7076 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
7078 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7079 Place integer variant first.
7081 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
7083 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
7084 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
7085 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
7086 for armv6kz targets.
7087 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
7088 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
7089 (FL_FOR_ARCH6ZK): Remove.
7090 (FL_FOR_ARCH6KZ): New.
7091 (arm_arch6zk): New declaration.
7092 * config/arm/arm-tables.opt: Regenerate.
7093 * config/arm/arm.c (arm_arch6kz): New.
7094 (arm_option_override): Set arm_arch6kz.
7095 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
7096 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
7097 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
7099 2015-07-27 Marek Polacek <polacek@redhat.com>
7103 * doc/invoke.texi: Document -Wtautological-compare.
7105 2015-07-27 Richard Biener <rguenther@suse.de>
7107 * genmatch.c (decision_tree::gen_gimple): Split out large
7108 subtrees into separate functions.
7109 (decision_tree::gen_generic): Likewise.
7111 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
7113 * config/alpha/alpha.c: Use SUBREG_P predicate.
7114 * config/alpha/predicates.md: Ditto.
7116 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
7118 * config.host (s390*-*-*): Include driver-native.c only when
7119 building with s390* as host *and* target.
7121 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
7124 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
7125 T bit register modified_between_p check.
7127 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7129 * config/i386/i386.c: Use SUBREG_P predicate.
7130 * config/i386/i386.md: Ditto.
7131 * config/i386/sse.md: Ditto.
7132 * config/i386/predicates.md: Ditto.
7134 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7137 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
7138 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
7140 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7142 * Makefile.in: Remove use of TREEBROWSER.
7143 * config.in: Regenerated.
7144 * configure: Regenerated.
7145 * configure.ac: Remove definition of TREEBROWSER.
7146 * tree-browser.c: Removed.
7147 * tree-browser.def: Removed.
7149 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7151 * graphite-scop-detection.c: Include gimple-pretty-print.h.
7152 (stmt_simple_for_scop_p): Print when a stmt is not handled in
7154 (scopdet_basic_block_info): Print when a loop or bb cannot be
7155 represented in Graphite.
7157 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7160 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
7161 execution guard when min_size is less than size_needed.
7163 2015-07-25 Sebastian Pop <s.pop@samsung.com>
7165 * doc/install.texi: Document supported versions of ISL.
7167 2015-07-25 Jeff Law <law@redhat.com>
7171 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7172 unable to find X NE 0 in the tables, return X as the simplified
7174 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7175 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7177 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7178 after removing the control flow statement and unnecessary edges.
7180 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
7183 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7185 PR rtl-optimization/64164
7186 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7187 * tree-ssa-copyrename.c: Removed.
7188 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7189 -ftree-coalesce-vars.
7190 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7191 * common.opt (ftree-copyrename): Ignore.
7192 (ftree-coalesce-inlined-vars): Likewise.
7193 * doc/invoke.texi: Remove the ignored options above.
7194 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7195 * tree-ssa-coalesce.h: ... here.
7196 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7197 headers required by it.
7198 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7199 across variables when flag_tree_coalesce_vars. Check register
7200 use and promoted modes to allow coalescing. Moved to
7201 tree-ssa-coalesce.c.
7202 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7203 with its member functions to tree-ssa-coalesce.c.
7204 (var_map_base_init): Likewise. Renamed to
7205 compute_samebase_partition_bases.
7206 (partition_view_normal): Drop want_bases parameter.
7207 (partition_view_bitmap): Likewise.
7208 * tree-ssa-live.h: Adjust declarations.
7209 * tree-ssa-coalesce.c: Include explow.h.
7210 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7211 default defs at the entry point.
7212 (dump_part_var_map): New.
7213 (compute_optimized_partition_bases): New, called by...
7214 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7215 of compute_samebase_partition_bases. Adjust.
7216 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7217 * cfgexpand.c (leader_merge): New.
7218 (get_rtl_for_parm_ssa_default_def): New.
7219 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7220 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7221 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7222 redundant MEM attr setting.
7223 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7225 (expand_one_stack_var): ... this. New wrapper to check and
7226 skip already expanded SSA partitions.
7227 (record_alignment_for_reg_var): New, factored out of...
7228 (expand_one_var): ... this.
7229 (expand_one_ssa_partition): New.
7230 (adjust_one_expanded_partition_var): New.
7231 (expand_one_register_var): Check and skip already expanded SSA
7233 (expand_used_vars): Don't create DECLs for anonymous SSA
7234 names. Expand all SSA partitions, then adjust all SSA names.
7235 (pass::execute): Replace the loops that set
7236 SA.partition_to_pseudo from partition leaders and cleared
7237 DECL_RTL for multi-location variables, and that which used to
7238 rename vars and set attrs, with one that clears DECL_RTL and
7239 checks that PARMs and RESULTs default_defs match DECL_RTL.
7240 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7241 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7242 * explow.c (promote_ssa_mode): New.
7243 * explow.h (promote_ssa_mode): Declare.
7244 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7245 * function.c: Include cfgexpand.h.
7246 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7247 (use_register_for_parm_decl): Wrapper for the above to
7248 special-case the result_ptr.
7249 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7250 (split_complex_args): Take assign_parm_data_all argument.
7251 Pass it to rtl_for_parm. Set up rtl and context for split
7253 (assign_parms_augmented_arg_list): Adjust.
7254 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7255 multiple locations. Recognize split complex args.
7256 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7257 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7258 (assign_parm_setup_block): Prefer SSA-assigned location.
7259 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7260 if stack_parm is NULL.
7261 (assign_parm_setup_stack): Prefer SSA-assigned location.
7262 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7263 rtl before testing for pointer bounds. Special-case result_ptr.
7264 (expand_function_start): Maybe reset DECL_RTL of result.
7265 Prefer SSA-assigned location for result and static chain.
7266 Factor out DECL_RESULT and SET_DECL_RTL.
7267 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7268 anonymous SSA names. Use promote_ssa_mode.
7269 (get_temp_reg): Likewise.
7270 (remove_ssa_form): Adjust.
7271 * stor-layout.c (layout_decl): Don't set mem attributes of
7273 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7274 and get its reg_usage for reg invalidation.
7275 (compute_bb_dataflow): Pass it insn.
7276 (emit_notes_in_bb): Likewise.
7278 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
7280 * config/i386/i386.c (ix86_va_start): Remove
7281 unneeded !TARGET_64BIT check.
7282 (ix86_gimplify_va_arg): Ditto.
7284 2015-07-24 Tom de Vries <tom@codesourcery.com>
7286 * graphite-sese-to-poly.c (build_poly_scop): Always call
7287 rewrite_commutative_reductions_out_of_ssa.
7289 2015-07-24 Tom de Vries <tom@codesourcery.com>
7291 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
7292 flag_associative_math to FLOAT_TYPE_P. Honour
7293 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
7295 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7298 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
7299 and "%qD" in warning_at instead of "%q+D" in warning.
7301 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7303 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
7304 (ix86_function_abi): Cleanup.
7306 2015-07-24 Michael Darling <darlingm@gmail.com>
7309 * acinclude.m4: Reflects renaming of configure.in to configure.ac
7310 * configure: Likewise
7311 * configure.ac: Likewise
7312 * doc/install.texi: Likewise
7313 * doc/tm.texi: Likewise
7314 * doc/tm.texi.in: Likewise
7316 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7318 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
7319 manually swapping values.
7320 * cse.c (fold_rtx): Likewise.
7321 * lra-eliminations.c (form_sum): Likewise.
7323 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
7326 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
7327 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
7328 (*jcc_1, *jcc_2, jump, simple_return_internal)
7329 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
7330 Set length_nobnd attribute instead of length attribute.
7331 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
7332 (length_nobnd): Remove attribute.
7333 (length): Remove length_nobnd processing.
7335 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
7337 * gimplify.c (omp_default_clause): New function. Reorganize flow
7338 for clarity. Broken out of ...
7339 (omp_notice_variable): ... here.
7341 2015-07-24 Gary Funck <gary@intrepid.com>
7344 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
7345 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
7347 2015-07-24 Tom de Vries <tom@codesourcery.com>
7349 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
7350 exit-first loop transform.
7352 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7355 * tree-cfg.c (struct replace_decls_d): New struct.
7356 (replace_block_vars_by_duplicates_1): New function.
7357 (replace_block_vars_by_duplicates): Use it to replace the decls
7358 in the value exprs by duplicates.
7360 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7362 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
7363 -shared, -symbolic, -rdynamic.
7365 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7368 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
7369 -dynamic-linker within %{!static %{!shared, and -rdynamic within
7372 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7375 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
7376 edge summary is available.
7378 2015-07-24 Richard Biener <rguenther@suse.de>
7380 * genmatch.c (struct dt_node): Add statistic fields.
7381 (dt_node::analyze): New method.
7382 (decision_tree::gen_gimple): Call analyze on the root node
7383 and print statistics to stderr.
7384 (decision_tree::gen_generic): Likewise.
7386 2015-07-24 Richard Biener <rguenther@suse.de>
7388 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
7389 against the highest or lowest possible integer ...
7390 * match.pd: ... as patterns here.
7392 2015-07-24 Richard Biener <rguenther@suse.de>
7394 * genmatch.c (struct capture_info): Add same_as field.
7395 (capture_info::capture_info): Initialize same_as.
7396 (capture_info::walk_match): Compute same_as.
7397 (capture_info::walk_result): Compute stuff for the leader.
7398 (capture_info::walk_c_expr): Likewise.
7399 (dt_simplify::gen_1): Only look at leaders when deciding
7400 to force no side-effects or emit side-effects of omitted operands.
7402 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7404 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
7405 reg note to the GPR -> FPR save instructions.
7407 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7409 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
7411 (s390_expand_insv): Don't generate risbg pattern for constant zero
7413 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
7414 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
7417 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7419 * config/s390/s390.c (s390_reorg): Clean up handling of processors
7422 (s390_issue_rate): Likewise.
7423 (s390_sched_reorder): Likewise.
7424 (s390_sched_variable_issue): Likewise.
7425 (s390_loop_unroll_adjust): Likewise.
7426 (s390_option_override): Likewise.
7428 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7430 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
7431 processor capabilities with -march=native.
7432 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
7433 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
7434 (S390_TARGET_BITS_STRING): Macro to simplify specs.
7436 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7438 * config/s390/s390.c (s390_issue_rate): Handle
7439 PROCESSOR_2094_Z9_EC.
7440 (s390_option_override): Likewise.
7441 (s390_adjust_priority): Likewise.
7443 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
7445 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
7446 when cross compiling.
7448 2015-07-24 Richard Biener <rguenther@suse.de>
7450 * fold-const.c (maybe_canonicalize_comparison_1): Move
7451 A code CST canonicalization ...
7452 * match.pd: ... to a pattern here.
7454 2015-07-24 Jiong Wang <jiong.wang@arm.com>
7457 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7459 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7460 (HONOR_REG_ALLOC_ORDER): Define.
7462 2015-07-24 Richard Biener <rguenther@suse.de>
7464 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
7465 * fold-const.c (fold_comparison): Move parameter does not
7466 alias &local simplification ...
7467 * match.pd: ... as a pattern here.
7469 2015-07-24 Richard Biener <rguenther@suse.de>
7471 * gimple-fold.c (replace_stmt_with_simplification): Special-case
7472 valueizing call operands.
7473 * gimple-match-head.c (maybe_push_res_to_seq): Take
7474 number of call arguments from ops array.
7475 (do_valueize): New function.
7476 (gimple_simplify): Return true if valueization changed
7477 any operand even if the result didn't simplify further.
7479 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7482 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
7484 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7487 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
7489 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7491 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
7494 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7496 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
7499 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
7501 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
7502 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
7504 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
7505 ms_va_list_type_node initialization.
7507 2015-07-23 Jeff Law <law@redhat.com>
7510 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7511 unable to find X NE 0 in the tables, return X as the simplified
7513 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7514 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7516 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7517 after removing the control flow statement and unnecessary edges.
7519 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7521 * tree-pass.h (get_current_pass_name): Removed.
7523 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
7525 PR rtl-optimization/64164
7526 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7527 * tree-ssa-copyrename.c: Removed.
7528 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7529 -ftree-coalesce-vars.
7530 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7531 * common.opt (ftree-copyrename): Ignore.
7532 (ftree-coalesce-inlined-vars): Likewise.
7533 * doc/invoke.texi: Remove the ignored options above.
7534 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7535 * tree-ssa-coalesce.h: ... here.
7536 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7537 headers required by it.
7538 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7539 across variables when flag_tree_coalesce_vars. Check register
7540 use and promoted modes to allow coalescing. Moved to
7541 tree-ssa-coalesce.c.
7542 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7543 with its member functions to tree-ssa-coalesce.c.
7544 (var_map_base_init): Likewise. Renamed to
7545 compute_samebase_partition_bases.
7546 (partition_view_normal): Drop want_bases parameter.
7547 (partition_view_bitmap): Likewise.
7548 * tree-ssa-live.h: Adjust declarations.
7549 * tree-ssa-coalesce.c: Include explow.h.
7550 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7551 default defs at the entry point.
7552 (dump_part_var_map): New.
7553 (compute_optimized_partition_bases): New, called by...
7554 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7555 of compute_samebase_partition_bases. Adjust.
7556 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7557 * cfgexpand.c (leader_merge): New.
7558 (get_rtl_for_parm_ssa_default_def): New.
7559 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7560 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7561 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7562 redundant MEM attr setting.
7563 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7565 (expand_one_stack_var): ... this. New wrapper to check and
7566 skip already expanded SSA partitions.
7567 (record_alignment_for_reg_var): New, factored out of...
7568 (expand_one_var): ... this.
7569 (expand_one_ssa_partition): New.
7570 (adjust_one_expanded_partition_var): New.
7571 (expand_one_register_var): Check and skip already expanded SSA
7573 (expand_used_vars): Don't create DECLs for anonymous SSA
7574 names. Expand all SSA partitions, then adjust all SSA names.
7575 (pass::execute): Replace the loops that set
7576 SA.partition_to_pseudo from partition leaders and cleared
7577 DECL_RTL for multi-location variables, and that which used to
7578 rename vars and set attrs, with one that clears DECL_RTL and
7579 checks that PARMs and RESULTs default_defs match DECL_RTL.
7580 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7581 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7582 * explow.c (promote_ssa_mode): New.
7583 * explow.h (promote_ssa_mode): Declare.
7584 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7585 * function.c: Include cfgexpand.h.
7586 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7587 (use_register_for_parm_decl): Wrapper for the above to
7588 special-case the result_ptr.
7589 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7590 (split_complex_args): Take assign_parm_data_all argument.
7591 Pass it to rtl_for_parm. Set up rtl and context for split
7593 (assign_parms_augmented_arg_list): Adjust.
7594 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7595 multiple locations. Recognize split complex args.
7596 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7597 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7598 (assign_parm_setup_block): Prefer SSA-assigned location.
7599 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
7600 if stack_parm is NULL.
7601 (assign_parm_setup_stack): Prefer SSA-assigned location.
7602 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7603 rtl before testing for pointer bounds. Special-case result_ptr.
7604 (expand_function_start): Maybe reset DECL_RTL of result.
7605 Prefer SSA-assigned location for result and static chain.
7606 Factor out DECL_RESULT and SET_DECL_RTL.
7607 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7608 anonymous SSA names. Use promote_ssa_mode.
7609 (get_temp_reg): Likewise.
7610 (remove_ssa_form): Adjust.
7611 * stor-layout.c (layout_decl): Don't set mem attributes of
7613 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7614 and get its reg_usage for reg invalidation.
7615 (compute_bb_dataflow): Pass it insn.
7616 (emit_notes_in_bb): Likewise.
7618 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7621 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7623 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7624 (rs6000_emit_2insn_and): Handle dot forms.
7625 * config/rs6000/rs6000.md (and<mode>3): Adjust.
7626 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
7627 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7629 2015-07-23 Richard Biener <rguenther@suse.de>
7631 * generic-match-head.c: Include cgraph.h.
7632 * gimple-match-head.c: Likewise.
7633 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7635 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7636 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
7639 2015-07-23 Richard Biener <rguenther@suse.de>
7641 * gimple-fold.c (fold_gimple_cond): Do not require folding
7642 results to pass valid_gimple_rhs_p.
7643 * tree-cfg.h (fold_cond_expr_cond): Remove.
7644 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7645 (make_edges): Do not call it.
7646 * tree-inline.c (tree_function_versioning): Likewise.
7648 2015-07-23 Tom de Vries <tom@codesourcery.com>
7650 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7651 vect_force_simple_reduction.
7652 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7653 (vect_is_simple_reduction_1): Add and handle
7654 need_wrapping_integral_overflow parameter.
7655 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7656 need_wrapping_integral_overflow parameter.
7657 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7658 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7661 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
7663 PR tree-optimization/66926,66951
7664 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7665 INNER_LOOP and fix up condition for renaming virtual operands.
7667 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7669 * combine.c (try_combine): Use std::swap instead of manually
7672 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
7674 * config/mips/i6400.md: New file.
7675 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7676 (mips64r6): Likewise.
7678 * config/mips/mips-tables.opt: Regenerate.
7679 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7680 (mips_issue_rate): Add support for i6400.
7681 (mips_multipass_dfa_lookahead): Likewise.
7682 * config/mips/mips.h (TUNE_I6400): Define.
7683 * config/mips/mips.md: Include i6400.md.
7684 (processor): Add i6400.
7685 * doc/invoke.texi (-march=@var{arch}): Add i6400.
7687 2015-07-23 Richard Biener <rguenther@suse.de>
7690 * match.pd: Guard widen and sign-change comparison simplification
7693 2015-07-23 Richard Biener <rguenther@suse.de>
7695 PR tree-optimization/66945
7696 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7697 ::before_dom_children): Force the propagators idea of
7698 non-executable edges to materialize, not what the folder
7701 2015-07-23 Richard Biener <rguenther@suse.de>
7703 * gimple.h (gimple_cond_make_false): Use 0 != 0.
7704 (gimple_cond_make_true): Use 1 != 0.
7706 2015-07-22 DJ Delorie <dj@redhat.com>
7708 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7711 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7712 (ashrhi3): Likewise.
7713 (lshrhi3): Likewise.
7714 (movhi): Take advantage of zero-extend to load small constants.
7716 (and<mode>3): Likewise.
7717 (zero_extendqihi2): Likewise.
7718 (zero_extendqisi2): New.
7719 * config/msp430/constraints.md (N,O): New.
7720 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7722 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
7725 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7726 to enum feature_priority and feature_list.
7727 (fold_builtin_cpu): Add F_AES to enum processor_features
7728 and isa_names_table.
7730 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7733 * config/i386/linux-common.h (MPX_SPEC): Use linker option
7734 for 64bit target only.
7736 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
7738 * config/nvptx/nvptx.c: Expand some comments.
7740 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
7742 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7743 (cortex_a53_advsimd): ...This.
7745 2015-07-22 Richard Biener <rguenther@suse.de>
7747 * genmatch.c (expr::gen_transform): Clarify error message
7748 and display location.
7750 2015-07-22 Richard Biener <rguenther@suse.de>
7752 * genmatch.c (struct operand): Add location member.
7753 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7755 (struct simplify): Remove match_location and result_location
7757 (elsehwere): Adjust.
7759 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
7761 * config/mips/m5100.md: New file.
7762 * config/mips/mips-cpus.def (m5100, m5101): Define.
7763 * config/mips/mips-tables.opt: Regenerate.
7764 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7765 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7766 -march=m5101 to -mips32r5.
7767 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7768 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7770 * config/mips/mips.md: Include m5100.md.
7771 (processor): Add m5100.
7772 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7774 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
7776 * config/mips/mips-cpus.def (interaptiv): Define.
7777 * config/mips/mips-tables.opt: Regenerate.
7778 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7780 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7781 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7783 2015-07-22 Jiong Wang <jiong.wang@arm.com>
7786 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7787 (HONOR_REG_ALLOC_ORDER): Define.
7789 2015-07-22 Richard Biener <rguenther@suse.de>
7791 PR tree-optimization/66952
7792 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7793 blocks we end up executing unconditionally reset all SSA
7794 info such as range and alignment.
7795 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7796 * tree-ssanames.c (reset_flow_sensitive_info): New function.
7798 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7800 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7803 2015-07-22 Richard Biener <rguenther@suse.de>
7805 * genmatch.c (parser::parse_result): Properly handle
7806 match with result operands and conditions.
7808 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
7811 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7812 Add qualifier_struct_load_store_lane_index.
7813 (aarch64_types_loadstruct_lane_qualifiers): Use
7814 qualifier_struct_load_store_lane_index for lane index argument for
7816 (aarch64_types_storestruct_lane_qualifiers): Ditto.
7817 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7818 (aarch64_simd_expand_args): Add new argument describing mode of
7819 builtin. Check lane bounds for arguments with
7820 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7821 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7822 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7823 (aarch64_simd_expand_builtin): Handle arguments with
7824 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7825 aarch64_simd_expand_args.
7826 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7827 vst[234]_lane with BUILTIN_VALLDIF.
7828 * config/aarch64/aarch64-simd.md:
7829 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7830 endianness reversal on lane index.
7831 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7832 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7833 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7834 (vec_store_lanesci_lane<mode>): Ditto.
7835 (vec_store_lanesxi_lane<mode>): Ditto.
7836 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7837 reversal of lane index.
7838 (aarch64_ld3_lane<mode>): Ditto.
7839 (aarch64_ld4_lane<mode>): Ditto.
7840 (aarch64_st2_lane<mode>): Ditto.
7841 (aarch64_st3_lane<mode>): Ditto.
7842 (aarch64_st4_lane<mode>): Ditto.
7843 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7844 to qmode. Add new mode parameter. Update uses.
7845 (__LD3_LANE_FUNC): Ditto.
7846 (__LD4_LANE_FUNC): Ditto.
7847 (__ST2_LANE_FUNC): Ditto.
7848 (__ST3_LANE_FUNC): Ditto.
7849 (__ST4_LANE_FUNC): Ditto.
7851 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7853 * doc/invoke.texi (Language Independent Options): Rename node to
7854 Diagnostic Message Formatting Options.
7856 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7859 * lra-remat.c (operand_to_remat): Prevent using insns with input
7860 subregs processed separately by IRA.
7862 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7864 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7866 (single_imm_use): Check for iterator node.
7867 (num_imm_uses): Likewise.
7868 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7869 (single_imm_use_1): Check for iterator node.
7871 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7872 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7874 * configure.ac: Add check for new options in isl-0.15.
7875 * config.in, configure: Rebuilt.
7876 * graphite-blocking.c: Include <isl/constraint.h>
7877 * graphite-interchange.c, graphite-poly.c: Likewise.
7878 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7879 * graphite.c: Likewise.
7880 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7882 * graphite-dependences.c: Include <isl/constraint.h>.
7883 (max_number_of_out_dimensions): Returns isl_stat.
7884 (extend_schedule_1): Likewise
7885 (extend_schedule): Corresponding changes.
7886 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7888 (getSingleMap): Change return type of isl_stat.
7889 (optimize_isl): Conditionally use
7890 isl_options_set_schedule_serialize_sccs.
7891 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7892 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7894 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7897 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7898 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7900 2015-07-21 Richard Biener <rguenther@suse.de>
7902 PR tree-optimization/66948
7903 * genmatch.c (capture_info::walk_match): Also recurse to
7904 captures. Properly compute expr state from captures of
7906 * match.pd: Add single-use guards to
7907 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7909 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7911 * config/nvptx/mkoffload.c (process): Add static destructor call.
7913 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7916 * match.pd (A - B -> A + (-B)): Don't allow folding
7917 when type if a fixed-point type.
7919 2015-07-20 DJ Delorie <dj@redhat.com>
7921 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7922 (iorqi3_real): Likewise for set1.
7924 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7926 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7929 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7931 * graphite-isl-ast-to-gimple.c:
7932 Refactor so that each function can access 'region'. This will help
7933 maintain a parameter rename_map within a region.
7935 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7937 * config/rs6000/rs6000.md (*lt0_disi): New.
7939 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7942 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7943 "available letters" comment.
7944 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7945 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7946 and_2rld_operand): Delete.
7947 (and_operand): Adjust.
7948 (rotate_mask_operator): New.
7949 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7950 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7951 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7952 extract_ME): Delete.
7953 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7954 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7955 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7956 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7957 rs6000_emit_2insn_and): New.
7958 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7959 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7960 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7961 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7962 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7963 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7964 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7965 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7966 rs6000_emit_2insn_and): New.
7967 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7968 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7970 <NOT>: Don't fall through to next case.
7971 <AND>: Handle the various rotate-and-mask cases directly.
7972 <IOR>: Always cost as one insn.
7973 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7974 (and<mode>3): Adjust expander for the new patterns.
7975 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7976 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7977 (*and<mode>3_imm_dot_shifted): New.
7978 (*and<mode>3_mask): Delete, rewrite as ...
7979 (and<mode>3_mask): ... New.
7980 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7981 (andsi3_internal0_nomc): Delete.
7982 (*andsi3_internal6): Delete.
7983 (*and<mode>3_2insn): New.
7984 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7985 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7986 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7987 *insvdi_internal3): Delete.
7988 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7989 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7990 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7991 *ior<mode>_mask): New.
7992 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7993 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7994 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7995 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7997 (ashr<mode>3): Delete expander.
7998 (*ashr<mode>3): Rename to ...
7999 (ashr<mode>3): ... This.
8000 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
8001 (*rotldi3_internal4, *rotldi3_internal5 and split,
8002 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
8003 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
8004 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
8005 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
8006 (splitter for loading a mask): Adjust.
8007 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
8009 2015-07-20 Marek Polacek <polacek@redhat.com>
8011 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
8012 output_add_clobbers, output_added_clobbers_hard_reg_p,
8013 gen_rtx_scratch): Remove declarations.
8015 2015-07-20 Marek Polacek <polacek@redhat.com>
8018 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
8020 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8022 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
8023 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
8025 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8027 * combine.c (combine_simplify_rtx): Move simplification step
8028 before various transformations/substitutions.
8030 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
8032 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
8033 (struct int_traits): Likewise.
8035 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8037 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
8038 function to vmsdbgout_function_decl.
8040 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
8043 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
8044 from misaligned positions.
8045 (ix86_expand_pinsr): Reject insertions to misaligned positions.
8047 2015-07-18 Sebastian Pop <s.pop@samsung.com>
8051 * Makefile.in: Removed omega.o.
8052 * common.opt: Document flag fcheck-data-deps as deprecated.
8053 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
8054 its associated params: omega-max-vars, omega-max-geqs,
8055 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
8056 omega-max-keys, omega-eliminate-redundant-constraints.
8057 * doc/loop.texi: Remove all the section on Omega.
8058 * graphite-blocking.c: Include missing params.h: it used to be
8059 included through tree-data-ref.h and omega.h.
8060 * graphite-isl-ast-to-gimple.c: Same.
8061 * graphite-optimize-isl.c: Same.
8062 * graphite-sese-to-poly.c: Same.
8066 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
8067 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
8068 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
8069 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
8070 * passes.def: Remove pass_check_data_deps.
8071 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
8072 (dump_conflict_function): Same.
8073 (dump_subscript): Same.
8074 (print_direction_vector): Same.
8075 (print_dir_vectors): Same.
8076 (print_lambda_vector): Same.
8077 (print_dist_vectors): Same.
8078 (dump_data_dependence_relation): Same.
8079 (dump_data_dependence_relations): Same.
8080 (dump_dist_dir_vectors): Same.
8082 (init_omega_eq_with_af): Removed.
8083 (omega_extract_distance_vectors): Removed.
8084 (omega_setup_subscript): Removed.
8085 (init_omega_for_ddr_1): Removed.
8086 (init_omega_for_ddr): Removed.
8087 (ddr_consistent_p): Removed.
8088 (compute_affine_dependence): Do not use omega to check data
8090 (compute_data_dependences_for_bb): Removed.
8091 (analyze_all_data_dependences): Removed.
8092 (tree_check_data_deps): Removed.
8093 * tree-data-ref.h: Do not include omega.h.
8094 (compute_data_dependences_for_bb): Removed.
8095 (tree_check_data_deps): Removed.
8096 * tree-ssa-loop.c (pass_check_data_deps): Removed.
8097 (make_pass_check_data_deps): Removed.
8098 * tree-ssa-phiopt.c: Include params.h.
8099 * tree-vect-data-refs.c: Same.
8100 * tree-vect-slp.c: Same.
8102 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
8104 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
8105 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
8106 (mem->fpreg splitters): Ditto.
8107 (general_operand->nonimmediate_operand splitter): Use explicit modes.
8108 Disable DFmode for TARGET_64BIT.
8110 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
8113 * config/i386/i386.c (ix86_expand_prologue): Replicate static
8116 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8118 * config/nvptx/mkoffload.c (process): Constify host data.
8119 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8121 (generate_host_descr_file): Likewise.
8123 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
8124 Sebastian Pop <s.pop@samsung.com>
8127 * graphite-dependences.c (add_pdr_constraints): Renamed
8128 pdr->extent to pdr->subscript_sizes.
8129 * graphite-interchange.c (build_linearized_memory_access): Add
8130 back all gcc_assert's that the "isl_int to isl_val conversion"
8131 patch has removed. Refactored.
8132 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
8133 * graphite-poly.c (new_poly_dr): Same.
8134 (free_poly_dr): Same.
8135 * graphite-poly.h (struct poly_dr): Same.
8136 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
8137 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
8138 * graphite-scop-detection.h: Fix space.
8139 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
8140 back all gcc_assert's removed by a previous patch.
8141 (wrap): Remove the_isl_ctx global variable that the same patch has
8143 (build_loop_iteration_domains): Same.
8144 (add_param_constraints): Same.
8145 (pdr_add_data_dimensions): Same. Refactored.
8146 (build_poly_dr): Renamed extent to subscript_sizes.
8148 2015-07-17 Marek Polacek <polacek@redhat.com>
8150 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
8151 * match.pd: ... here.
8153 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
8155 * config/nvptx/mkoffload.c (process): Constify target data.
8156 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8157 Constify target data.
8158 (generate_target_offloadend_file): Likewise.
8160 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8162 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
8163 to allow renaming of PHI arguments on edges incoming from outer
8164 loop header, add corresponding check before start PHI iterator.
8165 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
8166 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
8167 with true force_vectorize. Set-up dominator for outer loop too.
8168 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
8169 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
8170 was marked with force_vectorize and has restricted cfg.
8171 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
8173 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
8174 do peeling for outer loops.
8176 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
8177 Matthias Klose <doko@ubuntu.com>
8179 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
8180 build-sysroot, sysroot from the `Miscenalleous configure options' to
8181 the `Directories' section and strip trailing `/' from with_sysroot.
8182 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
8183 * configure: Regenerated.
8185 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
8188 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
8189 (TARGET_HARD_DF_REGS): Ditto.
8190 (TARGET_HARD_XF_REGS): Ditto.
8191 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
8192 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
8193 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
8194 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
8195 (*movsf_internal): Add alternatives 16 and 17. Enable
8196 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
8198 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
8200 PR rtl-optimization/66891
8201 * calls.c (expand_call): Wrap precompute_register_parameters with
8202 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
8204 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
8206 * config/nvptx/mkoffload.c (process): Constify mapping variables.
8207 Define target data struct and initialize it.
8209 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
8211 PR rtl-optimization/66626
8212 * ira.h (emit-rtl.h): Include.
8213 (non_spilled_static_chain_regno_p): New.
8214 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
8215 unless it is non spilled static chain pseudo.
8216 (assign_hard_rego): Spill memory profitable allocno unless it is
8217 non spilled static chain pseudo.
8218 (allocno_spill_priority_compare): Put non spilled static chain
8219 pseudo at the end of sorted array.
8220 (improve_allocation): Do nothing if we have static chain and
8222 (allocno__priority_compare_func): Put non spilled static chain
8223 pseudo at the beginning of sorted array.
8224 (move_spill_restore): Ignore non spilled static chain pseudo.
8225 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
8226 to non spilled static chain pseudo.
8227 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
8228 pseudo at the beginning of sorted array.
8229 (spill_for): Spill non spilled static chain pseudo last.
8230 * lra-constraints.c (lra_constraints): Remove static chain pseudo
8231 check for equivalence.
8233 2015-07-16 Martin Liska <mliska@suse.cz>
8236 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
8237 dst_ctx if it does not exist.
8239 2015-07-16 Martin Liska <mliska@suse.cz>
8241 * hash-set.h (remove): New function.
8242 (iterator): New iteration class for hash_set.
8244 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8246 * genattrtab.c (make_canonical): Add a file_location parameter.
8247 Use fatal_at rather than fatal.
8248 (get_attr_value): Likewise. Update call to make_canonical.
8249 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
8250 (make_internal_attr): Update calls accordingly.
8252 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8254 * read-md.h (message_with_line, error_with_line): Delete.
8255 * read-md.c (message_with_line, error_with_line): Delete.
8256 * gensupport.h: Include read-md.h.
8257 (md_rtx_info): New structure.
8258 (read_md_rtx): Use it. Return a bool success value.
8259 * gensupport.c (read_md_rtx): Likewise.
8260 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
8261 (main): Update after interface changes.
8262 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
8263 (main): Update after interface changes.
8264 * genattrtab.c (insn_code_number): Delete.
8265 (optimize_attrs): Add a max_insn_code parameter and use it instead
8266 of insn_code_number.
8267 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
8268 Use *_at rather than *_with_line functions.
8269 (gen_insn): Likewise.
8270 (gen_delay): Likewise.
8271 (gen_insn_reserv): Likewise.
8272 (gen_bypass): Take an md_rtx_info rather than an rtx.
8273 (main): Update after interface changes. Use a local max_insn_code
8274 variable instead of insn_code_number.
8275 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
8276 an rtx. Use fatal_at rather than fatal.
8277 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
8278 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
8279 (gen_absence_set, gen_final_absence_set, gen_automaton)
8280 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
8281 (main): Update after interface changes.
8282 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
8284 (main): Update after interface changes.
8285 * genconditions.c (main): Use new read_md_rtx interface.
8286 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
8287 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
8288 (main): Update after interface changes.
8289 * genemit.c (insn_code_number, insn_index_number): Delete.
8290 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8291 Use fatal_at rather than fatal.
8292 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
8294 (gen_split): Likewise.
8295 (main): Update after interface changes.
8296 * genextract.c (line_no): Delete.
8297 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8298 Update call to walk_rtx.
8299 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
8300 rather than message_with_line.
8301 (walk_rtx): Add an md_rtx_info argument. Update call to
8302 VEC_safe_set_locstr.
8303 (main): Update after interface changes.
8304 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
8305 and lineno. Use error_at rather than separate message_with_line
8306 calls and have_error assignments.
8307 (main): Update after interface changes.
8308 * genmddump.c (main): Use new read_md_rtx interface.
8309 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
8310 (main): Update after interface changes.
8311 * genoutput.c (next_code_number): Delete.
8312 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8313 (gen_peephole, gen_expand, gen_split): Likewise.
8314 (note_constraint): Likewise. Use *_at rather than *_with_line
8316 (main): Update after interface changes.
8317 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
8319 (main): Update after interface changes.
8320 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
8321 than an rtx and lineno.
8322 (process_define_constraint): Likewise.
8323 (process_define_register_constraint): Likewise.
8324 (main): Update after interface changes.
8325 * genrecog.c (next_insn_code, pattern_lineno): Delete.
8326 (validate_pattern): Replace top-level rtx with an md_rtx_info.
8327 Use *_at rather than *_with_line functions.
8328 (match_pattern_2): Likewise.
8329 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
8330 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
8331 Use *_at rather than *_with_line functions.
8332 * gentarget-def.c (add_insn): New function.
8333 (main): Use it. Use new read_md_rtx interface.
8335 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8337 * gensupport.h (compute_test_codes): Take a file_location rather
8339 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
8340 rather than *_with_line functions.
8341 (process_define_predicate): Update call to compute_test_codes.
8342 * genpreds.c (validate_exp): Take a file_location rather than a
8343 line number. Use *_at functions rather than *_with_line functions.
8344 (process_define_predicate): Update call to validate_exp.
8345 (constraint_data): Replace lineno field with a file_location.
8346 (add_constraint): Take a file_location rather than a line number.
8347 Use *_at functions rather than *_with_line functions. Fix error
8348 message for address constraints. Update after changes to
8349 validate_exp, constraint_data and compute_test_codes.
8350 (process_define_constraint): Update accordingly.
8351 (process_define_register_constraint): Likewise.
8353 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8355 * genoutput.c (data): Use a file_location to record the source
8358 (idata, idata_end): Remove initialization.
8359 (constraint_data): Replace lineno with a file_location.
8360 (output_insn_data): Update after changes to data.
8361 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
8362 (scan_operands): Likewise, using *_at rather than *_with_line
8364 (process_template): Likewise.
8365 (validate_insn_alternatives): Likewise.
8366 (validate_insn_operands): Likewise.
8367 (validate_optab_operands): Likewise.
8368 (init_insn_for_nothing): Initialize idata and idata_end.
8369 (note_constraint): Update after changes to constraint_data,
8370 using at rather than with_line functions.
8371 (mdep_constraint_len): Take a file_location rather than a
8372 line number. Use at rather than with_line functions.
8374 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8376 * read-md.h (fatal_at): Declare.
8377 * read-md.c (fatal_at): New function.
8378 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
8379 to record the source position.
8380 (check_attr_test): Take a file_location instead of a line number.
8381 Use fatal_at instead of fatal.
8382 (check_attr_value): Update after above changes, using "at"
8383 rather than "with_line" reporting functions.
8384 (convert_set_attr_alternative): Likewise.
8385 (gen_attr): Likewise.
8386 (check_defs): Likewise. Don't assign to read_md_filename.
8387 (gen_insn): Update initialization after above changes.
8388 (gen_delay): Likewise.
8389 (write_insn_cases): Print the filename for a define_peephole.
8390 (gen_insn_reserv): Take a line number as argument and update
8391 the call to check_attr_test.
8392 (main): Pass a line number to gen_insn_reserv.
8394 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8396 * read-md.h (file_location): New structure.
8397 (directive_handler_t): Take a file_location rather than a line number.
8398 (message_at, error_at): Declare.
8399 (read_skip_construct): Delete.
8400 * read-md.c (message_with_line_1): Replace with...
8401 (message_at_1): ...this new function.
8402 (message_at, error_at): New functions.
8403 (message_with_line, error_with_line): Update to use message_at_1.
8404 (handle_enum): Take a file_location rather than a line number
8405 and use error_at for error reporting.
8406 (handle_include): Likewise.
8407 (read_skip_construct): Likewise. Make static.
8408 (handle_file): Update after above changes. Pass a file_location
8409 rather than a line number to handle_directive.
8410 * gensupport.c (queue_elem): Replace separate filename and lineno
8411 with a file_location.
8412 (queue_pattern): Replace filename and lineno arguments with a
8413 file_location. Update after change to queue_elem.
8414 (process_define_predicate): Replace lineno argument with a
8415 file_location and use error_at for error reporting. Update
8416 after above changes.
8417 (process_rtx): Likewise.
8418 (subst_pattern_match): Likewise.
8419 (get_alternatives_number): Likewise.
8420 (alter_predicate_for_insn): Likewise.
8421 (rtx_handle_directive): Likewise.
8422 (is_predicable): Update after above changes, using error_at rather
8423 than error_with_line.
8424 (has_subst_attribute): Likewise.
8425 (identify_predicable_attribute): Likewise.
8426 (alter_attrs_for_subst_insn): Likewise.
8427 (process_one_cond_exec): Likewise.
8428 (process_substs_on_one_elem): Likewise.
8429 (process_define_subst): Likewise.
8430 (check_define_attr_duplicates): Likewise.
8431 (read_md_rtx): Update after change to queue_elem.
8433 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8435 * genoutput.c (next_index_number): Delete.
8436 (data): Remove index_number.
8437 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
8438 (main): Remove manipulation of next_index_number.
8440 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
8442 * genattrtab.c (check_attr_value): Remove handling of null attrs.
8443 (make_canonical): Likewise.
8445 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
8447 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
8448 instead of adjust_address_nv.
8449 (restore_stack_nonlocal): Likewise.
8450 (nonlocal_goto): Likewise.
8452 2015-07-16 Tom de Vries <tom@codesourcery.com>
8454 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
8455 not have a corresponding loop header phi.
8457 2015-07-16 Tom de Vries <tom@codesourcery.com>
8459 * tree-parloops.c (create_loads_for_reductions): Handle case that
8460 reduction is unused.
8462 2015-07-16 Richard Biener <rguenther@suse.de>
8464 PR tree-optimization/66894
8465 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
8466 about deriving NE_EXPR from truncated values.
8468 2015-07-16 Martin Liska <mliska@suse.cz>
8471 (object_allocator): Add new class.
8472 (pool_allocator::initialize): Use the underlying class.
8473 (pool_allocator::allocate): Likewise.
8474 (pool_allocator::remove): Likewise.
8475 (operator new): A new generic allocator.
8476 * asan.c (struct asan_mem_ref): Remove unused members.
8477 (asan_mem_ref_new): Replace new operator with
8478 object_allocator::allocate.
8479 (free_mem_ref_resources): Change deallocation.
8480 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
8481 with object_allocator.
8482 * config/sh/sh.c (add_constant): Replace new operator with
8483 object_allocator::allocate.
8484 (sh_reorg): Change call to a release method.
8485 * cselib.c (struct elt_list): Remove unused members.
8486 (new_elt_list): Replace new operator with
8487 object_allocator::allocate.
8488 (new_elt_loc_list): Likewise.
8489 (new_cselib_val): Likewise.
8490 (unchain_one_elt_list): Change delete operator with remove method.
8491 (unchain_one_elt_loc_list): Likewise.
8492 (unchain_one_value): Likewise.
8493 (cselib_finish): Release newly added static allocators.
8494 * cselib.h (struct cselib_val): Remove unused members.
8495 (struct elt_loc_list): Likewise.
8496 * df-problems.c (df_chain_alloc): Replace pool_allocator with
8498 * df-scan.c (struct df_scan_problem_data): Likewise.
8499 (df_scan_alloc): Likewise.
8500 * df.h (struct dataflow): Likewise.
8501 * dse.c (struct read_info_type): Likewise.
8502 (struct insn_info_type): Likewise.
8503 (struct dse_bb_info_type): Likewise.
8504 (struct group_info): Likewise.
8505 (struct deferred_change): Likewise.
8506 (get_group_info): Likewise.
8507 (delete_dead_store_insn): Likewise.
8508 (free_read_records): Likewise.
8509 (replace_read): Likewise.
8510 (check_mem_read_rtx): Likewise.
8511 (scan_insn): Likewise.
8512 (dse_step1): Likewise.
8513 (dse_step7): Likewise.
8514 * et-forest.c (struct et_occ): Remove unused members.
8515 (et_new_occ): Use allocate instead of new operator.
8516 (et_new_tree): Likewise.
8517 (et_free_tree): Call release method explicitly.
8518 (et_free_tree_force): Likewise.
8519 (et_free_pools): Likewise.
8520 (et_split): Use remove instead of delete operator.
8521 * et-forest.h (struct et_node): Remove unused members.
8522 * ipa-cp.c: Change pool_allocator to object_allocator.
8523 * ipa-inline-analysis.c: Likewise.
8524 * ipa-profile.c: Likewise.
8525 * ipa-prop.c: Likewise.
8526 * ipa-prop.h: Likewise.
8527 * ira-build.c (initiate_cost_vectors): Cast return value.
8528 (ira_allocate_cost_vector): Likewise.
8529 * ira-color.c (struct update_cost_record): Remove unused members.
8530 * lra-int.h (struct lra_live_range): Likewise.
8531 (struct lra_copy): Likewise.
8532 (struct lra_insn_reg): Likewise.
8533 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8534 * lra.c (new_insn_reg): Replace new operator with allocate method.
8535 (free_insn_regs): Same for operator delete.
8536 (finish_insn_regs): Release new static allocator.
8537 (finish_insn_recog_data): Likewise.
8538 (lra_free_copies): Replace delete operator with remove method.
8539 (lra_create_copy): Replace operator new with allocate method.
8540 (invalidate_insn_data_regno_info): Same for remove method.
8541 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8542 (free_debug_insn_changes): Replace delete operator with remove method.
8543 (replace_oldest_value_reg): Replace operator new with allocate method.
8544 (pass_cprop_hardreg::execute): Release new static variable.
8545 * sched-deps.c (sched_deps_init): Change pool_allocator to
8547 * sel-sched-ir.c: Likewise.
8548 * sel-sched-ir.h: Likewise.
8549 * stmt.c (expand_case): Likewise.
8550 (expand_sjlj_dispatch_table): Likewise.
8551 * tree-sra.c (struct access): Remove unused members.
8552 (struct assign_link): Likewise.
8553 (sra_deinitialize): Release newly added static pools.
8554 (create_access_1):Replace operator new with allocate method.
8555 (build_accesses_from_assign): Likewise.
8556 (create_artificial_child_access): Likewise.
8557 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8558 pool_allocator to object_allocator.
8559 * tree-ssa-pre.c: Likewise.
8560 * tree-ssa-reassoc.c: Likewise.
8561 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8562 * tree-ssa-strlen.c: Likewise.
8563 * tree-ssa-structalias.c: Likewise.
8564 * var-tracking.c (onepart_pool_allocate): New function.
8565 (unshare_variable): Use the newly added function.
8566 (variable_merge_over_cur): Likewise.
8567 (variable_from_dropped): Likewise.
8568 (variable_was_changed): Likewise.
8569 (set_slot_part): Likewise.
8570 (emit_notes_for_differences_1): Likewise.
8571 (vt_finalize): Release newly added static pools.
8573 2015-07-16 Martin Jambor <mjambor@suse.cz>
8575 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
8576 all uses. Fix two typos in its general comment.
8577 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
8579 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
8581 * config/i386/linux-common.h (LINK_MPX): New.
8582 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8583 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8584 indicating '-z bndplt' support by linker.
8585 * configure: Regenerate.
8586 * config.in: Regenerate.
8588 2015-07-16 Richard Biener <rguenther@suse.de>
8590 * fold-const.c (fold_widened_comparison): Remove.
8591 (fold_sign_changed_comparison): Likewise.
8592 (fold_comparison): Move widened and sign-changed comparison
8594 * match.pd: ... to patterns here.
8595 * generic-match-head.c: Include target.h.
8596 * gimple-match-head.c: Likewise.
8598 2015-07-16 Richard Biener <rguenther@suse.de>
8600 * tree-ssa-dom.c (dom_valueize): New function.
8601 (record_temporary_equivalences): Also record equivalences
8602 for dominating stmts that have uses of equivalences we are
8605 2015-07-16 Bin Cheng <bin.cheng@arm.com>
8607 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8608 add_autoinc_candidates.
8609 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8610 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8611 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8612 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8614 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8615 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8616 Remove parameter struct iv*. Call add_autoinc_candidates here.
8617 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8618 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8620 (find_iv_candidates): Call new functions.
8622 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
8624 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8625 uninitialized-variable warning.
8627 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
8630 * config/sh/sh.md (movdi): Split simple reg move to two movsi
8631 when the destination is R0.
8633 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
8636 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8637 * config/i386/i386.c (ix86_expand_pextr): New function.
8638 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
8639 for non-lowpart subregs.
8640 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8641 (insv<mode>): Use SWI248 mode iterator.
8642 (insv<mode>_1): Ditto.
8644 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8645 Sebastian Pop <s.pop@samsung.com>
8647 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8648 iterator to use_stmt.
8650 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8651 Sebastian Pop <s.pop@samsung.com>
8653 * graphite-scop-detection.c (build_scops_1): Discard scops for
8656 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8657 Sebastian Pop <s.pop@samsung.com>
8659 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8660 case of a return statement in scop.
8662 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
8663 Sebastian Pop <s.pop@samsung.com>
8665 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8666 INTEGER_TYPE parameters.
8667 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8668 VECTOR_CST in scan_tree_for_params.
8669 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8671 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8673 * gimple-pretty-print.h: Don't include pretty-print.h.
8674 * tree-streamer.h: Don't include lto-streamer.h.
8675 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8676 * gimple-streamer-in.c: Remove redundant includes.
8677 * gimple-streamer-out.c: Likewise.
8678 * ipa-devirt.c: Likewise.
8679 * ipa-icf.c: Likewise.
8680 * ipa-inline-analysis.c: Likewise.
8681 * ipa-polymorphic-call.c: Likewise.
8682 * ipa-profile.c: Likewise.
8683 * ipa-prop.c: Likewise.
8684 * ipa-pure-const.c: Likewise.
8685 * lto-cgraph.c: Likewise.
8686 * lto-streamer-in.c: Likewise.
8687 * lto-streamer-out.c: Likewise.
8688 * lto-streamer.c: Likewise.
8689 * tree-streamer-in.c: Likewise.
8690 * tree-streamer-out.c: Likewise.
8691 * tree-streamer.c: Likewise.
8693 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
8695 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8697 * opts.c: Remove multiline #include comment.
8699 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
8701 * config/nvptx/mkoffload.c (process): Add C++ protection to
8704 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8707 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8708 null before IEEE 128-bit floating point support patch.
8710 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8712 * simplify-rtx.c (simplify_ternary_operation): Add simplification
8713 for (!c) != {0,...,0} ? a : b for vector modes.
8715 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
8716 Martin Jambor <mjambor@suse.cz>
8718 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8719 struct func_body_info* instead of struct ipa_node_params*, expecting
8720 fbi->info to be filled in. Replace throughout. Adjust call to
8721 ipa_load_from_parm_agg.
8722 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8723 instead of struct ipa_node_params*. Adjust calls to other functions
8724 so that they pass either fbi or fbi->info.
8725 (set_switch_stmt_execution_predicate): Likewise.
8726 (will_be_nonconstant_predicate): Likewise.
8727 (compute_bb_predicates): Likewise.
8728 (estimate_function_body_sizes): Move asserts earlier. Fill in
8729 struct func_body_info, replace parms_info with fbi.info. Adjust
8730 calls to functions that now accept struct func_body_info.
8731 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8732 (struct func_body_info): Likewise.
8733 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8734 remove static. Adjust callers.
8735 (ipa_load_from_parm_agg): Remove.
8736 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8737 (func_body_info): Likewise.
8738 (ipa_load_from_parm_agg): Adjust prototype.
8740 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8742 * gensupport.c (rtx_handle_directive): Adjust.
8743 * read-rtl.c (apply_iterators): Take vector to add rtxs to
8744 instead of expr list rtx.
8745 (add_define_attr_for_define_subst): Likewise.
8746 (add_define_subst_attr): Likewise.
8747 (read_subst_mapping): Likewise.
8748 (read_rtx): Likewise.
8749 * rtl.h (read_rtx): Adjust.
8751 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8753 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8755 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8758 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8759 (*tls_local_dynamic_base_64_<mode>): Ditto.
8760 (*tls_local_dynamic_base_64_largepic): Ditto.
8761 (tls_global_dynamic_64_<mode>): Update expander pattern.
8762 (tls_local_dynamic_base_64_<mode>): Ditto.
8764 2015-07-15 Richard Biener <rguenther@suse.de>
8766 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8767 and bool_var == 1 -> bool_var simplifications ...
8768 * match.pd: ... to patterns here. Factor out negate_expr_p
8769 cases from the A - B -> A + (-B) patterns as negate_expr_p
8770 predicate and add a -(A + B) -> (-B) - A pattern.
8772 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8774 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8776 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
8777 Robert Suchanek <robert.suchanek@imgtec.com>
8779 * config/mips/mips.c (mips_int_mask): New enum.
8780 (mips_shadow_set): Likewise.
8781 (int_mask): New variable.
8782 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8783 (machine_function): Add int_mask and use_shadow_register_set.
8784 (mips_attribute_table): Add attribute handlers for interrupt and
8785 use_shadow_register_set.
8786 (mips_interrupt_mask): New static function.
8787 (mips_handle_interrupt_attr): Likewise.
8788 (mips_handle_use_shadow_register_set_attr): Likewise.
8789 (mips_use_shadow_register_set): Change return type to enum
8790 mips_shadow_set. Add argument handling for use_shadow_register_set
8792 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8793 compare with mips_shadow_set enum.
8794 (mips_compute_frame_info): Add interrupt mask and
8795 use_shadow_register_set to per-function information structure.
8796 Add a stack slot for EPC unconditionally.
8797 (mips_expand_prologue): Compare use_shadow_register_set value
8798 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
8799 masked interrupt register but in EIC mode use K0 and save Cause in K0.
8800 EPC saved and restored unconditionally. Use PMODE_INSN macro when
8801 copying the stack pointer from the shadow register set.
8802 * config/mips/mips.h (SR_IM0): New define.
8803 * config/mips/mips.md (mips_rdpgpr): Rename to...
8804 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
8805 * doc/extend.texi (Declaring Attributes of Functions): Document
8806 optional arguments for interrupt and use_shadow_register_set
8809 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
8811 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8812 interrupt attribute.
8813 (mips_expand_prologue): Disable the floating point unit in an ISR.
8814 * config/mips/mips.h (SR_COP1): New define.
8816 2015-07-15 Richard Biener <rguenther@suse.de>
8818 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8819 to tell how many tokens to peek ahead (default 1).
8820 (parser::eat_token, parser::eat_ident): Return token consumed.
8821 (parser::parse_result): Parse new switch statement.
8822 * match.pd: Use case statements where appropriate.
8824 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8826 PR rtl-optimization/58066
8827 * calls.c (expand_call): Precompute register parameters before stack
8828 alignment is performed.
8830 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8832 PR rtl-optimization/66838
8833 * postreload.c (reload_cse_move2add): Also process
8834 CALL_INSN_FUNCTION_USAGE when resetting information of
8835 call-clobbered registers.
8837 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8838 Cesar Philippidis <cesar@codesourcery.com>
8839 Chung-Lin Tang <cltang@codesourcery.com>
8841 * config/nios2/constraints.md (U, v): New constraints.
8842 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8843 (ldstex_memory_operand): New.
8844 * config/nios2/sync.md: New file.
8845 * config/nios2/nios2.md (unspecv): Add new builtin function
8847 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8848 (top-level): Include sync.md.
8849 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8851 (N2_BUILTINS): Add arch field setting, add new builtins.
8852 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8854 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8855 Also handle ldex/stex/ldsex/stsex builtins.
8856 (nios2_expand_rdprs_builtin): New function.
8857 (nios2_expand_cache_builtin): New function.
8858 (nios2_expand_wrpie_builtin): New function.
8859 (nios2_expand_eni_builtin): New function.
8860 (nios2_expand_builtin): Add arch field handling and new builtin
8862 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8864 * doc/md.texi (Machine Constraints): Document U and v constraints.
8866 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8867 Cesar Philippidis <cesar@codesourcery.com>
8868 Chung-Lin Tang <cltang@codesourcery.com>
8870 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8871 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8872 callee_save_reg_size and uses_anonymous_args fields.
8873 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8874 (nios2_create_cfa_notes): New function.
8875 (nios2_adjust_stack): New function for adjusting stack.
8876 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8877 Use nios2_adjust_stack.
8878 (nios2_expand_epilogue): Likewise.
8879 (nios2_expand_return): New function.
8880 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8881 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8882 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8883 * config/nios2/nios2.md (return): Use nios2_expand_return.
8885 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8886 Cesar Philippidis <cesar@codesourcery.com>
8887 Chung-Lin Tang <cltang@codesourcery.com>
8889 * config/nios2/predicates.md (pop_operation): New.
8890 (ldwm_operation, stwm_operation): New.
8891 (nios2_hard_register_operand): New.
8892 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8893 (ldstwm_operation_p): Declare.
8894 (gen_ldstwm_peep): Declare.
8895 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8896 (base_reg_adjustment_p): New.
8897 (pop_operation_p): New.
8898 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8899 (nios2_ldstwm_regset_p): New.
8900 (ldstwm_operation_p): New.
8902 (nios2_ldst_parallel): New.
8903 (struct ldswm_operand): Declare.
8904 (compare_ldstwm_operands): New.
8905 (can_use_cdx_ldstw): New.
8906 (gen_ldstwm_peep): New.
8907 * config/nios2/nios2-ldstwm.sml: New.
8908 * config/nios2/nios2.md: Include ldstwm.md.
8909 * config/nios2/ldstwm.md: Generated.
8911 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8912 Cesar Philippidis <cesar@codesourcery.com>
8913 Chung-Lin Tang <cltang@codesourcery.com>
8915 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8916 (REG_ALLOC_ORDER): Define.
8917 (ADJUST_REG_ALLOC_ORDER): Define.
8918 (HONOR_REG_ALLOC_ORDER): Define.
8919 (CDX_REG_P): Define.
8920 (ANDCLEAR_INT): Define.
8921 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8922 (nios2_label_align): Declare.
8923 (nios2_cdx_narrow_form_p): Declare.
8924 (nios2_adjust_reg_alloc_order): Declare.
8925 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8927 (nios2_large_unspec_reloc_p): New function, split from...
8928 (nios2_legitimate_pic_operand_p): ...here.
8929 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8930 (nios2_print_operand_punct_valid_p): New.
8931 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8932 (split_mem_address): New.
8933 (split_alu_insn): New.
8935 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8936 (enum nios2_add_insn_kind): New.
8937 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8938 (nios2_add_insn_classify): New.
8939 (nios2_add_insn_asm): New.
8940 (nios2_cdx_narrow_form_p): New.
8941 (label_align, min_labelno, max_labelno): New.
8943 (nios2_label_align): New.
8944 (nios2_adjust_reg_alloc_order): New.
8945 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8946 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8947 * config/nios2/constraints.md (P): New constraint.
8948 * config/nios2/predicates.md (const_and_operand): New.
8950 (stack_memory_operand): New.
8951 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8952 (length): Update to use nios2_cdx_narrow_form_p().
8953 (type): Add new insn type values.
8954 (control, alu, st, ld, shift): Update insn reservations with
8955 new insn type values.
8956 (*high, *lo_sum): Define new insn patterns for constant generation.
8957 (movqi_internal, movhi_internal, movsi_internal): Reduce
8958 alternatives, update asm template to handle CDX variants, update
8960 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8961 template, update type attributes.
8962 (extendhisi2, extendqi<mode>2): Likewise.
8963 (addsi3): Change to use function for asm string.
8964 (subsi3): Add CDX notation to asm template, update type attributes.
8965 (negsi3, one_cmplsi3): Likewise.
8966 (andsi3): New pattern, specialized from logical patterns.
8967 (<code>si3): Remove and case, combine alternatives, update asm
8969 (<shift_op>si3): Add CDX notation, update type attributes.
8970 (rotrsi3): Update type attribute.
8971 (*merge, extzv, insv): New insn patterns.
8972 (return): Change to define_expand.
8973 (simple_return): Add CDX notation, update type attributes.
8974 (indirect_jump): Add CDX notation.
8975 (jump): Update asm cases, update length attribute expression.
8976 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8977 (nios2_cbranch): Update asm cases and length attribute expression
8978 to handle CDX variants.
8979 (nios2_cmp<code>): Update asm template.
8980 (nop): Add CDX notation, update type attributes.
8981 (trap): Add CDX notation.
8982 (ctrapsi4): Update asm cases and length attribute expression to
8984 * doc/md.texi (Machine Constraints): Document P constraint.
8986 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8987 Cesar Philippidis <cesar@codesourcery.com>
8988 Chung-Lin Tang <cltang@codesourcery.com>
8990 * config/nios2/nios2.h (SMALL_INT12): New macro.
8991 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8992 (nios2_valid_addr_expr_p): Use it.
8993 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8994 with implicit "io" instructions on R2.
8995 * config/nios2/constraints.md (w): New constraint.
8996 * config/nios2/predicates.md (ldstio_memory_operand): New.
8997 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8998 operand predicate and constraint.
8999 (ld<bh>io_signed, st<bhw>io>): Likewise.
9000 * doc/md.texi (Machine Constraints): Document w constraint.
9002 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9003 Cesar Philippidis <cesar@codesourcery.com>
9004 Chung-Lin Tang <cltang@codesourcery.com>
9006 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
9007 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
9008 Nios II architecture level.
9009 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
9010 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
9011 (OPTION_DEFAULT_SPECS): Define.
9012 (ASM_SPEC): Add -march= spec strings.
9013 * config/nios2/nios2.c (nios2_option_override): Check for
9014 conflicts involving new options.
9015 * config.gcc (nios2*-*-*): Support --with-arch=.
9016 * doc/invoke.texi (Option Summary, Nios II Options): Document
9017 -march=, -mbmx, and -mcdx.
9019 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
9021 PR rtl-optimization/66626
9022 * lra-constraints.c (lra_constraints): Prevent equivalence
9023 substitution for static chain pseudo in functions with nonlocal
9026 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
9028 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
9029 (nios2_emit_stack_limit_check): Add size parameter. Handle
9030 -fstack-limit-symbol as well as -fstack-limit-register.
9031 (nios2_expand_prologue): Emit only a single stack limit check,
9032 even if multiple stack adjustments are required.
9033 (nios2_option_override): Diagnose unsupported combination of -fpic
9034 and -stack-limit-symbol.
9036 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
9038 * Makefile.in (top_srcdir): New.
9039 * configure.ac: Use AM_ZLIB.
9040 * configure: Regeneated.
9042 2015-07-14 Matthias Klose <doko@ubuntu.com>
9045 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
9047 2015-07-14 Richard Biener <rguenther@suse.de>
9049 PR tree-optimization/66863
9050 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
9051 what we record for conversion use stmt lhs inequalities.
9053 2015-07-14 Richard Biener <rguenther@suse.de>
9055 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
9056 (decision_tree::gen_gimple): Likewise.
9058 2015-07-14 Tom de Vries <tom@codesourcery.com>
9060 * gcc.c (greater_than_spec_func): Declare forward.
9061 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
9062 -ftree-parallelize-loops={0,1}.
9063 (static_spec_functions): Add greater_than_spec_func function with name
9065 (greater_than_spec_func): New function.
9067 2015-07-14 Richard Biener <rguenther@suse.de>
9069 * tree-ssa-dom.c (record_temporary_equivalences): Merge
9070 wideing type conversion case from record_equivalences_from_incoming_edge
9071 and use record_equality to record equivalences.
9072 (record_equivalences_from_incoming_edge): Call
9073 record_temporary_equivalences.
9075 2015-07-14 Richard Biener <rguenther@suse.de>
9077 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
9078 (struct if_expr): New.
9079 (struct with_expr): Likewise.
9080 (is_a_helper): Add helpers for if_expr and with_expr.
9081 (struct simplify): Add simplify_kind enum and member. Remove
9083 (simplify::simplify): Adjust.
9084 (lower_commutative): Adjust.
9085 (lower_opt_convert): Likewise.
9086 (lower_cond): Likewise.
9087 (replace_id): Handle with_expr and if_expr.
9088 (lower_for): Adjust.
9089 (dt_simplify::gen_1): New recursive worker, split out from ...
9090 (dt_simplify::gen): ... here. Deal with if and with expansion
9092 (capture_info::capture_info): Take context argument
9093 (capture_info::walk_result): Only analyze specific result.
9094 (parser::parse_result): New function.
9095 (parser::parse_simplify): Adjust to parse ifs with then end
9097 (parser::parse_if): Simplify.
9098 (parser::parse_pattern): Pass down simplify kind.
9099 * match.pd: Convert if structure to new syntax.
9101 2015-07-13 Marek Polacek <polacek@redhat.com>
9103 * rtl.c (rtx_equal_p_cb): Fix typo.
9105 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
9107 * omega.h: Don't include config.h, don't include params.h again if
9108 omega.h has already been included.
9109 * graphite-poly.h: Include sese.h.
9110 * graphite.c: Don't include sese.h, remove needless includes and
9111 minimize includes outside #ifdef HAVE_isl block.
9112 * graphite-blocking.c: Don't include sese.h, remove needless includes,
9113 and wrap entire file in #ifdef HAVE_isl
9114 * graphite-dependences.c: Likewise.
9115 * graphite-interchange.c: Likewise.
9116 * graphite-isl-ast-to-gimple.c: Likewise.
9117 * graphite-optimize-isl.c: Likewise.
9118 * graphite-poly.c: Likewise.
9119 * graphite-scop-detection.c: Likewise.
9120 * graphite-sese-to-poly.c: Likewise.
9122 2015-07-13 Tom de Vries <tom@codesourcery.com>
9124 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
9126 2015-07-13 Renlin Li <renlin.li@arm.com>
9129 * simplify-rtx.c (simplify_const_relational_operation): Add
9130 side_effects_p checks.
9132 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
9134 * bitmap.h: Fix double word typos.
9137 * cfgloopmanip.c: Same.
9140 * cgraphclones.c: Same.
9142 * config/aarch64/aarch64-protos.h: Same.
9143 * config/aarch64/aarch64.c: Same.
9144 * config/aarch64/aarch64.md: Same.
9145 * config/arm/arm.md: Same.
9146 * config/arm/arm1020e.md: Same.
9147 * config/arm/arm1026ejs.md: Same.
9148 * config/arm/arm926ejs.md: Same.
9149 * config/arm/fa526.md: Same.
9150 * config/arm/fa606te.md: Same.
9151 * config/arm/fa626te.md: Same.
9152 * config/arm/fa726te.md: Same.
9153 * config/arm/fmp626.md: Same.
9154 * config/darwin.c: Same.
9155 * config/epiphany/epiphany.c: Same.
9156 * config/frv/frv.c: Same.
9157 * config/ft32/ft32.c: Same.
9158 * config/gnu-user.h: Same.
9159 * config/h8300/constraints.md: Same.
9160 * config/i386/i386.c: Same.
9161 * config/i386/i386.md: Same.
9162 * config/iq2000/iq2000.md: Same.
9163 * config/mips/mips.c: Same.
9164 * config/mmix/mmix.md: Same.
9165 * config/moxie/moxie.c: Same.
9166 * config/nds32/nds32.md: Same.
9167 * config/pa/pa.h: Same.
9168 * config/rs6000/aix.h: Same.
9169 * config/rs6000/rs6000.h: Same.
9170 * config/sh/sh.c: Same.
9171 * config/tilegx/tilegx.md: Same.
9172 * config/tilepro/gen-mul-tables.cc: Same.
9175 * doc/invoke.texi: Same.
9177 * dwarf2out.c: Same.
9182 * hash-table.h: Same.
9183 * internal-fn.c: Same.
9185 * ipa-devirt.c: Same.
9188 * ipa-profile.c: Same.
9193 * reg-stack.c: Same.
9199 * tree-inline.c: Same.
9201 * tree-ssa-dom.c: Same.
9202 * tree-ssa-loop-ivopts.c: Same.
9203 * tree-ssa-structalias.c: Same.
9204 * tree-ssa-tail-merge.c: Same.
9205 * tree-ssa-ter.c: Same.
9206 * tree-ssa-threadupdate.c: Same.
9207 * tree-ssa-uninit.c: Same.
9208 * tree-ssanames.c: Same.
9209 * tree-vect-loop-manip.c: Same.
9215 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9218 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
9219 tree_ssa_phiopt_worker): Call it.
9221 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9223 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
9224 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
9227 2015-07-11 Marek Polacek <polacek@redhat.com>
9230 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
9231 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
9232 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
9233 rather than bb_has_abnormal_call_pred.
9234 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
9235 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
9236 rather than bb_has_abnormal_call_pred.
9238 2015-07-10 Anatoly Sokolov <aesok@post.ru>
9240 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9241 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
9242 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9243 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
9244 v850_legitimate_address_p): New functions.
9245 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9247 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
9250 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
9251 indirect sibcall with register arguments if register available
9252 for argument passing.
9253 (init_cumulative_args): Set cfun->machine->arg_reg_available
9254 to (cum->nregs > 0) or to true if function has a variable
9256 (function_arg_advance_32): Set cfun->machine->arg_reg_available
9257 to false if cum->nregs <= 0.
9258 * config/i386/i386.h (machine_function): Add arg_reg_available.
9260 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9262 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
9263 and gen_higpart instead of gen_rtx_SUBREG.
9264 * config/i386/i386.md
9265 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
9266 (read-modify peephole2): Use gen_lowpart instead of
9267 gen_rtx_SUBREG for operand 5.
9269 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9271 * config/tilepro/gen-mul-tables.cc (main): Change include list for
9273 * config/tilepro/mul-tables.c: Regenerate.
9274 * config/tilegx/mul-tables.c: Regenerate.
9276 2015-07-10 Richard Biener <rguenther@suse.de>
9278 * fold-const.c (distribute_bit_expr): Remove.
9279 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
9280 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
9281 to A & (B | C) and simplifying A << C1 << C2 to ...
9282 * match.pd: ... patterns here.
9284 2015-07-10 Jiong Wang <jiong.wang@arm.com>
9286 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9287 Mark mem as READONLY and NOTRAP for PIC symbol.
9289 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
9291 * gimple-predict.h: New file.
9292 (gimple_predict_predictor, gimple_predict_set_predictor,
9293 gimple_predict_outcome, gimple_predict_set_outcome,
9294 gimple_build_predict): Relocate here.
9295 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
9296 gimple_predict_outcome, gimple_predict_set_outcome): Move to
9298 * gimple.c (gimple_build_predict): Move to gimple-predict.h
9299 * basic-block.h: Don't include cfghooks.h.
9300 * backend.h: Don't include predict.h.
9301 * cfghooks.h: Include predict.h.
9302 * gimple-pretty-print.c: Include gimple-predict.h.
9303 * gimplify.c: Likwise.
9304 * predict.c: Adjust includes.
9305 * tree-inline.c: Likewise.
9307 * auto-inc-dec.c: Likewise.
9308 * auto-profile.c: Likewise.
9309 * bb-reorder.c: Likewise.
9310 * builtins.c: Likewise.
9311 * caller-save.c: Likewise.
9312 * calls.c: Likewise.
9313 * cfganal.c: Likewise.
9314 * cfgbuild.c: Likewise.
9316 * cfgcleanup.c: Likewise.
9317 * cfgexpand.c: Likewise.
9318 * cfghooks.c: Likewise.
9319 * cfgloopanal.c: Likewise.
9320 * cfgloop.c: Likewise.
9321 * cfgloopmanip.c: Likewise.
9322 * cfgrtl.c: Likewise.
9323 * cgraph.c: Likewise.
9324 * cgraphunit.c: Likewise.
9325 * combine.c: Likewise.
9326 * cprop.c: Likewise.
9329 * dojump.c: Likewise.
9331 * except.c: Likewise.
9332 * expmed.c: Likewise.
9334 * final.c: Likewise.
9335 * fold-const.c: Likewise.
9336 * function.c: Likewise.
9337 * fwprop.c: Likewise.
9338 * gcc-plugin.h: Likewise.
9340 * genattrtab.c: Likewise.
9341 * genemit.c: Likewise.
9342 * gengtype.c: Likewise.
9343 * genopinit.c: Likewise.
9344 * genoutput.c: Likewise.
9345 * genpreds.c: Likewise.
9346 * genrecog.c: Likewise.
9347 * gimple-fold.c: Likewise.
9348 * gimple-iterator.c: Likewise.
9349 * gimple-ssa-isolate-paths.c: Likewise.
9350 * gimple-ssa-strength-reduction.c: Likewise.
9351 * graph.c: Likewise.
9352 * graphite-blocking.c: Likewise.
9353 * graphite.c: Likewise.
9354 * graphite-dependences.c: Likewise.
9355 * graphite-interchange.c: Likewise.
9356 * graphite-isl-ast-to-gimple.c: Likewise.
9357 * graphite-optimize-isl.c: Likewise.
9358 * graphite-poly.c: Likewise.
9359 * graphite-scop-detection.c: Likewise.
9360 * graphite-sese-to-poly.c: Likewise.
9361 * haifa-sched.c: Likewise.
9362 * ifcvt.c: Likewise.
9363 * internal-fn.c: Likewise.
9364 * ipa-cp.c: Likewise.
9365 * ipa-profile.c: Likewise.
9366 * ipa-split.c: Likewise.
9367 * ipa-utils.c: Likewise.
9368 * ira-build.c: Likewise.
9369 * ira-color.c: Likewise.
9370 * ira-conflicts.c: Likewise.
9371 * ira-costs.c: Likewise.
9372 * ira-emit.c: Likewise.
9373 * ira-lives.c: Likewise.
9375 * loop-doloop.c: Likewise.
9376 * loop-init.c: Likewise.
9377 * loop-invariant.c: Likewise.
9378 * loop-unroll.c: Likewise.
9379 * lower-subreg.c: Likewise.
9380 * lra-assigns.c: Likewise.
9382 * lra-coalesce.c: Likewise.
9383 * lra-constraints.c: Likewise.
9384 * lra-lives.c: Likewise.
9385 * lto-cgraph.c: Likewise.
9386 * lto-streamer-in.c: Likewise.
9387 * mode-switching.c: Likewise.
9388 * modulo-sched.c: Likewise.
9389 * omp-low.c: Likewise.
9390 * optabs.c: Likewise.
9391 * passes.c: Likewise.
9392 * postreload.c: Likewise.
9393 * postreload-gcse.c: Likewise.
9394 * profile.c: Likewise.
9395 * recog.c: Likewise.
9396 * regstat.c: Likewise.
9397 * reload1.c: Likewise.
9398 * reorg.c: Likewise.
9399 * rtlanal.c: Likewise.
9400 * sched-ebb.c: Likewise.
9401 * sel-sched-ir.c: Likewise.
9403 * shrink-wrap.c: Likewise.
9404 * simplify-rtx.c: Likewise.
9406 * store-motion.c: Likewise.
9407 * tracer.c: Likewise.
9408 * trans-mem.c: Likewise.
9409 * tree-call-cdce.c: Likewise.
9410 * tree-cfg.c: Likewise.
9411 * tree-cfgcleanup.c: Likewise.
9412 * tree-chkp.c: Likewise.
9413 * tree-complex.c: Likewise.
9414 * tree-eh.c: Likewise.
9415 * tree-if-conv.c: Likewise.
9416 * tree-loop-distribution.c: Likewise.
9417 * tree-outof-ssa.c: Likewise.
9418 * tree-parloops.c: Likewise.
9419 * tree-predcom.c: Likewise.
9420 * tree-pretty-print.c: Likewise.
9421 * tree-profile.c: Likewise.
9422 * tree-sra.c: Likewise.
9423 * tree-ssa.c: Likewise.
9424 * tree-ssa-coalesce.c: Likewise.
9425 * tree-ssa-dce.c: Likewise.
9426 * tree-ssa-dom.c: Likewise.
9427 * tree-ssa-forwprop.c: Likewise.
9428 * tree-ssa-ifcombine.c: Likewise.
9429 * tree-ssa-loop-ch.c: Likewise.
9430 * tree-ssa-loop-im.c: Likewise.
9431 * tree-ssa-loop-ivcanon.c: Likewise.
9432 * tree-ssa-loop-ivopts.c: Likewise.
9433 * tree-ssa-loop-manip.c: Likewise.
9434 * tree-ssa-loop-prefetch.c: Likewise.
9435 * tree-ssa-loop-unswitch.c: Likewise.
9436 * tree-ssa-math-opts.c: Likewise.
9437 * tree-ssa-phiopt.c: Likewise.
9438 * tree-ssa-pre.c: Likewise.
9439 * tree-ssa-reassoc.c: Likewise.
9440 * tree-ssa-sink.c: Likewise.
9441 * tree-ssa-tail-merge.c: Likewise.
9442 * tree-ssa-threadedge.c: Likewise.
9443 * tree-ssa-threadupdate.c: Likewise.
9444 * tree-switch-conversion.c: Likewise.
9445 * tree-tailcall.c: Likewise.
9446 * tree-vect-data-refs.c: Likewise.
9447 * tree-vect-loop.c: Likewise.
9448 * tree-vect-loop-manip.c: Likewise.
9449 * tree-vectorizer.c: Likewise.
9450 * tree-vrp.c: Likewise.
9451 * ubsan.c: Likewise.
9452 * value-prof.c: Likewise.
9453 * varasm.c: Likewise.
9454 * var-tracking.c: Likewise.
9455 * config/aarch64/aarch64-builtins.c: Likewise.
9456 * config/aarch64/aarch64.c: Likewise.
9457 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9458 * config/alpha/alpha.c: Likewise.
9459 * config/arc/arc.c: Likewise.
9460 * config/arm/arm.c: Likewise.
9461 * config/avr/avr.c: Likewise.
9462 * config/bfin/bfin.c: Likewise.
9463 * config/c6x/c6x.c: Likewise.
9464 * config/cr16/cr16.c: Likewise.
9465 * config/cris/cris.c: Likewise.
9466 * config/darwin.c: Likewise.
9467 * config/darwin-c.c: Likewise.
9468 * config/epiphany/epiphany.c: Likewise.
9469 * config/epiphany/mode-switch-use.c: Likewise.
9470 * config/epiphany/resolve-sw-modes.c: Likewise.
9471 * config/fr30/fr30.c: Likewise.
9472 * config/frv/frv.c: Likewise.
9473 * config/ft32/ft32.c: Likewise.
9474 * config/h8300/h8300.c: Likewise.
9475 * config/i386/i386.c: Likewise.
9476 * config/i386/winnt.c: Likewise.
9477 * config/ia64/ia64.c: Likewise.
9478 * config/iq2000/iq2000.c: Likewise.
9479 * config/lm32/lm32.c: Likewise.
9480 * config/m32c/m32c.c: Likewise.
9481 * config/m32r/m32r.c: Likewise.
9482 * config/m68k/m68k.c: Likewise.
9483 * config/mcore/mcore.c: Likewise.
9484 * config/mep/mep.c: Likewise.
9485 * config/microblaze/microblaze.c: Likewise.
9486 * config/mips/mips.c: Likewise.
9487 * config/mmix/mmix.c: Likewise.
9488 * config/mn10300/mn10300.c: Likewise.
9489 * config/moxie/moxie.c: Likewise.
9490 * config/msp430/msp430.c: Likewise.
9491 * config/nds32/nds32.c: Likewise.
9492 * config/nds32/nds32-cost.c: Likewise.
9493 * config/nds32/nds32-fp-as-gp.c: Likewise.
9494 * config/nds32/nds32-intrinsic.c: Likewise.
9495 * config/nds32/nds32-isr.c: Likewise.
9496 * config/nds32/nds32-md-auxiliary.c: Likewise.
9497 * config/nds32/nds32-memory-manipulation.c: Likewise.
9498 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9499 * config/nds32/nds32-predicates.c: Likewise.
9500 * config/nios2/nios2.c: Likewise.
9501 * config/nvptx/nvptx.c: Likewise.
9502 * config/pa/pa.c: Likewise.
9503 * config/pdp11/pdp11.c: Likewise.
9504 * config/rl78/rl78.c: Likewise.
9505 * config/rs6000/rs6000.c: Likewise.
9506 * config/rx/rx.c: Likewise.
9507 * config/s390/s390.c: Likewise.
9508 * config/sh/sh.c: Likewise.
9509 * config/sh/sh-mem.cc: Likewise.
9510 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9511 * config/sh/sh_treg_combine.cc: Likewise.
9512 * config/sparc/sparc.c: Likewise.
9513 * config/spu/spu.c: Likewise.
9514 * config/stormy16/stormy16.c: Likewise.
9515 * config/tilegx/tilegx.c: Likewise.
9516 * config/tilepro/tilepro.c: Likewise.
9517 * config/v850/v850.c: Likewise.
9518 * config/vax/vax.c: Likewise.
9519 * config/visium/visium.c: Likewise.
9520 * config/xtensa/xtensa.c: Likewise.
9522 2015-07-10 Richard Biener <rguenther@suse.de>
9524 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9525 (decision_tree::gen_gimple): Likewise.
9526 (decision_tree::gen_generic): Likewise.
9528 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
9531 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9532 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9534 2015-07-10 Jakub Jelinek <jakub@redhat.com>
9537 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9538 or ORT_TASK contexts.
9539 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9542 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9544 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9547 2015-07-10 Tom de Vries <tom@codesourcery.com>
9549 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9550 insert nit + 1 bound.
9552 2015-07-10 Richard Biener <rguenther@suse.de>
9554 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9555 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9556 (if_convertible_loop_p_1): For this always compute bb predicates.
9557 (if_convertible_loop_p): And free them.
9559 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9561 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9564 2015-07-10 Richard Biener <rguenther@suse.de>
9566 PR tree-optimization/66823
9567 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9570 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
9572 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9573 to handle mips[32|64]r3 and mips[32|64]r5.
9575 2015-07-09 Jakub Jelinek <jakub@redhat.com>
9578 * tree-nested.c (get_static_chain): Or in a flag into
9579 info->static_chain_added.
9580 (get_frame_field, get_nonlocal_debug_decl): Likewise.
9581 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9583 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9584 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9587 PR tree-optimization/66718
9588 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9590 (vect_simd_lane_linear): New function.
9591 (vectorizable_simd_clone_call): Support using linear arguments for
9592 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9594 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9597 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9599 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9601 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9602 Use machine mode, not enum machine_mode in the prototype.
9604 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9605 classify 128-bit floating point support.
9606 (FLOAT128_IBM_P): Likewise.
9607 (FLOAT128_VECTOR_P): Likewise.
9608 (FLOAT128_2REG_P): Likewise.
9609 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9610 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9611 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9612 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9614 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9615 tests against TFmode/TDmode, since those modes do not use VSX
9617 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9619 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9620 tests against TFmode, etc.
9621 (invalid_e500_subreg): Add tests against IFmode/KFmode.
9622 (reg_offset_addressing_ok_p): Likewise.
9623 (rs6000_legitimate_offset_address_p): Likewise.
9624 (rs6000_legitimize_address): Likewise.
9625 (rs6000_legitimize_reload_address): Likewise.
9626 (rs6000_legitimate_address_p): Clean up tests against TFmode and
9627 TDmode to use the new helper macros, which will include IFmode and
9629 (rs6000_emit_move): Likewise.
9630 (rs6000_darwin64_record_arg_recurse): Likewise.
9631 (print_operand): Likewise.
9632 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9633 that uses a single vector register as a vector and not as a
9634 floating point register in terms of the calling sequence.
9635 (rs6000_discover_homogeneous_aggregate): Likewise.
9636 (rs6000_return_in_memory): Likewise.
9637 (init_cumulative_args): Likewise.
9638 (rs6000_function_arg_boundary): Likewise.
9639 (rs6000_function_arg_advance_1): Likewise.
9640 (rs6000_function_arg): Likewise.
9641 (rs6000_pass_by_reference): Likewise.
9642 (rs6000_gimplify_va_arg): Likewise.
9643 (rs6000_secondary_reload_memory): Use machine_mode not enum
9645 (rs6000_split_multireg_move): Use new helper macros.
9646 (spe_func_has_64bit_regs_p): Likewise.
9647 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9648 (output_toc): Use new helper macros.
9649 (rs6000_register_move_cost): Likewise.
9650 (rs6000_function_value): Add IEEE 128-bit floating point calling
9652 (rs6000_libcall_value): Likewise.
9653 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9654 floating point support.
9655 (rs6000_vector_mode_supported_p): Likewise.
9657 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
9659 PR rtl-optimization/66782
9660 * lra-int.h (struct lra_insn_recog_data): Add comment about
9661 clobbered hard regs for arg_hard_regs.
9662 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9663 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9664 Add condition for processing used hard regs.
9665 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9666 Process clobbered hard regs.
9668 2015-07-09 Michael Matz <matz@suse.de>
9670 * genmatch.c (fprintf_indent): New function.
9671 (operand::gen_transform): Add indent parameter.
9672 (expr::gen_transform, c_expr::gen_transform,
9673 capture::gen_transform): Ditto and use fprintf_indent.
9674 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9675 (dt_operand::gen, dt_operand::gen_predicate,
9676 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9677 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9678 (decision_tree::gen_gimple): Adjust calls and indent generated
9680 (decision_tree::gen_generic): Ditto.
9681 (write_predicate): Ditto.
9683 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9686 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9687 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9688 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9689 {GENERAL,SSE,MMX}_REG_P where appropriate.
9691 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9693 * lto-streamer.h: Don't include target.h and alloc-pool.h.
9694 * builtins.c: Adjust includes.
9695 * gimple.c: Likewise.
9696 * ipa-icf.c: Likewise.
9697 * lto-opts.c: Likewise.
9698 * ipa-reference.c: Likewise.
9699 * lto-section-out.c: Likewise.
9700 * lto-streamer-in.c: Likewise.
9701 * lto-streamer-out.c: Likewise.
9702 * opts-global.c: Likewise.
9703 * symtab.c: Likewise.
9704 * tree-chkp.c: Likewise.
9705 * tree-ssa-live.c: Likewise.
9706 * tree-streamer-in.c: Likewise.
9707 * tree-streamer-out.c: Likewise.
9708 * config/darwin.c: Likewise.
9709 * config/i386/winnt.c: Likewise.
9711 2015-07-09 Richard Biener <rguenther@suse.de>
9713 * genmatch.c (struct expr): Add force_single_use flag.
9714 (expr::expr): Add copy constructor.
9715 (capture_info::walk_match): Gather force_single_use captures.
9716 (expr::gen_transform): Use possibly NULLified sequence.
9717 (dt_simplify::gen): Apply single-use restrictions by NULLifying
9718 seq if any constrained expr is not single-use.
9719 (parser::parse_expr): Refactor to allow multiple flags. Handle
9720 's' flag to force an expression have a single-use if the pattern
9721 simplifies to more than one statement.
9722 * match.pd: Convert most single_use conditionals to :s flags.
9724 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9726 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9727 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9728 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9730 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
9732 * flags.h: Don't include flag-types.h or options.h.
9733 * opts-common.c: Adjust includes.
9734 * opts-global.c: Likewise.
9735 * common/config/epiphany/epiphany-common.c: Likewise.
9737 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9740 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9743 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
9746 * config/i386/i386.c (ix86_return_in_memory): Return true
9747 if int_size_in_bytes returns negative for IA MCU.
9749 2015-07-09 Marek Polacek <polacek@redhat.com>
9751 PR tree-optimization/66718
9752 * Makefile.in (OBJS): Add gimple-laddress.o.
9753 * passes.def: Schedule pass_laddress.
9754 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9755 * tree-pass.h (make_pass_laddress): Declare.
9756 * gimple-laddress.c: New file.
9758 2015-07-09 Richard Biener <rguenther@suse.de>
9760 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9762 2015-07-09 Richard Biener <rguenther@suse.de>
9764 PR tree-optimization/66807
9765 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9767 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
9769 * function.c (stack_protect_epilogue): Use if rather than switch for
9770 check targetm.have_stack_protect_test.
9772 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9774 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9775 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9776 * config/arc/arc.h: Likewise.
9777 * config/arm/arm.h: Likewise.
9778 * config/bfin/bfin.h: Likewise.
9779 * config/epiphany/epiphany.h: Likewise.
9780 * config/frv/frv.h: Likewise.
9781 * config/ia64/ia64.h: Likewise.
9782 * config/iq2000/iq2000.h: Likewise.
9783 * config/lm32/lm32.h: Likewise.
9784 * config/m32r/m32r.h: Likewise.
9785 * config/mcore/mcore.h: Likewise.
9786 * config/mep/mep.h: Likewise.
9787 * config/microblaze/microblaze.h: Likewise.
9788 * config/mips/mips.h: Likewise.
9789 * config/mmix/mmix.h: Likewise.
9790 * config/mn10300/mn10300.h: Likewise.
9791 * config/nds32/nds32.h: Likewise.
9792 * config/nios2/nios2.h: Likewise.
9793 * config/pa/pa.h: Likewise.
9794 * config/rl78/rl78.h: Likewise.
9795 * config/sh/sh.h: Likewise.
9796 * config/sparc/sparc.h: Likewise.
9797 * config/stormy16/stormy16.h: Likewise.
9798 * config/tilegx/tilegx.h: Likewise.
9799 * config/tilepro/tilepro.h: Likewise.
9800 * config/v850/v850.h: Likewise.
9801 * config/xtensa/xtensa.h: Likewise.
9802 * doc/tm.texi: Regenerate.
9803 * doc/tm.texi.in: Adjust.
9804 * combine.c (simplify_set): Likewise.
9805 (simplify_comparison): Likewise.
9806 * expr.c (store_constructor): Likewise.
9807 * internal-fn.c (expand_arith_overflow): Likewise.
9808 * reload.c (push_reload): Likewise.
9809 (find_reloads): Likewise.
9810 (find_reloads_subreg_address): Likewise.
9811 * reload1.c (eliminate_regs_1): Likewise.
9812 * rtlanal.c (nonzero_bits1): Likewise.
9813 (num_sign_bit_copies1): Likewise.
9814 * simplify-rtx.c (simplify_truncation): Likewise.
9816 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9818 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9819 of AUTO_INC_DEC with the preprocessor.
9820 * combine.c (combine_instructions): Likewise.
9821 (can_combine_p): Likewise.
9822 (try_combine): Likewise.
9823 * emit-rtl.c (try_split): Likewise.
9824 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9825 * lower-subreg.c (resolve_simple_move): Likewise.
9826 * lra.c (update_inc_notes): Likewise.
9827 * recog.c (asm_operand_ok): Likewise.
9828 (constrain_operands): Likewise.
9829 * regrename.c (scan_rtx_address): Likewise.
9830 * reload.c (update_auto_inc_notes): Likewise.
9831 (reg_inc_found_and_valid_p): Likewise.
9832 * reload1.c (reload): Likewise.
9833 (emit_input_reload_insns): Likewise.
9834 (delete_output_reload): Likewise.
9835 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9836 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9838 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9840 * rtl.h: Always define AUTO_INC_DEC.
9841 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9842 * combine.c (combine_instructions): Likewise.
9843 (can_combine_p): Likewise.
9844 (try_combine): Likewise.
9845 * emit-rtl.c (try_split): Likewise.
9846 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9847 * lower-subreg.c (resolve_simple_move): Likewise.
9848 * lra.c (update_inc_notes): Likewise.
9849 * recog.c (asm_operand_ok): Likewise.
9850 (constrain_operands): Likewise.
9851 * regrename.c (scan_rtx_address): Likewise.
9852 * reload.c (update_auto_inc_notes): Likewise.
9853 (find_equiv_reg): Likewise.
9854 * reload1.c (reload): Likewise.
9855 (reload_as_needed): Likewise.
9856 (choose_reload_regs): Likewise.
9857 (emit_input_reload_insns): Likewise.
9858 (delete_output_reload): Likewise.
9859 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9860 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9862 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9864 * combine.c (can_combine_def_p): Don't check the value of
9865 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9866 (combinable_i3pat): Likewise.
9867 (mark_used_regs_combine): Likewise.
9868 * regrename.c (rename_chains): Likewise.
9869 * reload.c (find_reloads_address): Likewise.
9870 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9872 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9874 * combine.c (update_rsp_from_reg_equal): Don't check if
9875 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9876 (reg_nonzero_bits_for_combine): Likewise.
9877 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9879 * config/frv/frv.h: Likewise.
9880 * config/lm32/lm32.h: Likewise.
9881 * config/mep/mep.h: Likewise.
9882 * config/mips/mips.h: Likewise.
9883 * config/rs6000/rs6000.h: Likewise.
9884 * config/sh/sh.h: Likewise.
9885 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9886 * config/tilepro/tilepro.h: Likewise.
9887 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9888 * doc/tm.texi: Regenerate.
9889 * doc/tm.texi.in: Adjust.
9890 * rtlanal.c (nonzero_bits1): Likewise.
9892 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9894 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9895 with the preprocessor.
9896 (combine_instructions): Likewise.
9897 (try_combine): Likewise.
9899 (distribute_notes): Likewise.
9901 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9903 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9905 (simplify_set): Likewise.
9906 * cse.c (cse_insn): Likewise.
9907 * fold-const.c (fold_single_bit_test): Likewise.
9908 (fold_unary_loc): Likewise.
9909 * postreload.c (reload_cse_simplify_set): Likewise.
9910 (reload_cse_simplify_operands): Likewise.
9912 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9914 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9915 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9917 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9920 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9921 __iamcu__ is defined.
9923 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9925 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9927 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9930 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9931 names from preservation.
9933 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9936 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9938 (function_arg_advance_32): Don't pass vectors in registers for
9940 (function_arg_32): Likewise.
9941 (ix86_return_in_memory): Don't return vectors in registers for
9944 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9947 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9948 hard regno live at the start of BB with incoming abnormal edges.
9949 * lra-lives.c (process_bb_lives): Ditto.
9951 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9954 * config/nvptx/mkoffload.c (main): Create an offload image only in
9955 64-bit configurations.
9957 2015-07-08 Martin Liska <mliska@suse.cz>
9960 * tree-sra.c (create_access_1): Call ctor without brackets.
9961 (create_artificial_child_access): Likewise.
9963 2015-07-08 Richard Biener <rguenther@suse.de>
9965 PR tree-optimization/66793
9966 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9967 Properly split the block after stmts ending it.
9969 2015-07-08 Richard Biener <rguenther@suse.de>
9971 PR tree-optimization/66794
9972 * passes.c (execute_function_todo): Assert that post-dominators
9974 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9975 Free post-dominators.
9977 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9979 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9982 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9984 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9985 more than or equal 8 and less than 32 when optimizing for size.
9987 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9989 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9990 COSTS_N_INSNS (1) and increment it appropriately throughout the
9993 2015-07-08 Richard Biener <rguenther@suse.de>
9995 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9997 2015-07-08 Alan Modra <amodra@gmail.com>
9999 * target.def (rtx_costs): Remove "code" param, add "mode".
10000 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
10001 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
10002 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
10003 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
10004 call. Track mode when given in rtx.
10005 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
10006 (default_address_cost): Pass Pmode to rtx_cost.
10007 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
10008 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
10010 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
10011 (notreg_cost): Add mode param. Use it.
10012 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
10013 mode param and pass to set_src_cost. Update all calls.
10014 (hash_scan_set): Formatting.
10015 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
10016 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
10018 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
10019 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
10020 emit_store_flag): Update set_src_cost and rtx_cost calls.
10021 * auto-inc-dec.c (attempt_change): Likewise.
10022 * calls.c (precompute_register_parameters): Likewise.
10023 * combine.c (expand_compound_operation, make_extraction,
10024 force_to_mode, distribute_and_simplify_rtx): Likewise.
10025 * dojump.c (prefer_and_bit_test): Likewise.
10026 * dse.c (find_shift_sequence): Likewise.
10027 * expr.c (compress_float_constant): Likewise.
10028 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
10029 * ifcvt.c (noce_try_sign_mask): Likewise.
10030 * loop-doloop.c (doloop_optimize): Likewise.
10031 * loop-invariant.c (create_new_invariant): Likewise.
10032 * lower-subreg.c (shift_cost, compute_costs): Likewise.
10033 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
10034 lshift_cheap_p): Likewise.
10035 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
10036 try_replace_in_use, reload_cse_move2add): Likewise.
10037 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
10039 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10040 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10041 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
10042 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10043 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
10044 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
10046 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
10047 * config/arc/arc.c (arc_rtx_costs): Likewise.
10048 * config/arm/arm.c (arm_rtx_costs): Likewise.
10049 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
10050 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10051 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
10052 * config/cris/cris.c (cris_rtx_costs): Likewise.
10053 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
10054 * config/frv/frv.c (frv_rtx_costs): Likewise.
10055 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
10056 * config/i386/i386.c (ix86_rtx_costs): Likewise.
10057 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
10058 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
10059 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
10060 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
10061 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
10062 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
10063 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
10064 * config/mep/mep.c (mep_rtx_cost): Likewise.
10065 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
10066 * config/mips/mips.c (mips_rtx_costs): Likewise.
10067 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
10068 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
10069 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
10070 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
10071 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
10072 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
10073 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
10074 * config/pa/pa.c (hppa_rtx_costs): Likewise.
10075 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
10076 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
10077 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
10078 * config/s390/s390.c (s390_rtx_costs): Likewise.
10079 * config/sh/sh.c (sh_rtx_costs): Likewise.
10080 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
10081 * config/spu/spu.c (spu_rtx_costs): Likewise.
10082 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
10083 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
10084 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
10085 * config/v850/v850.c (v850_rtx_costs): Likewise.
10086 * config/vax/vax.c (vax_rtx_costs): Likewise.
10087 * config/visium/visium.c (visium_rtx_costs): Likewise.
10088 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
10089 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
10090 "code" param, and pass as outer_code to first rtx_cost call. Pass
10091 mode to rtx_cost calls.
10092 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
10094 (aarch64_rtx_costs_wrapper): Update.
10095 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
10096 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
10098 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
10099 and rtx_cost calls.
10100 (avr_operand_rtx_cost): Similarly.
10101 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
10102 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
10103 * config/mips/mips.c (mips_stack_address_p): Comment typo.
10104 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
10105 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
10106 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
10108 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
10109 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
10110 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
10111 * doc/tm.texi: Regenerate.
10113 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
10115 * tree-core.h: Include symtab.h.
10116 * rtl.h: Include hard-reg-set.h but not flags.h.
10117 (HARD_CONST): Remove condition compilation involving HARD_CONST since
10118 hard-reg-set.h is always included.
10119 * regs.h: Don't include hard-reg-set.h or rtl.h.
10120 * cfg.h: Include dominance.h.
10121 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
10122 * backend.h: New. Aggregate commonly used backend header files.
10123 * gimple-ssa.h: Don't include tree-hasher.h.
10124 * ssa.h: New. Aggregate commonly used SSA header files.
10125 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
10126 * sel-sched-ir.h: Flatten includes.
10127 * lra-int.h: Flatten completely.
10128 * sel-sched-dump.h: Flatten includes.
10129 * ira-int.h: Flatten includes.
10130 * gimple-streamer.h: Remove all includes.
10131 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
10132 * resource.h: Flatten hard-reg-set.h and df.h.
10133 * sched-int.h: Flatten insn-arrt.h and df.h.
10134 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
10135 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
10136 * genattrtab.c (write_header): Adjust generated includes.
10137 * genautomata.c (main): Likewise.
10138 * genconditions.c (write-header): Likewise.
10139 * genemit.c (main): Likewise.
10140 * gengtype.c (open_base_files): Likewise.
10141 * genopinit.c (main): Likewise.
10142 * genoutput.c (output_prologue): Likewise.
10143 * genpeep.c (main): Likewise.
10144 * genpreds.c (write_insn_preds_c): Likewise.
10145 * genrecog.c (write_header): Likewise.
10146 * alias.c: Adjust includes.
10147 * asan.c: Likewise.
10148 * attribs.c: Likewise.
10149 * auto-inc-dec.c: Likewise.
10150 * auto-profile.c: Likewise.
10151 * bb-reorder.c: Likewise.
10152 * bt-load.c: Likewise.
10153 * builtins.c: Likewise.
10154 * caller-save.c: Likewise.
10155 * calls.c: Likewise.
10156 * ccmp.c: Likewise.
10158 * cfganal.c: Likewise.
10159 * cfgbuild.c: Likewise.
10160 * cfgcleanup.c: Likewise.
10161 * cfgexpand.c: Likewise.
10162 * cfghooks.c: Likewise.
10163 * cfgloop.c: Likewise.
10164 * cfgloopanal.c: Likewise.
10165 * cfgloopmanip.c: Likewise.
10166 * cfgrtl.c: Likewise.
10167 * cgraph.c: Likewise.
10168 * cgraphbuild.c: Likewise.
10169 * cgraphclones.c: Likewise.
10170 * cgraphunit.c: Likewise.
10171 * cilk-common.c: Likewise.
10172 * combine-stack-adj.c: Likewise.
10173 * combine.c: Likewise.
10174 * compare-elim.c: Likewise.
10175 * convert.c: Likewise.
10176 * coverage.c: Likewise.
10177 * cppbuiltin.c: Likewise.
10178 * cprop.c: Likewise.
10180 * cselib.c: Likewise.
10181 * data-streamer-in.c: Likewise.
10182 * data-streamer-out.c: Likewise.
10183 * data-streamer.c: Likewise.
10184 * dbxout.c: Likewise.
10187 * debug.c: Likewise.
10188 * df-core.c: Likewise.
10189 * df-problems.c: Likewise.
10190 * df-scan.c: Likewise.
10192 * dojump.c: Likewise.
10193 * dominance.c: Likewise.
10194 * domwalk.c: Likewise.
10195 * double-int.c: Likewise.
10197 * dumpfile.c: Likewise.
10198 * dwarf2asm.c: Likewise.
10199 * dwarf2cfi.c: Likewise.
10200 * dwarf2out.c: Likewise.
10201 * emit-rtl.c: Likewise.
10202 * et-forest.c: Likewise.
10203 * except.c: Likewise.
10204 * explow.c: Likewise.
10205 * expmed.c: Likewise.
10206 * expr.c: Likewise.
10207 * final.c: Likewise.
10208 * fixed-value.c: Likewise.
10209 * fold-const.c: Likewise.
10210 * function.c: Likewise.
10211 * fwprop.c: Likewise.
10212 * gcc-plugin.h: Likewise.
10213 * gcse-common.c: Likewise.
10214 * gcse.c: Likewise.
10215 * generic-match-head.c: Likewise.
10216 * ggc-page.c: Likewise.
10217 * gimple-builder.c: Likewise.
10218 * gimple-expr.c: Likewise.
10219 * gimple-fold.c: Likewise.
10220 * gimple-iterator.c: Likewise.
10221 * gimple-low.c: Likewise.
10222 * gimple-match-head.c: Likewise.
10223 * gimple-pretty-print.c: Likewise.
10224 * gimple-ssa-isolate-paths.c: Likewise.
10225 * gimple-ssa-strength-reduction.c: Likewise.
10226 * gimple-streamer-in.c: Likewise.
10227 * gimple-streamer-out.c: Likewise.
10228 * gimple-walk.c: Likewise.
10229 * gimple.c: Likewise.
10230 * gimplify-me.c: Likewise.
10231 * gimplify.c: Likewise.
10232 * godump.c: Likewise.
10233 * graph.c: Likewise.
10234 * graphite-blocking.c: Likewise.
10235 * graphite-dependences.c: Likewise.
10236 * graphite-interchange.c: Likewise.
10237 * graphite-isl-ast-to-gimple.c: Likewise.
10238 * graphite-optimize-isl.c: Likewise.
10239 * graphite-poly.c: Likewise.
10240 * graphite-scop-detection.c: Likewise.
10241 * graphite-sese-to-poly.c: Likewise.
10242 * graphite.c: Likewise.
10243 * haifa-sched.c: Likewise.
10244 * hw-doloop.c: Likewise.
10245 * ifcvt.c: Likewise.
10246 * init-regs.c: Likewise.
10247 * internal-fn.c: Likewise.
10248 * ipa-chkp.c: Likewise.
10249 * ipa-comdats.c: Likewise.
10250 * ipa-cp.c: Likewise.
10251 * ipa-devirt.c: Likewise.
10252 * ipa-icf-gimple.c: Likewise.
10253 * ipa-icf.c: Likewise.
10254 * ipa-inline-analysis.c: Likewise.
10255 * ipa-inline-transform.c: Likewise.
10256 * ipa-inline.c: Likewise.
10257 * ipa-polymorphic-call.c: Likewise.
10258 * ipa-profile.c: Likewise.
10259 * ipa-prop.c: Likewise.
10260 * ipa-pure-const.c: Likewise.
10261 * ipa-ref.c: Likewise.
10262 * ipa-reference.c: Likewise.
10263 * ipa-split.c: Likewise.
10264 * ipa-utils.c: Likewise.
10265 * ipa-visibility.c: Likewise.
10267 * ira-build.c: Likewise.
10268 * ira-color.c: Likewise.
10269 * ira-conflicts.c: Likewise.
10270 * ira-costs.c: Likewise.
10271 * ira-emit.c: Likewise.
10272 * ira-lives.c: Likewise.
10274 * jump.c: Likewise.
10275 * langhooks.c: Likewise.
10277 * loop-doloop.c: Likewise.
10278 * loop-init.c: Likewise.
10279 * loop-invariant.c: Likewise.
10280 * loop-iv.c: Likewise.
10281 * loop-unroll.c: Likewise.
10282 * lower-subreg.c: Likewise.
10283 * lra-assigns.c: Likewise.
10284 * lra-coalesce.c: Likewise.
10285 * lra-constraints.c: Likewise.
10286 * lra-eliminations.c: Likewise.
10287 * lra-lives.c: Likewise.
10288 * lra-remat.c: Likewise.
10289 * lra-spills.c: Likewise.
10291 * lto-cgraph.c: Likewise.
10292 * lto-compress.c: Likewise.
10293 * lto-opts.c: Likewise.
10294 * lto-section-in.c: Likewise.
10295 * lto-section-out.c: Likewise.
10296 * lto-streamer-in.c: Likewise.
10297 * lto-streamer-out.c: Likewise.
10298 * lto-streamer.c: Likewise.
10300 * mode-switching.c: Likewise.
10301 * modulo-sched.c: Likewise.
10302 * omega.c: Likewise.
10303 * omp-low.c: Likewise.
10304 * optabs.c: Likewise.
10305 * opts-global.c: Likewise.
10306 * passes.c: Likewise.
10307 * plugin.c: Likewise.
10308 * postreload-gcse.c: Likewise.
10309 * postreload.c: Likewise.
10310 * predict.c: Likewise.
10311 * print-rtl.c: Likewise.
10312 * print-tree.c: Likewise.
10313 * profile.c: Likewise.
10314 * real.c: Likewise.
10315 * realmpfr.c: Likewise.
10316 * recog.c: Likewise.
10318 * reg-stack.c: Likewise.
10319 * regcprop.c: Likewise.
10320 * reginfo.c: Likewise.
10321 * regrename.c: Likewise.
10322 * regstat.c: Likewise.
10323 * reload.c: Likewise.
10324 * reload1.c: Likewise.
10325 * reorg.c: Likewise.
10326 * resource.c: Likewise.
10327 * rtl-chkp.c: Likewise.
10328 * rtlanal.c: Likewise.
10329 * rtlhooks.c: Likewise.
10330 * sanopt.c: Likewise.
10331 * sched-deps.c: Likewise.
10332 * sched-ebb.c: Likewise.
10333 * sched-rgn.c: Likewise.
10334 * sched-vis.c: Likewise.
10335 * sdbout.c: Likewise.
10336 * sel-sched-dump.c: Likewise.
10337 * sel-sched-ir.c: Likewise.
10338 * sel-sched.c: Likewise.
10339 * sese.c: Likewise.
10340 * shrink-wrap.c: Likewise.
10341 * simplify-rtx.c: Likewise.
10342 * stack-ptr-mod.c: Likewise.
10343 * stmt.c: Likewise.
10344 * stor-layout.c: Likewise.
10345 * store-motion.c: Likewise.
10346 * stringpool.c: Likewise.
10347 * symtab.c: Likewise.
10348 * target-globals.c: Likewise.
10349 * targhooks.c: Likewise.
10350 * toplev.c: Likewise.
10351 * tracer.c: Likewise.
10352 * trans-mem.c: Likewise.
10353 * tree-affine.c: Likewise.
10354 * tree-browser.c: Likewise.
10355 * tree-call-cdce.c: Likewise.
10356 * tree-cfg.c: Likewise.
10357 * tree-cfgcleanup.c: Likewise.
10358 * tree-chkp-opt.c: Likewise.
10359 * tree-chkp.c: Likewise.
10360 * tree-chrec.c: Likewise.
10361 * tree-complex.c: Likewise.
10362 * tree-data-ref.c: Likewise.
10363 * tree-dfa.c: Likewise.
10364 * tree-diagnostic.c: Likewise.
10365 * tree-dump.c: Likewise.
10366 * tree-eh.c: Likewise.
10367 * tree-emutls.c: Likewise.
10368 * tree-if-conv.c: Likewise.
10369 * tree-inline.c: Likewise.
10370 * tree-into-ssa.c: Likewise.
10371 * tree-iterator.c: Likewise.
10372 * tree-loop-distribution.c: Likewise.
10373 * tree-nested.c: Likewise.
10374 * tree-nrv.c: Likewise.
10375 * tree-object-size.c: Likewise.
10376 * tree-outof-ssa.c: Likewise.
10377 * tree-parloops.c: Likewise.
10378 * tree-phinodes.c: Likewise.
10379 * tree-predcom.c: Likewise.
10380 * tree-pretty-print.c: Likewise.
10381 * tree-profile.c: Likewise.
10382 * tree-scalar-evolution.c: Likewise.
10383 * tree-sra.c: Likewise.
10384 * tree-ssa-address.c: Likewise.
10385 * tree-ssa-alias.c: Likewise.
10386 * tree-ssa-ccp.c: Likewise.
10387 * tree-ssa-coalesce.c: Likewise.
10388 * tree-ssa-copy.c: Likewise.
10389 * tree-ssa-copyrename.c: Likewise.
10390 * tree-ssa-dce.c: Likewise.
10391 * tree-ssa-dom.c: Likewise.
10392 * tree-ssa-dse.c: Likewise.
10393 * tree-ssa-forwprop.c: Likewise.
10394 * tree-ssa-ifcombine.c: Likewise.
10395 * tree-ssa-live.c: Likewise.
10396 * tree-ssa-loop-ch.c: Likewise.
10397 * tree-ssa-loop-im.c: Likewise.
10398 * tree-ssa-loop-ivcanon.c: Likewise.
10399 * tree-ssa-loop-ivopts.c: Likewise.
10400 * tree-ssa-loop-manip.c: Likewise.
10401 * tree-ssa-loop-niter.c: Likewise.
10402 * tree-ssa-loop-prefetch.c: Likewise.
10403 * tree-ssa-loop-unswitch.c: Likewise.
10404 * tree-ssa-loop.c: Likewise.
10405 * tree-ssa-math-opts.c: Likewise.
10406 * tree-ssa-operands.c: Likewise.
10407 * tree-ssa-phiopt.c: Likewise.
10408 * tree-ssa-phiprop.c: Likewise.
10409 * tree-ssa-pre.c: Likewise.
10410 * tree-ssa-propagate.c: Likewise.
10411 * tree-ssa-reassoc.c: Likewise.
10412 * tree-ssa-sccvn.c: Likewise.
10413 * tree-ssa-scopedtables.c: Likewise.
10414 * tree-ssa-sink.c: Likewise.
10415 * tree-ssa-strlen.c: Likewise.
10416 * tree-ssa-structalias.c: Likewise.
10417 * tree-ssa-tail-merge.c: Likewise.
10418 * tree-ssa-ter.c: Likewise.
10419 * tree-ssa-threadedge.c: Likewise.
10420 * tree-ssa-threadupdate.c: Likewise.
10421 * tree-ssa-uncprop.c: Likewise.
10422 * tree-ssa-uninit.c: Likewise.
10423 * tree-ssa.c: Likewise.
10424 * tree-ssanames.c: Likewise.
10425 * tree-stdarg.c: Likewise.
10426 * tree-streamer-in.c: Likewise.
10427 * tree-streamer-out.c: Likewise.
10428 * tree-streamer.c: Likewise.
10429 * tree-switch-conversion.c: Likewise.
10430 * tree-tailcall.c: Likewise.
10431 * tree-vect-data-refs.c: Likewise.
10432 * tree-vect-generic.c: Likewise.
10433 * tree-vect-loop-manip.c: Likewise.
10434 * tree-vect-loop.c: Likewise.
10435 * tree-vect-patterns.c: Likewise.
10436 * tree-vect-slp.c: Likewise.
10437 * tree-vect-stmts.c: Likewise.
10438 * tree-vectorizer.c: Likewise.
10439 * tree-vrp.c: Likewise.
10440 * tree.c: Likewise.
10441 * tsan.c: Likewise.
10442 * ubsan.c: Likewise.
10443 * valtrack.c: Likewise.
10444 * value-prof.c: Likewise.
10445 * var-tracking.c: Likewise.
10446 * varasm.c: Likewise.
10447 * varpool.c: Likewise.
10448 * vmsdbgout.c: Likewise.
10449 * vtable-verify.c: Likewise.
10451 * wide-int.cc: Likewise.
10452 * xcoffout.c: Likewise.
10453 * config/aarch64/aarch64-builtins.c: Likewise.
10454 * config/aarch64/aarch64.c: Likewise.
10455 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10456 * config/alpha/alpha.c: Likewise.
10457 * config/arc/arc.c: Likewise.
10458 * config/arm/aarch-common.c: Likewise.
10459 * config/arm/arm-builtins.c: Likewise.
10460 * config/arm/arm-c.c: Likewise.
10461 * config/arm/arm.c: Likewise.
10462 * config/avr/avr-c.c: Likewise.
10463 * config/avr/avr-log.c: Likewise.
10464 * config/avr/avr.c: Likewise.
10465 * config/bfin/bfin.c: Likewise.
10466 * config/c6x/c6x.c: Likewise.
10467 * config/cr16/cr16.c: Likewise.
10468 * config/cris/cris.c: Likewise.
10469 * config/darwin-c.c: Likewise.
10470 * config/darwin.c: Likewise.
10471 * config/epiphany/epiphany.c: Likewise.
10472 * config/epiphany/mode-switch-use.c: Likewise.
10473 * config/epiphany/resolve-sw-modes.c: Likewise.
10474 * config/fr30/fr30.c: Likewise.
10475 * config/frv/frv.c: Likewise.
10476 * config/ft32/ft32.c: Likewise.
10477 * config/h8300/h8300.c: Likewise.
10478 * config/i386/i386-c.c: Likewise.
10479 * config/i386/i386.c: Likewise.
10480 * config/i386/msformat-c.c: Likewise.
10481 * config/i386/winnt-cxx.c: Likewise.
10482 * config/i386/winnt-stubs.c: Likewise.
10483 * config/i386/winnt.c: Likewise.
10484 * config/ia64/ia64-c.c: Likewise.
10485 * config/ia64/ia64.c: Likewise.
10486 * config/iq2000/iq2000.c: Likewise.
10487 * config/lm32/lm32.c: Likewise.
10488 * config/m32c/m32c-pragma.c: Likewise.
10489 * config/m32c/m32c.c: Likewise.
10490 * config/m32r/m32r.c: Likewise.
10491 * config/m68k/m68k.c: Likewise.
10492 * config/mcore/mcore.c: Likewise.
10493 * config/mep/mep-pragma.c: Likewise.
10494 * config/mep/mep.c: Likewise.
10495 * config/microblaze/microblaze-c.c: Likewise.
10496 * config/microblaze/microblaze.c: Likewise.
10497 * config/mips/mips.c: Likewise.
10498 * config/mmix/mmix.c: Likewise.
10499 * config/mn10300/mn10300.c: Likewise.
10500 * config/moxie/moxie.c: Likewise.
10501 * config/msp430/msp430-c.c: Likewise.
10502 * config/msp430/msp430.c: Likewise.
10503 * config/nds32/nds32-cost.c: Likewise.
10504 * config/nds32/nds32-fp-as-gp.c: Likewise.
10505 * config/nds32/nds32-intrinsic.c: Likewise.
10506 * config/nds32/nds32-isr.c: Likewise.
10507 * config/nds32/nds32-md-auxiliary.c: Likewise.
10508 * config/nds32/nds32-memory-manipulation.c: Likewise.
10509 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10510 * config/nds32/nds32-predicates.c: Likewise.
10511 * config/nds32/nds32.c: Likewise.
10512 * config/nios2/nios2.c: Likewise.
10513 * config/nvptx/nvptx.c: Likewise.
10514 * config/pa/pa.c: Likewise.
10515 * config/pdp11/pdp11.c: Likewise.
10516 * config/rl78/rl78-c.c: Likewise.
10517 * config/rl78/rl78.c: Likewise.
10518 * config/rs6000/rs6000-c.c: Likewise.
10519 * config/rs6000/rs6000.c: Likewise.
10520 * config/rx/rx.c: Likewise.
10521 * config/s390/s390-c.c: Likewise.
10522 * config/s390/s390.c: Likewise.
10523 * config/sh/sh-c.c: Likewise.
10524 * config/sh/sh-mem.cc: Likewise.
10525 * config/sh/sh.c: Likewise.
10526 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10527 * config/sh/sh_treg_combine.cc: Likewise.
10528 * config/sol2-c.c: Likewise.
10529 * config/sol2-cxx.c: Likewise.
10530 * config/sol2-stubs.c: Likewise.
10531 * config/sol2.c: Likewise.
10532 * config/sparc/sparc-c.c: Likewise.
10533 * config/sparc/sparc.c: Likewise.
10534 * config/spu/spu-c.c: Likewise.
10535 * config/spu/spu.c: Likewise.
10536 * config/stormy16/stormy16.c: Likewise.
10537 * config/tilegx/mul-tables.c: Likewise.
10538 * config/tilegx/tilegx-c.c: Likewise.
10539 * config/tilegx/tilegx.c: Likewise.
10540 * config/tilepro/mul-tables.c: Likewise.
10541 * config/tilepro/tilepro-c.c: Likewise.
10542 * config/tilepro/tilepro.c: Likewise.
10543 * config/v850/v850-c.c: Likewise.
10544 * config/v850/v850.c: Likewise.
10545 * config/vax/vax.c: Likewise.
10546 * config/visium/visium.c: Likewise.
10547 * config/vms/vms-c.c: Likewise.
10548 * config/vms/vms.c: Likewise.
10549 * config/vxworks.c: Likewise.
10550 * config/xtensa/xtensa.c: Likewise.
10552 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
10554 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10555 Remove operand constraints. Change operand 2 predicate to
10556 nonmemory operand. Limit const_int values to mode bitsize. Only
10557 allow const_int values less than 32 when optimizing for size.
10558 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10559 Remove operand constraints.
10560 (*bt<mode>): Use SImode for const_int values less than 32.
10561 (regmode): Remove mode attribute.
10563 2015-07-07 Anatoly Sokolov <aesok@post.ru>
10565 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10566 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10567 moxie_legitimate_address_p): New functions.
10568 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10570 2015-07-07 Tom de Vries <tom@codesourcery.com>
10572 PR tree-optimization/66642
10573 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10574 header comment. Rename split_edge variable to edge_at_split. Split
10575 exit edge to create new loop exit bb. Insert loop exit phis in new
10578 2015-07-07 Tom de Vries <tom@codesourcery.com>
10580 * tree-cfg.c (get_virtual_phi): New function.
10581 * tree-cfg.h (get_virtual_phi): Declare.
10582 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10583 (rewrite_virtuals_into_loop_closed_ssa): New function.
10584 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10586 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10587 (transform_to_exit_first_loop_alt): Use
10588 rewrite_virtuals_into_loop_closed_ssa.
10590 2015-07-07 Richard Biener <rguenther@suse.de>
10592 * fold-const.c (fold_binary_loc): Move
10593 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10594 * match.pd: ... here.
10595 Add (X * C1) % C2 -> 0 simplification pattern derived from
10598 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
10601 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10602 change for target/65249.
10604 2015-07-07 Paulo Matos <pmatos@broadcom.com>
10606 * symtab.c (address_matters_1): Fix typo in comment above.
10607 (can_increase_alignment_p): Likewise.
10609 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10611 * function.c (free_after_compilation): Clear PROP_cfg in
10612 f->curr_properties.
10614 2015-07-07 Richard Biener <rguenther@suse.de>
10616 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10618 (add_control_edge): Remove excessive vertical space in dumping.
10619 (process_ssa_edge_worklist): Simulate at most one statement and
10620 return whether we did. Do not simulate PHIs if they are in a
10621 BB not yet simulated.
10622 (ssa_propagate): Adjust to always drain the BB worklist whenever
10623 a BB is available there, likewise the VARYING edges list before
10624 the interesting edge list.
10626 2015-07-07 Christian Bruel <christian.bruel@st.com>
10629 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10631 2015-07-07 Richard Biener <rguenther@suse.de>
10633 PR middle-end/66739
10634 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10637 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10639 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
10640 modes for operands 0 and 3. Use SImode for operands 2 and 3.
10641 Copy operand 0 to a temporary if !ext_register_operand. Remove
10642 ancient extract_bit_field workaround.
10643 (insv<mode>_1): Rename from mov<mode>_insv_1.
10644 (*insvqi): Rename from *movqi_insv_2.
10645 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10646 for renamed insvsi_1.
10647 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10649 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
10651 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
10652 call to nvptx_reorg_subreg.
10654 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
10656 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10657 * graphite-dependencies.c, graphite-interchange.c,
10658 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10659 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10662 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
10664 * match.pd: Remove element_mode inside HONOR_*.
10665 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10666 (~X | X -> -1, ~X ^ X -> -1): Merge.
10667 * tree.c (build_each_one_cst): New function.
10668 * tree.h (build_each_one_cst): Likewise.
10670 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10672 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10675 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
10677 * config.gcc <mips*-*-*>: Add fused-madd.opt.
10678 * config/mips/mips.opt (mfused-madd): Remove.
10679 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10680 * config/mips/mips.h (TARGET_MIPS8000): New.
10681 (ISA_HAS_FP_MADD4_MSUB4): Remove.
10682 (ISA_HAS_FP_MADDF_MSUBF): Remove.
10683 (ISA_HAS_FP_MADD3_MSUB3): Remove.
10684 (ISA_HAS_NMADD4_NMSUB4): Remove.
10685 (ISA_HAS_NMADD3_NMSUB3): Remove.
10686 (ISA_HAS_FUSED_MADD4): New.
10687 (ISA_HAS_UNFUSED_MADD4): New.
10688 (ISA_HAS_FUSED_MADDF): New.
10689 (ISA_HAS_FUSED_MADD3): New.
10690 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10691 (*fma<mode>4_madd3) New.
10692 (*fma<mode>4_madd4) New.
10693 (*fma<mode>4_maddf) New.
10695 (*fms<mode>4_msub3) New.
10696 (*fms<mode>4_msub4) New.
10698 (*fnma<mode>4_nmadd3) New.
10699 (*fnma<mode>4_nmadd4) New.
10701 (*fnms<mode>4_nmsub3) New.
10702 (*fnms<mode>4_nmsub4) New.
10703 (*madd4<mode>) Modify to be unfused only.
10704 (*msub4<mode>) Modify to be unfused only.
10705 (*nmadd4<mode>) Modify to be unfused only.
10706 (*nmsub4<mode>) Modify to be unfused only.
10707 (*madd3<mode>) Remove.
10708 (*msub3<mode>) Remove.
10709 (*nmadd3<mode>) Remove.
10710 (*nmsub3<mode>) Remove.
10711 (*nmadd3<mode>_fastmath) Remove.
10712 (*nmsub3<mode>_fastmath) Remove.
10713 (*nmadd4<mode>_fastmath) Update condition.
10714 (*nmsub4<mode>_fastmath) Update condition.
10716 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10719 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10720 alignment attribute, exploring one level down for records and arrays.
10722 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
10724 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
10725 modes for operands 0 and 1. Use SImode for operands 2 and 3.
10726 Copy operand 1 to a temporary if !ext_register_operand. Remove
10727 ancient extract_bit_field workaround.
10728 (*extv<mode>): Rename from *mov<mode>_extv_1.
10729 (*extvqi): Rename from *movqi_extv_1.
10730 (extzv<mode>): Rename from extzv. Use SWI248 modes for
10731 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
10732 to a temporary if !ext_register_operand. Remove ancient
10733 extract_bit_field workaround.
10734 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10735 (*extzvqi): Rename from *movqi_extzv_2.
10736 (*testqi_ext_3): Remove modes from const_int_operand predicated
10737 operands. Add "n" constraint.
10738 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10739 operand. Add "J" constraint.
10740 (*btsq, *btrq, *btcq peephole2s): Remove mode from
10741 const_0_to_63 predicated operand.
10742 (regmode): New insn attribute.
10743 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
10744 to nonmemory_operand. Use regmode insn attribute.
10745 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10746 (*jcc_bt<mode>_mask): Remove mode from operand 3.
10747 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10748 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10749 operands. Use "N" constraint instead of "n".
10751 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
10753 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10755 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10758 * config/i386/i386.c (iamcu_cost): New.
10759 (m_IAMCU): Likewise.
10760 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10761 (processor_target_table): Add an entry for "iamcu".
10762 (processor_alias_table): Likewise.
10763 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10764 (ix86_adjust_cost): Likewise.
10765 (ia32_multipass_dfa_lookahead): Likewise.
10766 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10767 * config/i386/x86-tune.def: Updated for m_IAMCU.
10769 2015-07-06 Richard Biener <rguenther@suse.de>
10771 PR tree-optimization/66772
10772 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10773 values are available in the PHI node BB when there are
10774 still unexecutable edges.
10776 2015-07-06 Richard Biener <rguenther@suse.de>
10778 PR tree-optimization/66767
10779 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10780 Make sure to build the alignment test on a SSA name without
10781 final alignment info valid only if the alignment test
10784 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
10787 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10788 loop start when inserting LSETUP.
10790 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
10793 * config/i386/i386.c (ix86_option_override_internal): Allow
10794 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10796 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10798 * read-md.c (decimal_string): Rename to ...
10799 (md_decimal_string): ... this.
10800 (handle_enum): Reflect this.
10802 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10805 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10807 2015-07-06 Richard Biener <rguenther@suse.de>
10809 PR middle-end/66759
10810 * match.pd: Add missing constraint of y to REAL_CST in
10811 REAL_CST - x CMP y to y - CST CMP x simplification.
10813 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
10815 PR tree-optimization/66757
10816 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10818 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10819 Sandra Loosemore <sandra@codesourcery.com>
10821 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10822 Delete extern declaration.
10823 (gprel_constant_p): Add extern declaration.
10824 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10825 instead of nios2_symbol_ref_in_small_data_p.
10826 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10827 (nios2_symbol_ref_in_small_data_p): Make static.
10828 (gprel_constant_p): Make non-static.
10830 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10832 * doc/fragments.texi (Target Fragment): Convert debian.org
10834 * doc/install.texi (Configuration): Ditto.
10836 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10838 PR tree-optimization/66718
10839 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10840 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10842 PR tree-optimization/66718
10843 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10844 vectorizable_load, vectorizable_condition): Move vectype,
10845 nunits, ncopies computation after checking what kind of statement
10848 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10850 * target-insns.def (extv, extzv, insv): New targetm instruction
10852 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10854 * recog.c (simplify_while_replacing): Likewise.
10856 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10858 * target-insns.def (doloop_begin, doloop_end): New targetm
10859 instruction patterns.
10860 * loop-init.c: Include target.h.
10861 (pass_loop2::gate): Use the new targetm patterns instead of
10862 HAVE_*/gen_* interface.
10863 (pass_rtl_doloop::gate): Likewise.
10864 (pass_rtl_doloop::execute): Remove preprocessor condition.
10865 * hw-doloop.c: Build unconditionally.
10866 * loop-doloop.c: Likewise.
10867 (doloop_optimize): Use the new targetm patterns instead of
10868 HAVE_*/gen_* interface.
10869 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10870 * modulo-sched.c (doloop_register_get): Likewise.
10872 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10874 * target-insns.def (clear_cache): New targetm instruction pattern.
10875 * builtins.c (expand_builtin___clear_cache): Use it instead of
10876 HAVE_*/gen_* interface.
10878 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10880 * target-insns.def (allocate_stack, check_stack, probe_stack)
10881 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10882 New targetm instruction patterns.
10883 * explow.c (allocate_dynamic_stack_space): Use them instead of
10884 HAVE_*/gen_* interface.
10885 (emit_stack_probe): Likewise.
10886 (probe_stack_range): Likewise.
10887 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10889 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10891 * target-insns.def (stack_protect_set, stack_protect_test): New
10892 targetm instruction patterns.
10893 * cfgexpand.c (stack_protect_prologue): Use them instead of
10894 HAVE_*/gen_* interface.
10895 * function.c (stack_protect_epilogue): Likewise.
10897 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10899 * expr.h (gen_move_insn_uncast): Delete.
10900 * expr.c (gen_move_insn_uncast): Delete.
10902 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10904 * target-insns.def (restore_stack_block, restore_stack_function)
10905 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10906 (save_stack_nonlocal): New targetm instruction patterns.
10907 * builtins.c (expand_builtin_apply): Use them instead of
10908 HAVE_*/gen_* interface.
10909 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10911 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10913 * target-insns.def (trap): New targetm instruction pattern.
10914 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10916 * explow.c (allocate_dynamic_stack_space): Likewise.
10917 * ifcvt.c (find_if_header): Likewise.
10919 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10921 * target-insns.def (prefetch): New targetm instruction pattern.
10922 * tree-ssa-loop-prefetch.c: Include targeth.
10923 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10924 of HAVE_*/gen_* interface.
10925 * builtins.c (expand_builtin_prefetch): Likewise.
10926 * toplev.c (process_options): Likewise.
10928 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10930 * target-insns.def (untyped_call, untyped_return): New targetm
10931 instruction patterns.
10932 * builtins.c (expand_builtin_apply): Use them instead of
10933 HAVE_*/gen_* interface.
10934 (result_vector): Define unconditionally.
10936 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10938 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10939 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10940 (nonlocal_goto_receiver): New targetm instruction patterns.
10941 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10942 of HAVE_*/gen_* interface.
10943 (expand_builtin_setjmp_receiver): Likewise.
10944 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10945 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10947 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10949 * target.def: Add code_for_* hooks.
10950 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10951 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10952 * target-insns.def (casesi, tablejump): New targetm instruction
10954 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10955 (do_tablejump): Likewise.
10956 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10957 (expand_sjlj_dispatch_table): Likewise.
10958 * targhooks.c (default_case_values_threshold): Likewise.
10960 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10962 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10963 Use rtx_insn * instead of rtx.
10964 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10965 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10966 (nios2_call_tls_get_addr): Likewise.
10967 (nios2_emit_expensive_div): Likewise.
10968 (nios2_emit_move_sequence): Change return type to bool.
10969 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10970 Change return type to bool.
10972 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10975 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10977 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10980 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10981 of register_operand. Remove constraint.
10983 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10985 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10986 the first argument.
10988 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10990 * attribs.c (decl_attributes): Guard inform with the return value
10991 of the preceding warning.
10993 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10995 * doc/invoke.texi (moverride): Move to correct section.
10997 2015-07-03 Richard Biener <rguenther@suse.de>
10999 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
11001 (dt_operand::gen_gimple_expr): After valueizing operands
11002 re-canonicalize operand order for commutative tree codes.
11004 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
11007 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
11009 (__crc32w): Likewise.
11010 (__crc32d): Likewise.
11011 (__rdpmc): Likewise.
11012 (__rdtscp): Likewise.
11013 (_rdpmc): Likewise.
11014 (_rdtscp): Likewise.
11015 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
11018 2015-07-03 Richard Biener <rguenther@suse.de>
11020 * fold-const.c (fold_mathfn_compare): Remove.
11021 (fold_inf_compare): Likewise.
11022 (fold_comparison): Move floating point comparison simplifications...
11023 * match.pd: ... to patterns here. Introduce simple_comparisons
11024 operator list and use it for patterns formerly in fold_comparison.
11026 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
11028 PR tree-optimization/66119
11029 * toplev.c (process_options): Don't set up default values for
11030 the sra_max_scalarization_size_{speed,size} parameters.
11031 * tree-sra (analyze_all_variable_accesses): If no values
11032 have been set for the sra_max_scalarization_size_{speed,size}
11033 parameters, call get_move_ratio to get target defaults.
11035 2015-07-03 Richard Biener <rguenther@suse.de>
11037 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
11038 * match.pd: ... here.
11040 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
11043 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
11044 is not actually the default on FreeBSD.
11046 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11048 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
11050 (CMPGE_8HI): Likewise.
11051 (CMPGE_4SI): Likewise.
11052 (CMPGE_2DI): Likewise.
11053 (CMPGE_U16QI): Likewise.
11054 (CMPGE_U8HI): Likewise.
11055 (CMPGE_U4SI): Likewise.
11056 (CMPGE_U2DI): Likewise.
11057 (CMPLE_16QI): Likewise.
11058 (CMPLE_8HI): Likewise.
11059 (CMPLE_4SI): Likewise.
11060 (CMPLE_2DI): Likewise.
11061 (CMPLE_U16QI): Likewise.
11062 (CMPLE_U8HI): Likewise.
11063 (CMPLE_U4SI): Likewise.
11064 (CMPLE_U2DI): Likewise.
11065 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11066 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
11067 ALTIVEC_BUILTIN_VEC_CMPLE.
11068 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
11069 floating-point vector modes.
11070 (vector_nlt<mode>): New define_expand.
11071 (vector_nltu<mode>): Likewise.
11072 (vector_ngt<mode>): Likewise.
11073 (vector_ngtu<mode>): Likewise.
11075 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
11077 PR rtl-optimization/66706
11078 * combine.c (make_compound_operation): If an AND of SUBREG of
11079 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
11081 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
11083 * tree-pass.h (make_pass_ch_vect): New.
11084 * passes.def: Add pass_ch_vect just before pass_if_conversion.
11086 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
11087 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
11088 make_pass_ch_vect): New.
11089 (pass_ch): Extend ch_base.
11091 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
11092 (ch_base::copy_headers): ...here.
11094 2015-07-02 Richard Biener <rguenther@suse.de>
11096 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
11097 * fold-const.c (get_pointer_modulus_and_residue): Remove.
11098 (fold_binary_loc): Implement (T)ptr & CST in terms of
11099 get_pointer_alignment_1.
11100 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
11101 Make sure to build the alignment test on a SSA name without
11102 final alignment info valid only after the prologue.
11104 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
11106 * config/cris/cris.md ("epilogue"): Remove condition.
11107 ("prologue"): Ditto.
11109 2015-07-02 Richard Biener <rguenther@suse.de>
11111 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
11112 parameter to record a condition that is false.
11113 (record_conditions): When recording an extra NE_EXPR that is
11114 true also record a EQ_EXPR that is false.
11116 2015-07-02 Bin Cheng <bin.cheng@arm.com>
11118 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
11119 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
11120 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
11121 (set_iv, find_interesting_uses_address, add_candidate_1): New
11122 argument to alloc_iv.
11123 (find_interesting_uses_op, find_interesting_uses_cond): Don't
11124 duplicate struct iv.
11125 (free_loop_data): Don't free struct iv explicitly.
11126 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
11128 2015-07-01 DJ Delorie <dj@redhat.com>
11130 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
11132 (SUPPORTS_DISCRIMINATOR): Define.
11134 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
11137 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
11138 there are no CALLs in the same pattern.
11140 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11142 PR rtl-optimization/61047
11143 * rtlanal.c (get_initial_register_offset): New function.
11144 (rtx_addr_can_trap_p_1): Check offsets of stack references.
11146 2015-07-01 Richard Biener <rguenther@suse.de>
11148 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
11149 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
11150 ~X CMP C -> X CMP' ~C to ...
11151 * match.pd: ... patterns here.
11153 2015-07-01 Nick Clifton <nickc@redhat.com>
11155 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
11156 a 16-bit value into a 20-bit memory slot.
11158 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11160 * doc/sourcebuild.texi (AArch64-specific attributes): Document
11161 "aarch64_tiny", "aarch64_small", "aarch64_large",
11162 "aarch64_little_endian", "aarch64_big_endian".
11164 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11166 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
11167 Document "aarch64_small_fpic".
11169 2015-07-01 Jiong Wang <jiong.wang@arm.com>
11171 * configure.ac: Add check for aarch64 assembler -fpic relocation
11173 * configure: Regenerate.
11174 * config.in: Regenerate.
11175 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
11176 to -fPIC if not support of -fpic relocation modifier in assembler.
11178 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
11181 * rtl.c (classify_insn): Handle returns in PARALLELs.
11183 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
11185 PR middle-end/66633
11186 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
11187 to true if the function is nested and if not optimizing.
11188 (convert_local_omp_clauses): Initialize need_frame to true if the
11189 function contains nested functions and if not optimizing.
11191 2015-07-01 Richard Biener <rguenther@suse.de>
11193 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
11194 (X & Y) ^ Y -> ~X & Y transforms to ...
11195 * match.pd: ... here.
11197 2015-07-01 Richard Biener <rguenther@suse.de>
11199 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
11200 of converts to avoid uninteresting noise from the conversion
11201 simplifying patterns.
11203 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
11205 * config/c6x/c6x.c (try_rename_operands): Do not depend on
11206 gcc_assert evaluating its argument for side-effect.
11208 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
11211 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
11214 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11216 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
11217 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
11218 (hash_scc): Add this_ref_p and ref_p parameters and pass them
11219 to the inner DFS walk.
11221 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11223 * target-insns.def (jump): New targetm instruction pattern.
11224 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
11225 instead of gen_jump.
11226 (fix_up_crossing_landing_pad): Likewise.
11227 (add_labels_and_missing_jumps): Likewise.
11228 (fix_crossing_conditional_branches): Likewise.
11229 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11230 (force_nonfallthru_and_redirect): Likewise.
11231 * cse.c (cse_insn): Likewise.
11232 * expmed.c (expand_divmod): Likewise.
11233 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
11234 * haifa-sched.c (init_before_recovery): Likewise.
11235 (sched_create_recovery_edges): Likewise.
11236 * ifcvt.c (find_cond_trap): Likewise.
11237 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
11238 (expand_float, expand_fix): Likewise.
11239 * stmt.c (emit_jump): Likewise.
11241 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11243 * defaults.h (HAVE_load_multiple, gen_load_multiple)
11244 (HAVE_store_multiple, gen_store_multiple): Delete.
11245 * target-insns.def (load_multiple, store_multiple): New targetm
11246 instruction patterns.
11247 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
11248 of HAVE_*/gen_* interface.
11250 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11252 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
11253 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
11254 (gen_mem_signal_fence): Delete.
11255 * target-insns.def (mem_signal_fence, mem_thread_fence)
11256 (memory_barrier): New targetm instruction patterns.
11257 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
11259 (expand_mem_signal_fence): Likewise.
11261 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
11263 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
11264 * target-insns.def (epilogue, prologue, sibcall_prologue): New
11265 targetm instruction patterns.
11266 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
11268 * calls.c (expand_call): Likewise.
11269 * cfgrtl.c (cfg_layout_finalize): Likewise.
11270 * df-scan.c (df_get_entry_block_def_set): Likewise.
11271 (df_get_exit_block_use_set): Likewise.
11272 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
11273 * final.c (final_start_function): Likewise.
11274 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11275 (reposition_prologue_and_epilogue_notes): Likewise.
11276 * reorg.c (find_end_label): Likewise.
11277 * toplev.c (process_options): Likewise.
11279 2015-06-30 David Malcolm <dmalcolm@redhat.com>
11281 * typed-splay-tree.h: New file.
11283 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
11286 * lra-int.h (lra_substitute_pseudo): Add a parameter.
11287 (lra_substitute_pseudo_within_insn): Ditto.
11288 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
11290 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
11291 to lra_substitute_pseudo.
11292 * lra-lives.c (process_bb_lives): Add an argument to
11293 lra_substitute_pseudo_within_insn call.
11294 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
11295 argument to lra_substitute_pseudo and
11296 lra_substitute_pseudo_within_insn calls.
11297 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
11299 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11301 * configure: Regenerated.
11303 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
11305 * config.gcc: Support i[34567]86-*-elfiamcu target.
11306 * config/i386/iamcu.h: New.
11307 * config/i386/i386.opt: Add -miamcu.
11308 * doc/invoke.texi: Document -miamcu.
11309 * common/config/i386/i386-common.c (ix86_handle_option): Turn
11310 off x87/MMX/SSE/AVX codegen for -miamcu.
11311 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11312 __iamcu/__iamcu__ for -miamcu.
11313 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
11314 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
11315 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
11316 * config/i386/i386.c (ix86_option_override_internal): Ignore and
11317 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
11318 MCU by default. Default long double to 64-bit for Intel MCU.
11319 Turn on -freg-struct-return for Intel MCU. Issue an error when
11320 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
11322 (function_arg_advance_32): Pass value whose size is no larger
11323 than 8 bytes in registers for Intel MCU.
11324 (function_arg_32): Likewise.
11325 (ix86_return_in_memory): Return value whose size is no larger
11326 than 8 bytes in registers for Intel MCU.
11327 (iamcu_alignment): New function.
11328 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
11330 (ix86_local_alignment): Don't increase alignment for Intel MCU.
11331 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
11334 2015-06-30 Marek Polacek <polacek@redhat.com>
11336 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
11337 both operands of the resulting expression.
11339 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
11340 the final expression with the operand's type and then convert
11341 it to the type of the expression.
11343 2015-06-30 Richard Biener <rguenther@suse.de>
11345 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
11346 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
11347 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
11348 * match.pd: ... to patterns here.
11350 2015-06-30 Richard Biener <rguenther@suse.de>
11352 PR tree-optimization/66704
11353 * tree-vect-data-refs.c (vect_setup_realignment): Use
11354 make_ssa_name for non-SSA name source.
11356 2015-06-30 Jakub Jelinek <jakub@redhat.com>
11358 PR middle-end/66702
11359 * omp-low.c (simd_clone_adjust): Handle addressable linear
11360 or uniform parameters or non-gimple type uniform parameters.
11362 2015-06-30 Richard Biener <rguenther@suse.de>
11364 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
11365 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
11366 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
11367 * match.pd: ... here.
11368 Add a few cases of A - B -> A + (-B) when B "easily" negates.
11369 Move (x & y) | x -> x and friends before
11370 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
11372 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
11374 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
11375 -mfix-ut699 is not specified.
11376 (leon3_load): Rename into...
11377 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
11380 2015-06-30 Marek Polacek <polacek@redhat.com>
11382 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
11383 * match.pd: ... here.
11385 2015-06-30 Richard Biener <rguenther@suse.de>
11387 * target-insns.def (canonicalize_funcptr_for_compare): Add.
11388 * fold-const.c (build_range_check): Replace uses of
11389 HAVE_canonicalize_funcptr_for_compare.
11390 (fold_widened_comparison): Likewise.
11391 (fold_sign_changed_comparison): Likewise.
11392 * dojump.c: Include "target.h".
11393 (do_compare_and_jump): Replace uses of
11394 HAVE_canonicalize_funcptr_for_compare and
11395 gen_canonicalize_funcptr_for_compare.
11396 * expr.c (do_store_flag): Likewise.
11398 2015-06-30 Tom de Vries <tom@codesourcery.com>
11400 PR tree-optimization/66652
11401 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
11402 max_loop_iterations to determine if nit + 1 overflows.
11404 2015-06-30 Richard Biener <rguenther@suse.de>
11406 * tree-vrp.c (register_edge_assert_for_2): Also register
11407 asserts for dominating conversion results.
11409 2015-06-30 Bin Cheng <bin.cheng@arm.com>
11411 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
11412 field in struct iv.
11414 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
11417 * configure.ac: Fix filds and fildq test for 64-bit.
11418 * configure: Regenerated.
11420 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
11422 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
11423 (nvptx_reorg): Here. Keep the non-subreg pieces.
11425 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
11427 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
11428 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11430 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
11432 * config/i386/i386.md (*jcc_1): Use %! in asm template.
11433 Set attribute "length_nobnd" instead of "length".
11436 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
11438 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
11440 * config/nios2/nios2.c (nios2_delegitimize_address): Make
11441 assert less restrictive.
11443 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11446 * cgraphunit.c (cgraph_node::finalize_function): Do not call
11447 do_warn_unused_parameter.
11448 * function.c (do_warn_unused_parameter): Move from here.
11449 * function.h (do_warn_unused_parameter): Do not declare.
11451 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11454 * gcc.target/arm/armv-sync-comp-swap.c: New.
11455 * gcc.target/arm/armv-sync-op-acquire.c: New.
11456 * gcc.target/arm/armv-sync-op-full.c: New.
11457 * gcc.target/arm/armv-sync-op-release.c: New.
11459 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11462 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
11463 initial acquire barrier with final barrier.
11465 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11468 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
11469 initial acquire barrier with final barrier.
11471 2015-06-29 Richard Henderson <rth@redhat.com>
11473 * config/i386/constraints.md (Bf): New constraint.
11474 * config/i386/i386-c.c (ix86_target_macros): Define
11475 __GCC_ASM_FLAG_OUTPUTS__.
11476 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
11478 * doc/extend.texi (FlagOutputOperands): Document them.
11480 2015-06-29 Jiong Wang <jiong.wang@arm.com>
11482 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
11483 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
11485 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
11486 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
11487 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
11488 (aarch64_symbol_context): Ditto.
11489 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
11490 and use new pattern name.
11491 (aarch64_expand_mov_immediate): Ditto.
11492 (aarch64_print_operand): Ditto.
11493 (aarch64_classify_tls_symbol): Ditto.
11495 2015-06-29 Marek Polacek <polacek@redhat.com>
11496 Marc Glisse <marc.glisse@inria.fr>
11498 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
11499 * match.pd: ... pattern here.
11501 2015-06-29 Tom de Vries <tom@codesourcery.com>
11503 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
11504 function structure.
11506 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
11508 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
11509 feature description, split out the native option, add a link to
11510 the feature documentation, rearrange and slightly rewrite text.
11511 (Aarch64 options, -mcpu): Likewise.
11512 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
11513 +rdma implies Adv. SIMD.
11515 2015-06-29 Marek Polacek <polacek@redhat.com>
11518 * function.c (stack_protect_epilogue): Remove a cast to int.
11519 * doc/invoke.texi: Update -Wswitch-bool description.
11521 2015-06-29 Richard Biener <rguenther@suse.de>
11523 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11524 * fold-const.c (fold_binary_loc): Move &A - &B simplification
11525 via ptr_difference_const ...
11526 * match.pd: ... here.
11527 When matching (X ^ Y) == Y also match with swapped operands.
11529 2015-06-29 Richard Biener <rguenther@suse.de>
11531 * lto-streamer.h (LTO_major_version): Bump to 5.
11533 2015-06-29 Richard Biener <rguenther@suse.de>
11535 PR tree-optimization/66677
11536 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11537 STMT_VINFO_VEC_STMT clobbering less strict.
11539 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11541 PR middle-end/64130
11542 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11543 division, compute max and min when value ranges for dividend and
11544 divisor are available.
11546 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
11547 Sandra Loosemore <sandra@codesourcery.com>
11549 * regrename.h (regrename_do_replace): Change to return bool.
11550 * regrename.c (rename_chains): Check return value of
11551 regname_do_replace.
11552 (regrename_do_replace): Re-validate the modified insns and
11553 return bool status.
11554 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11555 Update to match rename_chains changes.
11556 * config/c6x/c6x.c (try_rename_operands): Assert that
11557 regrename_do_replace returns true.
11559 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
11561 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11562 operand 2 here. Use copy_addr_to_reg to copy non-index
11563 register operand 2 to a temporary.
11564 (<mode>_stx): Ditto for operand 1.
11565 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11566 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11567 (ix86_store_bounds): Ditto.
11569 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
11571 * print-tree.c (print_node) [TREE_VEC]: Print its length.
11573 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
11575 * gimple.c (gimple_call_set_fndecl): Remove.
11576 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11577 build1_loc directly instead of build_fold_addr_expr_loc.
11579 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11581 * hash-map.h (hash_map::traverse): Use the definition of the
11582 Key typedef rather than the typedef itself.
11584 2015-06-26 Martin Jambor <mjambor@suse.cz>
11587 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11588 NULL instead of calling dump_enabled_p.
11590 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11592 * config/aarch64/aarch64.opt: (override): New.
11593 * doc/invoke.texi (override): Document.
11594 * config/aarch64/aarch64.c (aarch64_flag_desc): New
11595 (aarch64_fusible_pairs): Likewise.
11596 (aarch64_tuning_flags): Likewise.
11597 (aarch64_tuning_override_function): Likewise.
11598 (aarch64_tuning_override_functions): Likewise.
11599 (aarch64_parse_one_option_token): Likewise.
11600 (aarch64_parse_boolean_options): Likewise.
11601 (aarch64_parse_fuse_string): Likewise.
11602 (aarch64_parse_tune_string): Likewise.
11603 (aarch64_parse_one_override_token): Likewise.
11604 (aarch64_parse_override_string): Likewise.
11605 (aarch64_override_options): Parse the -override string if it
11608 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11610 * config/aarch64/aarch64-protos.h (tune_params): Remove
11611 const from members.
11612 (aarch64_tune_params): Remove const, change to no longer be
11614 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11615 change to no longer be a pointer, initialize to generic_tunings.
11616 (aarch64_min_divisions_for_recip_mul): Change dereference of
11617 aarch64_tune_params to member access.
11618 (aarch64_reassociation_width): Likewise.
11619 (aarch64_rtx_mult_cost): Likewise.
11620 (aarch64_address_cost): Likewise.
11621 (aarch64_branch_cost): Likewise.
11622 (aarch64_rtx_costs): Likewise.
11623 (aarch64_register_move_cost): Likewise.
11624 (aarch64_memory_move_cost): Likewise.
11625 (aarch64_sched_issue_rate): Likewise.
11626 (aarch64_builtin_vectorization_cost): Likewise.
11627 (aarch64_override_options): Take a copy of the selected tuning
11628 struct in to aarch64_tune_params, rather than just setting
11629 a pointer, change dereferences of aarch64_tune_params to member
11631 (aarch64_override_options_after_change): Change dereferences of
11632 aarch64_tune_params to member access.
11633 (aarch64_macro_fusion_p): Likewise.
11634 (aarch_macro_fusion_pair_p): Likewise.
11635 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11637 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11639 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11640 (aarch64_tune_flags): Likewise.
11641 (AARCH64_TUNE_FMA_STEERING): Likewise.
11642 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11643 to AARCH64_FL_USE_FMA_STEERING_PASS.
11644 (cortex-a57.cortex-a53): Likewise.
11645 (cortex-a72): Use cortexa72_tunings.
11646 (cortex-a72.cortex-a53): Likewise.
11647 (exynos-m1): Likewise.
11648 * config/aarch64/aarch64-protos.h (tune_params): Add
11649 a field: extra_tuning_flags.
11650 * config/aarch64/aarch64-tuning-flags.def: New.
11651 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11652 (aarch64_extra_tuning_flags): Likewise.
11653 (aarch64_tune_params): Declare here.
11654 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11655 (cortexa53_tunings): Likewise.
11656 (cortexa57_tunings): Likewise.
11657 (thunderx_tunings): Likewise.
11658 (xgene1_tunings): Likewise.
11659 (cortexa72_tunings): New.
11660 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11661 (gate): Check against aarch64_tune_params.
11662 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11665 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11667 * config/aarch64/aarch64-fusion-pairs.def: New.
11668 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11669 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11670 aarch64_fusion_pairs.
11671 (AARCH64_FUSE_MOV_MOVK): Likewise.
11672 (AARCH64_FUSE_ADRP_ADD): Likewise.
11673 (AARCH64_FUSE_MOVK_MOVK): Likewise.
11674 (AARCH64_FUSE_ADRP_LDR): Likewise.
11675 (AARCH64_FUSE_CMP_BRANCH): Likewise.
11677 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11679 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11680 SYMBOL_SMALL_GOT_28K.
11681 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11682 relocation modifiers.
11683 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11684 (ldr_got_small_28k_<mode>): New.
11685 (ldr_got_small_28k_sidi): New.
11686 * config/aarch64/iterators.md (got_modifier): New mode iterator.
11687 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11688 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11689 SYMBOL_SMALL_GOT_28K.
11690 (aarch64_rtx_costs): Add costs for new instruction sequences.
11691 (initialize_aarch64_code_model): Initialize new model.
11692 (aarch64_classify_symbol): Recognize new model and new symbol classification.
11693 (aarch64_asm_preferred_eh_data_format): Support new model.
11694 (aarch64_load_symref_appropriately): Generate new instruction
11695 sequences for -fpic.
11696 (TARGET_USE_PSEUDO_PIC_REG): New definition.
11697 (aarch64_use_pseudo_pic_reg): New function.
11699 2015-06-26 Jiong Wang <jiong.wang@arm.com>
11701 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11702 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11703 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11704 (aarch64_expand_mov_immediate): Ditto.
11705 (aarch64_print_operand): Ditto.
11706 (aarch64_classify_symbol): Ditto.
11708 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
11710 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11712 2015-06-26 Bin Cheng <bin.cheng@arm.com>
11715 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11716 assertion failed. Remove assertion itself.
11718 2015-06-26 Richard Biener <rguenther@suse.de>
11720 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11721 and -A CMP CST -> A CMP -CST which is redundant with a pattern
11723 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11724 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11725 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11726 * match.pd: ... patterns here.
11728 2015-06-26 Marek Polacek <polacek@redhat.com>
11730 * match.pd ((x | y) & ~(x & y) -> x ^ y,
11731 (x | y) & (~x ^ y) -> x & y): New patterns.
11733 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
11735 * rtl.h (emit): Add an optional boolean parameter to control
11736 whether barriers are emitted.
11737 * emit-rtl.c (emit): Likewise.
11738 * gensupport.c (get_emit_function): Return null rather than "emit".
11739 * genemit.c (gen_emit_seq): Handle the null return value.
11740 Don't emit barriers after the final instruction in the sequence.
11741 * gentarget-def.c (main): Don't emit barriers after the instruction.
11743 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11745 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11746 TARGET_UNIFIED_ASM.
11748 2015-06-26 Richard Biener <rguenther@suse.de>
11750 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11752 2015-06-26 Richard Biener <rguenther@suse.de>
11754 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11755 irrespective on whether the inner operation has a single use
11756 of both off are constant.
11758 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
11759 Segher Boessenkool <segher@kernel.crashing.org>
11762 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11763 before doing PUT_MODE or PUT_CODE on operands to avoid
11764 in-place RTX modification.
11766 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11768 * gentarget-def.c (def_target_insn): Cast return of strtol to
11771 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11773 * gimple.h (gimple_call_set_fn): Move inline function.
11774 * gimple.c (gimple_call_set_fn): Relocate here.
11776 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
11780 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11781 the replacement insn will work.
11783 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
11785 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11788 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11790 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11791 * cgraph.h: Include ipa-ref.h and plugin-api.h.
11792 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11793 (symtab_node::address_can_be_compared_p): Move function.
11794 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11796 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11797 * auto-profile.c: Likewise.
11798 * bb-reorder.c: Likewise.
11799 * builtins.c: Likewise.
11800 * calls.c: Likewise.
11801 * cfgexpand.c: Likewise.
11802 * cgraphbuild.c: Likewise.
11803 * cgraphclones.c: Likewise.
11804 * cgraphunit.c: Likewise.
11805 * combine.c: Likewise.
11806 * coverage.c: Likewise.
11807 * data-streamer-in.c: Likewise.
11808 * data-streamer-out.c: Likewise.
11809 * data-streamer.c: Likewise.
11810 * dbxout.c: Likewise.
11811 * dwarf2out.c: Likewise.
11812 * except.c: Likewise.
11813 * expr.c: Likewise.
11814 * final.c: Likewise.
11815 * fold-const.c: Likewise.
11816 * ggc-page.c: Likewise.
11817 * gimple-fold.c: Likewise.
11818 * gimple-iterator.c: Likewise.
11819 * gimple-pretty-print.c: Likewise.
11820 * gimple-streamer-in.c: Likewise.
11821 * gimple-streamer-out.c: Likewise.
11822 * gimple.c: Likewise.
11823 * gimplify.c: Likewise.
11824 * ipa-chkp.c: Likewise.
11825 * ipa-comdats.c: Likewise.
11826 * ipa-cp.c: Likewise.
11827 * ipa-devirt.c: Likewise.
11828 * ipa-icf-gimple.c: Likewise.
11829 * ipa-icf.c: Likewise.
11830 * ipa-inline-analysis.c: Likewise.
11831 * ipa-inline-transform.c: Likewise.
11832 * ipa-inline.c: Likewise.
11833 * ipa-polymorphic-call.c: Likewise.
11834 * ipa-profile.c: Likewise.
11835 * ipa-prop.c: Likewise.
11836 * ipa-pure-const.c: Likewise.
11837 * ipa-ref.c: Likewise.
11838 * ipa-reference.c: Likewise.
11839 * ipa-split.c: Likewise.
11840 * ipa-utils.c: Likewise.
11841 * ipa-visibility.c: Likewise.
11843 * langhooks.c: Likewise.
11844 * lto-cgraph.c: Likewise.
11845 * lto-compress.c: Likewise.
11846 * lto-opts.c: Likewise.
11847 * lto-section-in.c: Likewise.
11848 * lto-section-out.c: Likewise.
11849 * lto-streamer-in.c: Likewise.
11850 * lto-streamer-out.c: Likewise.
11851 * lto-streamer.c: Likewise.
11852 * omp-low.c: Likewise.
11853 * opts-global.c: Likewise.
11854 * passes.c: Likewise.
11855 * predict.c: Likewise.
11856 * print-tree.c: Likewise.
11857 * profile.c: Likewise.
11859 * sanopt.c: Likewise.
11860 * stor-layout.c: Likewise.
11861 * symtab.c: Likewise.
11862 * toplev.c: Likewise.
11863 * trans-mem.c: Likewise.
11864 * tree-cfg.c: Likewise.
11865 * tree-chkp.c: Likewise.
11866 * tree-eh.c: Likewise.
11867 * tree-emutls.c: Likewise.
11868 * tree-inline.c: Likewise.
11869 * tree-nested.c: Likewise.
11870 * tree-parloops.c: Likewise.
11871 * tree-pretty-print.c: Likewise.
11872 * tree-profile.c: Likewise.
11873 * tree-sra.c: Likewise.
11874 * tree-ssa-alias.c: Likewise.
11875 * tree-ssa-live.c: Likewise.
11876 * tree-ssa-loop-ivcanon.c: Likewise.
11877 * tree-ssa-loop-ivopts.c: Likewise.
11878 * tree-ssa-pre.c: Likewise.
11879 * tree-ssa-sccvn.c: Likewise.
11880 * tree-ssa-strlen.c: Likewise.
11881 * tree-ssa-structalias.c: Likewise.
11882 * tree-streamer-in.c: Likewise.
11883 * tree-streamer-out.c: Likewise.
11884 * tree-streamer.c: Likewise.
11885 * tree-switch-conversion.c: Likewise.
11886 * tree-tailcall.c: Likewise.
11887 * tree-vect-data-refs.c: Likewise.
11888 * tree-vect-stmts.c: Likewise.
11889 * tree-vectorizer.c: Likewise.
11890 * tree.c: Likewise.
11891 * tsan.c: Likewise.
11892 * ubsan.c: Likewise.
11893 * value-prof.c: Likewise.
11894 * varasm.c: Likewise.
11895 * varpool.c: Likewise.
11896 * config/arm/arm.c: Likewise.
11897 * config/bfin/bfin.c: Likewise.
11898 * config/c6x/c6x.c: Likewise.
11899 * config/cris/cris.c: Likewise.
11900 * config/darwin-c.c: Likewise.
11901 * config/darwin.c: Likewise.
11902 * config/i386/i386.c: Likewise.
11903 * config/i386/winnt.c: Likewise.
11904 * config/microblaze/microblaze.c: Likewise.
11905 * config/mips/mips.c: Likewise.
11906 * config/rs6000/rs6000.c: Likewise.
11907 * config/rx/rx.c: Likewise.
11908 * config/s390/s390.c: Likewise.
11909 * config/tilegx/mul-tables.c: Likewise.
11911 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11913 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11914 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11915 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11916 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11917 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11918 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11919 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11920 config/microblaze/microblaze.c, config/mips/mips.c,
11921 config/mmix/mmix.c, config/mn10300/mn10300.c,
11922 config/moxie/moxie.c, config/msp430/msp430.c,
11923 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11924 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11925 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11926 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11927 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11928 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11929 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11930 target-def.h include.
11931 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11933 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11935 * Makefile.in (TARGET_DEF): Add target-insns.def.
11936 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11937 (build/gentarget-def.o): New rule.
11938 (genprogrtl): Add target-def.
11939 * target-insns.def, gentarget-def.c: New files.
11940 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11941 based on the contents of target-insns.def.
11942 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11943 (HAVE_return, gen_return): Delete.
11944 * target-def.h: Include insn-target-def.h.
11945 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11946 instead of direct calls. Rely on them to do the appropriate assertions.
11947 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11948 (convert_jumps_to_returns): Use targetm interface instead of
11950 (thread_prologue_and_epilogue_insns): Likewise.
11951 * reorg.c (find_end_label, dbr_schedule): Likewise.
11952 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11953 * shrink-wrap.c (convert_to_simple_return): Likewise.
11954 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11956 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11958 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11959 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11960 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11961 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11962 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11963 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11964 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11965 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11966 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11967 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11968 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11969 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11970 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11971 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11972 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11973 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11976 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11978 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11979 (unbounded_int_hashmap_traits::key_type): Likewise.
11980 * hash-map.h (hash_map): Get the key type from the traits.
11981 * hash-traits.h (default_hash_traits): By default, inherit from the
11982 template parameter.
11983 * alias.c (alias_set_traits): Delete.
11984 (alias_set_entry_d::children): Use alias_set_hash as the first
11985 template parameter.
11986 (record_alias_subset): Update accordingly.
11987 * except.c (tree_hash_traits): Delete.
11988 (type_to_runtime_map): Use tree_hash as the first template parameter.
11989 (init_eh): Update accordingly.
11990 * genmatch.c (capture_id_map_hasher): Delete.
11991 (cid_map_t): Use nofree_string_hash as first template parameter.
11992 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11993 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11994 Use symbol_compare_hash as the first template parameter in
11995 subdivide_hash_map.
11996 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11997 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11998 template parameter.
11999 * passes.c (pass_registry_hasher): Delete.
12000 (name_to_pass_map): Use nofree_string_hash as the first template
12002 (register_pass_name): Update accordingly.
12003 * sanopt.c (sanopt_tree_map_traits): Delete.
12004 (sanopt_tree_triplet_map_traits): Delete.
12005 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
12006 template parameter.
12007 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
12008 the first template parameter.
12009 * sese.c (rename_map_hasher): Delete.
12010 (rename_map_type): Use tree_ssa_name_hash as the first template
12012 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
12013 (function_summary::m_map): Use map_hash as the first template
12015 (function_summary::release): Update accordingly.
12016 * tree-if-conv.c (phi_args_hash_traits): Delete.
12017 (predicate_scalar_phi): Use tree_operand_hash as the first template
12018 parameter to phi_arg_map.
12019 * tree-inline.h (dependence_hasher): Delete.
12020 (copy_body_data::dependence_map): Use dependence_hash as the first
12021 template parameter.
12022 * tree-inline.c (remap_dependence_clique): Update accordingly.
12023 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
12024 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
12026 (addr_stridxptr): Update accordingly.
12027 * value-prof.c (profile_id_traits): Delete.
12028 (cgraph_node_map): Use profile_id_hash as the first template
12030 (init_node_map): Update accordingly.
12031 * config/alpha/alpha.c (string_traits): Delete.
12032 (machine_function::links): Use nofree_string_hash as the first
12033 template parameter.
12034 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
12035 * config/m32c/m32c.c (pragma_traits): Delete.
12036 (pragma_htab): Use nofree_string_hash as the first template parameter.
12037 (m32c_note_pragma_address): Update accordingly.
12038 * config/mep/mep.c (pragma_traits): Delete.
12039 (pragma_htab): Use nofree_string_hash as the first template parameter.
12040 (mep_note_pragma_flag): Update accordingly.
12041 * config/mips/mips.c (mips16_flip_traits): Delete.
12042 (mflip_mips16_htab): Use nofree_string_hash as the first template
12044 (mflip_mips16_use_mips16_p): Update accordingly.
12045 (local_alias_traits): Delete.
12046 (mips16_local_aliases): Use nofree_string_hash as the first template
12048 (mips16_local_alias): Update accordingly.
12050 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12052 * hash-map-traits.h (default_hashmap_traits): Delete.
12054 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12056 * hash-map-traits.h (unbounded_hashmap_traits): New class.
12057 (unbounded_int_hashmap_traits): Likewise.
12058 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
12060 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12062 * ipa-icf.h (symbol_compare_hash): New class.
12063 (symbol_compare_hashmap_traits): Use it.
12064 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
12065 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
12066 (mem_alloc_description::reverse_mem_map_t): Remove redundant
12067 default_hashmap_traits.
12068 * sanopt.c (sanopt_tree_triplet_hash): New class.
12069 (sanopt_tree_triplet_map_traits): Use it.
12071 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12073 * gengtype-parse.c (require_template_declaration): Allow '+' in
12074 template parameters. Consolidate cases.
12075 * hash-traits.h (int_hash): New class.
12076 * alias.c (alias_set_hash): New structure.
12077 (alias_set_traits): Use it.
12078 * symbol-summary.h (function_summary::map_hash): New class.
12079 (function_summary::summary_hashmap_traits): Use it.
12080 * tree-inline.h (dependence_hash): New class.
12081 (dependence_hasher): Use it.
12082 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
12083 * value-prof.c (profile_id_hash): New class.
12084 (profile_id_traits): Use it.
12086 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12088 * config/mips/mips.c (mips16_flip_traits): Use it.
12089 (local_alias_traits, mips16_local_aliases): Convert from a map of
12090 rtxes to a map of symbol names.
12091 (mips16_local_alias): Update accordingly.
12093 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12095 * hash-traits.h (string_hash, nofree_string_hash): New classes.
12096 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
12097 * passes.c (pass_registry_hasher): Likewise.
12098 * config/alpha/alpha.c (string_traits): Likewise.
12099 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
12100 * config/m32c/m32c.c (pragma_traits): Likewise.
12101 * config/mep/mep.c (pragma_traits): Likewise.
12103 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12105 * tree-hash-traits.h (tree_hash): New class.
12106 * except.c: Include tree-hash-traits.h.
12107 (tree_hash_traits): Use tree_hash.
12109 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12111 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
12112 * sese.c: Include tree-hash-traits.h.
12113 (rename_map_hasher): Use tree_ssa_name_hasher.
12115 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12117 * tree-hash-traits.h (tree_decl_hash): New class.
12118 * tree-ssa-strlen.c: Include tree-hash-traits.h.
12119 (stridxlist_hash_traits): Use tree_decl_hash.
12121 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12123 * tree-hash-traits.h: New file.
12124 (tree_operand_hash): New class.
12125 * sanopt.c: Include tree-hash-traits.h.
12126 (sanopt_tree_map_traits): Use tree_operand_hash.
12127 * tree-if-conv.c: Include tree-hash-traits.h.
12128 (phi_args_hash_traits): Use tree_operand_hash.
12129 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
12130 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
12132 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12134 * hash-map-traits.h: Include hash-traits.h.
12135 (simple_hashmap_traits): New class.
12136 * mem-stats.h (hash_map): Change the default traits to
12137 simple_hashmap_traits<default_hash_traits<Key> >.
12139 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12141 * hash-table.h: Update comments.
12143 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12145 * hash-traits.h (default_hash_traits): New structure.
12146 * hash-set.h (default_hashset_traits): Delete.
12147 (hash_set): Use default_hash_traits<Key> instead of
12148 default_hashset_traits. Delete hash_entry type and use Key directly.
12149 * ipa-devirt.c (pair_traits): Delete.
12150 (default_hash_traits <type_pair>): Override.
12151 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
12152 (odr_types_equivalent_p, add_type_duplicate): Likewise.
12154 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12156 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
12158 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12160 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
12161 (has_is_empty, is_empty_helper): Delete.
12162 (has_mark_deleted, mark_deleted_helper): Delete.
12163 (has_mark_empty, mark_empty_helper): Delete.
12164 (hash_table::is_deleted): Call the Descriptor unconditionally.
12165 (hash_table::is_empty): Likewise.
12166 (hash_table::mark_deleted): Likewise.
12167 (hash_table::mark_empty): Likewise.
12169 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12171 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
12172 redundant typedefs and members.
12173 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
12174 redundant typedefs.
12175 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
12176 * ipa-devirt.c (odr_name_hasher): Likewise.
12177 (polymorphic_call_target_hasher): Likewise.
12178 * ira-costs.c (cost_classes_hasher): Likewise.
12179 * statistics.c (stats_counter_hasher): Likewise.
12180 * trans-mem.c (log_entry_hasher): Likewise.
12181 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12182 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
12183 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
12184 * var-tracking.c (variable_hasher): Likewise.
12185 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
12186 Remove redundant typedefs and members.
12188 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12190 * hash-traits.h (ggc_cache_hasher): Rename to...
12191 (ggc_cache_remove): ...this and remove typedefs.
12192 (ggc_cache_ptr_hash): New class.
12193 * hash-table.h: Update commentary.
12194 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
12195 rather than ggc_cache_hasher.
12196 (const_wide_int_hasher, reg_attr_hasher): Likewise.
12197 (const_double_hasher, const_fixed_hasher): Likewise.
12198 * function.c (insn_cache_hasher): Likewise.
12199 * trans-mem.c (tm_wrapper_hasher): Likewise.
12200 * tree.h (tree_decl_map_cache_hasher): Likewise.
12201 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
12202 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
12203 * ubsan.c (tree_type_map_cache_hasher): Likewise.
12204 * varasm.c (tm_clone_hasher): Likewise.
12205 * config/i386/i386.c (dllimport_hasher): Likewise.
12206 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
12207 (tree_hasher): Likewise.
12209 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12211 * hash-traits.h (ggc_hasher): Rename to...
12212 (ggc_remover): ...this and remove typedefs.
12213 (ggc_cache_hasher): Update accordingly. Add typedefs.
12214 (ggc_ptr_hash): New class.
12215 * hash-table.h: Update comment.
12216 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
12218 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
12219 (tree_descriptor_hasher): Likewise.
12220 * cgraph.c (function_version_hasher): Likewise.
12221 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
12222 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
12223 (dw_loc_list_hasher, addr_hasher): Likewise.
12224 * function.h (used_type_hasher): Likewise.
12225 * function.c (temp_address_hasher): Likewise.
12226 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
12227 * libfuncs.h (libfunc_hasher): Likewise.
12228 * lto-streamer.h (decl_state_hasher): Likewise.
12229 * optabs.c (libfunc_decl_hasher): Likewise.
12230 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
12231 * varasm.c (section_hasher, object_block_hasher): Likewise.
12232 (const_rtx_desc_hasher): Likewise.
12233 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
12234 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
12236 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12238 * hash-traits.h (free_ptr_hash): New class.
12239 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
12240 rather than typed_free_remove. Remove redudant typedefs.
12241 (external_ref_hasher): Likewise.
12242 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
12243 (ehspec_hasher): Likewise.
12244 * ggc-common.c (saving_hasher): Likewise.
12245 * gimplify.c (gimplify_hasher): Likewise.
12246 * haifa-sched.c (delay_i2_hasher): Likewise.
12247 * loop-invariant.c (invariant_expr_hasher): Likewise.
12248 * loop-iv.c (biv_entry_hasher): Likewise.
12249 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
12250 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
12251 * tree-cfg.c (locus_discrim_hasher): Likewise.
12252 * tree-eh.c (finally_tree_hasher): Likewise.
12253 * tree-into-ssa.c (var_info_hasher): Likewise.
12254 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
12255 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
12256 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
12257 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
12258 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
12259 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
12260 (shared_bitmap_hasher): Likewise.
12261 * tree-ssa-threadupdate.c (redirection_data): Likewise.
12262 * tree-vectorizer.h (peel_info_hasher): Likewise.
12263 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
12264 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
12266 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12268 * hash-table.h: Update comments.
12269 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
12270 (nofree_ptr_hash): New class.
12271 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
12272 than typed_noop_remove. Remove redudant typedefs.
12273 * attribs.c (attribute_hasher): Likewise.
12274 * cfg.c (bb_copy_hasher): Likewise.
12275 * cselib.c (cselib_hasher): Likewise.
12276 * dse.c (invariant_group_base_hasher): Likewise.
12277 * dwarf2cfi.c (trace_info_hasher): Likewise.
12278 * dwarf2out.c (macinfo_entry_hasher): Likewise.
12279 (comdat_type_hasher, loc_list_hasher): Likewise.
12280 * gcse.c (pre_ldst_expr_hasher): Likewise.
12281 * genmatch.c (id_base): Likewise.
12282 * genrecog.c (test_pattern_hasher): Likewise.
12283 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
12284 * haifa-sched.c (delay_i1_hasher): Likewise.
12285 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
12286 * ipa-icf.h (congruence_class_group_hash): Likewise.
12287 * ipa-profile.c (histogram_hash): Likewise.
12288 * ira-color.c (allocno_hard_regs_hasher): Likewise.
12289 * lto-streamer.h (string_slot_hasher): Likewise.
12290 * lto-streamer.c (tree_entry_hasher): Likewise.
12291 * plugin.c (event_hasher): Likewise.
12292 * postreload-gcse.c (expr_hasher): Likewise.
12293 * store-motion.c (st_expr_hasher): Likewise.
12294 * tree-sra.c (uid_decl_hasher): Likewise.
12295 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
12296 (ssa_name_var_hash): Likewise.
12297 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
12298 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
12299 * tree-ssa-pre.c (pre_expr_d): Likewise.
12300 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
12301 * vtable-verify.h (registration_hasher): Likewise.
12302 * vtable-verify.c (vtbl_map_hasher): Likewise.
12303 * config/arm/arm.c (libcall_hasher): Likewise.
12304 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
12305 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
12306 * config/sol2.c (comdat_entry_hasher): Likewise.
12307 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
12308 (print_fold_checksum, fold_checksum_tree): Likewise.
12309 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
12310 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
12311 (fold_build_call_array_loc): Likewise.
12312 * tree-ssa-ccp.c (gimple_htab): Likewise.
12313 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
12314 rather than pointer_type.
12316 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12318 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
12319 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
12321 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12323 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
12324 (ggc_hasher::ggc_mx): Likewise.
12325 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
12326 that duplicate ggc_hasher ones.
12328 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12330 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
12331 (gt_cleare_cache): Check here for deleted and empty entries.
12332 Replace handle_cache_entry with a call to keep_cache_entry.
12333 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
12334 (ggc_cache_hasher::keep_cache_entry): New function.
12335 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
12336 (tm_wrapper_hasher::keep_cache_entry): New function.
12337 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
12338 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12339 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
12340 (type_cache_hasher::keep_cache_entry): New function.
12341 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
12342 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12343 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
12344 (tree_type_map_cache_hasher::keep_cache_entry): New function.
12345 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
12346 (tm_clone_hasher::keep_cache_entry): New function.
12347 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
12348 (dllimport_hasher::keep_cache_entry): New function.
12350 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12352 * hash-table.h: Include hash-traits.h.
12353 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
12354 (ggc_cache_hasher): Move to...
12355 * hash-traits.h: ...this new file.
12357 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12359 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
12360 struct cl_optimization.
12361 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
12362 * tree.c (make_node_stat): Allocate cl_optimization struct.
12363 (copy_node_stat): Allocate and copy cl_optimization struct.
12365 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12367 * function.h (struct incoming_args): Move struct.
12368 (pass_by_reference, reference_callee_copied): Remove prototypes.
12369 * emit-rtl.h (struct incoming_args): Relocate struct here.
12370 * calls.h (pass_by_reference, reference_callee_copied): Relocate
12372 * function.c (pass_by_reference, reference_callee_copied): Move.
12373 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
12374 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
12375 * ipa-chkp.c: Include calls.h.
12377 2015-06-25 Andrew Macleod <amacleod@redhat.com>
12379 * alias.h (alias_set_type): Move typedef.
12380 * coretypes.h (alias_set_type): Relocate typedef here.
12381 * rtl.h: Don't include alias.h.
12383 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
12385 * cgraph.h (cgraph_rtl_info): Move to rtl.h
12386 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
12388 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
12389 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
12391 * calls.c: Include hard-reg-set.h before rtl.h.
12394 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12395 Vladimir Makarov <vmakarov@redhat.com>
12397 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
12400 2015-06-25 Richard Biener <rguenther@suse.de>
12402 * fold-const.c (fold_binary_loc): Move simplification of
12403 (X <<>> C1) & C2 ...
12404 * match.pd: ... here.
12406 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
12408 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
12410 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
12412 * match.pd: Add patterns for vec_conds between 1 and 0.
12414 2015-06-25 Richard Biener <rguenther@suse.de>
12416 * tree-vect-stmts.c (vectorizable_conversion): Do not set
12417 STMT_VINFO_VEC_STMT for SLP.
12418 (vectorizable_store): Likewise.
12419 (vectorizable_load): Likewise.
12420 (vect_transform_stmt): Catch SLP vectorization clobbering
12421 STMT_VINFO_VEC_STMT.
12423 2015-06-25 Richard Biener <rguenther@suse.de>
12425 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
12427 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
12428 cleanup resulting dead code and parameters.
12429 (vect_transform_slp_perm_load): Adjust.
12431 2015-06-25 Nick Clifton <nickc@redhat.com>
12433 * config/bfin/bfin.c (bfin_expand_prologue): Set
12434 current_function_static_stack_size if flag_stack_usage_info is set.
12435 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12436 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
12437 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12438 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
12440 2015-06-25 Tom de Vries <tom@codesourcery.com>
12442 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
12443 comment that the generated IV is unsigned.
12445 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12448 * config/arm/arm.c (arm_dbx_register_number): Return
12449 DWARF_FRAME_REGISTERS by default.
12451 2015-06-25 Tom de Vries <tom@codesourcery.com>
12453 * dominance.c (calculate_dominance_info): Fix verify_dominators call
12454 argument. Call verify_dominator when reusing dominator info.
12456 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
12459 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
12460 an additional element of the unspec vector. Modify indices
12462 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
12463 * config/sh/sh.c (prepare_move_operands): Pass incremented
12464 const_int to gen_GOTaddr2picreg.
12465 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
12467 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12469 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
12470 Condition on TARGET_FLOAT.
12472 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12474 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
12477 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
12479 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
12481 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
12482 aarch64_err_no_fpadvsimd.
12484 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
12485 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
12486 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
12487 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
12488 Turn error into assert, test TARGET_FLOAT.
12489 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
12492 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
12495 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
12497 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12499 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
12501 2015-06-24 Renlin Li <renlin.li@arm.com>
12503 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
12504 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
12506 2015-06-24 Richard Biener <rguenther@suse.de>
12508 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
12510 (lower_opt_convert): Support lowering of conditional view_convert.
12511 (parser::parse_operation): Likewise.
12512 (parser::parse_for): Likewise.
12514 2015-06-24 Renlin Li <renlin.li@arm.com>
12516 * varasm.c (emit_local): Use unsigned int for align variable.
12518 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12521 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12522 for negative numbers.
12524 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12526 PR rtl-optimization/66306
12527 * reload.c (find_reloads): Swap the match_dup info for
12528 commutative operands.
12530 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12532 * config/s390/vx-builtins.md
12533 ("vec_scatter_element<mode>_<non_vec_int>")
12534 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12535 attribute with bhfgq.
12537 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12539 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12541 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12543 * config/s390/s390-builtin-types.def: Add flag to indicate the
12544 options under which the function type is needed.
12545 * config/s390/s390-builtins.def: Add flag to indicate the options
12546 under which the builtin is enabled.
12547 * config/s390/s390-builtins.h: Add flags parameter to macro
12549 (bflags_for_builtin): New function.
12550 (flags_for_builtin): Renamed to ...
12551 (opflags_for_builtin): ... this.
12552 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12553 flags_for_builtin to bflags_for_builtin and
12554 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12555 * config/s390/s390.c: Add initialization of bflags_builtin and
12556 opflags_builtin arrays.
12557 Remove code for flags_builtin.
12558 (s390_init_builtins): Only create builtin function types if one of
12559 their flags is active.
12560 Only create builtins if all of their flags are active.
12561 (s390_expand_builtin): Rename flags_for_builtin to
12562 opflags_for_builtin.
12564 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12566 * config/s390/vecintrin.h: Remove internal builtins.
12568 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12570 * config/s390/s390.c (s390_secondary_reload): Fix check for
12571 GENERAL_REGS register class.
12573 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12575 * config/s390/s390.c (s390_support_vector_misalignment): Call
12576 default implementation for !TARGET_VX.
12578 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12580 * config/s390/s390.c (s390_legitimate_constant_p): Add
12583 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12585 * config/s390/s390.c (s390_vector_abi): New variable definition.
12586 (s390_check_type_for_vector_abi): New function.
12587 (TARGET_ASM_FILE_END): New macro definition.
12588 (s390_asm_file_end): New function.
12589 (s390_function_arg): Call s390_check_type_for_vector_abi.
12590 (s390_gimplify_va_arg): Likewise.
12591 * configure: Regenerate.
12592 * configure.ac: Check for .gnu_attribute Binutils feature.
12594 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
12597 * config/bfin/bfin.c (hwloop_optimize): Initialize
12598 JUMP_LABEL for newly created jump.
12600 2015-06-23 Tristan Gingold <gingold@adacore.com>
12602 * collect-utils.c (collect_wait): Unlink the response file here
12604 (do_wait): ...here.
12605 (utils_cleanup): ...and here.
12607 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
12609 * df-scan.c: Don't include target-def.h.
12610 * targhooks.c: Likewise.
12611 * config/arm/arm-c.c: Likewise.
12612 * config/i386/i386-c.c: Likewise.
12613 * config/nds32/nds32-cost.c: Likewise.
12614 * config/nds32/nds32-fp-as-gp.c: Likewise.
12615 * config/nds32/nds32-intrinsic.c: Likewise.
12616 * config/nds32/nds32-isr.c: Likewise.
12617 * config/nds32/nds32-md-auxiliary.c: Likewise.
12618 * config/nds32/nds32-memory-manipulation.c: Likewise.
12619 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12620 * config/nds32/nds32-predicates.c: Likewise.
12622 2015-06-23 Richard Biener <rguenther@suse.de>
12624 PR tree-optimization/66636
12625 * tree-vect-stmts.c (vectorizable_store): Properly compute the
12626 def type for further defs for strided stores.
12628 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
12630 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12631 conditional selects.
12632 (setcc_int<mode>, setcc_float<mode>): Reformat.
12634 2015-06-23 Marek Polacek <polacek@redhat.com>
12636 * match.pd ((x + y) - (x | y) -> x & y,
12637 (x + y) - (x & y) -> x | y): New patterns.
12639 2015-06-23 Ludovic Courtès <ludo@gnu.org>
12642 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12643 '-dynamic-linker' within %{!shared: ...}.
12645 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
12648 * config/i386/predicates.md (addsub_vm_operator): New predicate.
12649 (addsub_vs_operator): Ditto.
12650 (addsub_vs_parallel): Ditto.
12651 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12652 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12653 Put minus RTX before plus and adjust vec_merge selector.
12654 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12655 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12656 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12657 (addsub vec_merge splitters): New combiner splitters.
12658 (addsub vec_select/vec_concat splitters): Ditto.
12660 2015-06-23 Bin Cheng <bin.cheng@arm.com>
12662 PR tree-optimization/66449
12663 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12664 POINTER_PLUS_EXPR for pointers.
12666 2015-06-23 Alan Modra <amodra@gmail.com>
12668 * rtlanal.c (commutative_operand_precedence): Correct comments.
12669 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12670 declaration. Return an int. Distinguish REG,REG return from
12672 (struct simplify_plus_minus_op_data): Make local to function.
12673 (simplify_plus_minus): Don't set canonicalized if merely sorting
12674 registers. Avoid packing ops if nothing changes. White space fixes.
12676 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
12678 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12679 -fdump-ada-spec is passed but not if -fsyntax-only is.
12681 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
12684 * lra-lives.c (process_bb_lives): Check insn copying the same
12685 reload pseudo and don't create a copy for it.
12687 2015-06-22 Tom de Vries <tom@codesourcery.com>
12689 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12692 2015-06-22 Tom de Vries <tom@codesourcery.com>
12694 * builtins.def (DEF_GOMP_BUILTIN): Test
12695 'flag_tree_parallelize_loops > 1' instead of
12696 'flag_tree_parallelize_loops'. Test flag_cilkplus.
12698 2015-06-22 Tom de Vries <tom@codesourcery.com>
12700 * dominance.c (calculate_dominance_info): Verify dominators if
12703 2015-06-22 Marek Polacek <polacek@redhat.com>
12705 * match.pd ((x ^ y) ^ (x | y) -> x & y,
12706 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12707 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12708 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12710 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
12713 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12714 cost of embedded comparison.
12716 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12719 * config/rs6000/predicates.md (altivec_register_operand): Permit
12720 virtual stack registers.
12721 (vsx_register_operand): Likewise.
12722 (vfloat_operand): Likewise.
12723 (vint_operand): Likewise.
12724 (vlogical_operand): Likewise.
12726 2015-06-22 Richard Biener <rguenther@suse.de>
12728 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12729 and single_scalar_iteration_cost members.
12730 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12731 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12732 (vect_get_single_scalar_iteration_cost): Remove.
12733 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12734 Use LOOP_VINFO_SCALAR_ITERATION_COST.
12735 * tree-vect-loop.c (destroy_loop_vec_info): Free
12737 (vect_get_single_scalar_iteration_cost): Compute result into
12738 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12739 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
12740 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12741 (vect_estimate_min_profitable_iters): Use them.
12743 2015-06-22 Christian Bruel <christian.bruel@st.com>
12746 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12747 (TARGET_INSERT_ATTRIBUTES): Define.
12748 (thumb_flipper): New var.
12749 * config/arm/arm.opt (-mflip-thumb): New switch.
12751 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12752 Martin Liska <mliska@suse.cz>
12755 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12756 construction of arg_types.
12757 (sem_function::sem_function): Likewise.
12758 (sem_function::~sem_function): Remove destruction of arg_types.
12759 (sem_function::compatible_parm_types_p): New function.
12760 (sem_function::equals_wpa): Reorg matching of return values
12761 and parameter types.
12762 (sem_function::equals_private): Reorg mathcing of argument types.
12763 (sem_function::parse_tree_args): Remove.
12764 * ipa-icf.h (init_wpa): Do not call it.
12765 (parse_tree_args): Remove.
12766 (compatible_parm_types_p): Declare.
12767 (result_type): Remove.
12768 (arg_types): Remove.
12770 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
12773 * ipa-polymorphic-call.c
12774 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12775 initializing alias oracle; fix formating; set base_alias_set if it
12778 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
12780 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12781 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12782 (find_inc): Likewise.
12783 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12785 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12786 * df-scan.c (df_swap_refs): Remove.
12787 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12788 * dominance.c (link_roots): Use std::swap instead of manually swapping.
12789 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12790 * fold-const.c (fold_relational_const): Likewise.
12791 * genattrtab.c (simplify_test_exp): Likewise.
12792 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12793 gimple_simplify): Likewise.
12794 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12795 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12796 * ipa-devirt.c (add_type_duplicate): Likewise.
12797 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12798 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12799 * lra.c (lra_create_copy): Likewise.
12800 * lto-streamer-out.c (DFS::DFS): Likewise.
12801 * modulo-sched.c (get_sched_window): Likewise.
12802 * omega.c (omega_pretty_print_problem): Likewise.
12803 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12804 * reload1.c (reloads_unique_chain_p): Likewise.
12805 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12806 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12808 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12810 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12811 predicate_mem_writes): Likewise.
12812 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12813 * tree-predcom.c (combine_chains): Likewise.
12814 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12815 refs_may_alias_p_1): Likewise.
12816 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12817 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12818 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12819 number_of_iterations_cond): Likewise.
12820 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12821 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12822 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12823 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12824 * tree-vrp.c (extract_range_from_binary_expr_1,
12825 extract_range_from_unary_expr_1): Likewise.
12827 2015-06-20 Marek Polacek <polacek@redhat.com>
12829 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12831 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12834 * config/sh/sh.c (prepare_move_operands): Replace subreg
12835 index term with R0 for base and index addressing.
12837 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12839 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12841 (movsf_aarch64): Change condition from register_operand to
12842 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12843 load1. Change type for alternative 7 to store1.
12844 (movdf_aarch64): Likewise.
12846 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12848 * config/vax/vax.md: Adjust sign/zero extend patterns to
12849 handle SUBREGs in operands[1].
12851 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12853 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12854 of manually swapping.
12855 (expand_vec_perm_interleave2): Likewise.
12857 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12859 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12860 reuse bounds created for abnormal ssa names.
12862 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12864 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12865 (allocate_stack_<mode>): ... this, and add :P on both
12866 match_operand and unspec.
12867 (allocate_stack): New expander.
12869 2015-06-19 Christian Bruel <christian.bruel@st.com>
12873 * config/arm/arm.c (arm_set_current_function): Handle
12874 explicit default options.
12876 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12878 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12879 (zero-extended cmove with mem peephole2): New pattern.
12880 (cmove with mem peephole2): Merge patterns.
12882 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12884 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12886 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12888 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12889 * config/mips/mips.md (*madd4<mode>): Ditto.
12890 (*nmadd3<mode>) Ditto.
12891 (*nmadd4<mode>_fastmath): Ditto.
12892 (*nmadd3<mode>_fastmath): Ditto.
12893 (*nmsub4<mode>): Ditto.
12894 (*nmsub3<mode>): Ditto.
12895 (*nmsub4<mode>_fastmath): Ditto.
12896 (*nmsub3<mode>_fastmath): Ditto.
12898 2015-06-18 Michael Matz <matz@suse.de>
12900 PR middle-end/66253
12901 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12902 grouped strided stores.
12903 (vectorizable_load): Don't use the DR from first_stmt in
12904 the non-SLP grouped strided case.
12906 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12909 * function.c (assign_bounds): Add arguments assign_regs,
12910 assign_special, assign_bt.
12911 (assign_parms): For vararg functions handle bounds in BT
12912 and special slots after incoming vararg bounds.
12914 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12916 PR middle-end/66568
12917 * cfgexpand.c (expand_return): Handle missing bounds.
12918 (expand_gimple_stmt_1): Likewise.
12919 * tree-chkp.c (chkp_expand_zero_bounds): New.
12920 * tree-chkp.h (chkp_expand_zero_bounds): New.
12922 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12924 PR middle-end/66567
12925 * ipa-chkp.c (chkp_maybe_create_clone): Require
12926 functions to be instrumentable.
12927 * tree-chkp.c (chkp_replace_function_pointer): Use
12928 chkp_instrumentable_p instead of attribute check.
12930 2015-06-18 Richard Biener <rguenther@suse.de>
12932 PR tree-optimization/66510
12933 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12934 number of vector loads for SLP permuted loads.
12935 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12936 check the stride for loop vectorization.
12937 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12938 vectorization factor.
12939 (vect_analyze_group_access): If the group size is not a power
12940 of two require a epilogue loop.
12941 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12942 compute and optimizing and alias test pruning after final
12943 vectorization factor computation.
12944 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12946 (vect_transform_slp_perm_load): Properly compute the original
12947 number of vector load stmts.
12949 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12951 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12952 "unlikely character , in @var" warning.
12954 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12956 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12957 (ix86_function_arg_advance): Ditto.
12958 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12960 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12962 * function.h (struct rtl_data): Remove struct and accessor macros.
12963 * emit-rtl.h (struct rtl_data): Relocate to here.
12964 * Makefile.in (GTFILES): Add emit-rtl.h.
12965 * df-core.c: Include emit-rtl.h.
12966 * genattrtab.c: Likewise.
12967 * genconditions.c: Likewise.
12968 * genpreds.c: Likewise.
12969 * genrecog.c: Likewise.
12970 * regcprop.c: Likewise.
12971 * resource.c: Likewise.
12972 * sched-rgn.c: Likewise.
12973 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12974 * config/i386/winnt.c: Likewise.
12976 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12978 PR middle-end/66429
12979 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12980 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12981 and has_force_vectorize_loops flags from cfun into
12983 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12984 if simduid is non-NULL.
12985 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12986 * passes.def (pass_simduid_cleanup): Add new pass after loop
12988 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12989 indirection from htab argument's type.
12990 (shrink_simd_arrays): New function.
12991 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12992 Don't call adjust_simduid_builtins if there are no loops.
12993 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12994 (pass_simduid_cleanup::execute): New method.
12995 (make_pass_simduid_cleanup): New function.
12997 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12999 * tree-core.h (tree_target_option): Make opts field a pointer to a
13000 cl_target_option instead of an instance of the struct.
13001 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
13003 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
13004 TARGET_OPTION_NODE.
13005 (copy_node_stat): Allocate and copy struct cl_target_option.
13007 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
13009 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
13010 Remove conditional exposure of prototypes.
13011 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
13012 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
13013 definitions in tree.h with functions.
13014 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
13016 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
13018 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
13020 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
13021 (*cmp<mode>_signed): ... this.
13022 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
13023 (*cmp<mode>_unsigned): ... this. Remove %b.
13025 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
13027 * coretypes.h: Include input.h and as-a.h.
13028 * rtl.h: Include input.h and as-a.h for generator files.
13029 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
13030 * vec.c: Don't include diagnostic-core.h.
13031 * alias.c: Do not include input.h, line-map.h or is-a.h.
13032 * asan.c: Likewise.
13033 * attribs.c: Likewise.
13034 * auto-inc-dec.c: Likewise.
13035 * auto-profile.c: Likewise.
13036 * bb-reorder.c: Likewise.
13037 * bt-load.c: Likewise.
13038 * builtins.c: Likewise.
13039 * caller-save.c: Likewise.
13040 * calls.c: Likewise.
13041 * ccmp.c: Likewise.
13043 * cfganal.c: Likewise.
13044 * cfgbuild.c: Likewise.
13045 * cfgcleanup.c: Likewise.
13046 * cfgexpand.c: Likewise.
13047 * cfghooks.c: Likewise.
13048 * cfgloop.c: Likewise.
13049 * cfgloop.h: Likewise.
13050 * cfgloopanal.c: Likewise.
13051 * cfgloopmanip.c: Likewise.
13052 * cfgrtl.c: Likewise.
13053 * cgraph.c: Likewise.
13054 * cgraphbuild.c: Likewise.
13055 * cgraphclones.c: Likewise.
13056 * cgraphunit.c: Likewise.
13057 * cilk-common.c: Likewise.
13058 * combine-stack-adj.c: Likewise.
13059 * combine.c: Likewise.
13060 * compare-elim.c: Likewise.
13061 * convert.c: Likewise.
13062 * coverage.c: Likewise.
13063 * cppbuiltin.c: Likewise.
13064 * cprop.c: Likewise.
13066 * cselib.c: Likewise.
13067 * data-streamer-in.c: Likewise.
13068 * data-streamer-out.c: Likewise.
13069 * data-streamer.c: Likewise.
13070 * dbxout.c: Likewise.
13073 * debug.c: Likewise.
13074 * df-core.c: Likewise.
13075 * df-problems.c: Likewise.
13076 * df-scan.c: Likewise.
13079 * diagnostic-core.h: Likewise.
13080 * diagnostic.c: Likewise.
13081 * dojump.c: Likewise.
13082 * dominance.c: Likewise.
13083 * domwalk.c: Likewise.
13084 * double-int.c: Likewise.
13086 * dumpfile.c: Likewise.
13087 * dumpfile.h: Likewise.
13088 * dwarf2asm.c: Likewise.
13089 * dwarf2cfi.c: Likewise.
13090 * dwarf2out.c: Likewise.
13091 * emit-rtl.c: Likewise.
13092 * et-forest.c: Likewise.
13093 * except.c: Likewise.
13094 * explow.c: Likewise.
13095 * expmed.c: Likewise.
13096 * expr.c: Likewise.
13097 * final.c: Likewise.
13098 * fixed-value.c: Likewise.
13099 * fold-const.c: Likewise.
13100 * function.c: Likewise.
13101 * fwprop.c: Likewise.
13102 * gcc-plugin.h: Likewise.
13103 * gcse.c: Likewise.
13104 * generic-match-head.c: Likewise.
13105 * ggc-page.c: Likewise.
13106 * gimple-builder.c: Likewise.
13107 * gimple-expr.c: Likewise.
13108 * gimple-fold.c: Likewise.
13109 * gimple-iterator.c: Likewise.
13110 * gimple-low.c: Likewise.
13111 * gimple-match-head.c: Likewise.
13112 * gimple-pretty-print.c: Likewise.
13113 * gimple-ssa-isolate-paths.c: Likewise.
13114 * gimple-ssa-strength-reduction.c: Likewise.
13115 * gimple-streamer-in.c: Likewise.
13116 * gimple-streamer-out.c: Likewise.
13117 * gimple-streamer.h: Likewise.
13118 * gimple-walk.c: Likewise.
13119 * gimple.c: Likewise.
13120 * gimplify-me.c: Likewise.
13121 * gimplify.c: Likewise.
13122 * godump.c: Likewise.
13123 * graph.c: Likewise.
13124 * graphite-blocking.c: Likewise.
13125 * graphite-dependences.c: Likewise.
13126 * graphite-interchange.c: Likewise.
13127 * graphite-isl-ast-to-gimple.c: Likewise.
13128 * graphite-optimize-isl.c: Likewise.
13129 * graphite-poly.c: Likewise.
13130 * graphite-scop-detection.c: Likewise.
13131 * graphite-sese-to-poly.c: Likewise.
13132 * graphite.c: Likewise.
13133 * haifa-sched.c: Likewise.
13134 * hw-doloop.c: Likewise.
13135 * ifcvt.c: Likewise.
13136 * init-regs.c: Likewise.
13137 * input.c: Likewise.
13138 * internal-fn.c: Likewise.
13139 * ipa-chkp.c: Likewise.
13140 * ipa-comdats.c: Likewise.
13141 * ipa-cp.c: Likewise.
13142 * ipa-devirt.c: Likewise.
13143 * ipa-icf-gimple.c: Likewise.
13144 * ipa-icf.c: Likewise.
13145 * ipa-inline-analysis.c: Likewise.
13146 * ipa-inline-transform.c: Likewise.
13147 * ipa-inline.c: Likewise.
13148 * ipa-polymorphic-call.c: Likewise.
13149 * ipa-profile.c: Likewise.
13150 * ipa-prop.c: Likewise.
13151 * ipa-pure-const.c: Likewise.
13152 * ipa-ref.c: Likewise.
13153 * ipa-reference.c: Likewise.
13154 * ipa-split.c: Likewise.
13155 * ipa-utils.c: Likewise.
13156 * ipa-visibility.c: Likewise.
13158 * ira-build.c: Likewise.
13159 * ira-color.c: Likewise.
13160 * ira-conflicts.c: Likewise.
13161 * ira-costs.c: Likewise.
13162 * ira-emit.c: Likewise.
13163 * ira-lives.c: Likewise.
13165 * jump.c: Likewise.
13166 * langhooks.c: Likewise.
13168 * loop-doloop.c: Likewise.
13169 * loop-init.c: Likewise.
13170 * loop-invariant.c: Likewise.
13171 * loop-iv.c: Likewise.
13172 * loop-unroll.c: Likewise.
13173 * lower-subreg.c: Likewise.
13174 * lra-assigns.c: Likewise.
13175 * lra-coalesce.c: Likewise.
13176 * lra-constraints.c: Likewise.
13177 * lra-eliminations.c: Likewise.
13178 * lra-lives.c: Likewise.
13179 * lra-remat.c: Likewise.
13180 * lra-spills.c: Likewise.
13182 * lto-cgraph.c: Likewise.
13183 * lto-compress.c: Likewise.
13184 * lto-opts.c: Likewise.
13185 * lto-section-in.c: Likewise.
13186 * lto-section-out.c: Likewise.
13187 * lto-streamer-in.c: Likewise.
13188 * lto-streamer-out.c: Likewise.
13189 * lto-streamer.c: Likewise.
13191 * mode-switching.c: Likewise.
13192 * modulo-sched.c: Likewise.
13193 * omega.c: Likewise.
13194 * omp-low.c: Likewise.
13195 * optabs.c: Likewise.
13196 * opts-global.c: Likewise.
13197 * opts.h: Likewise.
13198 * passes.c: Likewise.
13199 * plugin.c: Likewise.
13200 * postreload-gcse.c: Likewise.
13201 * postreload.c: Likewise.
13202 * predict.c: Likewise.
13203 * pretty-print.h: Likewise.
13204 * print-rtl.c: Likewise.
13205 * print-tree.c: Likewise.
13206 * profile.c: Likewise.
13207 * real.c: Likewise.
13208 * realmpfr.c: Likewise.
13209 * recog.c: Likewise.
13211 * reg-stack.c: Likewise.
13212 * regcprop.c: Likewise.
13213 * reginfo.c: Likewise.
13214 * regrename.c: Likewise.
13215 * regstat.c: Likewise.
13216 * reload.c: Likewise.
13217 * reload1.c: Likewise.
13218 * reorg.c: Likewise.
13219 * resource.c: Likewise.
13220 * rtl-chkp.c: Likewise.
13221 * rtl-error.c: Likewise.
13222 * rtlanal.c: Likewise.
13223 * rtlhooks.c: Likewise.
13224 * sanopt.c: Likewise.
13225 * sched-deps.c: Likewise.
13226 * sched-ebb.c: Likewise.
13227 * sched-rgn.c: Likewise.
13228 * sched-vis.c: Likewise.
13229 * sdbout.c: Likewise.
13230 * sel-sched-dump.c: Likewise.
13231 * sel-sched-ir.c: Likewise.
13232 * sel-sched.c: Likewise.
13233 * sese.c: Likewise.
13234 * shrink-wrap.c: Likewise.
13235 * simplify-rtx.c: Likewise.
13236 * stack-ptr-mod.c: Likewise.
13237 * statistics.c: Likewise.
13238 * stmt.c: Likewise.
13239 * stor-layout.c: Likewise.
13240 * store-motion.c: Likewise.
13241 * streamer-hooks.c: Likewise.
13242 * stringpool.c: Likewise.
13243 * symtab.c: Likewise.
13244 * target-globals.c: Likewise.
13245 * targhooks.c: Likewise.
13246 * toplev.c: Likewise.
13247 * tracer.c: Likewise.
13248 * trans-mem.c: Likewise.
13249 * tree-affine.c: Likewise.
13250 * tree-browser.c: Likewise.
13251 * tree-call-cdce.c: Likewise.
13252 * tree-cfg.c: Likewise.
13253 * tree-cfgcleanup.c: Likewise.
13254 * tree-chkp-opt.c: Likewise.
13255 * tree-chkp.c: Likewise.
13256 * tree-chrec.c: Likewise.
13257 * tree-complex.c: Likewise.
13258 * tree-data-ref.c: Likewise.
13259 * tree-dfa.c: Likewise.
13260 * tree-diagnostic.c: Likewise.
13261 * tree-dump.c: Likewise.
13262 * tree-eh.c: Likewise.
13263 * tree-emutls.c: Likewise.
13264 * tree-if-conv.c: Likewise.
13265 * tree-inline.c: Likewise.
13266 * tree-into-ssa.c: Likewise.
13267 * tree-iterator.c: Likewise.
13268 * tree-loop-distribution.c: Likewise.
13269 * tree-nested.c: Likewise.
13270 * tree-nrv.c: Likewise.
13271 * tree-object-size.c: Likewise.
13272 * tree-outof-ssa.c: Likewise.
13273 * tree-parloops.c: Likewise.
13274 * tree-phinodes.c: Likewise.
13275 * tree-predcom.c: Likewise.
13276 * tree-pretty-print.c: Likewise.
13277 * tree-profile.c: Likewise.
13278 * tree-scalar-evolution.c: Likewise.
13279 * tree-sra.c: Likewise.
13280 * tree-ssa-address.c: Likewise.
13281 * tree-ssa-alias.c: Likewise.
13282 * tree-ssa-ccp.c: Likewise.
13283 * tree-ssa-coalesce.c: Likewise.
13284 * tree-ssa-copy.c: Likewise.
13285 * tree-ssa-copyrename.c: Likewise.
13286 * tree-ssa-dce.c: Likewise.
13287 * tree-ssa-dom.c: Likewise.
13288 * tree-ssa-dse.c: Likewise.
13289 * tree-ssa-forwprop.c: Likewise.
13290 * tree-ssa-ifcombine.c: Likewise.
13291 * tree-ssa-live.c: Likewise.
13292 * tree-ssa-loop-ch.c: Likewise.
13293 * tree-ssa-loop-im.c: Likewise.
13294 * tree-ssa-loop-ivcanon.c: Likewise.
13295 * tree-ssa-loop-ivopts.c: Likewise.
13296 * tree-ssa-loop-manip.c: Likewise.
13297 * tree-ssa-loop-niter.c: Likewise.
13298 * tree-ssa-loop-prefetch.c: Likewise.
13299 * tree-ssa-loop-unswitch.c: Likewise.
13300 * tree-ssa-loop.c: Likewise.
13301 * tree-ssa-math-opts.c: Likewise.
13302 * tree-ssa-operands.c: Likewise.
13303 * tree-ssa-phiopt.c: Likewise.
13304 * tree-ssa-phiprop.c: Likewise.
13305 * tree-ssa-pre.c: Likewise.
13306 * tree-ssa-propagate.c: Likewise.
13307 * tree-ssa-reassoc.c: Likewise.
13308 * tree-ssa-sccvn.c: Likewise.
13309 * tree-ssa-scopedtables.c: Likewise.
13310 * tree-ssa-sink.c: Likewise.
13311 * tree-ssa-strlen.c: Likewise.
13312 * tree-ssa-structalias.c: Likewise.
13313 * tree-ssa-tail-merge.c: Likewise.
13314 * tree-ssa-ter.c: Likewise.
13315 * tree-ssa-threadedge.c: Likewise.
13316 * tree-ssa-threadupdate.c: Likewise.
13317 * tree-ssa-uncprop.c: Likewise.
13318 * tree-ssa-uninit.c: Likewise.
13319 * tree-ssa.c: Likewise.
13320 * tree-ssanames.c: Likewise.
13321 * tree-stdarg.c: Likewise.
13322 * tree-streamer-in.c: Likewise.
13323 * tree-streamer-out.c: Likewise.
13324 * tree-streamer.c: Likewise.
13325 * tree-switch-conversion.c: Likewise.
13326 * tree-tailcall.c: Likewise.
13327 * tree-vect-data-refs.c: Likewise.
13328 * tree-vect-generic.c: Likewise.
13329 * tree-vect-loop-manip.c: Likewise.
13330 * tree-vect-loop.c: Likewise.
13331 * tree-vect-patterns.c: Likewise.
13332 * tree-vect-slp.c: Likewise.
13333 * tree-vect-stmts.c: Likewise.
13334 * tree-vectorizer.c: Likewise.
13335 * tree-vrp.c: Likewise.
13336 * tree.c: Likewise.
13337 * tsan.c: Likewise.
13338 * ubsan.c: Likewise.
13339 * valtrack.c: Likewise.
13340 * value-prof.c: Likewise.
13341 * var-tracking.c: Likewise.
13342 * varasm.c: Likewise.
13343 * varpool.c: Likewise.
13344 * vmsdbgout.c: Likewise.
13345 * vtable-verify.c: Likewise.
13347 * wide-int.cc: Likewise.
13348 * xcoffout.c: Likewise.
13349 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
13350 * common/common-targhooks.c: Likewise.
13351 * config/aarch64/aarch64-builtins.c: Likewise.
13352 * config/aarch64/aarch64.c: Likewise.
13353 * config/alpha/alpha.c: Likewise.
13354 * config/arc/arc.c: Likewise.
13355 * config/arm/aarch-common.c: Likewise.
13356 * config/arm/arm-builtins.c: Likewise.
13357 * config/arm/arm-c.c: Likewise.
13358 * config/arm/arm.c: Likewise.
13359 * config/avr/avr-c.c: Likewise.
13360 * config/avr/avr-log.c: Likewise.
13361 * config/avr/avr.c: Likewise.
13362 * config/bfin/bfin.c: Likewise.
13363 * config/c6x/c6x.c: Likewise.
13364 * config/cr16/cr16.c: Likewise.
13365 * config/cris/cris.c: Likewise.
13366 * config/darwin-c.c: Likewise.
13367 * config/darwin.c: Likewise.
13368 * config/default-c.c: Likewise.
13369 * config/epiphany/epiphany.c: Likewise.
13370 * config/epiphany/mode-switch-use.c: Likewise.
13371 * config/epiphany/resolve-sw-modes.c: Likewise.
13372 * config/fr30/fr30.c: Likewise.
13373 * config/frv/frv.c: Likewise.
13374 * config/ft32/ft32.c: Likewise.
13375 * config/glibc-c.c: Likewise.
13376 * config/h8300/h8300.c: Likewise.
13377 * config/i386/i386-c.c: Likewise.
13378 * config/i386/i386.c: Likewise.
13379 * config/i386/msformat-c.c: Likewise.
13380 * config/i386/winnt-cxx.c: Likewise.
13381 * config/i386/winnt-stubs.c: Likewise.
13382 * config/i386/winnt.c: Likewise.
13383 * config/ia64/ia64-c.c: Likewise.
13384 * config/ia64/ia64.c: Likewise.
13385 * config/iq2000/iq2000.c: Likewise.
13386 * config/lm32/lm32.c: Likewise.
13387 * config/m32c/m32c-pragma.c: Likewise.
13388 * config/m32c/m32c.c: Likewise.
13389 * config/m32r/m32r.c: Likewise.
13390 * config/m68k/m68k.c: Likewise.
13391 * config/mcore/mcore.c: Likewise.
13392 * config/mep/mep-pragma.c: Likewise.
13393 * config/mep/mep.c: Likewise.
13394 * config/microblaze/microblaze-c.c: Likewise.
13395 * config/microblaze/microblaze.c: Likewise.
13396 * config/mips/mips.c: Likewise.
13397 * config/mmix/mmix.c: Likewise.
13398 * config/mn10300/mn10300.c: Likewise.
13399 * config/moxie/moxie.c: Likewise.
13400 * config/msp430/msp430-c.c: Likewise.
13401 * config/msp430/msp430.c: Likewise.
13402 * config/nds32/nds32-cost.c: Likewise.
13403 * config/nds32/nds32-fp-as-gp.c: Likewise.
13404 * config/nds32/nds32-intrinsic.c: Likewise.
13405 * config/nds32/nds32-isr.c: Likewise.
13406 * config/nds32/nds32-md-auxiliary.c: Likewise.
13407 * config/nds32/nds32-memory-manipulation.c: Likewise.
13408 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13409 * config/nds32/nds32-predicates.c: Likewise.
13410 * config/nds32/nds32.c: Likewise.
13411 * config/nios2/nios2.c: Likewise.
13412 * config/nvptx/nvptx.c: Likewise.
13413 * config/pa/pa.c: Likewise.
13414 * config/pdp11/pdp11.c: Likewise.
13415 * config/rl78/rl78-c.c: Likewise.
13416 * config/rl78/rl78.c: Likewise.
13417 * config/rs6000/rs6000-c.c: Likewise.
13418 * config/rs6000/rs6000.c: Likewise.
13419 * config/rx/rx.c: Likewise.
13420 * config/s390/s390-c.c: Likewise.
13421 * config/s390/s390.c: Likewise.
13422 * config/sh/sh-c.c: Likewise.
13423 * config/sh/sh-mem.cc: Likewise.
13424 * config/sh/sh.c: Likewise.
13425 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13426 * config/sh/sh_treg_combine.cc: Likewise.
13427 * config/sol2-c.c: Likewise.
13428 * config/sol2-cxx.c: Likewise.
13429 * config/sol2-stubs.c: Likewise.
13430 * config/sol2.c: Likewise.
13431 * config/sparc/sparc-c.c: Likewise.
13432 * config/sparc/sparc.c: Likewise.
13433 * config/spu/spu-c.c: Likewise.
13434 * config/spu/spu.c: Likewise.
13435 * config/stormy16/stormy16.c: Likewise.
13436 * config/tilegx/mul-tables.c: Likewise.
13437 * config/tilegx/tilegx-c.c: Likewise.
13438 * config/tilegx/tilegx.c: Likewise.
13439 * config/tilepro/mul-tables.c: Likewise.
13440 * config/tilepro/tilepro-c.c: Likewise.
13441 * config/tilepro/tilepro.c: Likewise.
13442 * config/v850/v850-c.c: Likewise.
13443 * config/v850/v850.c: Likewise.
13444 * config/vax/vax.c: Likewise.
13445 * config/visium/visium.c: Likewise.
13446 * config/vms/vms-c.c: Likewise.
13447 * config/vms/vms.c: Likewise.
13448 * config/vxworks.c: Likewise.
13449 * config/winnt-c.c: Likewise.
13450 * config/xtensa/xtensa.c: Likewise.
13452 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
13454 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
13456 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
13458 2015-06-17 Richard Biener <rguenther@suse.de>
13460 PR tree-optimization/66251
13461 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
13462 stmts for SLP strided stores.
13465 2015-05-22 Richard Biener <rguenther@suse.de>
13467 PR tree-optimization/66251
13468 * tree-vect-stmts.c (vectorizable_conversion): Properly
13469 set STMT_VINFO_VEC_STMT even for the SLP case.
13471 2015-05-26 Michael Matz <matz@suse.de>
13473 PR middle-end/66251
13474 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
13475 STMT_VINFO_VEC_STMT, also with SLP.
13477 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
13480 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
13481 (*avx_addsubv4df3_1s): Ditto.
13482 (*sse3_addsubv2df3_1): Ditto.
13483 (*sse3_addsubv2df3_1s): Ditto.
13484 (*avx_addsubv8sf3_1): Ditto.
13485 (*avx_addsubv8sf3_1s): Ditto.
13486 (*sse3_addsubv4sf3_1): Ditto.
13487 (*sse3_addsubv4sf3_1s): Ditto.
13489 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
13491 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
13492 (SYSROOT_SUFFIX_SPEC): Update.
13493 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
13494 (STARTFILE_PREFIX_SPEC): Update.
13495 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
13496 (MULTILIB_REQUIRED): New.
13497 (MULTILIB_OSDIRNAMES): New.
13498 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
13499 (MULTILIB_REQUIRED): New.
13500 (MULTILIB_OSDIRNAMES): New.
13502 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
13504 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
13505 * config/aarch64/aarch64-options-extensions.def: Update "fP",
13506 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
13507 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
13508 (AARCH64_FL_PAN): New.
13509 (AARCH64_FL_LOR): New.
13510 (AARCH64_FL_RDMA): New.
13511 (AARCH64_FL_FOR_ARCH8_1): New.
13512 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
13513 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
13515 2015-06-16 Martin Liska <mliska@suse.cz>
13517 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13518 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13521 2015-06-16 Richard Biener <rguenther@suse.de>
13523 * tree-vect-stmts.c (vectorizable_store): Adjust.
13524 (vectorizable_load): Likewise.
13525 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13527 (vect_create_data_ref_ptr): Likewise.
13528 (bump_vector_ptr): Adjust.
13530 2015-06-16 Richard Biener <rguenther@suse.de>
13532 * tree-vect-stmts.c (vectorizable_load): Properly start loads
13533 with the first element if this is grouped loads.
13535 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
13537 * config/arm/arm-protos.h (struct tune_params): Rename
13538 log_op_non_sc to log_op_non_short_circuit, and rename enum
13539 values to expand SC to SHORT_CIRCUIT.
13540 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13541 to LOG_OP_NON_SHORT_CIRCUIT.
13542 (arm_fastmul_tune):Likewise
13543 (arm_strongarm_tune): Likewise.
13544 (arm_xscale_tune): Likewise.
13545 (arm_9e_tune): Likewise.
13546 (arm_marvell_pj4_tune): Likewise.
13547 (arm_v6t2_tune): Likewise.
13548 (arm_cortex_tune): Likewise.
13549 (arm_cortex_a8_tune): Likewise.
13550 (arm_cortex_a7_tune): Likewise.
13551 (arm_cortex_a15_tune): Likewise.
13552 (arm_cortex_a53_tune): Likewise.
13553 (arm_cortex_a57_tune): Likewise.
13554 (arm_xgene1_tune): Likewise.
13555 (arm_cortex_a5_tune): Likewise.
13556 (arm_cortex_a9_tune): Likewise.
13557 (arm_cortex_a12_tune): Likewise.
13558 (arm_v7m_tune): Likewise.
13559 (arm_cortex_m7_tune): Likewise.
13560 (arm_v6m_tune): Likewise.
13561 (arm_fa726te_tune): Likewise.
13563 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
13565 * altivec.md: Delete UNSPEC_VMLADDUHM.
13566 (mulv4si3_p8): New pattern.
13567 (mulv4si3): Use it for POWER8.
13568 (mulv8hi3): Use vmladduhm with zero addend.
13569 (altivec_vmladduhm): Descriptive RTL.
13571 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
13573 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13574 to use neon_move instead of mov_imm.
13575 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13576 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13578 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13579 aarch64_float_const_zero_rtx_p check before TFmode check.
13580 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13582 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
13583 code and attributes to match. Change condition from register_operand
13584 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
13585 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
13588 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
13591 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13592 there is no parent.
13594 2015-06-14 Shiva Chen <shiva0217@gmail.com>
13596 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13597 HOST_WIDE_INT parameter.
13599 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
13602 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13603 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13605 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13607 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
13609 * rtl.h (classify_insn): Declare.
13610 * emit-rtl.c (classify_insn): Move to...
13611 * rtl.c: ...here and add generator support.
13612 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13613 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13614 * genemit.c (gen_emit_seq): New function.
13615 (gen_expand, gen_split): Use it.
13617 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
13619 * tree.c (make_vector_stat): Fix comment to state that the
13620 function returns a VECTOR_CST.
13622 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
13624 * gensupport.h (add_implicit_parallel): Declare.
13625 * genrecog.c (add_implicit_parallel): Move to...
13626 * gensupport.c (add_implicit_parallel): ...here.
13627 (process_one_cond_exec): Use it.
13628 * genemit.c (gen_insn): Likewise.
13630 2015-06-13 Iain Sandoe <iain@codesourcery.com>
13633 * passes.c (rest_of_decl_compilation): Do not register globals for
13634 early debug if they are declared in built-ins.
13636 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
13638 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13640 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13642 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13644 (noce_try_cmove_arith): Likewise.
13645 (noce_get_alt_condition): Likewise.
13647 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13649 * common/config/i386/i386-common.c
13650 (OPTION_MASK_ISA_MWAITX_SET): New.
13651 (ix86_handle_option): Handle mwaitx.
13652 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13653 (x86_64-*-*): Likewise.
13654 * config/i386/mwaitxintrin.h: New header.
13655 * config/i386/cpuid.h (bit_MWAITX): Define.
13656 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13658 * config/i386/i386.opt (mwaitx): New.
13659 * config/i386/i386-builtin-types.def
13660 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13661 * config/i386/i386-c.c: Define __MWAITX__ if needed.
13662 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13664 (ix86_option_override_internal): Handle new option.
13665 (processor_alias_table): Added PTA_MWAITX.
13666 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13667 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13668 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13669 IX86_BUILTIN_MONITORX built-ins.
13670 * config/i386/i386.h (TARGET_MWAITX): New.
13671 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13673 (mwaitx): New pattern.
13674 (monitorx_<mode>): New pattern.
13675 * config/i386/x86intrin.h: Include mwaitxintrin.h.
13676 * doc/extend.texi: Document monitorx and mwaitx builtins.
13677 * doc/invoke.texi: Document -mmwaitx option.
13679 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
13681 * emit-rtl.c (need_atomic_barrier_p): Mask model with
13682 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
13684 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13686 * dbxout.c (xcoff_debug_hooks): Provide a function for
13687 register_main_translation_unit hook.
13689 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
13691 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13692 variants cases from switch.
13693 (rs6000_post_atomic_barrier): Same.
13694 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13695 (rs6000_expand_atomic_exchange): Same.
13696 (rs6000_expand_atomic_op): Same.
13697 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13698 SYNC variants cases from switch.
13699 (atomic_load): Same.
13700 (atomic_store): Same.
13702 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
13704 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13705 CONST_INT for goto.
13707 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
13710 * dwarf2out.c (check_die): Check for common duplicate attributes.
13711 (add_location_or_const_value_attribute): Do not add duplicate
13713 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13715 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13716 (gen_type_die_with_usage): Call check_die.
13717 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13719 2015-06-11 Jason Merrill <jason@redhat.com>
13721 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13724 2015-06-11 Marek Polacek <polacek@redhat.com>
13726 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13728 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
13731 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13732 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13733 (*addx_extend_sp32): Fix pasto.
13734 (*subx_extend): Rename into...
13735 (*subx_extend_sp32): ...this.
13736 (*adddi3_extend_sp32): Add earlyclobber.
13737 (*subdi3_insn_sp32): Likewise.
13738 (*subdi3_extend_sp32): Likewise.
13739 (*and_not_di_sp32): Likewise.
13740 (*or_not_di_sp32): Likewise.
13741 (*xor_not_di_sp32): Likewise.
13742 (*negdi2_sp32): Likewise.
13743 (*one_cmpldi2_sp32): Likewise.
13745 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
13747 * debug.h (struct gcc_debug_hooks): Add a
13748 register_main_translation_unit hook.
13749 * debug.c (do_nothing_debug_hooks): Provide a function for this
13751 * dbxout.c (dbx_debug_hooks): Likewise.
13752 * sdbout.c (sdb_debug_hooks): Likewise.
13753 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13754 * dwarf2out.c (main_translation_unit): New global variable.
13755 (dwarf2out_register_main_translation_unit): New function
13756 implementing the new hook.
13757 (dwarf2_debug_hooks): Assign
13758 dwarf2out_register_main_translation_unit to this new hook.
13759 (dwarf2out_init): Associate any main translation unit to
13762 2015-06-11 Marek Polacek <polacek@redhat.com>
13764 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13766 2015-06-11 Marek Polacek <polacek@redhat.com>
13768 * match.pd: Use single_use throughout.
13770 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13772 * config/arm/arm.c (arm_option_params_internal): When optimising
13773 for speed set max_insns_skipped when arm_restrict_it.
13775 2015-06-11 Christian Bruel <christian.bruel@st.com>
13778 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13780 (arm_cpu_builtins): New function.
13781 (arm_pragma_target_parse): Call arm_cpu_builtins.
13782 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13783 (arm_register_target_pragmas): Likewise.
13784 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13785 Call arm_register_target_pragmas.
13786 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13787 (arm_pragma_target_parse): Likewise.
13789 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
13791 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13792 of the second operand.
13794 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
13797 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13798 to prepare mask operand for AVX512 modes.
13800 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13803 * doc/md.texi (Machine Constraints): Document that on the PowerPC
13804 if you use a constraint that targets a VSX register, you must use
13805 %x<n> in the template.
13807 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
13809 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13810 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13811 (define_insn "trap"): New definition.
13813 2015-06-10 Richard Biener <rguenther@suse.de>
13815 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13817 (vect_supported_load_permutation_p): ... here. Handle
13818 supportable permutations in reductions.
13819 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13820 for vectorizing strided group loads.
13822 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13825 * config/i386/i386.c (ix86_split_long_move): For collisions
13826 involving direct tls segment refs, move the UNSPEC_TP possibly
13827 wrapped in ZERO_EXTEND out of the address for lea, to each of
13830 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13832 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13833 dmb sy. Adjust tabs.
13835 2015-06-10 Tom de Vries <tom@codesourcery.com>
13837 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13839 2015-06-10 Martin Liska <mliska@suse.cz>
13842 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13843 all enum values in mem_alloc_origin.
13844 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13846 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13847 * bitmap.c (bitmap_register): Likewise.
13848 (dump_bitmap_statistics): Likewise.
13849 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13850 (ggc_record_overhead): Likewise.
13851 * hash-map.h: Likewise.
13852 * hash-set.h: Likewise.
13853 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13854 * hash-table.h: Likewise.
13855 * vec.c (vec_prefix::register_overhead): Likewise.
13856 (vec_prefix::release_overhead): Likewise.
13857 (dump_vec_loc_statistics): Likewise.
13859 2015-06-09 Christian Bruel <christian.bruel@st.com>
13862 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13863 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13864 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13865 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13866 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13867 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13868 (arm_valid_target_attribute_p): Likewise.
13869 (arm_set_current_function, arm_can_inline_p): Likewise.
13870 (arm_valid_target_attribute_rec): Likewise.
13871 (arm_previous_fndecl): New variable.
13872 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13873 (TARGET_CAN_INLINE_P): Define.
13874 (arm_asm_trampoline_template): Emit mode.
13875 (arm_file_start): Don't set unified syntax.
13876 (arm_declare_function_name): Set unified syntax and mode.
13877 (arm_option_override): Init target_option_default_node.
13878 and target_option_current_node.
13879 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13880 (*call_symbol): Likewise.
13881 * doc/extend.texi: Document ARM/Thumb target attribute.
13882 * doc/invoke.texi: Likewise.
13884 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13887 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13888 PR rtl-optimization/64164
13889 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13890 * tree-ssa-copyrename.c: Removed.
13891 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13892 -ftree-coalesce-vars.
13893 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13894 * common.opt (ftree-copyrename): Ignore.
13895 (ftree-coalesce-inlined-vars): Likewise.
13896 * doc/invoke.texi: Remove the ignored options above.
13897 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13898 * tree-ssa-coalesce.h: ... here.
13899 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13900 headers required by it.
13901 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13902 across variables when flag_tree_coalesce_vars. Check register
13903 use and promoted modes to allow coalescing. Moved to
13904 tree-ssa-coalesce.c.
13905 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13906 with its member functions to tree-ssa-coalesce.c.
13907 (var_map_base_init): Likewise. Renamed to
13908 compute_samebase_partition_bases.
13909 (partition_view_normal): Drop want_bases parameter.
13910 (partition_view_bitmap): Likewise.
13911 * tree-ssa-live.h: Adjust declarations.
13912 * tree-ssa-coalesce.c: Include explow.h.
13913 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13914 default defs at the entry point.
13915 (dump_part_var_map): New.
13916 (compute_optimized_partition_bases): New, called by...
13917 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13918 of compute_samebase_partition_bases. Adjust.
13919 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13920 * cfgexpand.c (leader_merge): New.
13921 (get_rtl_for_parm_ssa_default_def): New.
13922 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13923 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13924 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13925 redundant MEM attr setting.
13926 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13928 (expand_one_stack_var): ... this. New wrapper to check and
13929 skip already expanded SSA partitions.
13930 (record_alignment_for_reg_var): New, factored out of...
13931 (expand_one_var): ... this.
13932 (expand_one_ssa_partition): New.
13933 (adjust_one_expanded_partition_var): New.
13934 (expand_one_register_var): Check and skip already expanded SSA
13936 (expand_used_vars): Don't create DECLs for anonymous SSA
13937 names. Expand all SSA partitions, then adjust all SSA names.
13938 (pass::execute): Replace the loops that set
13939 SA.partition_to_pseudo from partition leaders and cleared
13940 DECL_RTL for multi-location variables, and that which used to
13941 rename vars and set attrs, with one that clears DECL_RTL and
13942 checks that PARMs and RESULTs default_defs match DECL_RTL.
13943 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13944 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13945 * explow.c (promote_ssa_mode): New.
13946 * explow.h (promote_ssa_mode): Declare.
13947 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13948 * function.c: Include cfgexpand.h.
13949 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13950 (use_register_for_parm_decl): Wrapper for the above to
13951 special-case the result_ptr.
13952 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13953 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13954 multiple locations.
13955 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13956 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13957 (assign_parm_setup_block): Prefer SSA-assigned location.
13958 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13959 if stack_parm is NULL.
13960 (assign_parm_setup_stack): Prefer SSA-assigned location.
13961 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13962 rtl before testing for pointer bounds. Special-case result_ptr.
13963 (expand_function_start): Maybe reset DECL_RTL of result.
13964 Prefer SSA-assigned location for result and static chain.
13965 Factor out DECL_RESULT and SET_DECL_RTL.
13966 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13967 anonymous SSA names. Use promote_ssa_mode.
13968 (get_temp_reg): Likewise.
13969 (remove_ssa_form): Adjust.
13970 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13971 and get its reg_usage for reg invalidation.
13972 (compute_bb_dataflow): Pass it insn.
13973 (emit_notes_in_bb): Likewise.
13974 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13975 fail assert on conversion between unsigned types.
13977 2015-06-09 Tom de Vries <tom@codesourcery.com>
13979 PR tree-optimization/65460
13980 * omp-low.c (expand_omp_target): Set parallelized_function on
13981 cgraph_node for child_fn.
13983 2015-06-09 Tom de Vries <tom@codesourcery.com>
13985 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13986 parallelized_function before add_new_function.
13988 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13990 * gcc-plugin.h: Move decls to plugin.h and include it.
13991 * plugin.h: Relocate decls from gcc-plugin.h
13992 * ggc-page.c: Include required header files.
13993 * passes.c: Likewise.
13994 * cgraphunit.c: Likewise.
13996 2015-06-09 Tom de Vries <tom@codesourcery.com>
13998 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
14000 2015-06-09 Jason Merrill <jason@redhat.com>
14003 * toplev.c (check_global_declaration): Don't warn about a clone.
14005 2015-06-09 Marek Polacek <polacek@redhat.com>
14007 PR tree-optimization/66299
14008 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
14009 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
14012 2015-06-09 Richard Biener <rguenther@suse.de>
14014 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
14015 (vect_analyze_slp_instance): Instead do not falsely drop
14018 2015-06-09 Richard Biener <rguenther@suse.de>
14020 PR middle-end/66423
14021 * match.pd: Handle A % (unsigned)(1 << B).
14023 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
14025 * varasm.c (output_object_block_htab): Remove.
14026 (output_object_block_compare): New.
14027 (output_object_blocks): Sort named object_blocks before outputting
14030 2015-06-09 Richard Biener <rguenther@suse.de>
14032 PR tree-optimization/66419
14033 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
14034 consider GROUP_GAP when detecting a perfect subchain.
14036 2015-06-09 Nick Clifton <nickc@redhat.com>
14038 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
14039 place read only data in the .frodata section.
14041 2015-06-09 Shiva Chen <shiva0217@gmail.com>
14043 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
14044 (atomic_store<mode>): Likewise.
14046 2015-06-09 Richard Biener <rguenther@suse.de>
14048 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
14050 2015-06-09 Richard Biener <rguenther@suse.de>
14052 PR middle-end/66413
14053 * tree-inline.c (insert_init_debug_bind): Unshare value.
14055 2015-06-09 Richard Biener <rguenther@suse.de>
14057 PR tree-optimization/66396
14058 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
14059 Rename virtual operands.
14061 2015-06-09 Tom de Vries <tom@codesourcery.com>
14063 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
14064 always return false.
14066 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14068 PR rtl-optimization/64164
14069 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14070 * tree-ssa-copyrename.c: Removed.
14071 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14072 -ftree-coalesce-vars.
14073 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14074 * common.opt (ftree-copyrename): Ignore.
14075 (ftree-coalesce-inlined-vars): Likewise.
14076 * doc/invoke.texi: Remove the ignored options above.
14077 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14078 * tree-ssa-coalesce.h: ... here.
14079 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14080 headers required by it.
14081 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14082 across variables when flag_tree_coalesce_vars. Check register
14083 use and promoted modes to allow coalescing. Moved to
14084 tree-ssa-coalesce.c.
14085 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14086 with its member functions to tree-ssa-coalesce.c.
14087 (var_map_base_init): Likewise. Renamed to
14088 compute_samebase_partition_bases.
14089 (partition_view_normal): Drop want_bases parameter.
14090 (partition_view_bitmap): Likewise.
14091 * tree-ssa-live.h: Adjust declarations.
14092 * tree-ssa-coalesce.c: Include explow.h.
14093 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14094 default defs at the entry point.
14095 (dump_part_var_map): New.
14096 (compute_optimized_partition_bases): New, called by...
14097 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14098 of compute_samebase_partition_bases. Adjust.
14099 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14100 * cfgexpand.c (leader_merge): New.
14101 (get_rtl_for_parm_ssa_default_def): New.
14102 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14103 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14104 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14105 redundant MEM attr setting.
14106 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14108 (expand_one_stack_var): ... this. New wrapper to check and
14109 skip already expanded SSA partitions.
14110 (record_alignment_for_reg_var): New, factored out of...
14111 (expand_one_var): ... this.
14112 (expand_one_ssa_partition): New.
14113 (adjust_one_expanded_partition_var): New.
14114 (expand_one_register_var): Check and skip already expanded SSA
14116 (expand_used_vars): Don't create DECLs for anonymous SSA
14117 names. Expand all SSA partitions, then adjust all SSA names.
14118 (pass::execute): Replace the loops that set
14119 SA.partition_to_pseudo from partition leaders and cleared
14120 DECL_RTL for multi-location variables, and that which used to
14121 rename vars and set attrs, with one that clears DECL_RTL and
14122 checks that PARMs and RESULTs default_defs match DECL_RTL.
14123 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14124 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14125 * explow.c (promote_ssa_mode): New.
14126 * explow.h (promote_ssa_mode): Declare.
14127 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14128 * function.c: Include cfgexpand.h.
14129 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14130 (use_register_for_parm_decl): Wrapper for the above to
14131 special-case the result_ptr.
14132 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14133 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14134 multiple locations.
14135 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14136 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14137 (assign_parm_setup_block): Prefer SSA-assigned location.
14138 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14139 if stack_parm is NULL.
14140 (assign_parm_setup_stack): Prefer SSA-assigned location.
14141 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14142 rtl before testing for pointer bounds. Special-case result_ptr.
14143 (expand_function_start): Maybe reset DECL_RTL of result.
14144 Prefer SSA-assigned location for result and static chain.
14145 Factor out DECL_RESULT and SET_DECL_RTL.
14146 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14147 anonymous SSA names. Use promote_ssa_mode.
14148 (get_temp_reg): Likewise.
14149 (remove_ssa_form): Adjust.
14150 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14151 and get its reg_usage for reg invalidation.
14152 (compute_bb_dataflow): Pass it insn.
14153 (emit_notes_in_bb): Likewise.
14154 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
14155 fail assert on conversion between unsigned types.
14157 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
14160 * tree-inline.c (reset_debug_binding): New.
14161 (reset_debug_bindings): Likewise.
14162 (expand_call_inline): Call it.
14164 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14166 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
14169 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14171 * lto-streamer-out.c (lto_output_location): Stream
14172 reserved locations correctly.
14173 * lto-streamer-in.c (lto_output_location): Likewise.
14175 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
14177 * coretypes.h: Include hash-table.h and hash-set.h for host files.
14178 * ggc.h: Don't include statistics.h>
14179 * hash-map.h: Remove all includes.
14180 * hash-set.h: Likewise.
14181 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
14182 the include list. Remove <new>.
14183 * inchash.h: Remove all includes.
14184 * mem-stats.h: Likewise.
14185 * vec.h: No special processing for generators or ggc.
14186 * alias.c : Adjust include files.
14187 * alloc-pool.c : Likewise.
14188 * alloc-pool.h : Likewise.
14189 * asan.c : Likewise.
14190 * attribs.c : Likewise.
14191 * auto-inc-dec.c : Likewise.
14192 * auto-profile.c : Likewise.
14193 * bb-reorder.c : Likewise.
14194 * bitmap.c : Likewise.
14195 * bitmap.h : Likewise.
14196 * bt-load.c : Likewise.
14197 * builtins.c : Likewise.
14198 * caller-save.c : Likewise.
14199 * calls.c : Likewise.
14200 * ccmp.c : Likewise.
14201 * cfg.c : Likewise.
14202 * cfganal.c : Likewise.
14203 * cfgbuild.c : Likewise.
14204 * cfgcleanup.c : Likewise.
14205 * cfgexpand.c : Likewise.
14206 * cfghooks.c : Likewise.
14207 * cfgloop.c : Likewise.
14208 * cfgloop.h : Likewise.
14209 * cfgloopanal.c : Likewise.
14210 * cfgloopmanip.c : Likewise.
14211 * cfgrtl.c : Likewise.
14212 * cgraph.c : Likewise.
14213 * cgraphbuild.c : Likewise.
14214 * cgraphclones.c : Likewise.
14215 * cgraphunit.c : Likewise.
14216 * cilk-common.c : Likewise.
14217 * combine-stack-adj.c : Likewise.
14218 * combine.c : Likewise.
14219 * compare-elim.c : Likewise.
14220 * context.c : Likewise.
14221 * convert.c : Likewise.
14222 * coverage.c : Likewise.
14223 * cppbuiltin.c : Likewise.
14224 * cprop.c : Likewise.
14225 * cse.c : Likewise.
14226 * cselib.c : Likewise.
14227 * data-streamer-in.c : Likewise.
14228 * data-streamer-out.c : Likewise.
14229 * data-streamer.c : Likewise.
14230 * data-streamer.h : Likewise.
14231 * dbxout.c : Likewise.
14232 * dce.c : Likewise.
14233 * ddg.c : Likewise.
14234 * debug.c : Likewise.
14235 * df-core.c : Likewise.
14236 * df-problems.c : Likewise.
14237 * df-scan.c : Likewise.
14239 * dfp.c : Likewise.
14240 * dojump.c : Likewise.
14241 * dominance.c : Likewise.
14242 * domwalk.c : Likewise.
14243 * double-int.c : Likewise.
14244 * dse.c : Likewise.
14245 * dumpfile.c : Likewise.
14246 * dwarf2asm.c : Likewise.
14247 * dwarf2cfi.c : Likewise.
14248 * dwarf2out.c : Likewise.
14249 * emit-rtl.c : Likewise.
14250 * et-forest.c : Likewise.
14251 * except.c : Likewise.
14252 * except.h : Likewise.
14253 * explow.c : Likewise.
14254 * expmed.c : Likewise.
14255 * expr.c : Likewise.
14256 * final.c : Likewise.
14257 * fixed-value.c : Likewise.
14258 * fold-const.c : Likewise.
14259 * function.c : Likewise.
14260 * fwprop.c : Likewise.
14261 * gcc-plugin.h : Likewise.
14262 * gcc.c : Likewise.
14263 * gcse-common.c : Likewise.
14264 * gcse.c : Likewise.
14265 * genattrtab.c : Likewise.
14266 * genautomata.c : Likewise.
14267 * genconditions.c : Likewise.
14268 * genemit.c : Likewise.
14269 * generic-match-head.c : Likewise.
14270 * genextract.c : Likewise.
14271 * gengtype-state.c : Likewise.
14272 * gengtype.c : Likewise.
14273 * genhooks.c : Likewise.
14274 * genmatch.c : Likewise.
14275 * genmodes.c : Likewise.
14276 * genrecog.c : Likewise.
14277 * gensupport.c : Likewise.
14278 * ggc-common.c : Likewise.
14279 * ggc-internal.h : Likewise.
14280 * ggc-none.c : Likewise.
14281 * ggc-page.c : Likewise.
14282 * gimple-builder.c : Likewise.
14283 * gimple-expr.c : Likewise.
14284 * gimple-fold.c : Likewise.
14285 * gimple-iterator.c : Likewise.
14286 * gimple-low.c : Likewise.
14287 * gimple-match-head.c : Likewise.
14288 * gimple-pretty-print.c : Likewise.
14289 * gimple-ssa-isolate-paths.c : Likewise.
14290 * gimple-ssa-strength-reduction.c : Likewise.
14291 * gimple-ssa.h : Likewise.
14292 * gimple-streamer-in.c : Likewise.
14293 * gimple-streamer-out.c : Likewise.
14294 * gimple-streamer.h : Likewise.
14295 * gimple-walk.c : Likewise.
14296 * gimple.c : Likewise.
14297 * gimplify-me.c : Likewise.
14298 * gimplify.c : Likewise.
14299 * godump.c : Likewise.
14300 * graph.c : Likewise.
14301 * graphds.c : Likewise.
14302 * graphite-blocking.c : Likewise.
14303 * graphite-dependences.c : Likewise.
14304 * graphite-interchange.c : Likewise.
14305 * graphite-isl-ast-to-gimple.c : Likewise.
14306 * graphite-optimize-isl.c : Likewise.
14307 * graphite-poly.c : Likewise.
14308 * graphite-scop-detection.c : Likewise.
14309 * graphite-sese-to-poly.c : Likewise.
14310 * graphite.c : Likewise.
14311 * haifa-sched.c : Likewise.
14312 * hard-reg-set.h : Likewise.
14313 * hw-doloop.c : Likewise.
14314 * ifcvt.c : Likewise.
14315 * inchash.c : Likewise.
14316 * incpath.c : Likewise.
14317 * init-regs.c : Likewise.
14318 * input.c : Likewise.
14319 * internal-fn.c : Likewise.
14320 * ipa-chkp.c : Likewise.
14321 * ipa-comdats.c : Likewise.
14322 * ipa-cp.c : Likewise.
14323 * ipa-devirt.c : Likewise.
14324 * ipa-icf-gimple.c : Likewise.
14325 * ipa-icf.c : Likewise.
14326 * ipa-inline-analysis.c : Likewise.
14327 * ipa-inline-transform.c : Likewise.
14328 * ipa-inline.c : Likewise.
14329 * ipa-polymorphic-call.c : Likewise.
14330 * ipa-profile.c : Likewise.
14331 * ipa-prop.c : Likewise.
14332 * ipa-pure-const.c : Likewise.
14333 * ipa-ref.c : Likewise.
14334 * ipa-reference.c : Likewise.
14335 * ipa-split.c : Likewise.
14336 * ipa-utils.c : Likewise.
14337 * ipa-visibility.c : Likewise.
14338 * ipa.c : Likewise.
14339 * ira-build.c : Likewise.
14340 * ira-color.c : Likewise.
14341 * ira-conflicts.c : Likewise.
14342 * ira-costs.c : Likewise.
14343 * ira-emit.c : Likewise.
14344 * ira-lives.c : Likewise.
14345 * ira.c : Likewise.
14346 * jump.c : Likewise.
14347 * langhooks.c : Likewise.
14348 * lcm.c : Likewise.
14349 * libfuncs.h : Likewise.
14350 * lists.c : Likewise.
14351 * loop-doloop.c : Likewise.
14352 * loop-init.c : Likewise.
14353 * loop-invariant.c : Likewise.
14354 * loop-iv.c : Likewise.
14355 * loop-unroll.c : Likewise.
14356 * lower-subreg.c : Likewise.
14357 * lra-assigns.c : Likewise.
14358 * lra-coalesce.c : Likewise.
14359 * lra-constraints.c : Likewise.
14360 * lra-eliminations.c : Likewise.
14361 * lra-lives.c : Likewise.
14362 * lra-remat.c : Likewise.
14363 * lra-spills.c : Likewise.
14364 * lra.c : Likewise.
14365 * lto-cgraph.c : Likewise.
14366 * lto-compress.c : Likewise.
14367 * lto-opts.c : Likewise.
14368 * lto-section-in.c : Likewise.
14369 * lto-section-out.c : Likewise.
14370 * lto-streamer-in.c : Likewise.
14371 * lto-streamer-out.c : Likewise.
14372 * lto-streamer.c : Likewise.
14373 * lto-streamer.h : Likewise.
14374 * mcf.c : Likewise.
14375 * mode-switching.c : Likewise.
14376 * modulo-sched.c : Likewise.
14377 * omega.c : Likewise.
14378 * omp-low.c : Likewise.
14379 * optabs.c : Likewise.
14380 * opts-global.c : Likewise.
14381 * opts.h : Likewise.
14382 * passes.c : Likewise.
14383 * plugin.c : Likewise.
14384 * postreload-gcse.c : Likewise.
14385 * postreload.c : Likewise.
14386 * predict.c : Likewise.
14387 * print-rtl.c : Likewise.
14388 * print-tree.c : Likewise.
14389 * profile.c : Likewise.
14390 * read-md.c : Likewise.
14391 * read-md.h : Likewise.
14392 * read-rtl.c : Likewise.
14393 * real.c : Likewise.
14394 * realmpfr.c : Likewise.
14395 * recog.c : Likewise.
14396 * ree.c : Likewise.
14397 * reg-stack.c : Likewise.
14398 * regcprop.c : Likewise.
14399 * reginfo.c : Likewise.
14400 * regrename.c : Likewise.
14401 * regstat.c : Likewise.
14402 * reload.c : Likewise.
14403 * reload1.c : Likewise.
14404 * reorg.c : Likewise.
14405 * resource.c : Likewise.
14406 * rtl-chkp.c : Likewise.
14407 * rtl.c : Likewise.
14408 * rtl.h : Likewise.
14409 * rtlanal.c : Likewise.
14410 * rtlhash.c : Likewise.
14411 * rtlhash.h : Likewise.
14412 * rtlhooks.c : Likewise.
14413 * sanopt.c : Likewise.
14414 * sched-deps.c : Likewise.
14415 * sched-ebb.c : Likewise.
14416 * sched-rgn.c : Likewise.
14417 * sched-vis.c : Likewise.
14418 * sdbout.c : Likewise.
14419 * sel-sched-dump.c : Likewise.
14420 * sel-sched-ir.c : Likewise.
14421 * sel-sched-ir.h : Likewise.
14422 * sel-sched.c : Likewise.
14423 * sese.c : Likewise.
14424 * shrink-wrap.c : Likewise.
14425 * shrink-wrap.h : Likewise.
14426 * simplify-rtx.c : Likewise.
14427 * stack-ptr-mod.c : Likewise.
14428 * statistics.c : Likewise.
14429 * stmt.c : Likewise.
14430 * stor-layout.c : Likewise.
14431 * store-motion.c : Likewise.
14432 * stringpool.c : Likewise.
14433 * symtab.c : Likewise.
14434 * target-globals.c : Likewise.
14435 * targhooks.c : Likewise.
14436 * tlink.c : Likewise.
14437 * toplev.c : Likewise.
14438 * tracer.c : Likewise.
14439 * trans-mem.c : Likewise.
14440 * tree-affine.c : Likewise.
14441 * tree-affine.h : Likewise.
14442 * tree-browser.c : Likewise.
14443 * tree-call-cdce.c : Likewise.
14444 * tree-cfg.c : Likewise.
14445 * tree-cfgcleanup.c : Likewise.
14446 * tree-chkp-opt.c : Likewise.
14447 * tree-chkp.c : Likewise.
14448 * tree-chrec.c : Likewise.
14449 * tree-complex.c : Likewise.
14450 * tree-data-ref.c : Likewise.
14451 * tree-dfa.c : Likewise.
14452 * tree-diagnostic.c : Likewise.
14453 * tree-dump.c : Likewise.
14454 * tree-eh.c : Likewise.
14455 * tree-eh.h : Likewise.
14456 * tree-emutls.c : Likewise.
14457 * tree-hasher.h : Likewise.
14458 * tree-if-conv.c : Likewise.
14459 * tree-inline.c : Likewise.
14460 * tree-inline.h : Likewise.
14461 * tree-into-ssa.c : Likewise.
14462 * tree-iterator.c : Likewise.
14463 * tree-loop-distribution.c : Likewise.
14464 * tree-nested.c : Likewise.
14465 * tree-nrv.c : Likewise.
14466 * tree-object-size.c : Likewise.
14467 * tree-outof-ssa.c : Likewise.
14468 * tree-parloops.c : Likewise.
14469 * tree-phinodes.c : Likewise.
14470 * tree-predcom.c : Likewise.
14471 * tree-pretty-print.c : Likewise.
14472 * tree-profile.c : Likewise.
14473 * tree-scalar-evolution.c : Likewise.
14474 * tree-sra.c : Likewise.
14475 * tree-ssa-address.c : Likewise.
14476 * tree-ssa-alias.c : Likewise.
14477 * tree-ssa-ccp.c : Likewise.
14478 * tree-ssa-coalesce.c : Likewise.
14479 * tree-ssa-copy.c : Likewise.
14480 * tree-ssa-copyrename.c : Likewise.
14481 * tree-ssa-dce.c : Likewise.
14482 * tree-ssa-dom.c : Likewise.
14483 * tree-ssa-dse.c : Likewise.
14484 * tree-ssa-forwprop.c : Likewise.
14485 * tree-ssa-ifcombine.c : Likewise.
14486 * tree-ssa-live.c : Likewise.
14487 * tree-ssa-loop-ch.c : Likewise.
14488 * tree-ssa-loop-im.c : Likewise.
14489 * tree-ssa-loop-ivcanon.c : Likewise.
14490 * tree-ssa-loop-ivopts.c : Likewise.
14491 * tree-ssa-loop-manip.c : Likewise.
14492 * tree-ssa-loop-niter.c : Likewise.
14493 * tree-ssa-loop-prefetch.c : Likewise.
14494 * tree-ssa-loop-unswitch.c : Likewise.
14495 * tree-ssa-loop.c : Likewise.
14496 * tree-ssa-math-opts.c : Likewise.
14497 * tree-ssa-operands.c : Likewise.
14498 * tree-ssa-phiopt.c : Likewise.
14499 * tree-ssa-phiprop.c : Likewise.
14500 * tree-ssa-pre.c : Likewise.
14501 * tree-ssa-propagate.c : Likewise.
14502 * tree-ssa-reassoc.c : Likewise.
14503 * tree-ssa-sccvn.c : Likewise.
14504 * tree-ssa-scopedtables.c : Likewise.
14505 * tree-ssa-sink.c : Likewise.
14506 * tree-ssa-strlen.c : Likewise.
14507 * tree-ssa-structalias.c : Likewise.
14508 * tree-ssa-tail-merge.c : Likewise.
14509 * tree-ssa-ter.c : Likewise.
14510 * tree-ssa-threadedge.c : Likewise.
14511 * tree-ssa-threadupdate.c : Likewise.
14512 * tree-ssa-uncprop.c : Likewise.
14513 * tree-ssa-uninit.c : Likewise.
14514 * tree-ssa.c : Likewise.
14515 * tree-ssanames.c : Likewise.
14516 * tree-stdarg.c : Likewise.
14517 * tree-streamer-in.c : Likewise.
14518 * tree-streamer-out.c : Likewise.
14519 * tree-streamer.c : Likewise.
14520 * tree-streamer.h : Likewise.
14521 * tree-switch-conversion.c : Likewise.
14522 * tree-tailcall.c : Likewise.
14523 * tree-vect-data-refs.c : Likewise.
14524 * tree-vect-generic.c : Likewise.
14525 * tree-vect-loop-manip.c : Likewise.
14526 * tree-vect-loop.c : Likewise.
14527 * tree-vect-patterns.c : Likewise.
14528 * tree-vect-slp.c : Likewise.
14529 * tree-vect-stmts.c : Likewise.
14530 * tree-vectorizer.c : Likewise.
14531 * tree-vectorizer.h : Likewise.
14532 * tree-vrp.c : Likewise.
14533 * tree.c : Likewise.
14534 * tsan.c : Likewise.
14535 * ubsan.c : Likewise.
14536 * valtrack.c : Likewise.
14537 * valtrack.h : Likewise.
14538 * value-prof.c : Likewise.
14539 * var-tracking.c : Likewise.
14540 * varasm.c : Likewise.
14541 * varpool.c : Likewise.
14543 * vmsdbgout.c : Likewise.
14544 * vtable-verify.c : Likewise.
14545 * vtable-verify.h : Likewise.
14546 * web.c : Likewise.
14547 * wide-int.cc : Likewise.
14548 * xcoffout.c : Likewise.
14549 * config/aarch64/aarch64-builtins.c : Likewise.
14550 * config/aarch64/aarch64.c : Likewise.
14551 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14552 * config/alpha/alpha.c : Likewise.
14553 * config/arc/arc.c : Likewise.
14554 * config/arm/aarch-common.c : Likewise.
14555 * config/arm/arm-builtins.c : Likewise.
14556 * config/arm/arm-c.c : Likewise.
14557 * config/arm/arm.c : Likewise.
14558 * config/avr/avr-c.c : Likewise.
14559 * config/avr/avr-log.c : Likewise.
14560 * config/avr/avr.c : Likewise.
14561 * config/bfin/bfin.c : Likewise.
14562 * config/c6x/c6x.c : Likewise.
14563 * config/cr16/cr16.c : Likewise.
14564 * config/cris/cris.c : Likewise.
14565 * config/darwin-c.c : Likewise.
14566 * config/darwin.c : Likewise.
14567 * config/default-c.c : Likewise.
14568 * config/epiphany/epiphany.c : Likewise.
14569 * config/epiphany/mode-switch-use.c : Likewise.
14570 * config/epiphany/resolve-sw-modes.c : Likewise.
14571 * config/fr30/fr30.c : Likewise.
14572 * config/frv/frv.c : Likewise.
14573 * config/ft32/ft32.c : Likewise.
14574 * config/glibc-c.c : Likewise.
14575 * config/h8300/h8300.c : Likewise.
14576 * config/i386/i386-c.c : Likewise.
14577 * config/i386/i386.c : Likewise.
14578 * config/i386/msformat-c.c : Likewise.
14579 * config/i386/winnt-cxx.c : Likewise.
14580 * config/i386/winnt-stubs.c : Likewise.
14581 * config/i386/winnt.c : Likewise.
14582 * config/ia64/ia64-c.c : Likewise.
14583 * config/ia64/ia64.c : Likewise.
14584 * config/iq2000/iq2000.c : Likewise.
14585 * config/lm32/lm32.c : Likewise.
14586 * config/m32c/m32c-pragma.c : Likewise.
14587 * config/m32c/m32c.c : Likewise.
14588 * config/m32r/m32r.c : Likewise.
14589 * config/m68k/m68k.c : Likewise.
14590 * config/mcore/mcore.c : Likewise.
14591 * config/mep/mep-pragma.c : Likewise.
14592 * config/mep/mep.c : Likewise.
14593 * config/microblaze/microblaze-c.c : Likewise.
14594 * config/microblaze/microblaze.c : Likewise.
14595 * config/mips/mips.c : Likewise.
14596 * config/mmix/mmix.c : Likewise.
14597 * config/mn10300/mn10300.c : Likewise.
14598 * config/moxie/moxie.c : Likewise.
14599 * config/msp430/msp430-c.c : Likewise.
14600 * config/msp430/msp430.c : Likewise.
14601 * config/nds32/nds32-cost.c : Likewise.
14602 * config/nds32/nds32-fp-as-gp.c : Likewise.
14603 * config/nds32/nds32-intrinsic.c : Likewise.
14604 * config/nds32/nds32-isr.c : Likewise.
14605 * config/nds32/nds32-md-auxiliary.c : Likewise.
14606 * config/nds32/nds32-memory-manipulation.c : Likewise.
14607 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14608 * config/nds32/nds32-predicates.c : Likewise.
14609 * config/nds32/nds32.c : Likewise.
14610 * config/nios2/nios2.c : Likewise.
14611 * config/nvptx/nvptx.c : Likewise.
14612 * config/pa/pa.c : Likewise.
14613 * config/pdp11/pdp11.c : Likewise.
14614 * config/rl78/rl78-c.c : Likewise.
14615 * config/rl78/rl78.c : Likewise.
14616 * config/rs6000/rs6000-c.c : Likewise.
14617 * config/rs6000/rs6000.c : Likewise.
14618 * config/rx/rx.c : Likewise.
14619 * config/s390/s390-c.c : Likewise.
14620 * config/s390/s390.c : Likewise.
14621 * config/sh/sh-c.c : Likewise.
14622 * config/sh/sh-mem.cc : Likewise.
14623 * config/sh/sh.c : Likewise.
14624 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14625 * config/sh/sh_treg_combine.cc : Likewise.
14626 * config/sol2-c.c : Likewise.
14627 * config/sol2-cxx.c : Likewise.
14628 * config/sol2-stubs.c : Likewise.
14629 * config/sol2.c : Likewise.
14630 * config/sparc/sparc-c.c : Likewise.
14631 * config/sparc/sparc.c : Likewise.
14632 * config/spu/spu-c.c : Likewise.
14633 * config/spu/spu.c : Likewise.
14634 * config/stormy16/stormy16.c : Likewise.
14635 * config/tilegx/mul-tables.c : Likewise.
14636 * config/tilegx/tilegx-c.c : Likewise.
14637 * config/tilegx/tilegx.c : Likewise.
14638 * config/tilepro/mul-tables.c : Likewise.
14639 * config/tilepro/tilepro-c.c : Likewise.
14640 * config/tilepro/tilepro.c : Likewise.
14641 * config/v850/v850-c.c : Likewise.
14642 * config/v850/v850.c : Likewise.
14643 * config/vax/vax.c : Likewise.
14644 * config/visium/visium.c : Likewise.
14645 * config/vms/vms-c.c : Likewise.
14646 * config/vms/vms.c : Likewise.
14647 * config/vxworks.c : Likewise.
14648 * config/winnt-c.c : Likewise.
14649 * config/xtensa/xtensa.c : Likewise.
14651 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
14654 * ipa-utils.h (warn_types_mismatch): Update prototype.
14655 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14657 (type_mismatch_p): New function.
14658 (warn_types_mismatch): Reorg to work better on non-C++ types.
14659 (odr_types_equivalent_p): Add loc1/loc2 parameters.
14660 (add_type_duplicate): Update.
14662 2015-06-08 Tom de Vries <tom@codesourcery.com>
14664 PR rtl-optimization/66444
14665 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14668 2015-06-08 Richard Biener <rguenther@suse.de>
14670 PR tree-optimization/66422
14671 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14672 block after inserted gcc_unreachable.
14674 2015-06-08 Nick Clifton <nickc@redhat.com>
14676 * config/rx/rx.c (rx_function_value): Do not promote vector types.
14677 (rx_promote_function_mode): Likewise.
14678 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14680 2015-06-08 Jakub Jelinek <jakub@redhat.com>
14682 * genattrtab.c (insn_alternatives): Change type from int *
14684 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14685 (get_attr_value): Change type of num_alt to uint64_t.
14686 (compute_alternative_mask): Change return type from
14687 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14688 (make_alternative_compare, mk_attr_alt): Change argument type
14689 from int to uint64_t.
14690 (simplify_test_exp): Change type of i from int to uint64_t.
14691 Shift ((uint64_t) 1) instead of 1 up.
14692 (main): Adjust oballocvec first argument from int to uint64_t.
14693 Shift ((uint64_t) 1) instead of 1 up.
14695 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14698 * gdbhooks.py: Import sys.
14699 (intptr): New function. Replace int(...) by intptr(...).
14701 2015-06-08 Richard Biener <rguenther@suse.de>
14703 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14704 adjustment for gaps at the end of a SLP load group properly.
14705 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14706 all permutations we can generate.
14707 (vect_transform_slp_perm_load): Use the correct group-size.
14709 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
14711 * genmatch.c (expr::gen_transform): For conditions, guess the type
14712 from the second operand.
14714 2015-06-08 Tom de Vries <tom@codesourcery.com>
14716 PR tree-optimization/66442
14717 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14718 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14719 if the loop latch is not a singleton. Use
14720 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14722 2015-06-08 Marek Polacek <polacek@redhat.com>
14725 * toplev.c (check_global_declaration): Don't warn about artificial
14728 2015-06-08 Tom de Vries <tom@codesourcery.com>
14730 PR tree-optimization/66436
14731 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14733 * gimplify.c: Add tree-dump.h include.
14734 (gimplify_function_tree): Dump function to gimple dump file.
14735 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14738 2015-06-08 Tom de Vries <tom@codesourcery.com>
14740 PR tree-optimization/66435
14741 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14744 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
14746 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14747 of ptr_type_node to not be ptr_to_node.
14748 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14749 TREE_TYPE of pointers.
14750 * gimple-expr.c (useless_type_conversion): Reorder the check for
14751 function pointers and TYPE_CANONICAL.
14753 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
14756 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14757 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14758 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14760 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14761 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14762 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14763 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14764 and non iso if unix2003.
14766 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
14768 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14770 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
14772 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14773 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14774 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14775 except.c, final.c, function.c, gcse-common.c, genemit.c,
14776 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14777 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14778 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14779 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14782 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
14784 * combine.c (combine_split_insns): Remove cast.
14785 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14786 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14787 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14788 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14789 * genemit.c (gen_split): Change return type of generated functions to
14791 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14792 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14793 gen_peephole2_* functions.
14794 (print_subroutine, main): Likewise.
14795 * recog.c (peephole2_optimize): Remove cast.
14796 (peep2_next_insn): Promote return type to rtx_insn.
14797 * recog.h (peep2_next_insn): Fix prototype.
14798 * rtl.h (try_split, split_insns): Likewise.
14800 2015-06-06 DJ Delorie <dj@redhat.com>
14802 * config/msp430/msp430.c (msp430_asm_integer): Support addition
14803 and subtraction too.
14805 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
14808 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14809 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14810 instead of Snd. Disparage Sid/z alternative with '^'.
14812 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
14814 * dwarf2out.c: Remove deferred_locations*.
14815 (dwarf2_debug_hooks): Add early_finish hook.
14816 Remove global_decl hook.
14817 Add early_global_decl and late_global_decl hook.
14818 New global early_dwarf.
14819 New structure set_early_dwarf.
14820 (output_die): Indicate whether a DIE was generated early
14821 when generating assembly with -dA.
14822 (struct limbo_die_struct): Document created_for field.
14823 Remove file_table_last_lookup.
14824 (remove_AT): Return TRUE if successful.
14825 (remove_child_TAG): Clear die_parent.
14826 (reparent_child): New function abstracted from...
14827 (splice_child_die): ...here.
14828 (new_die): ICE if a DIE ends up in limbo too late.
14830 (defer_location): Remove.
14831 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14832 (fill_variable_array_bounds): New.
14833 (decl_start_label): Call fill_variable_array_bounds.
14834 (gen_formal_parameter_die): Rewrite to reuse previously generated
14836 (gen_subprogram_die): Same.
14837 (gen_variable_die): Same.
14838 (gen_const_die): Same.
14839 (gen_label_die): Same.
14840 (gen_lexical_block_die): Same.
14841 (decl_will_get_specification_p): New.
14842 (local_function_static): New.
14843 (gen_struct_or_union_type_die): Fill in variable-length fields.
14844 (gen_typedef_die): Fill in variable-length typedefs.
14845 (gen_tagged_type_die): Gracefully return on error_mark_node.
14846 Handle re-entrancy.
14847 (gen_type_die_with_usage): Handle variable-length types.
14848 Remove duplicate code for ARRAY_TYPE case.
14849 (process_scope_var): Only process imported modules during early
14851 (dwarf2out_early_global_decl): New.
14852 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14853 (dwarf2out_type_decl): Set early_dwarf while calling
14855 (dwarf2out_decl): Verify that we did not recreate a previously
14857 Do not return on DECL_EXTERNALs in VAR_DECLs.
14858 Abstract some code to local_function_static.
14859 (lookup_filename): Remove use of file_table_last_lookup.
14860 Gracefully exit on missing file_name.
14861 (dwarf2out_finish): Verify limbo list.
14862 Remove deferred_locations_list use.
14863 Move deferred_asm_name and limbo flushing to...
14864 (dwarf2out_early_finish): ...here. New.
14865 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14866 deferred_asm_name, and file_table_last_lookup.
14867 * cgraph.h (referred_to_p): Add default argument.
14868 * cgraphunit.c (referred_to_p): Add and handle include_self
14870 (analyze_functions): Add first_time argument.
14871 Call check_global_declaration for all symbols.
14872 Call late_global_decl for nodes for moribund nodes.
14873 (finalize_compilation_unit): Add new argument to
14875 Call early_global_decl for functions.
14876 Call early_finish debug hook.
14877 * dbxout.c (dbxout_early_global_decl): New.
14878 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14879 (dbx_debug_hooks): Add new hooks.
14880 (xcoff_debug_hooks): Same.
14881 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14882 Add early and late debug hooks.
14883 Remove global_decl hook.
14884 * debug.h (struct gcc_debug_hooks): Add early_finish,
14885 early_global_decl, and late_global_decl fields.
14886 Remove global_decl field.
14887 Document gcc_debug_hooks.
14888 * gengtype.c (output_typename): Remove.
14889 * godump.c (go_early_global_decl): New.
14890 (go_late_global_decl): New.
14891 (go_global_decl): Remove.
14892 (dump_go_spec_init): Remove global_decl. Add
14893 {early,late}_global_decl.
14894 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14895 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14896 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14897 (write_global_declarations): Remove.
14898 (global_decl_processing): New.
14899 * langhooks.h (struct lang_hooks_for_decls): Remove
14900 final_write_globals field.
14901 Add post_compilation_parsing_cleanups field.
14902 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14903 * sdbout.c: Add early and late_global_decl hooks. Remove
14904 sdbout_global_decl hook.
14905 Add early_finish field for sdb_debug_hooks.
14906 (sdbout_global_decl): Remove.
14907 (sdbout_early_global_decl): New.
14908 (sdbout_late_global_decl): New.
14909 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14910 * toplev.c (check_global_declaration): Rename from
14911 check_global_declaration_1.
14912 Adapt to use symtab infrastructure.
14913 (check_global_declarations): Remove.
14914 (emit_debug_global_declarations): Remove.
14915 (compile_file): Remove call to final_write_globals langhook.
14916 Run the actual compilation process.
14917 Perform any post compilation parser cleanups.
14918 Generate late debug info.
14919 * toplev.h (check_global_declaration): New.
14920 (check_global_declaration_1): Remove.
14921 (check_global_declarations): Remove.
14922 (write_global_declarations): Remove.
14923 (emit_debug_global_declarations): Remove.
14924 (global_decl_processing): New.
14925 * tree-core.h (struct tree_block): Add DIE field.
14926 * tree.h (BLOCK_DIE): New.
14927 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14929 (vmsdbgout_early_global_decl): New.
14930 (vmsdbgout_late_global_decl): New.
14931 Add early_finish debug hook field to vmsdbg_debug_hooks.
14932 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14933 Add early and late_global_decl debug hooks.
14935 2015-06-05 Julian Brown <julian@codesourcery.com>
14936 Sandra Loosemore <sandra@codesourcery.com>
14938 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14939 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14940 to print-sysroot-suffix.sh script.
14942 2015-06-05 Tom de Vries <tom@codesourcery.com>
14944 merge from gomp4 branch:
14945 2015-05-28 Tom de Vries <tom@codesourcery.com>
14947 PR tree-optimization/65443
14948 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14949 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14950 (try_transform_to_exit_first_loop_alt): New function.
14951 (transform_to_exit_first_loop): Use
14952 try_transform_to_exit_first_loop_alt.
14954 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14956 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14957 emit_cmp_and_jump_insns with the mode of target.
14959 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14961 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14963 2015-06-04 DJ Delorie <dj@redhat.com>
14965 * config/msp430/msp430.md (movsi_s): New. Special case for
14966 storing a 20-bit symbol into a 32-bit register.
14967 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14968 * config/msp430/predicates.md (msp430_symbol_operand): New.
14970 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14972 * c-family/c-common.c (noplt): New attribute.
14973 (handle_noplt_attribute): New handler.
14974 * calls.c (prepare_call_address): Check for noplt
14976 * config/i386/i386.c (ix86_expand_call): Check
14977 for noplt attribute.
14978 (ix86_nopic_noplt_attribute_p): New function.
14979 (ix86_output_call_insn): Output indirect call for non-pic
14981 * doc/extend.texi (noplt): Document new attribute.
14982 * doc/invoke.texi: Document new attribute.
14984 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14986 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14987 real.h, and fixed-value.h when included in host source files.
14988 * double-int.h: Remove redundant #includes listed above.
14989 * fixed-value.h: Likewise.
14990 * real.h: Likewise.
14991 * wide-int.h: Likewise.
14992 * inchash.h: Likewise.
14993 * rtl.h: Add some include files When included from a generator file.
14994 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14995 * internal-fn.h: Don't include coretypes.h.
14996 * alias.c: Adjust includes for restructured coretypes.h.
14997 * asan.c: Likewise.
14998 * attribs.c: Likewise.
14999 * auto-inc-dec.c: Likewise.
15000 * auto-profile.c: Likewise.
15001 * bb-reorder.c: Likewise.
15002 * bt-load.c: Likewise.
15003 * builtins.c: Likewise.
15004 * caller-save.c: Likewise.
15005 * calls.c: Likewise.
15006 * ccmp.c: Likewise.
15008 * cfganal.c: Likewise.
15009 * cfgbuild.c: Likewise.
15010 * cfgcleanup.c: Likewise.
15011 * cfgexpand.c: Likewise.
15012 * cfghooks.c: Likewise.
15013 * cfgloop.c: Likewise.
15014 * cfgloop.h: Likewise.
15015 * cfgloopanal.c: Likewise.
15016 * cfgloopmanip.c: Likewise.
15017 * cfgrtl.c: Likewise.
15018 * cgraph.c: Likewise.
15019 * cgraphbuild.c: Likewise.
15020 * cgraphclones.c: Likewise.
15021 * cgraphunit.c: Likewise.
15022 * cilk-common.c: Likewise.
15023 * combine-stack-adj.c: Likewise.
15024 * combine.c: Likewise.
15025 * compare-elim.c: Likewise.
15026 * convert.c: Likewise.
15027 * coverage.c: Likewise.
15028 * cppbuiltin.c: Likewise.
15029 * cprop.c: Likewise.
15031 * cselib.c: Likewise.
15032 * data-streamer-in.c: Likewise.
15033 * data-streamer-out.c: Likewise.
15034 * data-streamer.c: Likewise.
15035 * dbxout.c: Likewise.
15038 * debug.c: Likewise.
15039 * df-core.c: Likewise.
15040 * df-problems.c: Likewise.
15041 * df-scan.c: Likewise.
15044 * dojump.c: Likewise.
15045 * dominance.c: Likewise.
15046 * domwalk.c: Likewise.
15047 * double-int.c: Likewise.
15049 * dumpfile.c: Likewise.
15050 * dwarf2asm.c: Likewise.
15051 * dwarf2cfi.c: Likewise.
15052 * dwarf2out.c: Likewise.
15053 * dwarf2out.h: Likewise.
15054 * emit-rtl.c: Likewise.
15055 * et-forest.c: Likewise.
15056 * except.c: Likewise.
15057 * explow.c: Likewise.
15058 * expmed.c: Likewise.
15059 * expr.c: Likewise.
15060 * final.c: Likewise.
15061 * fixed-value.c: Likewise.
15062 * fold-const.c: Likewise.
15063 * function.c: Likewise.
15064 * fwprop.c: Likewise.
15065 * gcc-plugin.h: Likewise.
15066 * gcse.c: Likewise.
15067 * generic-match-head.c: Likewise.
15068 * ggc-page.c: Likewise.
15069 * gimple-builder.c: Likewise.
15070 * gimple-expr.c: Likewise.
15071 * gimple-fold.c: Likewise.
15072 * gimple-iterator.c: Likewise.
15073 * gimple-low.c: Likewise.
15074 * gimple-match-head.c: Likewise.
15075 * gimple-pretty-print.c: Likewise.
15076 * gimple-ssa-isolate-paths.c: Likewise.
15077 * gimple-ssa-strength-reduction.c: Likewise.
15078 * gimple-streamer-in.c: Likewise.
15079 * gimple-streamer-out.c: Likewise.
15080 * gimple-streamer.h: Likewise.
15081 * gimple-walk.c: Likewise.
15082 * gimple.c: Likewise.
15083 * gimplify-me.c: Likewise.
15084 * gimplify.c: Likewise.
15085 * godump.c: Likewise.
15086 * graph.c: Likewise.
15087 * graphite-blocking.c: Likewise.
15088 * graphite-dependences.c: Likewise.
15089 * graphite-interchange.c: Likewise.
15090 * graphite-isl-ast-to-gimple.c: Likewise.
15091 * graphite-optimize-isl.c: Likewise.
15092 * graphite-poly.c: Likewise.
15093 * graphite-scop-detection.c: Likewise.
15094 * graphite-sese-to-poly.c: Likewise.
15095 * graphite.c: Likewise.
15096 * haifa-sched.c: Likewise.
15097 * hooks.h: Likewise.
15098 * hw-doloop.c: Likewise.
15099 * ifcvt.c: Likewise.
15100 * incpath.c: Likewise.
15101 * init-regs.c: Likewise.
15102 * internal-fn.c: Likewise.
15103 * ipa-chkp.c: Likewise.
15104 * ipa-comdats.c: Likewise.
15105 * ipa-cp.c: Likewise.
15106 * ipa-devirt.c: Likewise.
15107 * ipa-icf-gimple.c: Likewise.
15108 * ipa-icf.c: Likewise.
15109 * ipa-inline-analysis.c: Likewise.
15110 * ipa-inline-transform.c: Likewise.
15111 * ipa-inline.c: Likewise.
15112 * ipa-polymorphic-call.c: Likewise.
15113 * ipa-profile.c: Likewise.
15114 * ipa-prop.c: Likewise.
15115 * ipa-pure-const.c: Likewise.
15116 * ipa-ref.c: Likewise.
15117 * ipa-reference.c: Likewise.
15118 * ipa-split.c: Likewise.
15119 * ipa-utils.c: Likewise.
15120 * ipa-visibility.c: Likewise.
15122 * ira-build.c: Likewise.
15123 * ira-color.c: Likewise.
15124 * ira-conflicts.c: Likewise.
15125 * ira-costs.c: Likewise.
15126 * ira-emit.c: Likewise.
15127 * ira-lives.c: Likewise.
15129 * jump.c: Likewise.
15130 * langhooks.c: Likewise.
15132 * loop-doloop.c: Likewise.
15133 * loop-init.c: Likewise.
15134 * loop-invariant.c: Likewise.
15135 * loop-iv.c: Likewise.
15136 * loop-unroll.c: Likewise.
15137 * lower-subreg.c: Likewise.
15138 * lra-assigns.c: Likewise.
15139 * lra-coalesce.c: Likewise.
15140 * lra-constraints.c: Likewise.
15141 * lra-eliminations.c: Likewise.
15142 * lra-lives.c: Likewise.
15143 * lra-remat.c: Likewise.
15144 * lra-spills.c: Likewise.
15146 * lto-cgraph.c: Likewise.
15147 * lto-compress.c: Likewise.
15148 * lto-opts.c: Likewise.
15149 * lto-section-in.c: Likewise.
15150 * lto-section-out.c: Likewise.
15151 * lto-streamer-in.c: Likewise.
15152 * lto-streamer-out.c: Likewise.
15153 * lto-streamer.c: Likewise.
15155 * mode-switching.c: Likewise.
15156 * modulo-sched.c: Likewise.
15157 * omega.c: Likewise.
15158 * omp-low.c: Likewise.
15159 * optabs.c: Likewise.
15160 * opts-global.c: Likewise.
15161 * passes.c: Likewise.
15162 * plugin.c: Likewise.
15163 * postreload-gcse.c: Likewise.
15164 * postreload.c: Likewise.
15165 * predict.c: Likewise.
15166 * print-rtl.c: Likewise.
15167 * print-tree.c: Likewise.
15168 * profile.c: Likewise.
15169 * real.c: Likewise.
15170 * realmpfr.c: Likewise.
15171 * realmpfr.h: Likewise.
15172 * recog.c: Likewise.
15174 * reg-stack.c: Likewise.
15175 * regcprop.c: Likewise.
15176 * reginfo.c: Likewise.
15177 * regrename.c: Likewise.
15178 * regs.h: Likewise.
15179 * regstat.c: Likewise.
15180 * reload.c: Likewise.
15181 * reload1.c: Likewise.
15182 * reorg.c: Likewise.
15183 * resource.c: Likewise.
15184 * rtl-chkp.c: Likewise.
15185 * rtlanal.c: Likewise.
15186 * rtlhooks.c: Likewise.
15187 * sanopt.c: Likewise.
15188 * sched-deps.c: Likewise.
15189 * sched-ebb.c: Likewise.
15190 * sched-rgn.c: Likewise.
15191 * sched-vis.c: Likewise.
15192 * sdbout.c: Likewise.
15193 * sel-sched-dump.c: Likewise.
15194 * sel-sched-ir.c: Likewise.
15195 * sel-sched.c: Likewise.
15196 * sese.c: Likewise.
15197 * shrink-wrap.c: Likewise.
15198 * shrink-wrap.h: Likewise.
15199 * simplify-rtx.c: Likewise.
15200 * stack-ptr-mod.c: Likewise.
15201 * statistics.c: Likewise.
15202 * stmt.c: Likewise.
15203 * stor-layout.c: Likewise.
15204 * store-motion.c: Likewise.
15205 * stringpool.c: Likewise.
15206 * symtab.c: Likewise.
15207 * target-globals.c: Likewise.
15208 * targhooks.c: Likewise.
15209 * toplev.c: Likewise.
15210 * tracer.c: Likewise.
15211 * trans-mem.c: Likewise.
15212 * tree-affine.c: Likewise.
15213 * tree-affine.h: Likewise.
15214 * tree-browser.c: Likewise.
15215 * tree-call-cdce.c: Likewise.
15216 * tree-cfg.c: Likewise.
15217 * tree-cfgcleanup.c: Likewise.
15218 * tree-chkp-opt.c: Likewise.
15219 * tree-chkp.c: Likewise.
15220 * tree-chrec.c: Likewise.
15221 * tree-complex.c: Likewise.
15222 * tree-data-ref.c: Likewise.
15223 * tree-dfa.c: Likewise.
15224 * tree-diagnostic.c: Likewise.
15225 * tree-dump.c: Likewise.
15226 * tree-eh.c: Likewise.
15227 * tree-emutls.c: Likewise.
15228 * tree-if-conv.c: Likewise.
15229 * tree-inline.c: Likewise.
15230 * tree-into-ssa.c: Likewise.
15231 * tree-iterator.c: Likewise.
15232 * tree-loop-distribution.c: Likewise.
15233 * tree-nested.c: Likewise.
15234 * tree-nrv.c: Likewise.
15235 * tree-object-size.c: Likewise.
15236 * tree-outof-ssa.c: Likewise.
15237 * tree-parloops.c: Likewise.
15238 * tree-phinodes.c: Likewise.
15239 * tree-predcom.c: Likewise.
15240 * tree-pretty-print.c: Likewise.
15241 * tree-pretty-print.h: Likewise.
15242 * tree-profile.c: Likewise.
15243 * tree-scalar-evolution.c: Likewise.
15244 * tree-sra.c: Likewise.
15245 * tree-ssa-address.c: Likewise.
15246 * tree-ssa-alias.c: Likewise.
15247 * tree-ssa-ccp.c: Likewise.
15248 * tree-ssa-coalesce.c: Likewise.
15249 * tree-ssa-copy.c: Likewise.
15250 * tree-ssa-copyrename.c: Likewise.
15251 * tree-ssa-dce.c: Likewise.
15252 * tree-ssa-dom.c: Likewise.
15253 * tree-ssa-dse.c: Likewise.
15254 * tree-ssa-forwprop.c: Likewise.
15255 * tree-ssa-ifcombine.c: Likewise.
15256 * tree-ssa-live.c: Likewise.
15257 * tree-ssa-loop-ch.c: Likewise.
15258 * tree-ssa-loop-im.c: Likewise.
15259 * tree-ssa-loop-ivcanon.c: Likewise.
15260 * tree-ssa-loop-ivopts.c: Likewise.
15261 * tree-ssa-loop-manip.c: Likewise.
15262 * tree-ssa-loop-niter.c: Likewise.
15263 * tree-ssa-loop-prefetch.c: Likewise.
15264 * tree-ssa-loop-unswitch.c: Likewise.
15265 * tree-ssa-loop.c: Likewise.
15266 * tree-ssa-loop.h: Likewise.
15267 * tree-ssa-math-opts.c: Likewise.
15268 * tree-ssa-operands.c: Likewise.
15269 * tree-ssa-phiopt.c: Likewise.
15270 * tree-ssa-phiprop.c: Likewise.
15271 * tree-ssa-pre.c: Likewise.
15272 * tree-ssa-propagate.c: Likewise.
15273 * tree-ssa-reassoc.c: Likewise.
15274 * tree-ssa-sccvn.c: Likewise.
15275 * tree-ssa-scopedtables.c: Likewise.
15276 * tree-ssa-sink.c: Likewise.
15277 * tree-ssa-strlen.c: Likewise.
15278 * tree-ssa-structalias.c: Likewise.
15279 * tree-ssa-tail-merge.c: Likewise.
15280 * tree-ssa-ter.c: Likewise.
15281 * tree-ssa-threadedge.c: Likewise.
15282 * tree-ssa-threadupdate.c: Likewise.
15283 * tree-ssa-uncprop.c: Likewise.
15284 * tree-ssa-uninit.c: Likewise.
15285 * tree-ssa.c: Likewise.
15286 * tree-ssanames.c: Likewise.
15287 * tree-stdarg.c: Likewise.
15288 * tree-streamer-in.c: Likewise.
15289 * tree-streamer-out.c: Likewise.
15290 * tree-streamer.c: Likewise.
15291 * tree-switch-conversion.c: Likewise.
15292 * tree-tailcall.c: Likewise.
15293 * tree-vect-data-refs.c: Likewise.
15294 * tree-vect-generic.c: Likewise.
15295 * tree-vect-loop-manip.c: Likewise.
15296 * tree-vect-loop.c: Likewise.
15297 * tree-vect-patterns.c: Likewise.
15298 * tree-vect-slp.c: Likewise.
15299 * tree-vect-stmts.c: Likewise.
15300 * tree-vectorizer.c: Likewise.
15301 * tree-vrp.c: Likewise.
15302 * tree.c: Likewise.
15303 * tsan.c: Likewise.
15304 * ubsan.c: Likewise.
15305 * valtrack.c: Likewise.
15306 * value-prof.c: Likewise.
15307 * var-tracking.c: Likewise.
15308 * varasm.c: Likewise.
15309 * varpool.c: Likewise.
15310 * vmsdbgout.c: Likewise.
15311 * vtable-verify.c: Likewise.
15313 * wide-int-print.cc: Likewise.
15314 * wide-int-print.h: Likewise.
15315 * wide-int.cc: Likewise.
15316 * xcoffout.c: Likewise.
15317 * config/aarch64/aarch64-builtins.c: Likewise.
15318 * config/aarch64/aarch64.c: Likewise.
15319 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15320 * config/alpha/alpha.c: Likewise.
15321 * config/arc/arc.c: Likewise.
15322 * config/arm/aarch-common.c: Likewise.
15323 * config/arm/arm-builtins.c: Likewise.
15324 * config/arm/arm-c.c: Likewise.
15325 * config/arm/arm.c: Likewise.
15326 * config/avr/avr-c.c: Likewise.
15327 * config/avr/avr-log.c: Likewise.
15328 * config/avr/avr.c: Likewise.
15329 * config/bfin/bfin.c: Likewise.
15330 * config/c6x/c6x.c: Likewise.
15331 * config/cr16/cr16.c: Likewise.
15332 * config/cris/cris.c: Likewise.
15333 * config/darwin-c.c: Likewise.
15334 * config/darwin.c: Likewise.
15335 * config/default-c.c: Likewise.
15336 * config/epiphany/epiphany.c: Likewise.
15337 * config/epiphany/mode-switch-use.c: Likewise.
15338 * config/epiphany/resolve-sw-modes.c: Likewise.
15339 * config/fr30/fr30.c: Likewise.
15340 * config/frv/frv.c: Likewise.
15341 * config/ft32/ft32.c: Likewise.
15342 * config/glibc-c.c: Likewise.
15343 * config/h8300/h8300.c: Likewise.
15344 * config/i386/i386-c.c: Likewise.
15345 * config/i386/i386.c: Likewise.
15346 * config/i386/msformat-c.c: Likewise.
15347 * config/i386/winnt-cxx.c: Likewise.
15348 * config/i386/winnt-stubs.c: Likewise.
15349 * config/i386/winnt.c: Likewise.
15350 * config/ia64/ia64-c.c: Likewise.
15351 * config/ia64/ia64.c: Likewise.
15352 * config/iq2000/iq2000.c: Likewise.
15353 * config/lm32/lm32.c: Likewise.
15354 * config/m32c/m32c-pragma.c: Likewise.
15355 * config/m32c/m32c.c: Likewise.
15356 * config/m32r/m32r.c: Likewise.
15357 * config/m68k/m68k.c: Likewise.
15358 * config/mcore/mcore.c: Likewise.
15359 * config/mep/mep-pragma.c: Likewise.
15360 * config/mep/mep.c: Likewise.
15361 * config/microblaze/microblaze-c.c: Likewise.
15362 * config/microblaze/microblaze.c: Likewise.
15363 * config/mips/mips.c: Likewise.
15364 * config/mmix/mmix.c: Likewise.
15365 * config/mn10300/mn10300.c: Likewise.
15366 * config/moxie/moxie.c: Likewise.
15367 * config/msp430/msp430-c.c: Likewise.
15368 * config/msp430/msp430.c: Likewise.
15369 * config/nds32/nds32-cost.c: Likewise.
15370 * config/nds32/nds32-fp-as-gp.c: Likewise.
15371 * config/nds32/nds32-intrinsic.c: Likewise.
15372 * config/nds32/nds32-isr.c: Likewise.
15373 * config/nds32/nds32-md-auxiliary.c: Likewise.
15374 * config/nds32/nds32-memory-manipulation.c: Likewise.
15375 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15376 * config/nds32/nds32-predicates.c: Likewise.
15377 * config/nds32/nds32.c: Likewise.
15378 * config/nios2/nios2.c: Likewise.
15379 * config/nvptx/nvptx.c: Likewise.
15380 * config/pa/pa.c: Likewise.
15381 * config/pdp11/pdp11.c: Likewise.
15382 * config/rl78/rl78-c.c: Likewise.
15383 * config/rl78/rl78.c: Likewise.
15384 * config/rs6000/rs6000-c.c: Likewise.
15385 * config/rs6000/rs6000.c: Likewise.
15386 * config/rx/rx.c: Likewise.
15387 * config/s390/s390-c.c: Likewise.
15388 * config/s390/s390.c: Likewise.
15389 * config/sh/sh-c.c: Likewise.
15390 * config/sh/sh-mem.cc: Likewise.
15391 * config/sh/sh.c: Likewise.
15392 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15393 * config/sh/sh_treg_combine.cc: Likewise.
15394 * config/sol2-c.c: Likewise.
15395 * config/sol2-cxx.c: Likewise.
15396 * config/sol2-stubs.c: Likewise.
15397 * config/sol2.c: Likewise.
15398 * config/sparc/sparc-c.c: Likewise.
15399 * config/sparc/sparc.c: Likewise.
15400 * config/spu/spu-c.c: Likewise.
15401 * config/spu/spu.c: Likewise.
15402 * config/stormy16/stormy16.c: Likewise.
15403 * config/tilegx/mul-tables.c: Likewise.
15404 * config/tilegx/tilegx-c.c: Likewise.
15405 * config/tilegx/tilegx.c: Likewise.
15406 * config/tilepro/mul-tables.c: Likewise.
15407 * config/tilepro/tilepro-c.c: Likewise.
15408 * config/tilepro/tilepro.c: Likewise.
15409 * config/v850/v850-c.c: Likewise.
15410 * config/v850/v850.c: Likewise.
15411 * config/vax/vax.c: Likewise.
15412 * config/visium/visium.c: Likewise.
15413 * config/vms/vms-c.c: Likewise.
15414 * config/vms/vms.c: Likewise.
15415 * config/vxworks.c: Likewise.
15416 * config/winnt-c.c: Likewise.
15417 * config/xtensa/xtensa.c: Likewise.
15418 * common/config/bfin/bfin-common.c: Likewise.
15420 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
15422 * tree.h (tree_code_for_canonical_type_merging): New function.
15423 * tree.c (gimple_canonical_types_compatible_p): Use
15424 tree_code_for_canonical_type_merging..
15426 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15430 * doc/tm.texi: Regenerate.
15431 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
15432 * target.def (TARGET_RELAXED_ORDERING): Likewise.
15433 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
15434 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
15435 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
15436 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
15437 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
15438 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
15439 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
15441 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15443 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
15444 register fma steering pass.
15445 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
15446 AARCH64_TUNE_FMA_STEERING.
15448 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
15450 * tree.c (verify_type_variant): Verify that type and variant is
15452 (gimple_canonical_types_compatible_p): Look for main variants.
15454 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15456 * config.gcc (powerpc*-*-*): Add support for a new configure
15457 option --with-advance-toolchain=<xxx> which overrides using the
15458 default header files, libraries and dynamic linker.
15460 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
15461 specs to support the configure --with-advance-toolchain=<xxx>
15463 (INCLUDE_EXTRA_SPEC): Likewise.
15464 (LINK_OS_EXTRA_SPEC32): Likewise.
15465 (LINK_OK_EXTRA_SPEC64): Likewise.
15466 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
15467 (DYNAMIC_LINKER_PREFIX): Likewise.
15468 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
15470 (GLIBC_DYNAMIC_LINKER32): Likewise.
15471 (GLIBC_DYNAMIC_LINKER64): Likewise.
15472 (LINK_OS_LINUX_SPEC32): Likewise.
15473 (LINK_OS_LINUX_SPEC64): Likewise.
15475 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
15476 configuration option.
15478 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
15481 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
15482 to determine current function ABI.
15483 (ix86_function_value_regno_p): Ditto.
15485 2015-06-03 Martin Liska <mliska@suse.cz>
15487 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
15488 * bitmap.h (struct bitmap_usage): Likewise.
15489 * ggc-common.c (struct ggc_usage): Likewise.
15490 * mem-stats.h (struct mem_location): Likewise.
15491 (struct mem_usage): Likewise.
15492 * vec.c (struct vec_usage): Likewise.
15494 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
15496 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
15499 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
15501 * doc/plugins.texi (enum plugin_event): New event.
15502 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
15503 and PLUGIN_FINISH_FUNCTION.
15504 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
15505 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
15507 2015-06-03 Richard Biener <rguenther@suse.de>
15509 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15510 compute GROUP_GAP for the first element.
15511 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
15514 2015-06-03 Nick Clifton <nickc@redhat.com>
15516 * config/rl78/rl78-real.md: Add peepholes to avoid a register
15517 copy when calling a function.
15518 * config/rl78/rl78.c (need_to_save): Do not push the frame
15519 pointer in an interrupt handler prologue if it is never used.
15521 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15523 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15525 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15527 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15528 reference when cloning alias node.
15530 2015-06-03 Martin Liska <mliska@suse.cz>
15532 * alloc-pool.h (struct pool_usage): Correct space padding.
15533 * ggc-page.c (ggc_print_statistics): Align columns in a report.
15534 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15535 * tree.c (dump_tree_statistics): Align columns in a report.
15537 2015-06-03 Martin Liska <mliska@suse.cz>
15539 * alloc-pool.c (allocate_pool_descriptor): Remove.
15540 (struct pool_output_info): Likewise.
15541 (print_alloc_pool_statistics): Likewise.
15542 (dump_alloc_pool_statistics): Likewise.
15543 * alloc-pool.h (struct pool_usage): New struct.
15544 (pool_allocator::initialize): Change usage of memory statistics
15545 to a new interface.
15546 (pool_allocator::release): Likewise.
15547 (pool_allocator::allocate): Likewise.
15548 (pool_allocator::remove): Likewise.
15549 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15550 for a pool allocator.
15551 * mem-stats.h (struct mem_location): Add new ctor.
15552 (struct mem_usage): Add counter for number of
15554 (mem_alloc_description::register_descriptor): New overload of
15555 * mem-stats.h (mem_location::to_string): New function.
15556 * bitmap.h (struct bitmap_usage): Use this new function.
15557 * ggc-common.c (struct ggc_usage): Likewise.
15560 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15562 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15563 of GCC_INSN_FLAGS_H block.
15565 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15567 * explow.c (plus_constant): Update check after force_const_mem call
15568 to see if the value returned is not a NULL_RTX.
15570 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
15572 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15573 remove instumentation thunks calling reachable functions.
15574 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15575 * lto/lto-partition.c (privatize_symbol_name_1): New.
15576 (privatize_symbol_name): Privatize both decl and orig_decl
15577 names for instrumented functions.
15578 * cgraph.c (cgraph_node::verify_node): Add transparent
15579 alias chain check for instrumented node.
15581 2015-06-03 Marek Polacek <polacek@redhat.com>
15585 * tree.c (attribute_value_equal): Handle attribute format.
15586 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15588 2015-06-03 Richard Biener <rguenther@suse.de>
15590 PR tree-optimization/63916
15591 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15592 Forward-propagate non-invariant addresses by splicing their
15593 reference ops if the result isn't going to be used by PRE.
15594 (vn_reference_lookup_3): Remove pointless assert.
15596 2015-06-03 Richard Biener <rguenther@suse.de>
15598 PR tree-optimization/66375
15599 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15600 add to the evolution before following SSA edges.
15602 2015-06-03 Bin Cheng <bin.cheng@arm.com>
15604 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15605 (dump_use, dump_cand, find_induction_variables): Pass new argument
15607 (record_use): Preserve the ssa name information in IV.
15609 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
15611 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15613 (add_mode_tests): Don't add mode tests if the predicate only
15614 accepts scalar constant integers. Otherwise, allow the mode
15615 of "op" to be VOIDmode if the predicate does accept such integers.
15617 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
15620 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15621 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15622 (aarch64_secondary_reload): Likewise
15623 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15625 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15628 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
15629 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15632 * cprop.c (try_replace_reg): Check cost of constants before propagating.
15634 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15636 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15637 provide access to the IBM extended double floating point mode if
15638 long double is IEEE 128-bit floating point.
15639 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15640 point if long double is the IBM extended double type.
15642 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15643 enable adding IEEE 128-bit floating point support.
15644 (-mfloat128-software): Likewise.
15645 (-mfloat128-sw): Likewise.
15647 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15648 128-bit floating point types to occupy any register if
15649 -mlong-double-64. Do not allow use of IFmode/KFmode unless
15650 -mfloat128-software is enabled.
15651 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15653 (rs6000_option_override_internal): Add -mfloat128-* support.
15654 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15656 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15657 and float128 type nodes.
15658 (ieee128_float_type_node): Likewise.
15659 (ibm128_float_type_node): Likewise.
15661 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15664 * config/aarch64/geniterators.sh: Rewrite in awk.
15666 2015-06-02 Martin Liska <mliska@suse.cz>
15668 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15669 values to avoid -Wmaybe-uninitialized errors.
15671 2015-06-02 Richard Biener <rguenther@suse.de>
15674 * dwarf2out.c (lookup_context_die): New function.
15675 (resolve_addr): Avoid forcing a full DIE for the
15676 target of a DW_TAG_GNU_call_site during late compilation.
15677 Instead create a stub DIE without a type if we have a
15678 context DIE present.
15680 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
15682 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15684 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15686 PR tree-optimization/48052
15687 * cfgloop.h (struct control_iv): New.
15688 (struct loop): New field control_ivs.
15689 * tree-ssa-loop-niter.c : Include "stor-layout.h".
15690 (number_of_iterations_lt): Set no_overflow information.
15691 (number_of_iterations_exit): Init control iv in niter struct.
15692 (record_control_iv): New.
15693 (estimate_numbers_of_iterations_loop): Call record_control_iv.
15694 (loop_exits_before_overflow): New. Interface factored out of
15695 scev_probably_wraps_p.
15696 (scev_probably_wraps_p): Factor loop niter related code into
15697 loop_exits_before_overflow.
15698 (free_numbers_of_iterations_estimates_loop): Free control ivs.
15699 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15701 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
15703 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15704 the target doesn't belong to the current function.
15706 2015-06-02 Marek Polacek <polacek@redhat.com>
15708 PR middle-end/66345
15709 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15710 get_maxval_strlen does not produce an INTEGER_CST.
15712 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
15714 * config/arc/constraints.md: Use lower-case names in match_code.
15715 * config/mmix/constraints.md: Likewise.
15717 2015-06-02 Richard Biener <rguenther@suse.de>
15719 PR tree-optimization/65961
15720 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15721 check and clarify dump message.
15722 (vect_build_slp_tree): If all children are built up from scalars
15723 build up the parent from scalars instead.
15724 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15726 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
15729 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
15730 instead of print ... .
15732 2015-06-02 Alan Modra <amodra@gmail.com>
15734 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15737 2015-06-02 Bin Cheng <bin.cheng@arm.com>
15739 PR tree-optimization/52563
15740 PR tree-optimization/62173
15741 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
15742 (alloc_iv, set_iv): New parameter.
15743 (determine_biv_step): Delete.
15744 (find_bivs): Inline original determine_biv_step. Pass new
15745 argument to set_iv.
15746 (idx_find_step): Use no_overflow information for conversion.
15747 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15748 resolve_mixers handle folded_casts.
15749 (instantiate_scev_name): Change bool parameter to bool pointer.
15750 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15751 (instantiate_array_ref, instantiate_scev_not): Ditto.
15752 (instantiate_scev_3, instantiate_scev_2): Ditto.
15753 (instantiate_scev_1, instantiate_scev_r): Ditto.
15754 (instantiate_scev_convert, ): Change parameter. Pass argument
15755 to chrec_convert_aggressive.
15756 (instantiate_scev): Change argument.
15757 (resolve_mixers): New parameter and set it.
15758 (scev_const_prop): New argument.
15759 * tree-scalar-evolution.h (resolve_mixers): New parameter.
15760 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15762 (chrec_convert): New parameter. Move definition below.
15763 (chrec_convert_aggressive): New parameter and set it. Call
15764 convert_affine_scev.
15765 * tree-chrec.h (chrec_convert): New parameter.
15766 (chrec_convert_aggressive): Ditto.
15768 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15770 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15771 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15772 the LHS of a no-return call if its type has variable size.
15773 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15774 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15776 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
15778 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15779 * config.in: Regenerate.
15781 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15783 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15784 consecutive accesses within outer-loop with force_vectorize
15785 for references with zero step in inner-loop.
15787 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15789 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15790 rather than from gcc/build directory.
15792 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15795 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15796 for __sync memory models, emit initial loads and final barriers as
15799 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
15802 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15803 (aarch64_split_atomic_op): Check for __sync memory models, emit
15804 appropriate initial loads and final barriers.
15806 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
15808 * Makefile.in: Fix gcov dependencies that should
15809 not point to a build folder.
15811 2015-06-01 Richard Biener <rguenther@suse.de>
15814 2015-05-29 Richard Biener <rguenther@suse.de>
15816 PR tree-optimization/66314
15817 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15818 parameter that says which loop the new block belongs to.
15819 (ssa_create_duplicates): Blocks duplicated for the threaded
15820 path belong to the loop of the thread destination.
15822 2015-06-01 Martin Liska <mliska@suse.cz>
15824 * sched-deps.c: Include pool-alloc.h before
15825 cselib.h header file is included.
15827 2015-06-01 Richard Biener <rguenther@suse.de>
15829 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15832 2015-06-01 Martin Liska <mliska@suse.cz>
15834 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15835 a function local variable.
15837 2015-06-01 Martin Liska <mliska@suse.cz>
15839 * alloc-pool.c (create_alloc_pool): Remove.
15840 (empty_alloc_pool): Likewise.
15841 (free_alloc_pool): Likewise.
15842 (free_alloc_pool_if_empty): Likewise.
15843 (pool_alloc): Likewise.
15844 (pool_free): Likewise.
15845 * alloc-pool.h: Remove old declarations.
15847 2015-06-01 Martin Liska <mliska@suse.cz>
15849 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15850 (ira_create_object): Likewise.
15851 (ira_create_allocno): Likewise.
15852 (ira_create_live_range): Likewise.
15853 (copy_live_range): Likewise.
15854 (ira_finish_live_range): Likewise.
15855 (ira_free_allocno_costs): Likewise.
15856 (finish_allocno): Likewise.
15857 (finish_allocnos): Likewise.
15858 (initiate_prefs): Likewise.
15859 (ira_create_pref): Likewise.
15860 (finish_pref): Likewise.
15861 (finish_prefs): Likewise.
15862 (initiate_copies): Likewise.
15863 (ira_create_copy): Likewise.
15864 (finish_copy): Likewise.
15865 (finish_copies): Likewise.
15866 (finish_prefs): Likewise.
15868 2015-06-01 Martin Liska <mliska@suse.cz>
15870 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15871 (allocate_and_init_ipcp_value): Likewise.
15872 (ipcp_lattice::add_value): Likewise.
15873 (merge_agg_lats_step): Likewise.
15874 (ipcp_driver): Likewise.
15875 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15876 (ipa_free_all_structures_after_iinln): Likewise.
15877 * ipa-prop.h: Likewise.
15879 2015-06-01 Martin Liska <mliska@suse.cz>
15881 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15883 (set_hint_predicate): Likewise.
15884 (inline_summary_alloc): Likewise.
15885 (reset_inline_edge_summary): Likewise.
15886 (reset_inline_summary): Likewise.
15887 (set_cond_stmt_execution_predicate): Likewise.
15888 (set_switch_stmt_execution_predicate): Likewise.
15889 (compute_bb_predicates): Likewise.
15890 (estimate_function_body_sizes): Likewise.
15891 (inline_free_summary): Likewise.
15893 2015-06-01 Martin Liska <mliska@suse.cz>
15895 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15896 (ipa_edge_duplication_hook): Likewise.
15897 (ipa_free_all_structures_after_ipa_cp): Likewise.
15898 (ipa_free_all_structures_after_iinln): Likewise.
15900 2015-06-01 Martin Liska <mliska@suse.cz>
15902 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15903 (ipa_profile_generate_summary): Likewise.
15904 (ipa_profile_read_summary): Likewise.
15905 (ipa_profile): Likewise.
15907 2015-06-01 Martin Liska <mliska@suse.cz>
15909 * tree-ssa-structalias.c (new_var_info): Use new type-based
15911 (new_constraint): Likewise.
15912 (init_alias_vars): Likewise.
15913 (delete_points_to_sets): Likewise.
15915 2015-06-01 Martin Liska <mliska@suse.cz>
15917 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15918 (free_strinfo): Likewise.
15919 (pass_strlen::execute): Likewise.
15921 2015-06-01 Martin Liska <mliska@suse.cz>
15923 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15925 (vn_reference_insert_pieces): Likewise.
15926 (vn_phi_insert): Likewise.
15927 (visit_reference_op_call): Likewise.
15928 (copy_phi): Likewise.
15929 (copy_reference): Likewise.
15930 (process_scc): Likewise.
15931 (allocate_vn_table): Likewise.
15932 (free_vn_table): Likewise.
15934 2015-06-01 Martin Liska <mliska@suse.cz>
15936 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15938 (add_repeat_to_ops_vec): Likewise.
15939 (get_ops): Likewise.
15940 (maybe_optimize_range_tests): Likewise.
15941 (init_reassoc): Likewise.
15942 (fini_reassoc): Likewise.
15944 2015-06-01 Martin Liska <mliska@suse.cz>
15946 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15948 (bitmap_set_new): Likewise.
15949 (get_or_alloc_expr_for_constant): Likewise.
15950 (get_or_alloc_expr_for): Likewise.
15951 (phi_translate_1): Likewise.
15952 (compute_avail): Likewise.
15953 (init_pre): Likewise.
15954 (fini_pre): Likewise.
15956 2015-06-01 Martin Liska <mliska@suse.cz>
15958 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15959 (delete_dep_node): Likewise.
15960 (create_deps_list): Likewise.
15961 (free_deps_list): Likewise.
15962 (sched_deps_init): Likewise.
15963 (sched_deps_finish): Likewise.
15965 2015-06-01 Martin Liska <mliska@suse.cz>
15967 * regcprop.c (free_debug_insn_changes): Use new type-based
15969 (replace_oldest_value_reg): Likewise.
15970 (pass_cprop_hardreg::execute): Likewise.
15972 2015-06-01 Martin Liska <mliska@suse.cz>
15974 * ira-build.c (initiate_cost_vectors): Use new type-based
15976 (ira_allocate_cost_vector): Likewise.
15977 (ira_free_cost_vector): Likewise.
15978 (finish_cost_vectors): Likewise.
15980 2015-06-01 Martin Liska <mliska@suse.cz>
15982 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15984 (free_sched_pools): Likewise.
15985 * sel-sched-ir.h (_list_alloc): Likewise.
15986 (_list_remove): Likewise.
15988 2015-06-01 Martin Liska <mliska@suse.cz>
15990 * stmt.c (add_case_node): Use new type-based pool allocator.
15991 (expand_case): Likewise.
15992 (expand_sjlj_dispatch_table): Likewise.
15994 2015-06-01 Martin Liska <mliska@suse.cz>
15996 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15997 (free_bb): Likewise.
15998 (pass_cse_reciprocals::execute): Likewise.
16000 2015-06-01 Martin Liska <mliska@suse.cz>
16002 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
16003 (sra_deinitialize) Likewise.
16004 (create_access_1) Likewise.
16005 (build_accesses_from_assign) Likewise.
16006 (create_artificial_child_access) Likewise.
16008 2015-06-01 Martin Liska <mliska@suse.cz>
16010 * dse.c (get_group_info):Use new type-based pool allocator.
16011 (dse_step0) Likewise.
16012 (free_store_info) Likewise.
16013 (delete_dead_store_insn) Likewise.
16014 (free_read_records) Likewise.
16015 (record_store) Likewise.
16016 (replace_read) Likewise.
16017 (check_mem_read_rtx) Likewise.
16018 (scan_insn) Likewise.
16019 (dse_step1) Likewise.
16020 (dse_step7) Likewise.
16022 2015-06-01 Martin Liska <mliska@suse.cz>
16024 * df-scan.c (struct df_scan_problem_data):Use new type-based
16026 (df_scan_free_internal) Likewise.
16027 (df_scan_alloc) Likewise.
16028 (df_grow_reg_info) Likewise.
16029 (df_free_ref) Likewise.
16030 (df_insn_create_insn_record) Likewise.
16031 (df_mw_hardreg_chain_delete) Likewise.
16032 (df_insn_info_delete) Likewise.
16033 (df_free_collection_rec) Likewise.
16034 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
16035 (df_sort_and_compress_mws) Likewise.
16036 (df_ref_create_structure) Likewise.
16037 (df_ref_record) Likewise.
16039 2015-06-01 Martin Liska <mliska@suse.cz>
16041 * df-problems.c (df_chain_create):Use new type-based pool allocator.
16042 (df_chain_unlink_1) Likewise.
16043 (df_chain_unlink) Likewise.
16044 (df_chain_remove_problem) Likewise.
16045 (df_chain_alloc) Likewise.
16046 (df_chain_free) Likewise.
16047 * df.h (struct dataflow) Likewise.
16049 2015-06-01 Martin Liska <mliska@suse.cz>
16051 * cselib.c (new_elt_list):Use new type-based pool allocator.
16052 (new_elt_loc_list) Likewise.
16053 (unchain_one_elt_list) Likewise.
16054 (unchain_one_elt_loc_list) Likewise.
16055 (unchain_one_value) Likewise.
16056 (new_cselib_val) Likewise.
16057 (cselib_init) Likewise.
16058 (cselib_finish) Likewise.
16060 2015-06-01 Martin Liska <mliska@suse.cz>
16062 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
16063 (sh_reorg) Likewise.
16065 2015-06-01 Martin Liska <mliska@suse.cz>
16067 * cfg.c (initialize_original_copy_tables):Use new type-based
16069 (free_original_copy_tables) Likewise.
16070 (copy_original_table_clear) Likewise.
16071 (copy_original_table_set) Likewise.
16073 2015-06-01 Martin Liska <mliska@suse.cz>
16075 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
16077 (asan_mem_ref_new) Likewise.
16078 (free_mem_ref_resources) Likewise.
16080 2015-06-01 Martin Liska <mliska@suse.cz>
16082 * var-tracking.c (variable_htab_free):Use new type-based
16084 (attrs_list_clear) Likewise.
16085 (attrs_list_insert) Likewise.
16086 (attrs_list_copy) Likewise.
16087 (shared_hash_unshare) Likewise.
16088 (shared_hash_destroy) Likewise.
16089 (unshare_variable) Likewise.
16090 (var_reg_delete_and_set) Likewise.
16091 (var_reg_delete) Likewise.
16092 (var_regno_delete) Likewise.
16093 (drop_overlapping_mem_locs) Likewise.
16094 (variable_union) Likewise.
16095 (insert_into_intersection) Likewise.
16096 (canonicalize_values_star) Likewise.
16097 (variable_merge_over_cur) Likewise.
16098 (dataflow_set_merge) Likewise.
16099 (remove_duplicate_values) Likewise.
16100 (variable_post_merge_new_vals) Likewise.
16101 (dataflow_set_preserve_mem_locs) Likewise.
16102 (dataflow_set_remove_mem_locs) Likewise.
16103 (variable_from_dropped) Likewise.
16104 (variable_was_changed) Likewise.
16105 (set_slot_part) Likewise.
16106 (clobber_slot_part) Likewise.
16107 (delete_slot_part) Likewise.
16108 (loc_exp_insert_dep) Likewise.
16109 (notify_dependents_of_changed_value) Likewise.
16110 (emit_notes_for_differences_1) Likewise.
16111 (vt_emit_notes) Likewise.
16112 (vt_initialize) Likewise.
16113 (vt_finalize) Likewise.
16115 2015-06-01 Martin Liska <mliska@suse.cz>
16117 * ira-color.c (init_update_cost_records):Use new type-based
16119 (get_update_cost_record) Likewise.
16120 (free_update_cost_record_list) Likewise.
16121 (finish_update_cost_records) Likewise.
16122 (initiate_cost_update) Likewise.
16124 2015-06-01 Martin Liska <mliska@suse.cz>
16126 * lra.c (init_insn_regs): Use new type-based pool allocator.
16127 (new_insn_reg) Likewise.
16128 (free_insn_reg) Likewise.
16129 (free_insn_regs) Likewise.
16130 (finish_insn_regs) Likewise.
16131 (init_insn_recog_data) Likewise.
16132 (init_reg_info) Likewise.
16133 (finish_reg_info) Likewise.
16134 (lra_free_copies) Likewise.
16135 (lra_create_copy) Likewise.
16136 (invalidate_insn_data_regno_info) Likewise.
16138 2015-06-01 Martin Liska <mliska@suse.cz>
16140 * lra-lives.c (free_live_range): Use new type-based pool allocator.
16141 (free_live_range_list) Likewise.
16142 (create_live_range) Likewise.
16143 (copy_live_range) Likewise.
16144 (lra_merge_live_ranges) Likewise.
16145 (remove_some_program_points_and_update_live_ranges) Likewise.
16146 (lra_live_ranges_init) Likewise.
16147 (lra_live_ranges_finish) Likewise.
16149 2015-06-01 Martin Liska <mliska@suse.cz>
16151 * et-forest.c (et_new_occ): Use new type-based pool allocator.
16152 (et_new_tree): Likewise.
16153 (et_free_tree): Likewise.
16154 (et_free_tree_force): Likewise.
16155 (et_free_pools): Likewise.
16156 (et_split): Likewise.
16158 2015-06-01 Martin Liska <mliska@suse.cz>
16160 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
16162 * alloc-pool.h (pool_allocator::pool_allocator): New function.
16163 (pool_allocator::release): Likewise.
16164 (inline pool_allocator::release_if_empty): Likewise.
16165 (inline pool_allocator::~pool_allocator): Likewise.
16166 (pool_allocator::allocate): Likewise.
16167 (pool_allocator::remove): Likewise.
16169 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16171 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
16174 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16176 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
16178 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
16179 (arm_macro_fusion_p): Likewise.
16180 (arm_macro_fusion_pair_p): Likewise.
16182 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
16184 * config/aarch64/aarch64-protos.h (tune_params): Rename
16185 fuseable_ops to fusible_ops.
16186 * config/aarch64/aarch64.c (generic_tunings): Rename
16187 fuseable_ops to fusible_ops.
16188 (cortexa53_tunings): Likewise.
16189 (cortexa57_tunings): Likewise.
16190 (thunderx_tunings): Likewise.
16191 (xgene1_tunings): Likewise.
16192 (aarch64_macro_fusion_p): Likewise.
16193 (aarch64_macro_fusion_pair_p): Likewise.
16195 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
16197 * config/s390/driver-native.c: New file.
16198 * config/s390/x-native: New file.
16199 * config.host: Add new files for s390.
16200 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
16202 * config.gcc: Likewise.
16203 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
16204 * config/s390/s390-opts.h (enum processor_type): Ditto.
16205 * config/s390/s390.c (s390_option_override): Catch unhandled
16208 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
16211 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
16212 redirection for instrumented calls.
16213 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
16214 (append_compiler_options): Append -fcheck-pointer-bounds.
16215 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
16216 (chkp_redirect_edge): New.
16217 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
16218 (chkp_redirect_edge): New.
16220 2015-06-01 Richard Biener <rguenther@suse.de>
16222 PR tree-optimization/66280
16223 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
16226 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16228 * config/aarch64/aarch64.md
16229 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
16232 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
16234 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
16235 Remove obsolete kludge.
16237 2015-06-01 Richard Biener <rguenther@suse.de>
16239 * tree-ssa-reassoc.c (get_rank): Simplify.
16241 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
16243 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
16244 * configure: Regenerated.
16246 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
16248 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
16249 issue (add space between string literal and macro).
16250 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
16252 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
16254 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
16255 implict or explicit -fPIE or -fpie.
16257 2015-05-30 Mike Frysinger <vapier@gentoo.org>
16259 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
16261 2015-05-28 DJ Delorie <dj@redhat.com>
16263 * expmed.c (extract_bit_field_1): Avoid clobbering a
16264 yet-to-be-used base/index register.
16266 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
16268 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
16269 (alias_stats): Add num_universal.
16270 (alias_set_subset_of): Special case pointers; be ready for NULL
16272 (alias_sets_conflict_p): Special case pointers; be ready for NULL
16274 (init_alias_set_entry): Break out from ...
16275 (record_alias_subset): ... here; propagate new fields;
16276 allocate children only when really needed.
16277 (get_alias_set): Do less generous pointer globbing.
16278 (dump_alias_stats_in_alias_c): Update statistics.
16280 2015-05-30 Alan Modra <amodra@gmail.com>
16282 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
16283 correct block for use of r12.
16284 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
16286 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16289 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
16292 2015-05-29 Jakub Jelinek <jakub@redhat.com>
16294 PR tree-optimization/66142
16295 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
16296 virtual phis that feed themselves.
16298 2015-05-29 Richard Biener <rguenther@suse.de>
16300 PR tree-optimization/66314
16301 * tree-ssa-threadupdate.c (create_block_for_threading): Add
16302 parameter that says which loop the new block belongs to.
16303 (ssa_create_duplicates): Blocks duplicated for the threaded
16304 path belong to the loop of the thread destination.
16306 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16308 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
16309 to cleanup-saved-temps.
16310 * doc/sourcebuild.texi (Clean up generated test files): Expand
16312 (dg-keep-saved-temps): Document new proc.
16313 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
16314 cleanup-saved-temps): Remove.
16316 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
16318 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
16319 gcc_AC_CHECK_DECLS.
16320 * configure: Regenerate.
16322 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16324 * config/nios2/linux.h (CPP_SPEC): Define.
16326 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16328 * config/microblaze/linux.h (CPP_SPEC): Define.
16330 2015-05-28 Mike Frysinger <vapier@gentoo.org>
16332 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
16333 -pthread is specified.
16335 2015-05-28 Richard Biener <rguenther@suse.de>
16337 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
16338 (vect_fixup_scalar_cycles_with_patterns): Likewise.
16339 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
16340 after pattern recog.
16341 (vect_create_epilog_for_reduction): Properly handle reductions
16343 (vectorizable_reduction): Likewise.
16344 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
16346 (vect_get_constant_vectors): Create the correct number of
16347 initial values for reductions.
16348 (vect_schedule_slp_instance): Handle reduction chains that are
16349 type changing properly.
16350 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
16352 2015-05-28 Richard Biener <rguenther@suse.de>
16354 PR tree-optimization/66142
16355 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
16356 values better in memcpy destination handling. Handle non-aliasing
16359 2015-05-28 Lawrence Velázquez <vq@larryv.me>
16362 * config/darwin-c.c (version_components): New global enum.
16363 (parse_version, version_as_legacy_macro)
16364 (version_as_modern_macro, macosx_version_as_macro): New functions.
16365 (version_as_macro): Remove.
16366 (darwin_cpp_builtins): Use new function.
16368 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
16370 * builtins.c (expand_builtin_acc_on_device): Mark parameters
16371 with ATTRIBUTE_UNUSED.
16373 2015-05-28 Julian Brown <julian@codesourcery.com>
16377 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
16378 sequence for !ACCEL_COMPILER.
16380 2015-05-28 Nick Clifton <nickc@redhat.com>
16382 * config/rx/rx.c (push_regs): New function. Extracts code from...
16383 (rx_expand_prologue): ... here. Use push_regs to push even small
16384 spans of registers.
16385 (pop_regs): New function.
16386 (rx_expand_epilogue): Use pop_regs to pop even small spans of
16389 2015-05-28 Richard Biener <rguenther@suse.de>
16391 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
16393 (SLP_INSTANCE_BODY_COST_VEC): Remove.
16394 (vect_update_slp_costs_according_to_vf): Likewise.
16395 (vect_slp_analyze_operations): Update prototype.
16396 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
16397 vect_update_slp_costs_according_to_vf, adjust.
16398 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
16399 (vect_analyze_slp_cost_1): Likewise.
16400 (vect_analyze_slp_cost): Likewise. Properly deal with
16401 widening reduction ops. Commit body costs.
16402 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
16403 cost for loops from here.
16404 (vect_slp_analyze_operations): But do it from here when
16405 the vectorization factor is known and stmts are analyzed.
16406 (vect_bb_vectorization_profitable_p): Simplify.
16407 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
16408 (vect_update_slp_costs_according_to_vf): Remove.
16410 2015-05-27 Magnus Granberg <zorry@gentoo.org>
16411 H.J. Lu <hongjiu.lu@intel.com>
16413 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
16414 (BUILD_CFLAGS): Likewise.
16415 (BUILD_CXXFLAGS): Likewise.
16416 (LINKER): Add @NO_PIE_FLAG@.
16417 (BUILD_LDFLAGS): Likewise.
16418 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
16419 --enable-default-pie.
16420 * common.opt (fPIE): Initialize to -1.
16422 (no-pie): New option.
16423 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
16424 * configure.ac: Add --enable-default-pie.
16425 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
16426 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
16427 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
16428 * gcc.c (NO_PIE_SPEC): New.
16429 (PIE_SPEC): Likewise.
16430 (NO_FPIE1_SPEC): Likewise.
16431 (FPIE1_SPEC): Likewise.
16432 (NO_FPIE2_SPEC): Likewise.
16433 (FPIE2_SPEC): Likewise.
16434 (NO_FPIE2_SPEC): Likewise.
16435 (FPIE_SPEC): Likewise.
16436 (NO_FPIE_SPEC): Likewise.
16437 (NO_FPIC1_SPEC): Likewise.
16438 (FPIC1_SPEC): Likewise.
16439 (NO_FPIC2_SPEC): Likewise.
16440 (FPIC2_SPEC): Likewise.
16441 (NO_FPIC2_SPEC): Likewise.
16442 (FPIC_SPEC): Likewise.
16443 (NO_FPIC_SPEC): Likewise.
16444 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
16445 (FPIE1_OR_FPIC1_SPEC): Likewise.
16446 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
16447 (FPIE2_OR_FPIC2_SPEC): Likewise.
16448 (NO_FPIE_AND_FPIC_SPEC): Likewise.
16449 (FPIE_OR_FPIC_SPEC): Likewise.
16450 (LD_PIE_SPEC): Likewise.
16451 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
16452 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
16453 * config/darwin.h (PIE_SPEC): Renamed to ...
16454 (DARWIN_PIE_SPEC): This.
16455 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
16456 * config/darwin9.h (PIE_SPEC): Renamed to ...
16457 (DARWIN_PIE_SPEC): This.
16458 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
16459 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16460 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
16461 FPIE2_OR_FPIC2_SPEC.
16462 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16463 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16464 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
16465 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16466 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16467 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16468 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
16469 * config/m32r/m32r.h (ASM_SPEC): Likewise.
16470 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
16471 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16472 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16473 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
16474 * config/sparc/linux.h (ASM_SPEC): Likewise.
16475 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16476 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
16477 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
16478 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16479 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16480 * config/sparc/sparc.h (ASM_SPEC): Likewise.
16481 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
16482 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
16483 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
16484 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
16485 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
16486 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
16487 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
16488 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
16489 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
16490 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
16491 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
16492 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
16493 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16494 * config/vax/linux.h (ASM_SPEC): Likewise.
16495 * doc/install.texi: Document --enable-default-pie.
16496 * doc/invoke.texi: Document -no-pie.
16497 * config.in: Regenerated.
16498 * configure: Likewise.
16500 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16502 PR rtl-optimization/66168
16503 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
16504 can_move_invariant_reg.
16506 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
16509 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
16510 REG_EQUAL note when doing insert.
16512 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
16513 instead of "%d" for 'o' operand.
16515 2015-05-27 Nathan Sidwell <nathan@acm.org>
16518 * tree.c (build_pointer_type_for_mode): Canonical type does not
16519 inherit can_alias_all.
16520 (build_reference_type_for_mode): Likewise.
16522 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
16524 * expr.h (array_at_struct_end_p): Move to...
16525 (array_ref_element_size): Likewise.
16526 (component_ref_field_offset): Likewise.
16527 * tree.h (array_ref_element_size): ...here.
16528 (array_at_struct_end_p): Likewise.
16529 (component_ref_field_offset): Likewise.
16530 * expr.c (array_ref_element_size): Move to...
16531 (array_ref_low_bound): Likewise.
16532 (array_at_struct_end_p): Likewise.
16533 (array_ref_up_bound): Likewise.
16534 (component_ref_field_offset): Likewise.
16535 * tree.c (array_ref_element_size): ...here.
16536 (array_ref_low_bound): Likewise.
16537 (array_ref_up_bound): Likewise.
16538 (array_at_struct_end_p): Likewise.
16539 (component_ref_field_offset): Likewise.
16541 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16542 Szabolcs Nagy <szabolcs.nagy@arm.com>
16544 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16546 2015-05-27 Jason Merrill <jason@redhat.com>
16549 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16550 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16551 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16553 2015-05-22 Aditya Kumar <hiraditya@msn.com>
16555 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16558 * statistics.c (statistics_fini_pass): Print pass name.
16560 2015-05-27 Richard Biener <rguenther@suse.de>
16562 PR tree-optimization/66272
16564 2014-08-15 Richard Biener <rguenther@suse.de>
16566 PR tree-optimization/62031
16567 * tree-data-ref.c (dr_analyze_indices): Do not set
16568 DR_UNCONSTRAINED_BASE.
16569 (dr_may_alias_p): All indirect accesses have to go the
16570 formerly DR_UNCONSTRAINED_BASE path.
16571 * tree-data-ref.h (struct indices): Remove
16572 unconstrained_base member.
16573 (DR_UNCONSTRAINED_BASE): Remove.
16575 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
16577 * dwarf2out.c: Remove block_map.
16578 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16579 (gen_lexical_block_die): Same.
16580 (dwarf2out_function_decl): Remove block_map use.
16581 (dwarf2out_c_finalize): Same.
16582 * tree-core.h (struct tree_block): Add die field.
16583 * tree.h (BLOCK_DIE): New.
16585 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16588 * expr.c (memory_load_overlap): New function.
16589 (emit_push_insn): When pushing partial args to the stack would
16590 clobber the register part load the overlapping part into a pseudo
16591 and put it into the hard reg after pushing. Change return type
16592 to bool. Add bool argument.
16593 * expr.h (emit_push_insn): Change return type to bool.
16595 * calls.c (expand_call): Cancel sibcall optimization when encountering
16596 partial argument on targets with ARGS_GROW_DOWNWARD and
16597 !STACK_GROWS_DOWNWARD.
16598 (emit_library_call_value_1): Update callsite of emit_push_insn.
16599 (store_one_arg): Likewise.
16601 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
16603 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16605 2015-05-27 Martin Liska <mliska@suse.cz>
16607 * Makefile.in: Add additional dependencies related to memory report
16609 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16610 * bitmap.c (struct bitmap_descriptor_d): Remove.
16611 (struct loc): Likewise.
16612 (struct bitmap_desc_hasher): Likewise.
16613 (bitmap_desc_hasher::hash): Likewise.
16614 (bitmap_desc_hasher::equal): Likewise.
16615 (get_bitmap_descriptor): Likewise.
16616 (bitmap_register): User new memory descriptor API.
16617 (register_overhead): Likewise.
16618 (bitmap_find_bit): Register nsearches and search_iter statistics.
16619 (struct bitmap_output_info): Remove.
16620 (print_statistics): Likewise.
16621 (dump_bitmap_statistics): Use new memory descriptor.
16622 * bitmap.h (struct bitmap_usage): New class.
16623 * genmatch.c: Extend header file inclusion.
16624 * genpreds.c: Likewise.
16625 * ggc-common.c (struct ggc_usage): New class.
16626 (struct ggc_loc_desc_hasher): Remove.
16627 (ggc_loc_desc_hasher::hash): Likewise.
16628 (ggc_loc_desc_hasher::equal): Likewise.
16629 (struct ggc_ptr_hash_entry): Likewise.
16630 (struct ptr_hash_hasher): Likewise.
16631 (ptr_hash_hasher::hash): Likewise.
16632 (ptr_hash_hasher::equal): Likewise.
16633 (make_loc_descriptor): Likewise.
16634 (ggc_prune_ptr): Likewise.
16635 (dump_ggc_loc_statistics): Use new memory descriptor.
16636 (ggc_record_overhead): Likewise.
16637 (ggc_free_overhead): Likewise.
16638 (final_cmp_statistic): Remove.
16639 (cmp_statistic): Likewise.
16640 (ggc_add_statistics): Liekwise.
16641 (ggc_prune_overhead_list): Likewise.
16642 * hash-map-traits.h: New file.
16643 * hash-map.h (struct default_hashmap_traits): Move the traits to a
16644 separate header file.
16645 * hash-set.h: Pass memory statistics info to ctor.
16646 * hash-table.c (void dump_hash_table_loc_statistics): New function.
16647 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16648 (hash_table::~hash_table): Register memory release operation.
16649 (hash_table::alloc_entries): Handle memory allocation operation.
16650 (hash_table::expand): Likewise.
16651 * inchash.c (iterative_hash_hashval_t): Move implementation to header
16653 (iterative_hash_host_wide_int): Likewise.
16654 * inchash.h (class hash): Likewise.
16655 * mem-stats-traits.h: New file.
16656 * mem-stats.h: New file.
16657 (mem_location): Add new class.
16658 (mem_usage): Likewise.
16659 (mem_alloc_description): Likewise.
16660 * sese.c: Add new header file inclusision.
16661 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16663 * tree-sra.c: Add new header file inclusision.
16664 * vec.c (struct vec_descriptor): Remove.
16665 (hash_descriptor): Likewise.
16666 (struct vec_usage): Likewise.
16667 (struct ptr_hash_entry): Likewise.
16668 (hash_ptr): Likewise.
16669 (eq_ptr): Likewise.
16670 (vec_prefix::register_overhead): Use new memory descriptor API.
16671 (vec_prefix::release_overhead): Likewise.
16672 (add_statistics): Remove.
16673 (dump_vec_loc_statistics): Use new memory descriptor API.
16674 * vec.h (struct vec_prefix): Likewise.
16675 (va_heap::reserve): Likewise.
16676 (va_heap::release): Likewise.
16677 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16679 2015-05-27 Richard Biener <rguenther@suse.de>
16681 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16682 earlier and remove ??? comment.
16683 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16684 and got called from loop analysis bail out. Always pass the SLP
16685 node to the vectorizable_* functions.
16686 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16687 the premature SLP check here.
16688 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16689 detected SLP stmts.
16690 (vect_detect_hybrid_slp_1): Likewise.
16692 2015-05-26 Jeff Law <law@redhat.com>
16694 * combine.c (find_split_point): Verify that the shift count is a
16695 constant when choosing (plus (ashift ...)) as a split point.
16697 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16698 No functional changes.
16700 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
16702 * ipa-polymorphic-call.c
16703 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16704 case when call target is already known.
16706 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
16709 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16710 take into account the case that operands[1] and operands[2]
16711 are the same register.
16713 2015-05-26 Michael Matz <matz@suse.de>
16715 PR middle-end/66251
16717 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16719 (vect_create_vectorized_demotion_stmts): Always set
16720 STMT_VINFO_VEC_STMT, also with SLP.
16721 (vectorizable_store): Handle strided group stores.
16723 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16726 * config/aarch64/aarch64.md
16727 (*adds_shift_imm_<mode>): New pattern.
16728 (*subs_shift_imm_<mode>): Likewise.
16729 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16730 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16731 (*add_uxt<mode>_shift2): Likewise.
16732 (*add_uxtsi_shift2_uxtw): Likewise.
16733 (*sub_uxt<mode>_shift2): Likewise.
16734 (*sub_uxtsi_shift2_uxtw): Likewise.
16736 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
16738 * config/rs6000/constraints.md (Y, U): Use match_test.
16740 2015-05-26 Christian Bruel <christian.bruel@st.com>
16743 * config/arm/arm.c (arm_option_check_internal)
16744 (arm_option_params_internal): Check opts->target_flags to set macros.
16745 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16746 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16747 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16748 (builtin_define): Replaced with def_or_undef_macro.
16749 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16750 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16751 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16752 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16753 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16754 (TARGET_ARM_FEATURE_LDREX_P)
16755 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16756 * config/arm/arm-c.c (def_or_undef_macro): New function.
16757 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16759 2015-05-26 Christian Bruel <christian.bruel@st.com>
16761 * c-common.h (builtin_define_with_int_value)
16762 (builtin_define_type_sizeof): Declare.
16763 * c-cppbuiltin.c (builtin_define_with_int_value)
16764 (builtin_define_type_sizeof): Externalize.
16765 (builtin_define_std): Cleanup declaration.
16766 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16767 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16768 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16769 (builtin_define, builtin_assert): New macros.
16771 2015-05-26 Richard Biener <rguenther@suse.de>
16773 PR tree-optimization/66142
16774 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16775 MEM_REFs for the same base address.
16777 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16780 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16782 2015-05-26 Jason Merrill <jason@redhat.com>
16784 * configure.ac: Set CXXFLAGS for ISL test.
16785 * configure: Regenerate.
16787 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
16788 strstr and basename.
16789 * configure: Regenerate.
16791 2015-05-26 Richard Biener <rguenther@suse.de>
16793 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16794 X % C -> X & (C - 1) for C being a power-of two to ...
16795 * match.pd: ... patterns.
16797 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
16799 * match.pd (swapped_tcc_comparison): New operator list.
16800 (-A CMP -B): New simplification.
16801 * fold-const.c (fold_comparison): Remove corresponding code.
16803 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16805 * caller-save.c (init_caller_save): Base temporary register numbers
16806 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16807 * cfgloopanal.c (init_set_costs): Likewise.
16808 * dojump.c (prefer_and_bit_test): Likewise.
16809 * expr.c (init_expr_target): Likewise.
16810 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16811 * lower-subreg.c (init_lower_subreg): Likewise.
16812 * postreload.c (reload_cse_regs_1): Likewise.
16814 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
16816 * gensupport.h (compute_test_codes): Declare.
16817 * gensupport.c (compute_predicate_codes): Rename to...
16818 (compute_test_codes): ...this. Generalize error message.
16819 (process_define_predicate): Update accordingly.
16820 * genpreds.c (compute_maybe_allows): Delete.
16821 (add_constraint): Use compute_test_codes to determine whether
16822 something can accept a SUBREG, REG or MEM.
16824 2015-05-26 Torvald Riegel <triegel@redhat.com>
16826 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16827 'memory model' to align with C++11; fix description of memory orders;
16830 2015-05-26 Richard Biener <rguenther@suse.de>
16832 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16833 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16834 detect whether we apply SLP. Remove call to
16835 vect_update_slp_costs_according_to_vf.
16836 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16837 vect_update_slp_costs_according_to_vf from here. Dispatch
16838 to vect_slp_analyze_operations to analyze SLP stmts.
16839 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16840 unused bb_vec_info parameter, adjust assert.
16841 (vect_slp_analyze_operations): Pass in the slp instance tree
16842 instead of bb_vec_info.
16843 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16844 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16846 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16848 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16849 Q_REGS. Expand comment.
16850 (REG_CLASS_NAMES): Ditto.
16851 (REG_CLASS_CONTENTS): Ditto.
16853 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16856 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16857 when LEGACY_INT_REGNO_P is processed.
16859 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16861 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16863 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16865 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16866 register if not marked dead/unused, before return.
16868 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16871 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16872 is set; check for assembler name at LTO time.
16873 (type_in_anonymous_namespace): Remove hacks, check that all
16874 anonymous types are called "<anon>"
16875 (odr_type_p): Simplify; add check for "<anon>"
16876 (odr_subtypes_equivalent): Add odr_type_p check.
16877 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16880 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16882 * ipa-utils.h (method_class_type): Remove.
16883 * cgraphunit.c (walk_polymorphic_call_targets): Use
16884 TYPE_METHOD_BASETYPE.
16885 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16886 on main variants only.
16887 (method_class_type): Remove.
16888 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16889 (build_type_inheritance_graph): Likewise.
16890 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16891 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16892 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16894 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16896 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16897 is_typedef_decl, typedef_variant_p): Constify.
16898 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16899 is_typedef_decl, typedef_variant_p): Constify.
16901 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16903 * defaults.h (gen_tablejump): New function.
16904 (HAVE_tablejump): Add default value.
16906 * stmt.c: Likewise.
16908 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16910 * defaults.h (gen_store_multiple): New function.
16911 (HAVE_store_multiple): Add default value.
16912 * expr.c (move_block_from_reg): Adjust.
16914 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16916 * defaults.h (gen_load_multiple): New function.
16917 (HAVE_load_multiple): Add default value.
16918 * expr.c (move_block_to_reg): Adjust.
16920 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16922 * defaults.h (gen_mem_signal_fence): New function.
16923 (HAVE_mem_signal_fence): Add default value.
16924 * optabs.c: Adjust.
16926 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16928 * defaults.h (gen_memory_barrier): New function.
16929 (HAVE_memory_barrier): Add default value.
16930 * optabs.c: Adjust.
16932 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16934 * defaults.h (gen_mem_thread_fence): New function.
16935 (HAVE_mem_thread_fence): Add default definition.
16936 * optabs.c: Adjust.
16938 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16940 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16941 instead of if it is defined.
16942 (combine_simplify_rtx): Likewise.
16943 * lra-constraints.c (process_address_1): Likewise.
16944 * config/darwin.c: Adjust.
16945 * genconfig.c (main): Always define HAVE_lo_sum.
16947 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16949 * genmatch.c (parser::parse_operation): Reject expanding
16950 operator-list inside 'for'.
16952 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16954 * genmatch.c (parser::parse_for): Reject iterator if used as
16957 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16959 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16960 after end of id-list.
16962 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16964 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16965 we do not try to compute canonical type for type that does not need
16967 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16969 * tree.h (type_with_alias_set_p): New.
16971 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16973 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16974 function attributes.
16975 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16977 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16979 * Makefile.in (check_gcc_parallelize): Delete.
16980 (lang_checks_parallelized): Update comment.
16982 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16984 PR rtl-optimization/66237
16985 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16986 location of an "as_a" cast.
16988 2015-05-22 Jeff Law <law@redhat.com>
16990 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16991 (peepholes with non-canonical RTL sources): Remove.
16992 (peepholes for indexed stores of FP regs in integer modes): Match and
16993 generate canonical RTL.
16995 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16997 PR tree-optimization/63387
16998 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16999 ((x ord x) & (y ord y) -> (x ord y),
17000 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
17001 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
17002 vectors like scalars.
17004 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17006 * convert.c (convert_to_integer, convert_to_vector): Include the
17007 types in the error message.
17009 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17011 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
17014 2015-05-22 Jeff Law <law@redhat.com>
17016 * config/pa/pa.md (integer_indexed_store splitters): Use
17017 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
17018 insns -- adjusting the constant 2nd operand accordingly.
17020 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
17021 (plus (ashift X log2) Y) if it is a split point.
17023 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
17024 out of hppa_legitimize_address to handle both forms of a multiply
17026 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
17027 Always generate the ASHIFT variant as the result is not directly
17028 used in a MEM. Update comments and refactor slightly to improve
17031 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17034 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
17035 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
17036 (aarch64_composite_type_p): Return false if given type and mode are
17037 for a short vector.
17039 2015-05-22 Richard Biener <rguenther@suse.de>
17041 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
17043 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
17044 patterns when determining whether SLP is pure.
17045 (vect_is_slp_reduction): Remove check for pattern stmts.
17046 (vect_is_simple_reduction_1): Remove dead code.
17047 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
17048 (vect_get_and_check_slp_defs): Pass in the stmt number.
17049 Allow the first def in a reduction to be not a pattern stmt when
17050 the rest of the stmts def are patterns.
17051 (vect_build_slp_tree_1): Allow tcc_expression codes like
17052 SAD_EXPR and DOT_PROD_EXPR.
17053 (vect_build_slp_tree): Adjust.
17054 (vect_analyze_slp): Refactor and move BB vect error message ...
17055 (vect_slp_analyze_bb_1): ... here.
17057 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
17059 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
17060 for CSWTCH temporary.
17062 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17064 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
17065 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
17068 2015-05-22 Richard Biener <rguenther@suse.de>
17070 PR tree-optimization/66251
17071 * tree-vect-stmts.c (vectorizable_conversion): Properly
17072 set STMT_VINFO_VEC_STMT even for the SLP case.
17074 2015-05-22 Marek Polacek <polacek@redhat.com>
17076 * doc/extend.texi: Use @pxref instead of @xref.
17078 2015-05-22 hiraditya <hiraditya@msn.com>
17080 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
17083 2015-05-22 Richard Biener <rguenther@suse.de>
17085 PR tree-optimization/65701
17086 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17087 Move peeling cost models into one place. Peel for alignment
17088 for single loads only if an aligned load is cheaper than
17091 2015-05-22 Marek Polacek <polacek@redhat.com>
17094 * doc/extend.texi (Enumerator Attributes): New section.
17095 Document syntax of enumerator attributes.
17097 2015-05-22 Richard Biener <rguenther@suse.de>
17099 * tree-vect-loop.c (get_reduction_op): New function.
17100 (vect_model_reduction_cost): Use it, add reduc_index parameter.
17101 Make ready for BB reductions.
17102 (vect_create_epilog_for_reduction): Use get_reduction_op.
17103 (vectorizable_reduction): Init reduc_index to a valid value.
17104 Adjust vect_model_reduction_cost call.
17105 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
17106 operand for reduction defaults. Add SAD_EXPR support.
17107 Assert we have a neutral op for SLP reductions.
17108 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
17109 walking pattern stmt ops only recurse to SSA names.
17111 2015-05-22 Richard Biener <rguenther@suse.de>
17113 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
17114 assert with guard, remove check on detected reduction.
17115 (vect_recog_sad_pattern): Likewise.
17116 (vect_recog_widen_sum_pattern): Likewise.
17118 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17120 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
17121 __always_inline__ attribute.
17122 (vaesdq_u8): Likewise.
17123 (vaesmcq_u8): Likewise.
17124 (vaesimcq_u8): Likewise.
17125 (vsha1cq_u32): Likewise.
17126 (vsha1mq_u32): Likewise.
17127 (vsha1pq_u32): Likewise.
17128 (vsha1h_u32): Likewise.
17129 (vsha1su0q_u32): Likewise.
17130 (vsha1su1q_u32): Likewise.
17131 (vsha256hq_u32): Likewise.
17132 (vsha256h2q_u32): Likewise.
17133 (vsha256su0q_u32): Likewise.
17134 (vsha256su1q_u32): Likewise.
17135 (vmull_p64): Likewise.
17136 (vmull_high_p64): Likewise.
17138 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17140 * final.c (final_scan_insn): Don't check HAVE_peephole with the
17142 * output.h: Likewise.
17143 * genconfig.c (main): Alwways define HAVE_peephole.
17144 * genpeep.c: Don't emit checks of HAVE_peephole.
17146 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17148 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
17149 check HAVE_conditional_move with the preprocessor.
17151 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17153 * genconfig.c (main): Always define HAVE_conditional_move.
17154 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
17155 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
17158 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17160 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
17161 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
17162 and FRAME_POINTER_REGNUM with the preprocessor.
17164 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17166 * defaults.h: Add default for STACK_PUSH_CODE.
17167 * expr.c: Don't redefine STACK_PUSH_CODE.
17168 * recog.c: Likewise.
17170 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17172 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
17173 sched-deps.c: Use if instead of preprocessor checks with
17174 STACK_GROWS_DOWNWARD.
17176 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17178 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
17180 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
17181 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
17182 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
17183 * doc/tm.texi: Regenerate.
17185 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
17188 * config/i386/constraints.md (Bg): New constraint for GOT memory
17190 * config/i386/i386.md (*call_got_x32): New pattern.
17191 (*call_value_got_x32): Likewise.
17192 * config/i386/predicates.md (GOT_memory_operand): New predicate.
17194 2015-05-21 Jakub Jelinek <jakub@redhat.com>
17196 PR tree-optimization/66233
17197 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
17200 2015-05-21 Jeff Law <law@redhat.com>
17202 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
17203 than MULT for shadd sequences.
17205 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
17207 * alias.c (alias_stats): New static var.
17208 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
17209 (dump_alias_stats_in_alias_c): New function.
17210 * alias.h (dump_alias_stats_in_alias_c): Declare.
17211 * tree-ssa-alias.c (dump_alias_stats): Call it.
17213 2015-05-08 Michael Matz <matz@suse.de>
17215 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
17217 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
17218 (STMT_VINFO_STRIDED_P): ... this.
17219 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
17220 (vect_verify_datarefs_alignment): Likewise.
17221 (vect_enhance_data_refs_alignment): Likewise.
17222 (vect_analyze_data_ref_access): Likewise.
17223 (vect_analyze_data_refs): Accept strided stores.
17224 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
17225 (vect_model_load_cost): Adjust for macro rename.
17226 (vectorizable_mask_load_store): Likewise.
17227 (vectorizable_load): Likewise.
17228 (vectorizable_store): Open code strided stores.
17230 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17232 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
17233 Document sqrt_insn.
17235 2015-05-21 Richard Biener <rguenther@suse.de>
17238 * match.pd: Guard pattern optimzing (int)(float)int
17239 conversions to apply only on GIMPLE.
17241 2015-05-21 Jeff Law <law@redhat.com>
17243 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
17244 multiply-accumulate/shift-add insn generation.
17246 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
17249 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
17250 operands[1] are the same.
17252 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
17254 PR middle-end/66221
17255 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
17256 build_distinct_type_copy to copy bounds.
17258 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
17260 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
17261 Change to unsigned int.
17263 2015-05-20 Jeff Law <law@redhat.com>
17265 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
17266 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
17267 (pa_shadd_constant_p): Allow constants for shadd insns rather
17268 than valid scaling constants for memory addresses.
17269 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
17270 * config/pa/predicates.md (mem_shadd_operand): New predicate.
17271 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
17272 (shift-add insns using ASHIFT): New patterns.
17274 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
17276 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
17278 (fix_up_fall_thru_edges): Likewise.
17279 (fix_crossing_conditional_branches): Likewise. Promote jump targets
17280 from to rtx_insn to rtx_code_label where feasible.
17281 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
17282 gen_move_insn (returned type changed to rtx_insn).
17283 * builtins.c (expand_errno_check): Fix arguments of
17284 do_compare_rtx_and_jump (now expects rtx_code_label).
17285 (expand_builtin_acc_on_device): Likewise.
17286 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
17287 invert_jump (now exprects rtx_jump_insn).
17288 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
17289 (construct_init_block): Use rtx_code_label.
17290 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
17291 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
17292 calling redirect_jump.
17293 (patch_jump_insn): Likewise.
17294 (redirect_branch_edge): Likewise.
17295 (force_nonfallthru_and_redirect): Likewise.
17296 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
17298 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
17299 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
17300 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
17301 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
17302 to store the value retured by gen_label_rtx.
17303 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
17305 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
17306 (split_branches): Fix calls of redirect_jump.
17307 * dojump.c (jumpifnot): Promote argument type from rtx to
17309 (jumpifnot_1): Likewise.
17310 (jumpif): Likewise.
17311 (jumpif_1): Likewise.
17312 (do_jump_1): Likewise.
17313 (do_jump): Likewise. Use rtx_code_label when feasible.
17314 (do_jump_by_parts_greater_rtx): Likewise.
17315 (do_jump_by_parts_zero_rtx): Likewise.
17316 (do_jump_by_parts_equality_rtx): Likewise.
17317 (do_compare_rtx_and_jump): Likewise.
17318 * dojump.h: Update function prototypes.
17319 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
17321 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
17323 (emit_label_before): Likewise.
17324 (emit_jump_insn_after_noloc): Likewise.
17325 (emit_jump_insn_after_setloc): Likewise.
17326 (emit_jump_insn_after): Likewise
17327 (emit_jump_insn_before_setloc): Likewise.
17328 (emit_jump_insn_before): Likewise.
17329 (emit_label_before): Promote return type to rtx_code_label.
17330 (emit_label): Likewise.
17331 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
17332 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
17334 (emit_stack_restore): Likewise.
17335 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
17336 (do_cmp_and_jump): Likewise.
17337 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
17338 from rtx to rtx_code_label.
17339 (gen_move_insn_uncast): New function.
17340 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
17341 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
17342 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
17343 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
17344 invert_jump_1 and redirect_jump_1.
17345 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
17346 do_compare_rtx_and_jump.
17347 (expand_addsub_overflow): Likewise.
17348 (expand_neg_overflow): Likewise.
17349 (expand_mul_overflow): Likewise.
17350 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
17351 return value of gen_move_insn.
17352 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
17353 * loop-doloop.c (add_test): Use rtx_code_label.
17354 (doloop_modify): Likewise.
17355 (doloop_optimize): Likewise.
17356 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
17357 * lra-constraints.c (emit_spill_move): Remove cast of value returned
17359 (inherit_reload_reg): Add cast when calling dump_insn_slim.
17360 (split_reg): Likewise.
17361 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
17363 * optabs.c (expand_binop_directly): Remove casts of values returned by
17365 (expand_unop_direct): Likewise.
17366 (expand_abs): Likewise.
17367 (maybe_emit_unop_insn): Likewise.
17368 (maybe_gen_insn): Promote return type to rtx_insn.
17369 * optabs.h: Update prototype of maybe_gen_insn.
17370 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
17372 * recog.c (struct peep2_insn_data): Promote type of insn field to
17374 (peep2_reinit_state): Use NULL instead of NULL_RTX.
17375 (peep2_attempt): Remove casts of insn in peep2_insn_data.
17376 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
17377 * recog.h (struct insn_gen_fn): Promote return types of function
17378 pointers and operator ().from rtx to rtx_insn.
17379 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
17380 (fill_eager_delay_slots): Likewise.
17381 (relax_delay_slots): Likewise.
17382 (make_return_insns): Likewise.
17383 (dbr_schedule): Likewise.
17384 (optimize_skips): Likewise.
17385 (reorg_redirect_jump): Likewise.
17386 (fill_slots_from_thread): Likewise.
17387 * reorg.h: Update prototypes.
17388 * resource.c (find_dead_or_set_registers): Use dyn_cast to
17389 rtx_jump_insn instead of check. Use it's jump_target method.
17390 * rtl.h (rtx_jump_insn::jump_label): Define new method.
17391 (rtx_jump_insn::jump_target): Define new method.
17392 (rtx_jump_insn::set_jump_target): Define new method.
17393 * rtlanal.c (tablejump_p): Promote type of one local variable.
17394 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
17395 (sched_analyze_insn): Likewise.
17396 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
17397 (print_insn): Likewise.
17398 * stmt.c (label_rtx): Promote return type to rtx_insn.
17399 (force_label_rtx): Likewise.
17400 (jump_target_rtx): Define new function.
17401 (expand_label): Use it, get rid of one cast.
17402 (expand_naked_return): Promote rtx to rtx_code_label.
17403 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
17404 (expand_case): Use rtx_code_label instread of rtx where feasible.
17405 (expand_sjlj_dispatch_table): Likewise.
17406 (emit_case_nodes): Likewise.
17407 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
17408 * store-motion.c (insert_store): Make use of new return type of
17409 gen_move_insn and remove a cast.
17410 (replace_store_insn): Likewise.
17412 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
17414 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
17415 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
17417 2015-05-20 Jeff Law <law@redhat.com>
17419 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
17420 dispose of the jump thread path when the jump threading
17421 opportunity is cancelled.
17423 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17425 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
17426 when printing the caret character.
17428 2015-05-20 Marek Polacek <polacek@redhat.com>
17430 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
17432 2015-05-20 Marek Polacek <polacek@redhat.com>
17434 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
17435 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
17436 * gimple-fold.c (canonicalize_bool): Likewise.
17437 (same_bool_result_p): Likewise.
17438 * tree-if-conv.c (parse_predicate): Likewise.
17440 2015-05-20 Marek Polacek <polacek@redhat.com>
17442 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
17443 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
17445 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17447 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
17448 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
17451 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
17453 * config/mips/mips.h (micromips_globals): Declare.
17455 2015-05-20 David Malcolm <dmalcolm@redhat.com>
17457 * timevar.def (TV_INITIALIZE_RTL): New.
17458 * toplev.c (initialize_rtl): Use an auto_timevar to account this
17459 function's time to TV_INITIALIZE_RTL.
17461 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17463 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
17464 gimple_build_nop calls.
17465 (chkp_find_bounds_for_elem): Likewise.
17466 (chkp_get_zero_bounds): Likewise.
17467 (chkp_get_none_bounds): Likewise.
17468 (chkp_get_bounds_by_definition): Likewise.
17469 (chkp_generate_extern_var_bounds): Likewise.
17470 (chkp_get_bounds_for_decl_addr): Likewise.
17471 (chkp_get_bounds_for_string_cst): Likewise.
17473 2015-05-20 Bin Cheng <bin.cheng@arm.com>
17475 PR tree-optimization/65447
17476 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
17477 (dump_use, dump_uses): Support to dump sub use.
17478 (record_use): New parameters to support sub use. Remove call to
17480 (record_sub_use, record_group_use): New functions.
17481 (compute_max_addr_offset, split_all_small_groups): New functions.
17482 (group_address_uses, rewrite_use_address): New functions.
17483 (strip_offset): New declaration.
17484 (find_interesting_uses_address): Call record_group_use.
17485 (add_candidate): New assertion.
17486 (infinite_cost_p): Move definition forward.
17487 (add_costs): Check INFTY cost and return immediately.
17488 (get_computation_cost_at): Clear setup cost and dependent bitmap
17490 (determine_use_iv_cost_address): Compute cost for sub uses.
17491 (rewrite_use_address_1): Rename from old rewrite_use_address.
17492 (free_loop_data): Free sub uses.
17493 (tree_ssa_iv_optimize_loop): Call group_address_uses.
17495 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17496 Jim Wilson <jim.wilson@linaro.org>
17498 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
17499 new fields loadv and storev.
17500 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17501 Initialize loadv and storev.
17502 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
17503 (cortexa53_extra_costs): Likewise.
17504 (cortexa57_extra_costs): Likewise.
17505 (xgene1_extra_costs): Likewise.
17506 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
17509 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17511 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
17513 (cortexa8_extra_costs): Likewise.
17514 (cortexa5_extra_costs): Likewise.
17515 (cortexa7_extra_costs): Likewise.
17516 (cortexa12_extra_costs): Likewise.
17517 (cortexa15_extra_costs): Likewise.
17518 (v7m_extra_costs): Likewise.
17520 2015-05-20 Jeff Law <law@redhat.com>
17522 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17523 instead of open-coded version. Also delete the jump thread created
17524 within this function.
17526 2015-05-20 Alan Modra <amodra@gmail.com>
17528 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17529 stack adjusting insn. Formatting.
17530 (rs6000_emit_prologue): Track stack adjusting insn, and use of
17531 r12. If possible, emit first -fsplit-stack arg pointer insn
17532 before stack adjust. Don't use r12 to save cr if split-stack.
17534 2015-05-20 Alan Modra <amodra@gmail.com>
17536 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17538 (rs6000_supports_split_stack): New function.
17539 * gcc/config/rs6000/rs6000.c (machine_function): Add
17540 split_stack_arg_pointer.
17541 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17542 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17543 rather than virtual_incoming_args_rtx.
17544 (rs6000_va_start): Likewise.
17545 (split_stack_arg_pointer_used_p): New function.
17546 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17547 (morestack_ref): New var.
17548 (gen_add3_const, rs6000_expand_split_stack_prologue,
17549 rs6000_internal_arg_pointer, rs6000_live_on_entry,
17550 rs6000_split_stack_space_check): New functions.
17551 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17552 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17553 (UNSPECV_SPLIT_STACK_RETURN): Define.
17554 (split_stack_prologue, load_split_stack_limit,
17555 load_split_stack_limit_di, load_split_stack_limit_si,
17556 split_stack_return, split_stack_space_check): New expands and insns.
17557 * gcc/config/rs6000/rs6000-protos.h
17558 (rs6000_expand_split_stack_prologue): Declare.
17559 (rs6000_split_stack_space_check): Declare.
17561 2015-05-20 Alan Modra <amodra@gmail.com>
17563 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17564 (direct_return): Test vrsave_size rather than vrsave_mask.
17565 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
17566 (rs6000_emit_epilogue): Likewise.
17568 2015-05-20 Alan Modra <amodra@gmail.com>
17570 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17571 when not saving registers.
17572 (debug_stack_info): Adjust to omit printing unused offsets,
17574 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17577 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17580 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17581 value_type to const char *.
17583 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
17585 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17586 to build a biarch toolchain again.
17588 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17590 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17591 or implicit declarations.
17592 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17594 (get_odr_type): Check type has linkage before adding bases.
17595 (register_odr_type): Check that type has linkage before adding it.
17596 (type_known_to_have_no_deriavations_p): Rename to ..
17597 (type_known_to_have_no_derivations_p): This one.
17598 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17599 (type_known_to_have_no_derivations_p): This one.
17600 * ipa-polymorphic-call.c
17601 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17604 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17606 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17607 (layout_type): Use RECORD_OR_UNION_TYPE_P.
17609 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17611 * config/s390/s390.c (s390_vector_bool_type_p): New function.
17612 (s390_invalid_binary_op): New function.
17613 (TARGET_INVALID_BINARY_OP): Define macro.
17615 2015-05-19 David Sherwood <david.sherwood@arm.com>
17617 * loop-invariant.c (create_new_invariant): Don't calculate address cost
17618 if mode is not a scalar integer.
17619 (get_inv_cost): Increase computational cost for unused invariants.
17621 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17623 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
17624 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
17625 * config/s390/s390-builtin-types.def: New file.
17626 * config/s390/s390-builtins.def: New file.
17627 * config/s390/s390-builtins.h: New file.
17628 * config/s390/s390-c.c: New file.
17629 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17630 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17631 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17632 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17634 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17636 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17637 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17638 variable definitions.
17639 (s390_const_operand_ok): New function.
17640 (s390_expand_builtin): Rewrite.
17641 (s390_init_builtins): New function.
17642 (s390_handle_vectorbool_attribute): New function.
17643 (s390_attribute_table): Add s390_vector_bool attribute.
17644 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17645 (s390_branch_condition_mask): Generate masks for new modes.
17646 (s390_expand_vec_compare_cc): New function.
17647 (s390_mangle_type): Add mangling for vector bool types.
17648 (enum s390_builtin): Remove.
17649 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17651 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17652 s390_cpu_cpp_builtins.
17653 (REGISTER_TARGET_PRAGMAS): New macro.
17654 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17655 (insn_cmp mode attribute): Add new CC modes.
17656 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17657 (lcbb): New pattern definition.
17658 * config/s390/s390intrin.h: Include vecintrin.h.
17659 * config/s390/t-s390: New file.
17660 * config/s390/vecintrin.h: New file.
17661 * config/s390/vector.md: Include vx-builtins.md.
17662 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17665 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17667 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17669 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17670 (s390_select_ccmode): Likewise.
17671 (s390_canonicalize_comparison): Swap operands if necessary.
17672 (s390_expand_vec_compare_scalar): Expand DFmode compare using
17673 single element vector instructions.
17674 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17675 (s390_branch_condition_mask): Generate CC masks for the new modes.
17676 * config/s390/s390.md (v0, vf, vd): New mode attributes.
17677 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17678 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17679 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17680 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17681 (*extend<DSF:mode><BFP:mode>2): New insn definition.
17682 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17683 (extend<DSF:mode><BFP:mode>2): Turn into expander.
17684 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17685 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17686 (sqrt<mode>2): Add vector instruction.
17688 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17690 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17692 * config/s390/predicates.md (const0_operand, constm1_operand)
17693 (constable_operand): Accept vector operands.
17694 * config/s390/s390-modes.def: Add supported vector modes.
17695 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17696 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17697 (s390_bytemask_vector_p, s390_expand_vec_strlen)
17698 (s390_expand_vec_compare, s390_expand_vcond)
17699 (s390_expand_vec_init): Add prototypes.
17700 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17701 (s390_vector_mode_supported_p): New function.
17702 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17703 (s390_contiguous_bitmask_vector_p): New function.
17704 (s390_bytemask_vector_p): New function.
17705 (s390_split_ok_p): Vector regs don't work either.
17706 (regclass_map): Add VEC_REGS.
17707 (s390_legitimate_constant_p): Handle vector constants.
17708 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17709 (legitimate_reload_vector_constant_p): New function.
17710 (s390_preferred_reload_class): Handle CONST_VECTOR.
17711 (s390_reload_symref_address): Likewise.
17712 (s390_secondary_reload): Vector memory instructions only support
17713 short displacements. Rename reload*_nonoffmem* to reload*_la*.
17714 (s390_emit_ccraw_jump): New function.
17715 (s390_expand_vec_strlen): New function.
17716 (s390_expand_vec_compare): New function.
17717 (s390_expand_vcond): New function.
17718 (s390_expand_vec_init): New function.
17719 (s390_dwarf_frame_reg_mode): New function.
17720 (print_operand): Handle addresses with 'O' and 'R' constraints.
17721 (NR_C_MODES, constant_modes): Add vector modes.
17722 (s390_output_pool_entry): Handle vector constants.
17723 (s390_hard_regno_mode_ok): Handle vector registers.
17724 (s390_class_max_nregs): Likewise.
17725 (s390_cannot_change_mode_class): New function.
17726 (s390_invalid_arg_for_unprototyped_fn): New function.
17727 (s390_function_arg_vector): New function.
17728 (s390_function_arg_float): Remove size variable.
17729 (s390_pass_by_reference): Handle vector arguments.
17730 (s390_function_arg_advance): Likewise.
17731 (s390_function_arg): Likewise.
17732 (s390_return_in_memory): Vector values are returned in a VR if
17734 (s390_function_and_libcall_value): Handle vector arguments.
17735 (s390_gimplify_va_arg): Likewise.
17736 (s390_call_saved_register_used): Consider the arguments named.
17737 (s390_conditional_register_usage): Disable v16-v31 for non-vec
17739 (s390_preferred_simd_mode): New function.
17740 (s390_support_vector_misalignment): New function.
17741 (s390_vector_alignment): New function.
17742 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17743 (TARGET_VECTOR_MODE_SUPPORTED_P)
17744 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17745 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17746 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17747 (TARGET_VECTOR_ALIGNMENT): Define target macro.
17748 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17749 (FIRST_PSEUDO_REGISTER): Increase value.
17750 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17751 (VECTOR_REG_P): Define macros.
17752 (FIXED_REGISTERS, CALL_USED_REGISTERS)
17753 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17754 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17755 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17756 Add vector registers.
17757 (CANNOT_CHANGE_MODE_CLASS): Call C function.
17758 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17759 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17761 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17762 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17763 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17764 (VR*_REGNUM): New constants.
17765 (ALL): New mode iterator.
17766 (INTALL): Remove mode iterator.
17768 (movti): Implement TImode moves for VRs.
17769 Disable TImode splitter for VR targets.
17770 Implement splitting TImode GPR<->VR moves.
17771 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17772 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17773 reload<mode>_la_in, reload<mode>_la_out.
17774 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17775 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17776 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17777 (mov<mode> SF SD): Prefer lder, lde for loading.
17778 Add lrl and strl instructions.
17779 Add vector instructions.
17780 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17781 Call s390_expand_vec_strlen on z13.
17782 (*cc_to_int): Change predicate to nonimmediate_operand.
17783 (addti3): Rename to *addti3. New expander.
17784 (subti3): Rename to *subti3. New expander.
17785 * config/s390/vector.md: New file.
17787 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17789 * common/config/s390/s390-common.c (processor_flags_table): Add
17791 * config.gcc: Add z13.
17792 * config/s390/s390-opts.h (enum processor_type): Add
17793 PROCESSOR_2964_Z13.
17794 * config/s390/s390.c (s390_adjust_priority): Check for
17795 PROCESSOR_2964_Z13.
17796 (s390_reorg): Likewise.
17797 (s390_sched_reorder): Likewise.
17798 (s390_sched_variable_issue): Likewise.
17799 (s390_loop_unroll_adjust): Likewise.
17800 (s390_option_override): Likewise. Default to -mvx when available.
17801 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17802 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17803 (TARGET_VX_ABI): Define macros.
17805 (TARGET_DEFAULT): Add MASK_OPT_VX.
17806 * config/s390/s390.md ("cpu" attribute): Add z13.
17807 ("cpu_facility" attribute): Add vec.
17808 * config/s390/s390.opt (processor_type): Add z13.
17809 (mvx): New options.
17810 * doc/invoke.texi: Add z13 option for -march.
17812 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17814 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17815 mode check to make sure that only scalar integer values are
17818 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17820 * tree.c (verify_type_variant): Fix #undef.
17821 (gimple_canonical_types_compatible_p): Move here from lto.c
17822 (verify_type): Verify TYPE_CANONICAL compatibility.
17823 * tree.h (gimple_canonical_types_compatible_p): Declare.
17825 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17827 PR middle-end/66199
17828 * tree.h (OMP_TEAMS_COMBINED): Define.
17829 * gimplify.c (enum gimplify_omp_var_data): Add
17830 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17831 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17832 (omp_notice_variable): Accept both ORT_TEAMS
17833 and ORT_COMBINED_TEAMS. Don't recurse if
17834 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17835 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17837 (omp_no_lastprivate): New function.
17838 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17839 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17840 notice_outer and set appropriate bits, otherwise make
17841 sure default(none) combined constructs won't complain.
17842 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17843 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17844 omp_no_lastprivate either remove the clause or turn it
17845 into OMP_CLAUSE_PRIVATE.
17846 (gimplify_omp_for): Fix up handling of implicit
17847 lastprivate or linear iterators.
17848 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17849 ORT_COMBINED_TEAMS.
17850 * omp-low.c (lower_omp_for_lastprivate): For combined
17851 for simd use fd.loop.n2 from the for rather than simd.
17853 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17855 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17856 instead of gen_rtx_raw_REG.
17857 (cris_expand_epilogue): Likewise.
17858 * config/microblaze/microblaze.c (microblaze_classify_address):
17860 * config/sparc/sparc.md: Likewise.
17862 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17864 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17865 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17866 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17867 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17868 Use CASE_CONST_SCALAR_INT.
17869 (print_operand) <case 'M'>: Use mode_width_operand to check the
17870 value of the constant.
17871 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17872 * config/alpha/predicates.md (input_operand): Use general_operand
17873 instead of match_code as operand check.
17874 (symbolic_operand): Use match_code with subexpression digits.
17875 * config/alpha/constraints.md (Q): Ditto.
17877 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17879 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17881 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17883 * config/s390/s390.c (s390_secondary_reload): Fix check for
17884 load/store relative.
17886 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17888 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17889 alternative_mask to uint64_t.
17891 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17893 PR tree-optimization/66187
17894 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17895 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17896 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17898 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17900 * diagnostic.c (diagnostic_report_current_module): Strengthen
17901 local "new_map" from const line_map * to
17902 const line_map_ordinary *.
17903 * genmatch.c (error_cb): Likewise for local "map".
17904 (output_line_directive): Likewise for local "map".
17905 * input.c (expand_location_1): Likewise for local "map".
17906 Pass NULL rather than &map to
17907 linemap_unwind_to_first_non_reserved_loc, since the value is never
17908 read from there, and the value written back not read from here.
17909 (is_location_from_builtin_token): Strengthen local "map" from
17910 const line_map * to const line_map_ordinary *.
17911 (dump_location_info): Strengthen locals "map" from
17912 line_map *, one to const line_map_ordinary *, the other
17913 to const line_map_macro *.
17914 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17915 const line_map * to const line_map_macro *.
17916 (maybe_unwind_expanded_macro_loc): Add a call to
17917 linemap_check_macro when writing to the "map" field of the
17919 Introduce local const line_map_ordinary * "ord_map", using it in
17920 place of "map" in the part of the function where we know we have
17921 an ordinary map. Strengthen local "m" from const line_map * to
17922 const line_map_ordinary *.
17924 2015-05-19 Nick Clifton <nickc@redhat.com>
17927 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17928 separate source and destination registers.
17930 2015-05-19 Richard Biener <rguenther@suse.de>
17932 PR tree-optimization/66165
17933 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17934 for no load permutation.
17936 PR tree-optimization/66185
17937 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17938 when building the SLP node from scalars.
17940 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17941 Tristan Gingold <gingold@adacore.com>
17943 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17944 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17945 (expand_stack_restore): Call record_new_stack_level.
17946 (expand_stack_save): Do not call do_pending_stack_adjust.
17947 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17948 * calls.c (expand_call): Call record_new_stack_level for alloca.
17949 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17950 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17951 (update_sjlj_context): New global function.
17952 * except.h (update_sjlj_context): Declare.
17953 * explow.c (record_new_stack_level): New global function.
17954 (allocate_dynamic_stack_space): Call record_new_stack_level.
17955 * explow.h (record_new_stack_level): Declare.
17956 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17957 * cfgrtl.c (duplicate_insn_chain): Likewise.
17959 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17961 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17962 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17963 STACK_GROWS_DOWNWARD as normal if.
17964 (expand_call): Likewise.
17966 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17969 * config/sh/sh.md (*round_int_even): New insn_and_split and
17970 accompanying new unnamed split.
17972 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17974 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17975 (bitmap_clear_range): Likewise.
17976 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17977 bitmap_set_range unconditionally.
17978 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17979 * df-scan.c (df_mark_reg): Likewise.
17980 * haifa-sched.c (setup_ref_regs): Likewise.
17981 * sched-rgn.c (update_live_1): Likewise.
17983 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17985 * regs.h (END_HARD_REGNO): Delete.
17986 (END_REGNO): Move to...
17988 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17989 * caller-save.c (mark_set_regs): Likewise.
17990 * combine.c (move_deaths, distribute_notes): Likewise.
17991 * cse.c (invalidate, invalidate_for_call): Likewise.
17992 * df-scan.c (df_ref_record): Likewise.
17993 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17994 (record_last_reg_set_info): Likewise.
17995 * reg-stack.c (convert_regs_exit): Likewise.
17996 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17997 * resource.c (update_live_status): Likewise.
17998 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
18000 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18002 * rtl.h (reg_info): Add an nregs field.
18003 (REG_NREGS): Use it.
18004 (SET_REGNO_RAW): Delete.
18005 (set_regno_raw): New function.
18006 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
18007 (END_REGNO): Redefine in terms of REG_NREGS.
18008 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
18010 * emit-rtl.c (set_mode_and_regno): Likewise.
18011 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
18012 instead of SET_REGNO_RAW.
18014 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18016 * rtl.h (PUT_MODE_RAW): New macro.
18017 (PUT_REG_NOTE_KIND): Use it.
18018 (set_mode_and_regno): Declare.
18019 (gen_raw_REG): Change regno to "unsigned int".
18020 (gen_rtx_REG): Change "unsigned" to "unsigned int".
18021 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
18022 use set_mode_and_regno to change the mode of registers.
18023 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
18024 * emit-rtl.c (set_mode_and_regno): New function.
18025 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
18026 * caller-save.c (reg_save_code): Use set_mode_and_regno.
18027 * expr.c (init_expr_target): Likewise.
18028 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18029 * postreload.c (reload_cse_simplify_operands): Likewise.
18031 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18033 * caller-save.c (init_caller_save): Use word_mode and
18034 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
18035 * expr.c (init_expr_target): Likewise.
18036 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18037 * postreload.c (reload_cse_regs_1): Likewise.
18039 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18041 * rtl.def (REG): Change format to "r".
18042 * rtl.h (rtunion): Remove rt_reg.
18043 (reg_info): New structure.
18044 (rtx_def): Add reg field to main union.
18045 (X0REGATTR): Delete.
18046 (REG_CHECK): New macro.
18047 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
18048 * rtl.c (rtx_format): Document "r".
18049 (rtx_code_size): Handle REG specially.
18050 * gengenrtl.c (special_format): Return true for formats
18052 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
18053 Deal with REG_ATTRS after the field loop.
18054 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
18055 * expmed.c (init_expmed): Call gen_raw_REG instead of
18057 * expr.c (init_expr_target): Likewise.
18058 * regcprop.c (maybe_mode_change): Likewise.
18059 * varasm.c (make_decl_rtl): Likewise.
18060 * final.c (leaf_renumber_regs_insn): Return early after
18062 * genemit.c (gen_exp): Handle 'r' fields.
18063 * genpeep.c (match_rtx): Likewise.
18064 * gensupport.c (subst_pattern_match): Likewise.
18065 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
18066 (alter_constraints, subst_dup): Likewise.
18067 * read-rtl.c (read_rtx_code): Likewise.
18068 * print-rtl.c (print_rtx): Likewise.
18069 * genrecog.c (find_operand, find_matching_operand): Likewise.
18070 (validate_pattern, match_pattern_2): Likewise.
18071 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
18072 (rtx_test::regno_field): New function.
18073 (operator ==, safe_to_hoist_p, transition_parameter_type)
18074 (parameter_type_string, print_parameter_value)
18075 (print_nonbool_test, print_test): Handle new enum values.
18076 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
18077 * lra-constraints.c (operands_match_p): Likewise.
18079 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18081 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
18082 Change type of new_regno to unsigned int.
18083 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
18084 new_regno to unsigned int.
18085 (df_ref_change_reg_with_loc): Remove old_regno parameter.
18086 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
18087 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
18088 (SET_REGNO_RAW): Add space after ",".
18090 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18092 * rtl.h (REG_NREGS): New macro
18093 * alias.c (record_set): Use it.
18094 * cfgcleanup.c (mark_effect): Likewise.
18095 * combine.c (likely_spilled_retval_1): Likewise.
18096 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
18097 (move_deaths, distribute_notes): Likewise.
18098 * cselib.c (cselib_record_set): Likewise.
18099 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
18100 * df-scan.c (df_mark_reg): Likewise.
18101 * dse.c (look_for_hardregs): Likewise.
18102 * dwarf2out.c (reg_loc_descriptor): Likewise.
18103 (multiple_reg_loc_descriptor): Likewise.
18104 * expr.c (write_complex_part, read_complex_part): Likewise.
18105 (emit_move_complex): Likewise.
18106 * haifa-sched.c (setup_ref_regs): Likewise.
18107 * ira-lives.c (mark_hard_reg_live): Likewise.
18108 * lra.c (lra_set_insn_recog_data): Likewise.
18109 * mode-switching.c (create_pre_exit): Likewise.
18110 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
18111 (reload_combine_recognize_pattern): Likewise.
18112 (reload_combine_note_use, move2add_record_mode): Likewise.
18113 (reload_cse_move2add): Likewise.
18114 * reg-stack.c (subst_stack_regs_pat): Likewise.
18115 * regcprop.c (kill_value, copy_value): Likewise.
18116 (copyprop_hardreg_forward_1): Likewise.
18117 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
18118 (build_def_use): Likewise.
18119 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
18120 (deps_analyze_insn): Likewise.
18121 * sched-rgn.c (check_live_1, update_live_1): Likewise.
18122 * sel-sched.c (count_occurrences_equiv): Likewise.
18123 * valtrack.c (dead_debug_insert_temp): Likewise.
18125 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
18127 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
18128 * dse.c (note_add_store): Likewise.
18129 * ira-lives.c (mark_hard_reg_dead): Likewise.
18130 * loop-invariant.c (mark_reg_store): Likewise.
18131 (mark_reg_death): Likewise.
18132 * postreload.c (reload_combine): Likewise.
18133 (reload_combine_note_store): Likewise.
18134 (reload_combine_note_use): Likewise.
18135 * recog.c (peep2_reg_dead_p): Likewise.
18137 2015-05-19 Alan Modra <amodra@gmail.com>
18139 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
18140 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
18141 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
18143 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
18144 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
18145 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
18146 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
18148 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
18150 * config/mips/mips.md (JOIN_MODE): New mode iterator.
18151 (join2_load_Store<JOIN_MODE:mode>): New pattern.
18152 (join2_loadhi): Likewise.
18153 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
18154 load-load and store-stores.
18155 * config/mips/mips.opt (mload-store-pairs): New option.
18156 (TARGET_LOAD_STORE_PAIRS): New macro.
18157 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
18158 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
18159 * config/mips/mips.c (mips_load_store_bonding_p): New function.
18161 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
18163 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
18165 * dojump.c (do_compare_rtx_and_jump): Likewise.
18166 * expmed.c (emit_store_flag_1): Likewise.
18167 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
18168 * final.c (sprint_ul): Use std::reverse for reversing a string.
18169 * fold-const.c (extract_muldiv_1): Use std::swap.
18170 * genmodes.c (emit_mode_int_n): Likewise.
18171 * ifcvt.c (dead_or_predicable): Likewise.
18172 * ira-build.c (ira_merge_live_ranges): Likewise.
18173 (swap_allocno_copy_ends_if_necessary): Likewise.
18174 * ira.c (ira_setup_alts): Likewise.
18175 * loop-iv.c (iv_analyze_expr): Likewise.
18176 (implies_p): Likewise.
18177 (canon_condition): Likewise.
18178 * lra-constraints.c (swap_operands): Likewise.
18179 * lra-lives.c (lra_merge_live_ranges): Likewise.
18180 * omega.c (swap): Remove.
18182 (omega_unprotect_1): Use std::swap.
18183 (omega_solve_geq): Likewise.
18184 * optabs.c (expand_binop_directly): Likewise.
18185 (expand_binop): Likewise.
18186 (emit_conditional_move): Likewise.
18187 (emit_conditional_add): Likewise.
18188 * postreload.c (reload_cse_simplify_operands): Likewise.
18189 * reg-stack.c (emit_swap_insn): Likewise.
18190 (swap_to_top): Likewise.
18191 (compare_for_stack_reg): Likewise.
18192 (subst_asm_stack_regs): Likewise.
18193 * reload.c (find_reloads): Likewise.
18194 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
18195 * sel-sched.c (invoke_reorder_hooks): Likewise.
18196 (create_block_for_bookkeeping): Likewise.
18197 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
18198 (lambda_matrix_right_hermite): Use std::swap.
18199 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
18200 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
18201 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
18202 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
18203 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
18204 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
18205 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18206 * tree-vrp.c (compare_ranges): Likewise.
18207 * var-tracking.c (add_with_sets): Likewise.
18208 (vt_find_locations): Likewise.
18210 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
18212 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
18214 (FBSD_ENDFILE_SPEC): Likewise.
18215 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
18216 config/freebsd-spec.h.
18217 (ENDFILE_SPEC): Likewise.
18219 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
18220 Richard Henderson <rth@redhat.com>
18223 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
18224 Check for a memory location that is not a reference (using an AND)
18225 to an unaligned location here.
18226 * config/alpha/predicates.md (normal_memory_operand): Remove.
18228 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
18230 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
18231 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
18233 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
18235 * config/mips/mips.c (micromips_globals): New variable.
18236 (mips_set_compression_mode): Save and reinitialize target-dependent
18237 state for microMIPS.
18239 2015-05-18 Martin Liska <mliska@suse.cz>
18241 * dbgcnt.def: Add new counter.
18242 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
18244 2015-05-18 Martin Liska <mliska@suse.cz>
18246 * dbgcnt.def: Sort counters.
18247 * opts.c (common_handle_option): Do not compile if
18248 -fdbg-cnt-list is enabled.
18250 2015-05-18 Tom de Vries <tom@codesourcery.com>
18252 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
18253 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
18254 address operator to va_list operand.
18255 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
18257 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
18259 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
18260 * config/s390/s390.c (s390_gimplify_va_arg): Same.
18261 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
18263 2015-05-18 Tom de Vries <tom@codesourcery.com>
18265 * tree-ssa-tail-merge.c: Fix whitespace.
18267 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
18269 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
18270 cortex-a17, and cortex-a17.cortex-a7.
18272 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
18275 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
18277 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
18280 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
18281 QImode inner modes for TARGET_AVX512BW. Force mask operand
18282 to a register for AVX512F modes.
18284 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18286 * toplev.c (emit_debug_global_declarations): Do not output debug info
18287 when doing slim LTO objects.
18289 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18291 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
18292 odr_types_equivalent_p): Declare.
18293 (odr_type_p): Use gcc_checking_assert.
18294 (type_in_anonymous_namespace_p) Declare.
18295 (type_with_linkage_p): Declare.
18296 * common.opt (Wlto-type-mismatch): New warning.
18297 * ipa-devirt.c (compound_type_base): New function.
18298 (odr_or_derived_type_p): New function.
18299 (odr_types_equivalent_p): New function.
18300 (add_type_duplicate): Simplify.
18301 (type_with_linkage_p): Add hack to prevent false positives on C types
18302 (type_in_anonymous_namespace_p): Likewise.
18303 * tree.c (need_assembler_name_p): Use type_with_linkage.
18304 * tree.h (type_in_anonymous_namespace_p): Remove.
18305 * doc/invoke.texi (-Wlto-type-mismatch): Document
18307 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
18309 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
18310 (verify_type): Verify STRING_FLAG.
18312 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
18315 * tree-pretty-print.c (percent_K_format): Replace locus pointer
18316 with accessor function.
18317 * tree-diagnostic.c (diagnostic_report_current_function): Use
18318 diagnostic_location function.
18319 (maybe_unwind_expanded_macro_loc): Likewise.
18320 (virt_loc_aware_diagnostic_finalizer): Likewise.
18321 (default_tree_printer): Replace locus pointer with accessor function.
18322 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
18323 (diagnostic_set_info_translated): Initialize second location.
18324 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
18325 (diagnostic_show_locus): Handle two locations. Call
18326 diagnostic_print_caret_line.
18327 (diagnostic_print_caret_line): New.
18328 (default_diagnostic_starter): Use diagnostic_location function.
18329 (diagnostic_report_diagnostic): Use diagnostic_location function.
18330 (verbatim): Do not set text.locus.
18331 * diagnostic.h (struct diagnostic_info): Remove location field.
18332 (struct diagnostic_context): Make caret_chars an array of two.
18333 (diagnostic_location): New inline.
18334 (diagnostic_expand_location): Handle two locations.
18335 (diagnostic_same_line): New inline.
18336 (diagnostic_print_caret_line): Declare.
18337 (CARET_LINE_MARGIN): New constant.
18338 * pretty-print.c (pp_printf): Do not set text.locus.
18339 (pp_verbatim): Do not set text.locus.
18340 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
18341 (struct text_info): Replace locus pointer with locations
18342 array. Add accessor functions.
18344 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
18345 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18348 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
18349 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
18350 large constants in register instead of splitting them.
18352 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
18355 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
18356 replacements in memory addresses.
18357 (get_unaligned_address): Ditto.
18359 2015-05-16 James Bowman <james.bowman@ftdichip.com>
18361 * config/ft32/*: New files for FT32 port.
18362 * doc/install.texi: Add FT32 information.
18363 * doc/invoke.texi: Add FT32 information.
18364 * doc/md.texi: Add FT32 information.
18365 * doc/contrib.texi: Self added.
18367 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
18369 PR tree-optimization/64454
18370 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
18371 (-1 - A -> ~A): Remove unnecessary condition.
18373 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
18375 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
18376 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
18377 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
18379 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
18381 * ipa-chkp.h (chkp_wrap_function): New.
18382 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
18383 (chkp_wrap_function_name): New.
18384 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
18385 to get wrapper name.
18386 * lto-cgraph.c: Include ipa-chkp.h.
18387 (input_cgraph_1): Avoid alias chain for wrappers.
18389 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18391 PR middle-end/66134
18392 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
18393 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
18395 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18397 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
18398 (AARCH64_FL_SLOWMUL): Delete.
18399 (AARCH64_FL_CRC): Redefine to 1<<3.
18400 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
18402 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18404 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
18407 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18409 * config/alpha/alpha.md (extendqidi2): Use general_operand
18410 instead of some_operand for operand[1] predicate.
18411 (extendhidi2): Ditto.
18412 (cbranchdi4): Use general_operand instead of some_operand
18413 for operand[1] and operands[2] predicates.
18414 (cstoredi4): Ditto.
18415 * config/alpha/predicates.md (some_operand): Remove unused predicate.
18416 (some_ni_operand): Ditto.
18418 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
18420 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
18421 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
18422 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
18423 low part of the constant using alpha_emit_set_const_1.
18424 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
18426 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
18428 * varasm.c (output_constant_pool_1): Pass down alignment from
18429 constant pool entry's descriptor to output_constant_pool_2.
18430 (output_object_block): Add comment prior to call to
18431 output_constant_pool_1.
18433 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
18435 PR rtl-optimization/65862
18436 * target.def (ira_change_pseudo_allocno_class): New hook.
18437 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
18439 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
18440 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
18442 * ira-costs.c (find_costs_and_classes): Call the hook and change
18443 classes when it is necessary.
18444 * doc/tm.texi: Update.
18446 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
18448 * config/i386/i386.md (sibcall_memory): Check that register with
18449 callee address is not also used as one of the arguments, instead
18450 of checking that it is not live after the sibcall.
18451 (sibcall_pop_memory): Ditto.
18452 (sibcall_value_memory): Ditto.
18453 (sibcall_value_pop_memory): Ditto.
18455 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
18457 * generic-match-head.c (types_match): Handle non-types.
18458 * gimple-match-head.c (types_match): Likewise.
18459 * match.pd: Remove unnecessary TREE_TYPE for types_match.
18461 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
18463 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
18464 (csneg3<mode>_insn): Enable expansion of pattern.
18466 2015-05-14 Nick Clifton <nickc@redhat.com>
18468 * config/rl78/rl78.c (rl78_select_section): Select the correct
18469 default section based upon the category of the decl.
18471 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18473 PR rtl-optimization/30967
18474 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
18475 destination mode for the cost of scc patterns.
18477 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18479 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
18480 using SWIM248 mode iterator.
18481 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
18482 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
18483 for operand[2] constraint.
18484 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
18486 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18488 PR middle-end/66133
18489 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
18490 make sure it is never noreturn, even when the task body does not
18492 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
18493 right before GIMPLE_OMP_RETURN.
18494 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
18495 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
18496 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
18498 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18500 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
18501 * tree-ssa-math-opts.c: Include params.h
18502 (pow_synth_sqrt_info): New struct.
18503 (representable_as_half_series_p): New function.
18504 (get_fn_chain): Likewise.
18505 (print_nested_fn): Likewise.
18506 (dump_fractional_sqrt_sequence): Likewise.
18507 (dump_integer_part): Likewise.
18508 (expand_pow_as_sqrts): Likewise.
18509 (gimple_expand_builtin_pow): Use above to attempt to expand
18510 pow as series of square roots. Removed now unused variables.
18512 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
18514 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
18515 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
18516 Remove *p0 and *p1 arguments. Rewrite function.
18517 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18518 (alpha_split_const_mov): Update calls to alpha_extract_integer and
18519 alpha_emit_set_long_const.
18520 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18521 (alpha_output_mi_thunk_osf): Ditto.
18522 * config/alpha/alpha.md (movti): Do not check operands[1]
18525 2015-05-13 Richard Biener <rguenther@suse.de>
18527 PR tree-optimization/66129
18528 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18530 (vect_schedule_slp_instance): Fix typo.
18532 2015-05-13 David Malcolm <dmalcolm@redhat.com>
18534 * common.opt (fdump-internal-locations): New option.
18535 * input.c: Include diagnostic-core.h.
18536 (get_end_location): New function.
18537 (write_digit): New function.
18538 (write_digit_row): New function.
18539 (dump_location_range): New function.
18540 (dump_labelled_location_range): New function.
18541 (dump_location_info): New function.
18542 * input.h (dump_location_info): New prototype.
18543 * toplev.c (compile_file): Handle flag_dump_locations.
18545 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
18547 * gimple-expr.h (is_gimple_constant): Reorder.
18548 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18550 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18552 * combine.c (simplify_set): When generating a CC set, if the
18553 source already is in the correct mode, do not wrap it in a
18554 compare. Simplify the rest of that code.
18556 2015-05-13 Richard Biener <rguenther@suse.de>
18558 PR tree-optimization/66123
18559 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18562 2015-05-13 Richard Biener <rguenther@suse.de>
18564 PR middle-end/66110
18565 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18567 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18569 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18571 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18572 * aclocal.m4: Regenerated with automake-1.11.6.
18574 2015-05-13 Tom de Vries <tom@codesourcery.com>
18576 PR tree-optimization/66010
18577 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18578 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18579 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
18580 and rval based on do_deref.
18582 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18585 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18586 link time constants into adress expressions and therefore set
18589 2015-05-13 Jakub Jelinek <jakub@redhat.com>
18592 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18593 Use SWI248 iterator instead of SWI.
18594 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
18595 Use eq_attr "alternative" "0" instead of match_test in
18596 length_immediate attribute computation.
18597 (*mulvhi4, *mulvhi4_1): New define_insns.
18600 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18601 SIGNED to get precision of non-negative value.
18603 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18606 * function.c (diddle_return_value_1): Process bounds first.
18607 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18610 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18612 PR rtl-optimization/64616
18613 * loop-invariant.c (can_move_invariant_reg): New.
18614 (move_invariant_reg): Call above new function to decide whether
18615 instruction can just be moved, skipping creation of temporary
18618 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18620 PR target/pr66047.c
18621 * i386.c (ix86_function_sseregparm): Only return -1 if local function
18622 with implied regparm is called from -mno-sse function.
18623 (init_cumulative_args): Output error if ix86_function_sseregparm
18624 return -1 and SSE register would be needed.
18625 (function_arg_advance_32): Likewise.
18626 (function_arg_32): Likewise.
18627 * i386.h (ix86_args): Add decl field.
18629 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18632 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18633 inlines across optimization boundary.
18635 2015-05-12 Jason Merrill <jason@redhat.com>
18637 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18638 string literal and macro name.
18640 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
18642 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18643 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18644 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18646 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18648 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18649 (-Wmisleading-indentation): New option.
18650 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18652 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
18654 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18655 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18656 (alpha_extract_integer): Ditto.
18657 (alpha_legitimate_constant_p): Ditto.
18658 (alpha_split_tmode_pair): Ditto.
18659 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18660 (alpha_expand_mov): Ditto.
18661 (print_operand): Remove handling of 'H' modifier.
18662 <case 'm'>: Remove CONST_DOUBLE handling.
18663 (summarize_insn): Handle CONST_WIDE_INT.
18664 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18666 (movti): Handle CONST_WIDE_INT.
18667 * config/alpha/constraints.md ('H'): Remove constraint definition.
18668 ('G'): Do not match MODE_FLOAT class.
18669 * config/alpha/predicates.md (const0_operand): Also match
18671 (non_add_const_operand): Ditto.
18672 (non_zero_const_operand): Ditto.
18673 (some_operand): Ditto.
18674 (input_operand): Ditto. Handle CONST_WIDE_INT.
18675 (and_operand): Do not match const_double.
18676 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18678 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
18681 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18682 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18683 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18684 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18685 is_mm_seq_cst, is_mm_sync): New accessor functions.
18686 * builtins.c (expand_builtin_sync_operation,
18687 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18688 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18689 (get_memmodel, expand_builtin_atomic_compare_exchange,
18690 expand_builtin_atomic_load, expand_builtin_atomic_store,
18691 expand_builtin_atomic_clear): Use new accessor routines.
18692 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18693 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18694 (maybe_emit_sync_lock_test_and_set): Use new accessors and
18695 MEMMODEL_SYNC_ACQUIRE.
18696 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18697 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18698 expand_atomic_store): Use new accessors.
18699 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18700 * tsan.c (instrument_builtin_call): Update check for memory model beyond
18701 final enum to use MEMMODEL_LAST.
18702 * c-family/c-common.c: Use new accessor for memmodel_base.
18703 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18705 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18706 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18707 mem_thread_fence, *dmb): Likewise.
18708 * config/alpha/alpha.c (alpha_split_compare_and_swap,
18709 alpha_split_compare_and_swap_12): Likewise.
18710 * config/arm/arm.c (arm_expand_compare_and_swap,
18711 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18712 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18713 atomic_loaddi): Likewise.
18714 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18716 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18717 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18719 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18720 atomic_store<mode>, atomic_compare_and_swap<mode>,
18721 atomic_exchange<mode>): Use new accessors.
18722 * config/mips/mips.c (mips_process_sync_loop): Likewise.
18723 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18724 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18725 rs6000_post_atomic_barrier): Add new cases.
18726 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18727 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18728 (atomic_load<mode>): Add new cases and use new accessors.
18729 (store_quadpti): Add new cases.
18730 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18732 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18733 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18736 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
18738 * ipa-devirt.c (type_with_linkage_p): New function.
18739 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18741 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18742 (can_be_name_hashed_p): Simplify.
18743 (hash_odr_name): Check that type has linkage before checking if it is
18745 (types_same_for_odr): Likewise.
18746 (odr_name_hasher::equal): Likewise.
18747 (odr_subtypes_equivalent_p): Likewise.
18748 (warn_types_mismatch): Likewise.
18749 (get_odr_type): Likewise.
18750 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18751 * ipa-utils.h (odr_type_p): Move offline.
18752 * tree.c (need_assembler_name_p): Fix handling of types
18754 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18756 2015-05-12 David Malcolm <dmalcolm@redhat.com>
18758 * timevar.c (timevar_enable): Delete in favor of...
18759 (g_timer): New global.
18760 (struct timevar_def): Move to timevar.h inside class timer.
18761 (struct timevar_stack_def): Likewise.
18762 (timevars): Delete global in favor of field "m_timevars" within
18763 class timer in timevar.h
18764 (stack): Likewise, in favor of field "m_stack".
18765 (unused_stack_instances): Likewise, in favor of field
18766 "m_unused_stack_instances".
18767 (start_time): Likewise, in favor of field "m_start_time".
18768 (get_time): Eliminate check for timevar_enable.
18769 (timer::timer): New function, built from part of timevar_init.
18770 (timevar_init): Rewrite idempotency test from using
18771 "timevar_enable" bool to using dynamic allocation of "g_timer".
18772 Move rest of implementation into timer's constructor.
18773 (timevar_push_1): Rename to...
18774 (timer::push): ...this, adding "m_" prefixes to variables that
18775 are now fields of timer.
18776 (timevar_pop_1): Likewise, rename to...
18777 (timer::pop): ...this, and add "m_" prefixes.
18778 (timevar_start): Replace test for "timevar_enable" with one for
18779 "g_timer", and move bulk of implementation to...
18780 (timer::start): ...here, adding "m_" prefixes.
18781 (timevar_stop): Likewise, from here...
18782 (timer::stop): ...to here.
18783 (timevar_cond_start): Likewise, from here...
18784 (timer::cond_start): ...to here.
18785 (timevar_cond_stop): Likewise, from here...
18786 (timer::cond_stop): ...to here.
18787 (validate_phases): Rename to...
18788 (timer::validate_phases): ...this, and add "m_" prefixes. Make
18789 locals "total" and "tv" const.
18790 (timevar_print): Rename to...
18791 (timer::print): ...this, and add "m_" prefixes. Make locals
18792 "total" and "tv" const. Eliminate test for timevar_enable.
18793 * timevar.h (timevar_enable): Eliminate.
18794 (g_timer): New declaration.
18795 (timevar_push_1): Eliminate.
18796 (timevar_pop_1): Eliminate.
18797 (timevar_print): Eliminate.
18798 (class timer): New class.
18799 (timevar_push): Rewrite to use g_timer.
18800 (timevar_pop): Likewise.
18801 * toplev.c (toplev::~toplev): Likewise.
18803 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
18805 * arm-protos.h (arm_sched_autopref): Delete.
18806 (tune_params): Re-organize, use enums for flag values.
18807 (FUSE_OPS): New macro.
18808 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18809 (ARM_PREFETCH_BENEFICIAL): Likewise.
18810 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18811 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18812 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18813 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18814 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18815 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
18816 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18817 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18819 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18820 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18821 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18823 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18825 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18828 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18829 Sandra Loosemore <sandra@codesourcery.com>
18831 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18833 (REG_CLASS_NAMES): Add "IJMP_REGS".
18834 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18835 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18836 use new "c" register constraint.
18837 * config/nios2/constraint.md (c): New register constraint
18838 corresponding to IJMP_REGS.
18840 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18842 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18843 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18844 define_splits): Delete, revamp, transmogrify into ...
18845 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18846 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18847 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18850 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18852 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18853 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18855 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18857 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18858 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18859 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18860 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18861 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18862 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18863 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18864 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18865 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18866 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18867 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18868 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18869 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18870 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18871 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18872 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18873 and 30 corresponding splitters): Delete.
18875 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18877 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18880 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18882 * combine.c (recog_for_combine_1): New function, factored out
18883 from recog_for_combine.
18884 (change_zero_ext): New function.
18885 (recog_for_combine): If recog fails, try again with the pattern
18886 modified by change_zero_ext; if that still fails, restore the
18889 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18891 * combine.c (get_undo_marker): New function.
18892 (undo_to_marker): New function, largely factored out from ...
18893 (undo_all): ... this. Adjust.
18895 2015-05-12 Richard Biener <rguenther@suse.de>
18897 PR tree-optimization/66101
18898 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18899 fixup if we turn a loop exit edge to a fallthru edge.
18901 2015-05-12 Richard Biener <rguenther@suse.de>
18903 PR tree-optimization/37021
18904 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18905 (SLP_TREE_TWO_OPERATORS): New define.
18906 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18907 SLP_TREE_TWO_OPERATORS.
18908 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18910 (vect_build_slp_tree): Adjust.
18911 (vect_analyze_slp_cost_1): Likewise.
18912 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18913 emitting two vector stmts and mixing the results.
18915 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18917 * call.c (print_z_candidates): Remove dead code.
18919 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18921 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18922 and zEC12_simple_fp.
18923 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18926 2015-05-12 Tom de Vries <tom@codesourcery.com>
18928 PR tree-optimization/66010
18929 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18931 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18932 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18933 va_lists are passed, and remove corresponding handling.
18934 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18935 do_deref argument to ifn_va_arg.
18936 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18939 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18942 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18943 REG before taking its REGNO.
18945 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18947 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18948 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18949 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18950 present to get more accurate information about the number of sign bit
18951 copies and non zero bits.
18953 2015-05-12 Richard Biener <rguenther@suse.de>
18955 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18956 do not allow unrolling.
18958 2015-05-11 Richard Henderson <rth@redhat.com>
18960 * config/i386/i386-modes.def (CCP): New.
18961 * config/i386/i386.c (put_condition_code): Handle it.
18962 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18964 2015-05-11 Richard Henderson <rth@redhat.com>
18966 * target.def (md_asm_clobbers): Replace with...
18967 (md_asm_adjust): this.
18968 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18969 (TARGET_MD_ASM_ADJUST): New.
18970 * tm.texi: Rebuild.
18971 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18972 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18973 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18975 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18976 constraints instead of lists of outputs and inputs.
18977 (expand_asm_stmt): Save and restore input_location around the
18978 body of the function. Move asm data into vectors instead of
18979 building tree lists. Generate cleanup sequences as needed,
18980 rather than waiting til the end. Use new md_asm_adjust hook.
18982 * config/vxworks.c: Include vec.h before target.h.
18983 * gimple.c: Likewise.
18984 * incpath.c: Likewise.
18985 * mode-switching.c: Likewise.
18987 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18988 (cris_md_asm_adjust): this.
18989 (TARGET_MD_ASM_CLOBBERS): Remove.
18990 (TARGET_MD_ASM_ADJUST): New.
18991 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18992 (ix86_md_asm_adjust): this.
18993 (TARGET_MD_ASM_CLOBBERS): Remove.
18994 (TARGET_MD_ASM_ADJUST): New.
18995 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18996 (mn10300_md_asm_adjust): this.
18997 (TARGET_MD_ASM_CLOBBERS): Remove.
18998 (TARGET_MD_ASM_ADJUST): New.
18999 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
19000 (rs6000_md_asm_adjust): this.
19001 (TARGET_MD_ASM_CLOBBERS): Remove.
19002 (TARGET_MD_ASM_ADJUST): New.
19003 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
19004 (visium_md_asm_adjust): this.
19005 (TARGET_MD_ASM_CLOBBERS): Remove.
19006 (TARGET_MD_ASM_ADJUST): New.
19008 2015-05-11 Richard Henderson <rth@redhat.com>
19010 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
19011 if noutputs is zero.
19012 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
19014 * cfgexpand.c (expand_asm_operands): Merge into...
19015 (expand_asm_stmt): ... here.
19017 * cfgexpand.c (expand_asm_operands): Don't call
19018 resolve_asm_operand_names.
19019 * stmt.c (resolve_asm_operand_names): Clarify block comment.
19021 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
19023 * dwarf2out.c (gen_member_die): Sanity check that we access
19024 TYPE_MAIN_VARIANT for TYPE_METHODS.
19025 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
19026 checking TYPE_METHODS.
19027 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
19029 (build_distinct_type_copy): Clear TYPE_METHODS.
19030 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
19031 (verify_type): Allow TYPE_METHODS to be error_mark_node.
19032 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
19034 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
19036 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
19037 (emit_pattern_before_setloc): Likewise.
19039 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
19041 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
19042 for define_peephole2s.
19043 (get_peephole2_pattern): New function.
19044 (main): Use it. Call validate_pattern.
19046 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19048 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
19049 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
19050 (Last callee saved reg is different for AVR_TINY architecture)
19052 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
19054 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
19055 when looking for memory references.
19057 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
19060 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
19061 via function pointers.
19063 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
19065 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
19066 indirect call by forcing address into a pseudo with -fno-plt.
19067 * common.opt (flag_plt): New option.
19068 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
19069 ([-fno-plt]): Document.
19071 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
19074 * config/rs6000/option-defaults.h: Add space between string literal
19077 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
19079 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
19080 accross ARM targets.
19082 2015-05-11 Christian Bruel <christian.bruel@st.com>
19084 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
19085 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
19087 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
19089 PR rtl-optimization/66076
19090 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
19091 Don't grow the heap array if it is already big enough from a
19092 previous iteration.
19094 2015-05-11 Christian Bruel <christian.bruel@st.com>
19096 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
19097 (is_called_in_ARM_mode): Remove.
19098 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
19099 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
19100 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
19101 arm_declare_function_name.
19103 2015-05-11 Christian Bruel <christian.bruel@st.com>
19105 * config/arm/arm.c (arm_option_override): Reoganized and split into :
19106 (arm_option_params_internal); New function.
19107 (arm_option_check_internal): New function.
19108 (arm_option_override_internal): New function.
19109 (thumb_code, thumb1_code): Remove.
19110 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
19111 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
19112 (thumb_code, thumb1_code): Remove.
19113 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
19115 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
19117 * config/alpha/alpha.c (alpha_emit_set_const_1)
19118 (alpha_emit_set_long_const, alpha_extract_integer)
19119 (alpha_legitimate_constant_p, alpha_split_const_mov)
19120 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
19121 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19122 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
19124 * config/alpha/predicates.md (mode_mask_operand): Do not match
19126 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19127 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
19128 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
19129 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19130 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
19132 2015-05-11 Jakub Jelinek <jakub@redhat.com>
19135 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
19136 default_binds_local_p_2.
19137 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
19138 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
19140 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19142 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
19144 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19146 Patch by Richard Biener
19147 * coverage.c (coverage_obj_init): Delay building of type variant
19148 until the type is finished.
19150 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19152 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
19153 mismatch between C and C++ type; compoare correctly ARG_TYPES
19154 for non-prototypes and output correctly parameter index for METHOD_TYPE.
19155 (odr_types_equivalent_p): Fix wording of warning about attributes;
19156 it is OK to match prototype and non-prototype.
19158 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19160 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
19161 TYPE_ARG_TYPES list.
19162 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
19163 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
19165 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
19167 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
19168 * tree.h (is_lang_specific): Constify.
19170 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
19172 PR tree-optimization/64454
19173 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
19176 2015-05-08 Jason Merrill <jason@redhat.com>
19178 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
19179 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
19180 config/darwin.h, config/darwin9.h, config/elfos.h,
19181 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
19182 config/microblaze/microblaze.h, config/mips/mips.h,
19183 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
19184 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
19185 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
19186 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
19187 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
19188 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
19189 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
19190 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
19191 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
19192 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
19193 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
19194 between string literal and macro name.
19196 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19198 * jump.c: Change argument types to rtx_insn *.
19201 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19203 * lra-constraints.c: Change argument type to rtx_insn *.
19205 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19207 * df-problems.c: Change argument type to rtx_insn *.
19209 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19211 * combine.c: Change argument type to rtx_insn *.
19213 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19216 * rtlanal.c: Change argument type to rtx_insn *.
19218 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19220 * sched-deps.c: Change argument types to rtx_insn *.
19221 * sched-int.h: Adjust.
19223 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19225 * dwarf2cfi.c: Change argument type to rtx_insn *.
19227 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19229 * ira.c (decrease_live_ranges_number): Changetype of local
19230 variable to rtx_insn *.
19231 * recog.c: Change argument types to rtx_insn *.
19234 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19236 * reorg.c: Change argument types to rtx_insn *.
19238 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19240 * ira-color.c: Change argument types to rtx_insn *.
19241 * lra-eliminations.c: Likewise.
19244 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19246 * gcse.c: Change argument types to rtx_insn *.
19248 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19250 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
19252 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19254 * emit-rtl.c (emit_debug_insn_before): Change argument type to
19258 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19260 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
19263 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19265 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
19268 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19270 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
19273 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19275 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
19278 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19280 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
19284 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19286 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
19290 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19292 * except.c (can_nonlocal_goto): Change type of argument to
19296 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19298 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
19301 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19303 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
19304 * cfgrtl.c (can_delete_label_p): Adjust.
19307 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19309 * reorg.c (stop_search_p): Change argument to rtx_insn *.
19311 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19313 * except.c (make_reg_eh_region_note): Change argument to
19315 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
19316 * except.h: Adjust.
19318 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19320 * mode-switching.c (commit_mode_sets): Change type of local
19321 variable from rtx to rtx_insn *.
19323 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
19325 * doc/install.texi (--enable-languages): Add missing jit and lto info.
19326 Add ^ to grep command.
19327 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
19328 arg to last gimple_simplify declaration. Add missing gimple_build
19329 declaration for built-in function case with four tree args.
19331 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19332 Szabolcs Nagy <szabolcs.nagy@arm.com>
19334 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
19335 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
19336 (GNU_USER_DYNAMIC_LINKERN32): Update.
19338 2015-05-08 Richard Biener <rguenther@suse.de>
19340 PR tree-optimization/66036
19341 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19342 Handle strided group loads.
19343 (vect_verify_datarefs_alignment): Likewise.
19344 (vect_enhance_data_refs_alignment): Likewise.
19345 (vect_analyze_group_access): Likewise.
19346 (vect_analyze_data_ref_access): Likewise.
19347 (vect_analyze_data_ref_accesses): Likewise.
19348 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
19349 (vectorizable_load): Likewise.
19351 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
19353 * config/rs6000/rs6000.md: Require operand inequality in one
19356 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
19357 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19359 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
19361 * config/rx/rx.md (movdi, movdf): Likewise.
19362 Likewise for define_peephole2s.
19364 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19366 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
19367 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
19368 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
19369 vtst_u64): Rewrite using gcc vector extensions.
19371 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19373 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
19374 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
19376 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
19378 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
19380 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19382 * config/glibc-stdint.h (OPTION_MUSL): Define.
19383 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
19384 Change the definition based on OPTION_MUSL for 64 bit targets.
19385 * config/linux.h (OPTION_MUSL): Redefine.
19386 * config/alpha/linux.h (OPTION_MUSL): Redefine.
19387 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
19388 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
19390 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
19391 Szabolcs Nagy <szabolcs.nagy@arm.com>
19393 * config.gcc (LIBC_MUSL): New tm_defines macro.
19394 * config/linux.h (OPTION_MUSL): Define.
19395 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
19396 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
19397 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19398 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19399 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19400 * config/linux.opt (mmusl): New option.
19401 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
19402 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19403 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19404 * configure: Regenerate.
19406 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
19407 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19410 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
19411 * config/i386/knetbsd-gnu64.h: New file.
19413 2015-05-08 Marek Polacek <polacek@redhat.com>
19416 * doc/invoke.texi: Document -Woverride-init-side-effects.
19418 2015-05-07 Marek Polacek <polacek@redhat.com>
19421 * doc/invoke.texi: Document -Wshift-negative-value.
19423 2015-05-06 Aditya Kumar <hiraditya@msn.com>
19425 * gcov-tool.c (do_merge): Refactore to remove int ret.
19426 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
19427 !type == FUNC to type != FUNC.
19428 * reload.h (struct target_reload): Changee to type of
19429 x_spill_indirect_levels from bool to unsigned char.
19431 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
19433 * rtl.h (always_void_p): New function.
19434 * gengenrtl.c (always_void_p): Likewise.
19435 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
19436 with code foo are always VOIDmode.
19437 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
19438 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
19439 compare-elim.c, config/aarch64/aarch64.c,
19440 config/aarch64/aarch64.md, config/alpha/alpha.c,
19441 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
19442 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
19443 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
19444 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19445 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
19446 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
19447 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
19448 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
19449 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
19450 config/ia64/vect.md, config/iq2000/iq2000.c,
19451 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
19452 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
19453 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
19454 config/mep/mep.c, config/microblaze/microblaze.c,
19455 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
19456 config/mn10300/mn10300.c, config/msp430/msp430.c,
19457 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
19458 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
19459 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
19460 config/rs6000/altivec.md, config/rs6000/rs6000.c,
19461 config/rs6000/rs6000.md, config/rs6000/vector.md,
19462 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
19463 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
19464 config/sh/sh.md, config/sh/sh_treg_combine.cc,
19465 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
19466 config/spu/spu.md, config/stormy16/stormy16.c,
19467 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
19468 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
19469 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
19470 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
19471 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
19472 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
19473 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
19474 var-tracking.c: Update calls accordingly.
19476 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19479 PR middle-end/54303
19480 * varasm.c (function_mergeable_rodata_prefix): New function.
19481 (mergeable_string_section): Use it.
19482 (mergeable_constant_section): Use it.
19484 2015-05-07 Jeff Law <law@redhat.com>
19487 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19488 simplifier to narrow arithmetic.
19489 * generic-match-head.c: (types_match, single_use): New functions.
19490 * gimple-match-head.c: (types_match, single_use): New functions.
19492 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19494 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
19497 2015-05-07 Richard Biener <rguenther@suse.de>
19499 PR tree-optimization/66002
19500 * passes.def: Schedule another pass_merge_phi after ifcombine, right
19503 2015-05-07 Marek Polacek <polacek@redhat.com>
19504 Martin Uecker <uecker@eecs.berkeley.edu>
19506 * doc/invoke.texi: Document -fsanitize=bounds-strict.
19507 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
19508 into SANITIZE_NONDEFAULT.
19509 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
19511 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
19514 * config/alpha/alpha.c (alpha_override_options_after_change): New.
19515 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
19516 (alpha_override_options): Move align_loops, align_jumps and
19517 align_functions handling into alpha_override_options_after_change.
19519 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
19520 Chris Jones <chrisj@nvidia.com>
19521 Joshua Conner <jconner@nvidia.com>
19523 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19524 linking of crtfastmath.o.
19525 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19527 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19529 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19530 (cstore<mode>4_unsigned_imm): New expander.
19531 (cstore<mode>4): Remove empty constraint strings. Use the new
19534 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
19537 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19540 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19542 * config/aarch64/geniterators.sh: Use standard BRE in sed.
19544 2015-05-06 Alan Modra <amodra@gmail.com>
19547 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19548 (UNSPEC_NOP): Define.
19549 (reload_vsx_from_gpr<mode>): Add missing DONE.
19550 (reload_gpr_from_vsx<mode>): Likewise.
19551 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19552 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19554 2015-05-06 Christian Bruel <christian.bruel@st.com>
19557 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19558 align_jumps, align_functions into aarch64_override_options_after_change.
19560 2015-05-06 Richard Biener <rguenther@suse.de>
19562 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19563 vect_transform_slp_perm_load to check if we support a permutation
19564 for basic-block vectorization.
19566 2015-05-06 Nick Clifton <nickc@redhat.com>
19568 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19569 used, even if it is not being used as a frame pointer.
19571 2015-05-05 Jason Merrill <jason@redhat.com>
19573 * dwarf2out.c (gen_member_die): Don't emit anything for an
19574 anonymous class constructor.
19576 2015-05-05 David Malcolm <dmalcolm@redhat.com>
19578 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19579 that it reflects the block structure.
19580 (afdo_propagate_edge): Likewise.
19581 (afdo_calculate_branch_prob): Likewise.
19582 (afdo_annotate_cfg): Likewise.
19583 * cfgcleanup.c (equal_different_set_p): Likewise.
19584 (try_crossjump_to_edge): Likewise.
19585 * cgraph.c (cgraph_node::verify_node): Likewise.
19586 * cgraphunit.c (expand_all_functions): Likewise.
19587 * config/i386/i386.c (ix86_expand_copysign): Likewise.
19588 (exact_dependency_1): Likewise.
19589 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19590 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19591 * gensupport.c (process_define_subst): Likewise.
19592 * lto-wrapper.c (merge_and_complain): Likewise.
19593 * tree-if-conv.c (if_convertible_bb_p): Likewise.
19594 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19595 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19596 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19597 * tree-vect-loop.c (vectorizable_reduction): Likewise.
19598 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19599 * tree-vect-stmts.c (vectorizable_shift): Likewise.
19600 * tree-vrp.c (vrp_finalize): Likewise.
19601 * tree.c (variably_modified_type_p): Likewise.
19603 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
19605 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19606 on darwin12 and later.
19607 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19608 file to pass -rdynamic on darwin12 and later.
19609 * config/darwin.opt (rdynamic): Add.
19611 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19613 * doc/extend.texi (C Extensions): Update menu for moved Variable
19614 Attributes and Type Attributes sections.
19616 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19619 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19620 if rep_8byte stringop strategy was specified for 32-bit target.
19622 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
19625 * config/i386/i386.md (vector convert to float spltiter): Check for
19626 xmm16+, when splitting scalar float conversion.
19627 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19629 2015-05-05 Nick Clifton <nickc@redhat.com>
19631 * config/msp430/msp430-opts.h (enum msp430_regions): New.
19632 * config/msp430/msp430.c (msp430_override_options): Complain if
19633 -mcode-region or -mdata-region is used on a non MSP430X.
19634 (msp430_section_attr): New function. Checks lower, upper and
19636 (msp430_attribute_table): Add lower, upper and either.
19637 (gen_prefix): New function. Generates a prefix for a section
19639 (msp430_select_section): New function - handles the choice of
19640 section for an object. Takes into account memory region
19641 attributes and options.
19642 (msp430_function_section): Use gen_prefix.
19643 (TARGET_SECTION_TYPE_FLAGS): Define.
19644 (msp430_section_type_flags): New function.
19645 (TARGET_ASM_UNIQUE_SECTION): Define.
19646 (msp430_unique_section): New function.
19647 (msp430_output_aligned_decl_common): New function.
19648 (msp430_do_not_relax_short_jumps): New function.
19649 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19651 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19652 * config/msp430/msp430-protos.h
19653 (msp430_do_not_relax_short_jumps): New prototype.
19654 (msp430_output_aligned_decl_common): New prototype.
19655 * config/msp430/msp430.md (length): New attribute.
19656 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19657 then use a long code sequence for short jumps.
19658 * config/msp430/msp430.opt (mcode-region): New.
19659 (mdata-region): New.
19660 * doc/invoke.texi: Document new options.
19661 * doc/extend.texi: Document new attributes.
19663 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19665 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19666 (tune_params): Add field branch_costs.
19667 (aarch64_branch_cost): Declare.
19668 * gcc/config/aarch64.c (generic_branch_cost): New.
19669 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19670 (cortexa53_tunings): Likewise.
19671 (cortexa57_tunings): Likewise.
19672 (thunderx_tunings): Likewise.
19673 (xgene1_tunings): Likewise.
19674 (aarch64_branch_cost): Define.
19675 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19677 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19679 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19680 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19681 * config/i386/i386.md: Ditto.
19682 * config/i386/winnt.c: Ditto.
19684 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
19686 * doc/extend.texi (__atomic Builtins): Move implementation details
19687 to the end of the description, rewrite opening paragraphs, state
19688 difference with __sync builtins, state C11/C++11 assumptions,
19689 weaken itemized descriptions, add explanation of memory model
19690 behaviour, expand description of compare-exchange, simplify text.
19692 2015-05-05 Renlin Li <renlin.li@arm.com>
19694 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19696 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
19698 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19699 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19700 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19701 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19702 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19703 * configure: Regenerate.
19704 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19705 * doc/install.texi (aarch64*-*-*): Document new
19706 --enable-fix-cortex-a53-843419 option.
19707 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19708 and -mno-fix-cortex-a53-843419 options.
19710 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
19713 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19715 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
19717 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19718 fix overactive TYPE_MIN_VALUE check and add FIXME for type
19719 compatibility problems.
19721 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19723 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19725 (cbranchsi4_reg): New.
19726 * config/microblaze/microblaze.c
19727 (microblaze_expand_conditional_branch_reg): New.
19728 * config/microblaze/microblaze-protos.h
19729 (microblaze_expand_conditional_branch_reg): New prototype.
19731 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
19733 * config/microblaze/microblaze.md (peephole2): New.
19735 2015-05-04 Jeff Law <law@redhat.com>
19738 2015-05-04 Jeff Law <law@redhat.com>
19740 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19741 simplifier to narrow arithmetic.
19742 * generic-match-head.c: (types_match, single_use): New functions.
19743 * gimple-match-head.c: (types_match, single_use): New functions.
19745 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19748 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19749 (split_branches): Likewise.
19751 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
19753 * common.opt (fdelete-null-pointer-checks): Init to -1.
19754 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19755 override flag_delete_null_pointer_checks default.
19756 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19757 behavior re address zero. Better document target-specific behavior.
19758 (-fisolate-errneous-paths-dereference): Mention relationship to
19759 -fdelete-null-pointer-checks.
19761 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19763 PR tree-optimization/65984
19764 * ubsan.c: Include tree-cfg.h.
19765 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19766 stmt_could_throw_p test, rename can_throw variable to ends_bb.
19768 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19770 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19771 to CONST_DOUBLE_P predicate.
19772 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19773 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19774 allow only operands that satisfy standard_sse_constant_p predicate.
19775 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19776 to CONST_DOUBLE_P predicate.
19778 2015-05-04 Jeff Law <law@redhat.com>
19780 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19781 simplifier to narrow arithmetic.
19782 * generic-match-head.c: (types_match, single_use): New functions.
19783 * gimple-match-head.c: (types_match, single_use): New functions.
19785 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
19787 * config/arm/arm.c: Restore bootstrap.
19789 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
19791 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19792 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19793 as CONST_WIDE_INT, not CONST_DOUBLE.
19794 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19795 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19796 (ix86_find_base_term): Do not check for CONST_DOUBLE.
19797 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19798 (ix86_build_signbit_mask): Rewrite using wide ints.
19799 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19800 (ix86_rtx_costs): Handle CONST_WIDE_INT.
19801 (find_constant): Ditto.
19802 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19803 using gen_int_mode.
19804 * config/i386/predicates.md (x86_64_immediate_operand)
19805 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19806 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19807 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19808 (const0_operand): Also match const_wide_int.
19809 (constm1_operand): Ditto.
19810 (const1_operand): Ditto.
19812 2015-05-04 Richard Biener <rguenther@suse.de>
19814 PR tree-optimization/65965
19815 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19816 store groups at gaps.
19818 2015-05-04 Richard Biener <rguenther@suse.de>
19820 PR tree-optimization/65935
19821 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19822 then make sure to apply that swapping to the IL.
19824 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19826 * Makefile.in (PATCHLEVEL_c): New variable.
19827 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19828 expand the same way as if DEVPHASE_c was non-empty.
19830 2015-05-04 Kai Tietz <ktietz@redhat.com>
19833 * lto-wrapper.c (run_gcc): Open filename
19836 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19838 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19839 sections up in file, to immediately after the Function Attributes
19842 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19844 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19846 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19848 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19849 (insert_partition_copy_on_edge): Adjust.
19850 (insert_rtx_to_part_on_edge): Likewise.
19851 (insert_part_to_rtx_on_edge): Likewise.
19853 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19855 * function.c (set_return_jump_label): Change type of argument to
19857 * function.h (set_return_jump_label): Adjust.
19859 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19861 * reload.h (struct reg_equivs_t): Change type of init to
19863 * ira.c (fix_reg_equiv_init): Adjust.
19864 * reload1.c (eliminate_regs_1): Likewise.
19865 (init_eliminable_invariants): Likewise.
19867 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19869 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19870 * cselib.h (fp_setter_insn): Adjust.
19872 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19874 * recog.c (struct validate_replace_src_data): Change type of
19875 insn field to rtx_insn *.
19876 (validate_replace_src_group): Change type of argument to rtx_insn *.
19877 * recog.h (validate_replace_src_group): Adjust.
19879 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19881 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19882 * sched-deps.c: Likewise.
19883 * sched-int.h: Likewise.
19884 * sched-rgn.c: Likewise.
19885 * sel-sched.c: Likewise.
19887 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19890 * config/i386/i386.c: Change the type of some arguments to
19892 * config/arm/arm.c: Likewise.
19894 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19896 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19898 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19900 * regcprop.c (kill_autoinc_value): Change type of argument to
19903 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19905 * genrecog.c (print_subroutine): Adjust.
19906 * recog.c (get_bool_attr_mask_uncached): Likewise.
19907 * recog.h (struct recog_data_d): Change the type of insn to
19910 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19912 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19914 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19916 * df-problems.c (df_set_note): Change type of argument to
19919 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19921 * builtins.c (expand_builtin_trap): Change type of local
19922 variable to rtx_insn *.
19923 (add_sched_insns_for_speculation): Likewise.
19924 (ix86_emit_save_regs): Likewise.
19925 (get_scratch_register_on_entry): Likewise.
19926 (ix86_emit_restore_reg_using_pop): Likewise.
19927 (ix86_emit_leave): Likewise.
19928 (ix86_emit_restore_regs_using_mov): Likewise.
19929 (ix86_expand_epilogue): Likewise.
19931 (rl78_alloc_physical_registers_umul): Likewise.
19932 * cselib.c (discard_useless_locs): Likewise.
19933 (cselib_invalidate_regno): Likewise.
19934 (cselib_invalidate_mem): Likewise.
19935 * function.c (expand_function_start): Likewise.
19936 (emit_use_return_register_into_block): Likewise.
19937 * gcse.c: Likewise.
19938 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19939 * ifcvt.c (noce_get_alt_condition): Likewise.
19940 * loop-doloop.c (doloop_condition_get): Likewise.
19941 * lra-constraints.c (inherit_in_ebb): Likewise.
19942 * modulo-sched.c (sms_schedule_by_order): Likewise.
19943 * recog.c (next_insn_tests_no_inequality): Likewise.
19944 * reorg.c (emit_delay_sequence): Likewise.
19945 (update_reg_dead_notes): Likewise.
19946 (fix_reg_dead_note): Likewise.
19947 (fill_slots_from_thread): Likewise.
19948 (delete_computation): Likewise.
19950 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19952 * doc/extend.texi (Variable Attributes): Add menu and proper
19953 @nodes to subsections. Move Microsoft Windows attributes to
19954 their own subsection.
19955 (Type Attributes): Reorganize introduction to remove duplicate
19956 list of attributes. Add menu and proper @nodes to subsections.
19957 Alphabetize the main table of common attributes.
19959 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19961 * match.pd: New simplification patterns.
19962 (x + (x & 1)) -> ((x + 1) & ~1)
19963 (x & ~(x & y)) -> ((x & ~y))
19964 (x | ~(x | y)) -> ((x | ~y))
19966 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19968 * target.def (attribute_table): Mention that struct attribute_spec
19969 is defined in tree-core.h rather than tree.h
19970 * doc/tm.texi: Regenerate.
19972 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19974 * genrecog.c (test): Rename to rtx_test. Update rest of file
19977 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19979 PR translation/65959
19980 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19982 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19984 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19985 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19986 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19987 Return value depending on target.
19988 (generic_tunings): Initialize new target settings.
19989 (cortexa53_tunings): Likewise.
19990 (cortexa57_tunings): Likewise.
19991 (thunderx_tunings): Likewise.
19992 (xgene1_tunings): Likewise.
19994 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19996 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19997 Make Cortex-A53 shift costs more accurate.
19999 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20001 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
20004 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
20006 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
20007 Calculate cost of op0 and op1 in PLUS and MINUS cases.
20009 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20011 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
20012 Add cost of op0 in the compare-with-fpzero case.
20014 2015-04-30 David Malcolm <dmalcolm@redhat.com>
20016 * builtins.c (fold_builtin_1): Remove spurious second
20018 * cgraph.h (symtab_node::get_availability): Likewise.
20019 * opts.c (common_handle_option): Remove spurious second semicolon.
20020 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20021 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20023 2015-04-30 Caroline Tice <cmtice@google.com>
20025 PR gcov-profile/65929
20026 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
20027 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
20028 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
20029 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
20030 * doc/tm.texi: Regenerate.
20031 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
20032 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
20033 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
20034 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
20036 2015-04-30 Marek Polacek <polacek@redhat.com>
20038 * varasm.c (handle_cache_entry): Fix logic.
20040 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20042 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
20043 (*extrsi5_insn_uxtw_alt): Likewise.
20044 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
20045 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
20048 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20050 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
20053 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20055 * config/aarch64/aarch64.md
20056 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
20057 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
20058 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
20059 appropriately. Handle alternative EON form.
20061 2015-04-30 Renlin Li <renlin.li@arm.com>
20063 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
20064 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
20066 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
20069 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
20070 -fstrict-aliasing boundaries.
20072 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20074 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
20075 and [SU]MNEGL patterns.
20077 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20079 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
20080 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
20081 combined arithmetic-shift ops. Properly handle all shift and extend
20082 operations that can occur in combination with PLUS/MINUS.
20083 Rename maybe_fma to compound_p.
20084 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
20085 arithmetic and shift operations.
20087 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20089 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
20090 rather than arith_shift cost when costing ADD/MINUS of an
20093 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
20096 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
20099 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
20101 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
20102 are for the same position.
20104 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
20106 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
20108 (vectorize_loops): Use it.
20110 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20112 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
20113 for aggregate types.
20114 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
20115 type to be non_ODR.
20116 * tree.c (need_assembler_name_p): Compute mangled name for
20117 non-fundamental types and integer types.
20119 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
20121 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
20123 * expr.c (expand_expr_real_2): Likewise.
20125 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20127 * tree.c (build_common_builtin_nodes): Do not build
20128 __builtin_alloca_with_align as equivalent of library alloca.
20130 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
20132 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
20133 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
20135 * tree.c: Include print-tree.h and ipa-utils.h
20136 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
20137 (free_lang_data_in_cgraph): Call verify_type.
20138 (verify_type_variant): New function.
20139 (verify_type): New function.
20140 * tree.h (verify_type): Declare.
20142 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
20144 * config/mips/mips-cpus.def: (mips4): Change default processor
20145 from PROCESSOR_R8000 to PROCESSOR_R10000.
20147 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
20149 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
20150 la/jalr instead of jal.
20152 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
20155 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
20156 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
20157 (setcc+movzbl peephole2): Check also clobbered reg.
20158 (setcc+andl peephole2): Ditto.
20160 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
20163 * config/nvptx/mkoffload.c (target_ilp32): New variable.
20164 (main): Set it depending on "-foffload-abi=[...]".
20165 (compile_native, main): Use it to pass "-m32" or "-m64" to the
20168 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
20171 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
20172 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
20173 Flip lane index back at assembly time for bigendian.
20175 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
20177 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
20178 * gimplify.c (gimplify_omp_workshare): Use it.
20180 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20182 * Makefile.in (build/genrecog.o): Depend on inchash.h.
20183 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
20185 * genrecog.c: Rewrite most of the code except for the third page.
20187 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20189 * inchash.h, inchash.c: Include bconfig.h for build objects.
20190 * Makefile.in (build/inchash.o): New rule.
20192 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
20195 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
20196 number in type attribute expression.
20198 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
20200 * loop-iv.c (canon_condition): Generalize to all types of integer
20203 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
20205 * gimple-walk.c: Prune duplicate or unneeded includes.
20206 (walk_gimple_asm): Only call parse_input_constraint or
20207 parse_output_constraint if their findings are used.
20208 Honour parse_input_constraint and parse_output_constraint
20211 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
20213 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
20215 2015-04-29 Tom de Vries <tom@codesourcery.com>
20217 PR tree-optimization/65893
20218 * passes.def (pass_all_optimizations): Move pass_stdarg to after
20221 2015-04-29 Richard Biener <rguenther@suse.de>
20223 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20224 compute GROUP_SIZE for basic-block SLP.
20225 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
20226 take into account gaps.
20227 (vect_get_mask_element): Properly reject references to previous
20229 (vect_transform_slp_perm_load): Likewise.
20231 2015-04-29 Christian Bruel <christian.bruel@st.com>
20234 * config/i386/i386.c (ix86_default_align): New function.
20235 (ix86_override_options_after_change): Call ix86_default_align.
20236 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
20237 (ix86_override_options_after_change): New function.
20239 2015-04-28 Jeff Law <law@redhat.com>
20241 * tree-ssa-dom.c (record_equality); Fix comment typos.
20243 2015-04-28 Tom de Vries <tom@codesourcery.com>
20245 PR tree-optimization/65887
20246 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
20248 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
20250 * doc/extend.texi (Declaring Attributes of Functions): Split into
20251 subsections by target. Alphabetize the table of common attributes.
20252 Rewrite some of the introductory text to reflect the new structure.
20253 Update some cross-references to point to the new subsections.
20254 (Attribute Syntax): Put paragraph about "__" naming here. Remove
20255 duplicate copies in the discussion of function, label, and type
20258 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
20261 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
20263 2015-04-28 Jason Merrill <jason@redhat.com>
20266 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
20267 (finalize_type_size): Respect TYPE_USER_ALIGN.
20268 (layout_type) [ARRAY_TYPE]: Likewise.
20270 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
20272 * config/arm/arm.md (*arm_movt): Fix type attribute.
20273 (*cmpsi_shiftsi): Likewise.
20274 (*cmpsi_shiftsi_swp): Likewise.
20275 (*movsicc_insn): Likewise.
20276 (*cond_move): Likewise.
20277 (*if_plus_move): Likewise.
20278 (*if_move_plus): Likewise.
20279 (*if_arith_move): Likewise.
20280 (*if_move_arith): Likewise.
20281 (*if_shift_move): Likewise.
20282 (*if_move_shift): Likewise.
20283 (*arm_movtas_ze): Likewise.
20284 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
20285 redundancy and type attribute.
20286 (*thumb2_movsi_insn): Fix type attribute.
20287 (*thumb2_addsi_short): Likewise.
20288 (thumb2_addsi3_compare0): Likewise.
20289 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
20290 attributes accordingly.
20292 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
20295 * function.c (pad_to_arg_alignment): Add parentheses.
20297 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
20299 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
20300 libgcc/config/frv/elf-lib.h.
20302 2015-04-28 Tom de Vries <tom@codesourcery.com>
20304 * tree-call-cdce.c: Fix example in header comment.
20306 2015-04-28 Richard Biener <rguenther@suse.de>
20308 PR tree-optimization/62283
20309 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
20310 fails fatally and we are vectorizing a basic-block simply
20311 cause the child to be constructed piecewise.
20312 (vect_analyze_slp_cost_1): Adjust.
20313 (vect_detect_hybrid_slp_stmts): Likewise.
20314 (vect_bb_slp_scalar_cost): Likewise.
20315 (vect_get_constant_vectors): For piecewise constructed
20316 constants place them after the last def.
20317 (vect_get_slp_defs): Adjust.
20318 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
20319 externals for basic-block vectorization.
20321 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20324 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
20326 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
20327 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
20328 (AARCH64_TUNE_FMA_STEERING): Likewise.
20329 * config/aarch64/aarch64-cores.def: Set
20330 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
20331 FMUL/FMADD instructions.
20332 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
20333 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
20334 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
20335 * config/aarch64/cortex-a57-fma-steering.h: New file.
20336 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20338 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
20340 * gensupport.c (std_preds): Add missing codes to address_operand entry.
20342 2015-04-28 Richard Biener <rguenther@suse.de>
20344 PR tree-optimization/65851
20345 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
20346 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
20347 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
20348 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
20349 (ccp_visit_phi_node): Adjust.
20350 (evaluate_stmt): For simplifications to SSA names return its
20351 lattice value if that isn't VARYING. Return immediately when
20352 simplified to a constant.
20353 (visit_assignment): Adjust.
20354 (ccp_visit_stmt): Likewise.
20356 2015-04-28 Tom de Vries <tom@codesourcery.com>
20358 PR tree-optimization/65818
20359 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
20362 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20364 * calls.c (save_fixed_argument_area): Don't check
20365 ARGS_GROW_DOWNWARD with the preprocessor.
20366 (restore_fixed_argument_area): Likewise.
20367 (mem_overlaps_already_clobbered_arg_p): Likewise.
20368 (check_sibcall_argument_overlap): Likewise.
20369 (expand_call): Likewise.
20370 (emit_library_call_value_1): Likewise.
20371 (store_one_arg): Likewise.
20372 * function.c (assign_parms): Likewise.
20373 (locate_and_pad_parm): Likewise.
20374 (pad_to_arg_alignment): Likewise.
20375 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20377 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20379 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
20380 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
20381 * calls.c (save_fixed_argument_area): Don't chekc if
20382 ARGS_GROW_DOWNWARD is defined.
20383 (restore_fixed_argument_area): Likewise.
20384 (mem_overlaps_already_clobbered_arg_p): Likewise.
20385 (check_sibcall_argument_overlap): Likewise.
20386 (expand_call): Likewise.
20387 (emit_library_call_value_1): Likewise.
20388 (store_one_arg): Likewise.
20389 * function.c (assign_parms): Likewise.
20390 (locate_and_pad_parm): Likewise.
20391 (pad_to_arg_alignment): Likewise.
20392 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20394 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20396 * defaults.h (gen_epilogue): New function.
20397 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
20399 * cfgrtl.c (cfg_layout_finalize): Likewise.
20400 * df-scan.c: Likewise.
20401 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20402 (reposition_prologue_and_epilogue_notes): Likewise.
20403 * reorg.c (find_end_label): Likewise.
20404 * toplev.c: Likewise.
20406 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20408 * bb-reorder.c (HAVE_return): Don't check if its undefined.
20409 * defaults.h (gen_simple_return): New function.
20410 (gen_simple_return): Likewise.
20411 (HAVE_return): Add default definition to false.
20412 (HAVE_simple_return): Likewise.
20413 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
20414 HAVE_return and HAVE_simple_return are defined.
20415 * function.c (gen_return_pattern): Likewise.
20416 (convert_jumps_to_returns): Likewise.
20417 (thread_prologue_and_epilogue_insns): Likewise.
20418 * reorg.c (find_end_label): Likewise.
20419 (dbr_schedule): Likewise.
20420 * shrink-wrap.c: Likewise.
20421 * shrink-wrap.h: Likewise.
20423 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20425 * defaults.h (EPILOGUE_USES): Add default definition of false.
20426 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
20427 * resource.c (init_resource_info): Likewise.
20429 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20431 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
20433 * dwarf2out.c (field_byte_offset): REmove check if
20434 PCC_BITFIELD_TYPE_MATTERS is defined.
20435 * stor-layout.c (layout_decl): Likewise.
20436 (update_alignment_for_field): Likewise.
20437 (place_field): Likewise.
20439 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20441 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
20443 * regrename.c (check_new_reg_p): Remove check if
20444 HARD_REGNO_RENAME_OK is defined.
20445 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
20447 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20449 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
20450 * cse.c (fold_rtx): Likewise.
20451 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
20452 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
20453 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
20454 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
20455 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
20456 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
20457 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
20458 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
20459 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
20460 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
20462 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
20463 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
20464 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
20465 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
20466 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
20467 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
20468 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
20469 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
20470 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
20471 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
20472 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
20473 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
20474 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
20475 * doc/tm.texi: Regenerate.
20476 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
20477 either true or false.
20479 2015-04-27 Jeff Law <law@redhat.com>
20481 PR tree-optimization/65217
20482 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
20483 of them has a single use, make sure it is the LHS of the implied
20486 2015-04-28 Alan Modra <amodra@gmail.com>
20489 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
20490 (offsettable_ok_by_alignment): Use minimum of decl and toc
20491 pointer alignment. Replace dead code with assertion.
20492 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
20493 case if size exceeds toc pointer alignment.
20494 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
20495 (rs6000_emit_move): Likewise.
20496 * configure.ac: Add linker toc pointer alignment check.
20497 * configure: Regenerate.
20498 * config.in: Regenerate.
20500 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
20502 * config.gcc: Add h8300-*-linux.
20503 * config/h8300/linux.h: New.
20504 * config/h8300/t-linux: New.
20505 * config/h8300/h8300.c (h8300_option_override): Normal mode
20506 is not supported for h8300-*-linux.
20507 (h8300_file_start): Target priority change.
20508 (get_shift_alg): Likewise.
20509 (h8300_shift_need_scratch_p): Likewise.
20510 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20511 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
20513 2015-04-27 Caroline Tice <cmtice@google.com>
20515 * final.c (final_scan_insn): Output cold_function_name as function
20517 * varasm.c (cold_function_name): Make global.
20518 (assemble_start_function): Re-set cold_function_name.
20519 (assemble_end_function): Output cold partition size.
20520 * varasm.h (cold_function_name): Declare global.
20522 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
20524 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20525 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20527 (*movxi_internal_avx512f): Ditto.
20528 (define_split): Check for xmm16+, when splitting scalar float_extend.
20529 (*extendsfdf2_mixed): Use "v" constraint.
20530 (define_split): Check for xmm16+, when splitting scalar float_truncate.
20531 (*truncdfsf_fast_sse): Use "v" constraint.
20532 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20533 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20534 (define_peephole2): Check for xmm16+, when converting scalar
20536 (define_peephole2): Check for xmm16+, when converting scalar
20538 (*fop_<mode>_comm_mixed): Use "v" constraint.
20539 (*fop_<mode>_comm_sse): Ditto.
20540 (*fop_<mode>_1_mixed): Ditto.
20541 (*sqrt<mode>2_sse): Ditto.
20542 (*ieee_s<ieee_maxmin><mode>3): Ditto.
20544 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20546 * combine.c (simplify_if_then_else): Use std::swap instead
20547 of manually swapping.
20548 (known_cond): Likewise.
20549 (simplify_comparison): Likewise.
20551 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
20554 * config/rs6000/htm.md: Remove all define_expands.
20555 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20556 UNSPECV_HTM_TABORTWCI): Remove.
20557 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20558 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20559 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20560 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20561 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20562 tabortwci_internal): Remove define_insns.
20563 (tabort<wd>c, tabort<wd>ci): New define_insns.
20564 (tabort): Use gpc_reg_operand.
20565 (tcheck): Remove operand.
20566 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20567 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20569 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20570 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
20571 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20572 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20573 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20574 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20575 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20576 (tcheck): Remove builtin argument.
20577 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20579 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
20580 tabortdc and tabortdci builtins when not in 64-bit mode.
20581 Modify code to handle the loss of the HTM define_expands.
20582 Emit code to copy the CR register to TARGET.
20583 (htm_init_builtins): Modify code to handle the loss of the HTM
20585 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20586 (RS6000_BTC_64BIT): Likewise.
20587 (RS6000_BTC_CR): New macro.
20588 * doc/extend.texi: Update documentation for htm builtins.
20590 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20592 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20593 of manually swapping.
20594 (simplify_associative_operation): Likewise.
20595 (simplify_binary_operation): Likewise.
20596 (simplify_plus_minus): Likewise.
20597 (simplify_relational_operation): Likewise.
20598 (simplify_ternary_operation): Likewise.
20600 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20602 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20603 (xs_hi_nonmemory_operand): Remove error.
20604 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20605 general_operand rather than xs_hi_general_operand.
20607 2015-04-27 Richard Biener <rguenther@suse.de>
20609 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20610 (record_equivalences_from_stmt): Valueize rhs.
20611 (record_equality): Canonicalize x and y order via
20612 tree_swap_operands_p. Do not swap operands for same loop depth.
20614 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
20618 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20619 Add hint how to use own spec file.
20621 2015-04-27 Jakub Jelinek <jakub@redhat.com>
20623 PR tree-optimization/65875
20624 * tree-vrp.c (update_value_range): If in is_new case setting
20625 old_vr to VR_VARYING, also set new_vr to it. Remove
20626 old_vr->type == VR_VARYING test.
20627 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20628 SSA_PROP_INTERESTING if update_value_range returned true,
20629 but new range is VR_VARYING.
20631 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20633 * combine.c (sign_extend_short_imm): New.
20634 (set_nonzero_bits_and_sign_copies): Use above new function for sign
20635 extension of src short immediate.
20636 (reg_nonzero_bits_for_combine): Likewise for tem.
20638 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20640 * stor-layout.c (self_referential_component_ref_p): New predicate.
20641 (copy_self_referential_tree_r): Use it.
20642 (self_referential_size): Punt for simple operations directly involving
20643 self-referential component references.
20644 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20646 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
20648 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20650 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
20652 * vec.h (vec): Make splice arguments const. Update definitions
20655 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
20657 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20660 2015-04-26 Tom de Vries <tom@codesourcery.com>
20662 PR tree-optimization/65826
20663 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20665 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
20667 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20668 (*madd3<mode>): Ditto.
20669 (*msub4<mode>): Ditto.
20670 (*msub3<mode>): Ditto.
20671 (*nmadd4<mode>): Ditto.
20672 (*nmadd3<mode>): Ditto.
20673 (*nmadd4<mode>_fastmath): Ditto.
20674 (*nmadd3<mode>_fastmath): Ditto.
20675 (*nmsub4<mode>): Ditto.
20676 (*nmsub3<mode>): Ditto.
20677 (*nmsub4<mode>_fastmath): Ditto.
20678 (*nmsub3<mode>_fastmath): Ditto.
20680 2015-04-24 Jason Merrill <jason@redhat.com>
20683 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20684 down when building TYPE_CANONICAL.
20685 (build_pointer_type_for_mode): Likewise.
20687 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
20689 * genrecog.c (validate_pattern): Check matching constraint refers
20690 to a lower numbered operand.
20692 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20695 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20696 save to independent variables use the Save attribute. This will
20697 allow these options to be modified with the #pragma/attribute
20699 (-mallow-movmisalign): Likewise.
20700 (-mallow-df-permute): Likewise.
20701 (-msched-groups): Likewise.
20702 (-malways-hint): Likewise.
20703 (-malign-branch-targets): Likewise.
20704 (-mvectorize-builtins): Likewise.
20705 (-msave-toc-indirect): Likewise.
20707 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20708 can be set via the #pragma/attribute target support.
20709 (rs6000_opt_vars): Likewise.
20710 (rs6000_inner_target_options): If VSX was set, also set
20711 -mno-avoid-indexed-addresses.
20713 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20715 * config/arm/iterators.md (shiftable_ops): Rename to...
20716 (SHIFTABLE_OPS): ... This. Update use in comments.
20717 (ior_xor): Rename to...
20718 (IOR_XOR): ... This.
20719 (vqh_ops): Rename to...
20720 (VQH_OPS): ... This.
20721 (vqhs_ops): Rename to...
20722 (VQHS_OPS): ... This.
20723 (rshifts): Rename to...
20724 (RSHIFTS): ... This.
20725 (returns): Rename to...
20726 (RETURNS): ... This.
20727 * config/arm/arm.md: Update uses of the above.
20728 * config/arm/neon.md: Likewise.
20730 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20732 * config.host (case ${host}): Add aarch64*-*-linux case.
20733 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20734 fields to all the cores.
20735 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20736 Add MCPU_MTUNE_NATIVE_SPECS.
20737 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20738 field to all extensions.
20739 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20740 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20741 Adjust definition of AARCH64_OPT_EXTENSION.
20742 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20743 (MCPU_MTUNE_NATIVE_SPECS): Define.
20744 * config/aarch64/driver-aarch64.c: New file.
20745 * config/aarch64/x-arch64: New file.
20746 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20749 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20750 Wei Mi <wmi@google.com>
20752 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20753 * config/i386/i386.c (extract_base_offset_in_addr): New function.
20754 (ix86_operands_ok_for_move_multiple): Ditto.
20755 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20756 (movlpd/movhpd to movupd peephole2): Ditto.
20758 2015-04-24 Marek Polacek <polacek@redhat.com>
20761 * input.h (from_macro_expansion_at): Define.
20764 * doc/invoke.texi: Update description of -Wlogical-op.
20766 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20768 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20769 ternary operator in fprintf and harmonize spacing.
20771 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20773 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20774 Mark operand1 commutative.
20776 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
20778 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20779 input operands in memory.
20780 (*vec_concatv2si_sse4_1): Ditto.
20781 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20782 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20784 (vec_extract_hi_v32hi): Ditto.
20785 (vec_extract_hi_v64hi): Ditto.
20786 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20788 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20789 Steven Bosscher <steven@gcc.gnu.org>
20791 PR rtl-optimization/34503
20792 * cprop.c (cprop_reg_p): New.
20793 (hash_scan_set): Use above function to check if register can be
20795 (find_avail_set): Return up to two sets, one whose source is a
20796 register and one whose source is a constant. Sets are returned in an
20797 array passed as parameter rather than as a return value.
20798 (cprop_insn): Use a do while loop rather than a goto. Try each of the
20799 sets returned by find_avail_set, starting with the one whose source is
20800 a constant. Use cprop_reg_p to check if register can be propagated.
20801 (do_local_cprop): Use cprop_reg_p to check if register can be
20803 (implicit_set_cond_p): Likewise.
20805 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20807 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20808 (sem_function::equals): IGNORED_NODES parameter is now unused;
20809 update call of equals_private.
20810 (sem_function::equals_private): Do not call equals_wpa; skip
20811 gimple body matching if there is no body.
20812 (sem_function::init): Add logic to hash tthunk info.
20813 (sem_function::parse): Also parse thunks.
20814 * ipa-icf.h (equals_private): Update declaration.
20816 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20818 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20819 asterisk from name so this can be generated directly.
20820 (*altivec_stvx_<mode>_internal): Likewise.
20821 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20822 that this is never called during or after reload/lra.
20823 (rs6000_frame_related): Remove split_reg
20824 argument and logic that references it.
20825 (emit_frame_save): Remove last parameter from call to
20826 rs6000_frame_related.
20827 (rs6000_emit_prologue): Remove last parameter from eight calls to
20828 rs6000_frame_related. Force generation of stvx instruction for
20829 Altivec register saves. Remove split_reg handling, which is no
20831 (rs6000_emit_epilogue): Force generation of lvx instruction for
20832 Altivec register restores.
20834 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20836 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20837 match category changes in ISA 2.07B.
20839 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20841 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20843 (cmp_op, cmp_type): New code attributes.
20844 (NEON_VCMP, NEON_VACMP): New int iterators.
20845 (cmp_op_unsp): New int attribute.
20846 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20847 (neon_vceq<mode>): Delete.
20848 (neon_vc<cmp_op><mode>_insn): New pattern.
20849 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20850 (neon_vcgeu<mode>): Delete.
20851 (neon_vcle<mode>): Likewise.
20852 (neon_vclt<mode>: Likewise.
20853 (neon_vcage<mode>): Likewise.
20854 (neon_vcagt<mode>): Likewise.
20855 (neon_vca<cmp_op><mode>): New define_expand.
20856 (neon_vca<cmp_op><mode>_insn): New pattern.
20857 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20859 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20861 * tree.h (attribute_value_equal): Declare.
20862 * tree.c (attribute_value_equal): Export.
20864 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20866 * ipa-icf.c (sem_item::compare_attributes): New function.
20867 (sem_item::compare_referenced_symbol_properties): Compare variable
20869 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20870 (sem_function::param_used_p): New function.
20871 (sem_function::equals_wpa): Fix attribute comparsion; match
20872 parameter type codes; do not compare paremter flags when
20873 they are not used; compare edge flags; compare indirect calls.
20874 (sem_item::update_hash_by_addr_refs): Hash reference type.
20875 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20876 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20877 reference use type.
20878 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20879 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20881 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20883 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20885 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20886 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20887 (sem_item::compare_referenced_symbol_properties): New.
20888 (sem_item::hash_referenced_symbol_properties): New.
20889 (sem_item::compare_cgraph_references): Rename to ...
20890 (sem_item::compare_symbol_references): ... this one; use
20891 compare_referenced_symbol_properties.
20892 (sem_function::equals_wpa): Do not compare
20893 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20894 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20895 (sem_item::update_hash_by_addr_refs): Call
20896 hash_referenced_symbol_properties.
20897 (sem_item::update_hash_by_local_refs): Cleanup.
20898 (sem_function::merge): Do not mix up symbol properties.
20899 (sem_variable::equals_wpa): Use compare_symbol_references.
20900 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20901 (sem_item::hash_referenced_symbol_properties): New.
20902 (sem_item::compare_symbol_references): New.
20903 (sem_item::compare_cgraph_references): Remove.
20905 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20908 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20909 Emit size of local.
20911 2015-04-23 Nick Clifton <nickc@redhat.com>
20913 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20914 ATTRIBUTE_UNUSED to x parameter.
20915 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20917 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20919 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20920 TARGET_CRYPTO to TARGET_P8_VECTOR>
20921 (crypto_vpermxor_<mode>): Likewise.
20922 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20923 (BU_CRYPTO_3A): Likewise.
20924 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20925 (BU_CRYPTO_OVERLOAD_3A): New #define.
20926 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20927 (VPMSUMH): Likewise.
20928 (VPMSUMW): Likewise.
20929 (VPMSUMD): Likewise.
20930 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20931 (VPERMXOR_V4SI): Likewise.
20932 (VPERMXOR_V8HI): Likewise.
20933 (VPERMXOR_V16QI): Likewise.
20934 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20935 BU_CRYPTO_OVERLOAD_2A.
20936 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20937 BU_CRYPTO_OVERLOAD_3A.
20938 * config/rs6000/rs6000.opt (mcrypto): Change description of
20941 2015-04-23 Richard Biener <rguenther@suse.de>
20943 * passes.def: Remove copy propagation passes run directly after CCP.
20944 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20946 (ccp_visit_phi_node): Rework to handle first executable edge
20949 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20951 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20952 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20953 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20954 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20955 (thumb_legimitimize_reload_address): Remove.
20956 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20958 (thumb_legimitimize_reload_address): Remove.
20960 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20962 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20964 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20966 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20968 (store_multiple): Likewise.
20970 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20972 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20973 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20974 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20975 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20976 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20977 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20978 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20979 Specify issue_rate value.
20980 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20981 large switch statement.
20982 (arm_marvell_pj4_tune): New struct.
20983 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20986 2015-04-23 Richard Biener <rguenther@suse.de>
20988 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20989 (vect_find_last_store_in_slp_instance): Rename to ...
20990 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20991 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20992 and vec_construct for external defs when estimating prologue cost.
20993 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20994 Compute costs here only when vectorizing loops.
20995 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20996 have been determined.
20997 (vect_schedule_slp_instance): Simplify vectorized code placement
20998 and prepare for in-BB external defs.
20999 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
21000 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
21001 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
21003 (vect_model_load_cost): Likewise.
21004 (vectorizable_store): Instead add it here.
21005 (vectorizable_load): Likewise.
21006 (vect_is_simple_use): Dump def type textually.
21008 2015-04-23 Richard Biener <rguenther@suse.de>
21010 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
21011 * cfgloop.c (verify_loop_structure): Verify the root loop node.
21012 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
21013 instead of get_eh_region_from_lp_number.
21014 * loop-init.c (fix_loop_structure): If we removed a loop, reset
21017 2015-04-23 Anton Blanchard <anton@samba.org>
21019 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
21020 need for -mprofile-kernel to save LR to stack.
21022 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21024 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
21026 (insn_is_swappable_p): Return 1 for a convert from double to
21027 single precision when all of its uses are splats of BE element
21030 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21032 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
21034 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21037 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
21038 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
21039 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
21041 (rs6000_builtin_mask_for_load): Return 0 for targets with
21042 efficient unaligned VSX accesses so that the vectorizer will use
21043 direct unaligned loads.
21044 (rs6000_builtin_support_vector_misalignment): Always return true
21045 for targets with efficient unaligned VSX accesses.
21046 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
21047 stores on targets with efficient unaligned VSX accesses is almost
21048 always the same as the cost of an aligned load or store, so model
21050 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
21051 unaligned vectors if we have efficient unaligned VSX accesses.
21052 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
21053 undocumented option.
21055 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21058 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
21060 * config.gcc (LIBC_MUSL): New tm_defines macro.
21061 * config/linux.h (OPTION_MUSL): Define.
21062 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21063 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21064 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21066 * config/linux.opt (mmusl): New option.
21067 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21068 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21070 * configure: Regenerate.
21072 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
21074 * config.gcc (LIBC_MUSL): New tm_defines macro.
21075 * config/linux.h (OPTION_MUSL): Define.
21076 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21077 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21078 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21080 * config/linux.opt (mmusl): New option.
21081 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21082 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21084 * configure: Regenerate.
21086 2015-04-22 Yury Gribov <y.gribov@samsung.com>
21088 * doc/invoke.texi (-fsanitize-sections): Update description.
21089 * asan.c (set_sanitized_sections): Parse incoming arg.
21090 (section_sanitized_p): Support wildcards.
21092 2015-04-22 Tom de Vries <tom@codesourcery.com>
21094 PR tree-optimization/65823
21095 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
21096 equality between ap_copy and ap.
21098 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21101 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
21103 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21106 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
21108 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21111 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
21112 remove already contained t-files.
21114 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21116 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
21117 Remove unneeded forward declarations.
21118 (suitable_for_tail_call_opt_p): Commentary typo fix.
21120 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21122 * varasm.c (emit_bss): Remove redundant guard.
21124 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21126 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
21128 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21130 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
21132 2015-04-22 Hale Wang <hale.wang@arm.com>
21133 Terry Guo <terry.guo@arm.com>
21135 PR rtl-optimization/64818
21136 * combine.c (can_combine_p): Don't combine user-specified
21137 register if it is in an asm input.
21139 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
21142 * passes.def (early_optimizations): Add pass_dse.
21144 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21146 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
21147 * reorg.c (redundant_insn): Remove ifdef
21148 INSN_REFERENCES_ARE_DELAYED.
21149 * resource.c (mark_referenced_resources): Likewise.
21151 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21153 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
21154 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
21155 * resource.c (mark_set_resources): Likewise.
21157 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21159 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
21160 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21161 (flow_find_head_matching_sequence): Likewise.
21162 (try_head_merge_bb): Likewise.
21163 * combine.c (can_combine_p): Likewise.
21164 (try_combine): Likewise.
21165 (distribute_notes): Likewise.
21166 * df-problems.c (can_move_insns_across): Likewise.
21167 * final.c (final): Likewise.
21168 * gcse.c (insert_insn_end_basic_block): Likewise.
21169 * ira.c (find_moveable_pseudos): Likewise.
21170 * reorg.c (try_merge_delay_insns): Likewise.
21171 (fill_simple_delay_slots): Likewise.
21172 (fill_slots_from_thread): Likewise.
21173 * sched-deps.c (sched_analyze_2): Likewise.
21175 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21177 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
21178 PIC_OFFSET_TABLE_REGNUM.
21180 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21182 * alias.c (init_alias_target): Remove ifdef
21183 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
21184 * df-scan.c (df_insn_refs_collect): Likewise.
21185 (df_get_regular_block_artificial_uses): Likewise.
21186 (df_get_eh_block_artificial_uses): Likewise.
21187 (df_get_entry_block_def_set): Likewise.
21188 (df_get_exit_block_use_set): Likewise.
21189 * emit-rtl.c (gen_rtx_REG): Likewise.
21190 * ira.c (ira_setup_eliminable_regset): Likewise.
21191 * reginfo.c (init_reg_sets_1): Likewise.
21192 * regrename.c (rename_chains): Likewise.
21193 * reload1.c (reload): Likewise.
21194 (eliminate_regs_in_insn): Likewise.
21195 * resource.c (mark_referenced_resources): Likewise.
21196 (init_resource_info): Likewise.
21198 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21200 * defaults.h (MASK_RETURN_ADDR): New definition.
21201 * except.c (expand_builtin_extract_return_addr): Remove ifdef
21204 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21206 * defaults.h (RETURN_ADDR_OFFSET): New definition.
21207 * except.c (expand_builtin_extract_return_addr): Remove ifdef
21208 RETURN_ADDR_OFFSET.
21209 (expand_builtin_frob_return_addr): Likewise.
21211 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21213 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
21214 (try_redirect_by_replacing_jump): Likewise.
21215 (rtl_tidy_fallthru_edge): Likewise.
21216 * combine.c (insn_a_feeds_b): Likewise.
21217 (find_split_point): Likewise.
21218 (simplify_set): Likewise.
21219 * cprop.c (cprop_jump): Likewise.
21220 * cse.c (cse_extended_basic_block): Likewise.
21221 * df-problems.c (can_move_insns_across): Likewise.
21222 * function.c (emit_use_return_register_into_block): Likewise.
21223 * haifa-sched.c (sched_init): Likewise.
21224 * ira.c (find_moveable_pseudos): Likewise.
21225 * loop-invariant.c (find_invariant_insn): Likewise.
21226 * lra-constraints.c (curr_insn_transform): Likewise.
21227 * postreload.c (reload_combine_recognize_const_pattern):
21229 * reload.c (find_reloads): Likewise.
21230 * reorg.c (delete_scheduled_jump): Likewise.
21231 (steal_delay_list_from_target): Likewise.
21232 (steal_delay_list_from_fallthrough): Likewise.
21233 (redundant_insn): Likewise.
21234 (fill_simple_delay_slots): Likewise.
21235 (fill_slots_from_thread): Likewise.
21236 (delete_computation): Likewise.
21237 * sched-rgn.c (add_branch_dependences): Likewise.
21239 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21241 * genconfig.c (main): Always define HAVE_cc0.
21242 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
21244 * cfgcleanup.c (flow_find_cross_jump): Likewise.
21245 (flow_find_head_matching_sequence): Likewise.
21246 (try_head_merge_bb): Likewise.
21247 * cfgrtl.c (rtl_merge_blocks): Likewise.
21248 (try_redirect_by_replacing_jump): Likewise.
21249 (rtl_tidy_fallthru_edge): Likewise.
21250 * combine.c (do_SUBST_MODE): Likewise.
21251 (insn_a_feeds_b): Likewise.
21252 (combine_instructions): Likewise.
21253 (can_combine_p): Likewise.
21254 (try_combine): Likewise.
21255 (find_split_point): Likewise.
21257 (simplify_set): Likewise.
21258 (distribute_notes): Likewise.
21259 * cprop.c (cprop_jump): Likewise.
21260 * cse.c (cse_extended_basic_block): Likewise.
21261 * df-problems.c (can_move_insns_across): Likewise.
21262 * final.c (final): Likewise.
21263 (final_scan_insn): Likewise.
21264 * function.c (emit_use_return_register_into_block): Likewise.
21265 * gcse.c (insert_insn_end_basic_block): Likewise.
21266 * haifa-sched.c (sched_init): Likewise.
21267 * ira.c (find_moveable_pseudos): Likewise.
21268 * loop-invariant.c (find_invariant_insn): Likewise.
21269 * lra-constraints.c (curr_insn_transform): Likewise.
21270 * optabs.c (prepare_cmp_insn): Likewise.
21271 * postreload.c (reload_combine_recognize_const_pattern):
21273 * reload.c (find_reloads): Likewise.
21274 (find_reloads_address_1): Likewise.
21275 * reorg.c (delete_scheduled_jump): Likewise.
21276 (steal_delay_list_from_target): Likewise.
21277 (steal_delay_list_from_fallthrough): Likewise.
21278 (try_merge_delay_insns): Likewise.
21279 (redundant_insn): Likewise.
21280 (fill_simple_delay_slots): Likewise.
21281 (fill_slots_from_thread): Likewise.
21282 (delete_computation): Likewise.
21283 (relax_delay_slots): Likewise.
21284 * sched-deps.c (sched_analyze_2): Likewise.
21285 * sched-rgn.c (add_branch_dependences): Likewise.
21287 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21289 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
21290 that is trivially ded on non cc0 targets.
21291 (simplify_set): Likewise.
21292 (mark_used_regs_combine): Likewise.
21293 * cse.c (new_basic_block): Likewise.
21294 (fold_rtx): Likewise.
21295 (cse_insn): Likewise.
21296 (cse_extended_basic_block): Likewise.
21297 (set_live_p): Likewise.
21298 * rtlanal.c (canonicalize_condition): Likewise.
21299 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21301 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21303 * conditions.h: Define macros even if HAVE_cc0 is undefined.
21304 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
21305 * final.c: Likewise.
21306 * jump.c: Likewise.
21307 * recog.c: Likewise.
21308 * recog.h: Declare functions even when HAVE_cc0 is undefined.
21309 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
21311 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21313 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
21314 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
21315 * builtins.c (expand_builtin): Remove check if
21316 EH_RETURN_DATA_REGNO is defined.
21317 * df-scan.c (df_bb_refs_collect): Likewise.
21318 (df_get_exit_block_use_set): Likewise.
21319 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21320 * ira-lives.c (process_bb_node_lives): Likewise.
21321 * lra-lives.c (process_bb_lives): Likewise.
21323 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21325 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
21326 FIRST_PSEUDO_REG): New.
21327 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
21328 (ARG_POINTER_REGNUM): Define to ARGP_REG.
21329 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
21330 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
21331 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
21332 (FIRST_INT_REG): New.
21333 (LAST_INT_REG): New.
21334 (FIRST_*_REG): Define using *_REG.
21335 (LAST_*_REG): Ditto.
21336 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
21337 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
21338 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
21340 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21342 * expmed.c: (synth_mult): Only assume overlapping
21343 shift with previous steps in alg_sub_t_m2 case.
21345 2015-04-21 Richard Biener <rguenther@suse.de>
21347 PR tree-optimization/65650
21348 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
21349 transitions involving copies.
21350 (set_lattice_value): Adjust for copy lattice state.
21351 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
21352 if that doesn't dominate the merge point.
21353 (bit_value_unop): Adjust what we treat as varying mask.
21354 (bit_value_binop): Likewise.
21355 (bit_value_assume_aligned): Likewise.
21356 (evaluate_stmt): When we simplified to a SSA name record a copy
21357 instead of dropping to varying.
21358 (visit_assignment): Simplify.
21360 * gimple-match.h (gimple_simplify): Add another callback.
21361 * gimple-fold.c (fold_stmt_1): Adjust caller.
21362 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
21363 for the 2nd callback.
21364 * gimple-match-head.c (gimple_simplify): Add a callback that is
21365 used to valueize the stmt operands and use it that way.
21367 2015-04-21 Richard Biener <rguenther@suse.de>
21369 PR tree-optimization/65788
21370 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
21372 2015-04-21 Richard Biener <rguenther@suse.de>
21374 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
21375 vec_construct cost by vec_stmt_cost.
21377 2015-04-21 Richard Biener <rguenther@suse.de>
21379 * cfghooks.h (create_basic_block): Replace with two overloads
21380 for RTL and GIMPLE.
21381 (split_block): Likewise.
21382 * cfghooks.c (split_block): Rename to ...
21383 (split_block_1): ... this.
21384 (split_block): Add two type-safe overloads for RTL and GIMPLE.
21385 (split_block_after_labels): Call split_block_1.
21386 (create_basic_block): Rename to ...
21387 (create_basic_block_1): ... this.
21388 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
21389 (create_empty_bb): Call create_basic_block_1.
21390 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
21391 split_block_after_labels.
21392 * omp-low.c (expand_parallel_call): Likewise.
21393 (expand_omp_target): Likewise.
21394 (simd_clone_adjust): Likewise.
21395 * tree-chkp.c (chkp_get_entry_block): Likewise.
21396 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
21397 create_basic_block overload.
21398 (cgraph_node::expand_thunk): Likewise.
21399 * tree-cfg.c (make_blocks): Likewise.
21400 (handle_abnormal_edges): Likewise.
21401 * tree-inline.c (copy_bb): Likewise.
21403 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21405 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
21407 (*xor_one_cmplsidi3_ze): Likewise.
21409 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
21411 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
21412 use df_remove_problem rather than manually removing problems, leaving
21413 holes in df->problems_in_order[].
21415 2015-04-21 Tom de Vries <tom@codesourcery.com>
21417 PR tree-optimization/65802
21418 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
21420 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21422 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
21424 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
21425 at '.'. Assert that there's enough space for everything.
21427 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
21429 PR tree-optimization/64950
21431 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
21434 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
21437 2015-04-20 Shiva Chen <shiva0217@gmail.com>
21439 PR rtl-optimization/64916
21440 * cfgcleanup.c (values_equal_p): New function.
21441 (can_replace_by): Use it.
21443 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
21446 * doc/invoke.texi ([-Wnarrowing]): Update.
21448 2015-04-20 Jeff Law <law@redhat.com>
21450 PR tree-optimization/65658
21451 * tree-ssa-threadupdate.c (redirection_block_p): Remove
21452 redundant test for GIMPLE_ASSIGN in last change.
21454 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
21456 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
21457 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
21458 (legitimize_tls_address): Ditto.
21459 (ix86_expand_move): Ditto.
21460 (ix86_expand_binary_operator): Remove reload_in_progress checks.
21461 (ix86_expand_unary_operator): Ditto.
21462 * config/i386/predicates.md (index_register_operand): Ditto.
21464 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
21466 * reorg.c (try_merge_delay_insns): Improve correctness checking
21467 for targets with multiple delay slots.
21469 2015-04-20 Jeff Law <law@redhat.com>
21471 PR tree-optimization/65658
21472 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
21475 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21477 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
21478 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
21481 2015-04-20 Jakub Jelinek <jakub@redhat.com>
21484 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
21486 2015-04-20 Richard Biener <rguenther@suse.de>
21488 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
21489 * gimple-fold.c (gimple_build_valueize): New function.
21490 (gimple_build): Always use gimple_build_valueize as valueize hook.
21492 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
21495 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
21496 and overwrite variable parts if <= 1/2 the elements are variable.
21498 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
21500 PR rtl-optimization/65805
21501 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
21502 Don't use difference of offset and previous offset if
21503 update_sp_offset is non-zero.
21504 (eliminate_regs_in_insn): Ditto.
21505 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
21506 lra_eliminate_regs_1 call.
21507 * lra-constraints.c (get_equiv_with_elimination): Ditto.
21509 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
21511 * hash-table.h: Remove version of hash_table that stored value_type *.
21512 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
21513 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
21514 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
21515 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
21516 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
21517 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21518 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21519 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21520 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21521 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21522 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21523 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21524 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21525 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21526 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21527 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21529 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21530 Jakub Jelinek <jakub@redhat.com>
21533 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21534 subsequent SH_NONE operand does not overwrite an existing *special
21536 (adjust_extract): Handle case where a vec_extract operation is
21537 wrapped in a PARALLEL.
21539 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21542 * config/i386/i386.c (ix86_binds_local_p): Define only if
21543 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21545 2015-04-17 Jeff Law <law@redhat.com>
21547 PR tree-optimization/47679
21548 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21549 * tree-ssa-scopedtables.c: New file.
21550 * tree-ssa-scopedtables.h: New file.
21551 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21552 (const_and_copies): Change name/type.
21553 (record_const_or_copy): Move into tree-ssa-scopedtables.c
21554 (record_const_or_copy_1): Similarly.
21555 (restore_vars_to_original_value): Similarly.
21556 (pass_dominator::execute): Create and destroy const_and_copies table.
21557 (thread_across_edge): Update passing of const_and_copies.
21558 (record_temporary_equivalence): Use method calls rather than
21559 manipulating const_and_copies directly.
21560 (record_equality, cprop_into_successor_phis): Similarly.
21561 (dom_opt_dom_walker::before_dom_children): Similarly.
21562 (dom_opt_dom_walker::after_dom_children): Similarly.
21563 (eliminate_redundant_computations): Similarly.
21564 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21565 (record_temporary_equivalence): Likewise.
21566 (invalidate_equivalences): Likewise.
21567 (record_temporary_equivalences_from_phis): Update due to type
21568 change of const_and_copies. Use method calls rather than
21569 manipulating the stack directly.
21570 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21571 (thread_through_normal_block, thread_across_edge): Likewise.
21572 (thread_across_edge): Likewise.
21573 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21574 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
21576 (identify_jump_threads): Update due to type change of equiv_stack.
21577 (finalize_jump_threads): Delete the equiv_stack when complete.
21579 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
21581 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21582 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21583 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21585 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
21588 * config.gcc: Exit with a comment when we do not have a major version
21589 number for the FreeBSD target.
21591 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21594 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21595 maybe_allows_mem bitfields.
21596 (maybe_allows_none_start, maybe_allows_none_end,
21597 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21598 maybe_allows_mem_end): New variables.
21599 (compute_maybe_allows): New function.
21600 (add_constraint): Use it to initialize maybe_allows_reg and
21601 maybe_allows_mem fields.
21602 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21603 is_address constraints such that those that allow neither mem nor
21604 reg come first, then those that only allow reg but not mem, then
21605 those that only allow mem but not reg, then the rest.
21606 (write_allows_reg_mem_function): New function.
21607 (write_tm_preds_h): Call it.
21608 * stmt.c (parse_output_constraint, parse_input_constraint): Use
21609 the generated insn_extra_constraint_allows_reg_mem function
21610 instead of always setting *allows_reg = true; *allows_mem = true;
21611 for unknown extra constraints.
21613 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
21616 * output.h (default_binds_local_p_3): New.
21617 * varasm.c (default_binds_local_p_3): Make it public. Take an
21618 argument to indicate if common symbol may be local. If common
21619 symbol may be local, treat non-external variable as defined
21621 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21622 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21623 * config/i386/i386.c (ix86_binds_local_p): New.
21624 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21625 ix86_binds_local_p.
21627 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21630 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21631 trying mem_loc_descriptor on XEXP (rtl, 0).
21633 2015-04-17 Martin Liska <mliska@suse.cz>
21635 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21636 Release symbol_compare_collection.
21637 * ipa-reference.c: Add TODO that a vector should be released.
21639 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21642 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21643 to new AVR-LibC file layout (bug #44574).
21644 (*avrlibc_devicelib): Same.
21645 * config/avr/avr-mcus.def: Adjust comments.
21646 * config/avr/avr.opt (nodevicelib): Adjust help.
21648 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
21650 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21652 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
21655 * gimplify.c (gimplify_init_constructor): Always emit a
21656 side-effecting constructor.
21658 2015-04-17 Tom de Vries <tom@codesourcery.com>
21660 PR tree-optimization/64950
21661 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21662 in cfun->curr_properties.
21663 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21664 if we generate an IFN_VA_ARG.
21665 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21666 function if PROP_gimple_lva is not set in src function.
21668 2015-04-17 Tom de Vries <tom@codesourcery.com>
21669 Michael Matz <matz@suse.de>
21671 PR tree-optimization/64950
21672 * gimple-iterator.c (update_modified_stmts): Remove static.
21673 * gimple-iterator.h (update_modified_stmts): Declare.
21674 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21675 (gimplify_va_arg_internal): New function.
21676 (gimplify_va_arg_expr): Use IFN_VA_ARG.
21677 * gimplify.h (gimplify_va_arg_internal): Declare.
21678 * internal-fn.c (expand_VA_ARG): New unreachable function.
21679 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21680 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21681 (expand_ifn_va_arg): New function.
21682 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21683 (pass_stdarg::execute): Call expand_ifn_va_arg.
21684 (pass_data_lower_vaarg): New pass_data.
21685 (pass_lower_vaarg): New gimple_opt_pass.
21686 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21687 (make_pass_lower_vaarg): New function.
21688 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21689 properties_required field.
21690 * passes.def (all_passes): Add pass_lower_vaarg.
21691 * tree-pass.h (PROP_gimple_lva): Add define.
21692 (make_pass_lower_vaarg): Declare.
21694 2015-04-17 Tom de Vries <tom@codesourcery.com>
21696 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21697 * calls.c (call_expr_flags): Same.
21699 2015-04-17 Tom de Vries <tom@codesourcery.com>
21701 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21702 (pass_stdarg::execute): ... here.
21704 2015-04-17 Tom de Vries <tom@codesourcery.com>
21705 Michael Matz <matz@suse.de>
21707 * tree-cfg.c (make_blocks_1): Factor out of ...
21708 (make_blocks): ... here.
21709 (make_edges_bb): Factor out of ...
21710 (make_edges): ... here.
21711 (gimple_find_sub_bbs): New function.
21712 * tree-cfg.h (gimple_find_sub_bbs): Declare.
21714 2015-04-17 Tom de Vries <tom@codesourcery.com>
21716 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21718 2015-04-17 Yury Gribov <y.gribov@samsung.com>
21720 * asan.c (set_sanitized_sections): New function.
21721 (section_sanitized_p): Ditto.
21722 (asan_protect_global): Optionally sanitize user-defined
21724 * asan.h (set_sanitized_sections): Declare new function.
21725 * common.opt (fsanitize-sections): New option.
21726 * doc/invoke.texi (-fsanitize-sections): Document new option.
21727 * opts-global.c (handle_common_deferred_options): Handle new
21730 2015-04-17 Jakub Jelinek <jakub@redhat.com>
21733 * dwarf2out.c (loc_list_from_tree): Return NULL
21734 for DEBUG_EXPR_DECL.
21736 2015-04-17 Christian Bruel <christian.bruel@st.com>
21738 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21741 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21743 * ira-color.c (setup_left_conflict_sizes_p): Do not process
21744 node itself when computing left conflict subnode size.
21746 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21748 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21749 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21750 *fop_<mode>_1_sse using enabled attribute. Use
21751 register_mixssei387nonimm_operand operand 1 predicate. Change
21752 alternative 3 constraints from "x" to "v".
21754 2015-04-16 Richard Biener <rguenther@suse.de>
21756 PR tree-optimization/65774
21757 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21758 bit-value tracking on.
21760 2015-04-16 Richard Biener <rguenther@suse.de>
21762 PR tree-optimization/64277
21763 * tree-vrp.c (check_array_ref): Fix anti-range handling,
21764 simplify upper bound handling.
21765 (search_for_addr_array): Simplify.
21766 (check_array_bounds): Handle ADDR_EXPRs here.
21767 (check_all_array_refs): Simplify.
21769 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
21771 * config/i386/i386.c (print_reg): Rewrite function.
21773 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21775 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21776 Invert the condition.
21778 2015-04-16 Renlin Li <renlin.li@arm.com>
21780 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21781 simplifications for UNSIGNED_FLOAT.
21783 2015-04-16 Nick Clifton <nickc@redhat.com>
21785 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21787 (enum rl78_cpu_type): New.
21788 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21789 (umulhi3_shift_virt): Remove m constraint from operand 1.
21790 (umulqihi3_virt): Likewise.
21791 * config/rl78/rl78.c (rl78_option_override): Add code to process
21792 -mcpu and -mmul options.
21793 (rl78_alloc_physical_registers): Add code to handle divhi and
21794 divsi valloc attributes.
21795 (set_origin): Likewise.
21796 * config/rl78/rl78.h (RL78_MUL_G14): Define.
21797 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21798 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21800 (ASM_SPEC): Pass -mcpu on to assembler.
21801 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21802 (mulqi3_rl78): Likewise.
21803 (mulhi3_g13): Likewise.
21804 (mulhi3): Generate the G13 or G14 versions of the insn directly.
21805 (mulsi3): Likewise.
21806 (mulhi3_g14): Add clobbers of AX and BC.
21807 (mulsi3_g14): Likewise.
21808 (mulsi3_g13): Likewise.
21809 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21810 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21811 * config/rl78/rl78.opt (mmul): Initialise value to
21813 (mcpu): New option.
21814 (m13, m14, mrl78): New option aliases.
21815 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21816 (MULTILIB_DIRNAMES): Add g13 and g14.
21817 * doc/invoke.texi: Document -mcpu and -mmul options.
21819 2015-04-16 Richard Biener <rguenther@suse.de>
21821 * tree-ssa-ccp.c (likely_value): See if we have operands that
21822 are marked as never simulate again and return CONSTANT in this
21824 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21825 not have any operands that will be simulated again as
21826 not being simulated again.
21828 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21830 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21831 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21832 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21834 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21836 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21837 *float<SWI48:mode><MODEF:mode>2_sse.
21838 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21840 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21843 2015-04-15 Tom de Vries <tom@codesourcery.com>
21846 * function.c (push_dummy_function): New function.
21847 (init_dummy_function_start): Use push_dummy_function.
21848 (pop_dummy_function): New function. Factored out of ...
21849 (expand_dummy_function_end): ... here.
21850 * function.h (push_dummy_function, pop_dummy_function): Declare.
21851 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21852 pop_dummy_function.
21853 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21855 2015-04-15 Jeff Law <law@redhat.com>
21857 PR tree-optimization/47679
21858 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21859 need for forward declaration in upcoming changes.
21860 (record_conditions, record_edge_info): Likewise.
21862 PR rtl-optimization/42522
21863 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21864 SIGN_EXTRACT as a whole object rather than simplifying
21867 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21870 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21871 and GIMPLE_PREDICT use break instead of return true. For
21872 GIMPLE_EH_DISPATCH, compare dispatch region.
21874 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21876 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21877 details about the implementation. Make clear preference for
21878 __atomic builtins. Reduce possibility of future change.
21880 2015-04-15 Nick Clifton <nickc@redhat.com>
21882 * config/rx/rx.opt (mallow-string-insns): New option.
21883 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21884 builtin if string instructions are denied.
21885 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21886 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21888 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21889 * config/rx/rx.md (movstr): Enable pattern only if string
21890 instructions are allowed.
21891 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21892 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21893 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21894 (MULTILIB_DIRNAMES): Add no-strings.
21895 * doc/invoke.texi: Document -mno-allow-string-insns.
21897 2015-04-15 Alan Modra <amodra@gmail.com>
21901 PR middle-end/36043
21902 * calls.c (load_register_parameters): Don't load past end of
21903 mem unless suitably aligned.
21905 2015-04-15 Nick Clifton <nickc@redhat.com>
21907 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21908 decrement instruction as being frame related.
21909 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21911 If zero extending a function address enclose the operation in
21913 (rl78_preferred_reload_class): New function.
21914 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21915 * config/rl78/rl78.md: Remove useless constraints in expanders.
21916 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21917 (mulhi3_rl78): Likewise.
21918 (mulhi3_g13): Likewise.
21919 (mulsi3_rl78): Likewise.
21920 (es_addr): Move to before the multiply patterns.
21922 2015-04-15 Alan Modra <amodra@gmail.com>
21924 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21925 and sequence_stack. Add seq.
21926 (seq_stack): Delete.
21927 * function.c (prepare_function_start): Don't access x_last_insn.
21928 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21929 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21930 * emit_rtl.c (start_sequence, push_topmost_sequence,
21931 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21932 sequence accessors.
21933 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21934 remove_insn): Likewise. Simplify.
21935 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21936 and pop_topmost_sequence.
21937 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21939 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21941 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21944 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21947 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21949 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21950 (LEGACY_INT_REGNO_P): Ditto.
21951 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21952 (ANY_MASK_REG_P): Remove.
21953 (BND_REG_P): Rename from ANY_BND_REG_P.
21954 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21955 legacy integer registers. Do not handle MMX_REG_P in a special way.
21956 Merge 64byte and 32byte SSE handling.
21958 2015-04-14 Nick Clifton <nickc@redhat.com>
21960 * expr.c (expand_assignment): Force an address offset computation
21961 into a register before changing its mode.
21962 (expand_expr_real_1): Likewise.
21964 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21966 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21967 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21968 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21969 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21970 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21971 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21972 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21973 and __aarch64_vget_lane_any.
21975 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21977 PR rtl-optimization/65761
21978 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21979 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21981 2015-04-14 Richard Biener <rguenther@suse.de>
21983 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21984 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21986 2015-04-14 Richard Biener <rguenther@suse.de>
21988 PR tree-optimization/65758
21989 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21991 (ccp_lattice_meet): Likewise.
21992 (bit_value_unop): Likewise.
21993 (bit_value_binop): Likewise.
21994 (bit_value_assume_aligned): Likewise.
21996 2015-04-14 Christian Bruel <christian.bruel@st.com>
21998 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
22001 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
22003 PR tree-optimization/63387
22004 * match.pd ((x unord x) | (y unord y) -> (x unord y),
22005 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
22007 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
22009 * config/i386/predicates.md (any_QIreg_operand): Rename from
22010 q_regs_operand. Do not process subregs.
22011 (QIreg_operand): Use QI_REGNO_P predicate.
22012 (ext_QIreg_operand): Ditto.
22013 (ext_register_operand): Ditto.
22014 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
22015 (AND splitters): Ditto.
22016 (AND with -65536 splitter): Add SWI48 mode for operand 0.
22017 (AND with -256 splitter): Use any_QIreg_operand predicate and
22018 SWI248 mode for operand 0.
22019 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
22020 mode for operand 0.
22021 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
22023 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
22025 * doc/plugins.texi: Rewrite first introductory paragraph.
22027 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22029 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
22030 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
22032 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22034 * ipa-profie.c (ipa_profile): Check number of parameters
22035 and possible polymorphic call targets before
22038 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
22040 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
22041 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
22043 2015-04-13 Richard Biener <rguenther@suse.de>
22045 PR tree-optimization/65204
22046 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
22047 takens for bit-CCP.
22049 2015-04-13 Richard Biener <rguenther@suse.de>
22052 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
22053 and cond_not_taken_branch_cost to 4 and 2.
22054 (bdver2_cost): Likewise.
22055 (bdver3_cost): Likewise.
22056 (bdver4_cost): Likewise.
22058 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22060 * hash-table.h (hash_table constructor): Add mem stats.
22061 (alloc_entries): Likewise.
22063 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22065 * ipa-cp.c (ipcp_driver): Relase prev_edge.
22066 * passes.c (execute_one_pass): Only add transform if pass has one.
22068 2015-04-12 Joseph Myers <joseph@codesourcery.com>
22070 * config/i386/i386.c (ix86_option_override_internal): Don't set
22071 -fprefetch-loop-arrays if optimizing for size.
22073 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
22074 Gerald Pfeifer <gerald@pfeifer.com>
22076 * doc/contrib.texi (Contributors): Add Martin Jambor and
22079 2015-04-12 Jakub Jelinek <jakub@redhat.com>
22081 * BASE-VER: Set to 6.0.0.
22083 PR tree-optimization/65747
22084 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
22085 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
22087 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
22089 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
22090 sentence. Improve grammar.
22092 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
22094 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
22096 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
22099 * ipa-inline-transform.c (speculation_removed): Remove static var.
22100 (check_speculations): New function.
22101 (clone_inlined_nodes): Do not check spculations.
22102 (inline_call): Call check_speculations.
22103 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
22104 consider non-invariants.
22106 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
22107 Martin Liska <mliska@suse.cz>
22110 * ipa-icf.c (sem_item::compare_cgraph_references): function and
22111 variable can not match.
22112 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
22113 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
22115 2015-04-11 Jakub Jelinek <jakub@redhat.com>
22117 PR tree-optimization/65735
22118 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
22119 Remove visited_phis argument, add visited_bbs, avoid recursing into the
22120 same bb rather than just into the same phi node.
22121 (thread_through_normal_block): Adjust caller.
22123 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
22125 * doc/contrib.texi (Contributors): Add Ira Rosen.
22127 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
22129 * gcov.c (find_source): Fix miswording in error message.
22130 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
22131 (ix86_expand_sse_comi_round): Fix typo in error message.
22133 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
22135 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
22137 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
22139 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
22141 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
22144 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
22145 Print bad_spills_num and insn_pseudos_num.
22147 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22150 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
22151 when creating +1 values for SImode.
22153 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
22156 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
22159 2015-04-10 Jakub Jelinek <jakub@redhat.com>
22160 Iain Sandoe <iain@codesourcery.com>
22163 * configure: Regenerate.
22165 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
22168 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
22170 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
22172 * doc/contrib.texi (Contributors): Add John Marino.
22174 2015-04-09 Jakub Jelinek <jakub@redhat.com>
22176 PR tree-optimization/65709
22177 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
22178 TREE_TYPE (TREE_TYPE (t)).
22180 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
22183 * lra-int.h (lra_bad_spill_regno_start): New.
22184 * lra.c (lra_bad_spill_regno_start): New.
22185 (lra): Set up lra_bad_spill_regno_start. Set up
22186 lra_constraint_new_regno_start unconditionally.
22187 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
22190 2015-04-09 Marek Polacek <polacek@redhat.com>
22191 Jakub Jelinek <jakub@redhat.com>
22193 PR middle-end/65554
22194 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
22195 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
22198 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
22200 PR rtl-optimization/65693
22201 * combine.c (is_parallel_of_n_reg_sets): Move outside of
22204 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
22207 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
22208 device specs file if "device-specs%s" didn't resolve to a path.
22210 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
22213 * config/i386/i386.c (fixup_modeless_constant): New.
22214 (ix86_expand_args_builtin): Fixup modeless constant operand.
22215 (ix86_expand_round_builtin): Ditto.
22216 (ix86_expand_special_args_builtin): Ditto.
22217 (ix86_expand_builtin): Ditto.
22219 2015-04-09 Jakub Jelinek <jakub@redhat.com>
22222 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
22223 any pow2 integer in between 2 and 0x80000000U inclusive.
22225 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
22227 PR rtl-optimization/65693
22228 * combine.c (is_parallel_of_n_reg_sets): Change first argument
22229 from an rtx_insn * to an rtx.
22230 (try_combine): Adjust both callers. Use it once more.
22232 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22234 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
22235 (chkp_make_static_const_bounds): Search existing
22236 symbol by assembler name. Use make_decl_one_only.
22237 (chkp_get_zero_bounds_var): Remove node search which
22238 is now performed in chkp_make_static_const_bounds.
22239 (chkp_get_none_bounds_var): Likewise.
22241 2015-04-08 Michael Witten <mfwitten@gmail.com>
22243 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
22246 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22248 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
22250 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22252 * doc/extend.texi (__sync Builtins): Fix grammar.
22254 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22256 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
22258 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22260 * varasm.c (emit_local): Move definition of align.
22262 2015-04-08 Julian Brown <julian@codesourcery.com>
22264 * config/nvptx/mkoffload.c (process): Support variable mapping.
22266 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
22268 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
22270 (alpha_write_one_linkage): Correct typo.
22272 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22274 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
22276 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
22278 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
22280 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
22282 * tree-chkp.h (chkp_insert_retbnd_call): New.
22283 * tree-chkp.c (chkp_insert_retbnd_call): New.
22284 * ipa-split.c (insert_bndret_call_after): Remove.
22285 (split_function): Use chkp_insert_retbnd_call.
22286 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
22287 bounds for instrumented functions.
22289 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
22292 * calls.c (initialize_argument_information): When producing tail
22293 call also turn SSA_NAMES passed by references to original PARM_DECLs
22295 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
22298 * lra-remat.c (do_remat): Process input and non-input insn
22299 registers separately.
22301 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22304 * valtrack.c (debug_lowpart_subreg): New function.
22305 (dead_debug_insert_temp): Use it.
22307 PR middle-end/65680
22308 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
22309 into signed HOST_WIDE_INT the same as negative bit_offset.
22311 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
22313 * ipa-comdats.c (ipa_comdats): Visit all thunks
22314 to set proper comdat group.
22316 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22319 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
22320 on constants for NEON VSTRUCT modes.
22322 2015-04-07 Jakub Jelinek <jakub@redhat.com>
22323 Iain Sandoe <iain@codesourcery.com>
22326 * configure: Regenerate.
22328 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22331 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
22332 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
22333 that LFD is used to load double constants instead of LFS. Add
22334 defaults for all costs structures. Add comments for missing
22335 initialization fields.
22336 (size32_cost): Likewise.
22337 (size64_cost): Likewise.
22338 (rs64a_cost): Likewise.
22339 (mpccore_cost): Likewise.
22340 (ppc403_cost): Likewise.
22341 (ppc405_cost): Likewise.
22342 (ppc440_cost): Likewise.
22343 (ppc476_cost): Likewise.
22344 (ppc601_cost): Likewise.
22345 (ppc603_cost): Likewise.
22346 (ppc604_cost): Likewise.
22347 (ppc604e_cost): Likewise.
22348 (ppc620_cost): Likewise.
22349 (ppc630_cost): Likewise.
22350 (ppccell_cost): Likewise.
22351 (ppc750_cost): Likewise.
22352 (ppc7450_cost): Likewise.
22353 (ppc8540_cost): Likewise.
22354 (ppce300c2c3_cost): Likewise.
22355 (ppce500mc_cost): Likewise.
22356 (ppce500mc64_cost): Likewise.
22357 (ppce5500_cost): Likewise.
22358 (ppce6500_cost): Likewise.
22359 (titan_cost): Likewise.
22360 (power4_cost): Likewise.
22361 (power6_cost): Likewise.
22362 (power7_cost): Likewise.
22363 (power8_cost): Likewise.
22364 (ppca2_cost): Likewise.
22365 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
22367 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
22368 instead of XXLOR to copy SFmode to clear out dirty bits created
22369 when SFmode denormals are generated.
22370 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
22371 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
22373 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22375 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
22376 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
22377 * config/aarch64/aarch64-tune.md: Regenerate.
22379 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
22381 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
22382 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
22383 * config/arm/arm-cores.def (exynos-m1): New core.
22384 * config/arm/arm-tune.md: Regenerate.
22385 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
22386 * config/arm/bpabi.h: Likewise.
22388 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22390 * ipa-cp (set_single_call_flag): Remove too
22391 restrictive assert.
22393 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
22395 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
22396 GOMP_offload_unregister from the destructor.
22398 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
22400 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
22401 flags for instrumentation thunk.
22402 (chkp_produce_thunks): Likewise.
22404 2015-04-05 Martin Liska <mliska@suse.cz>
22407 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
22408 has computed data structure.
22409 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22411 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
22413 * invoke.texi (inline-unit-growth): Increase growth to 20%
22414 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
22416 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
22419 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
22421 (lra_rematerialization_iter): New.
22422 * lra.c (lra): Initialize lra_rematerialization_iter.
22423 Stop updating lra_constraint_new_regno_start after switching of
22424 inheritance and rematerialization.
22425 * lra-remat.c (lra_rematerialization_iter): New.
22426 (lra_remat): Add printing pass iteration. Do rematerialization
22427 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
22429 2015-04-04 Richard Biener <rguenther@suse.de>
22431 PR tree-optimization/64909
22432 PR tree-optimization/65660
22433 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
22434 to take a cost vector for scalar iteration cost.
22435 (vect_get_single_scalar_iteration_cost): Likewise.
22436 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
22437 Compute the scalar iteration cost into a cost vector.
22438 (vect_get_known_peeling_cost): Use the scalar cost vector to
22439 account for the cost of the peeled iterations.
22440 (vect_estimate_min_profitable_iters): Likewise.
22441 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22444 2015-04-04 Alan Modra <amodra@gmail.com>
22448 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
22449 0.0 constant unless TARGET_VSX.
22450 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
22453 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22456 * ipa-inline-transform.c (inline_call): Skip sanity check to work
22459 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22462 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
22463 speculative indirect edges to avoid ordering issue.
22465 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
22468 * ipa-inline.c (edge_badness): Add combined size to the denominator.
22470 2015-04-03 Jakub Jelinek <jakub@redhat.com>
22472 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
22473 TYPE_ARTIFICIAL on the .omp_data* types.
22475 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22477 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
22478 instrumentation thunks.
22480 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22482 * config/i386/i386.c (ix86_expand_call): Avoid nested
22483 PARALLEL in returned call value.
22485 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22487 * lto-cgraph.c (input_cgraph_1): Always link instrumented
22488 assembler name with original one.
22490 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22492 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
22494 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22496 Revert parts of r216820.
22497 * config/i386/i386.md (movqi_internal): Correct type calculation
22498 for alternatives 3 and 5.
22500 2015-04-02 Jakub Jelinek <jakub@redhat.com>
22502 PR preprocessor/61977
22503 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
22504 predefine __vector/__bool/__pixel macros nor context sensitive
22505 macros for CLK_ASM.
22506 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
22508 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
22510 * config/pa/pa.c (pa_output_move_double): Directly handle register
22511 indexed memory operand. Simplify handling of scaled register indexed
22514 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
22517 * config/i386/linux-common.h (MPX_SPEC): New.
22518 (CHKP_SPEC): Add MPX_SPEC.
22519 * doc/invoke.texi (-fcheck-pointer-boudns): Document
22520 possible issues with '-z bndplt' support in linker.
22522 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
22524 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22525 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22526 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22527 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22528 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22530 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
22532 * config/i386/sync.md (UNSPEC_MOVA): Remove.
22533 (atomic_load<mode>): Change operand 0 predicate to
22534 nonimmediate_operand and fix up the destination when needed.
22536 (atomic_loaddi_fpu): Use UNSPEC_LDA.
22537 (atomic_store<mode>): Change operand 1 predicate to
22538 nonimmendate_operand and move the source to register when needed.
22540 (atomic_store<mode>_1): Use UNSPEC_STA.
22541 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22542 Fix moves from memory operand. Use UNSPEC_STA.
22544 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22546 * expmed.c (strict_volatile_bitfield_p): Check that the access will
22547 not cross a MODESIZE boundary.
22548 (store_bit_field, extract_bit_field): Added assertions in the
22549 strict volatile bitfields code path.
22551 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
22554 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22555 Increase args array size by one to avoid buffer overflow.
22557 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22559 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22561 * ipa-inline.c (edge_badness): Add wrapper penalty.
22562 (sum_callers): Move up.
22563 (inline_small_functions): Set single_caller.
22564 * ipa-inline.h (inline_summary): Add single_caller.
22565 * ipa-split.c (split_function): Set split_part.
22566 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22567 * cgraph.h (cgraph_node): Add split_part.
22569 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
22572 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22573 Do not split operands 0 and operands 2 to halfmode.
22574 (atomic_compare_and_swap<mode>): Update for
22575 atomic_compare_and_swap<dwi>_doubleword changes.
22577 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
22579 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22580 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22581 no caching is done.
22583 2015-03-31 Martin Liska <mliska@suse.cz>
22586 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22587 has already filled up function summary.
22588 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22590 2015-03-31 Richard Biener <rguenther@suse.de>
22592 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22595 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
22597 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22599 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22600 (s390_asm_output_function_label): Adapt to new signature of
22601 s390_function_num_hotpatch_hw
22602 Optimise the code generating assembler output.
22603 Add comments to assembler file.
22605 2015-03-31 Richard Biener <rguenther@suse.de>
22607 PR middle-end/65626
22608 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22609 of the noreturn call so it is last and cleanup_control_flow_bb
22610 can do the CFG part.
22612 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
22615 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22616 same_comdat_group for external symbols.
22617 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22618 infinite same_comdat_group traversal loop.
22620 2015-03-31 Jakub Jelinek <jakub@redhat.com>
22623 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22624 automatically to $headers.
22626 2015-03-30 Jakub Jelinek <jakub@redhat.com>
22629 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22630 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22632 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22634 * ipa-prop.c (param_type_may_change_p): Likewise.
22635 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22636 (remove_unused_scope_block_p): Add in_ctor_dtor_block
22637 argument. Before inlining, preserve
22638 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22639 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
22641 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22643 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22646 * ipa-inline.c (edge_badness): Base denominator on callee's
22649 2015-03-27 Martin Jambor <mjambor@suse.cz>
22652 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22653 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22654 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22655 node_calling_single_call.
22656 * ipa-cp.c (count_callers): New function.
22657 (set_single_call_flag): Likewise.
22658 (initialize_node_lattices): Count callers and set single_flag_call if
22660 (incorporate_penalties): New function.
22661 (good_cloning_opportunity_p): Use it, dump new flags.
22662 (propagate_constants_topo): Set node_within_scc flag if appropriate.
22663 * doc/invoke.texi (ipa-cp-recursion-penalty,
22664 ipa-cp-single-call-pentalty): Document.
22666 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22669 * symtab.c (symtab_node::get_partitioning_class): Register vars
22671 * varpool.c (symbol_table::output_variables) Do not assemble unefined
22672 decls for non-symbols.
22674 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
22677 * output.h (default_binds_local_p_2): New.
22678 * varasm.c (default_binds_local_p_2): Renamed to ...
22679 (default_binds_local_p_3): This. Don't return true on protected
22680 data symbol if protected data may be external.
22681 (default_binds_local_p): Use default_binds_local_p_3.
22682 (default_binds_local_p_1): Likewise.
22683 (default_binds_local_p_2): New.
22684 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22685 default_binds_local_p_2 if TARGET_MACHO is undefined.
22687 2015-03-27 Jakub Jelinek <jakub@redhat.com>
22690 * config/i386/i386.c (legitimize_pic_address): If base
22691 is SYMBOL_REF or LABEL_REF using %rip addressing, force
22692 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22694 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22697 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22700 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
22703 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22704 of optimized out indirect call.
22705 (redirect_to_unreachable): Always build symbol table node for
22706 BUILT_IN_UNREACHABLE
22708 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
22711 * ira-costs.c (record_reg_classes): Process all constraint string
22714 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
22716 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22720 * config/c6x/constraints.md (S3): New constraint.
22721 * config/c6x/c6x.md (real_jump): Use it.
22723 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22725 PR middle-end/65595
22726 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22727 do redirection if the call is not optimized out.
22729 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
22732 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22733 (fchkp-check-incomplete-type): Add LTO.
22734 (fchkp-zero-input-bounds-for-main): Likewise.
22735 (fchkp-first-field-has-own-bounds): Likewise.
22736 (fchkp-narrow-bounds): Likewise.
22737 (fchkp-narrow-to-innermost-array): Likewise.
22738 (fchkp-use-static-bounds): Likewise.
22739 (fchkp-use-static-const-bounds): Likewise.
22740 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22742 2015-03-27 Marek Polacek <polacek@redhat.com>
22744 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22746 2015-03-27 Marek Polacek <polacek@redhat.com>
22749 * ubsan.c (ubsan_create_edge): New function.
22750 (instrument_bool_enum_load): Call it.
22751 (instrument_nonnull_arg): Likewise.
22752 (instrument_nonnull_return): Likewise.
22753 (instrument_object_size): Likewise.
22755 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22757 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22760 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22763 * lto-streamer.h (class lto_location_cache): New.
22764 (struct data_in): Add location_cache.
22765 (lto_input_location): Update prototype.
22766 (stream_input_location_now): New.
22767 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22768 pointer to location.
22769 (stream_input_location): Update.
22770 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22771 (warn_odr): Apply location cache before warning.
22772 (lto_input_location): Update prototype.
22773 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22774 Use stream_input_location_now.
22775 * lto-streamer-in.c (lto_location_cache::current_cache): New static
22777 (lto_location_cache::cmp_loc): New function.
22778 (lto_location_cache::apply_location_cache): New function.
22779 (lto_location_cache::accept_location_cache): New function.
22780 (lto_location_cache::revert_location_cache): New function.
22781 (lto_location_cache::input_location): New function.
22782 (lto_input_location): Do location caching.
22783 (stream_input_location_now): New function.
22784 (input_eh_region, input_struct_function_base): Use
22785 stream_input_location_now.
22786 (lto_data_in_create): use new.
22787 (lto_data_in_delete): Use delete.
22788 * tree-streamer-in.c (unpack_ts_block_value_fields,
22789 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22790 lto_input_ts_exp_tree_pointers): Update for cached location api.
22792 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22795 * passes.def: Add pass_nothrow.
22796 * ipa-pure-const.c: (pass_data_nothrow): New.
22797 (pass_nothrow): New.
22798 (pass_nothrow::execute): New.
22799 (make_pass_nothrow): New.
22800 * tree-pass.h (make_pass_nothrow): Declare.
22802 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22804 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22805 edge to change by speculation resolution or redirection.
22806 (edge_set_predicate): Likewise.
22807 (inline_summary_t::duplicate): Likewise.
22808 (remap_edge_summaries): Likewise.
22810 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22812 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22814 (can_inline_edge_p): Relax option matching for always inline functions.
22816 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
22819 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22820 Check operand 4 and operand 0 for equality.
22821 (avx512f_vextract<shuffletype>32x4_1_maskm):
22822 Check operand 6 and operand 0 for equality.
22823 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22825 (vec_extract_hi_<mode>_maskm): Ditto.
22827 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22829 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22830 dead calls back to live.
22831 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22833 (cgraph_node::verify_node): ... here; verify only callee edges,
22835 * cif-code.def (CILK_SPAWN): New code.
22837 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22839 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22840 (edge_set_predicate): Use it to mark unreachable edges.
22841 (inline_summary_t::duplicate): Remove unnecesary code.
22842 (remap_edge_summaries): Likewise.
22843 (dump_inline_summary): Report contains_cilk_spawn.
22844 (compute_inline_parameters): Compute contains_cilk_spawn.
22845 (inline_read_section, inline_write_summary): Stream
22846 contains_cilk_spawn.
22847 * ipa-inline.c (can_inline_edge_p): Do not touch
22848 DECL_STRUCT_FUNCTION that may not be available;
22849 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22850 remove check for callee_fun->can_throw_non_call_exceptions and
22851 replace it by optimization attribute check; check for flag_exceptions.
22852 * ipa-inline-transform.c (inline_call): Maintain
22853 DECL_FUNCTION_PERSONALITY
22854 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22856 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22858 PR tree-optimization/65551
22859 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22860 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22862 2015-03-26 Richard Biener <rguenther@suse.de>
22864 PR middle-end/65555
22865 * tree-cfg.c (verify_gimple_call): Do not require a call to
22866 have no LHS if it wasn't recognized as control altering yet.
22868 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22870 PR tree-optimization/64715
22871 * passes.def: Add another instance of pass_object_sizes before ccp1.
22872 * tree-object-size.c (pass_object_sizes::execute): In
22873 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22874 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22875 __bos result and the computed constant. Remove redundant
22876 checks, obsoleted by gimple_call_builtin_p test.
22878 * var-tracking.c (variable_tracking_main_1): Don't track
22879 variables for targetm.no_register_allocation targets.
22881 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22883 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22884 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22886 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22889 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22890 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22891 0.0 is correctly setup.
22892 (extenddftf2_internal): Likewise.
22894 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22896 PR tree-optimization/65177
22897 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22899 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22900 edges not adjacent on the path to the original code.
22902 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22905 * doc/install.texi (Building a native compiler): Document new
22906 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22907 configuration assumes that the host supports the linker plugin.
22909 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22912 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22913 chain for generated call.
22915 2015-03-25 Richard Biener <rguenther@suse.de>
22917 * passes.c (pass_manager::execute_early_local_passes): Guard
22918 execution of pass_chkp_instrumentation_passes with
22919 flag_check_pointer_bounds.
22920 (pass_chkp_instrumentation_passes::gate): Likewise.
22922 2015-03-25 Martin Liska <mliska@suse.cz>
22924 PR tree-optimization/65538
22925 * symbol-summary.h (function_summary::~function_summary):
22926 Relese memory for allocated summaries.
22927 (function_summary::release): New function.
22929 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22932 * lto-streamer-out.c (DFS::worklist): New struct.
22933 (DFS::worklist_vec): New data member.
22934 (DFS::next_dfs_num): Remove.
22935 (DFS::DFS): Rewritten using worklist instead of recursion,
22936 using most of code from DFS::DFS_write_tree.
22937 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22938 pass it to DFS_write_tree calls.
22939 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22940 quick initial checks push it into worklist_vec and return.
22942 2015-03-25 Richard Biener <rguenther@suse.de>
22944 PR middle-end/65519
22945 * genmatch.c (expr::gen_transform): Re-write to avoid
22946 using gimple_build.
22948 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22950 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22952 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22954 * config/arm/arm.opt (print_tune_info): New option.
22955 * config/arm/arm.c (arm_print_tune_info): New function.
22956 (arm_file_start): Call arm_print_tune_info.
22957 * config/arm/arm-protos.h (struct tune_params): Add comment.
22958 * doc/invoke.texi (@item -mprint-tune-info): New item.
22959 (-mtune): mention it in ARM Option Summary.
22961 2015-03-25 DJ Delorie <dj@redhat.com>
22963 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22966 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22967 Martin Liska <mliska@suse.cz>
22969 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22970 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22971 (sem_item::add_type): New function.
22972 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22973 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22974 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22975 (sem_function::equals_wpa): Fix typo.
22976 * ipa-icf.h (sem_item::add_type): New function.
22977 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22980 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22982 PR tree-optimization/65533
22983 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22984 with swapped operands, call vect_free_slp_tree on
22985 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22988 2015-03-24 Richard Biener <rguenther@suse.de>
22990 PR middle-end/65517
22991 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22992 for fixup if necessary.
22994 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22996 * doc/extend.texi (Function Attributes): Add @cindex entries
22997 for all attributes and regularize their format. Delete text
22998 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22999 information about "eightbit_data", "tiny_data", and "model"
23000 variable attributes to the Variable Attributes section. Fix
23001 some obvious typos and copy-editing issues.
23002 (Variable Attributes, Type Attributes): Likewise add/fix
23003 @cindex entries for all attributes.
23005 2015-03-23 Jakub Jelinek <jakub@redhat.com>
23008 * tree-chkp.c (chkp_build_returned_bound): Ignore
23009 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
23011 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
23014 * config/sh/predicates.md (simple_mem_operand,
23015 displacement_mem_operand): Add test for reg.
23016 (short_displacement_mem_operand): Test for displacement_mem_operand
23017 before invoking sh_disp_addr_displacement.
23018 * config/sh/constraints.md (Sdd, Sra): Simplify.
23019 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
23020 Remove redundant displacement_mem_operand tests.
23022 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
23025 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
23026 the same -mmcu=MCU more than once.
23028 2015-03-23 Jakub Jelinek <jakub@redhat.com>
23031 * ipa-devirt.c: Remove duplicate demangle.h include.
23034 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
23036 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
23037 REG_POINTER on *destptr after adjusting it for prologue size.
23040 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
23041 ultimate_alias_target ()->order ints instead of
23042 ultimate_alias_target () pointers.
23044 2015-03-23 Richard Biener <rguenther@suse.de>
23046 PR tree-optimization/65518
23047 * tree-vect-stmts.c (vectorizable_load): Reject single-element
23048 interleaving cases we generate absymal code for.
23050 2015-03-23 Richard Biener <rguenther@suse.de>
23052 PR tree-optimization/65494
23053 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
23055 (vect_analyze_slp_instance): But do that here, always and once.
23057 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23059 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
23060 adding T or multiplying by T+1 and subracting T.
23062 2015-03-22 Jeff Law <law@redhat.com>
23064 PR rtl-optimization/64317
23065 * Makefile.in (OBJS): Add gcse-common.c
23066 * gcse.c: Include gcse-common.h
23067 (struct modify_pair_s): Move structure definition to gcse-common.h
23068 (compute_transp): Move function to gcse-common.c.
23069 (canon_list_insert): Similarly.
23070 (record_last_mem_set_info): Break out some code and put it into
23071 gcse-common.c. Call into the new common code.
23072 (compute_local_properties): Pass additional arguments to compute_transp.
23073 * postreload-gcse.c: Include gcse-common.h and df.h
23074 (modify_mem_list_set, blocks_with_calls): New variables.
23075 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
23076 (get_bb_avail_insn): Pass in the expression index too.
23077 (alloc_mem): Allocate memory for the new bitmaps and lists.
23078 (free_mem): Free memory for the new bitmaps and lists.
23079 (insert_expr_in_table): Record a bitmap index for each entry we
23081 (record_last_mem_set_info): Call into common code in gcse-common.c.
23082 (get_bb_avail_insn): If no available insn was found in the requested
23083 BB. If BB has a single predecessor, see if the expression is
23084 transparent in BB and available in that single predecessor.
23085 (compute_expr_transp): New wrapper for compute_transp.
23086 (eliminate_partially_redundant_load): Pass expression's bitmap_index
23087 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
23088 (gcse_after_reload_main): If there are elements in the hash table,
23089 then compute transparency for all the elements in the hash table.
23090 * gcse-common.h: New file.
23091 * gcse-common.c: New file.
23093 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
23095 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
23097 (System Headers): Likewise.
23099 (Traditional macros): Likewise.
23100 (Invocation): Likewise.
23101 (Option Index): Likewise.
23102 * doc/cppopts.texi (-M): Likewise.
23103 (-finput-charset): Likewise.
23104 (--help): Likewise.
23105 * doc.invoke.texi (AVR Options): Likewise.
23106 (V850 Options): Likewise.
23108 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
23111 * ipa-devirt.c: Include demangle.h
23112 (odr_type_d): Add field rtti_broken.
23113 (odr_subtypes_equivalent_p): Do not require name to match.
23114 (compare_virtual_tables): Fix typo; if type already has ODR violation,
23115 bypass the tests; be ready for function referneces in vtables that are
23116 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
23117 (warn_odr): Give up for nameless types.
23118 (warn_types_mismatch): Report mismatch in mangled names;
23119 report mismatch in anonymous namespaces; look into component types to
23120 give useful error; report when mismatch is dragged in from other ODR
23122 (odr_types_equivalent_p): Match types for being polymorphic; avoid
23123 duplicated diagnostics.
23124 (add_type_duplicate): Reorder checks so more informative ones come
23125 first; fix typo; do not output "the extra base is defined here" when
23127 (BINFO_N_BASE_BINFOS): Relax sanity check.
23129 2015-03-22 Martin Liska <mliska@suse.cz>
23130 Jakub Jelinek <jakub@redhat.com>
23132 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
23133 masks that can potentially include a builtin.
23134 (ix86_add_new_builtins): Introduce fast filter for isa values
23135 that cannot trigger builtin inclusion.
23137 2015-03-22 Martin Liska <mliska@suse.cz>
23139 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
23140 (sem_item::update_hash_by_local_refs): Likewise.
23141 (sem_variable::get_hash): Empty line is fixed.
23142 (sem_item_optimizer::execute): Include adding of hash references.
23143 (sem_item_optimizer::update_hash_by_addr_refs): New function.
23144 (sem_item_optimizer::build_hash_based_classes): Use local hash.
23145 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
23146 (sem_item::update_hash_by_local_refs): Likewise.
23148 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23151 * ipa-comdats.c (enqueue_references): Walk through thunks.
23152 (ipa_comdats): Likewise.
23153 (set_comdat_group_1): New function.
23155 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23158 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
23161 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
23162 Gerald Pfeifer <gerald@pfeifer.com>
23164 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
23166 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23167 Sandra Loosemore <sandra@codesourcery.com>
23169 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
23170 function parameter declaration.
23171 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
23172 Update arguments to nios2_adjust_call_address().
23173 (sibcall_internal): Rename from *sibcall.
23174 (sibcall_value_internal): Rename from *sibcall_value.
23175 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
23176 (nios2_large_got_address): Add target temp reg parameter.
23177 (nios2_got_address): Adjust call to nios2_large_got_address, add
23178 force_reg around it.
23179 (nios2_load_pic_address): Add target temp reg parameter, replace call
23180 to nios2_got_address with corresponding code.
23181 (nios2_legitimize_constant_address): Update call to
23182 nios2_load_pic_address.
23183 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
23184 to use temp reg for PIC loading purposes.
23185 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
23186 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
23187 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
23189 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23191 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
23192 usage of "the @option{...}".
23193 (-Wopenmp-simd): Likewise.
23194 (-fsanitize-recover): Likewise.
23195 (-fsanitize-undefined-trap-on-error): Likewise.
23197 (tracer-dynamic-coverage-feedback): Likewise.
23198 (reorder-block-duplicate-feedback): Likewise.
23199 (loop-unroll-jam-size): Likewise.
23202 (-mabs=legacy): Likewise.
23203 (-mupper-regs-df): Likewise.
23204 (-mupper-regs-sf): Likewise.
23205 (-mpointers-to-nested-functions): Likewise.
23207 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23209 * doc/extend.texi (Cilk Plus Builtins): Add markup.
23211 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
23213 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
23214 additional index entries and cross-references.
23215 (-fchkp-check-incomplete-type): Likewise.
23216 (-fchkp-first-field-has-own-bounds): Likewise.
23217 (-fchkp-narrow-to-innermost-array): Likewise.
23218 (-fchkp-use-fast-string-functions): Likewise.
23219 (-fchkp-use-nochk-string-functions): Likewise.
23220 (-fchkp-use-static-const-bounds): Likewise.
23221 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
23222 (-fchkp-instrument-marked-only): Likewise.
23223 (-fchkp-use-wrappers): Likewise.
23224 (-static-libmpx): Likewise.
23225 (-static-libmpxwrappers): Likewise.
23226 * doc/extend.texi (bnd_legacy): Likewise.
23227 (bnd_instrument): Likewise.
23228 (bnd_variable_size): Likewise.
23229 (Pointer Bounds Checker builtins): Likewise.
23231 2015-03-21 Tom de Vries <tom@codesourcery.com>
23233 PR tree-optimization/65458
23234 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
23235 * cgraph.h (cgraph_node): Add parallelized_function field.
23236 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
23237 (input_overwrite_node): Read parallelized_function field.
23238 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
23239 parallelized_function on cgraph_node for child_fn.
23240 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
23241 Remove include of gt-tree-parloops.h.
23242 (parallelized_functions): Remove static variable.
23243 (parallelized_function_p): Rewrite using parallelized_function field of
23245 (create_loop_fn): Remove adding to parallelized_functions.
23246 * Makefile.in (GTFILES): Remove tree-parloops.c
23248 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
23250 PR rtl-optimization/64366
23251 * lra.c (lra_update_insn_regno_info): Consider regs in
23252 CALL_INSN_FUNCTION_USAGE memory.
23254 2015-03-20 Richard Biener <rguenther@suse.de>
23256 PR middle-end/64715
23257 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
23258 for type comparison and gcc_checking_assert.
23259 (chrec_fold_plus_poly_poly): Likewise.
23260 (chrec_fold_multiply_poly_poly): Likewise.
23261 (chrec_convert_1): Likewise.
23262 * gimplify.c (gimplify_expr): Remove premature folding of
23263 &X + CST to &MEM[&X, CST].
23265 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
23267 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
23269 (ipa_inline): Recompute inline_failed codes.
23270 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
23271 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
23274 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
23276 PR rtl-optimization/60851
23277 * recog.c (constrain_operands): Accept a pseudo register before reload
23278 for LRA enabled targets.
23280 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
23283 * config/rs6000/predicates.md (easy_fp_constant): Remove special
23284 -ffast-math handling that kept non-0 constants live in the RTL
23285 until reload. Remove logic testing the number of instructions it
23286 took to create a constant in a GPR that was never used, due to a
23287 test for soft-float earlier.
23288 (memory_fp_constant): Delete, no longer used.
23290 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
23291 alternatives for loading non-0 constants into GPRs for hard
23292 floating point that is no longer needed due to changes in
23293 easy_fp_constant. Add support for loading 0.0 into GPRs.
23294 (mov<mode>_hardfloat32): Likewise.
23295 (mov<mode>_hardfloat64): Likewise.
23296 (mov<mode>_64bit_dm): Likewise.
23297 (movtd_64bit_nodm): Likewise.
23298 (pre-reload move FP constant define_split): Delete define_split,
23299 since it is no longer used.
23300 (extenddftf2_internal): Remove GHF constraints that are not valid
23303 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
23305 PR rtl-optimization/63491
23306 * lra-constraints.c (check_and_process_move): Use src instead of
23307 sreg. Remove some dead code.
23309 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
23312 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
23313 (sem_variable::merge): Likewise.
23315 2015-03-19 Martin Liska <mliska@suse.cz>
23318 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
23319 all fields of cgraph_thunk_info.
23321 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
23323 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
23324 clone instrumented thunks.
23326 2015-03-19 Richard Biener <rguenther@suse.de>
23329 2015-03-10 Richard Biener <rguenther@suse.de>
23331 PR middle-end/63155
23332 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23333 * tree-ssa-coalesce.c: Include timevar.h.
23334 (attempt_coalesce): Handle graph being NULL.
23335 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23336 Split out abnormal coalescing to ...
23337 (perform_abnormal_coalescing): ... this function.
23338 (coalesce_ssa_name): Perform abnormal coalescing without computing
23340 (verify_ssa_coalescing_worker): New function.
23341 (verify_ssa_coalescing): Likewise.
23343 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23344 Jakub Jelinek <jakub@redhat.com>
23347 * tsan.c (instrument_gimple): Clear tail call flag on
23350 2015-03-19 Jakub Jelinek <jakub@redhat.com>
23353 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
23354 call in the return bb.
23355 (find_split_points): Add RETURN_BB argument, don't call
23357 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
23358 if true append TSAN_FUNC_EXIT internal call after the call to
23359 the split off function.
23360 (execute_split_functions): Call find_return_bb here.
23361 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
23362 Adjust find_split_points and split_function calls.
23364 2015-03-18 DJ Delorie <dj@redhat.com>
23366 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
23367 (iorqi3_virt): Likewise.
23369 2015-03-18 Tom de Vries <tom@codesourcery.com>
23371 * tree-parloops.c (parallelize_loops): Make static.
23372 * tree-parloops.h (parallelize_loops): Remove extern declaration.
23374 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
23376 PR middle-end/64491
23378 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
23380 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
23381 condition would be removed due to undefined behaviour.
23383 2015-03-18 Martin Liska <mliska@suse.cz>
23386 * cgraph.c (cgraph_node::get_create): Remove unnecessary
23387 xstrdup_for_dump wrapper.
23388 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
23390 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
23391 with xstrdup_for_dump.
23392 (sem_variable::equals): Likewise.
23393 (sem_item_optimizer::read_section): Use symtab_node::name instead of
23395 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
23396 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
23397 symtab_node::asm_name with xstrdup_for_dump.
23398 (congruence_class::dump): Use symtab_node::name instead of
23400 * ipa-icf.h (symtab_node::name): Remove.
23401 (symtab_node::asm_name): Likewise.
23403 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23405 PR tree-optimization/65450
23406 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
23408 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
23409 it instead of duplicate_ssa_name_ptr_info.
23412 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
23414 2015-03-18 Richard Biener <rguenther@suse.de>
23416 * tree-data-ref.h (struct access_matrix): Remove.
23417 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
23418 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
23419 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
23420 (am_vector_index_for_loop): Likewise.
23421 (struct data_reference): Remove access_matrix member.
23422 (DR_ACCESS_MATRIX): Remove.
23423 (lambda_vector_new): Add comment.
23424 (lambda_matrix_new): Use XOBNEWVEC.
23426 2015-03-18 Richard Biener <rguenther@suse.de>
23428 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
23429 (pass_ch::execute): Cleanup the CFG only if we did sth.
23430 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
23432 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23434 * expmed.c (synth_mult): Use std::swap instead of manually
23435 swapping algorithms.
23437 2015-03-18 Jakub Jelinek <jakub@redhat.com>
23440 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
23442 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
23445 * config/avr/avr.opt (-nodevicelib): New option.
23446 * doc/invoke.texi (AVR Options): Document it.
23447 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
23448 libgcc.a, libc.a, libm.a.
23449 * config/avr/specs.h: Same.
23450 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
23451 which don't (directly) depend on the device. Print more help.
23452 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
23453 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
23454 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
23456 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
23457 for specs file name.
23458 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
23459 * config/avr/avr-mcus.def: Adjust initializers and comments.
23461 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
23463 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
23464 DECL_ONE_ONLY to check if decl is one only.
23465 * ipa-split.c (consider_split): Limit splitt of one only functions.
23467 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23469 PR tree-optimization/65427
23470 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
23472 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
23474 2015-03-16 Marek Polacek <polacek@redhat.com>
23476 * cgraph.h (add_new_static_var): Remove declaration.
23477 * varpool.c (add_new_static_var): Remove function.
23479 2015-03-16 Jakub Jelinek <jakub@redhat.com>
23481 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
23482 instead of vec<tree> * with vec_alloc and release for args.
23485 PR middle-end/65431
23486 * omp-low.c (delete_omp_context): Only splay_tree_delete
23487 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
23488 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
23490 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
23493 * cfgexpand.c (align_base): New function.
23494 (alloc_stack_frame_space): Call it.
23495 (expand_stack_vars): Align prev_frame to be sure
23496 data->asan_vec elements aligned properly.
23498 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
23500 PR middle-end/65409
23501 * expr.c (store_field): Do not do a direct block copy if the source is
23502 a PARALLEL with BLKmode.
23504 2015-03-16 Tom de Vries <tom@codesourcery.com>
23506 PR middle-end/65414
23508 2015-03-12 Tom de Vries <tom@codesourcery.com>
23510 PR rtl-optimization/64895
23511 * lra-lives.c (check_pseudos_live_through_calls): Use
23512 actual_call_used_reg_set instead of call_used_reg_set, if available.
23514 2015-03-16 Alan Modra <amodra@gmail.com>
23517 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23518 Modify Z->r bswapdi splitter to use dest in place of scratch.
23519 In r->Z and Z->r bswapdi splitter rename word_high, word_low
23520 to word1, word2 and rearrange logic to suit.
23521 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23522 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
23523 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23524 Add one '?' on r->r. Modify Z->r splitter to avoid need for
23527 2015-03-14 Jakub Jelinek <jakub@redhat.com>
23529 PR tree-optimization/65369
23530 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23531 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23532 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23534 PR tree-optimization/65418
23535 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23536 are casts in the first PLUS_EXPR operand, ensure tbias and
23537 *totallowp are in the inner type.
23539 PR rtl-optimization/65401
23540 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23541 argument. If true, adjust_address_nv of x with big-endian
23542 correction for the mode widening to GET_MODE (y).
23543 (make_field_assignment): Don't do MEM mode widening here.
23544 Use MEM_P instead of GET_CODE == MEM.
23546 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
23548 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23549 the external decls.
23551 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23554 * config/arm/arm.c (arm_gen_constant, AND case): Use
23555 ARM_SIGN_EXTEND when constructing AND mask.
23557 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23559 * graph.c (print_graph_cfg): Make function names visible and append
23560 parenthesis to it. Also make groups of basic blocks belonging to the
23561 same function visible.
23563 2015-03-12 Richard Biener <rguenther@suse.de>
23565 PR middle-end/44563
23566 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23567 to avoid quadratic behavior with inline expansion splitting blocks.
23568 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23569 with the successor if the predecessor will be merged with it.
23570 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23571 entry block with its successor.
23573 2015-03-13 Richard Biener <rguenther@suse.de>
23575 PR middle-end/44563
23576 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23577 (cleanup_tree_cfg_1): Do not call it.
23578 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23579 (fixup_noreturn_call): Mark the stmt as control altering.
23580 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23582 (pass_data_fixup_cfg): Produce a dump file.
23583 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23584 (need_noreturn_fixup): New global.
23585 (pass_dominator::execute): Fixup queued noreturn calls.
23586 (optimize_stmt): Queue calls that became noreturn for fixup.
23587 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23588 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23589 (el_to_fixup): New global.
23590 (eliminate_dom_walker::before_dom_childre): Queue calls that
23591 became noreturn for fixup.
23592 (eliminate): Fixup queued noreturn calls.
23593 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23594 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23595 (substitute_and_fold_dom_walker::before_dom_children): Queue
23596 alls that became noreturn for fixup.
23597 (substitute_and_fold): Fixup queued noreturn calls.
23599 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
23601 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23602 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23603 are building; for methods check ODR type of class they belong to if
23604 they may lead to a polymorphic call.
23605 (sem_function::compare_polymorphic_p): Be bit smarter about testing
23606 when function may lead to a polymorphic call.
23607 (sem_function::compare_type_list): Remove.
23608 (sem_variable::equals): Update use of compatible_types_p.
23609 (sem_variable::parse_tree_refs): Remove.
23610 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23612 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23614 (func_checker::compatible_polymorphic_types_p): Break out from ...
23615 (unc_checker::compatible_types_p): ... here.
23616 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23618 (unc_checker::compatible_types_p): Update.
23619 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23622 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23624 PR rtl-optimization/65235
23625 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23626 When first element of vec_concat is const_int, calculate its size
23627 using second element.
23629 2015-03-12 Richard Biener <rguenther@suse.de>
23631 PR middle-end/65270
23632 * fold-const.c (operand_equal_p): Fix ordering of resetting
23633 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23635 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23637 * config/s390/s390.c (s390_reorg): Move code to output nops after label
23639 (s390_asm_output_function_label): Likewise.
23640 * config/s390/s390.c (s390_asm_output_function_label):
23641 Fix function label alignment with -mhtopatch.
23642 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23643 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23644 ("nop_2_byte"): New define_insn.
23645 ("nop_4_byte"): Likewise.
23646 ("nop_6_byte"): Likewise.
23647 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23648 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23650 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23653 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23656 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
23659 * toplev.c (process_options): Restrict Pointer Bounds Checker
23660 usage with Address Sanitizer.
23662 2015-03-12 Richard Biener <rguenther@suse.de>
23664 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23666 * omp-low.c (expand_omp_taskreg): Split block before removing
23668 (expand_omp_target): Likewise.
23669 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23670 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23671 stmt to split_block.
23673 2015-03-12 Tom de Vries <tom@codesourcery.com>
23675 PR rtl-optimization/64895
23676 * lra-lives.c (check_pseudos_live_through_calls): Use
23677 actual_call_used_reg_set instead of call_used_reg_set, if available.
23679 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23681 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23682 (cgraph_node::remove): Likewise.
23683 (cgraph_node::get_untransformed_body): Likewise.
23684 * varpool.c (varpool_node::remove): Likewise.
23685 (varpool_node::get_constructor): Add sanity check.
23687 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
23689 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23691 (-fabi-compat-version): Likewise.
23692 (-ffriend-injection): Likewise.
23693 (-Wdeclaration-after-statement): Likewise.
23694 (-fomit-frame-pointer): Likewise.
23695 (-ftree-coalesce-inlined-vars): Likewise.
23696 (-fvisibility=): Likewise.
23697 * doc/extend.texi (Typeof): Likewise.
23698 (Zero Length): Likewise.
23699 (Escaped Newlines): Likewise.
23700 (Compound Literals): Likewise.
23701 (Function Attributes): Likewise.
23702 (Label Attributes): Likewise.
23703 (Type Attributes): Likewise.
23704 (Function Names): Likewise.
23705 (Other Builtins): Likewise.
23706 (Function Specific Option Pragmas): Likewise.
23707 (C++ Interface): Likewise.
23709 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
23711 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23713 2015-03-11 Marek Polacek <polacek@redhat.com>
23715 PR tree-optimization/65388
23716 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23718 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23721 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23722 * configure: Regenerate.
23723 * config.in: Regenerate.
23724 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23725 [-mn-flash]: Document it.
23726 [__AVR_ARCH__]: Document avrtiny.
23728 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23729 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23730 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23732 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23734 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23736 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23739 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23740 allow reloads of PLUS in floating point/VSX registers.
23742 2015-03-11 Junmo Park <junmoz.park@samsung.com>
23744 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23745 crypto_sha256_fast.
23746 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23748 2015-03-11 Richard Biener <rguenther@suse.de>
23750 PR tree-optimization/65310
23751 * tree-sra.c (build_ref_for_offset): Also preserve larger
23754 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
23756 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23758 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23761 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23763 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23765 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23767 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23768 (sem_function::equals_wpa): ... here.
23770 2015-03-10 Marek Polacek <polacek@redhat.com>
23771 Jakub Jelinek <jakub@redhat.com>
23774 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23775 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
23778 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23781 * config/rs6000/t-linux: For powerpc64* target set
23782 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23784 2015-03-10 Richard Biener <rguenther@suse.de>
23786 PR middle-end/44563
23787 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23788 for redirect_all_calls.
23790 2015-03-10 Marek Polacek <polacek@redhat.com>
23792 * gdbinit.in (pcfun): Define and document.
23794 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
23796 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23797 of libgomp-plugin.h.
23798 (find_target_compiler): Support a case when the path to gcc is
23799 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23800 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23801 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23803 (main): Use GCC_INSTALL_NAME as target_driver_name.
23804 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23806 (mkoffload.o): Remove obsolete include path and defines.
23807 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23809 2015-03-10 Richard Biener <rguenther@suse.de>
23811 PR middle-end/63155
23812 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23813 * tree-ssa-coalesce.c: Include timevar.h.
23814 (attempt_coalesce): Handle graph being NULL.
23815 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23816 Split out abnormal coalescing to ...
23817 (perform_abnormal_coalescing): ... this function.
23818 (coalesce_ssa_name): Perform abnormal coalescing without computing
23820 (verify_ssa_coalescing_worker): New function.
23821 (verify_ssa_coalescing): Likewise.
23823 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23826 * config.gcc (extra_options) [avr]: Remove.
23827 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23828 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23829 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23831 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23832 (-mmcu=): Add Var and MissingArgError properties.
23834 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23835 * config/avr/t-multilib: Regenerate.
23836 * config/avr/specs.h: New file.
23837 * config/avr/driver-avr.c: New file.
23838 * config/avr/genopt.sh: Remove file.
23839 * config/avr/avr-tables.opt: Remove file.
23840 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23841 * config/avr/avr-c.c: Same.
23842 * avr-arch.h: Same.
23843 (avr_current_device): Remove proto.
23844 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23845 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23846 (EXTRA_SPEC_FUNCTIONS): Define.
23847 (avr_devicespecs_file): New specs function proto.
23848 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23849 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23850 (avr_current_device): Remove definition and usage.
23851 (avr_set_core_architecture): New static function.
23852 (avr_option_override): Use it.
23853 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23854 (mcu_name): New static array.
23855 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23856 (avr_inform_devices, avr_inform_core_architectures): New functions.
23857 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23858 (avrlibc.h) [WITH_AVRLIBC]: Include.
23859 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23860 (print_mcu): Rewrite from scratch.
23861 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23862 Forward to avr-specific specs defined in device-specs file.
23863 * config/avr/t-avr (driver-avr.o): New rule.
23864 (avr-devices.o): Depend on avr-arch.h.
23865 (avr-mcus): No more depend on avr-tables.opt.
23866 (avr-tables.opt): Remove rule.
23867 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23869 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23871 * c-family/c.opt (fchkp-use-wrappers): New.
23872 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23873 (chkp_wrap_function): New.
23874 (chkp_build_instrumented_fndecl): Support wrapped
23876 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23877 (-fchkp-check-incomplete-type): New.
23878 (-fchkp-first-field-has-own-bounds): New.
23879 (-fchkp-narrow-bounds): New.
23880 (-fchkp-narrow-to-innermost-array): New.
23881 (-fchkp-optimize): New.
23882 (-fchkp-use-fast-string-functions): New.
23883 (-fchkp-use-nochk-string-functions): New.
23884 (-fchkp-use-static-bounds): New.
23885 (-fchkp-use-static-const-bounds): New.
23886 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23887 (-fchkp-check-read): New.
23888 (-fchkp-check-write): New.
23889 (-fchkp-store-bounds): New.
23890 (-fchkp-instrument-calls): New.
23891 (-fchkp-instrument-marked-only): New.
23892 (-fchkp-use-wrappers): New.
23893 (-static-libmpx): New.
23894 (-static-libmpxwrappers): New.
23896 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23898 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23899 (CHKP_SPEC): Add wrappers library.
23900 * c-family/c.opt (static-libmpxwrappers): New.
23902 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23904 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23905 (LIBMPX_SPEC): New.
23907 * gcc.c (CHKP_SPEC): New.
23908 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23909 * c-family/c.opt (static-libmpx): New.
23911 2015-03-10 Richard Biener <rguenther@suse.de>
23913 PR middle-end/44563
23914 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23916 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23917 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23918 (cgraph_add_edge_to_call_site_hash): Likewise.
23919 (cgraph_node::get_edge): Likewise.
23920 (cgraph_edge::set_call_stmt): Likewise.
23921 (cgraph_edge::remove_caller): Likewise.
23923 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23925 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23926 (callee_saved_gpr_regs_size): ... this.
23927 (callee_saved_regs_first_regno): Rename to ...
23928 (callee_saved_first_gpr_regno): ... this.
23929 (callee_saved_regs_last_regno) Rename to ...
23930 (callee_saved_last_gpr_regno): ... this.
23931 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23933 (nds32_initial_elimination_offset): Likewise.
23934 (nds32_expand_prologue): Likewise.
23935 (nds32_expand_epilogue): Likewise.
23936 (nds32_expand_prologue_v3push): Likewise.
23937 (nds32_expand_epilogue_v3pop): Likewise.
23938 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23939 Adjust renamed variables.
23940 (nds32_output_stack_pop): Likewise.
23942 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23944 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23947 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23949 PR rtl-optimization/65321
23950 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23952 * var-tracking.c (use_narrower_mode): Likewise.
23954 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23956 PR tree-optimization/65355
23957 * varasm.c (notice_global_symbol): Do not produce RTL.
23958 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23960 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23961 check for section anchors.
23963 2015-03-10 Alan Modra <amodra@gmail.com>
23966 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23967 to be single-arch by default. Set cpu_is_64bit for powerpc64
23968 given --with-cpu=native.
23969 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23970 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23972 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23973 rs6000_isa_flags rather than TARGET_64BIT.
23975 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23976 Kaz Kojima <kkojima@gcc.gnu.org>
23978 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23980 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23983 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23984 on a TREE_BINFO, instead use BINFO_TYPE.
23986 2015-03-09 Richard Biener <rguenther@suse.de>
23988 PR middle-end/65270
23989 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23990 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23991 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23992 of that. When comparing dereferences compare alignment.
23993 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23995 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23997 * ipa-inline-analysis.c (check_callers): Check
23998 node->can_remove_if_no_direct_calls_and_refs_p.
23999 (growth_likely_positive): Reorganize to call
24000 can_remove_if_no_direct_calls_p later.
24001 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
24002 will_be_removed_from_program_if_no_direct_calls_p): Add
24003 will_inline parameter.
24004 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
24005 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24006 Handle inliner case correctly.
24008 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
24010 PR tree-optimization/63743
24011 * cfgexpand.c (reorder_operands): Also reorder if only second operand
24012 had its definition forwarded by TER.
24014 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
24017 * ipa-utils.h (types_odr_comparable): Add strict argument.
24018 * ipa-devirt.c: Fix whitespace;
24019 (odr_hasher): Remove.
24020 (odr_name_hasher, odr_vtable_hasher): New hashers.
24021 (can_be_name_hashed_p): New predicate.
24022 (hash_type_name): remove.
24023 (hash_odr_name): New.
24024 (odr_name_hasher::hash): new.
24025 (can_be_vtable_hashed_p): New.
24026 (hash_odr_vtable): New.
24027 (odr_vtable_hasher::hash): New.
24028 (types_same_for_odr): Add strict parameter.
24029 (types_odr_comparable): Likewise.
24030 (odr_name_hasher::equal): New.
24031 (odr_vtable_hasher::equal): New.
24032 (odr_name_hasher::remove): New.
24033 (odr_hash_type): Change to hash_table<odr_name_hasher>.
24034 (odr_vtable_hash_type): New.
24035 (odr_vtable_hash): New.
24036 (odr_subtypes_equivalent_p): Do strict comparsion.
24037 (add_type_duplicate): Merge type names; cleanup; avoid type
24039 (register_odr_type): Initialize vtable hash.
24040 (build_type_inheritance_graph): Likewise
24041 (get_odr_type): Reorg to use two hashes.
24042 (dump_possible_polymorphic_call_targets): Move sanity check after debug
24044 (ipa_devirt): Dump type_inheritance_graph.
24045 (types_same_for_odr): Add strict mode.
24047 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24050 * cgraph.h (symtab_node): Add definition_alignment,
24051 can_increase_alignment_p and increase_alignment.
24052 * symtab.c (symtab_node::can_increase_alignment_p,
24053 increase_alignment_1, symtab_node::increase_alignment,
24054 symtab_node::definition_alignment): New.
24055 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
24056 can_increase_alignment_p.
24057 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
24058 * tree-vect-stmts.c (ensure_base_align): Likewise.
24059 * varasm.c (function_section_1): Use definition_alignment.
24060 (assemble_start_function): Likewise.
24061 (emit_local): likewise.
24062 (build_constant_desc): Likewsie.
24063 (output_constant_def_contents): Likewise.
24064 (place_block_symbol): Likewise.
24065 (output_object_block): Likewise.
24067 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24070 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
24071 when outputting debug.
24073 2015-03-07 Marek Polacek <polacek@redhat.com>
24074 Martin Uecker <uecker@eecs.berkeley.edu>
24077 * doc/invoke.texi: Update description of -fsanitize=bounds.
24079 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
24081 * tree-ssa-phiopt.c (neg_replacement): Remove.
24082 (tree_ssa_phiopt_worker): Remove negate optimization.
24084 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24087 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
24089 2015-03-06 Richard Biener <rguenther@suse.de>
24091 PR middle-end/64928
24092 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
24093 and liveout_obstack members.
24094 (calculate_live_on_exit): Remove.
24095 (calculate_live_ranges): Change declaration.
24096 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
24097 (new_tree_live_info): Adjust.
24098 (calculate_live_ranges): Delete livein when not wanted.
24099 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
24100 Deal with partly deleted live info.
24101 (loe_visit_block): Remove temporary bitmap by using
24102 bitmap_ior_and_compl_into.
24103 (live_worklist): Adjust accordingly.
24104 (calculate_live_on_exit): Make static.
24105 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
24106 we do not need livein.
24108 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
24110 * real.c (real_from_string): Fix typo in assertion.
24112 2015-03-06 Alex Velenko <alex.velenko@arm.com>
24114 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
24117 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
24119 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
24121 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
24124 * lra-assigns.c (find_hard_regno_for): Rename to
24125 find_hard_regno_for_1. Add a new parameter.
24126 (find_hard_regno_for): New function using find_hard_regno_for_1.
24128 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
24130 PR rtl-optimization/65067
24131 * expmed.c (store_bit_field, extract_bit_field): Reworked the
24132 strict volatile bitfield handling.
24134 2015-03-05 Martin Liska <mliska@suse.cz>
24137 * ipa-icf.c (sem_variable::equals): Compare variables types.
24139 2015-03-05 Richard Henderson <rth@redhat.com>
24142 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
24143 correctly check weak symbol binding.
24145 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
24147 PR middle-end/65315
24148 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
24151 2015-03-05 Martin Liska <mliska@suse.cz>
24153 * ipa-inline.c (inline_small_functions): Set default value to
24154 prevent warning during bootstrap.
24155 * tree.h: Add pragma guard that ignores false positives during
24158 2015-03-05 Richard Biener <rguenther@suse.de>
24160 PR tree-optimization/65310
24161 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24162 Properly preserve alignment of the base of the access.
24164 2015-03-05 Richard Biener <rguenther@suse.de>
24167 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
24168 Compare dependence info.
24170 2015-03-05 Richard Biener <rguenther@suse.de>
24172 PR middle-end/65233
24173 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
24175 (walk_ssa_copies): Revert last chage. Instead do not walk
24176 SSA names registered for SSA update.
24178 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24181 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
24182 vtable references for their containing type.
24183 (sem_function::equals_wpa): Compare TYPE_RESTRICT
24184 and type attributes.
24186 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
24188 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
24189 before negating it.
24190 * stor-layout.c (finalize_record_size): Revert latest change.
24192 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
24194 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
24196 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24198 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
24199 for correct comdat handling.
24200 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24202 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
24203 (used_from_object_file_p_worker): Remove.
24204 (cgraph_node::only_called_directly_or_alised): Add
24205 used_from_object_file_p.
24206 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
24207 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
24208 can_remove_if_no_direct_calls_and_refs_p.
24210 2015-03-04 Nick Clifton <nickc@redhat.com>
24212 * config/rl78/rl78.h (enum reg_class): Remove real registers from
24213 General register class.
24214 * config/rl78/rl78-real.md: Replace general register constraints
24215 with real+virtual register constraints.
24217 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24219 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
24220 from checking for -mhtm option.
24222 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
24224 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
24225 (struct ipa_sra_check_caller_data): Add has_thunk field.
24226 (ipa_sra_check_caller): Check for thunk.
24227 (ipa_sra_preliminary_function_checks): Give up on function with
24229 (ipa_early_sra): Use call_for_symbol_and_aliases.
24231 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
24234 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
24235 called for __stack_chk_guard symbol.
24237 2015-03-03 DJ Delorie <dj@redhat.com>
24239 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
24241 (*addhi3_real): Likewise.
24242 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
24243 pattern to match incrementing memory.
24244 * config/rl78/predicates.md (rl78_1_2_operand): New.
24245 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
24246 it's the same and only mem.
24247 (rl78_alloc_physical_registers_op2): If there's effectively only
24248 one MEM, transcode it into HL.
24249 (rl78_far_p): Reject addresses that aren't legitimate.
24251 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24253 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
24256 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
24258 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24260 Implement call0 ABI for xtensa
24261 * config/xtensa/constraints.md ("a" constraint): Include stack
24262 pointer in case of call0 ABI.
24263 ("q" constraint): Make empty in case of call0 ABI.
24264 ("D" constraint): Include stack pointer in case of call0 ABI.
24265 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
24266 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
24268 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
24270 (xtensa_regno_to_class): Make it a local variable in the
24271 function xtensa_regno_to_class.
24272 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
24273 macro, function prototype and implementation.
24274 (reg_nonleaf_alloc_order): Make it a local variable in the
24275 function order_regs_for_local_alloc.
24276 (xtensa_conditional_register_usage): New function.
24277 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
24278 (xtensa_valid_move): Allow direct moves to stack pointer
24279 register in call0 ABI.
24280 (xtensa_setup_frame_addresses): Only spill register windows in
24282 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
24283 call0 ABI respectively.
24284 (xtensa_function_arg_1): Only mark a7 register for copying in
24286 (xtensa_call_save_reg): New function.
24287 (compute_frame_size): Add space for callee saved register
24288 storage to the frame size in call0 ABI.
24289 (xtensa_expand_prologue): Generate code to set up stack frame
24290 and save callee-saved registers in call0 ABI.
24291 (xtensa_expand_epilogue): New function.
24292 (xtensa_set_return_address): New function.
24293 (xtensa_return_addr): Calculate return address in call0 ABI.
24294 (xtensa_builtin_saveregs): Only mark a7 register for copying and
24295 emit copying code in windowed ABI.
24296 (order_regs_for_local_alloc): Add preferred register allocation
24297 order for non-leaf function in call0 ABI.
24298 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
24299 (xtensa_asm_trampoline_template): Add trampoline generation for
24301 (xtensa_trampoline_init): Add trampoline initialization for
24303 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
24305 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
24306 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
24307 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
24308 ABI call-used registers.
24309 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
24310 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
24312 (REG_CLASS_CONTENTS): Include all registers into the preferred
24313 reload registers set, adjust the set in the
24314 xtensa_conditional_register_usage.
24315 (xtensa_regno_to_class): Drop variable declaration.
24316 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
24318 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
24320 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
24321 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
24322 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
24323 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
24324 location in call0 ABI.
24325 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
24326 stack adjustment size when handling exception.
24327 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
24328 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
24330 ("return" pattern): Generate ret.n/ret in call0 ABI.
24331 ("epilogue" pattern): Expand epilogue.
24332 ("nonlocal_goto" pattern): Use default in call0 ABI.
24333 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
24334 emit eh_set_a0_* depending on ABI.
24335 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
24336 ("eh_set_a0_call0", "blockage"): New patterns.
24338 2015-03-03 Martin Liska <mliska@suse.cz>
24341 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
24343 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24346 * config/rs6000/rs6000-tables.opt: Regenerate table.
24348 2015-03-03 Renlin Li <renlin.li@arm.com>
24350 * doc/md.texi (@item ^): Change ? into ^.
24352 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
24354 * doc/tm.texi: Regenerated.
24356 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
24358 * builtins.c (expand_builtin_return_addr): Add
24359 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
24360 surrounding #ifdef.
24361 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
24363 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
24365 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
24367 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
24370 2015-03-03 Martin Jambor <mjambor@suse.cz>
24371 Eric Botcazou <ebotcazou@adacore.com>
24373 * tree-sra.c (ipa_sra_check_caller_data): New type.
24374 (has_caller_p): Removed.
24375 (ipa_sra_check_caller): New function.
24376 (ipa_sra_preliminary_function_checks): Use it.
24378 2015-03-03 Martin Liska <mliska@suse.cz>
24380 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
24381 instead of if branch.
24383 2015-03-03 Martin Liska <mliska@suse.cz>
24386 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
24388 2015-03-23 Jeff Law <law@redhat.com>
24390 PR tree-optimization/65241
24391 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
24392 hash table if INSERT is true.
24394 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24397 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
24399 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24402 * config/avr/avr.c (context.h, tree-pass.h): Include them.
24403 (avr_pass_data_recompute_notes): New static variable.
24404 (avr_pass_recompute_notes): New class.
24405 (avr_register_passes): New static function.
24406 (avr_option_override): Call it.
24408 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
24410 Fix various problems with specs file generation.
24413 * config.gcc (extra_gcc_objs) [avr]: Remove.
24414 * config/avr/driver-avr.c: Remove file.
24415 * config/avr/t-avr (driver-avr.o): Remove rule.
24416 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
24417 INCLUDES to build. Depend on TM_H.
24418 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
24419 build warnings. Fix non-matching types and non-existing %-codes.
24421 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
24422 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
24423 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
24424 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
24425 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
24426 (LIBGCC_SPEC): Remove definitions.
24428 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
24430 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
24431 to create a register in testing mode.
24433 2015-03-03 Martin Liska <mliska@suse.cz>
24434 Jan Hubicka <hubicka@ucw.cz>
24437 * cgraph.c (cgraph_node::has_thunk_p): New function.
24438 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
24439 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
24440 (sem_function::merge): Assert is changed.
24442 2015-03-03 Martin Liska <mliska@suse.cz>
24443 Martin Jambor <mjambor@suse.cz>
24446 * ipa-icf.c (sem_item_optimizer::execute): Change function
24447 return value to boolean.
24448 (sem_item_optimizer::merge_classes): Likewise.
24449 (ipa_icf_driver): Return TODO_remove_functions in case there's
24450 a merge operation processed.
24451 * ipa-icf.h: Change function return value to boolean.
24453 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24456 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
24457 processor type for 64-bit little endian PowerPC.
24459 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24460 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
24461 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
24462 printing built-in mask so it does not pass NULL pointers.
24464 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
24467 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
24470 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
24471 !ISA_HAS_FP_CONDMOVE.
24473 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
24475 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
24478 2015-03-02 Ulrich Drepper <drepper@gmail.com>
24480 * doc/invoke.texi (Options for Code Generation Conventions):
24481 Fix URL of DSO paper.
24483 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24486 * ipa-inline.c (check_callers): Looks for recursion.
24487 (inline_to_all_callers): Give up on uninlinable or recursive edges.
24488 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
24489 summary of inline clones.
24490 (do_estimate_growth_1): Fix recursion check.
24492 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24495 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
24498 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
24499 Aldy Hernandez <aldyh@redhat.com>
24502 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
24503 when checking TYPE_BINFO.
24505 2015-03-02 Richard Biener <rguenther@suse.de>
24508 * ipa-icf-gimple.c: Include builtins.h.
24509 (func_checker::compare_memory_operand): Compare base alignment.
24511 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24514 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
24515 are never passed by reference.
24517 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
24520 * tree-chkp.c (chkp_check_lower): Don't check against
24521 zero bounds for already instrumented functions.
24522 (chkp_check_upper): Likewise.
24523 (chkp_fini): Clean pass local data to avoid wrong reusage.
24525 2015-02-28 Martin Liska <mliska@suse.cz>
24526 Jan Hubicka <hubicka@ucw.cz>
24528 * ipa-icf.c (sem_variable::equals): Improve debug output;
24529 get variable constructor.
24530 (sem_variable::parse): Do not filter out too early; give up on
24531 volatile and register vars.
24532 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24534 * ipa-icf.h (sem_variable::init): Do not set ctor.
24535 (sem_variable::ctor): Remove.
24537 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
24539 PR middle-end/65233
24540 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24542 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24544 * ipa-icf.c: Include stor-layout.h
24545 (sem_function::compare_cgraph_references): Rename to ...
24546 (sem_item::compare_cgraph_references): ... this one.
24547 (sem_variable::equals_wpa): New function
24548 (sem_variable::equals): Do not check stuff already verified by
24550 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24551 * ipa-icf.h (sem_item): Add compare_cgraph_references.
24552 (sem_function): Remove compare_cgraph_references.
24553 (sem_variable): Turns equals_wpa into non-inline.
24555 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24557 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24558 (sem_item::add_expr): New function.
24559 (sem_function::hash_stmt): Handle operands of most statements.
24560 (sem_variable::get_hash): Hash the actual constructor.
24561 * ipa-icf.h (sem_item): Add add_expr.
24562 (sem_function): Update prototype of hash_stmt
24564 2015-02-28 Martin Liska <mliska@suse.cz>
24565 Jan Hubicka <hubicka@ucw.cz>
24568 * ipa-icf-gimple.c (func_checker::compare_function_decl):
24570 (func_checker::compare_variable_decl): Skip symtab vars.
24571 (func_checker::compare_cst_or_decl): Update.
24572 * ipa-icf.c (sem_function::parse): Do not consider aliases.
24573 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24574 use correct symtab predicates.
24575 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24576 (sem_variable::parse): Update comment.
24577 (sem_item_optimizer::build_graph): Consider ultimate aliases
24580 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24582 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24585 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24587 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24588 (sem_variable::merge) Likewise.
24590 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24592 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24593 target; also match flag_ipa_devirt.
24595 2015-03-01 Martin Liska <mliska@suse.cz>
24596 Jan Hubicka <hubicka@ucw.cz>
24598 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24599 Validate variable alignment.
24600 * ipa-icf.c (sem_function::equals_private): Be more precise
24601 about non-common function attributes.
24602 (sem_variable::equals): Likewise.
24604 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24607 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24608 across COMDAT group boundary.
24610 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24613 * ipa-icf.c (clear_decl_rtl): New function.
24614 (sem_function::merge): Clear RTL before forming alias.
24615 (sem_variable::merge): Clear RTL before forming alias.
24617 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
24620 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24622 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
24624 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24627 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24629 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24630 a typo in the description.
24632 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24635 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24636 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24637 * lra-constraints.c: Include "params.h".
24638 (EBB_PROBABILITY_CUTOFF): Use
24639 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24640 (lra_inheritance): Use '<' instead of '<=' for
24641 EBB_PROBABILITY_CUTOFF.
24642 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24645 2015-02-27 Martin Liska <mliska@suse.cz>
24647 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24648 vector length condition.
24650 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
24652 * doc/extend.texi (x86 transactional memory intrinsics):
24653 Reorganize discussion of _xbegin. Clarify that the return
24654 value is a bit mask. Expand example and move to end of section.
24656 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24657 Aldy Hernandez <aldyh@redhat.com>
24659 PR rtl-optimization/65220
24660 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24662 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
24665 * lra-remat.c (update_scratch_ops): New.
24666 (do_remat): Call it.
24667 * lra.c (lra_register_new_scratch_op): New. Take code from ...
24668 (remove_scratches): ... here.
24669 * lra-int.h (lra_register_new_scratch_op): New prototype.
24671 2015-02-27 Marek Polacek <polacek@redhat.com>
24674 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24675 -Wformat-signedness anymore.
24677 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24679 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24681 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24683 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24685 * config/s390/s390.c (enum s390_builtin):
24686 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24687 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24688 (s390_init_builtins): Generate new builtin functions.
24689 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24690 (s390_sfpc, s390_efpc): New pattern definitions.
24692 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24694 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24695 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24696 (s390_builtin_decls): New array.
24697 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24698 (s390_builtin_decl): New function.
24699 (TARGET_BUILTIN_DECL): Define macro.
24701 2015-02-27 Richard Biener <rguenther@suse.de>
24703 PR middle-end/63175
24704 * builtins.c (get_object_alignment_2): Make sure to re-apply
24705 the ANDed mask after recursing to its operand gets us a new
24706 misalignment bit position.
24708 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
24709 Martin Liska <mliska@suse.cz>
24712 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24713 Use address_matters_p.
24714 (redirect_all_callers, set_addressable): New functions.
24715 (sem_function::merge): Reorganize and fix merging issues.
24716 (sem_variable::merge): Likewise.
24717 (sem_variable::compare_sections): Remove.
24718 * common.opt (fmerge-all-constants, fmerge-constants): Remove
24720 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24722 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24724 (address_matters_1): New function.
24725 (symtab_node::address_matters_p): New function.
24726 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24727 check for merged flag.
24728 * cgraph.h (address_matters_p): Declare.
24729 (symtab_node::address_taken_from_non_vtable_p): Remove.
24730 (symtab_node::address_can_be_compared_p): New method.
24731 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24732 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24734 (comdat_can_be_unshared_p_1) Use address_matters_p.
24735 (update_vtable_references): Fix formating.
24736 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24737 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24738 * cgraphclones.c: Preserve merged and icf_merged flags.
24740 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
24742 * doc/extend.texi (Function Attributes): Fix spelling and typos.
24743 (Label Attributes): Likewise.
24744 (Cilk Plus Builtins): Likewise.
24745 (ARC SIMD Built-in Functions): Likewise.
24746 (ARM C Language Extensions (ACLE)): Likewise.
24747 (PowerPC Built-in Functions): Likewise.
24748 (PowerPC Hardware Transactional Memory Built-in Functions):
24751 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24753 PR tree-optimization/65216
24754 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24755 new stmt and new SSA_NAME for lhs whenever the arguments have
24756 changed and weren't just swapped. Fix comment typo.
24758 PR tree-optimization/65215
24759 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24760 for PDP endian targets.
24761 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24762 Fix up formatting issues.
24763 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
24764 size is smaller than the original, adjust MEM_REF offset by the
24765 difference of sizes. Use is_gimple_mem_ref_addr instead of
24766 is_gimple_min_invariant test to avoid adding address temporaries.
24768 2015-02-26 Martin Liska <mliska@suse.cz>
24769 Jan Hubicka <hubicka@ucw.cz>
24772 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24773 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24774 (sem_item_optimizer::process_cong_reduction): Include division by
24775 sensitive references.
24776 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24777 * ipa-ref.c (ipa_ref::address_matters_p): New function.
24778 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24780 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
24783 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24785 * config/avr/avr.c: Same.
24786 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24787 Refuse any constant address not in 0..0xbf.
24788 * config/avr/avr.md (*mov<mode>, *movsf): Remove
24789 tiny_valid_direct_memory_access_range from insn conditions.
24790 (mov<mode>): Don't special-case expansion of avrtiny addresses.
24792 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
24795 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24796 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24797 * config/sh/predicates.md (const_logical_operand): New predicate.
24798 * config/sh/sh.md: Add new peephole2 patterns.
24800 2015-02-26 Marek Polacek <polacek@redhat.com>
24803 * ipa-inline.c (early_inliner): Recompute inline parameters.
24805 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24808 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24809 instructions with TImode operands are included in the analysis.
24811 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24813 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24814 of an EDGE_FSM_THREAD.
24816 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24818 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24820 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24823 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24825 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24827 PR tree-optimization/65048
24828 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24829 (thread_through_all_blocks): Call valid_jump_thread_path.
24830 Remove invalid FSM jump-thread paths.
24832 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24834 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24835 (ipa_write_optimization_summaries): Likewise.
24836 * tree-streamer.h: Include data-streamer.h.
24837 (streamer_mode_table): Declare extern variable.
24838 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24839 * lto-streamer-out.c (lto_output_init_mode_table,
24840 lto_write_mode_table): New functions.
24841 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24843 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24844 (lto_create_simple_input_block): Add mode_table argument to the
24845 lto_input_block constructors.
24846 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24848 * data-streamer-in.c (string_for_index): Likewise.
24849 * ipa-inline-analysis.c (inline_read_section): Likewise.
24850 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24851 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24852 * lto-streamer-in.c (lto_read_body_or_constructor,
24853 lto_input_toplevel_asms): Likewise.
24854 (lto_input_mode_table): New function.
24855 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24856 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24857 Use bp_pack_machine_mode.
24858 * real.h (struct real_format): Add name field.
24859 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24860 (class lto_input_block): Add mode_table member.
24861 (lto_input_block::lto_input_block): Add mode_table_ argument,
24862 initialize mode_table.
24863 (struct lto_file_decl_data): Add mode_table field.
24864 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24865 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24866 unpack_ts_decl_common_value_fields,
24867 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24868 * tree-streamer.c (streamer_mode_table): New variable.
24869 * real.c (ieee_single_format, mips_single_format,
24870 motorola_single_format, spu_single_format, ieee_double_format,
24871 mips_double_format, motorola_double_format,
24872 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24873 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24874 ibm_extended_format, mips_extended_format, ieee_quad_format,
24875 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24876 decimal_single_format, decimal_double_format, decimal_quad_format,
24877 ieee_half_format, arm_half_format, real_internal_format): Add name
24879 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24881 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24884 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24885 reordering for selective scheduling.
24887 2015-02-26 Terry Guo <terry.guo@arm.com>
24889 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24890 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24891 (arm_arch_no_volatile_ce): Declare new global variable.
24892 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24893 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24894 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24895 (TARGET_NO_VOLATILE_CE): New macro.
24896 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24897 volatile memory access in IT block
24899 2015-02-25 Kai Tietz <ktietz@redhat.com>
24901 PR tree-optimization/61917
24902 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24903 that reduc_def_stmt is null.
24905 2015-02-25 Martin Liska <mliska@suse.cz>
24907 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24908 hard register variables.
24910 2015-02-25 Kai Tietz <ktietz@redhat.com>
24913 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24914 (symtab::noninterposable_alias): Likewise.
24916 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24919 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24921 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24923 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24926 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24927 as split condition; force split via '#' in output pattern.
24929 2015-02-25 Richard Biener <rguenther@suse.de>
24930 Kai Tietz <ktietz@redhat.com>
24932 PR tree-optimization/61917
24933 * tree-vect-loop.c (vectorizable_reduction): Allow
24934 vect_internal_def without reduction to exit graceful.
24936 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24939 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24940 only with NONDEBUG_INSN_P.
24942 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24944 Use variadic macros with avr-log.c.
24946 * config/avr/avr-protos.h (avr_vdump): New prototype.
24947 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24948 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24949 * config/avr/avr-log.c: Adjust comments.
24950 (avr_vdump): New function.
24951 (avr_vadump): Pass caller as 2nd argument instead of format string.
24952 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24953 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24955 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24958 * target.def (target_option_stream_in): New target hook.
24959 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24960 targetm.target_option.post_stream_in if non-NULL.
24961 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24962 * doc/tm.texi: Updated.
24963 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24965 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24967 2015-02-24 Jeff Law <law@redhat.com>
24970 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24971 of operand 0 and operand 2.
24972 (zero_cost_loop_end, loop_end): Similarly.
24974 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24976 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24979 2015-02-24 DJ Delorie <dj@redhat.com>
24981 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24982 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24983 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24984 instead of hardcoding SImode.
24986 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24988 * omp-low.c (create_omp_child_function): Tag entrypoint
24989 functions with a special attribute.
24991 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24994 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24996 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24998 PR rtl-optimization/65123
24999 * lra-remat.c (operand_to_remat): Check hard regs in insn
25002 2015-02-24 Nick Clifton <nickc@redhat.com>
25004 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
25007 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
25010 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
25011 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
25012 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
25013 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
25014 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
25015 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
25016 (BUILT_IN_GOACC_PARALLEL): Specify as
25017 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
25018 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
25019 * builtin-types.def
25020 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25021 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25022 Remove function types.
25023 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
25024 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25025 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25026 New function types.
25028 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
25030 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
25032 2015-02-24 Jakub Jelinek <jakub@redhat.com>
25034 PR tree-optimization/65170
25035 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
25036 if val[1] < 0, clear also val[2] and return 3.
25038 2015-02-24 Alan Modra <amodra@gmail.com>
25041 * config/rs6000/rs6000.c (get_memref_parts): Only return true
25042 when *base is a reg. Handle nested plus addresses. Simplify
25045 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
25047 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
25048 use natural alignment when optimizing for size.
25050 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
25053 * config/sh/sh.md (movsicc_true+3): Remove peephole.
25054 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
25055 * config/sh/sh.c (replace_n_hard_rtx): Remove.
25057 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
25060 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
25061 too big for a wide_int. Implement missing wrapping operation.
25063 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
25066 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
25067 instead of const_int 4294901760.
25069 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
25071 * config/avr/t-avr: Fix typo in comment.
25073 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
25075 * doc/rtl.texi (fma): Clarify documentation.
25077 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
25080 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
25081 over input_location.
25083 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25085 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
25086 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
25087 restrict alignments to absolute_biggest_alignment.
25088 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
25090 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
25091 * doc/tm.texi: Regenerate.
25092 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
25094 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
25097 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
25099 2015-02-20 Richard Biener <rguenther@suse.de>
25101 PR tree-optimization/65136
25102 * tree-ssa-propagate.c: Include cfgloop.h.
25103 (replace_phi_args_in): Avoid replacing loop latch edge PHI
25104 arguments with constants.
25106 2015-02-20 Jakub Jelinek <jakub@redhat.com>
25107 Martin Liska <mliska@suse.cz>
25110 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
25111 don't try to create_thunk if stdarg_p. If
25112 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
25113 redirect_callers if possible.
25114 (sem_item_optimizer::execute): Call unregister_hooks here...
25115 (ipa_icf_driver): ... instead of here.
25117 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25119 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
25120 Mark operand 0 as earlyclobber in 2nd alternative.
25121 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
25122 Write negated shift amount into QI lowpart operand 0 and use it
25124 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
25126 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25128 * cgraph.h (clone_function_name_1): Declare.
25129 * cgraphclones.c (clone_function_name_1): New function.
25130 (clone_function_name): Use it.
25131 * lto-partition.c: Include "stringpool.h".
25132 (must_not_rename, maybe_rewrite_identifier)
25133 (validize_symbol_for_target): New static functions.
25134 (privatize_symbol_name): Use must_not_rename.
25135 (promote_symbol): Call validize_symbol_for_target.
25136 (lto_promote_cross_file_statics): Likewise.
25137 (lto_promote_statics_nonwpa): Likewise.
25139 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
25142 * config/avr/avr.md (pushhi_insn): New insn.
25143 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
25145 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
25146 Jakub Jelinek <jakub@redhat.com>
25148 * tree-streamer.c (preload_common_nodes): Don't preload
25149 TI_VA_LIST* for offloading.
25150 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
25153 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
25155 * config/pa/pa.c (pa_emit_move_sequence): Always force
25156 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
25159 * config/pa/pa.c (pa_reloc_rw_mask): New function.
25160 (TARGET_ASM_RELOC_RW_MASK): Define.
25161 (pa_cannot_force_const_mem): Revert previous change.
25163 2015-02-19 Martin Jambor <mjmabor@suse.cz>
25164 Jan Hubicka <hubicka@ucw.cz>
25167 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
25168 across jump functions.
25170 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
25172 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
25174 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
25176 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
25178 2015-02-19 Richard Henderson <rth@redhat.com>
25180 PR middle-end/65074
25181 * varasm.c (default_binds_local_p_2): Don't test node->definition;
25182 test DECL_EXTERNAL independent of symtab_node.
25184 2015-02-19 Jakub Jelinek <jakub@redhat.com>
25187 * varpool.c (varpool_node::get_constructor): Return early
25188 if this->lto_file_data is NULL.
25190 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25192 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
25193 (rank_for_schedule_debug): Update.
25194 (ready_sort): Make static. Move sorting logic to ...
25195 (ready_sort_debug, ready_sort_real): New static functions.
25196 (schedule_block): Sort both debug insns and real insns in preparation
25197 for ready list trimming. Improve debug output.
25198 * sched-int.h (ready_sort): Remove global declaration.
25200 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
25202 * ipa-icf.c (sem_function::equals_private): Adjust.
25203 (sem_function::bb_dict_test): Take a vec<int> * instead of
25205 * ipa-icf.h (bb_dict_test): Likewise.
25207 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25209 PR gcov-profile/64634
25210 * tree-eh.c (frob_into_branch_around): Fix up typos
25211 in function comment.
25212 (lower_catch): Put eh_seq resulting from EH lowering of
25213 the cleanup sequence after the cleanup rather than before it.
25215 2015-02-18 Tom de Vries <tom@codesourcery.com>
25217 * common.opt (fstdarg-opt): New option.
25218 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
25219 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
25220 (@item -fstdarg-opt): New item.
25222 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
25225 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
25226 for common symbols.
25228 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25230 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
25232 (ALL_HOST_OBJS): Add mkoffload.o.
25233 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
25235 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
25237 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
25238 (compare_virtual_tables): Be smarter about skipping typeinfos;
25239 do sane output on virtual table table mismatch.
25240 (warn_odr): Be ready for forward declarations of enums;
25241 output sane info on base mismatch and virtual table mismatch.
25242 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
25243 when only one type is polymorphic.
25244 (get_odr_type): Fix hashtable corruption.
25245 (dump_odr_type): Dump mangled names.
25247 2015-02-18 Richard Biener <rguenther@suse.de>
25249 PR tree-optimization/65063
25250 * tree-predcom.c (determine_unroll_factor): Return 1 if we
25251 have replaced looparound PHIs.
25253 2015-02-18 Martin Liska <mliska@suse.cz>
25255 * lto-streamer.c (lto_streamer_init): Encapsulate
25256 streamer_check_handled_ts_structures with checking macro.
25258 2015-02-18 Jakub Jelinek <jakub@redhat.com>
25261 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
25262 section if !implicit_section.
25263 (cgraph_node::create_version_clone_with_body): Likewise.
25264 * trans-mem.c (ipa_tm_create_version): Likewise.
25266 2015-02-18 Richard Biener <rguenther@suse.de>
25268 PR tree-optimization/62217
25269 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
25272 2015-02-18 Marek Polacek <polacek@redhat.com>
25275 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
25276 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
25277 is in range [-16K, -1]. Don't issue run-time error if
25278 (ptr > ptr + offset).
25280 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
25282 * doc/install.texi (nvptx-*-none): New section.
25283 * doc/invoke.texi (Nvidia PTX Options): Likewise.
25284 * config/nvptx/nvptx.opt: Update.
25286 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
25287 (access_check): New functions, copied from
25288 config/i386/intelmic-mkoffload.c.
25289 (main): For non-installed testing, look in all COMPILER_PATHs for
25292 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
25294 2015-02-18 Andrew Pinski <apinski@cavium.com>
25295 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25297 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
25298 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
25300 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25302 * ipa-visibility.c (function_and_variable_visibility): Only
25303 check locality if node is not already local.
25304 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25305 call_for_symbol_and_aliases instead of
25306 call_for_symbol_thunks_and_aliases.
25307 (ipa_inline): Likewise.
25308 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25309 first walk aliases.
25310 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25311 call_for_symbol_and_aliases.
25312 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25313 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25314 (ipa_propagate_frequency): Update.
25315 (ipa_profile): Add opt_for_fn gueards.
25317 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25319 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
25320 * doc/invoke.texi (SH options): Document it.
25321 * config/sh/sh.c (sh_insn_length_adjustment): Check
25322 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
25324 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
25326 * common.opt (fipa-cp-alignment): New.
25327 * ipa-cp.c (ipcp_store_alignment_results): Check
25328 flag_ipa_cp_alignment.
25329 * opts.c (default_options_table): Enable -fipa-cp-alignment for
25331 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
25332 * doc/invoke.texi: Document -fipa-cp-alignment.
25334 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
25337 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
25338 to nil. Adjust comments.
25340 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
25342 * ipa-visibility.c (function_and_variable_visibility): Only
25343 check locality if node is not already local.
25344 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25345 call_for_symbol_and_aliases instead of
25346 call_for_symbol_thunks_and_aliases.
25347 (ipa_inline): Likewise.
25348 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25349 first walk aliases.
25350 * ipa.c (symbol_table::remove_unreachable_nodes): Use
25351 call_for_symbol_and_aliases.
25352 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25353 (ipa_propagate_frequency_1): Use it; use opt_for_fn
25354 (ipa_propagate_frequency): Update.
25355 (ipa_profile): Add opt_for_fn guards.
25357 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
25359 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
25360 skipping of "strange" tokens.
25362 2015-02-17 Jeff Law <law@redhat.com>
25364 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
25367 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
25369 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
25370 as forcing a HARD_DEP between instructions, thereby
25371 disallowing rewriting to break dependencies.
25373 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25375 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
25376 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
25377 variables in boundary that have no inlitalizer encoded and are
25379 * varasm.c (default_binds_local_p_2): External definitions do not
25380 count as definitions here.
25382 2015-02-16 Jeff Law <law@redhat.com>
25384 PR tree-optimization/64823
25385 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
25387 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25388 threading through blocks with PHIs, but no statements.
25389 (thread_through_normal_block): Distinguish between blocks where
25390 we did not process all the statements and blocks with no statements.
25392 2015-02-16 Jakub Jelinek <jakub@redhat.com>
25393 James Greenhalgh <james.greenhalgh@arm.com>
25396 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
25397 section if not linkonce. Fix up formatting.
25398 (cgraph_node::create_version_clone_with_body): Copy section.
25399 * trans-mem.c (ipa_tm_create_version): Likewise.
25401 2015-02-16 Richard Biener <rguenther@suse.de>
25403 PR tree-optimization/65077
25404 * tree-ssa-structalias.c (get_constraint_for_1): Handle
25405 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
25406 (find_func_aliases): Allow float values to carry pointers again.
25408 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
25410 * doc/install.texi (Specific): Reorder targets list to put
25411 aarch64 in alphabetical order. Add a link to aarch64*-*-*
25414 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25415 David Edelsohn <dje.gcc@gmail.com>
25418 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
25419 mapping class to external variable or function reference.
25420 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
25423 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
25426 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
25427 ASM_WEAKEN_DECL if defined.
25429 2015-02-16 Richard Biener <rguenther@suse.de>
25432 * varasm.c (default_file_start): For LTO produced units
25433 emit <artificial> as file directive.
25435 2015-02-16 Richard Biener <rguenther@suse.de>
25437 PR tree-optimization/63593
25438 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
25439 stmts and releasing SSA names until...
25440 (execute_pred_commoning): ... after processing all chains.
25442 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
25445 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
25446 external functions.
25448 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
25450 * doc/bugreport.texi: Adjust section titles throughout the file
25451 to use "Title Case".
25452 * doc/extend.texi: Likewise.
25453 * doc/gcov.texi: Likewise.
25454 * doc/implement-c.texi: Likewise.
25455 * doc/implement-cxx.texi: Likewise.
25456 * doc/invoke.texi: Likewise.
25457 * doc/objc.texi: Likewise.
25458 * doc/standards.texi: Likewise.
25459 * doc/trouble.texi: Likewise.
25461 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
25463 * cgraph.h (symtab_node::has_aliases_p): Simplify.
25464 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
25465 * tree.c (lookup_binfo_at_offset): Make static.
25466 (get_binfo_at_offset): Do not shadow offset; add explanatory
25469 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
25471 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
25472 for all floading point loads and stores except those using a register
25474 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
25477 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25479 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
25480 (do_estimate_growth_1): Record if any uninlinable edge was seen.
25481 (estimate_growth): Handle uninlinable edges correctly.
25482 (check_callers): New.
25483 (growth_likely_positive): Handle aliases correctly.
25485 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
25487 * ipa-chkp.c: Use iterate_direct_aliases.
25488 * symtab.c (resolution_used_from_other_file_p): Move inline.
25489 (symtab_node::create_reference): Fix formating.
25490 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25491 (symtab_node::iterate_reference): Move inline.
25492 (symtab_node::iterate_referring): Move inline.
25493 (symtab_node::iterate_direct_aliases): Move inline.
25494 (symtab_node::used_from_object_file_p_worker): Inline into ...
25495 (symtab_node::used_from_object_file_p): ... this one; move inline.
25496 (symtab_node::call_for_symbol_and_aliases): Move inline;
25497 use iterate_direct_aliases.
25498 (symtab_node::call_for_symbol_and_aliases_1): New method.
25499 (cgraph_node::call_for_symbol_and_aliases): Move inline;
25500 use iterate_direct_aliases.
25501 (cgraph_node::call_for_symbol_and_aliases_1): New method.
25502 (varpool_node::call_for_node_and_aliases): Rename to ...
25503 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
25504 use iterate_direct_aliases.
25505 (varpool_node::call_for_symbol_and_aliases_1): New method.
25506 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
25507 (ipa_discover_readonly_nonaddressable_var): Update.
25508 * ipa-devirt.c: Fix formating.
25509 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
25511 (cgraph_node::call_for_symbol_and_aliases): Move inline.
25512 (cgraph_node::call_for_symbol_and_aliases_1): New function..
25513 * cgraph.h (used_from_object_file_p_worker): Remove.
25514 (resolution_used_from_other_file_p): Move inline.
25515 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25516 (symtab_node::iterate_reference): Move inline.
25517 (symtab_node::iterate_referring): Move inline.
25518 (symtab_node::iterate_direct_aliases): Move inline.
25519 (symtab_node::used_from_object_file_p_worker): Inline into ...
25520 (symtab_node::used_from_object_file_p): Move inline.
25521 * tree-emutls.c (ipa_lower_emutls): Update.
25522 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25523 (varpool_node::call_for_node_and_aliases): Remove.
25525 2015-02-14 Jakub Jelinek <jakub@redhat.com>
25527 PR tree-optimization/62209
25528 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25529 op == range->exp, insert seq and gimplified code after labels
25530 instead of after the phi.
25532 2015-02-13 Jeff Law <law@redhat.com>
25535 Revert my change for tree-optimization/64823.
25537 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25539 PR tree-optimization/65053
25540 * tree-ssa-phiopt.c (value_replacement): When moving assign before
25541 cond, either reset VR on lhs or set it to phi result VR.
25543 2015-02-13 Jeff Law <law@redhat.com>
25545 PR tree-optimization/64823
25546 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25547 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25548 threading through blocks with PHIs, but no statements.
25549 (thread_through_normal_block): Distinguish between blocks where
25550 we did not process all the statements and blocks with no statements.
25552 PR rtl-optimization/47477
25553 * match.pd (convert (plus/minus (convert @0) (convert @1): New
25554 simplifier to narrow arithmetic.
25556 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
25559 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25560 polymorphic call info when type is not known to be preserved.
25562 2015-02-13 Maritn Jambor <mjambor@suse.cz>
25565 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25566 (inline_call): Use it.
25568 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
25570 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25571 GOMP_DEVICE_NVIDIA_PTX.
25573 2015-02-13 Jakub Jelinek <jakub@redhat.com>
25576 * stmt.c (emit_case_nodes): Use void_type_node instead of
25577 NULL_TREE as LABEL_DECL type.
25579 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
25581 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25583 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25584 symbolic references to data to be forced to constant memory on the
25587 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
25589 PR tree-optimization/65002
25590 * tree-cfg.c (pass_data_fixup_cfg): Don't update
25592 * tree-sra.c (some_callers_have_no_vuse_p): New.
25593 (ipa_early_sra): Reject functions whose callers
25594 assume function is read only.
25596 2015-02-13 Richard Biener <rguenther@suse.de>
25599 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25600 for LTO produced CUs.
25602 2015-02-13 Bin Cheng <bin.cheng@arm.com>
25604 PR tree-optimization/64705
25605 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25606 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25607 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25608 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25609 expand_simple_operations.
25611 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
25612 Richard Henderson <rth@redhat.com>
25615 * cgraphunit.c (cgraph_node::finalize_function): Set definition
25616 before notice_global_symbol.
25617 (varpool_node::finalize_decl): Likewise.
25618 * varasm.c (default_binds_local_p_2): Rename from
25619 default_binds_local_p_1, add weak_dominate argument. Use direct
25620 returns instead of assigning to local variable. Unify varpool and
25621 cgraph paths via symtab_node. Reject undef weak variables before
25622 testing visibility. Reorder tests for simplicity.
25623 (default_binds_local_p): Use default_binds_local_p_2.
25624 (default_binds_local_p_1): Likewise.
25625 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25627 (default_elf_asm_output_external): Emit visibility when specified.
25629 2015-02-13 Alan Modra <amodra@gmail.com>
25631 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25632 code setting up r11 for out-of-line fp restore.
25634 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
25636 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25637 (muser-mode): Likewise.
25639 2015-02-13 Alan Modra <amodra@gmail.com>
25641 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25642 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25644 2015-02-12 David Howells <dhowells@redhat.com>
25646 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25648 * tree-ssa-uninit.c (dump_predicates): Likewise.
25649 * opts.c (print_filtered_help): Likewise.
25651 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25653 * dwarf2out.c (output_die): Use "%s", name instead of name to
25654 avoid -Wformat-security warning.
25656 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25657 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25658 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25659 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25661 2015-02-12 Jason Merrill <jason@redhat.com>
25663 * common.opt (-flifetime-dse): New.
25665 2015-02-12 Jakub Jelinek <jakub@redhat.com>
25668 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25670 PR tree-optimization/65014
25671 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25672 use original second operand of arg0 or arg1 instead of
25673 that adjusted by STRIP_NOPS.
25675 2015-02-11 Jeff Law <law@redhat.com>
25678 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25679 that needs to be queued, just queue it for a single cycle.
25681 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
25683 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25684 bodies of thunks; comment on why.
25685 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25686 symbols are extern.
25688 2015-02-11 Richard Henderson <rth@redhat.com>
25691 * tree-eh.c (mark_reachable_handlers): Mark source and destination
25692 regions of __builtin_eh_copy_values.
25694 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25696 PR middle-end/65003
25697 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25698 ultimate alias is MEM with SYMBOL_REF satisfying
25699 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
25700 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25702 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
25704 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25705 "diagnostic-core.h".
25706 (main): Initialize progname, and call diagnostic_initialize.
25708 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25709 instead of __OPENMP_TARGET__.
25711 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25712 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25713 hard-coding PTX_ID.
25715 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
25717 * doc/sourcebuild.texi (pie_enabled): Document.
25719 2015-02-11 Martin Liska <mliska@suse.cz>
25722 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25723 a return value for call to a function that is noreturn.
25725 2015-02-11 Richard Biener <rguenther@suse.de>
25728 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25731 2015-02-11 Andrew Pinski <apinski@cavium.com>
25734 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25735 Change the first argument type to size_type_node and add another
25737 (aarch64_simd_expand_builtin): Handle the new argument to
25738 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25739 print an out when the first two arguments are not
25740 nonzero integer constants.
25741 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25742 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25744 2015-02-11 Jakub Jelinek <jakub@redhat.com>
25747 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25748 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25749 (ix86_set_current_function): Rewritten.
25750 (ix86_add_new_builtins): Temporarily clear current_target_pragma
25751 when creating builtin fndecls.
25753 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25756 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25758 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25759 have no comdat group.
25760 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25761 (lto_output_varpool_node): Always output alias info.
25762 (output_refs): Output refs of boundary aliases, too.
25763 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25764 (output_symtab): Output call eges in thunks in boundary.
25765 (get_alias_symbol): Remove.
25766 (input_node, input_varpool_node): Do not special case weakrefs.
25767 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25768 alias and thunks targets in the boundary; do not take removed symbols
25769 from their comdat groups.
25770 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25771 (cgraph_node::global_info): Remove.
25772 (cgraph_node::rtl_info): Look through aliases and thunks.
25773 * cgrpah.h (global_info): Remove.
25774 (non_local_p): Remove.
25776 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25777 Sandra Loosemore <sandra@codesourcery.com>
25779 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25780 to inline asm. List dialects in proper order.
25782 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25783 Sandra Loosemore <sandra@codesourcery.com>
25785 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25787 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
25789 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25790 modified) reference to Solaris.
25792 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
25794 * doc/extend.texi (Extended Asm): Fix typos.
25796 2015-02-10 Jakub Jelinek <jakub@redhat.com>
25799 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25801 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
25804 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25805 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25806 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25807 * config/sh/constraints.md (Ara, Add): New constraints.
25808 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25810 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25811 atomic_mem_operand_0. Don't use force_reg on the memory address.
25812 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25813 Sra constraint. Convert to insn_and_split. Add workaround for
25815 (atomic_compare_and_swap<mode>_hard): Copy to
25816 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
25817 Use atomic_mem_operand_0 predicate.
25818 (atomic_compare_and_swap<mode>_soft_gusa,
25819 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25820 AraAdd constraints.
25821 (atomic_compare_and_swap<mode>_soft_tcb,
25822 atomic_compare_and_swap<mode>_soft_imask,
25823 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25824 atomic_mem_operand_0 predicate and SraSdd constraints.
25825 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25827 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25828 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25829 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25830 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25831 force_reg on the memory address.
25832 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25833 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25834 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25835 atomic_mem_operand_1 predicate and Sra constraint.
25836 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25837 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25838 Use atomic_mem_operand_1 predicate.
25839 (atomic_<fetchop_name><mode>_hard): Copy to
25840 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25841 Use atomic_mem_operand_1 predicate.
25842 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25843 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25844 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25845 insn_and_split. Use atomic_mem_operand_1 predicate.
25846 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25847 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25848 Use atomic_mem_operand_1 predicate.
25849 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25850 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25851 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25852 in generated insn with original mem operand before emitting the insn.
25853 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25854 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25855 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25856 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25857 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25858 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25859 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25860 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25861 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25862 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25863 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25864 atomic_not_fetch<mode>_soft_tcb,
25865 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25866 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25867 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25868 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25870 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25872 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25873 and 3 earlyclobber operands.
25875 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25877 * common.opt (fstack-reuse): Mark as optimization.
25879 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25882 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25884 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25886 PR tree-optimization/64326
25887 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25889 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25891 PR gcov-profile/61889
25892 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25894 2015-02-10 Richard Biener <rguenther@suse.de>
25896 PR tree-optimization/64995
25897 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25898 value we use is final.
25899 (visit_reference_op_store): Always valueize op.
25900 (visit_use): Properly valueize vuses.
25902 2015-02-10 Richard Biener <rguenther@suse.de>
25904 PR tree-optimization/64909
25905 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25906 pass a scalar-stmt count estimate to the cost model.
25907 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25909 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25911 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25912 enabled by default together with var-tracking.
25914 2015-02-10 Nick Clifton <nickc@redhat.com>
25916 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25917 included in previous rl78 commit.
25919 2015-02-10 Richard Biener <rguenther@suse.de>
25921 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25922 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25923 return the bitpack.
25925 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25927 PR gcov-profile/61889
25928 * config.in: regenerate.
25929 * configure.in: Likewise.
25930 * configure.ac: Check for ftw.h.
25931 * gcov-tool.c: Check for ftw.h before using nftw.
25933 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25936 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25937 assert when not in lto mode.
25939 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25941 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25942 initialization/assignment of conflict_size.
25944 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25947 * ipa-cp.c (gather_caller_stats): Skip thunks.
25948 (propagate_constants_topo): Skip aliases.
25950 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25953 * config/sh/sh.c (sh_option_override): Don't change
25954 -freorder-blocks-and-partition to -freorder-blocks even when
25955 unwinding is enabled.
25956 (sh_can_follow_jump): Return false if the followee jump is
25957 a crossing jump when -freorder-blocks-and-partition is specified.
25958 * config/sh/sh.md (*jump_compact_crossing): New insn.
25960 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25961 Kaz Kojima <kkojima@gcc.gnu.org>
25964 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25965 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25966 (sh_can_redirect_branch): Rename to ...
25967 (sh_can_follow_jump): ... this. Constify argument types.
25968 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25969 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25970 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25971 * doc/tm.texi: Regenerate.
25973 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25976 * builtins.c (expand_builtin): Call targetm.expand_builtin
25977 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25979 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25982 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25984 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25987 * ipa-icf.c (set_local): New function.
25988 (sem_function::merge): Use it.
25990 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25992 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25993 (add_type_duplicate): Fix comparison of BINFOs.
25995 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25997 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25998 on getting VOID pointer.
26000 2015-02-09 Jakub Jelinek <jakub@redhat.com>
26003 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
26006 2015-02-09 Richard Biener <rguenther@suse.de>
26008 * genmatch.c (replace_id): Copy expr_type.
26010 2015-02-09 Richard Biener <rguenther@suse.de>
26012 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
26013 (streamer_write_tree_bitfields): Declare.
26014 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
26015 properly unpack padding.
26016 (unpack_value_fields): Inline ...
26017 (streamer_read_tree_bitfields): ... here.
26018 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
26019 and properly add padding bits.
26020 (streamer_pack_tree_bitfields): Fold into ...
26021 (streamer_write_tree_bitfields): ... this new function,
26022 exposing the bitpack object.
26023 * lto-streamer-out.c (lto_write_tree_1): Call
26024 streamer_write_tree_bitfields.
26026 2015-02-09 Richard Biener <rguenther@suse.de>
26028 PR tree-optimization/54000
26029 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
26030 (struct ivopts_data): Add loop_loc member.
26031 (tree_ssa_iv_optimize_loop): Dump loop location.
26032 (create_new_ivs): Likewise, also dump number of IVs generated.
26034 2015-02-09 Martin Liska <mliska@suse.cz>
26036 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
26037 just if not yet registered.
26038 (ipa_icf_generate_summary): Register callgraph hooks.
26040 2015-02-08 Andrew Pinski <apinski@cavium.com>
26042 * config/aarch64/aarch64.c (gty_dummy): Delete.
26044 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26047 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
26048 (cgraph_node::local_p): Remove thunk related FIXME.
26050 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26053 * i386.c (ix86_function_regparm): Look through aliases to see if callee
26054 is local and optimized.
26055 (ix86_function_sseregparm): Likewise; also use target's SSE math
26056 settings; error out instead of silently generating wrong code
26058 (init_cumulative_args): Look through aliases.
26060 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26063 * ipa-split.c (execute_split_functions): Split if function has aliases.
26065 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
26068 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
26069 aliases before trying to expand it.
26070 (cgraph_node::expand_thunk): Fix formating.
26072 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
26074 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
26075 (Using Assembly Language with C): Expand introduction.
26076 (Basic Asm): Copy-edit. Add more information about uses of
26078 (Extended Asm): Copy-edit. Document new escape syntax and
26080 (Global Reg Vars): Copy-edit.
26081 (Local Reg Vars): Likewise.
26083 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
26087 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
26088 (DBX_CONTIN_CHAR): Define.
26090 2015-02-06 Sebastian Pop <s.pop@samsung.com>
26091 Brian Rzycki <b.rzycki@samsung.com>
26093 PR tree-optimization/64878
26094 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
26095 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
26096 Stop recursion at loop phi nodes after having visited a loop phi node.
26098 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26100 * toplev.c (process_options): Change flag_ipa_ra before creating
26101 optimization_{default,current}_node.
26104 * cgraphunit.c (cgraph_node::expand_thunk): If
26105 restype is not is_gimple_reg_type nor the thunk_fndecl
26106 returns aggregate_value_p, set restmp to a temporary variable
26107 instead of resdecl.
26109 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
26111 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
26113 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26116 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
26117 add a general secondary reload handler for SDmode, unless we have
26118 both read/write support for SDmode.
26120 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26122 PR middle-end/64937
26123 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
26124 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
26125 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
26126 1 before, push it to abstract_vec.
26127 (dwarf2out_abstract_function): Adjust caller. Don't call
26128 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
26129 DECL_ABSTRACT_P flags for all abstract_vec elts.
26131 2015-02-06 Renlin Li <renlin.li@arm.com>
26133 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
26135 * tree-ssa.c (execute_update_addresses_taken): Likewise.
26137 2015-02-06 Jeff Law <law@redhat.com>
26140 * config/h8300/h8300.c (push): New argument "in_prologue".
26141 Pass "in_prologue" along to "F".
26142 (h8300_push_pop): Corresponding changes.
26143 (h8300_expand_prologue): Likewise.
26144 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
26146 2015-02-06 Jakub Jelinek <jakub@redhat.com>
26148 PR rtl-optimization/64957
26150 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
26151 IOR rather than for AND.
26153 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
26156 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
26157 of shift-add and (add + shift) operations. Rename local variable.
26159 2015-02-05 Jeff Law <law@redhat.com>
26162 * config/h8300/constraints.md (U): Correctly dectect
26163 "eightbit_data" memory addresses.
26164 * config/h8300/h8300.c (eightbit_constant_address_p): Also
26165 handle (const (plus (symbol_ref (x)))) where x is declared
26166 as an 8-bit data memory address.
26167 * config/h8300/h8300.md (call, call_value): Correctly detect
26168 "funcvec" functions.
26171 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
26172 24 to 28 bits for the H8/300.
26174 2015-02-06 Alan Modra <amodra@gmail.com>
26177 * config/rs6000/rs6000.c (chain_already_loaded): New function.
26178 (rs6000_call_aix): Use it.
26180 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
26182 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
26185 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
26187 * config/h8300/constraints.md ("U" constraint): Use strict
26188 variant of REG_OK_FOR_BASE_P after reload has started.
26190 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
26192 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
26193 define to zero if !TARGET_NEON.
26194 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
26196 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26197 Trevor Saunders <tsaunders@mozilla.com>
26200 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
26202 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26205 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
26206 when removing varpool nodes.
26208 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26211 * varpool.c (varpool_node::remove): Fix order of variables.
26213 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26216 * ipa-inline.c (inline_small_functions): Fix ordering issue between
26217 speculation resolution and key updates.
26219 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26221 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
26222 about not letting any speculative edges unupdated.
26224 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26227 * gcov-io.c (gcov_var): Export.
26229 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26231 PR middle-end/64922
26232 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
26233 edges that become speculative.
26235 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26237 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
26238 or DW_LANG_Fortran08.
26239 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
26241 (gen_compile_unit_die): Handle "GNU Fortran2003" and
26242 "GNU Fortran2008" language strings.
26243 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
26244 * langhooks.h (lang_GNU_Fortran): New prototype.
26245 * langhooks.c (lang_GNU_Fortran): New function.
26246 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
26249 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26251 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
26252 (RTX_OK_FOR_OLO10_P): Likewise.
26254 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
26256 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
26258 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
26260 PR middle-end/64922
26261 * gimple.c: Include gimple-ssa.h.
26262 (maybe_remove_unused_call_args): New function.
26263 * gimple.h (maybe_remove_unused_call_args): Declare.
26264 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
26265 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
26266 * gimple-fold.c (gimple_fold_call): Likewise.
26268 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
26270 PR rtl-optimization/64905
26271 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
26272 pointer alignment if it isn't needed.
26274 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26276 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
26277 cortex-a72.cortex-a53.
26278 * config/aarch64/aarch64-tune.md: Regenerate.
26279 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
26281 2015-02-04 Nick Clifton <nickc@redhat.com>
26283 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
26286 2015-02-04 Jakub Jelinek <jakub@redhat.com>
26288 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
26289 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
26290 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
26292 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
26293 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
26294 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
26295 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
26296 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
26297 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
26298 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
26299 * tree-core.h (enum built_in_function): In between
26300 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
26301 for builtins that use DEF_BUILTIN_CHKP macro.
26303 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
26306 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
26307 operands for tcc_comparison exprs. Fix typos.
26310 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
26311 of two XORs that have an intervening AND or IOR.
26314 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
26315 simplification of XOR of AND to not allocate new rtx before
26316 committing to a simplification.
26318 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26320 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
26321 manual swaps in all peepholes.
26323 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26325 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
26326 of manual swapping implementation.
26327 (aarch64_expand_vec_perm_const_1): Likewise.
26329 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
26331 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
26332 (generic_addrcost_table): Remove NAMED_PARAM.
26333 (cortexa57_addrcost_table): Likewise.
26334 (xgene1_addrcost_table): Likewise.
26335 (generic_regmove_table): Likewise.
26336 (cortexa53_regmove_table): Likewise.
26337 (xgene1_regmove_table): Likewise.
26338 (generic_vector_table): Likewise.
26339 (cortexa57_vector_table): Likewise.
26340 (xgene1_vector_table): Likewise.
26341 (generic_tunings): Likewise.
26342 (cortexa53_tunings): Likewise.
26343 (cortexa57_tunings): Likewise.
26344 (xgene1_tunings): Likewise.
26346 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
26348 * config/arm/arm-cores.def: Add cortex-a72 and
26349 cortex-a72.cortex-a53.
26350 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
26351 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
26352 * config/arm/arm-tune.md: Regenerate.
26353 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
26354 "cortex-a72.cortex-a53".
26355 * doc/invoke.texi (ARM Options/-mtune): Likewise.
26357 2015-02-04 Nick Clifton <nickc@redhat.com>
26360 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
26362 (nonimmediate_di_operand): Likewise.
26364 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
26365 prefixes of known F5 using MSP430 MCUs.
26367 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26369 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
26370 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26371 instead of __builtin_sqrt.
26373 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
26375 * varasm.c (do_assemble_alias): Follow transparent alias
26377 (default_assemble_visibility): Follow transparent alias
26378 chain for decl name.
26380 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26382 PR middle-end/62103
26383 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
26384 to compute size of referenced value in the constant case.
26386 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26388 PR rtl-optimization/64756
26389 * cse.c (invalidate_dest): New function.
26390 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
26391 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
26392 invalidate and do not record it.
26394 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
26397 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
26398 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
26399 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
26400 atomic_nand<mode>_soft_tcb): New insns.
26401 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
26402 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
26403 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
26404 Split into atomic_not_fetchsi_hard if operands[0] is unused.
26405 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
26406 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26407 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
26408 atomic_not<mode>_hard if operands[0] is unused.
26409 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
26410 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
26411 if operands[0] is unused.
26412 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
26413 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
26414 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
26415 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26417 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
26418 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26419 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
26420 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
26421 if operands[0] is unused.
26422 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
26423 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
26424 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
26425 atomic_nand_fetchsi_hard if operands[0] is unused.
26426 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
26427 atomic_nand<mode>_hard if operands[0] is unused.
26428 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
26429 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
26430 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
26431 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26432 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
26433 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
26434 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
26435 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26436 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
26437 atomic_not<mode>_hard if operands[0] is unused.
26438 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
26439 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26441 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26442 into atomic_not<mode>_soft_tcb if operands[0] is unused.
26443 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
26444 atomic_nand<mode>_hard if operands[0] is unused.
26445 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
26446 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26448 2015-02-03 David Malcolm <dmalcolm@redhat.com>
26451 * Makefile.in (GCC_OBJS): Add gcc-main.o.
26452 * gcc-main.c: New file, containing "main" taken from gcc.c.
26453 * gcc.c (do_self_spec): Free decoded_options.
26454 (class driver): Move declaration to gcc.h.
26455 (main): Move declaration and implementation to new file
26457 (driver_get_configure_time_options): New function.
26458 * gcc.h (class driver): Move this declaration here, from
26460 (driver_get_configure_time_options): New declaration.
26462 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
26464 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
26465 cross-module inlining.
26466 * cgraph.h (cgraph_node): Add flag merged.
26467 * ipa-icf.c (sem_function::merge): Maintain it.
26469 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
26471 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
26472 instead of OBJECT_P.
26474 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
26477 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
26478 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
26479 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
26480 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
26482 2015-02-03 Jakub Jelinek <jakub@redhat.com>
26485 * combine.c (reg_n_sets_max): New variable.
26486 (can_change_dest_mode, reg_nonzero_bits_for_combine,
26487 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
26488 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
26489 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
26490 (rest_of_handle_combine): Initialize reg_n_sets_max.
26492 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
26494 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
26495 if some always_inline was inlined, apply changes before inlining
26498 2015-02-02 David Malcolm <dmalcolm@redhat.com>
26501 * config/arm/arm.c (arm_option_override): Set
26502 arm_selected_arch/cpu/tune to NULL on entry.
26504 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
26505 Andrew Pinski <pinskia@gcc.gnu.org>
26506 Jakub Jelinek <jakub@gcc.gnu.org>
26509 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
26510 integer typing for small model. Use IN_RANGE.
26512 2015-02-02 Richard Biener <rguenther@suse.de>
26514 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
26515 * tree-vrp.c (vrp_valueize_1): Likewise.
26517 2015-02-02 Alan Modra <amodra@gmail.com>
26519 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26520 than mem for toc_restore.
26521 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26522 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26523 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26525 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
26528 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26529 explicit default options.
26531 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
26534 * ipa-utils.c (ipa_merge_profiles): Add release argument.
26535 * ipa-icf.c (sem_function::merge): Do not release body when merging.
26536 * ipa-utils.h (ipa_merge_profiles): Update prototype.
26538 2015-02-01 Jakub Jelinek <jakub@redhat.com>
26541 * cfgexpand.c (deep_ter_debug_map): New variable.
26542 (avoid_deep_ter_for_debug): New function.
26543 (expand_debug_expr): If TERed SSA_NAME is in
26544 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26545 instead of trying to expand SSA_NAME's def stmt.
26546 (expand_debug_locations): When expanding debug bind
26547 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26548 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26550 (pass_expand::execute): Call avoid_deep_ter_for_debug on
26551 all debug bind stmts. Delete deep_ter_debug_map after
26552 expand_debug_location if non-NULL and clear it.
26554 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
26557 * config/sh/sync.md (atomic_fetch_notsi_hard,
26558 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26559 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26560 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26561 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26562 atomic_not_fetch<mode>_soft_imask): New insns.
26564 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26566 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26567 (rank_for_schedule_debug): Split from ...
26568 (rank_for_schedule): ... this.
26569 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26570 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26572 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26574 * doc/md.texi (Machine Constraints): Alphabetize table by target.
26575 * doc/extend.texi (x86 Variable Attributes): Move section to
26576 correct alphabetization after renaming.
26577 (x86 Type Attributes): Likewise.
26578 (Target Builtins): Re-alphabetize menu.
26579 (x86 Built-in Functions): Move section to correct alphabetization
26581 (x86 transactional memory intrinsics): Likewise.
26582 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26583 and x86 Windows Options in table and menu.
26584 (x86 Options): Move section to correct alphabetization after
26586 (x86 Windows Options): Likewise.
26588 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
26590 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26591 preferred names of the architecture and its 32- and 64-bit
26593 * doc/invoke.texi: Likewise.
26594 * doc/md.texi: Likewise.
26596 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26599 * config/i386/predicates.md (address_no_seg_operand): Reject
26600 non-CONST_INT_P operands in invalid mode.
26602 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
26604 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26605 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
26606 * config/i386/predicates.md (address_no_seg_operand): Call
26607 address_operand with VOIDmode.
26608 (vsib_address_operand): Ditto.
26609 (address_mpx_no_base_operand): Ditto.
26610 (address_mpx_no_index_operand): Ditto.
26612 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26615 * lra-constraints.c (original_subreg_reg_mode): New.
26616 (simplify_operand_subreg): Try to simplify subreg of const. Use
26617 original_subreg_reg_mode for it.
26618 (swap_operands): Update original_subreg_reg_mode.
26619 (curr_insn_transform): Set up original_subreg_reg_mode.
26621 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
26624 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26626 (process_alt_operands): Use it.
26627 (curr_insn_transform): Check the optional reload pseudo class is
26630 2015-01-30 Joseph Myers <joseph@codesourcery.com>
26632 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26633 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26635 * toplev.h (init_asm_output): Update comment on use of
26636 UNKNOWN_LOCATION with fatal_error.
26637 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26638 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26639 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26640 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26641 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26642 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26643 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26644 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26645 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26646 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26647 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26648 fatal_error changed to pass input_location as first argument.
26650 2015-01-30 Martin Liska <mliska@suse.cz>
26652 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26653 in #pragma GCC diagnostic guards.
26655 2015-01-30 Richard Biener <rguenther@suse.de>
26657 PR tree-optimization/64829
26658 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26659 not add a widening conversion pattern but hand off extra
26660 widenings to callers.
26661 (vect_recog_widen_mult_pattern): Handle extra widening produced
26662 by vect_handle_widen_op_by_const.
26663 (vect_recog_widen_shift_pattern): Likewise.
26664 (vect_pattern_recog_1): Remove excess vertical space in dumping.
26665 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26666 (vect_init_vector_1): Likewise.
26667 (vect_get_vec_def_for_operand): Likewise.
26668 (vect_finish_stmt_generation): Likewise.
26669 (vectorizable_load): Likewise.
26670 (vect_analyze_stmt): Likewise.
26671 (vect_is_simple_use): Likewise.
26673 2015-01-29 Jeff Law <law@redhat.com>
26675 * combine.c (try_combine): Fix typo in comment.
26677 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
26680 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26681 (rs6000_stack_info): Add assert.
26682 (rs6000_output_savres_externs): New function, split off from...
26683 (rs6000_output_function_prologue): ... here. Do not call it for
26686 2015-01-29 Jeff Law <law@redhat.com>
26689 * combine.c (try_combine): If I0 is a memory load and I3 a store
26690 to a related address, increase the "goodness" of doing a 4-insn
26691 combination with I0-I3.
26692 (make_field_assignment): Handle SUBREGs in the ior+and case.
26694 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
26696 PR tree-optimization/64746
26697 * tree-if-conv.c (mask_exists): New function.
26698 (predicate_mem_writes): Save created mask with given size for further
26700 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26701 (ifcvt_repair_bool_pattern): Collect all statements that are root
26702 of bool pattern and use iterative algorithm to remove multiple uses
26703 of predicates, display number of required iterations.
26705 2015-01-29 Richard Biener <rguenther@suse.de>
26707 PR tree-optimization/64853
26708 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26709 stmt will get simulated again.
26710 * tree-ssa-ccp.c (valueize_op_1): Likewise.
26712 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26714 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26715 return_in_pc. Remove redundant assignments.
26716 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26717 (arm_expand_epilogue): Don't compare boolean with true in if condition.
26719 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
26721 * config/i386/i386.c (ix86_mode_after): Make static.
26723 2015-01-29 Richard Biener <rguenther@suse.de>
26725 PR tree-optimization/64844
26726 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26727 dump cost model analysis.
26728 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26729 Do not register adjusted load/store costs here.
26731 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26732 Uros Bizjak <ubizjak@gmail.com>
26734 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26735 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26736 using x86_use_pseudo_pic_reg.
26737 * config/i386/i386.c (ix86_conditional_register_usage): Remove
26738 support for fixed PIC register.
26739 (ix86_use_pseudo_pic_reg): Not static any more.
26741 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
26743 PR middle-end/64805
26744 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26745 to avoid error in cgraph node verification.
26747 2015-01-29 Marek Polacek <polacek@redhat.com>
26749 * doc/standards.texi: Reflect that the default for C is gnu11.
26751 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
26754 * reorg.c (switch_text_sections_between_p): New function.
26755 (relax_delay_slots): Call it when testing if the jump insn
26756 is removable. Use targetm.can_follow_jump when testing if
26757 the conditional branch can follow an unconditional jump.
26759 2015-01-27 Caroline Tice <cmtice@google.com>
26761 Committing VTV Cywin/Ming patch for Patrick Wollgast
26762 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26763 if -fvtable-verify=preinit/std is used.
26764 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26765 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26766 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26767 if -fvtable-verify=preinit/std is used.
26768 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26769 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26770 if -fvtable-verify=preinit/std is used.
26771 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26772 * config/i386/mingw32.h (LIB_SPEC): Likewise.
26773 * varasm.c (assemble_variable): Add code to properly set the comdat
26774 section and name for the .vtable_map_vars section in case the
26775 target is PE or COFF.
26777 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26780 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26781 make sane BB profile.
26782 (cgraph_node::expand_thunk): Make sane BB profile.
26783 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26784 * cgraph.h (init_lowered_empty_function): Update prototype.
26785 * config/i386/i386.c (make_resolver_func): Update call.
26786 * predict.c (gate): Disable branch prediction pass if
26787 profile is already there.
26789 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
26791 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26792 * opth-gen.awk: Likewise.
26793 * common.opt: Mark flag_fp_contract_mode as Optimization.
26795 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
26797 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26798 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26800 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
26803 * config/sh/predicates.md (atomic_arith_operand,
26804 atomic_logical_operand): Remove.
26805 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26806 (atomic_arith_operand_0): New predicate.
26807 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26808 Use atomic_arith_operand_0 for input values.
26809 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26810 atomic_compare_and_swap<mode>_soft_gusa,
26811 atomic_compare_and_swap<mode>_soft_tcb,
26812 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26813 arith_reg_operand instead of register_operand.
26814 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
26815 atomic_arith_operand_0 for newval input.
26816 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26817 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26818 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26819 arith_reg_operand instead of register_operand.
26820 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26821 fetchop_predicate_1, fetchop_constraint_1_llcs,
26822 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26823 fetchop_constraint_1_imask): New code iterator attributes.
26824 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26825 register_operand. Use fetchop_predicate_1.
26826 (atomic_fetch_<fetchop_name>si_hard,
26827 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26828 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26829 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26830 and arith_reg_operand instead of register_operand. Use
26831 fetchop_predicate_1, fetchop_constraint_1_gusa.
26832 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26833 and arith_reg_operand instead of register_operand. Use
26834 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26836 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26837 and arith_reg_operand instead of register_operand. Use
26838 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26840 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26841 register_operand. Use atomic_logical_operand_1.
26842 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26843 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26844 arith_reg_operand instead of register_operand.
26845 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26846 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26847 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26848 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26849 register_operand. Use fetchop_predicate_1.
26850 (atomic_<fetchop_name>_fetchsi_hard,
26851 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26852 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26853 fetchop_constraint_1_llcs.
26854 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26855 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26856 fetchop_constraint_1_gusa.
26857 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26858 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26859 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26860 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26861 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26862 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26863 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26864 register_operand. Use atomic_logical_operand_1.
26865 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26866 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26867 arith_reg_operand instead of register_operand.
26868 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26869 arith_reg_operand instead of register_operand. Use logical_operand
26870 and K08. Adjust asm sequence to allow R0 usage.
26871 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26872 arith_reg_operand instead of register_operand. Use logical_operand
26875 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26878 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26879 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26880 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26881 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26882 all bits in *val_wide.
26884 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26886 * varpool.c (tls_model_names): Fix names.
26887 (varpool_node::dump): Dump tls- prefix for tls models.
26889 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26890 Bernd Schmidt <bernds@codesourcery.com>
26891 Nathan Sidwell <nathan@codesourcery.com>
26893 * config/nvptx/mkoffload.c: New file.
26894 * config/nvptx/t-nvptx: Add build rules for it.
26895 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26896 (extra_programs): Add mkoffload.
26897 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26899 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26901 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26903 PR middle-end/64809
26904 * cfgexpand.c (reorder_operands): Skip debug gimples.
26906 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26908 PR tree-optimization/64277
26909 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26910 range info when possible to refine estimation.
26912 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26914 PR tree-optimization/64718
26915 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26916 be a 16bit unsigned integer when n->range is 16.
26917 (bswap_replace): Convert src to that type if necessary for all bswap
26918 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26919 set in pass_optimize_bswap::execute ().
26921 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26923 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26924 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26925 integer and floating point variants.
26926 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26928 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26930 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26931 for all vector modes.
26933 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26936 * doc/sourcebuild.texi (comdat_group): Document.
26938 2015-01-28 Terry Guo <terry.guo@arm.com>
26940 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26942 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26944 * toplev.c (print_version): Add param "show_global_state", and
26945 only print GGC and plugin information if it is true.
26946 (init_asm_output): Pass in "true" for the new param when calling
26948 (process_options): Likewise.
26949 (toplev::main): Likewise.
26950 * toplev.h (print_version): Add new param to decl.
26952 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26956 * tree.c (lookup_binfo_at_offset): New function.
26957 (get_binfo_at_offset): Use it.
26959 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26962 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26963 on vtable being vtable.
26965 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26967 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26968 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26969 -mhotpatch= option.
26970 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26971 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26972 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26974 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26975 (s390_hotpatch_hw_max): New name.
26976 (s390_hotpatch_trampoline_halfwords): Renamed.
26977 (s390_hotpatch_hw_before_label): New name.
26978 (get_hotpatch_attribute): Removed.
26979 (s390_hotpatch_hw_after_label): New name.
26980 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26982 (s390_attribute_table): Ditto.
26983 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26984 (s390_function_num_hotpatch_hw): New name.
26985 Remove special handling of inline functions and hotpatching.
26986 Return number of nops before and after the function label.
26987 (s390_can_inline_p): Removed.
26988 (s390_asm_output_function_label): Emit a configurable number of nops
26989 after the function label.
26990 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26991 (TARGET_CAN_INLINE_P) Removed.
26992 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26994 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26995 Jiong Wang <jiong.wang@arm.com>
26997 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26999 (cb<optab><mode>1): Likewise.
27000 * config/aarch64/iterators.md (bcond): New define_code_attr.
27002 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27004 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
27007 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27009 * config/s390/s390.c (s390_register_move_cost): Increase costs for
27012 2015-01-27 Richard Biener <rguenther@suse.de>
27014 * tree-vrp.c (update_value_range): Intersect the range with
27015 old recorded SSA name range information.
27017 2015-01-27 Nick Clifton <nickc@redhat.com>
27019 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
27020 BC, DE and HL registers directly, not via AX.
27021 When decrementing the stack pointer by a large amount, transfer SP
27022 into AX and perform the subtraction there.
27023 (rl78_expand_epilogue): Perform the inverse of the above
27026 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27028 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
27030 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27031 Yury Gribov <y.gribov@samsung.com>
27034 * ubsan.c (ubsan_source_location): Refactor code.
27035 (ubsan_type_descriptor): Update type size. Refactor code.
27037 2015-01-27 Richard Biener <rguenther@suse.de>
27039 PR tree-optimization/56273
27040 PR tree-optimization/59124
27041 PR tree-optimization/64277
27042 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
27043 from the first VRP pass.
27045 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27048 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
27049 handle the first argument in the same loop as all the other arguments.
27051 PR rtl-optimization/61058
27052 * jump.c (cleanup_barriers): Update basic block boundaries
27053 if BLOCK_FOR_INSN is non-NULL on PREV.
27055 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
27057 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
27058 bounds narrowing, already instrumented calls and calls to
27059 not instrumentable functions.
27061 2015-01-27 Jakub Jelinek <jakub@redhat.com>
27063 PR tree-optimization/64807
27064 * wide-int.cc (wi::divmod_internal): Clear
27065 b_dividend[dividend_blocks_needed].
27067 2015-01-26 DJ Delorie <dj@redhat.com>
27069 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
27070 volatile memory references.
27072 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
27075 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
27077 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
27078 shifts if it already fits into K08.
27080 2015-01-26 Jakub Jelinek <jakub@redhat.com>
27083 * ipa-inline.c (inline_small_functions): Print "unknown" even
27084 if edge->call_stmt is non-NULL, but has builtins or unknown
27087 PR middle-end/64421
27088 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
27089 with asterisk, skip the first character.
27091 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
27094 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
27097 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
27100 * config/i386/i386.md (*movdi_internal): Also check operand 0
27101 to determine TYPE_LEA operand.
27102 (*movsi_internal): Ditto.
27104 2015-01-26 Jakub Jelinek <jakub@redhat.com>
27106 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
27107 OPTION_MASK_QUAD_MEMORY_ATOMIC.
27109 2015-01-26 Renlin Li <renlin.li@arm.com>
27111 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
27113 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
27116 2015-01-26 Richard Biener <rguenther@suse.de>
27118 PR middle-end/64764
27119 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
27120 combining two BIT_AND_EXPR predicates.
27122 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
27125 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
27127 2015-01-26 Terry Guo <terry.guo@arm.com>
27129 * config/arm/arm.c (arm_file_start): Update the assignment of
27130 Tag_ABI_HardFP_use.
27132 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
27134 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
27136 config/arm/arm.md: Include the new Cortex-A57 model.
27137 (generic_sched): Don't use generic_sched when tuning for
27140 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
27141 Uros Bizjak <ubizjak@gmail.com>
27143 * config/i386/i386.c (get_builtin_code_for_version): Add
27144 support for BMI and BMI2 multiversion functions.
27146 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27148 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
27149 (extract_bit_field): Likewise.
27150 (extract_low_bits): Likewise.
27151 (expand_mult): Likewise.
27152 (expand_mult_highpart_adjust): Likewise.
27154 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
27156 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
27157 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
27158 * config/i386/i386.c (processor_model): Add
27159 M_INTEL_COREI7_BROADWELL.
27160 (arch_names_table): Add "broadwell".
27162 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
27171 * config/sh/sh-protos.h
27172 (sh_extending_set_of_reg::can_use_as_unextended_reg,
27173 sh_extending_set_of_reg::use_as_unextended_reg,
27174 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
27175 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
27176 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
27177 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
27178 (sh_treg_insns): New class.
27179 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
27180 (scope_counter): New class.
27181 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
27182 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
27183 sh_extending_set_of_reg::can_use_as_unextended_reg,
27184 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
27185 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
27186 sh_split_treg_set_expr): New functions.
27187 (addsubcosts): Handle treg_set_expr.
27188 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
27189 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
27190 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
27191 (sh_insn_operands_modified_between_p): Make non-static.
27192 * config/sh/predicates.md (zero_extend_movu_operand): Allow
27193 simple_mem_operand in addition to displacement_mem_operand.
27194 (zero_extend_operand): Don't allow zero_extend_movu_operand.
27195 (treg_set_expr, treg_set_expr_not_const01,
27196 arith_reg_or_treg_set_expr): New predicates.
27197 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
27198 arith_or_int_operand instead of logical_operand. Convert to
27199 insn_and_split. Try to optimize constant operand in splitter.
27200 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
27201 (*tstqi_t_zero): Delete.
27202 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
27203 (tstsi_t_and_not): Delete.
27204 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
27205 Convert to insn_and_split.
27206 (unnamed split, tstsi_t_zero_extract_xor,
27207 tstsi_t_zero_extract_subreg_xor_little,
27208 tstsi_t_zero_extract_subreg_xor_big): Delete.
27209 (*tstsi_t_shift_mask): New insn_and_split.
27210 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
27211 to recombine with surrounding insns when splitting.
27212 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
27213 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
27214 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
27215 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
27216 (*cbranch_div0s: Delete.
27217 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27218 Try to recombine with surrounding insns when splitting. Add operand
27220 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
27221 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
27222 *addc_r_r_msb, *addc_2r_msb): Delete.
27223 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
27225 (*addc_negreg_t): New insn_and_split.
27226 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
27227 Try to recombine with surrounding insns when splitting.
27228 Add operand order variants.
27229 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
27230 insn_and_split patterns.
27231 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
27232 surrounding insns when splitting.
27233 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
27234 (*rotcl): Likewise. Add zero_extract variant.
27235 (*ashrsi2_31): New insn_and_split.
27236 (*negc): Convert to insn_and_split. Use treg_set_expr.
27237 (*zero_extend<mode>si2_disp_mem): Update comment.
27238 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
27240 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
27241 with surrounding insns when splitting.
27242 (any_treg_expr_to_reg): New insn_and_split.
27243 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
27244 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
27245 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
27246 *zero_extract_2): New single bit zero extract patterns.
27247 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
27248 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
27249 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
27250 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
27252 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
27253 register_operand for set source.
27255 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
27257 * i386.opt (prefetch_sse): New targetsave.
27258 * i386.c (ix86_function_specific_save): Save prefetch_sse.
27259 (ix86_function_specific_restore): Restore prefetch_sse and initialize
27260 ix86_cost/ix86_tune_cost.
27262 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27264 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
27265 Support the JIT by using 0 as the language type.
27267 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
27270 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
27271 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
27272 (mark_regno_live, process_bb_lives): Pass new parameter value to
27273 make_hard_regno_born.
27275 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27277 PR rtl-optimization/63637
27278 PR rtl-optimization/60663
27279 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
27280 if elt->cost is MAX_COST for ASM_OPERANDS.
27281 (find_sets_in_insn): Fix up comment typo.
27282 (cse_insn): Don't set src_volatile for all non-volatile
27283 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
27284 or with "memory" clobber. Set elt->cost to MAX_COST
27285 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
27286 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
27288 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27290 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
27293 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
27295 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
27296 libgcc/config/i386/elf-lib.h.
27298 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27301 * gcc.c (print_configuration): Don't print a blank line at the end
27303 (run_attempt): ... but here unstead.
27305 PR middle-end/64734
27306 * omp-low.c (scan_sharing_clauses): Don't ignore
27307 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
27308 on target data/update constructs.
27310 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
27313 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
27314 (DEBUG_RELOAD): Removed define.
27315 (m32c_limit_reload_class): Enable traces with if DEBUG0.
27316 (m32c_function_arg): Added a type cast.
27317 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
27318 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
27319 * config/m32c/bitops.md (andqi3_16): Likewise.
27320 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
27321 (push_a01_l): Likewise.
27323 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27326 * main.c (main): Construct toplev instances with init_signals=true.
27327 * toplev.c (general_init): Add param "init_signals", and use it to
27328 conditionalize the calls to signal and host_hooks.extra_signals.
27329 (toplev::toplev): Add param "init_signals".
27330 (toplev::main): When invoking general_init, pass m_init_signals
27331 to control whether signal-handlers are installed.
27332 * toplev.h (toplev::toplev): Add param "init_signals".
27333 (toplev::m_init_signals): New field.
27335 2015-01-23 David Malcolm <dmalcolm@redhat.com>
27338 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
27339 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
27340 latter may be affected by the former (e.g. on i686).
27342 2015-01-23 Martin Liska <mliska@suse.cz>
27344 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
27345 false positive during profiledbootstrap.
27347 2015-01-23 Tom de Vries <tom@codesourcery.com>
27350 * lto-opts.c (lto_write_options): Output non-explicit conservative
27352 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
27353 (append_compiler_options): Pass -fopenacc through.
27355 2015-01-23 Tom de Vries <tom@codesourcery.com>
27358 * lto-opts.c (lto_write_options): Output non-explicit conservative
27360 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
27361 (append_compiler_options): Pass -fopenmp through.
27363 2015-01-23 Jakub Jelinek <jakub@redhat.com>
27366 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
27369 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
27370 * diagnostic.def (DK_ICE_NOBT): New kind.
27371 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
27372 like DK_ICE, but never print backtrace.
27373 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
27374 (internal_error_no_backtrace): New function.
27375 * gcc.c (execute): Use internal_error_no_backtrace instead of
27378 2015-01-22 Jeff Law <law@redhat.com>
27381 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
27382 improve code density for small immediate to memory case.
27383 (insv): Better handle bitfield assignments when the field is
27384 being set to all ones.
27385 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
27388 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27389 Jakub Jelinek <jakub@redhat.com>
27391 PR middle-end/64729
27392 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
27393 for !TARGET_LIBC_PROVIDES_SSP version and
27394 -fstack-protector-{all,strong,explicit} otherwise.
27395 * config/freebsd.h (LINK_SSP_SPEC): Handle
27396 -fstack-protector-{strong,explicit}.
27398 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
27399 H.J. Lu <hongjiu.lu@intel.com>
27402 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
27405 2015-01-22 Wei Mi <wmi@google.com>
27407 PR rtl-optimization/64557
27408 * dse.c (record_store): Call get_addr for mem_addr.
27409 (check_mem_read_rtx): Likewise.
27411 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
27413 * fold-const.c (const_binop): Add early return for non-tcc_binary.
27415 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
27417 * toplev.c (init_local_tick): Process the failure when read
27418 fails for random_seed.
27420 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
27421 'pretty_name' to avoid memory overflow.
27423 2015-01-22 Richard Biener <rguenther@suse.de>
27425 PR middle-end/64728
27426 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
27427 abnormal coalescing on undefined SSA names.
27429 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
27433 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
27435 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
27437 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
27439 PR middle-end/63325
27440 * fold-const.c (fold_checksum_tree): Don't include value of
27441 expr->decl_with_vis.symtab_node in the checksum.
27443 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27445 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
27447 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
27450 * gcc.c (insert_comments): New function.
27451 (try_generate_repro): Call it.
27452 (append_text): Removed.
27454 2015-01-22 Richard Biener <rguenther@suse.de>
27456 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
27457 with IL incompatible options. Properly honor user optimize
27460 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
27462 PR rtl-optimization/64682
27463 * combine.c (distribute_notes): When moving a death note for
27464 a register that is set in the new I2, make sure to put it
27465 before that new I2.
27467 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
27469 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
27470 not TARGET_DEFAULT.
27472 2015-01-21 Jakub Jelinek <jakub@redhat.com>
27475 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
27476 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
27477 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
27480 * doc/invoke.texi (-fsanitize=vptr): Document.
27482 PR rtl-optimization/62078
27483 * dse.c: Include cfgcleanup.h.
27484 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
27485 anything call purge_all_dead_edges and cleanup_cfg at the end
27488 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
27490 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
27493 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
27495 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
27498 2015-01-21 David Sherwood <david.sherwood@arm.com>
27499 Tejas Belagod <Tejas.Belagod@arm.com>
27501 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
27502 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
27503 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
27506 2015-01-21 David Sherwood <david.sherwood@arm.com>
27507 Tejas Belagod <Tejas.Belagod@arm.com>
27509 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
27510 (aarch64_reverse_mask): New decls.
27511 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
27512 (insn_count): New mode_attr.
27513 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27514 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
27515 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
27516 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
27517 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27518 (aarch64_simd_st4): New patterns.
27519 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27520 (aarch64_reverse_mask): New functions.
27522 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
27524 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27526 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27527 addressing modes for BE.
27528 (aarch64_print_operand): Add 'R' specifier.
27529 (aarch64_simd_disambiguate_copy): Delete.
27530 (aarch64_simd_emit_reg_reg_move): New function.
27531 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27532 in define_splits for structural moves.
27533 (mov<mode>): Use less restrictive predicates.
27534 (*aarch64_mov<mode>): Simplify and only allow for LE.
27535 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27537 2015-01-21 Alan Hayward <alan.hayward@arm.com>
27539 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27541 2015-01-21 Richard Henderson <rth@redhat.com>
27544 * ccmp.c (used_in_cond_stmt_p): Remove.
27545 (expand_ccmp_expr): Don't use it.
27547 2015-01-21 Nick Clifton <nickc@redhat.com>
27549 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27552 2015-01-21 Richard Biener <rguenther@suse.de>
27554 PR middle-end/64313
27555 * tree-core.h (builtin_info, builtin_info_type): Turn from
27556 an object with two arrays into an array of an object with
27557 decl and two flags, implicit_p and declared_p.
27558 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27559 set_builtin_decl, set_builtin_decl_implicit_p,
27560 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27561 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27562 * builtins.c (builtin_info): Adjust.
27563 * gimplify.c (gimplify_addr_expr): References to builtins
27564 that have been declared by the user makes them eligible for
27565 use by the compiler. Call set_builtin_decl_implicit_p on them.
27567 2015-01-20 Jeff Law <law@redhat.com>
27570 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27571 allow pc-relative addresses in operand predicates or constraints.
27573 2015-01-21 Bin Cheng <bin.cheng@arm.com>
27575 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27576 neon on aarch32 processors for stringops.
27578 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27581 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27583 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27586 * ipa-inline.c: Include lto-streamer.h
27587 (report_inline_failed_reason): Output source file differences and
27588 flags on optimization/target node mismatch.
27589 (can_inline_edge_p): Consider caller to be the outer inline function;
27590 be less restrictive about matching opimize and optimize_size attributes.
27591 (inline_account_function_p): Break out from ...
27592 (inline_small_functions): ... here.
27593 * ipa-inline-transform.c (clone_inlined_nodes): Use
27594 inline_account_function_p.
27595 (inline_call): Use optimize attribution; use inline_account_function_p.
27596 (inline_transform): Use opt_for_fn.
27597 * ipa-inline.h (inline_account_function_p): Declare.
27599 2015-01-20 Jakub Jelinek <jakub@redhat.com>
27602 * dwarf2out.c (decl_piece_node): Don't put bitsize into
27603 mode if bitsize <= 0.
27604 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27605 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27606 sizes and positions.
27608 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
27610 * config/nios2/nios2.c (nios2_asm_file_end): Implement
27611 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27613 (TARGET_ASM_FILE_END): Define.
27615 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27617 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27618 (struct tune_params): Use the enum.
27619 * arm.c (arm_*_tune): Update.
27620 (arm_option_override): Update.
27622 2015-01-20 Richard Biener <rguenther@suse.de>
27625 * ipa-reference.c (add_static_var): Inline ...
27626 (analyze_function): ... here after splitting out from ...
27627 (is_proper_for_analysis): ... this.
27629 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
27632 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27633 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27634 replace the conditional with it's true branch.
27635 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27636 (arm_lra_p): Remove.
27638 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
27640 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27642 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27644 * config/tilegx/mul-tables.c: Move symtab.h include after
27645 coretypes.h include.
27646 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27647 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27648 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27649 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27650 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27652 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
27656 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27658 PR rtl-optimization/64081
27659 * loop-iv.c (def_pred_latch_p): New function.
27660 (latch_dominating_def): Allow specific cases with non-single
27662 (iv_get_reaching_def): Likewise.
27663 (check_complex_exit_p): New function.
27664 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27665 with exits not executing on any iteration.
27667 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27670 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27671 to set branch cost.
27673 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27676 * i386.c (gate): Check flag_expensive_optimizations and
27678 (ix86_option_override_internal): Drop optimize_size condition
27679 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27680 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27681 MASK_PREFER_AVX128.
27682 (ix86_avx256_split_vector_move_misalign,
27683 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27684 * sse.md (all uses of TARGET_PREFER_AVX128): Add
27685 optimize_insn_for_speed_p check.
27687 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
27689 * config/mips/mips.h (FP_ASM_SPEC): New define.
27690 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27693 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
27696 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27697 nullptr for insn when reaching the first insn.
27698 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27699 (sh_insn_operands_modified_between_p): Add nullptr check.
27700 (sh_find_extending_set_of_reg): Fix log message. Don't accept
27701 sign extending mem load if the insn contains any UNSPEC or
27704 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27706 * params.def (inline-unit-growth): Drop to 15%.
27707 * invoke.texi (inline-unit-growth): Document change.
27709 2015-01-19 Martin Liska <mliska@suse.cz>
27712 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27713 function for second argument of OBJ_TYPE_REF.
27715 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27718 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27719 whether function is an alias.
27721 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
27723 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27726 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
27728 PR rtl-optimization/64671
27729 * lra-remat.c (operand_to_remat): Don't consider jump and call
27732 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
27735 * config/rs6000/default64.h: Include rs6000-cpus.def.
27736 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27737 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27738 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27740 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27742 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27743 pseudo-op to specify assembler dialect.
27745 2015-01-19 Martin Liska <mliska@suse.cz>
27748 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27749 Handle safe potentially removed nodes during filtering.
27751 2015-01-19 Martin Liska <mliska@suse.cz>
27753 * doc/extend.texi (no_icf): Add new attribute description.
27754 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27755 where the pass attempts to merge a function with no_icf attribute.
27757 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27760 * doc/md.texi (ARM Options): Document register constraints.
27762 2015-01-19 Jiong Wang <jiong.wang@arm.com>
27763 Andrew Pinski <apinski@cavium.com>
27766 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27767 (ashl<mode>3): Don't expand if operands[2] is not constant.
27769 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27772 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27773 Match xor-and-xor RTL pattern.
27775 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
27777 PR rtl-optimization/64081
27778 * loop-iv.c (def_pred_latch_p): New function.
27779 (latch_dominating_def): Allow specific cases with non-single
27781 (iv_get_reaching_def): Likewise.
27782 (check_complex_exit_p): New function.
27783 (check_simple_exit): Use check_complex_exit_p to allow certain cases
27784 with exits not executing on any iteration.
27786 2015-01-19 Jakub Jelinek <jakub@redhat.com>
27788 * common.opt (fgraphite): Fix a typo.
27790 2015-01-19 Felix Yang <felix.yang@huawei.com>
27792 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27794 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27795 uminp, smax_nanp, smin_nanp): New builtins.
27796 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27797 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27798 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27799 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27800 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27801 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27802 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27803 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27804 vpminnms_f32): Rewrite using builtin functions.
27806 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
27809 * omp-low.c (offload_symbol_decl): Remove variable.
27810 (get_offload_symbol_decl): Remove function.
27811 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27812 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27813 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27814 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27815 BUILT_IN_GOACC_UPDATE don't pass it at all.
27817 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27819 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27822 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27824 * ipa-chkp.c (chkp_produce_thunks): Add early param
27825 to split thunks production into two passes. Keep
27826 'always_inline' function bodies after the first pass.
27827 (pass_data_ipa_chkp_early_produce_thunks): New.
27828 (pass_ipa_chkp_early_produce_thunks): New.
27829 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27830 chkp_produce_thunks signature.
27831 (make_pass_ipa_chkp_early_produce_thunks): New.
27832 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27833 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27834 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27836 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27838 * cgraph.c (cgraph_node::dump): Dump profile flags.
27840 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27843 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27844 reg appear first in the parallel.
27846 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27848 * ipa-reference.c (set_reference_optimization_summary,
27849 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27851 (ignore_module_statics): New static var.
27852 (propagate_bits): If ipa-reference is disabled, do not look into local
27854 (analyze_function): Disable analysis when ipa_reference is disabled.
27855 (generate_summary): Do not dump when reference is disabled;
27856 collect vars accessed from functions with ipa-reference disabled.
27857 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27859 (gate): Enable for LTO.
27860 (ignore_edge_p): New function.
27861 (propagate): Skip functions w/o ipa-reference analysis.
27862 * optc-save-gen.awk: Handle optimize_debug correctly.
27863 * opth-gen.awk: Likewise.
27864 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27865 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27866 fira-share-save-slots, fira-share-spill-slots,
27867 fmodulo-sched-allow-regmoves, fpartial-inlining,
27868 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27869 ftracer, ftree-parallelize-loops, fassociative-math,
27870 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27872 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27873 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27875 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27878 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27881 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27883 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27885 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27887 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27888 Remove duplicate option listings.
27890 2015-01-18 Felix Yang <felix.yang@huawei.com>
27892 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27893 (autofdo_source_profile::get_callsite_total_count,
27894 function_instance::get_function_instance_by_decl,
27895 string_table::get_index, string_table::get_index_by_decl,
27896 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27897 Fix comment typos. Reformatting and minor code rearrangement.
27899 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27901 * config/rs6000/rs6000.md (probe_stack): Delete.
27902 (probe_stack_address): New.
27904 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27906 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27907 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27909 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27911 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27912 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27913 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27915 (rs6000_libcall_value): Use the new function.
27917 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27919 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27921 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27923 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27924 implement a more precise life analysis for it during backward scan.
27926 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27928 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27930 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27932 PR rtl-optimization/52773
27933 * calls.c (emit_library_call_value): When pushing arguments use
27934 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27935 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27936 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27938 2015-01-17 Jeff Law <law@redhat.com>
27940 PR rtl-optimization/32790
27941 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27942 not ZERO_EXTEND in SET_DESTs.
27944 2015-01-17 Alan Modra <amodra@gmail.com>
27946 * cprop.c (do_local_cprop): Revert last change.
27948 2015-01-16 DJ Delorie <dj@redhat.com>
27949 Nick Clifton <nickc@redhat.com>
27951 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27952 (addhi3_real): Likewise. Fix [HL+0] syntax.
27953 (subqi3_real): Likewise.
27954 (subhi3_real): Likewise.
27955 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27956 (cbranchhi4_real): Likewise.
27957 (cbranchhi4_real_inverted): Likewise.
27958 (cbranchsi4_real_lt): Likewise.
27959 (cbranchsi4_real_ge): Likewise.
27960 (cbranchsi4_real_ge): Likewise.
27961 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27962 (sub<mode>3_virt): Likewise.
27963 (cbranchqi4_virt): Likewise.
27964 (cbranchhi4_virt): Likewise.
27965 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27966 always use '[reg+imm]' even when imm is zero.
27967 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27968 (rl78_general_operand): New.
27969 (rl78_nonimmediate_operand): New.
27970 (rl78_nonfar_operand): Use them.
27971 (rl78_nonfar_nonimm_operand): Likewise.
27972 (rl78_stack_based_mem): Fix.
27973 * config/rl78/constraints.md (Ibqi): New.
27978 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27979 (iorqi3): Likewise.
27980 (xorqi3): Likewise.
27981 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27983 * config/rl78/constrains (Qs8): New constraint.
27984 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27985 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27986 * config/rl78/rl78-real.md (update_Z): New attribute.
27987 Update patterns to set it.
27988 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27989 shorter compare and branch sequence can be used.
27990 (cbranchhi4_real): Likewise.
27991 (cbranchhi4_real_inverted): Likewise.
27993 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27994 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27996 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27997 (rl78_option_override): Allow -mes0 only if C.
27998 (characterize_address): Support subregs of symbol_refs.
27999 (rl78_addr_space_address_mode): Move. Add __near.
28000 (rl78_far_p): Likewise.
28001 (rl78_addr_space_pointer_mode): Likewise.
28002 (rl78_as_legitimate_address): Likewise.
28003 (rl78_addr_space_subset_p): Likewise.
28004 (rl78_addr_space_convert): Likewise.
28005 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
28006 symbols with -mes0.
28007 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
28009 (rl78_alloc_physical_registers_op1): Change logic to prefer
28010 symbol[BC] addressing.
28011 (frodata_section): New.
28012 (rl78_asm_init_sections): Initialize it.
28013 (rl78_select_section): Put __far readonly symbols in .frodata.
28014 (rl78_make_type_far): New.
28015 (rl78_insert_attributes): Force all readonly symbols to be
28017 (rl78_asm_out_integer): New.
28018 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
28019 * config/rl78/rl78.opt (-mes0): New.
28021 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
28022 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
28023 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
28024 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
28025 (rl78_saddr_p): New.
28026 (rl78_output_aligned_common): New.
28027 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
28028 (rl78_handle_saddr_attribute): New.
28029 (rl78_handle_naked_attribute): New.
28030 (rl78_attribute_table): Add saddr.
28031 (rl78_print_operand_1): Don't print '!' on saddr operands.
28032 (rl78_print_operand_1): Strip encodings.
28034 (rl78_strip_name_encoding): New.
28035 (rl78_attrlist_to_encoding): New.
28036 (rl78_encode_section_info): New.
28037 (rl78_asm_init_sections): New.
28038 (rl78_select_section): New.
28039 (rl78_output_labelref): New.
28040 (rl78_output_aligned_common): New.
28041 (rl78_asm_out_integer): New.
28042 (rl78_asm_ctor_dtor): New.
28043 (rl78_asm_constructor): New.
28044 (rl78_asm_destructor): New.
28046 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
28047 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
28048 (transcode_memory_rtx): Update.
28049 (rl78_expand_epilogue): Use A_REG instead of 0.
28051 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28053 * config/arm/arm-protos.h (struct tune_params): New field
28054 sched_autopref_queue_depth.
28055 * config/arm/arm.c (sched-int.h): Include header.
28056 (arm_first_cycle_multipass_dfa_lookahead_guard,)
28057 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
28058 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
28059 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
28060 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
28061 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
28062 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
28063 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
28064 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
28065 * config/arm/t-arm (arm.o): Update.
28066 * haifa-sched.c (update_insn_after_change): Update.
28067 (rank_for_schedule): Use auto-prefetcher model, if requested.
28068 (autopref_multipass_init): New static function.
28069 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
28070 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
28071 variable for debug dumps.
28072 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
28073 (autopref_multipass_dfa_lookahead_guard): New global function that
28074 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
28075 (init_h_i_d): Update.
28076 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
28077 * sched-int.h (enum autopref_multipass_data_status): New const enum.
28078 (autopref_multipass_data_): Structure for auto-prefetcher data.
28079 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
28080 (struct _haifa_insn_data:autopref_multipass_data): New field.
28081 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
28082 (autopref_multipass_dfa_lookahead_guard): Declare.
28084 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28086 * rtlanal.c (get_base_term): Handle SCRATCH.
28088 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28090 * config/aarch64/aarch64.c
28091 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
28092 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28094 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
28095 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28097 2015-01-17 Alan Modra <amodra@gmail.com>
28099 * cprop.c (do_local_cprop): Disallow replacement of fixed
28102 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28105 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
28108 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
28110 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
28111 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
28113 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28115 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
28116 * config/arm/thumb1.md: ... Here.
28118 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28120 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
28121 TImode for TARGET_32BIT.
28123 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28125 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
28126 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
28128 (rs6000_abi_word_mode): New function.
28130 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28132 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
28133 instead of UNITS_PER_WORD to describe the size of stack slots.
28135 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28137 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
28138 as rs6000_promote_function_mode. Move comment to there.
28139 (rs6000_promote_function_mode): New function.
28141 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
28143 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
28144 -mpowerpc64 is active.
28146 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28148 PR middle-end/64353
28149 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
28152 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28154 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
28155 introduced in revision 219724.
28157 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28158 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28161 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
28162 destination is not a GP reg.
28163 (*movdi_aarch64): Likewise.
28165 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
28168 * config/rs6000/default64.h: Revert ISA change.
28170 2015-01-16 Richard Biener <rguenther@suse.de>
28172 PR middle-end/64614
28173 * tree-ssa-uninit.c: Include tree-cfg.h.
28174 (MAX_SWITCH_CASES): New define.
28175 (convert_control_dep_chain_into_preds): Handle switch statements.
28176 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
28177 (normalize_one_pred_1): Do not split bit-manipulations.
28180 2015-01-16 Richard Biener <rguenther@suse.de>
28182 PR tree-optimization/64568
28183 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
28184 complex load rewriting for TARGET_MEM_REFs.
28186 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
28188 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
28190 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
28193 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
28195 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
28196 (aarch64_lra_p): Remove.
28198 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28201 * ipa-chkp.h (chkp_instrumentable_p): New.
28202 * ipa-chkp.c: Include tree-inline.h.
28203 (chkp_instrumentable_p): New.
28204 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
28205 Fix processing of not instrumentable functions.
28206 (chkp_versioning): Use chkp_instrumentable_p. Warn about
28207 not instrumentable functions.
28208 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
28209 chkp_instrumentable_p.
28210 * tree-inline.h (copy_forbidden): New.
28211 * tree-inline.c (copy_forbidden): Not static anymore.
28213 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28215 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
28218 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28220 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
28221 type OP_OUT to OP_INOUT.
28223 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
28225 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
28226 (high x) y) to y if x and y have the same base.
28228 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
28230 * config/arm/cortex-a57.md: New.
28231 * config/aarch64/aarch64.md: Include it.
28232 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
28233 * config/aarch64/aarch64-tune.md: Regenerate.
28235 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
28238 * ccmp.c (expand_ccmp_next): New function.
28239 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
28240 and compare insn sequence.
28241 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
28242 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
28243 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
28244 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
28245 (*ccmp_ior): Changed to ccmp_ior<mode>.
28246 (cmp<mode>): New pattern.
28247 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
28249 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
28251 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
28253 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
28254 _mm256_bsrli_epi128): New.
28255 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
28257 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28259 * expmed.c (store_bit_field_using_insv): Improve warning message.
28260 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
28262 2015-01-15 Jiong Wang <jiong.wang@arm.com>
28264 PR rtl-optimization/64011
28265 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
28266 there is partial overflow.
28268 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28270 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
28272 (nds32_expand_epilogue_v3pop): Likewise.
28273 * config/nds32/nds32.md (sibcall): Define this for sibling call
28275 (sibcall_register): Likewise.
28276 (sibcall_immediate): Likewise.
28277 (sibcall_value): Likewise.
28278 (sibcall_value_register): Likewise.
28279 (sibcall_value_immediate): Likewise.
28280 (sibcall_epilogue): Likewise.
28281 (epilogue): Pass false to indicate this is not a sibcall epilogue.
28282 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
28283 (nds32_expand_epilogue_v3pop): Likewise.
28285 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28287 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
28288 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
28289 (return_internal): New.
28290 (return): Define this named pattern.
28291 (simple_return): Define this named pattern.
28292 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
28293 pattern instead of unspec_volatile_func_return.
28294 (nds32_expand_epilogue_v3pop): Likewise.
28295 (nds32_can_use_return_insn): New function.
28297 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28299 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
28300 * config/nds32/nds32.md (pop25return): New.
28301 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
28302 pop25return pattern.
28304 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28306 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
28307 -mforbid-fp-as-gp, and -mex9 options.
28309 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
28311 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
28312 remove -mgp-direct option.
28314 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28316 * doc/invoke.texi (--param early-inlining-insns): Update default value.
28317 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
28319 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28321 * ipa-inline.c (inline_small_functions): Work around hints
28324 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
28327 * doc/invoke.texi (Option Summary): Document new Nios II
28329 (Nios II Options): Likewise.
28330 * config/nios2/nios2.opt: Add -mgpopt= option support.
28331 Modify existing -mgpopt and -mno-gpopt options to be aliases.
28332 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
28333 * config/nios2/nios2.c (nios2_option_override): Adjust
28334 -mgpopt defaulting.
28335 (nios2_in_small_data_p): Return true for explicit small data
28336 sections even with -G0.
28337 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
28340 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28343 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
28345 (inline_call): Fix removal of aliases.
28347 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28349 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
28350 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
28351 * opts.c (common_handle_option): Add -fsanitize=vptr.
28352 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
28353 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
28354 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
28355 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
28356 (ubsan_expand_vptr_ifn): New prototype.
28357 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
28358 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
28359 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
28360 expand_LOOP_VECTORIZED): Make argument nameless, remove
28362 (expand_UBSAN_VPTR): New function.
28363 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
28365 (UBSAN_VPTR): New internal function.
28366 * sanopt.c (tree_map_traits): Renamed to ...
28367 (sanopt_tree_map_traits): ... this.
28368 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
28369 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
28370 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
28371 (maybe_optimize_ubsan_vptr_ifn): New function.
28372 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
28373 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
28375 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
28376 internal calls like pure functions for aliasing, even when they
28377 have other side-effects that prevent making them ECF_PURE.
28378 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
28379 (ubsan_expand_vptr_ifn): New function.
28381 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
28383 PR rtl-optimization/64110
28384 * stmt.c (parse_output_constraint): Process '^' and '$'.
28385 (parse_input_constraint): Ditto.
28386 * lra-constraints.c (process_alt_operands): Process the new
28388 * ira-costs.c (record_reg_classes): Process the new constraint
28390 * genoutput.c (indep_constraints): Add '^' and '$'.
28391 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
28392 * doc/md.texi: Add description of the new constraints.
28394 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
28395 Bernd Schmidt <bernds@codesourcery.com>
28396 Cesar Philippidis <cesar@codesourcery.com>
28397 James Norris <jnorris@codesourcery.com>
28398 Tom de Vries <tom@codesourcery.com>
28399 Ilmir Usmanov <i.usmanov@samsung.com>
28400 Dmitry Bocharnikov <dmitry.b@samsung.com>
28401 Evgeny Gavrin <e.gavrin@samsung.com>
28402 Jakub Jelinek <jakub@redhat.com>
28404 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
28405 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28406 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28407 New function types.
28408 * builtins.c: Include "gomp-constants.h".
28409 (expand_builtin_acc_on_device): New function.
28410 (expand_builtin, is_inexpensive_builtin): Handle
28411 BUILT_IN_ACC_ON_DEVICE.
28412 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
28414 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
28416 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
28417 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
28418 i386/intelmic-offload.h.
28419 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
28420 to libgomp and its dependencies.
28421 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
28422 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28423 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28424 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28425 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28426 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28427 * doc/generic.texi: Update for OpenACC changes.
28428 * doc/gimple.texi: Likewise.
28429 * doc/invoke.texi: Likewise.
28430 * doc/sourcebuild.texi: Likewise.
28431 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
28432 GF_OMP_FOR_KIND_OACC_LOOP.
28433 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
28434 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
28435 GF_OMP_TARGET_KIND_OACC_UPDATE,
28436 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28438 * gimple.c: Update comments for OpenACC changes.
28439 * gimple.def: Likewise.
28440 * gimple.h: Likewise.
28441 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
28442 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28443 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
28444 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28445 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
28447 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
28448 * gimplify.c: Include "gomp-constants.h".
28449 Update comments for OpenACC changes.
28450 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
28451 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
28452 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28453 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
28454 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28455 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28456 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
28457 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28458 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
28460 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
28461 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28462 OMP_CLAUSE_SET_MAP_KIND.
28463 (gimplify_oacc_cache): New function.
28464 (gimplify_omp_for): Handle OACC_LOOP.
28465 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
28467 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
28468 OACC_EXIT_DATA, OACC_UPDATE.
28469 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
28470 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
28471 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
28472 (gimplify_body): Consider flag_openacc next to flag_openmp.
28473 * lto-streamer-out.c: Include "gomp-constants.h".
28474 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
28475 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
28476 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
28477 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
28478 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
28479 (BUILT_IN_ACC_ON_DEVICE): New builtins.
28480 * omp-low.c: Include "gomp-constants.h".
28481 Update comments for OpenACC changes.
28482 (struct omp_context): Add reduction_map, gwv_below, gwv_this
28484 (extract_omp_for_data, use_pointer_for_field, install_var_field)
28485 (new_omp_context, delete_omp_context, scan_sharing_clauses)
28486 (create_omp_child_function, scan_omp_for, scan_omp_target)
28487 (check_omp_nesting_restrictions, lower_reduction_clauses)
28488 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
28489 Update for OpenACC changes.
28490 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
28491 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
28492 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
28493 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28494 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
28495 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
28497 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28498 Handle GF_OMP_FOR_KIND_OACC_LOOP.
28499 (expand_omp_target, lower_omp_target): Handle
28500 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28501 GF_OMP_TARGET_KIND_OACC_UPDATE,
28502 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
28503 GF_OMP_TARGET_KIND_OACC_DATA.
28504 (pass_expand_omp::execute, execute_lower_omp)
28505 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
28507 (offload_symbol_decl): New variable.
28508 (oacc_get_reduction_array_id, oacc_max_threads)
28509 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
28510 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
28511 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
28512 (oacc_gimple_assign, oacc_initialize_reduction_data)
28513 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
28515 (is_targetreg_ctx): Remove function.
28516 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
28517 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28518 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28519 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28520 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28521 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28522 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28523 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28524 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28525 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28526 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28527 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28528 * tree-core.h: Update comments for OpenACC changes.
28529 (enum omp_clause_map_kind): Remove.
28530 (struct tree_omp_clause): Change type of map_kind member from enum
28531 omp_clause_map_kind to unsigned char.
28532 * tree-inline.c: Update comments for OpenACC changes.
28533 * tree-nested.c: Likewise. Include "gomp-constants.h".
28534 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28535 (convert_tramp_reference_stmt, convert_gimple_call): Update for
28536 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
28537 OMP_CLAUSE_SET_MAP_KIND.
28538 * tree-pretty-print.c: Include "gomp-constants.h".
28539 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28540 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28541 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28542 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28543 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28544 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
28545 instead of OMP_CLAUSE_MAP_*.
28546 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28547 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28548 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28549 * tree-streamer-in.c: Include "gomp-constants.h".
28550 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28551 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
28552 * tree-streamer-out.c: Include "gomp-constants.h".
28553 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28555 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28556 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28557 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28558 * tree.c (omp_clause_num_ops): Update accordingly.
28559 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28561 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28562 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28563 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28564 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28565 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28566 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28567 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28568 (OMP_CLAUSE_SET_MAP_KIND): New macro.
28569 * varpool.c (varpool_node::get_create): Consider flag_openacc next
28571 * config/i386/intelmic-offload.h: New file.
28572 * config/nvptx/offload.h: Likewise.
28574 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28576 * explow.h: Remove duplicate contents.
28577 * dojump.h: Likewise.
28579 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
28581 * arm.c (arm_xgene_tune): Add default initializer for instruction
28584 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
28588 * ipa.c (symbol_table::remove_unreachable_nodes):
28589 Do not put abstract origins into boundary.
28591 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
28593 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28594 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28596 2015-01-15 Steve Ellcey <sellcey@mips.com>
28598 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28599 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28600 builtins.def, and chkp-builtins.def.
28602 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
28604 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28607 2015-01-15 Richard Biener <rguenther@suse.de>
28609 PR tree-optimization/61743
28610 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28611 information on PHIs for some simple cases.
28613 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28615 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28617 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28618 * config/arm/arm-cores.def (xgene1): New entry.
28619 * config/arm/arm-tables.opt: Regenerate.
28620 * config/arm/arm-tune.md: Regenerate.
28621 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28623 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28625 * tree-if-conv.c: Include hash-map.h.
28626 (aggressive_if_conv): New variable.
28627 (fold_build_cond_expr): Add simplification of non-zero condition.
28628 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28629 destination block is not always executed.
28630 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28631 than two predecessors if AGGRESSIVE_IF_CONV is true.
28632 (if_convertible_stmt_p): Fix commentary.
28633 (all_preds_critical_p): New function.
28634 (has_pred_critical_p): New function.
28635 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28636 BB can have more than two predecessors and all incoming edges can be
28638 (predicate_bbs): Skip predication for loop exit block, use build2_loc
28639 to compute predicate for true edge.
28640 (find_phi_replacement_condition): Delete this function.
28641 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28642 Allow interchange PHI arguments if EXTENDED is false.
28643 Change check that block containing reduction statement candidate
28644 is predecessor of phi-block since phi may have more than two arguments.
28645 (phi_args_hash_traits): New helper structure.
28646 (struct phi_args_hash_traits): New type.
28647 (phi_args_hash_traits::hash): New function.
28648 (phi_args_hash_traits::equal_keys): New function.
28649 (gen_phi_arg_condition): New function.
28650 (predicate_scalar_phi): Add handling of phi nodes with more than two
28651 arguments, delete COND and TRUE_BB arguments, insert body of
28652 find_phi_replacement_condition to predicate ordinary phi nodes.
28653 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28654 delete call of find_phi_replacement_condition and invoke
28655 predicate_scalar_phi with two arguments.
28656 (insert_gimplified_predicates): Add assert that non-predicated block
28657 don't have statements to insert.
28658 (ifcvt_split_critical_edges): New function.
28659 (ifcvt_split_def_stmt): Likewise.
28660 (ifcvt_walk_pattern_tree): Likewise.
28661 (stmt_is_root_of_bool_pattern): Likewise.
28662 (ifcvt_repair_bool_pattern): Likewise.
28663 (ifcvt_local_dce): Likewise.
28664 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28665 is copy of inner or outer loop force_vectorize field, invoke
28666 ifcvt_split_critical_edges, ifcvt_local_dce and
28667 ifcvt_repair_bool_pattern for aggressive if-conversion.
28669 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
28671 * config/aarch64/aarch64.md: Include xgene1.md.
28672 * config/aarch64/xgene1.md: New file.
28674 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
28676 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28677 xgene1 (APM XGene-1) core definition.
28678 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28679 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28680 * doc/invoke.texi: Document -mcpu=xgene1.
28682 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28684 * dojump.h: New header file.
28685 * explow.h: Likewise.
28686 * expr.h: Remove includes.
28687 Move expmed.c prototypes to expmed.h.
28688 Move dojump.c prototypes to dojump.h.
28689 Move alias.c prototypes to alias.h.
28690 Move explow.c prototypes to explow.h.
28691 Move calls.c prototypes to calls.h.
28692 Move emit-rtl.c prototypes to emit-rtl.h.
28693 Move varasm.c prototypes to varasm.h.
28694 Move stmt.c prototypes to stmt.h.
28695 (saved_pending_stack_adjust): Move to dojump.h.
28696 (adjust_address): Move to explow.h.
28697 (adjust_address_nv): Move to emit-rtl.h.
28698 (adjust_bitfield_address): Likewise.
28699 (adjust_bitfield_address_size): Likewise.
28700 (adjust_bitfield_address_nv): Likewise.
28701 (adjust_automodify_address_nv): Likewise.
28702 * explow.c (expr_size): Move to expr.c.
28703 (int_expr_size): Likewise.
28704 (tree_expr_size): Likewise.
28705 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28706 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28707 * genemit.c (main): Generate includes statistics.h, real.h,
28708 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28710 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28711 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28712 explow.h, emit-rtl.h, stmt.h.
28713 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28714 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28715 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28716 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28717 emit-rtl.h, varasm.h, stmt.h.
28718 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28719 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28720 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28721 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28722 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28723 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28724 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28725 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28726 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28727 tm.h tree.h varasm.h vec.h wide-int.h.
28728 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28729 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28730 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28731 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28732 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28733 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28734 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28735 * loop-iv.c: Likewise.
28736 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28737 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28738 statistics.h stmt.h tree.h varasm.h wide-int.h.
28739 * lra-constraints.c: Likewise.
28740 * lra-eliminations.c: Likewise.
28741 * lra-lives.c: Likewise.
28742 * lra-remat.c: Likewise.
28743 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28744 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28745 statistics.h stmt.h tree.h varasm.h wide-int.h.
28746 * hw-doloop.c: Likewise.
28747 * ira-color.c: Likewise.
28748 * ira-emit.c: Likewise.
28749 * loop-doloop.c: Likewise.
28750 * loop-invariant.c: Likewise.
28751 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28752 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28753 statistics.h stmt.h tree.h varasm.h wide-int.h.
28754 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28755 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28756 statistics.h stmt.h tree.h varasm.h wide-int.h.
28757 * combine-stack-adj.c: Likewise.
28760 * ifcvt.c: Likewise.
28761 * ira-costs.c: Likewise.
28762 * jump.c: Likewise.
28763 * lra-coalesce.c: Likewise.
28764 * lra-spills.c: Likewise.
28765 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28766 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28767 stmt.h varasm.h wide-int.h.
28768 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28769 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28771 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28772 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28773 statistics.h stmt.h varasm.h wide-int.h.
28774 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28775 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28776 varasm.h wide-int.h.
28777 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28778 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28779 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28780 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28781 statistics.h stmt.h.
28782 * config/tilepro/tilepro.c: Likewise.
28783 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28784 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28785 * config/pdp11/pdp11.c: Likewise.
28786 * config/xtensa/xtensa.c: Likewise.
28787 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28788 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28790 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28791 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28792 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28793 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28794 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28795 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28796 * rtl-chkp.c: Likewise.
28797 * tree-chkp-opt.c: Likewise.
28798 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28799 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28800 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28801 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28802 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28803 statistics.h stmt.h.
28804 * tree-vect-data-refs.c: Likewise.
28805 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28806 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28807 rtl.h statistics.h stmt.h varasm.h.
28808 * internal-fn.c: Likewise.
28809 * ipa-icf-gimple.c: Likewise.
28810 * lto-section-out.c: Likewise.
28811 * tree-data-ref.c: Likewise.
28812 * tree-nested.c: Likewise.
28813 * tree-outof-ssa.c: Likewise.
28814 * tree-predcom.c: Likewise.
28815 * tree-pretty-print.c: Likewise.
28816 * tree-scalar-evolution.c: Likewise.
28817 * tree-ssa-strlen.c: Likewise.
28818 * tree-vect-loop.c: Likewise.
28819 * tree-vect-patterns.c: Likewise.
28820 * tree-vect-slp.c: Likewise.
28821 * tree-vect-stmts.c: Likewise.
28822 * tsan.c: Likewise.
28823 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28824 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28826 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28827 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28828 statistics.h stmt.h varasm.h.
28829 * loop-unroll.c: Likewise.
28830 * ubsan.c: Likewise.
28831 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28832 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28834 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28835 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28836 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28837 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28838 statistics.h stmt.h.
28839 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28840 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28841 statistics.h stmt.h varasm.h.
28842 * gimple-match-head.c: Likewise.
28843 * lto-cgraph.c: Likewise.
28844 * lto-section-in.c: Likewise.
28845 * lto-streamer-in.c: Likewise.
28846 * lto-streamer-out.c: Likewise.
28847 * tree-affine.c: Likewise.
28848 * tree-cfg.c: Likewise.
28849 * tree-cfgcleanup.c: Likewise.
28850 * tree-if-conv.c: Likewise.
28851 * tree-into-ssa.c: Likewise.
28852 * tree-ssa-alias.c: Likewise.
28853 * tree-ssa-copyrename.c: Likewise.
28854 * tree-ssa-dse.c: Likewise.
28855 * tree-ssa-forwprop.c: Likewise.
28856 * tree-ssa-live.c: Likewise.
28857 * tree-ssa-math-opts.c: Likewise.
28858 * tree-ssa-pre.c: Likewise.
28859 * tree-ssa-sccvn.c: Likewise.
28860 * tree-tailcall.c: Likewise.
28861 * tree-vect-generic.c: Likewise.
28862 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28863 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28864 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28865 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28866 * varasm.c: Likewise.
28867 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28868 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28870 * init-regs.c: Likewise.
28872 * omp-low.c: Likewise.
28873 * stack-ptr-mod.c: Likewise.
28874 * tree-ssa-reassoc.c: Likewise.
28875 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28876 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28878 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28879 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28880 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28881 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28882 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28883 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28884 * tree-ssa-phiopt.c: Likewise.
28885 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28886 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28887 * config/fr30/fr30.c: Likewise.
28888 * config/frv/frv.c: Likewise.
28889 * expr.c: Likewise.
28890 * final.c: Likewise.
28891 * optabs.c: Likewise.
28892 * passes.c: Likewise.
28893 * simplify-rtx.c: Likewise.
28894 * stmt.c: Likewise.
28895 * toplev.c: Likewise.
28896 * var-tracking.c: Likewise.
28897 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28898 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28899 * lower-subreg.c: Likewise.
28900 * postreload-gcse.c: Likewise.
28902 * reginfo.c: Likewise.
28903 * store-motion.c: Likewise.
28904 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28905 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28906 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28907 fixed-value.h hashtab.h statistics.h stmt.h.
28908 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28909 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28910 * except.c: Likewise.
28911 * explow.c: Likewise.
28912 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28913 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28915 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28916 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28917 * tree-ssa-structalias.c: Likewise.
28918 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28919 fixed-value.h insn-config.h real.h statistics.h.
28920 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28921 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28922 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28923 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28924 * cfgbuild.c: Likewise.
28925 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28926 fixed-value.h real.h rtl.h statistics.h stmt.h.
28927 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28928 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28929 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28930 fixed-value.h real.h statistics.h stmt.h.
28931 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28932 fixed-value.h real.h statistics.h stmt.h varasm.h.
28933 * cprop.c: Likewise.
28934 * modulo-sched.c: Likewise.
28935 * postreload.c: Likewise.
28936 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28937 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28938 statistics.h stmt.h varasm.h.
28939 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28940 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28941 rtl.h statistics.h stmt.h varasm.h.
28942 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28943 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28945 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28946 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28948 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28949 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28951 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28952 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28953 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28954 function.h real.h statistics.h stmt.h varasm.h.
28955 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28956 insn-config.h real.h statistics.h stmt.h.
28957 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28958 statistics.h stmt.h.
28959 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28960 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28961 statistics.h stmt.h varasm.h.
28962 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28963 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28964 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28965 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28966 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28967 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28968 statistics.h stmt.h varasm.h.
28969 * ipa-polymorphic-call.c: Likewise.
28970 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28971 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28972 statistics.h stmt.h.
28973 * config/c6x/c6x.c: Likewise.
28974 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28975 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28976 statistics.h stmt.h varasm.h.
28977 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28978 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28980 * ipa-split.c: Likewise.
28981 * tree-eh.c: Likewise.
28982 * tree-ssa-dce.c: Likewise.
28983 * tree-ssa-loop-niter.c: Likewise.
28984 * tree-vrp.c: Likewise.
28985 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28986 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28988 * config/nds32/nds32-fp-as-gp.c: Likewise.
28989 * config/nds32/nds32-intrinsic.c: Likewise.
28990 * config/nds32/nds32-isr.c: Likewise.
28991 * config/nds32/nds32-md-auxiliary.c: Likewise.
28992 * config/nds32/nds32-memory-manipulation.c: Likewise.
28993 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28994 * config/nds32/nds32-predicates.c: Likewise.
28995 * config/nds32/nds32.c: Likewise.
28996 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28997 fixed-value.h hashtab.h real.h statistics.h.
28998 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28999 fixed-value.h hashtab.h real.h statistics.h stmt.h.
29000 * config/arm/arm.c: Likewise.
29001 * config/avr/avr.c: Likewise.
29002 * config/bfin/bfin.c: Likewise.
29003 * config/h8300/h8300.c: Likewise.
29004 * config/i386/i386.c: Likewise.
29005 * config/ia64/ia64.c: Likewise.
29006 * config/iq2000/iq2000.c: Likewise.
29007 * config/m32c/m32c.c: Likewise.
29008 * config/m32r/m32r.c: Likewise.
29009 * config/m68k/m68k.c: Likewise.
29010 * config/mcore/mcore.c: Likewise.
29011 * config/mep/mep.c: Likewise.
29012 * config/mips/mips.c: Likewise.
29013 * config/mn10300/mn10300.c: Likewise.
29014 * config/moxie/moxie.c: Likewise.
29015 * config/pa/pa.c: Likewise.
29016 * config/rl78/rl78.c: Likewise.
29017 * config/rx/rx.c: Likewise.
29018 * config/s390/s390.c: Likewise.
29019 * config/sh/sh.c: Likewise.
29020 * config/sparc/sparc.c: Likewise.
29021 * config/spu/spu.c: Likewise.
29022 * config/stormy16/stormy16.c: Likewise.
29023 * config/v850/v850.c: Likewise.
29024 * config/vax/vax.c: Likewise.
29025 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
29026 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29027 * config/msp430/msp430.c: Likewise.
29028 * predict.c: Likewise.
29029 * value-prof.c: Likewise.
29030 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
29031 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
29032 * config/microblaze/microblaze.c: Likewise.
29033 * config/nios2/nios2.c: Likewise.
29034 * config/rs6000/rs6000.c: Likewise.
29035 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29036 insn-config.h real.h rtl.h statistics.h stmt.h.
29037 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29038 insn-config.h real.h statistics.h stmt.h.
29039 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
29040 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
29041 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
29042 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29043 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
29044 fixed-value.h real.h statistics.h stmt.h.
29045 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
29046 fixed-value.h statistics.h stmt.h.
29047 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
29050 2015-01-15 Jakub Jelinek <jakub@redhat.com>
29052 * gengtype.c (create_user_defined_type): Workaround
29053 -Wmaybe-uninitialized false positives.
29054 * cse.c (fold_rtx): Likewise.
29055 * loop-invariant.c (gain_for_invariant): Likewise.
29057 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
29059 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
29060 set the memory attributes in all cases but clear MEM_EXPR if need be.
29062 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
29064 PR tree-optimization/64434
29065 * cfgexpand.c (reorder_operands): New function.
29066 (expand_gimple_basic_block): Insert call of reorder_operands if
29069 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
29071 * config/mips/micromips.md (*swp): Remove explicit parallel.
29072 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
29073 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
29074 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
29075 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
29076 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
29077 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
29078 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
29079 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
29080 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
29081 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
29082 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
29083 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
29084 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
29085 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
29086 (mips_wrdsp): Likewise.
29087 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
29089 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
29090 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
29091 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
29092 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
29093 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
29094 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
29095 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
29096 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
29097 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
29099 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29101 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
29102 (mips_print_operand): Support 'y' to print exact log2 in decimal
29104 * config/mips/mips.h (ISA_HAS_LSA): New define.
29105 (ISA_HAS_DLSA): Likewise.
29106 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
29107 * config/mips/predicates.md (const_immlsa_operand): New predicate.
29109 2015-01-15 Martin Liska <mliska@suse.cz>
29112 * optc-save-gen.awk: Add support for array types.
29114 2015-01-15 Richard Biener <rguenther@suse.de>
29116 PR middle-end/64365
29117 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
29118 for MEM_REF access functions with the same base can never partially
29121 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
29123 * common.opt: New option -fstack-protector-explicit.
29124 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
29125 (stack_protect_decl_phase): Handle stack_protect attribute for
29126 explicit stack protection requests.
29127 (expand_used_vars): Similarly.
29128 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
29129 * doc/extend.texi: Add documentation for "stack_protect" attribute.
29130 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
29132 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
29135 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
29137 (sh_extending_set_of_reg): New struct.
29138 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
29139 sh_remove_reg_dead_or_unused_notes): New Declarations.
29140 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
29141 sh_find_extending_set_of_reg, sh_split_tst_subregs,
29142 sh_extending_set_of_reg::use_as_extended_reg): New functions.
29143 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
29144 convert to insn_and_split and use new function sh_split_tst_subregs.
29146 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
29148 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
29150 (Optimization Options): Move -fuse-ld documentation to...
29151 (Link Options): ...here.
29153 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29155 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
29157 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
29158 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
29159 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
29160 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
29161 instead of ZR for the memory operand of LL/SC.
29162 (compare_and_swap_12, sync_add<mode>): Likewise.
29163 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
29164 (sync_new_<optab>_12, sync_nand_12): Likewise.
29165 (sync_old_nand_12, sync_new_nand_12): Likewise.
29166 (sync_sub<mode>, sync_old_add<mode>): Likewise.
29167 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
29168 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
29169 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
29170 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
29171 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
29172 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
29173 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
29174 * doc/md.texi (ZC): Update description.
29176 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
29178 * builtins.c (expand_builtin_atomic_exchange): Remove error when
29179 memory model is CONSUME.
29180 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
29181 expand_builtin_atomic_store): Change invalid memory model errors to
29183 (expand_builtin_atomic_clear): Change invalid model errors to warnings
29184 and issue warning for CONSUME.
29186 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
29188 * lto-cgraph: Update function comments for
29189 lto_symtab_encoder_encode_*.
29191 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
29193 * Makefile.in (site.exp): Do not set ENABLE_LTO.
29195 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
29197 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
29198 * lto-cgraph.c (select_what_to_stream): Remove argument, use
29199 lto_stream_offload_p instead.
29200 * lto-streamer.h (select_what_to_stream): Remove argument.
29201 * passes.c (ipa_write_summaries): Likewise.
29202 * tree-pass.h (ipa_write_summaries): Likewise.
29204 2015-01-14 Richard Biener <rguenther@suse.de>
29206 PR tree-optimization/59354
29207 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
29208 groups larger than the slp group size as having gaps.
29210 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
29212 PR middle-end/59448
29213 * builtins.c (get_memmodel): Promote consume to acquire always.
29215 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29218 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
29221 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29224 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
29226 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
29227 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
29228 AVX512VBMI, as it implies AVX512BW.
29230 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
29233 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
29234 (vec_unpacks_hi_v16sf): Ditto.
29236 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29238 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
29241 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29243 * doc/invoke.texi (mapcs): Mention deprecation.
29244 (mapcs-frame): Likewise.
29246 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
29249 * config/arm/arm.c (callee_saved_reg_p): Define.
29250 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
29251 register is callee saved instead of !call_used_regs[reg].
29252 (thumb1_compute_save_reg_mask): Likewise.
29254 2015-01-14 Hale Wang <hale.wang@arm.com>
29256 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
29259 2015-01-14 Richard Biener <rguenther@suse.de>
29262 * tree-inline.c (insert_debug_decl_map): Check destination
29263 function MAY_HAVE_DEBUG_STMTS.
29264 (insert_init_debug_bind): Likewise.
29265 (insert_init_stmt): Remove redundant check.
29266 (remap_gimple_stmt): Drop debug stmts if the destination
29267 function has var-tracking assignments disabled.
29269 2015-01-14 Martin Liska <mliska@suse.cz>
29271 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
29272 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
29274 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29277 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
29278 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
29280 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
29282 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
29283 level from an ARCH; do not inject the default.
29284 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
29285 MIPS_ISA_LEVEL_SPEC.
29286 (MIPS_ISA_NAN2008_SPEC): Update comment.
29287 (BASE_DRIVER_SELF_SPECS): Likewise.
29288 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
29289 MIPS_DEFAULT_ISA_LEVEL_SPEC.
29290 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
29291 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
29292 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
29294 2015-01-14 Richard Biener <rguenther@suse.de>
29296 PR tree-optimization/64493
29297 PR tree-optimization/64495
29298 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
29299 assign the proper vectorized PHI to the inner loop exit PHIs.
29301 2015-01-14 Joey Ye <joey.ye@arm.com>
29303 * config/arm/arm.c (arm_compute_save_reg_mask):
29304 Do not save lr in case of tail call.
29305 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
29307 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
29309 * tree-vrp.c (check_array_ref): Emit more warnings
29310 for warn_array_bounds >= 2.
29311 * common.opt: New option -Warray-bounds=.
29312 * doc/invoke.texi: Document -Warray-bounds=.
29314 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
29316 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
29317 (mforbid-fp-as-gp): Remove.
29319 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
29320 (nds32_symbol_load_store_p): Remove.
29321 (nds32_fp_as_gp_check_available): Clean up implementation.
29322 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
29324 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
29325 fp-as-gp and ex9 cases.
29327 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29329 * tree-profile.c (init_ic_make_global_vars): Drop workaround
29330 for bintuils bug 14342.
29331 (init_ic_make_global_vars): Likewise.
29332 (gimple_init_edge_profiler): Likewise.
29333 (gimple_gen_ic_func_profiler): Likewise.
29335 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29337 * ipa-inline.c (inline_small_functions): Swap the operands in
29340 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29343 * ipa-inline-analysis.c (node_growth_cache): Remove.
29344 (initialize_growth_caches): Do not initialize it.
29345 (free_growth_caches): Do not free it.
29346 (do_estimate_growth): Rename to ...
29347 (estimate_growth): ... this one; drop growth cache code.
29348 (growth_likely_positive): Always go the heuristics way.
29349 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
29350 (reset_edge_caches): Do not reset node growth.
29351 (heap_edge_removal_hook): Do not maintain cache.
29352 (inline_small_functions): Likewise; strenghten sanity check.
29353 (ipa_inline): Do not maintain caches.
29354 * ipa-inline.h (node_growth_cache): Remove.
29355 (do_estimate_growth): Remove to ...
29356 (estimate_growth): this one; remove inline version.
29357 (reset_node_growth_cache): Remove.
29359 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
29362 * ipa-inline.c (inline_small_functions): Update callee keys after
29363 resolving speculation
29364 (inline_small_functions): Always check monotonicity of the queue.
29366 2015-01-13 Marek Polacek <polacek@redhat.com>
29368 PR middle-end/64391
29369 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
29371 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29373 PR rtl-optimization/64286
29374 * ree.c (combine_reaching_defs): Move part of comment earlier,
29375 remove !SCALAR_INT_MODE_P check.
29376 (add_removable_extension): Don't add vector mode
29377 extensions if all uses of the source register aren't the same
29380 2015-01-13 Renlin Li <renlin.li@arm.com>
29382 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
29383 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
29385 2015-01-13 Martin Liska <mliska@suse.cz>
29387 * ipa-icf.c (sem_function::equals_private): Call new functions
29388 cl_target_option_print_diff and cl_optimization_print_diff.
29389 * optc-save-gen.awk (cl_target_option_print_diff): New function.
29390 (cl_optimization_print_diff): Likewise.
29391 * opth-gen.awk: Likewise.
29393 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
29395 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
29396 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
29397 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
29398 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
29399 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
29400 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
29402 2015-01-13 Andrew Pinski <apinski@cavium.com>
29404 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
29405 instead of src mode.
29407 2015-01-13 Richard Biener <rguenther@suse.de>
29410 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
29413 2015-01-13 Andrew Pinski <apinski@cavium.com>
29415 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
29417 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
29419 2015-01-13 Jakub Jelinek <jakub@redhat.com>
29421 PR middle-end/63974
29422 * cfgexpand.c (expand_computed_goto): Don't call
29423 convert_memory_address here.
29425 2015-01-13 Richard Biener <rguenther@suse.de>
29427 PR tree-optimization/64406
29428 * tree-loop-distibution.c (pass_loop_distribution::execute):
29429 Reset the SCEV hashtable if we distributed anything.
29431 2015-01-13 Richard Biener <rguenther@suse.de>
29433 PR tree-optimization/64404
29434 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
29435 SLP types for CSEd loads.
29437 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29439 PR tree-optimization/64436
29440 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
29441 merge of two symbolic numbers for a bitwise OR to ...
29442 (perform_symbolic_merge): This. Also fix computation of the range and
29443 end of the symbolic number corresponding to the result of a bitwise OR.
29445 2015-01-13 Richard Biener <rguenther@suse.de>
29447 PR tree-optimization/64568
29448 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
29449 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
29451 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29453 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
29454 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
29456 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29458 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
29459 target-specific symbol_ref flag.
29460 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
29461 resides in rodata section.
29462 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
29463 (nds32_encode_section_info): New function.
29465 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29467 * config/nds32/nds32.md (call): Use pseudo instruction bal which
29468 clobbers TA_REGNUM if large code model is specified.
29469 (call_register): Likewise.
29470 (call_immediate): Likewise.
29471 (call_value): Likewise.
29472 (call_value_register): Likewise.
29473 (call_value_immediate): Likewise.
29475 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29477 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
29478 (TARGET_CMODEL_MEDIUM): New macro.
29479 (TARGET_CMODEL_LARGE): New macro.
29480 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
29481 code model setting in assembly code.
29483 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29485 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29486 Remove MASK_GP_DIRECT flag.
29487 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
29488 one of the multilib default options.
29489 * config/nds32/nds32.opt (mgp-direct): Remove.
29490 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
29491 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
29493 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
29495 * config/nds32/nds32.opt (mcmodel): Add new option.
29496 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
29497 to describe code model.
29499 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
29502 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
29504 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
29506 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
29507 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29508 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
29509 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
29510 __builtin_sh_set_fpscr.
29512 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29514 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
29515 after a funtion name just to indicate it is a function.
29516 ([-fsanitize-undefined-trap-on-error]): Likewise.
29517 ([-fdbg-cnt=]): Likewise.
29518 ([-mmemcpy]): Likewise.
29519 ([-mflush-func]): Likewise.
29520 ([-msynci]): Likewise.
29522 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
29524 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29527 2015-01-12 Jakub Jelinek <jakub@redhat.com>
29529 PR tree-optimization/64563
29530 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29531 instead of != VR_VARYING.
29534 * config/i386/i386.c (ix86_expand_prologue): Add
29535 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29537 PR tree-optimization/64454
29538 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29539 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29540 for signed or [0, op1 - 1] for unsigned modulo.
29541 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29542 even if op1 does not satisfy integer_pow2p.
29545 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29547 2015-01-12 Jeff Law <law@redhat.com>
29550 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29551 (trunchiqi2, truncsihi2): Similarly.
29553 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29554 rather than calling F.
29556 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
29558 * tsan.c (instrument_expr): Use force_gimple_operand.
29559 Use may_be_nonaddressable_p instead of is_gimple_addressable.
29561 2015-01-12 Richard Biener <rguenther@suse.de>
29563 PR tree-optimization/64530
29564 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29567 2015-01-12 Richard Biener <rguenther@suse.de>
29569 PR middle-end/64357
29570 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29573 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29575 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29576 Cortex-A17 tuning parameters.
29577 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29579 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29581 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29582 * config/arm/arm.c (arm_macro_fusion_p): New function.
29583 (arm_macro_fusion_pair_p): Likewise.
29584 (TARGET_SCHED_MACRO_FUSION_P): Define.
29585 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29586 (ARM_FUSE_NOTHING): Likewise.
29587 (ARM_FUSE_MOVW_MOVT): Likewise.
29588 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29589 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29590 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29591 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29592 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29593 arm_cortex_a5_tune): Specify fuseable_ops value.
29595 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
29598 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29599 test for PIE with copy reloc.
29600 * configure: Regenerated.
29602 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29604 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29606 (arm_tls_descseq_addr): Likewise.
29607 (arm_gen_movmemqi): Likewise.
29608 (arm_expand_epilogue_apcs_frame): Likewise.
29609 (arm_expand_epilogue): Likewise.
29610 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
29613 2015-01-12 Martin Liska <mliska@suse.cz>
29616 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29617 volatility for correct operands.
29619 2015-01-12 Martin Liska <mliska@suse.cz>
29621 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29622 indication that a function is not leaf.
29623 (sem_function::compare_polymorphic_p): Likewise.
29625 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29627 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29628 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29629 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29630 fold-const.h, tree-check.h.
29632 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29636 * ipa-inline.c (compute_uninlined_call_time,
29637 compute_inlined_call_time): Use counts for extra precision when
29639 (big_speedup_p): Fix formating.
29640 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29641 (relative_time_benefit): Remove.
29642 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29643 merge guessed and read profile paths.
29644 (inline_small_functions): Count only !optimize_size functions into
29645 initial size; be more lax about sanity check when profile is used;
29646 be sure to update inlined function profile when profile is read.
29648 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
29651 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29652 cost when edge becomes direct.
29653 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29654 is resolved or when introducing new speculation.
29656 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
29660 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29661 '||' to fix typo issue.
29663 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29664 accept and return NULL.
29666 2015-01-12 Martin Liska <mliska@suse.cz>
29668 * cgraph.c (cgraph_edge::remove_callee): Move function to header
29669 file for being inlined.
29670 (cgraph_set_edge_callee): Delete.
29671 (cgraph_edge::redirect_callee): Move function to header file
29673 (cgraph_edge::make_direct): Use new function.
29674 (cgraph_edge::dump_edge_flags): New function created from
29675 static dump_edge_flags function.
29676 (cgraph_node::dump): Use new function.
29677 (cgraph_edge::verify_count_and_frequency): New function created
29678 from verify_edge_count_and_frequency.
29679 (cgraph_edge::verify_corresponds_to_fndecl): New function created
29680 from verify_edge_corresponds_to_fndecl.
29681 (verify_edge_corresponds_to_fndecl): Delete.
29682 (cgraph_node::verify_node): Use new function.
29683 * cgraph.h (cgraph_edge::set_callee): New function.
29684 (cgraph_edge::dump_edge_flags): Likewise.
29685 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29687 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
29689 * ipa-utils.c (estimate_function_body_sizes): Do not
29690 free node params when called late with early=true.
29692 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
29694 * doc/md.texi (Instruction Patterns): Rewrite text for
29696 (Example): Likewise.
29698 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
29700 * doc/invoke.texi (Option Summary): Break long lines.
29701 [(-fdiagnostics-color)]: Put long literal in @smallexample
29703 [(-fsanitize-recover)]: Likewise.
29704 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29705 [(-ffast-math)]: Likewise.
29706 [(--param max-inline-insns-recursive)]: Likewise.
29707 [(--param max-inline-recursive-depth)]: Likewise.
29708 [(-mno-text-section-literals)]: Likewise.
29710 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
29712 * doc/install.texi: Update for libgomp being renamed from "GNU
29713 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29715 * doc/sourcebuild.texi: Likewise.
29717 2015-01-10 Anthony Green <green@moxielogic.com>
29719 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29720 mul.x availability for moxiebox configuration.
29722 2015-01-09 Anthony Green <green@moxielogic.com>
29724 * config/moxie/moxie.md: Tabify assembly output.
29726 2015-01-09 Anthony Green <green@moxielogic.com>
29728 * config/moxie/moxie.md (CC_REG): Correct register definition.
29730 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
29732 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29733 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
29736 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29738 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29740 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
29741 Jakub Jelinek <jakub@redhat.com>
29743 PR middle-end/64412
29744 * lto-streamer.h (lto_stream_offload_p): New declaration.
29745 * lto-streamer.c (lto_stream_offload_p): New variable.
29746 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29747 at the same time as section_name_prefix.
29748 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29749 if lto_stream_offload_p.
29750 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29751 stream TREE_TARGET_OPTION if lto_stream_offload_p.
29752 (write_ts_function_decl_tree_pointers): Don't
29753 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29754 * tree-streamer-in.c (unpack_value_fields): Don't stream
29755 TREE_TARGET_OPTION in if ACCEL_COMPILER.
29756 (lto_input_ts_function_decl_tree_pointers): Don't stream
29757 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29758 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29759 instead of section_name_prefix string comparisons.
29761 2015-01-09 Jakub Jelinek <jakub@redhat.com>
29763 PR rtl-optimization/64536
29764 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29767 2015-01-09 Michael Collison <michael.collison@linaro.org>
29769 PR tree-optimization/64322
29770 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29771 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29773 2015-01-09 Tom de Vries <tom@codesourcery.com>
29775 PR rtl-optimization/64539
29776 * regcprop.c (kill_clobbered_values): Factor out of ...
29777 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
29778 instead of note_stores with kill_clobbered_value.
29780 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29782 * ginclude/unwind-arm-common.h: Revert previous commit.
29784 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
29786 * config.gcc (arm*-*-freebsd*): New configuration.
29787 * config/arm/freebsd.h: New file.
29788 * config.host: Add extra components for arm*-*-freebsd*.
29789 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29790 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29792 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29794 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29796 * config/rs6000/t-rtems: Add e6500 multilibs.
29798 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29800 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29803 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29805 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29806 MULTILIB_EXCEPTIONS.
29808 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29810 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29811 MULTILIB_EXCEPTIONS.
29813 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29815 * config/arm/t-rtems-eabi: Rename to...
29816 * config/arm/t-rtems: ...this.
29817 * config/arm/rtems-eabi.h: Rename to...
29818 * config/arm/rtems.h: ...this.
29819 * config.gcc (arm*-*-rtems*): Reflect changes above.
29821 2015-01-09 Richard Biener <rguenther@suse.de>
29823 PR tree-optimization/64410
29824 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29826 (execute_update_addresses_taken): Deal with that.
29827 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29828 loads/stores for complex variables.
29830 2015-01-09 Martin Liska <mliska@suse.cz>
29832 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29834 (func_checker::compare_memory_operand): New function.
29835 (func_checker::compare_operand): Split case to newly
29837 (func_checker::compare_cst_or_decl): New function.
29838 (func_checker::compare_gimple_call): Identify
29840 (func_checker::compare_gimple_assign): Likewise.
29841 * ipa-icf-gimple.h: New function.
29843 2015-01-09 Martin Liska <mliska@suse.cz>
29846 * sreal.c (sreal::dump): Change unsigned format to signed for
29848 (sreal::to_double): Replace exp2 with scalbln.
29850 2015-01-09 Martin Liska <mliska@suse.cz>
29852 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29853 * ipa-icf.c (sem_function::equals_private): Add support for target and
29854 (sem_item_optimizer::merge_classes): Remove redundant function
29855 optimization flags comparison.
29856 * tree.h (target_opts_for_fn): New function.
29858 2015-01-09 Tom de Vries <tom@codesourcery.com>
29860 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29862 2015-01-09 Kito Cheng <kito@0xlab.org>
29864 PR rtl-optimization/64348
29865 * lra-constraints.c (split_reg): Fix caller-save store/restore
29866 instruction generation.
29868 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29870 PR gcov-profile/61790
29871 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29872 long long. Fallback to int64_t if host doesn't have long long and
29873 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29875 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29877 PR tree-optimization/63989
29878 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29879 from 1000 to 10000.
29880 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29881 (get_stridx): If we don't have a record for certain SSA_NAME,
29882 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29883 constant offset, call get_stridx_plus_constant.
29884 (get_stridx_plus_constant): New function.
29885 (zero_length_string): Don't use get_stridx here.
29888 PR middle-end/64388
29889 * dse.c (struct insn_info): Mention frame_read set also
29890 before reload for tail calls on some targets.
29891 (scan_insn): Revert 2014-12-22 change. Set frame_read
29892 also before reload for tail calls if
29893 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29894 instead of add_non_frame_wild_read for non-const/memset
29895 tail calls after reload.
29897 2015-01-08 Jason Merrill <jason@redhat.com>
29899 * ubsan.c (do_ubsan_in_current_function): New.
29900 (pass_ubsan::gate): Use it.
29901 * ubsan.h: Declare it.
29902 * convert.c (convert_to_integer): Use it.
29904 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29907 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29908 compare_code when it is unconditionally overwritten afterwards.
29909 Use ix86_reverse_condition instead of reverse_condition. Don't
29910 change code if *reverse_condition* returned UNKNOWN and don't
29911 swap ct/cf and negate diff in that case.
29913 2015-01-08 Mike Stump <mikestump@comcast.net>
29915 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29916 (pass_tsan_O0::gate): Likewise.
29917 * extend.texi (Function Attributes): Add no_sanitize_thread
29920 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29922 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29923 for registering builtins.
29924 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29925 add -fopenmp to the argv_obstack used when invoking
29926 compile_for_target.
29928 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29929 add "-m32" or "-m64" to argv_obstack.
29930 (generate_host_descr_file): Likewise, when invoking host_compiler.
29931 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29934 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29936 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29939 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29942 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29943 constant load if constant operand fits into I08.
29945 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29948 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29949 and TREE_THIS_VOLATILE for MEM_REFs.
29950 (build5_stat): Fix up initialization of TREE_READONLY and
29951 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29953 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29956 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29957 of r for the second alternative of the destination operand.
29959 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29962 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29964 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29966 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29968 ([-fivar-visibility], [-fvisibility]): Likewise.
29970 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29972 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29973 the file where @code, @command, etc is more appropriate.
29975 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29977 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29978 of -mrecip= documentation.
29980 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29983 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29984 correct reload handler if -m32 -mpowerpc64 is used.
29986 2015-01-06 Tom de Vries <tom@codesourcery.com>
29988 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29990 2015-01-08 Christian Bruel <christian.bruel@st.com>
29993 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29995 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29997 PR tree-optimization/63259
29998 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29999 if optab exists for 16bit byteswap.
30001 2015-01-06 Jakub Jelinek <jakub@redhat.com>
30003 * opts.c (common_handle_option): Add support for
30004 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
30005 * doc/invoke.texi: Document -fno-sanitize=all,
30006 -f{,no-}sanitize-recover=all. Document that
30007 -fsanitize=float-cast-overflow is not enabled
30008 by -fsanitize=undefined. Fix up documentation
30009 of -f{,no-}sanitize-recover.
30011 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
30013 * config.gcc: Add Visium support.
30014 * configure.ac: Likewise.
30015 * configure: Regenerate.
30016 * doc/extend.texi (interrupt attribute): Add Visium.
30017 * doc/invoke.texi: Document Visium options.
30018 * doc/install.texi: Document Visium target.
30019 * doc/md.texi: Document Visium constraints.
30020 * common/config/visium: New directory.
30021 * config/visium: Likewise.
30023 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
30025 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
30026 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
30028 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
30030 * combine.c (combine_validate_cost): Do not count the cost of a
30031 split I2 twice. Do not display it twice in the dump, either.
30033 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
30035 Revert parts of r219199.
30036 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
30038 ([-Wtraditional]): Restore markup on <limits.h>.
30040 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
30043 * doc/invoke.texi: Document -Wsuggest-override.
30045 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
30047 PR rtl-optimization/64287
30048 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
30049 (process_options): Disable flag_ipa_ra if profiling.
30051 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
30053 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
30055 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
30057 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
30058 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
30059 put under #if TARGET_LOOPS guard.
30061 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
30063 * config/i386/i386.c (output_387_binary_op): Use std::swap.
30065 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
30067 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
30068 * rtl.h (refers_to_regno_p): Add overload.
30070 * bt-load.c: Likewise.
30071 * combine.c: Likewise.
30072 * df-scan.c: Likewise.
30073 * sched-deps.c: Likewise.
30074 * config/s390/s390.c: Likewise.
30075 * config/m32r/m32r.c: Likewise.
30076 * config/rs6000/spe.md: Likewise.
30077 * config/rs6000/rs6000.c: Likewise.
30078 * config/pa/pa.c: Likewise.
30079 * config/stormy16/stormy16.c: Likewise.
30080 * config/cris/cris.c: Likewise.
30081 * config/arc/arc.md: Likewise.
30082 * config/arc/arc.c: Likewise.
30083 * config/sh/sh.md: Likewise.
30084 * config/sh/sh.c: Likewise.
30085 * config/frv/frv.c: Likewise.
30087 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30090 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
30091 call as cleanup of the whole body.
30092 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
30093 * tsan.c (replace_func_exit): New function.
30094 (instrument_func_exit): Moved earlier.
30095 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
30096 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
30098 (tsan_pass): Don't call instrument_func_exit.
30099 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
30100 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
30104 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
30105 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
30106 it to libubsan handler instead of EXPR. Fold comparisons earlier,
30107 if the result is integer_zerop, return NULL_TREE.
30108 * convert.c (convert_to_integer): Pass expr as ARG.
30110 PR tree-optimization/64465
30111 * tree-inline.c (redirect_all_calls): During inlining
30112 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
30113 changed the stmt to a non-throwing call.
30115 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
30117 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
30118 etc markup throughout the file.
30120 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
30122 Enable experimental TSAN support for Ada.
30123 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
30125 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30127 PR tree-optimization/64494
30128 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
30129 clear SSA_NAME_ANTI_RANGE_P flag.
30131 2015-01-05 Marek Polacek <polacek@redhat.com>
30133 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
30135 2015-01-05 Jakub Jelinek <jakub@redhat.com>
30137 Update copyright years.
30139 * gcc.c (process_command): Update copyright notice dates.
30140 * gcov-dump.c: Ditto.
30142 * doc/cpp.texi: Bump @copying's copyright year.
30143 * doc/cppinternals.texi: Ditto.
30144 * doc/gcc.texi: Ditto.
30145 * doc/gccint.texi: Ditto.
30146 * doc/gcov.texi: Ditto.
30147 * doc/install.texi: Ditto.
30148 * doc/invoke.texi: Ditto.
30150 * auto-profile.c, auto-profile.h: Fix up Copyright line.
30152 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
30154 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
30156 ([-fvtable-verify], [-fvtv-debug]): Likewise.
30157 ([-Wabi]): Likewise.
30158 ([-fmessage-length]): Likewise.
30159 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
30160 ([-Wno-discarded-qualifiers]): Likewise.
30161 ([-Wnodiscarded-array-qualifiers]): Likewise.
30162 ([-Wno-virtual-move-assign]): Likewise.
30163 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
30164 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
30165 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
30166 ([-fsanitize-undefined-trap-on-error]): Likewise.
30167 ([-floop-interchange]): Likewise.
30168 ([-ftree-coalesce-inlined-vars]): Likewise.
30169 ([-fvect-cost-model]): Likewise.
30170 ([-flto]): Likewise.
30171 ([--param]): Likewise.
30172 (Spec Files): Likewise.
30173 ([-mstrict-align]): Likewise.
30174 ([-mfix-cortex-a53-835769]): Likewise.
30175 ([-march], [-mtune]): Likewise.
30176 ([-mpic-register]): Likewise.
30177 ([-munaligned-access]): Likewise.
30178 ([-msp8]): Likewise.
30179 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
30180 (AVR Built-in Macros): Likewise.
30181 ([-mpreferred-stack-boundary]): Likewise.
30182 ([-mtune-crtl]): Likewise.
30183 ([-mashf]): Likewise.
30184 ([-mmcu=]): Likewise.
30185 ([-minrt]): Likewise.
30186 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
30187 ([-mupper-regs]): Likewise.
30188 ([-matomic-model]): Likewise.
30189 ([-mdiv]): Likewise.
30190 ([-mzdcbranch]): Likewise.
30191 ([-mdisable-callt]): Likewise.
30192 ([-msoft-float]): Likewise.
30193 ([-m8byte-align]): Likewise.
30194 ([-fstack-reuse]): Likewise.
30196 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30198 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
30199 Fix markup, light copy-editing.
30200 ([-fauto-profile]): Rewrite to fix formatting and content
30203 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30205 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
30206 Copy-edit description.
30207 ([-fisolate-erroneous-paths-attribute]): Likewise.
30208 * common.opt (fisolate-erroneous-paths-dereference):
30209 Copy-edit description.
30210 (fisolate-erroneous-paths-attribute): Likewise.
30212 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30214 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
30217 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
30219 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
30220 ([-fvtv-debug]): Likewise.
30221 ([-Wc++-compat]): Likewise.
30222 ([-Wc++11-compat]): Likewise.
30223 ([-Wc++14-compat]): Likewise.
30224 ([-Wno-sized-deallocation]): Likewise.
30225 ([-femit-class-debug-always]): Likewise.
30226 ([-femit-struct-debug-detailed]): Likewise.
30227 ([-fno-keep-inline-dllexport]): Likewise.
30228 ([-fira-algorithm]): Likewise.
30229 ([-fira-region]): Likewise.
30230 ([-flra-remat]): Likewise.
30231 ([-fipa-ra]): Likewise.
30232 ([-fhoist-adjacent-loads]): Likewise.
30233 ([-fisolate-erroneous-paths-dereference]): Likewise.
30234 ([-fisolate-erroneous-paths-attribute]): Likewise.
30235 ([-ftree-switch-conversion]): Likewise.
30236 ([-ftree-tail-merge]): Likewise.
30237 ([-ftree-loop-if-convert]): Likewise.
30238 ([-ftree-loop-if-convert-stores]): Likewise.
30239 ([-ftree-loop-distribution]): Likewise.
30240 ([-ftree-loop-distribute-patterns]): Likewise.
30241 ([-flto-compression-level]): Likewise.
30242 ([-flto-report]): Likewise.
30243 ([-flto-report-wpa]): Likewise.
30244 ([-fuse-linker-plugin]): Likewise.
30245 ([-mfix-cortex-a53-835769]): Likewise.
30246 ([-mno-fix-cortex-a53-835769]): Likewise.
30247 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
30248 explicit listing; add a note to the discussion indicating they
30249 exist. Reorder table to group similar options. Add missing
30250 @opindex entries. Add @need commands throughout the table to
30251 allow it to be split across multiple pages.
30252 ([-m8bit-idiv]): Fix @opindex.
30253 ([-mavx256-split-unaligned-load]): Likewise.
30254 ([-mavx256-split-unaligned-store]): Likewise.
30255 ([-mstack-protector-guard]): Likewise.
30256 ([-mcpu=]): Likewise.
30257 ([-mcpu]): Likewise.
30258 ([-mpointer-size=]): Likewise.
30260 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
30262 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
30263 instead of `m' constraint. Likewise for unnamed movb comparison
30264 patterns using reg_before_reload_operand predicate.
30265 * config/pa/predicates.md (reg_before_reload_operand): Tighten
30266 predicate to reject register index and LO_SUM DLT memory forms
30269 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30271 * doc/invoke.texi (Option Summary): Fix spelling of
30272 -fdevirtualize-at-ltrans.
30273 ([-fdevirtualize]): Fix markup.
30274 ([-fdevirtualize-speculatively]): Fix typo.
30275 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
30276 implementor-speaky.
30277 * common.opt (fdevirtualize-at-ltrans): Likewise.
30278 * ipa-devirt.c: Fix typos in comments throughout the file.
30279 (ipa_devirt): Fix typos in format strings for dump output.
30281 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
30283 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
30284 discussion of defaults, light copy-editing.
30286 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30288 * tsan.c (instrument_expr): corrected previous checkin.
30290 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
30292 Instrument bit field and unaligned accesses for TSAN.
30293 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
30294 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
30295 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
30296 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
30297 unaligned memory regions.
30299 2015-01-01 Anthony Green <green@moxielogic.com>
30301 * config/moxie/predicates.md (moxie_general_movsrc_operand):
30302 Restrict move source register offsets to 16 bits.
30304 Copyright (C) 2015 Free Software Foundation, Inc.
30306 Copying and distribution of this file, with or without modification,
30307 are permitted in any medium without royalty provided the copyright
30308 notice and this notice are preserved.